kordoc 4.8.0 → 4.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +71 -19
  2. package/dist/{-URO5XBEB.js → -BPSOA7WX.js} +8 -8
  3. package/dist/{chunk-NFCQ5XNT.js → chunk-4CUEYYQF.js} +2 -2
  4. package/dist/{chunk-3CBHCDYD.js → chunk-5EWPDL7S.js} +8 -8
  5. package/dist/{chunk-E6OJKTYS.js → chunk-66BZATFV.js} +2 -2
  6. package/dist/{chunk-HFVMCUXF.js → chunk-6KFW772K.js} +2 -2
  7. package/dist/{chunk-WG473BIB.js → chunk-A6EAUP2J.js} +2 -2
  8. package/dist/{chunk-37SAM3LH.js → chunk-C5IU7Q3W.js} +2 -2
  9. package/dist/{chunk-J7DBL77B.cjs → chunk-D6NDAA72.cjs} +2 -2
  10. package/dist/{chunk-J7DBL77B.cjs.map → chunk-D6NDAA72.cjs.map} +1 -1
  11. package/dist/{chunk-YB2TYOYY.js → chunk-DIB2I2HP.js} +3 -3
  12. package/dist/{chunk-5IRX3TQP.cjs → chunk-DVEJRBFI.cjs} +3 -3
  13. package/dist/{chunk-5IRX3TQP.cjs.map → chunk-DVEJRBFI.cjs.map} +1 -1
  14. package/dist/{chunk-S4SMUQAT.js → chunk-ETMMB6O2.js} +2 -2
  15. package/dist/{chunk-GGZ5PSJO.cjs → chunk-FZA5HW4K.cjs} +4 -4
  16. package/dist/{chunk-GGZ5PSJO.cjs.map → chunk-FZA5HW4K.cjs.map} +1 -1
  17. package/dist/{chunk-OKISH2NK.cjs → chunk-H25XAYE4.cjs} +6 -6
  18. package/dist/{chunk-OKISH2NK.cjs.map → chunk-H25XAYE4.cjs.map} +1 -1
  19. package/dist/{chunk-HS4762CD.js → chunk-I6EWYT3Y.js} +2 -2
  20. package/dist/{chunk-L2Q3NLHX.js → chunk-I6Q5K2YF.js} +2 -2
  21. package/dist/{chunk-2ANLGAUG.js → chunk-KTAWKNYX.js} +2 -2
  22. package/dist/{chunk-OKE6G67G.js → chunk-MYOGZQMD.js} +2 -2
  23. package/dist/{chunk-F7RZZI5P.js → chunk-N7HKWVGP.js} +3 -3
  24. package/dist/{chunk-VPAYFTMH.js → chunk-NJMWYRLY.js} +3 -3
  25. package/dist/{chunk-TXRTH5BV.js → chunk-XGXKICRN.js} +2 -2
  26. package/dist/{chunk-CX2LRBC5.cjs → chunk-XZEDL6B4.cjs} +7 -7
  27. package/dist/{chunk-CX2LRBC5.cjs.map → chunk-XZEDL6B4.cjs.map} +1 -1
  28. package/dist/{chunk-ZEQPTIWN.js → chunk-Y4H75LKS.js} +2 -2
  29. package/dist/{chunk-7OHDTS5Q.js → chunk-YCSXG6SY.js} +2 -2
  30. package/dist/{chunk-WXC4HKSD.js → chunk-YOFMKKCA.js} +3 -3
  31. package/dist/chunks-HYXNV3WP.js +10 -0
  32. package/dist/cli.js +33 -21
  33. package/dist/cli.js.map +1 -1
  34. package/dist/{formula-7BNCJ55B.js → formula-7XQLPNSO.js} +3 -3
  35. package/dist/{formula-3K5KC3VV.cjs → formula-ODJ7GSUH.cjs} +9 -9
  36. package/dist/{formula-3K5KC3VV.cjs.map → formula-ODJ7GSUH.cjs.map} +1 -1
  37. package/dist/{formula-YRMQ7BTI.js → formula-T4AIR2LX.js} +4 -4
  38. package/dist/{image-ocr-O7TKPDTY.js → image-ocr-EJLWGR3B.js} +7 -7
  39. package/dist/{image-ocr-XRVXVYKO.js → image-ocr-TZU64JJF.js} +5 -5
  40. package/dist/{image-ocr-CBMJIJTQ.cjs → image-ocr-WMTQ357I.cjs} +11 -11
  41. package/dist/{image-ocr-CBMJIJTQ.cjs.map → image-ocr-WMTQ357I.cjs.map} +1 -1
  42. package/dist/index.cjs +175 -175
  43. package/dist/index.js +4 -4
  44. package/dist/mcp.js +15 -15
  45. package/dist/{model-bundle-GNDUKNME.js → model-bundle-OT2OTSGH.js} +5 -5
  46. package/dist/{models-TJ45RB2Z.js → models-MUVFWN7M.js} +5 -5
  47. package/dist/{parser-5MLJHSRX.js → parser-E6NQ666P.js} +6 -6
  48. package/dist/{parser-U3SMCGRK.js → parser-ERSNBILY.js} +6 -6
  49. package/dist/{parser-GIVQWVKJ.cjs → parser-XVUFA35I.cjs} +26 -26
  50. package/dist/{parser-GIVQWVKJ.cjs.map → parser-XVUFA35I.cjs.map} +1 -1
  51. package/dist/pdf-ocr-KG7X7WRC.js +13 -0
  52. package/dist/pdf-ocr-KMM24YFF.cjs +14 -0
  53. package/dist/{pdf-ocr-BUBZA4EE.cjs.map → pdf-ocr-KMM24YFF.cjs.map} +1 -1
  54. package/dist/pdf-ocr-YTZL2UL4.js +16 -0
  55. package/dist/{profile-io-VATWYLZX.js → profile-io-IRW6XCXH.js} +3 -3
  56. package/dist/{rasterize-PNRXMSL2.js → rasterize-BNF6QTLY.js} +2 -2
  57. package/dist/render-T7QXFTZA.js +10 -0
  58. package/dist/seal-ITE2NNNH.js +10 -0
  59. package/dist/{setup-OEUDZ4BT.js → setup-BXOXVBU3.js} +3 -3
  60. package/dist/{watch-USNQJXQC.js → watch-7PYYGQUJ.js} +9 -9
  61. package/package.json +1 -1
  62. package/dist/chunks-M64IY7AK.js +0 -10
  63. package/dist/pdf-ocr-BUBZA4EE.cjs +0 -14
  64. package/dist/pdf-ocr-HITVPJLV.js +0 -13
  65. package/dist/pdf-ocr-K4WOCJGJ.js +0 -16
  66. package/dist/render-YY5RKZEB.js +0 -10
  67. package/dist/seal-5ZNJXOOQ.js +0 -10
  68. /package/dist/{-URO5XBEB.js.map → -BPSOA7WX.js.map} +0 -0
  69. /package/dist/{chunk-NFCQ5XNT.js.map → chunk-4CUEYYQF.js.map} +0 -0
  70. /package/dist/{chunk-3CBHCDYD.js.map → chunk-5EWPDL7S.js.map} +0 -0
  71. /package/dist/{chunk-E6OJKTYS.js.map → chunk-66BZATFV.js.map} +0 -0
  72. /package/dist/{chunk-HFVMCUXF.js.map → chunk-6KFW772K.js.map} +0 -0
  73. /package/dist/{chunk-WG473BIB.js.map → chunk-A6EAUP2J.js.map} +0 -0
  74. /package/dist/{chunk-37SAM3LH.js.map → chunk-C5IU7Q3W.js.map} +0 -0
  75. /package/dist/{chunk-YB2TYOYY.js.map → chunk-DIB2I2HP.js.map} +0 -0
  76. /package/dist/{chunk-S4SMUQAT.js.map → chunk-ETMMB6O2.js.map} +0 -0
  77. /package/dist/{chunk-HS4762CD.js.map → chunk-I6EWYT3Y.js.map} +0 -0
  78. /package/dist/{chunk-L2Q3NLHX.js.map → chunk-I6Q5K2YF.js.map} +0 -0
  79. /package/dist/{chunk-2ANLGAUG.js.map → chunk-KTAWKNYX.js.map} +0 -0
  80. /package/dist/{chunk-OKE6G67G.js.map → chunk-MYOGZQMD.js.map} +0 -0
  81. /package/dist/{chunk-F7RZZI5P.js.map → chunk-N7HKWVGP.js.map} +0 -0
  82. /package/dist/{chunk-VPAYFTMH.js.map → chunk-NJMWYRLY.js.map} +0 -0
  83. /package/dist/{chunk-TXRTH5BV.js.map → chunk-XGXKICRN.js.map} +0 -0
  84. /package/dist/{chunk-ZEQPTIWN.js.map → chunk-Y4H75LKS.js.map} +0 -0
  85. /package/dist/{chunk-7OHDTS5Q.js.map → chunk-YCSXG6SY.js.map} +0 -0
  86. /package/dist/{chunk-WXC4HKSD.js.map → chunk-YOFMKKCA.js.map} +0 -0
  87. /package/dist/{chunks-M64IY7AK.js.map → chunks-HYXNV3WP.js.map} +0 -0
  88. /package/dist/{formula-7BNCJ55B.js.map → formula-7XQLPNSO.js.map} +0 -0
  89. /package/dist/{formula-YRMQ7BTI.js.map → formula-T4AIR2LX.js.map} +0 -0
  90. /package/dist/{image-ocr-O7TKPDTY.js.map → image-ocr-EJLWGR3B.js.map} +0 -0
  91. /package/dist/{image-ocr-XRVXVYKO.js.map → image-ocr-TZU64JJF.js.map} +0 -0
  92. /package/dist/{model-bundle-GNDUKNME.js.map → model-bundle-OT2OTSGH.js.map} +0 -0
  93. /package/dist/{models-TJ45RB2Z.js.map → models-MUVFWN7M.js.map} +0 -0
  94. /package/dist/{parser-5MLJHSRX.js.map → parser-E6NQ666P.js.map} +0 -0
  95. /package/dist/{parser-U3SMCGRK.js.map → parser-ERSNBILY.js.map} +0 -0
  96. /package/dist/{pdf-ocr-HITVPJLV.js.map → pdf-ocr-KG7X7WRC.js.map} +0 -0
  97. /package/dist/{pdf-ocr-K4WOCJGJ.js.map → pdf-ocr-YTZL2UL4.js.map} +0 -0
  98. /package/dist/{profile-io-VATWYLZX.js.map → profile-io-IRW6XCXH.js.map} +0 -0
  99. /package/dist/{rasterize-PNRXMSL2.js.map → rasterize-BNF6QTLY.js.map} +0 -0
  100. /package/dist/{render-YY5RKZEB.js.map → render-T7QXFTZA.js.map} +0 -0
  101. /package/dist/{seal-5ZNJXOOQ.js.map → seal-ITE2NNNH.js.map} +0 -0
  102. /package/dist/{setup-OEUDZ4BT.js.map → setup-BXOXVBU3.js.map} +0 -0
  103. /package/dist/{watch-USNQJXQC.js.map → watch-7PYYGQUJ.js.map} +0 -0
package/dist/index.cjs CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkGGZ5PSJOcjs = require('./chunk-GGZ5PSJO.cjs');
11
+ var _chunkFZA5HW4Kcjs = require('./chunk-FZA5HW4K.cjs');
12
12
 
13
13
 
14
14
  var _chunkDCZVOIEOcjs = require('./chunk-DCZVOIEO.cjs');
@@ -29,7 +29,7 @@ var _chunkL5CDTOC3cjs = require('./chunk-L5CDTOC3.cjs');
29
29
 
30
30
 
31
31
 
32
- var _chunkJ7DBL77Bcjs = require('./chunk-J7DBL77B.cjs');
32
+ var _chunkD6NDAA72cjs = require('./chunk-D6NDAA72.cjs');
33
33
 
34
34
 
35
35
  var _chunkGS7T56RPcjs = require('./chunk-GS7T56RP.cjs');
@@ -484,7 +484,7 @@ function rawTextContent(node, depth = 0) {
484
484
  // src/hwpx/parser-shared.ts
485
485
  var MAX_DECOMPRESS_SIZE = 256 * 1024 * 1024;
486
486
  var MAX_ZIP_ENTRIES = 500;
487
- var ZipBombError = class extends _chunkJ7DBL77Bcjs.KordocError {
487
+ var ZipBombError = class extends _chunkD6NDAA72cjs.KordocError {
488
488
  constructor(message) {
489
489
  super(message);
490
490
  this.name = "ZipBombError";
@@ -504,7 +504,7 @@ function createSectionShared() {
504
504
  function createXmlParser(warnings) {
505
505
  return new (0, _xmldom.DOMParser)({
506
506
  onError(level, msg2) {
507
- if (level === "fatalError") throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`XML \uD30C\uC2F1 \uC2E4\uD328: ${msg2}`);
507
+ if (level === "fatalError") throw new (0, _chunkD6NDAA72cjs.KordocError)(`XML \uD30C\uC2F1 \uC2E4\uD328: ${msg2}`);
508
508
  _optionalChain([warnings, 'optionalAccess', _3 => _3.push, 'call', _4 => _4({ code: "MALFORMED_XML", message: `XML ${level === "warning" ? "\uACBD\uACE0" : "\uC624\uB958"}: ${msg2}` })]);
509
509
  }
510
510
  });
@@ -539,13 +539,13 @@ function parseEncryptionManifest(manifestXml) {
539
539
  const startKey = attrOf(inner, "start-key-generation-name");
540
540
  const checksumType = attrOf(inner, "checksum-type");
541
541
  if (algorithm !== AES256_CBC) {
542
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWPX \uC554\uD638\uD654 \uBC29\uC2DD\uC785\uB2C8\uB2E4: ${_nullishCoalesce(algorithm, () => ( "(\uBBF8\uC0C1)"))}`);
542
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWPX \uC554\uD638\uD654 \uBC29\uC2DD\uC785\uB2C8\uB2E4: ${_nullishCoalesce(algorithm, () => ( "(\uBBF8\uC0C1)"))}`);
543
543
  }
544
544
  if (startKey !== START_KEY_SHA256) {
545
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWPX \uC2DC\uC791\uD0A4 \uC0DD\uC131 \uBC29\uC2DD\uC785\uB2C8\uB2E4: ${_nullishCoalesce(startKey, () => ( "(\uBBF8\uC0C1)"))}`);
545
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWPX \uC2DC\uC791\uD0A4 \uC0DD\uC131 \uBC29\uC2DD\uC785\uB2C8\uB2E4: ${_nullishCoalesce(startKey, () => ( "(\uBBF8\uC0C1)"))}`);
546
546
  }
547
547
  if (!_optionalChain([checksumType, 'optionalAccess', _8 => _8.endsWith, 'call', _9 => _9(CHECKSUM_SHA256_1K)])) {
548
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWPX \uCCB4\uD06C\uC12C \uBC29\uC2DD\uC785\uB2C8\uB2E4: ${_nullishCoalesce(checksumType, () => ( "(\uBBF8\uC0C1)"))}`);
548
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWPX \uCCB4\uD06C\uC12C \uBC29\uC2DD\uC785\uB2C8\uB2E4: ${_nullishCoalesce(checksumType, () => ( "(\uBBF8\uC0C1)"))}`);
549
549
  }
550
550
  const iterations = parseInt(_nullishCoalesce(attrOf(inner, "iteration-count"), () => ( "")), 10);
551
551
  const keySize = parseInt(_nullishCoalesce(attrOf(inner, "key-size"), () => ( "")), 10);
@@ -553,10 +553,10 @@ function parseEncryptionManifest(manifestXml) {
553
553
  const salt = Buffer.from(_nullishCoalesce(attrOf(inner, "salt"), () => ( "")), "base64");
554
554
  const checksum = Buffer.from(_nullishCoalesce(attrOf(inner, "checksum"), () => ( "")), "base64");
555
555
  if (!(iterations > 0 && iterations <= MAX_ITERATION_COUNT)) {
556
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`HWPX \uC554\uD638\uD654 \uBC18\uBCF5 \uD69F\uC218\uAC00 \uD5C8\uC6A9 \uBC94\uC704\uB97C \uBC97\uC5B4\uB0AC\uC2B5\uB2C8\uB2E4: ${iterations}`);
556
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`HWPX \uC554\uD638\uD654 \uBC18\uBCF5 \uD69F\uC218\uAC00 \uD5C8\uC6A9 \uBC94\uC704\uB97C \uBC97\uC5B4\uB0AC\uC2B5\uB2C8\uB2E4: ${iterations}`);
557
557
  }
558
558
  if (keySize !== 32 || iv.length !== 16 || salt.length === 0 || checksum.length !== 32) {
559
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`HWPX \uC554\uD638\uD654 \uD30C\uB77C\uBBF8\uD130\uAC00 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 (${path})`);
559
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`HWPX \uC554\uD638\uD654 \uD30C\uB77C\uBBF8\uD130\uAC00 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 (${path})`);
560
560
  }
561
561
  entries.push({ path, checksum, iv, salt, iterations, keySize });
562
562
  }
@@ -589,11 +589,11 @@ async function decryptHwpxInPlace(zip, manifestXml, password) {
589
589
  for (const entry of entries) {
590
590
  const file = zip.file(entry.path);
591
591
  if (!file) {
592
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`\uC554\uD638 \uBAA9\uB85D\uC5D0 \uC788\uB294 \uD30C\uC77C\uC774 \uBB38\uC11C\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4: ${entry.path}`);
592
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`\uC554\uD638 \uBAA9\uB85D\uC5D0 \uC788\uB294 \uD30C\uC77C\uC774 \uBB38\uC11C\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4: ${entry.path}`);
593
593
  }
594
594
  const plain = decryptEntry(await file.async("nodebuffer"), entry, startKey);
595
595
  if (!plain) {
596
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
596
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
597
597
  }
598
598
  decrypted.push({ path: entry.path, plain });
599
599
  }
@@ -641,10 +641,10 @@ async function extractHwpxStyles(zip, decompressed) {
641
641
  const xml = await file.async("text");
642
642
  if (decompressed) {
643
643
  decompressed.total += xml.length * 2;
644
- if (decompressed.total > MAX_DECOMPRESS_SIZE) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
644
+ if (decompressed.total > MAX_DECOMPRESS_SIZE) throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
645
645
  }
646
646
  const parser = createXmlParser();
647
- const doc = parser.parseFromString(_chunkJ7DBL77Bcjs.stripDtd.call(void 0, xml), "text/xml");
647
+ const doc = parser.parseFromString(_chunkD6NDAA72cjs.stripDtd.call(void 0, xml), "text/xml");
648
648
  if (!doc.documentElement) continue;
649
649
  const domDoc = doc;
650
650
  parseCharProperties(domDoc, result.charProperties);
@@ -1428,7 +1428,7 @@ function resolveParaHeading(paraEl, ctx) {
1428
1428
 
1429
1429
  // src/hwpx/table-build.ts
1430
1430
  function buildTableWithCellMeta(state, keepAnchoredEmptyCols, keepEmptyParagraphs) {
1431
- const table2 = _chunkGGZ5PSJOcjs.buildTable.call(void 0, state.rows, { keepAnchoredEmptyCols, keepEmptyParagraphs });
1431
+ const table2 = _chunkFZA5HW4Kcjs.buildTable.call(void 0, state.rows, { keepAnchoredEmptyCols, keepEmptyParagraphs });
1432
1432
  if (state.caption) table2.caption = state.caption;
1433
1433
  if (_optionalChain([state, 'access', _21 => _21.captionBlocks, 'optionalAccess', _22 => _22.length])) table2.captionBlocks = state.captionBlocks;
1434
1434
  const anchors = [];
@@ -1499,7 +1499,7 @@ function completeTable(newTable, tableStack, blocks, ctx) {
1499
1499
  const cell2 = parentTable.cell;
1500
1500
  (cell2.blocks ??= []).push(block);
1501
1501
  cell2.hasStructure = true;
1502
- let flat = _chunkGGZ5PSJOcjs.convertTableToText.call(void 0, newTable.rows);
1502
+ let flat = _chunkFZA5HW4Kcjs.convertTableToText.call(void 0, newTable.rows);
1503
1503
  if (newTable.caption) flat = newTable.caption + (flat ? "\n" + flat : "");
1504
1504
  if (flat) {
1505
1505
  const inlineJoin = newTable.inline === true && cell2.lineOpen === true;
@@ -1642,7 +1642,7 @@ function detectHwpxSectionPages(root) {
1642
1642
  // src/hwpx/section-walker.ts
1643
1643
  function parseSectionXml(xml, styleMap, warnings, sectionNum, shared) {
1644
1644
  const parser = createXmlParser(warnings);
1645
- const doc = parser.parseFromString(_chunkJ7DBL77Bcjs.stripDtd.call(void 0, xml), "text/xml");
1645
+ const doc = parser.parseFromString(_chunkD6NDAA72cjs.stripDtd.call(void 0, xml), "text/xml");
1646
1646
  if (!doc.documentElement) return [];
1647
1647
  const ctx = { styleMap, warnings, sectionNum, shared: _nullishCoalesce(shared, () => ( createSectionShared())) };
1648
1648
  ctx.shared.track.deleteDepth = 0;
@@ -1756,8 +1756,8 @@ function walkSection(node, blocks, tableCtx, tableStack, ctx, depth = 0) {
1756
1756
  const cs = isNaN(rawCs) ? 1 : rawCs;
1757
1757
  const rawRs = parseInt(el.getAttribute("rowSpan") || "1", 10);
1758
1758
  const rs = isNaN(rawRs) ? 1 : rawRs;
1759
- tableCtx.cell.colSpan = clampSpan(cs, _chunkGGZ5PSJOcjs.MAX_COLS);
1760
- tableCtx.cell.rowSpan = clampSpan(rs, _chunkGGZ5PSJOcjs.MAX_ROWS);
1759
+ tableCtx.cell.colSpan = clampSpan(cs, _chunkFZA5HW4Kcjs.MAX_COLS);
1760
+ tableCtx.cell.rowSpan = clampSpan(rs, _chunkFZA5HW4Kcjs.MAX_ROWS);
1761
1761
  }
1762
1762
  break;
1763
1763
  case "p": {
@@ -2030,7 +2030,7 @@ function buildSubListTable(el, ctx, depth) {
2030
2030
  const sink = [];
2031
2031
  const st = { rows: [], currentRow: [], cell: null };
2032
2032
  walkSection(el, sink, st, [], ctx, depth + 1);
2033
- let flat = _chunkGGZ5PSJOcjs.convertTableToText.call(void 0, st.rows);
2033
+ let flat = _chunkFZA5HW4Kcjs.convertTableToText.call(void 0, st.rows);
2034
2034
  if (st.caption) flat = st.caption + (flat ? "\n" + flat : "");
2035
2035
  const built = [];
2036
2036
  completeTable(st, [], built, ctx);
@@ -2185,7 +2185,7 @@ function extractHyperlinkHref(fieldBegin) {
2185
2185
  let url = (ch.textContent || "").trim();
2186
2186
  if (!url) continue;
2187
2187
  url = url.replace(/^https?:\/\/(?=https?:\/\/)/i, "");
2188
- const safe = _chunkJ7DBL77Bcjs.sanitizeHref.call(void 0, url);
2188
+ const safe = _chunkD6NDAA72cjs.sanitizeHref.call(void 0, url);
2189
2189
  if (safe) return safe;
2190
2190
  }
2191
2191
  return void 0;
@@ -2345,7 +2345,7 @@ function extractParagraphInfo(para2, styleMap, ctx) {
2345
2345
  case "hyperlink": {
2346
2346
  const url = child.getAttribute("url") || child.getAttribute("href") || "";
2347
2347
  if (url) {
2348
- const safe = _chunkJ7DBL77Bcjs.sanitizeHref.call(void 0, url);
2348
+ const safe = _chunkD6NDAA72cjs.sanitizeHref.call(void 0, url);
2349
2349
  if (safe) href = safe;
2350
2350
  }
2351
2351
  walk(child, depth + 1);
@@ -2628,7 +2628,7 @@ function decompressStream(data) {
2628
2628
  return _zlib.inflateRawSync.call(void 0, data, opts);
2629
2629
  }
2630
2630
  function parseFileHeader(data) {
2631
- if (data.length < 40) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("FileHeader\uAC00 \uB108\uBB34 \uC9E7\uC2B5\uB2C8\uB2E4 (\uCD5C\uC18C 40\uBC14\uC774\uD2B8)");
2631
+ if (data.length < 40) throw new (0, _chunkD6NDAA72cjs.KordocError)("FileHeader\uAC00 \uB108\uBB34 \uC9E7\uC2B5\uB2C8\uB2E4 (\uCD5C\uC18C 40\uBC14\uC774\uD2B8)");
2632
2632
  const sig = data.subarray(0, 32).toString("utf8").replace(/\0+$/, "");
2633
2633
  return {
2634
2634
  signature: sig,
@@ -3080,13 +3080,13 @@ async function extractImagesFromZip(zip, blocks, decompressed, warnings, sweepUn
3080
3080
  }
3081
3081
  const allCandidates = resolvedPath ? [resolvedPath, ...candidates] : candidates;
3082
3082
  for (const path of allCandidates) {
3083
- if (_chunkJ7DBL77Bcjs.isPathTraversal.call(void 0, path)) continue;
3083
+ if (_chunkD6NDAA72cjs.isPathTraversal.call(void 0, path)) continue;
3084
3084
  const file = zip.file(path);
3085
3085
  if (!file) continue;
3086
3086
  try {
3087
3087
  const data = await file.async("uint8array");
3088
3088
  decompressed.total += data.length;
3089
- if (decompressed.total > MAX_DECOMPRESS_SIZE) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
3089
+ if (decompressed.total > MAX_DECOMPRESS_SIZE) throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
3090
3090
  const ext = path.includes(".") ? path.split(".").pop() || "png" : "png";
3091
3091
  const mimeType = imageExtToMime(ext);
3092
3092
  imageIndex++;
@@ -3096,7 +3096,7 @@ async function extractImagesFromZip(zip, blocks, decompressed, warnings, sweepUn
3096
3096
  usedPaths.add(path);
3097
3097
  break;
3098
3098
  } catch (err) {
3099
- if (err instanceof _chunkJ7DBL77Bcjs.KordocError) throw err;
3099
+ if (err instanceof _chunkD6NDAA72cjs.KordocError) throw err;
3100
3100
  }
3101
3101
  }
3102
3102
  if (!img) _optionalChain([warnings, 'optionalAccess', _84 => _84.push, 'call', _85 => _85({ page: block.pageNumber, message: `\uC774\uBBF8\uC9C0 \uD30C\uC77C \uC5C6\uC74C: ${ref}`, code: "SKIPPED_IMAGE" })]);
@@ -3116,11 +3116,11 @@ async function extractImagesFromZip(zip, blocks, decompressed, warnings, sweepUn
3116
3116
  if (sweepUnreferenced) {
3117
3117
  const binEntries = zip.file(/(?:^|\/)BinData\//i);
3118
3118
  for (const file of binEntries) {
3119
- if (file.dir || usedPaths.has(file.name) || _chunkJ7DBL77Bcjs.isPathTraversal.call(void 0, file.name)) continue;
3119
+ if (file.dir || usedPaths.has(file.name) || _chunkD6NDAA72cjs.isPathTraversal.call(void 0, file.name)) continue;
3120
3120
  try {
3121
3121
  const data = await file.async("uint8array");
3122
3122
  decompressed.total += data.length;
3123
- if (decompressed.total > MAX_DECOMPRESS_SIZE) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
3123
+ if (decompressed.total > MAX_DECOMPRESS_SIZE) throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
3124
3124
  const ext = file.name.includes(".") ? file.name.split(".").pop() || "" : "";
3125
3125
  let mimeType = imageExtToMime(ext);
3126
3126
  if (mimeType === "application/octet-stream") {
@@ -3134,7 +3134,7 @@ async function extractImagesFromZip(zip, blocks, decompressed, warnings, sweepUn
3134
3134
  images.push(img);
3135
3135
  blocks.push({ type: "image", text: filename, imageData: { data, mimeType, filename: file.name } });
3136
3136
  } catch (err) {
3137
- if (err instanceof _chunkJ7DBL77Bcjs.KordocError) throw err;
3137
+ if (err instanceof _chunkD6NDAA72cjs.KordocError) throw err;
3138
3138
  _optionalChain([warnings, 'optionalAccess', _86 => _86.push, 'call', _87 => _87({ message: `\uC774\uBBF8\uC9C0 \uCD94\uCD9C \uC2E4\uD328: ${file.name}`, code: "SKIPPED_IMAGE" })]);
3139
3139
  }
3140
3140
  }
@@ -3185,7 +3185,7 @@ function extractFromBrokenZip(buffer) {
3185
3185
  }
3186
3186
  const nameBytes = data.slice(pos + 30, pos + 30 + nameLen);
3187
3187
  const name = new TextDecoder().decode(nameBytes);
3188
- if (_chunkJ7DBL77Bcjs.isPathTraversal.call(void 0, name)) {
3188
+ if (_chunkD6NDAA72cjs.isPathTraversal.call(void 0, name)) {
3189
3189
  pos = fileStart + compSize;
3190
3190
  continue;
3191
3191
  }
@@ -3203,7 +3203,7 @@ function extractFromBrokenZip(buffer) {
3203
3203
  continue;
3204
3204
  }
3205
3205
  totalDecompressed += content.length * 2;
3206
- if (totalDecompressed > MAX_DECOMPRESS_SIZE) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC");
3206
+ if (totalDecompressed > MAX_DECOMPRESS_SIZE) throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC");
3207
3207
  sectionNum++;
3208
3208
  const secBlocks = parseSectionXml(content, void 0, warnings, sectionNum, shared);
3209
3209
  for (const b of secBlocks) b.pageNumber = sectionNum;
@@ -3212,9 +3212,9 @@ function extractFromBrokenZip(buffer) {
3212
3212
  continue;
3213
3213
  }
3214
3214
  }
3215
- if (blocks.length === 0) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC190\uC0C1\uB41C HWPX\uC5D0\uC11C \uC139\uC158 \uB370\uC774\uD130\uB97C \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
3215
+ if (blocks.length === 0) throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC190\uC0C1\uB41C HWPX\uC5D0\uC11C \uC139\uC158 \uB370\uC774\uD130\uB97C \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
3216
3216
  applyPageText(blocks, shared);
3217
- const markdown = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, blocks);
3217
+ const markdown = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, blocks);
3218
3218
  return { markdown, blocks, warnings: warnings.length > 0 ? warnings : void 0 };
3219
3219
  }
3220
3220
  async function readKordocLayout(zip) {
@@ -3239,18 +3239,18 @@ async function resolveSectionPaths(zip) {
3239
3239
  if (paths.length > 0) return paths;
3240
3240
  }
3241
3241
  const sectionFiles = zip.file(/[Ss]ection\d+\.xml$/);
3242
- return sectionFiles.map((f) => f.name).sort(_chunkJ7DBL77Bcjs.compareSectionPaths);
3242
+ return sectionFiles.map((f) => f.name).sort(_chunkD6NDAA72cjs.compareSectionPaths);
3243
3243
  }
3244
3244
  function parseSectionPathsFromManifest(xml) {
3245
3245
  const parser = createXmlParser();
3246
- const doc = parser.parseFromString(_chunkJ7DBL77Bcjs.stripDtd.call(void 0, xml), "text/xml");
3246
+ const doc = parser.parseFromString(_chunkD6NDAA72cjs.stripDtd.call(void 0, xml), "text/xml");
3247
3247
  const items = doc.getElementsByTagName("opf:item");
3248
3248
  const spine = doc.getElementsByTagName("opf:itemref");
3249
3249
  const idToHref = /* @__PURE__ */ new Map();
3250
3250
  for (let i = 0; i < items.length; i++) {
3251
3251
  const item = items[i];
3252
3252
  const id = item.getAttribute("id") || "";
3253
- const href = _chunkJ7DBL77Bcjs.normalizeSectionHref.call(void 0, item.getAttribute("href") || "");
3253
+ const href = _chunkD6NDAA72cjs.normalizeSectionHref.call(void 0, item.getAttribute("href") || "");
3254
3254
  if (id && href) idToHref.set(id, href);
3255
3255
  }
3256
3256
  if (spine.length > 0) {
@@ -3261,7 +3261,7 @@ function parseSectionPathsFromManifest(xml) {
3261
3261
  }
3262
3262
  if (ordered.length > 0) return ordered;
3263
3263
  }
3264
- return Array.from(idToHref.values()).sort(_chunkJ7DBL77Bcjs.compareSectionPaths);
3264
+ return Array.from(idToHref.values()).sort(_chunkD6NDAA72cjs.compareSectionPaths);
3265
3265
  }
3266
3266
 
3267
3267
  // src/hwpx/metadata.ts
@@ -3274,7 +3274,7 @@ async function extractHwpxMetadata(zip, metadata, decompressed) {
3274
3274
  const xml = await file.async("text");
3275
3275
  if (decompressed) {
3276
3276
  decompressed.total += xml.length * 2;
3277
- if (decompressed.total > MAX_DECOMPRESS_SIZE) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
3277
+ if (decompressed.total > MAX_DECOMPRESS_SIZE) throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
3278
3278
  }
3279
3279
  parseDublinCoreMetadata(xml, metadata);
3280
3280
  if (metadata.title || metadata.author) return;
@@ -3284,7 +3284,7 @@ async function extractHwpxMetadata(zip, metadata, decompressed) {
3284
3284
  }
3285
3285
  function parseDublinCoreMetadata(xml, metadata) {
3286
3286
  const parser = createXmlParser();
3287
- const doc = parser.parseFromString(_chunkJ7DBL77Bcjs.stripDtd.call(void 0, xml), "text/xml");
3287
+ const doc = parser.parseFromString(_chunkD6NDAA72cjs.stripDtd.call(void 0, xml), "text/xml");
3288
3288
  if (!doc.documentElement) return;
3289
3289
  const getText = (tagNames) => {
3290
3290
  for (const tag of tagNames) {
@@ -3309,7 +3309,7 @@ function parseDublinCoreMetadata(xml, metadata) {
3309
3309
 
3310
3310
  // src/hwpx/parser.ts
3311
3311
  async function parseHwpxDocument(buffer, options) {
3312
- _chunkJ7DBL77Bcjs.precheckZipSize.call(void 0, buffer, MAX_DECOMPRESS_SIZE, MAX_ZIP_ENTRIES);
3312
+ _chunkD6NDAA72cjs.precheckZipSize.call(void 0, buffer, MAX_DECOMPRESS_SIZE, MAX_ZIP_ENTRIES);
3313
3313
  let zip;
3314
3314
  try {
3315
3315
  zip = await _jszip2.default.loadAsync(buffer);
@@ -3318,7 +3318,7 @@ async function parseHwpxDocument(buffer, options) {
3318
3318
  }
3319
3319
  const actualEntryCount = Object.keys(zip.files).length;
3320
3320
  if (actualEntryCount > MAX_ZIP_ENTRIES) {
3321
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP \uC5D4\uD2B8\uB9AC \uC218 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
3321
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP \uC5D4\uD2B8\uB9AC \uC218 \uCD08\uACFC (ZIP bomb \uC758\uC2EC)");
3322
3322
  }
3323
3323
  const manifestFile = zip.file("META-INF/manifest.xml");
3324
3324
  if (manifestFile) {
@@ -3333,7 +3333,7 @@ async function parseHwpxDocument(buffer, options) {
3333
3333
  return comResultToParseResult(pages, pageCount, warnings2);
3334
3334
  }
3335
3335
  }
3336
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
3336
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
3337
3337
  "\uC554\uD638\uB85C \uBCF4\uD638\uB41C HWPX \uD30C\uC77C\uC785\uB2C8\uB2E4. password \uC635\uC158\uC5D0 \uC5F4\uAE30 \uC554\uD638\uB97C \uC9C0\uC815\uD558\uC138\uC694."
3338
3338
  );
3339
3339
  }
@@ -3345,7 +3345,7 @@ async function parseHwpxDocument(buffer, options) {
3345
3345
  const styleMap = await extractHwpxStyles(zip, decompressed);
3346
3346
  const warnings = [];
3347
3347
  const sectionPaths = await resolveSectionPaths(zip);
3348
- if (sectionPaths.length === 0) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("HWPX\uC5D0\uC11C \uC139\uC158 \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
3348
+ if (sectionPaths.length === 0) throw new (0, _chunkD6NDAA72cjs.KordocError)("HWPX\uC5D0\uC11C \uC139\uC158 \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
3349
3349
  let allBlocks = [];
3350
3350
  const shared = createSectionShared();
3351
3351
  shared.kordocLayout = await readKordocLayout(zip);
@@ -3390,7 +3390,7 @@ async function parseHwpxDocument(buffer, options) {
3390
3390
  const images = await extractImagesFromZip(zip, blocks, decompressed, warnings, !_optionalChain([options, 'optionalAccess', _102 => _102.pages]));
3391
3391
  detectHwpxHeadings(blocks, styleMap);
3392
3392
  const outline = blocks.filter((b) => b.type === "heading" && b.level && b.text).map((b) => ({ level: b.level, text: b.text, pageNumber: b.pageNumber }));
3393
- const markdown = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, blocks);
3393
+ const markdown = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, blocks);
3394
3394
  return { markdown, blocks, metadata, outline: outline.length > 0 ? outline : void 0, warnings: warnings.length > 0 ? warnings : void 0, images: images.length > 0 ? images : void 0 };
3395
3395
  }
3396
3396
 
@@ -4390,7 +4390,7 @@ function decryptPasswordStream(raw, password) {
4390
4390
  var TAG_DOCUMENT_PROPERTIES = 16;
4391
4391
  var TAG_ID_MAPPINGS = 17;
4392
4392
  function assertDecryptedDocInfo(data, readRecords3) {
4393
- const wrong = () => new (0, _chunkJ7DBL77Bcjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
4393
+ const wrong = () => new (0, _chunkD6NDAA72cjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
4394
4394
  let records;
4395
4395
  try {
4396
4396
  records = readRecords3(data);
@@ -4402,7 +4402,7 @@ function assertDecryptedDocInfo(data, readRecords3) {
4402
4402
  }
4403
4403
  function assertSupportedEncryptVersion(version) {
4404
4404
  if (version !== SUPPORTED_ENCRYPT_VERSION) {
4405
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
4405
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
4406
4406
  `\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWP \uC554\uD638\uD654 \uBC84\uC804\uC785\uB2C8\uB2E4 (EncryptVersion=${version}, \uC9C0\uC6D0: ${SUPPORTED_ENCRYPT_VERSION})`
4407
4407
  );
4408
4408
  }
@@ -4591,7 +4591,7 @@ function parseHwp5Document(buffer, options) {
4591
4591
  lenientCfb = parseLenientCfb(buffer);
4592
4592
  warnings.push({ message: "\uC190\uC0C1\uB41C CFB \uCEE8\uD14C\uC774\uB108 \u2014 lenient \uBAA8\uB4DC\uB85C \uBCF5\uAD6C", code: "LENIENT_CFB_RECOVERY" });
4593
4593
  } catch (e24) {
4594
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("CFB \uCEE8\uD14C\uC774\uB108 \uD30C\uC2F1 \uC2E4\uD328 (strict \uBC0F lenient \uBAA8\uB450)");
4594
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("CFB \uCEE8\uD14C\uC774\uB108 \uD30C\uC2F1 \uC2E4\uD328 (strict \uBC0F lenient \uBAA8\uB450)");
4595
4595
  }
4596
4596
  }
4597
4597
  const readRawStream = (path) => {
@@ -4602,14 +4602,14 @@ function parseHwp5Document(buffer, options) {
4602
4602
  return lenientCfb.findStream(path);
4603
4603
  };
4604
4604
  const headerData = readRawStream("/FileHeader");
4605
- if (!headerData) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("FileHeader \uC2A4\uD2B8\uB9BC \uC5C6\uC74C");
4605
+ if (!headerData) throw new (0, _chunkD6NDAA72cjs.KordocError)("FileHeader \uC2A4\uD2B8\uB9BC \uC5C6\uC74C");
4606
4606
  const header = parseFileHeader(headerData);
4607
- if (header.signature !== "HWP Document File") throw new (0, _chunkJ7DBL77Bcjs.KordocError)("HWP \uC2DC\uADF8\uB2C8\uCC98 \uBD88\uC77C\uCE58");
4608
- if (header.flags & FLAG_DRM) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("DRM \uBCF4\uD638\uB41C HWP\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
4607
+ if (header.signature !== "HWP Document File") throw new (0, _chunkD6NDAA72cjs.KordocError)("HWP \uC2DC\uADF8\uB2C8\uCC98 \uBD88\uC77C\uCE58");
4608
+ if (header.flags & FLAG_DRM) throw new (0, _chunkD6NDAA72cjs.KordocError)("DRM \uBCF4\uD638\uB41C HWP\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
4609
4609
  const encrypted = (header.flags & FLAG_ENCRYPTED) !== 0;
4610
4610
  if (encrypted) {
4611
4611
  if (!_optionalChain([options, 'optionalAccess', _106 => _106.password])) {
4612
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC554\uD638\uB85C \uBCF4\uD638\uB41C HWP \uBB38\uC11C\uC785\uB2C8\uB2E4. password \uC635\uC158\uC5D0 \uC5F4\uAE30 \uC554\uD638\uB97C \uC9C0\uC815\uD558\uC138\uC694.");
4612
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC554\uD638\uB85C \uBCF4\uD638\uB41C HWP \uBB38\uC11C\uC785\uB2C8\uB2E4. password \uC635\uC158\uC5D0 \uC5F4\uAE30 \uC554\uD638\uB97C \uC9C0\uC815\uD558\uC138\uC694.");
4613
4613
  }
4614
4614
  assertSupportedEncryptVersion(readEncryptVersion(headerData));
4615
4615
  }
@@ -4627,18 +4627,18 @@ function parseHwp5Document(buffer, options) {
4627
4627
  if (cfb) extractHwp5Metadata(cfb, metadata);
4628
4628
  if (encrypted) {
4629
4629
  const rawDocInfo = findStream("/DocInfo");
4630
- if (!rawDocInfo) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("DocInfo \uC2A4\uD2B8\uB9BC \uC5C6\uC74C");
4630
+ if (!rawDocInfo) throw new (0, _chunkD6NDAA72cjs.KordocError)("DocInfo \uC2A4\uD2B8\uB9BC \uC5C6\uC74C");
4631
4631
  let docInfoData;
4632
4632
  try {
4633
4633
  docInfoData = compressed ? decompressStream(rawDocInfo) : rawDocInfo;
4634
4634
  } catch (e25) {
4635
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
4635
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
4636
4636
  }
4637
4637
  assertDecryptedDocInfo(docInfoData, readRecords);
4638
4638
  }
4639
4639
  const docInfo = cfb && !encrypted ? parseDocInfoStream(cfb, compressed) : parseDocInfoFromStream(findStream("/DocInfo"), compressed);
4640
4640
  const sections = distribution ? cfb ? findViewTextSections(cfb, compressed) : findViewTextSectionsLenient(lenientCfb, compressed) : encrypted ? findSectionsVia(findStream) : cfb ? findSections(cfb) : findSectionsLenient(lenientCfb, compressed);
4641
- if (sections.length === 0) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC139\uC158 \uC2A4\uD2B8\uB9BC\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
4641
+ if (sections.length === 0) throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC139\uC158 \uC2A4\uD2B8\uB9BC\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
4642
4642
  const sectionRecords = [];
4643
4643
  const sectionDetects = [];
4644
4644
  let totalDecompressed = 0;
@@ -4646,12 +4646,12 @@ function parseHwp5Document(buffer, options) {
4646
4646
  try {
4647
4647
  const data = !distribution && compressed ? decompressStream(Buffer.from(sections[si])) : Buffer.from(sections[si]);
4648
4648
  totalDecompressed += data.length;
4649
- if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
4649
+ if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkD6NDAA72cjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
4650
4650
  const records = readRecords(data);
4651
4651
  sectionRecords.push(records);
4652
4652
  sectionDetects.push(detectHwp5SectionPages(records));
4653
4653
  } catch (secErr) {
4654
- if (secErr instanceof _chunkJ7DBL77Bcjs.KordocError) throw secErr;
4654
+ if (secErr instanceof _chunkD6NDAA72cjs.KordocError) throw secErr;
4655
4655
  sectionRecords.push(null);
4656
4656
  sectionDetects.push(null);
4657
4657
  warnings.push({ page: si + 1, message: `\uC139\uC158 ${si + 1} \uD30C\uC2F1 \uC2E4\uD328: ${secErr instanceof Error ? secErr.message : "\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"}`, code: "PARTIAL_PARSE" });
@@ -4687,7 +4687,7 @@ function parseHwp5Document(buffer, options) {
4687
4687
  parsedSections++;
4688
4688
  _optionalChain([options, 'optionalAccess', _110 => _110.onProgress, 'optionalCall', _111 => _111(parsedSections, sections.length)]);
4689
4689
  } catch (secErr) {
4690
- if (secErr instanceof _chunkJ7DBL77Bcjs.KordocError) throw secErr;
4690
+ if (secErr instanceof _chunkD6NDAA72cjs.KordocError) throw secErr;
4691
4691
  warnings.push({ page: si + 1, message: `\uC139\uC158 ${si + 1} \uD30C\uC2F1 \uC2E4\uD328: ${secErr instanceof Error ? secErr.message : "\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"}`, code: "PARTIAL_PARSE" });
4692
4692
  } finally {
4693
4693
  pageBase += detect.pages;
@@ -4698,9 +4698,9 @@ function parseHwp5Document(buffer, options) {
4698
4698
  }
4699
4699
  const blocks = [...doc.headerBlocks, ...bodyBlocks, ...doc.footerBlocks];
4700
4700
  const images = cfb ? extractHwp5Images(cfb.FileIndex, blocks, warnings, !pageFilter) : extractHwp5ImagesLenient(lenientCfb, blocks, warnings, !pageFilter);
4701
- let flatBlocks = _chunkGGZ5PSJOcjs.flattenLayoutTables.call(void 0, blocks);
4701
+ let flatBlocks = _chunkFZA5HW4Kcjs.flattenLayoutTables.call(void 0, blocks);
4702
4702
  if (_optionalChain([options, 'optionalAccess', _112 => _112.dedupeRunningHeaders])) {
4703
- const deduped = _chunkGGZ5PSJOcjs.dedupeRunningHeaders.call(void 0, flatBlocks);
4703
+ const deduped = _chunkFZA5HW4Kcjs.dedupeRunningHeaders.call(void 0, flatBlocks);
4704
4704
  const removed = flatBlocks.length - deduped.length;
4705
4705
  if (removed > 0) warnings.push({ message: `\uBC18\uBCF5 \uB7EC\uB2DD \uD5E4\uB354 ${removed}\uAC1C \uC81C\uAC70`, code: "HIDDEN_TEXT_FILTERED" });
4706
4706
  flatBlocks = deduped;
@@ -4709,10 +4709,10 @@ function parseHwp5Document(buffer, options) {
4709
4709
  detectHwp5Headings(flatBlocks, docInfo);
4710
4710
  }
4711
4711
  const outline = flatBlocks.filter((b) => b.type === "heading" && b.level && b.text).map((b) => ({ level: b.level, text: b.text, pageNumber: b.pageNumber }));
4712
- let markdown = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, flatBlocks);
4712
+ let markdown = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, flatBlocks);
4713
4713
  if (_optionalChain([options, 'optionalAccess', _113 => _113.inlineImages]) && images.length > 0) {
4714
4714
  try {
4715
- markdown = _chunkGGZ5PSJOcjs.inlineImagesIntoMarkdown.call(void 0, markdown, images, { compress: true });
4715
+ markdown = _chunkFZA5HW4Kcjs.inlineImagesIntoMarkdown.call(void 0, markdown, images, { compress: true });
4716
4716
  } catch (inlineErr) {
4717
4717
  warnings.push({ message: `\uC774\uBBF8\uC9C0 \uC778\uB77C\uC778 \uC2E4\uD328 \u2014 \uC6D0\uBCF8 \uD30C\uC77C \uCC38\uC870\uB85C \uD3F4\uBC31: ${inlineErr instanceof Error ? inlineErr.message : "\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"}`, code: "SKIPPED_IMAGE" });
4718
4718
  }
@@ -4872,7 +4872,7 @@ function findSectionsLenient(lcfb, compressed) {
4872
4872
  if (!raw) break;
4873
4873
  const content = compressed ? decompressStream(raw) : raw;
4874
4874
  totalDecompressed += content.length;
4875
- if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
4875
+ if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkD6NDAA72cjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
4876
4876
  sections.push({ idx: i, content });
4877
4877
  }
4878
4878
  if (sections.length === 0) {
@@ -4884,7 +4884,7 @@ function findSectionsLenient(lcfb, compressed) {
4884
4884
  if (raw) {
4885
4885
  const content = compressed ? decompressStream(raw) : raw;
4886
4886
  totalDecompressed += content.length;
4887
- if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
4887
+ if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkD6NDAA72cjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
4888
4888
  sections.push({ idx, content });
4889
4889
  }
4890
4890
  }
@@ -4901,7 +4901,7 @@ function findViewTextSectionsLenient(lcfb, compressed) {
4901
4901
  try {
4902
4902
  const content = decryptViewText(raw, compressed);
4903
4903
  totalDecompressed += content.length;
4904
- if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
4904
+ if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkD6NDAA72cjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
4905
4905
  sections.push({ idx: i, content });
4906
4906
  } catch (e30) {
4907
4907
  break;
@@ -5018,7 +5018,7 @@ function parseParagraph(records, start, end, ctx) {
5018
5018
  const ctrl = ctrls[r.ctrlIdx];
5019
5019
  if (!_optionalChain([ctrl, 'optionalAccess', _126 => _126.href]) || r.end <= r.start) continue;
5020
5020
  if (applied.some(([s, e]) => r.start < e && r.end > s)) continue;
5021
- const href = _chunkJ7DBL77Bcjs.sanitizeHref.call(void 0, ctrl.href);
5021
+ const href = _chunkD6NDAA72cjs.sanitizeHref.call(void 0, ctrl.href);
5022
5022
  if (!href) continue;
5023
5023
  const anchor = text.slice(r.start, r.end);
5024
5024
  if (!anchor.trim()) continue;
@@ -5258,8 +5258,8 @@ function parseTableControl(ctrl, records, ctx) {
5258
5258
  let tableIdx = -1;
5259
5259
  for (let i2 = childStart; i2 < childEnd; i2++) {
5260
5260
  if (records[i2].tagId === TAG_TABLE && records[i2].data.length >= 8) {
5261
- rows = Math.min(records[i2].data.readUInt16LE(4), _chunkGGZ5PSJOcjs.MAX_ROWS);
5262
- cols = Math.min(records[i2].data.readUInt16LE(6), _chunkGGZ5PSJOcjs.MAX_COLS);
5261
+ rows = Math.min(records[i2].data.readUInt16LE(4), _chunkFZA5HW4Kcjs.MAX_ROWS);
5262
+ cols = Math.min(records[i2].data.readUInt16LE(6), _chunkFZA5HW4Kcjs.MAX_COLS);
5263
5263
  tableIdx = i2;
5264
5264
  break;
5265
5265
  }
@@ -5308,7 +5308,7 @@ function parseTableControl(ctrl, records, ctx) {
5308
5308
  return table3;
5309
5309
  }
5310
5310
  const cellRows = arrangeCells(rows, cols, cells);
5311
- const table2 = _chunkGGZ5PSJOcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols: ctx.doc.keepTrailingEmptyCols });
5311
+ const table2 = _chunkFZA5HW4Kcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols: ctx.doc.keepTrailingEmptyCols });
5312
5312
  if (caption && table2.rows > 0) table2.caption = caption;
5313
5313
  return table2.rows > 0 ? table2 : null;
5314
5314
  }
@@ -5325,8 +5325,8 @@ function parseCell(records, lhIdx, end, ctx) {
5325
5325
  rowAddr = rec.data.readUInt16LE(10);
5326
5326
  const cs = rec.data.readUInt16LE(12);
5327
5327
  const rs = rec.data.readUInt16LE(14);
5328
- if (cs > 0) colSpan = Math.min(cs, _chunkGGZ5PSJOcjs.MAX_COLS);
5329
- if (rs > 0) rowSpan = Math.min(rs, _chunkGGZ5PSJOcjs.MAX_ROWS);
5328
+ if (cs > 0) colSpan = Math.min(cs, _chunkFZA5HW4Kcjs.MAX_COLS);
5329
+ if (rs > 0) rowSpan = Math.min(rs, _chunkFZA5HW4Kcjs.MAX_ROWS);
5330
5330
  }
5331
5331
  const blocks = ctx.depth < MAX_NEST_DEPTH ? parseParagraphList(records, lhIdx + 1, end, { ...ctx, depth: ctx.depth + 1 }) : [];
5332
5332
  const parts = [];
@@ -5336,7 +5336,7 @@ function parseCell(records, lhIdx, end, ctx) {
5336
5336
  parts.push(`![image](hwp5bin:${b.text})`);
5337
5337
  hasStructure = true;
5338
5338
  } else if (b.type === "table" && b.table) {
5339
- const flat = _chunkGGZ5PSJOcjs.convertTableToText.call(void 0, b.table.cells);
5339
+ const flat = _chunkFZA5HW4Kcjs.convertTableToText.call(void 0, b.table.cells);
5340
5340
  if (flat) parts.push(flat);
5341
5341
  hasStructure = true;
5342
5342
  } else if (b.text) {
@@ -17611,25 +17611,25 @@ function desEcbDecrypt(data, key) {
17611
17611
  }
17612
17612
  function readLayout(data) {
17613
17613
  if (data.length < FIXED_HEADER_BYTES) {
17614
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("HWP3 \uC554\uD638 \uBB38\uC11C: \uD5E4\uB354\uAC00 \uC798\uB838\uC2B5\uB2C8\uB2E4");
17614
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("HWP3 \uC554\uD638 \uBB38\uC11C: \uD5E4\uB354\uAC00 \uC798\uB838\uC2B5\uB2C8\uB2E4");
17615
17615
  }
17616
17616
  const infoBlockLength = data[INFO_BLOCK_LENGTH_OFFSET] | data[INFO_BLOCK_LENGTH_OFFSET + 1] << 8;
17617
17617
  const payloadOffset = FIXED_HEADER_BYTES + infoBlockLength;
17618
17618
  if (payloadOffset >= data.length) {
17619
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("HWP3 \uC554\uD638 \uBB38\uC11C: \uBCF8\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
17619
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("HWP3 \uC554\uD638 \uBB38\uC11C: \uBCF8\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
17620
17620
  }
17621
17621
  return { payloadOffset, compressed: data[COMPRESSION_FLAG_OFFSET] !== 0 };
17622
17622
  }
17623
17623
  function decryptHwp3Document(input, password) {
17624
17624
  const { payloadOffset, compressed } = readLayout(input);
17625
17625
  if (!compressed) {
17626
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWP3 \uC554\uD638\uD654 \uBC29\uC2DD\uC785\uB2C8\uB2E4 (\uC555\uCD95\uB418\uC9C0 \uC54A\uC740 \uC554\uD638 \uBCF8\uBB38)");
17626
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWP3 \uC554\uD638\uD654 \uBC29\uC2DD\uC785\uB2C8\uB2E4 (\uC555\uCD95\uB418\uC9C0 \uC54A\uC740 \uC554\uD638 \uBCF8\uBB38)");
17627
17627
  }
17628
17628
  const source = Buffer.from(input);
17629
17629
  const payload = source.subarray(payloadOffset);
17630
17630
  const aligned = payload.subarray(0, payload.length - payload.length % 8);
17631
17631
  if (aligned.length === 0) {
17632
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("HWP3 \uC554\uD638 \uBB38\uC11C: \uBCF8\uBB38\uC774 \uB108\uBB34 \uC9E7\uC2B5\uB2C8\uB2E4");
17632
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("HWP3 \uC554\uD638 \uBB38\uC11C: \uBCF8\uBB38\uC774 \uB108\uBB34 \uC9E7\uC2B5\uB2C8\uB2E4");
17633
17633
  }
17634
17634
  const decrypted = desEcbDecrypt(aligned, deriveDesKey(password));
17635
17635
  let inflated;
@@ -17637,14 +17637,14 @@ function decryptHwp3Document(input, password) {
17637
17637
  inflated = _zlib.inflateRawSync.call(void 0, decrypted, { maxOutputLength: MAX_DECOMPRESSED_BYTES });
17638
17638
  } catch (err) {
17639
17639
  if (_optionalChain([err, 'optionalAccess', _139 => _139.code]) === "ERR_BUFFER_TOO_LARGE") {
17640
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
17640
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
17641
17641
  `HWP3 \uC554\uD638 \uBCF8\uBB38\uC758 \uC555\uCD95 \uD574\uC81C \uACB0\uACFC\uAC00 \uCD5C\uB300 \uD5C8\uC6A9 \uD06C\uAE30(${MAX_DECOMPRESSED_BYTES / 1024 / 1024}MB)\uB97C \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4`
17642
17642
  );
17643
17643
  }
17644
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
17644
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
17645
17645
  }
17646
17646
  if (inflated.length <= PASSWORD_PREFIX_BYTES) {
17647
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
17647
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uAC70\uB098 \uC554\uD638\uD654 \uB370\uC774\uD130\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
17648
17648
  }
17649
17649
  const body = inflated.subarray(PASSWORD_PREFIX_BYTES);
17650
17650
  const out = Buffer.concat([source.subarray(0, payloadOffset), body]);
@@ -17679,7 +17679,7 @@ function parseHwp3Document(buffer, options) {
17679
17679
  let source = Buffer.from(buffer);
17680
17680
  if (isEncryptedHwp3(source)) {
17681
17681
  if (!_optionalChain([options, 'optionalAccess', _140 => _140.password])) {
17682
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
17682
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
17683
17683
  "\uC554\uD638\uB85C \uBCF4\uD638\uB41C HWP3 \uBB38\uC11C\uC785\uB2C8\uB2E4. password \uC635\uC158\uC5D0 \uC5F4\uAE30 \uC554\uD638\uB97C \uC9C0\uC815\uD558\uC138\uC694."
17684
17684
  );
17685
17685
  }
@@ -17696,10 +17696,10 @@ function parseHwp3Document(buffer, options) {
17696
17696
  body = _zlib.inflateRawSync.call(void 0, tail, { maxOutputLength: MAX_DECOMPRESS_SIZE3 });
17697
17697
  } catch (err) {
17698
17698
  if (_optionalChain([err, 'optionalAccess', _141 => _141.code]) === "ERR_BUFFER_TOO_LARGE") {
17699
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`HWP3 \uC555\uCD95 \uD574\uC81C \uACB0\uACFC\uAC00 \uCD5C\uB300 \uD5C8\uC6A9 \uD06C\uAE30(${MAX_DECOMPRESS_SIZE3 / 1024 / 1024}MB)\uB97C \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4`);
17699
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`HWP3 \uC555\uCD95 \uD574\uC81C \uACB0\uACFC\uAC00 \uCD5C\uB300 \uD5C8\uC6A9 \uD06C\uAE30(${MAX_DECOMPRESS_SIZE3 / 1024 / 1024}MB)\uB97C \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4`);
17700
17700
  }
17701
17701
  const msg2 = err instanceof Error ? err.message : String(err);
17702
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`HWP3 \uC555\uCD95 \uD574\uC81C \uC2E4\uD328: ${msg2}`);
17702
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`HWP3 \uC555\uCD95 \uD574\uC81C \uC2E4\uD328: ${msg2}`);
17703
17703
  }
17704
17704
  } else {
17705
17705
  body = tail;
@@ -17941,7 +17941,7 @@ function getTextContent(el) {
17941
17941
  return _nullishCoalesce(_optionalChain([el, 'access', _144 => _144.textContent, 'optionalAccess', _145 => _145.trim, 'call', _146 => _146()]), () => ( ""));
17942
17942
  }
17943
17943
  function parseXml(text) {
17944
- return new (0, _xmldom.DOMParser)().parseFromString(_chunkJ7DBL77Bcjs.stripDtd.call(void 0, text), "text/xml");
17944
+ return new (0, _xmldom.DOMParser)().parseFromString(_chunkD6NDAA72cjs.stripDtd.call(void 0, text), "text/xml");
17945
17945
  }
17946
17946
  function collectRichText(root) {
17947
17947
  let out = "";
@@ -18176,7 +18176,7 @@ function sheetToBlocks(sheetName, grid, merges, maxRow, maxCol, sheetIndex, keep
18176
18176
  cellRows.push(row);
18177
18177
  }
18178
18178
  if (cellRows.length > 0) {
18179
- const table2 = _chunkGGZ5PSJOcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols });
18179
+ const table2 = _chunkFZA5HW4Kcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols });
18180
18180
  if (table2.rows > 0) {
18181
18181
  blocks.push({ type: "table", table: table2, pageNumber: sheetIndex + 1 });
18182
18182
  }
@@ -18184,12 +18184,12 @@ function sheetToBlocks(sheetName, grid, merges, maxRow, maxCol, sheetIndex, keep
18184
18184
  return blocks;
18185
18185
  }
18186
18186
  async function parseXlsxDocument(buffer, options) {
18187
- _chunkJ7DBL77Bcjs.precheckZipSize.call(void 0, buffer, MAX_DECOMPRESS_SIZE4);
18187
+ _chunkD6NDAA72cjs.precheckZipSize.call(void 0, buffer, MAX_DECOMPRESS_SIZE4);
18188
18188
  const zip = await _jszip2.default.loadAsync(buffer);
18189
18189
  const warnings = [];
18190
18190
  const workbookFile = zip.file("xl/workbook.xml");
18191
18191
  if (!workbookFile) {
18192
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 XLSX \uD30C\uC77C: xl/workbook.xml\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
18192
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 XLSX \uD30C\uC77C: xl/workbook.xml\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
18193
18193
  }
18194
18194
  let sharedStrings = [];
18195
18195
  const ssFile = zip.file("xl/sharedStrings.xml");
@@ -18198,7 +18198,7 @@ async function parseXlsxDocument(buffer, options) {
18198
18198
  }
18199
18199
  const { sheets, date1904 } = parseWorkbook(await workbookFile.async("text"));
18200
18200
  if (sheets.length === 0) {
18201
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("XLSX \uD30C\uC77C\uC5D0 \uC2DC\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4");
18201
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("XLSX \uD30C\uC77C\uC5D0 \uC2DC\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4");
18202
18202
  }
18203
18203
  let dateXfs = /* @__PURE__ */ new Map();
18204
18204
  const stylesFile = zip.file("xl/styles.xml");
@@ -18282,7 +18282,7 @@ async function parseXlsxDocument(buffer, options) {
18282
18282
  } catch (e32) {
18283
18283
  }
18284
18284
  }
18285
- const markdown = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, blocks);
18285
+ const markdown = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, blocks);
18286
18286
  return { markdown, blocks, metadata, warnings: warnings.length > 0 ? warnings : void 0 };
18287
18287
  }
18288
18288
 
@@ -18733,11 +18733,11 @@ function processGlobals(records) {
18733
18733
  const xfFmtIds = [];
18734
18734
  const firstBof = records[0];
18735
18735
  if (!firstBof || firstBof.opcode !== OP_BOF) {
18736
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("XLS: \uCCAB \uB808\uCF54\uB4DC\uAC00 BOF\uAC00 \uC544\uB2D8");
18736
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("XLS: \uCCAB \uB808\uCF54\uB4DC\uAC00 BOF\uAC00 \uC544\uB2D8");
18737
18737
  }
18738
18738
  const bof = decodeBof(firstBof.data);
18739
18739
  if (!bof || bof.dt !== DT_GLOBALS) {
18740
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("XLS: Globals \uC11C\uBE0C\uC2A4\uD2B8\uB9BC BOF \uB204\uB77D");
18740
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("XLS: Globals \uC11C\uBE0C\uC2A4\uD2B8\uB9BC BOF \uB204\uB77D");
18741
18741
  }
18742
18742
  let i = 1;
18743
18743
  while (i < records.length) {
@@ -18872,7 +18872,7 @@ function sheetToBlocks2(sheetName, sheet, sheetIndex, keepAnchoredEmptyCols) {
18872
18872
  cellRows.push(row);
18873
18873
  }
18874
18874
  if (cellRows.length > 0) {
18875
- const table2 = _chunkGGZ5PSJOcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols });
18875
+ const table2 = _chunkFZA5HW4Kcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols });
18876
18876
  if (table2.rows > 0) {
18877
18877
  blocks.push({ type: "table", table: table2, pageNumber: sheetIndex + 1 });
18878
18878
  }
@@ -18885,28 +18885,28 @@ async function parseXlsDocument(buffer, options) {
18885
18885
  try {
18886
18886
  cfb = parseLenientCfb(buf);
18887
18887
  } catch (e) {
18888
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
18888
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
18889
18889
  `XLS: OLE2 \uC2DC\uADF8\uB2C8\uCC98 \uAC80\uC99D \uC2E4\uD328 \u2014 ${e instanceof Error ? e.message : "\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"}`
18890
18890
  );
18891
18891
  }
18892
18892
  const wb = _nullishCoalesce(cfb.findStream("/Workbook"), () => ( cfb.findStream("/Book")));
18893
18893
  if (!wb) {
18894
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("XLS: Workbook \uC2A4\uD2B8\uB9BC\uC774 \uC5C6\uC74C (BIFF5 \uB610\uB294 \uBE44\uD45C\uC900 \uD30C\uC77C)");
18894
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("XLS: Workbook \uC2A4\uD2B8\uB9BC\uC774 \uC5C6\uC74C (BIFF5 \uB610\uB294 \uBE44\uD45C\uC900 \uD30C\uC77C)");
18895
18895
  }
18896
18896
  const records = readRecords2(wb);
18897
18897
  if (records.length === 0) {
18898
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("XLS: \uC2DC\uADF8\uB2C8\uCC98 \uB808\uCF54\uB4DC\uAC00 \uC5C6\uC74C (Workbook \uC2A4\uD2B8\uB9BC \uC190\uC0C1)");
18898
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("XLS: \uC2DC\uADF8\uB2C8\uCC98 \uB808\uCF54\uB4DC\uAC00 \uC5C6\uC74C (Workbook \uC2A4\uD2B8\uB9BC \uC190\uC0C1)");
18899
18899
  }
18900
18900
  const firstBof = decodeBof(records[0].data);
18901
18901
  if (firstBof && firstBof.vers !== 1536) {
18902
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
18902
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
18903
18903
  `XLS: BIFF8(0x0600)\uB9CC \uC9C0\uC6D0 \u2014 \uBCF8 \uD30C\uC77C\uC740 0x${firstBof.vers.toString(16)}`
18904
18904
  );
18905
18905
  }
18906
18906
  const globals = processGlobals(records);
18907
18907
  const warnings = [];
18908
18908
  if (globals.encrypted) {
18909
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("XLS \uD30C\uC77C\uC774 \uC554\uD638\uD654\uB418\uC5B4 \uC788\uC5B4 \uD30C\uC2F1\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
18909
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("XLS \uD30C\uC77C\uC774 \uC554\uD638\uD654\uB418\uC5B4 \uC788\uC5B4 \uD30C\uC2F1\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
18910
18910
  }
18911
18911
  const convertNum = globals.dateXfs.size > 0 ? (n, ixfe) => {
18912
18912
  const kind = globals.dateXfs.get(ixfe);
@@ -18957,7 +18957,7 @@ async function parseXlsDocument(buffer, options) {
18957
18957
  pageCount: totalSheets
18958
18958
  };
18959
18959
  return {
18960
- markdown: _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, allBlocks),
18960
+ markdown: _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, allBlocks),
18961
18961
  blocks: allBlocks,
18962
18962
  metadata,
18963
18963
  warnings: warnings.length > 0 ? warnings : void 0
@@ -19385,7 +19385,7 @@ function getAttr(el, localName3) {
19385
19385
  return null;
19386
19386
  }
19387
19387
  function parseXml2(text) {
19388
- return new (0, _xmldom.DOMParser)().parseFromString(_chunkJ7DBL77Bcjs.stripDtd.call(void 0, text), "text/xml");
19388
+ return new (0, _xmldom.DOMParser)().parseFromString(_chunkD6NDAA72cjs.stripDtd.call(void 0, text), "text/xml");
19389
19389
  }
19390
19390
  function parseStyles(xml) {
19391
19391
  const doc = parseXml2(xml);
@@ -19543,7 +19543,7 @@ function fieldUrlFromInstr(instr) {
19543
19543
  function makeLink(text, rawHref) {
19544
19544
  if (!text) return "";
19545
19545
  if (!rawHref) return text;
19546
- const href = _chunkJ7DBL77Bcjs.sanitizeHref.call(void 0, rawHref);
19546
+ const href = _chunkD6NDAA72cjs.sanitizeHref.call(void 0, rawHref);
19547
19547
  return href ? `[${text}](${href})` : text;
19548
19548
  }
19549
19549
  function collectInline(p, footnotes, rels) {
@@ -19737,7 +19737,7 @@ ${cell2.text}` : cell2.text;
19737
19737
  return { text: cell2.text, colSpan: cell2.colSpan, rowSpan, colAddr: cell2.col, rowAddr: r };
19738
19738
  })
19739
19739
  );
19740
- const table2 = _chunkGGZ5PSJOcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols: keepEmptyCols });
19740
+ const table2 = _chunkFZA5HW4Kcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols: keepEmptyCols });
19741
19741
  if (table2.rows === 0 || table2.cols === 0) return null;
19742
19742
  return { type: "table", table: table2 };
19743
19743
  }
@@ -19839,12 +19839,12 @@ function emitParagraphImages(p, imageMap, linked, out) {
19839
19839
  }
19840
19840
  }
19841
19841
  async function parseDocxDocument(buffer, options) {
19842
- _chunkJ7DBL77Bcjs.precheckZipSize.call(void 0, buffer, MAX_DECOMPRESS_SIZE5);
19842
+ _chunkD6NDAA72cjs.precheckZipSize.call(void 0, buffer, MAX_DECOMPRESS_SIZE5);
19843
19843
  const zip = await _jszip2.default.loadAsync(buffer);
19844
19844
  const warnings = [];
19845
19845
  const docFile = zip.file("word/document.xml");
19846
19846
  if (!docFile) {
19847
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 DOCX \uD30C\uC77C: word/document.xml\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
19847
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 DOCX \uD30C\uC77C: word/document.xml\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
19848
19848
  }
19849
19849
  let rels = /* @__PURE__ */ new Map();
19850
19850
  const relsFile = zip.file("word/_rels/document.xml.rels");
@@ -19891,7 +19891,7 @@ async function parseDocxDocument(buffer, options) {
19891
19891
  const doc = parseXml2(docXml);
19892
19892
  const body = findElements(doc, "body");
19893
19893
  if (body.length === 0) {
19894
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("DOCX \uBCF8\uBB38(w:body)\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
19894
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("DOCX \uBCF8\uBB38(w:body)\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
19895
19895
  }
19896
19896
  const { imageMap, images } = await buildImageMap(zip, rels, doc, warnings);
19897
19897
  const linkedImages = /* @__PURE__ */ new Set();
@@ -19942,7 +19942,7 @@ async function parseDocxDocument(buffer, options) {
19942
19942
  }
19943
19943
  }
19944
19944
  const outline = blocks.filter((b) => b.type === "heading").map((b) => ({ level: _nullishCoalesce(b.level, () => ( 2)), text: _nullishCoalesce(b.text, () => ( "")) }));
19945
- const markdown = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, blocks);
19945
+ const markdown = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, blocks);
19946
19946
  return {
19947
19947
  markdown,
19948
19948
  blocks,
@@ -19960,11 +19960,11 @@ var MAX_TABLE_COLS = 500;
19960
19960
  var MAX_HWPML_BYTES = 50 * 1024 * 1024;
19961
19961
  function parseHwpmlDocument(buffer, options) {
19962
19962
  if (buffer.byteLength > MAX_HWPML_BYTES) {
19963
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`HWPML \uD30C\uC77C \uD06C\uAE30 \uCD08\uACFC (${(buffer.byteLength / 1024 / 1024).toFixed(1)}MB > 50MB)`);
19963
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`HWPML \uD30C\uC77C \uD06C\uAE30 \uCD08\uACFC (${(buffer.byteLength / 1024 / 1024).toFixed(1)}MB > 50MB)`);
19964
19964
  }
19965
19965
  const text = new TextDecoder("utf-8").decode(buffer).replace(/^\uFEFF/, "");
19966
19966
  const normalized = text.replace(/&nbsp;/g, "&#160;");
19967
- const xml = _chunkJ7DBL77Bcjs.stripDtd.call(void 0, normalized);
19967
+ const xml = _chunkD6NDAA72cjs.stripDtd.call(void 0, normalized);
19968
19968
  const warnings = [];
19969
19969
  const parser = new (0, _xmldom.DOMParser)({
19970
19970
  onError: (_level, msg2) => {
@@ -20004,7 +20004,7 @@ function parseHwpmlDocument(buffer, options) {
20004
20004
  parseSection2(el, blocks, paraShapeMap, sectionIdx, warnings, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _190 => _190.keepTrailingEmptyCols]), () => ( false)));
20005
20005
  }
20006
20006
  const outline = blocks.filter((b) => b.type === "heading" && b.text).map((b) => ({ level: _nullishCoalesce(b.level, () => ( 1)), text: b.text, pageNumber: b.pageNumber }));
20007
- const markdown = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, blocks);
20007
+ const markdown = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, blocks);
20008
20008
  return {
20009
20009
  markdown,
20010
20010
  blocks,
@@ -20169,7 +20169,7 @@ function buildHmlTable(el, warnings, keep, tableDepth) {
20169
20169
  const r = Math.min(Math.max(_nullishCoalesce(cell2.rowAddr, () => ( 0)), 0), rowCount - 1);
20170
20170
  cellRows[r].push(cell2);
20171
20171
  }
20172
- const table2 = _chunkGGZ5PSJOcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols: keep });
20172
+ const table2 = _chunkFZA5HW4Kcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols: keep });
20173
20173
  if (structured.length > 0) {
20174
20174
  const claimed = /* @__PURE__ */ new Set();
20175
20175
  for (const { ctx, cellBlocks } of structured) {
@@ -21680,7 +21680,7 @@ function fillClickHereInXml(xml, cursor, blockedLabels) {
21680
21680
  };
21681
21681
  }
21682
21682
  async function extractClickHereFields(hwpxBuffer) {
21683
- _chunkJ7DBL77Bcjs.precheckZipSize.call(void 0, hwpxBuffer);
21683
+ _chunkD6NDAA72cjs.precheckZipSize.call(void 0, hwpxBuffer);
21684
21684
  const zip = await _jszip2.default.loadAsync(hwpxBuffer);
21685
21685
  const sectionPaths = Object.keys(zip.files).filter((name) => /[Ss]ection\d+\.xml$/i.test(name)).sort();
21686
21686
  const fields = [];
@@ -21728,19 +21728,19 @@ function parseCentralDirectory(buf) {
21728
21728
  }
21729
21729
  }
21730
21730
  }
21731
- if (eocdOffset < 0) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP EOCD\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
21731
+ if (eocdOffset < 0) throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP EOCD\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
21732
21732
  const totalEntries = view.getUint16(eocdOffset + 10, true);
21733
21733
  const cdSize = view.getUint32(eocdOffset + 12, true);
21734
21734
  const cdOffset = view.getUint32(eocdOffset + 16, true);
21735
- if (cdOffset === 4294967295 || totalEntries === 65535) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP64\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
21735
+ if (cdOffset === 4294967295 || totalEntries === 65535) throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP64\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
21736
21736
  if (eocdOffset >= 20 && view.getUint32(eocdOffset - 20, true) === ZIP64_EOCD_LOC_SIG) {
21737
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP64\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
21737
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP64\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
21738
21738
  }
21739
21739
  const decoder = new TextDecoder("utf-8");
21740
21740
  const entries = [];
21741
21741
  let pos = cdOffset;
21742
21742
  for (let i = 0; i < totalEntries; i++) {
21743
- if (view.getUint32(pos, true) !== CD_SIG) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP Central Directory \uC190\uC0C1");
21743
+ if (view.getUint32(pos, true) !== CD_SIG) throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP Central Directory \uC190\uC0C1");
21744
21744
  const flags = view.getUint16(pos + 8, true);
21745
21745
  const method = view.getUint16(pos + 10, true);
21746
21746
  const crc = view.getUint32(pos + 16, true);
@@ -21751,7 +21751,7 @@ function parseCentralDirectory(buf) {
21751
21751
  const commentLen = view.getUint16(pos + 32, true);
21752
21752
  const localOffset = view.getUint32(pos + 42, true);
21753
21753
  if (compSize === 4294967295 || uncompSize === 4294967295 || localOffset === 4294967295) {
21754
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP64\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
21754
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP64\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
21755
21755
  }
21756
21756
  const name = decoder.decode(buf.subarray(pos + 46, pos + 46 + nameLen));
21757
21757
  const cdEnd = pos + 46 + nameLen + extraLen + commentLen;
@@ -21780,11 +21780,11 @@ function patchZipEntries(original, replacements, additions) {
21780
21780
  const { entries, cdOffset, eocdOffset } = parseCentralDirectory(original);
21781
21781
  const view = new DataView(original.buffer, original.byteOffset, original.byteLength);
21782
21782
  for (const name of replacements.keys()) {
21783
- if (!entries.some((e) => e.name === name)) throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`ZIP\uC5D0 \uC5C6\uB294 \uC5D4\uD2B8\uB9AC: ${name}`);
21783
+ if (!entries.some((e) => e.name === name)) throw new (0, _chunkD6NDAA72cjs.KordocError)(`ZIP\uC5D0 \uC5C6\uB294 \uC5D4\uD2B8\uB9AC: ${name}`);
21784
21784
  }
21785
21785
  if (additions) {
21786
21786
  for (const name of additions.keys()) {
21787
- if (entries.some((e) => e.name === name)) throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`ZIP\uC5D0 \uC774\uBBF8 \uC788\uB294 \uC5D4\uD2B8\uB9AC: ${name}`);
21787
+ if (entries.some((e) => e.name === name)) throw new (0, _chunkD6NDAA72cjs.KordocError)(`ZIP\uC5D0 \uC774\uBBF8 \uC788\uB294 \uC5D4\uD2B8\uB9AC: ${name}`);
21788
21788
  }
21789
21789
  }
21790
21790
  const byLocal = [...entries].sort((a, b) => a.localOffset - b.localOffset);
@@ -21803,7 +21803,7 @@ function patchZipEntries(original, replacements, additions) {
21803
21803
  offset += seg.length;
21804
21804
  continue;
21805
21805
  }
21806
- if (view.getUint32(e.localOffset, true) !== LOCAL_SIG) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("ZIP \uB85C\uCEEC \uD5E4\uB354 \uC2DC\uADF8\uB2C8\uCC98 \uBD88\uC77C\uCE58");
21806
+ if (view.getUint32(e.localOffset, true) !== LOCAL_SIG) throw new (0, _chunkD6NDAA72cjs.KordocError)("ZIP \uB85C\uCEEC \uD5E4\uB354 \uC2DC\uADF8\uB2C8\uCC98 \uBD88\uC77C\uCE58");
21807
21807
  const nameLen = view.getUint16(e.localOffset + 26, true);
21808
21808
  const extraLen = view.getUint16(e.localOffset + 28, true);
21809
21809
  const headerLen = 30 + nameLen + extraLen;
@@ -21811,7 +21811,7 @@ function patchZipEntries(original, replacements, additions) {
21811
21811
  const hview = new DataView(header.buffer, header.byteOffset, header.byteLength);
21812
21812
  const method = e.method;
21813
21813
  if (method !== 0 && method !== 8) {
21814
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 ZIP \uC555\uCD95 \uBC29\uC2DD(method=${method}): ${e.name} \u2014 STORE(0)/DEFLATE(8)\uB9CC \uAD50\uCCB4 \uAC00\uB2A5`);
21814
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 ZIP \uC555\uCD95 \uBC29\uC2DD(method=${method}): ${e.name} \u2014 STORE(0)/DEFLATE(8)\uB9CC \uAD50\uCCB4 \uAC00\uB2A5`);
21815
21815
  }
21816
21816
  const compData = method === 0 ? newData : new Uint8Array(_zlib.deflateRawSync.call(void 0, newData));
21817
21817
  const crc = crc32(newData);
@@ -21909,11 +21909,11 @@ function patchZipEntries(original, replacements, additions) {
21909
21909
  // src/form/filler-hwpx.ts
21910
21910
  async function fillHwpx(hwpxBuffer, values, blockedLabels) {
21911
21911
  const u8 = new Uint8Array(hwpxBuffer);
21912
- _chunkJ7DBL77Bcjs.precheckZipSize.call(void 0, hwpxBuffer);
21912
+ _chunkD6NDAA72cjs.precheckZipSize.call(void 0, hwpxBuffer);
21913
21913
  const zip = await _jszip2.default.loadAsync(hwpxBuffer);
21914
21914
  const sectionPaths = Object.keys(zip.files).filter((name) => /[Ss]ection\d+\.xml$/i.test(name)).sort();
21915
21915
  if (sectionPaths.length === 0) {
21916
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("HWPX\uC5D0\uC11C \uC139\uC158 \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
21916
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("HWPX\uC5D0\uC11C \uC139\uC158 \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
21917
21917
  }
21918
21918
  const warnings = [];
21919
21919
  const normalizedValues = normalizeValues(values, warnings);
@@ -22226,7 +22226,7 @@ function blocksToPages(blocks) {
22226
22226
  const pages = [];
22227
22227
  for (let pageNumber = min; pageNumber <= max; pageNumber++) {
22228
22228
  const pageBlocks = byPage.get(pageNumber);
22229
- pages.push({ pageNumber, markdown: pageBlocks ? _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, pageBlocks) : "" });
22229
+ pages.push({ pageNumber, markdown: pageBlocks ? _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, pageBlocks) : "" });
22230
22230
  }
22231
22231
  return pages;
22232
22232
  }
@@ -22678,7 +22678,7 @@ function needsGaejosikAssets(gongmun) {
22678
22678
  }
22679
22679
  function assertFiniteRange(name, value, min, max) {
22680
22680
  if (!Number.isFinite(value) || value < min || value > max) {
22681
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`${name} must be a finite number between ${min} and ${max}`);
22681
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`${name} must be a finite number between ${min} and ${max}`);
22682
22682
  }
22683
22683
  }
22684
22684
  function validateGongmunOptions(opts) {
@@ -22693,10 +22693,10 @@ function validateGongmunOptions(opts) {
22693
22693
  assertFiniteRange(`margins.${side}`, value, 0, 200);
22694
22694
  }
22695
22695
  if (opts.margins.left + opts.margins.right >= 210) {
22696
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("margins.left + margins.right must be less than 210");
22696
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("margins.left + margins.right must be less than 210");
22697
22697
  }
22698
22698
  if (opts.margins.top + opts.margins.bottom >= 297) {
22699
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("margins.top + margins.bottom must be less than 297");
22699
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("margins.top + margins.bottom must be less than 297");
22700
22700
  }
22701
22701
  }
22702
22702
  if (opts.sizes) {
@@ -22705,7 +22705,7 @@ function validateGongmunOptions(opts) {
22705
22705
  }
22706
22706
  }
22707
22707
  if (opts.approval && opts.approval.length > 6) {
22708
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("approval must contain at most 6 labels");
22708
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("approval must contain at most 6 labels");
22709
22709
  }
22710
22710
  }
22711
22711
  function incompatibleGongmunWarnings(opts) {
@@ -23243,7 +23243,7 @@ function parseInlineMarkdown(text) {
23243
23243
  else spans.push(...emphasisSpans(m[0]));
23244
23244
  } else {
23245
23245
  const anchor = m[2] || m[3];
23246
- const href = _nullishCoalesce(_chunkJ7DBL77Bcjs.sanitizeHref.call(void 0, m[3].trim()), () => ( void 0));
23246
+ const href = _nullishCoalesce(_chunkD6NDAA72cjs.sanitizeHref.call(void 0, m[3].trim()), () => ( void 0));
23247
23247
  const sub = emphasisSpans(anchor);
23248
23248
  if (href) for (const s of sub) s.href = href;
23249
23249
  spans.push(...sub);
@@ -23457,7 +23457,7 @@ function assertSequentialIds(rows, label, startId) {
23457
23457
  const m = rows[i].match(/\bid="(\d+)"/);
23458
23458
  const got = m ? Number(m[1]) : NaN;
23459
23459
  if (got !== startId + i) {
23460
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
23460
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
23461
23461
  `\uB0B4\uBD80 \uC624\uB958: ${label} id \uD30C\uD2F0\uC158 \uB4DC\uB9AC\uD504\uD2B8 \u2014 ${startId + i} \uC704\uCE58\uC5D0 id=${m ? m[1] : "?"} \uBC29\uCD9C. id \uC0C1\uC218(gen-ids)\uC640 \uC2E4\uC81C \uBC29\uCD9C \uC218\uAC00 \uC5B4\uAE0B\uB0AC\uB2E4 (GJ_CHAR_COUNT\uB958 \uCE74\uC6B4\uD2B8\xB7base \uC0B0\uC220 \uD655\uC778)`
23462
23462
  );
23463
23463
  }
@@ -23541,7 +23541,7 @@ function buildCharProperties(theme, gongmun, ratioVariants = [], extraCharPrXmls
23541
23541
  }
23542
23542
  const expectedBase = charVariantBase(richAssets, !!gongmun);
23543
23543
  if (rows.length !== expectedBase) {
23544
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
23544
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
23545
23545
  `\uB0B4\uBD80 \uC624\uB958: charPr \uAE30\uBCF8 \uBE14\uB85D \uBC29\uCD9C \uC218(${rows.length}) \u2260 charVariantBase(${expectedBase}) \u2014 gen-header \uBC29\uCD9C \uD589\uACFC gen-ids \uCE74\uC6B4\uD2B8 \uC0C1\uC218\uAC00 \uC5B4\uAE0B\uB0AC\uB2E4`
23546
23546
  );
23547
23547
  }
@@ -24437,7 +24437,7 @@ function escapeGfm(text) {
24437
24437
  }
24438
24438
  var HWP_SHAPE_ALT_TEXT_RE = /^(?:모서리가 둥근 |둥근 )?(?:사각형|직사각형|정사각형|원|타원|삼각형|이등변 삼각형|직각 삼각형|선|직선|곡선|화살표|굵은 화살표|이중 화살표|오각형|육각형|팔각형|별|[4-8]점별|십자|십자형|구름|구름형|마름모|도넛|평행사변형|사다리꼴|부채꼴|호|반원|물결|번개|하트|빗금|블록 화살표|수식|표|그림|개체|그리기\s?개체|묶음\s?개체|글상자|수식\s?개체|OLE\s?개체)\s?입니다\.?$/gm;
24439
24439
  function sanitizeText(text) {
24440
- let result = _chunkGGZ5PSJOcjs.mapPuaText.call(void 0, text).replace(/[\u{F0000}-\u{FFFFD}]/gu, "").replace(HWP_SHAPE_ALT_TEXT_RE, "").replace(/ +/g, " ").trim();
24440
+ let result = _chunkFZA5HW4Kcjs.mapPuaText.call(void 0, text).replace(/[\u{F0000}-\u{FFFFD}]/gu, "").replace(HWP_SHAPE_ALT_TEXT_RE, "").replace(/ +/g, " ").trim();
24441
24441
  if (result.length <= 30 && result.includes(" ")) {
24442
24442
  const tokens = result.split(" ");
24443
24443
  const koreanSingleCharCount = tokens.filter((t) => t.length === 1 && /[가-힯ㄱ-ㆎ]/.test(t)).length;
@@ -24609,7 +24609,7 @@ function parseHtmlTable(raw) {
24609
24609
  const cs = parseInt(_optionalChain([attrs, 'access', _318 => _318.match, 'call', _319 => _319(/colspan\s*=\s*["']?(\d+)/i), 'optionalAccess', _320 => _320[1]]) || "1", 10);
24610
24610
  const rs = parseInt(_optionalChain([attrs, 'access', _321 => _321.match, 'call', _322 => _322(/rowspan\s*=\s*["']?(\d+)/i), 'optionalAccess', _323 => _323[1]]) || "1", 10);
24611
24611
  cellStart = m.index + m[0].length;
24612
- cellInfo = { colSpan: clampSpan(isNaN(cs) ? 1 : cs, _chunkGGZ5PSJOcjs.MAX_COLS), rowSpan: clampSpan(isNaN(rs) ? 1 : rs, _chunkGGZ5PSJOcjs.MAX_ROWS) };
24612
+ cellInfo = { colSpan: clampSpan(isNaN(cs) ? 1 : cs, _chunkFZA5HW4Kcjs.MAX_COLS), rowSpan: clampSpan(isNaN(rs) ? 1 : rs, _chunkFZA5HW4Kcjs.MAX_ROWS) };
24613
24613
  } else if (cellStart >= 0 && cellInfo && currentRow) {
24614
24614
  currentRow.push({ inner: raw.slice(cellStart, m.index), colSpan: cellInfo.colSpan, rowSpan: cellInfo.rowSpan });
24615
24615
  cellStart = -1;
@@ -25351,8 +25351,8 @@ function layoutHtmlRows(rows) {
25351
25351
  let c = 0;
25352
25352
  for (const cell2 of rows[r].cells) {
25353
25353
  while (occupied.has(`${r},${c}`)) c++;
25354
- const colSpan = clampSpan(cell2.colSpan, _chunkGGZ5PSJOcjs.MAX_COLS);
25355
- const rowSpan = clampSpan(cell2.rowSpan, _chunkGGZ5PSJOcjs.MAX_ROWS);
25354
+ const colSpan = clampSpan(cell2.colSpan, _chunkFZA5HW4Kcjs.MAX_COLS);
25355
+ const rowSpan = clampSpan(cell2.rowSpan, _chunkFZA5HW4Kcjs.MAX_ROWS);
25356
25356
  placed.push({ r, c, colSpan, rowSpan, inner: cell2.inner, isHeader: rows[r].tag === "th" });
25357
25357
  for (let dr = 0; dr < rowSpan; dr++) {
25358
25358
  for (let dc = 0; dc < colSpan; dc++) occupied.add(`${r + dr},${c + dc}`);
@@ -26663,7 +26663,7 @@ function builtinTemplateDir() {
26663
26663
  for (const c of candidates) {
26664
26664
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, c, BUILTIN_TEMPLATES[0].file))) return c;
26665
26665
  }
26666
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uB0B4\uC7A5 templates \uB514\uB809\uD1A0\uB9AC\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4 (\uD328\uD0A4\uC9C0 \uC124\uCE58\uAC00 \uC190\uC0C1\uB418\uC5C8\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4)");
26666
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uB0B4\uC7A5 templates \uB514\uB809\uD1A0\uB9AC\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4 (\uD328\uD0A4\uC9C0 \uC124\uCE58\uAC00 \uC190\uC0C1\uB418\uC5C8\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4)");
26667
26667
  }
26668
26668
  function readBuiltinTemplate(t) {
26669
26669
  const buf = _fs.readFileSync.call(void 0, _path.join.call(void 0, builtinTemplateDir(), t.file));
@@ -27006,12 +27006,12 @@ function buildFloatPicXml(itemId, sizeHu, posXHu, posYHu, ids) {
27006
27006
  return `<hp:pic xmlns:hc="http://www.hancom.co.kr/hwpml/2011/core" id="${ids.id}" zOrder="0" numberingType="PICTURE" textWrap="IN_FRONT_OF_TEXT" textFlow="BOTH_SIDES" lock="0" dropcapstyle="None" href="" groupLevel="0" instid="${ids.instid}" reverse="0"><hp:offset x="0" y="0"/><hp:orgSz width="${w}" height="${h}"/><hp:curSz width="${w}" height="${h}"/><hp:flip horizontal="0" vertical="0"/><hp:rotationInfo angle="0" centerX="${Math.round(w / 2)}" centerY="${Math.round(h / 2)}" rotateimage="1"/><hp:renderingInfo><hc:transMatrix e1="1" e2="0" e3="0" e4="0" e5="1" e6="0"/><hc:scaMatrix e1="1" e2="0" e3="0" e4="0" e5="1" e6="0"/><hc:rotMatrix e1="1" e2="0" e3="0" e4="0" e5="1" e6="0"/></hp:renderingInfo><hp:imgRect><hc:pt0 x="0" y="0"/><hc:pt1 x="${w}" y="0"/><hc:pt2 x="${w}" y="${h}"/><hc:pt3 x="0" y="${h}"/></hp:imgRect><hp:imgClip left="0" right="${w}" top="0" bottom="${h}"/><hp:inMargin left="0" right="0" top="0" bottom="0"/><hp:imgDim dimwidth="${w}" dimheight="${h}"/><hc:img binaryItemIDRef="${itemId}" bright="0" contrast="0" effect="REAL_PIC" alpha="0"/><hp:effects/><hp:sz width="${w}" widthRelTo="ABSOLUTE" height="${h}" heightRelTo="ABSOLUTE" protect="0"/><hp:pos treatAsChar="0" affectLSpacing="0" flowWithText="0" allowOverlap="1" holdAnchorAndSO="0" vertRelTo="PARA" horzRelTo="COLUMN" vertAlign="TOP" horzAlign="LEFT" vertOffset="${posYHu}" horzOffset="${posXHu}"/><hp:outMargin left="0" right="0" top="0" bottom="0"/><hp:shapeComment>kordoc seal</hp:shapeComment></hp:pic>`;
27007
27007
  }
27008
27008
  async function placeSealHwpx(hwpxBuffer, ops) {
27009
- if (ops.length === 0) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("place_seal: \uBC30\uCE58\uD560 \uB3C4\uC7A5\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
27009
+ if (ops.length === 0) throw new (0, _chunkD6NDAA72cjs.KordocError)("place_seal: \uBC30\uCE58\uD560 \uB3C4\uC7A5\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
27010
27010
  const u8 = new Uint8Array(hwpxBuffer);
27011
- _chunkJ7DBL77Bcjs.precheckZipSize.call(void 0, hwpxBuffer);
27011
+ _chunkD6NDAA72cjs.precheckZipSize.call(void 0, hwpxBuffer);
27012
27012
  const zip = await _jszip2.default.loadAsync(hwpxBuffer);
27013
27013
  const sectionPaths = Object.keys(zip.files).filter((name) => /[Ss]ection\d+\.xml$/i.test(name)).sort((a, b) => Number(_nullishCoalesce(_optionalChain([a, 'access', _436 => _436.match, 'call', _437 => _437(/(\d+)\.xml$/i), 'optionalAccess', _438 => _438[1]]), () => ( 0))) - Number(_nullishCoalesce(_optionalChain([b, 'access', _439 => _439.match, 'call', _440 => _440(/(\d+)\.xml$/i), 'optionalAccess', _441 => _441[1]]), () => ( 0))));
27014
- if (sectionPaths.length === 0) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("HWPX\uC5D0\uC11C \uC139\uC158 \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
27014
+ if (sectionPaths.length === 0) throw new (0, _chunkD6NDAA72cjs.KordocError)("HWPX\uC5D0\uC11C \uC139\uC158 \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
27015
27015
  const manifestPath = Object.keys(zip.files).find((name) => /\.hpf$/i.test(name));
27016
27016
  const headerPath = Object.keys(zip.files).find((name) => /(^|\/)header\.xml$/i.test(name));
27017
27017
  const styles = headerPath ? parseRenderStyles(await zip.file(headerPath).async("text")) : null;
@@ -27052,11 +27052,11 @@ async function placeSealHwpx(hwpxBuffer, ops) {
27052
27052
  const manifestItems = [];
27053
27053
  const placed = [];
27054
27054
  for (const op of ops) {
27055
- if (!op.anchor) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("place_seal: anchor \uBB38\uAD6C\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4");
27056
- if (!op.image || op.image.length === 0) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("place_seal: \uB3C4\uC7A5 \uC774\uBBF8\uC9C0\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4");
27055
+ if (!op.anchor) throw new (0, _chunkD6NDAA72cjs.KordocError)("place_seal: anchor \uBB38\uAD6C\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4");
27056
+ if (!op.image || op.image.length === 0) throw new (0, _chunkD6NDAA72cjs.KordocError)("place_seal: \uB3C4\uC7A5 \uC774\uBBF8\uC9C0\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4");
27057
27057
  const ext = (_nullishCoalesce(op.ext, () => ( "png"))).toLowerCase();
27058
- if (!MIME[ext]) throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`place_seal: \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uC774\uBBF8\uC9C0 \uD655\uC7A5\uC790 .${ext} (png/jpg/bmp/gif)`);
27059
- if (!imageMagicMatches(op.image, ext)) throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`place_seal: \uC774\uBBF8\uC9C0 \uB0B4\uC6A9\uC774 .${ext} \uD615\uC2DD\uC774 \uC544\uB2D9\uB2C8\uB2E4 (\uB9E4\uC9C1\uBC14\uC774\uD2B8 \uBD88\uC77C\uCE58)`);
27058
+ if (!MIME[ext]) throw new (0, _chunkD6NDAA72cjs.KordocError)(`place_seal: \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uC774\uBBF8\uC9C0 \uD655\uC7A5\uC790 .${ext} (png/jpg/bmp/gif)`);
27059
+ if (!imageMagicMatches(op.image, ext)) throw new (0, _chunkD6NDAA72cjs.KordocError)(`place_seal: \uC774\uBBF8\uC9C0 \uB0B4\uC6A9\uC774 .${ext} \uD615\uC2DD\uC774 \uC544\uB2D9\uB2C8\uB2E4 (\uB9E4\uC9C1\uBC14\uC774\uD2B8 \uBD88\uC77C\uCE58)`);
27060
27060
  const wantOcc = _nullishCoalesce(op.occurrence, () => ( 0));
27061
27061
  let found = null;
27062
27062
  let total = 0;
@@ -27089,7 +27089,7 @@ async function placeSealHwpx(hwpxBuffer, ops) {
27089
27089
  }
27090
27090
  }
27091
27091
  }
27092
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
27092
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
27093
27093
  `place_seal: \uC575\uCEE4 "${op.anchor}" ${wantOcc}\uBC88\uC9F8 \uB4F1\uC7A5\uC744 \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4 (\uBCF8\uBB38 \uB0B4 ${total}\uD68C \uB4F1\uC7A5 \u2014 occurrence 0..${Math.max(0, total - 1)})`
27094
27094
  );
27095
27095
  }
@@ -27097,7 +27097,7 @@ async function placeSealHwpx(hwpxBuffer, ops) {
27097
27097
  const xml = sectionXmls[si];
27098
27098
  const run = anchorRunInfo(xml, site.para, op.anchor);
27099
27099
  if (!run) {
27100
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(`place_seal: \uC575\uCEE4 "${op.anchor}" \uBB38\uB2E8\uC5D0\uC11C run\uC744 \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4`);
27100
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(`place_seal: \uC575\uCEE4 "${op.anchor}" \uBB38\uB2E8\uC5D0\uC11C run\uC744 \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4`);
27101
27101
  }
27102
27102
  const charPrHeight = _nullishCoalesce(_optionalChain([styles, 'optionalAccess', _442 => _442.charPr, 'access', _443 => _443.get, 'call', _444 => _444(run.charPr), 'optionalAccess', _445 => _445.height]), () => ( 1e3));
27103
27103
  const fontPt = charPrHeight / 100;
@@ -27375,7 +27375,7 @@ function pick(map, keys) {
27375
27375
  return out;
27376
27376
  }
27377
27377
  async function hwpxToProfile(input) {
27378
- const buf = input instanceof ArrayBuffer ? input : _chunkJ7DBL77Bcjs.toArrayBuffer.call(void 0, input);
27378
+ const buf = input instanceof ArrayBuffer ? input : _chunkD6NDAA72cjs.toArrayBuffer.call(void 0, input);
27379
27379
  const zip = await _jszip2.default.loadAsync(buf);
27380
27380
  const parser = createXmlParser();
27381
27381
  const headerFile = _nullishCoalesce(zip.file("Contents/header.xml"), () => ( _optionalChain([zip, 'access', _467 => _467.file, 'call', _468 => _468(/[Hh]eader\.xml$/), 'optionalAccess', _469 => _469[0]])));
@@ -28306,7 +28306,7 @@ async function resolveSectionEntryNames(zip) {
28306
28306
  const paths = sectionPathsFromManifest(xml).filter((p) => zip.file(p) !== null);
28307
28307
  if (paths.length > 0) return paths;
28308
28308
  }
28309
- return Object.keys(zip.files).filter((n) => /[Ss]ection\d+\.xml$/.test(n)).sort(_chunkJ7DBL77Bcjs.compareSectionPaths);
28309
+ return Object.keys(zip.files).filter((n) => /[Ss]ection\d+\.xml$/.test(n)).sort(_chunkD6NDAA72cjs.compareSectionPaths);
28310
28310
  }
28311
28311
  function sectionPathsFromManifest(xml) {
28312
28312
  const attr = (tag, name) => {
@@ -28316,7 +28316,7 @@ function sectionPathsFromManifest(xml) {
28316
28316
  const idToHref = /* @__PURE__ */ new Map();
28317
28317
  for (const m of xml.matchAll(/<opf:item(\s(?:"[^"]*"|'[^']*'|[^>"'])*?)\/?>/g)) {
28318
28318
  const id = attr(m[1], "id");
28319
- const href = _chunkJ7DBL77Bcjs.normalizeSectionHref.call(void 0, attr(m[1], "href"));
28319
+ const href = _chunkD6NDAA72cjs.normalizeSectionHref.call(void 0, attr(m[1], "href"));
28320
28320
  if (id && href) idToHref.set(id, href);
28321
28321
  }
28322
28322
  const ordered = [];
@@ -28325,7 +28325,7 @@ function sectionPathsFromManifest(xml) {
28325
28325
  if (href) ordered.push(href);
28326
28326
  }
28327
28327
  if (ordered.length > 0) return ordered;
28328
- return Array.from(idToHref.values()).sort(_chunkJ7DBL77Bcjs.compareSectionPaths);
28328
+ return Array.from(idToHref.values()).sort(_chunkD6NDAA72cjs.compareSectionPaths);
28329
28329
  }
28330
28330
 
28331
28331
  // src/roundtrip/patcher.ts
@@ -28436,9 +28436,9 @@ function buildOrigUnits(blocks) {
28436
28436
  if (block.type === "paragraph" && block.text && /^\[별표\s*\d+/.test(sanitizeText(block.text))) {
28437
28437
  const next = blocks[i + 1];
28438
28438
  if (_optionalChain([next, 'optionalAccess', _502 => _502.type]) === "paragraph" && next.text && /관련\)?$/.test(next.text)) consume = 2;
28439
- chunk = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, blocks.slice(i, i + consume));
28439
+ chunk = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, blocks.slice(i, i + consume));
28440
28440
  } else {
28441
- chunk = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, [block]);
28441
+ chunk = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, [block]);
28442
28442
  }
28443
28443
  if (chunk) {
28444
28444
  const subUnits = splitMarkdownUnits(chunk);
@@ -30058,12 +30058,12 @@ function blocksToChunks(blocks, options) {
30058
30058
  let run = null;
30059
30059
  const flushRun = () => {
30060
30060
  if (!run) return;
30061
- push("text", run.breadcrumb, _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, run.blocks), [run.start, run.end], run.page);
30061
+ push("text", run.breadcrumb, _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, run.blocks), [run.start, run.end], run.page);
30062
30062
  run = null;
30063
30063
  };
30064
30064
  for (let i = 0; i < blocks.length; i++) {
30065
30065
  const block = blocks[i];
30066
- const md2 = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, [block]);
30066
+ const md2 = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, [block]);
30067
30067
  if (!md2) continue;
30068
30068
  if (block.type === "heading") {
30069
30069
  flushRun();
@@ -30533,13 +30533,13 @@ async function htmlToPdf(html, options) {
30533
30533
  try {
30534
30534
  puppeteer = await Promise.resolve().then(() => _interopRequireWildcard(require("puppeteer-core")));
30535
30535
  } catch (e37) {
30536
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
30536
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
30537
30537
  "PDF \uC0DD\uC131\uC5D0 puppeteer-core\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uC124\uCE58: npm install puppeteer-core"
30538
30538
  );
30539
30539
  }
30540
30540
  const executablePath = _nullishCoalesce(process.env.PUPPETEER_EXECUTABLE_PATH, () => ( findChromiumPath()));
30541
30541
  if (!executablePath) {
30542
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)(
30542
+ throw new (0, _chunkD6NDAA72cjs.KordocError)(
30543
30543
  "Chromium \uC2E4\uD589 \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. PUPPETEER_EXECUTABLE_PATH \uD658\uACBD\uBCC0\uC218\uB97C \uC124\uC815\uD558\uC138\uC694."
30544
30544
  );
30545
30545
  }
@@ -30598,7 +30598,7 @@ async function markdownToPdf(markdown, options) {
30598
30598
  return htmlToPdf(html, options);
30599
30599
  }
30600
30600
  async function blocksToPdf(blocks, options) {
30601
- const markdown = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, blocks);
30601
+ const markdown = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, blocks);
30602
30602
  return markdownToPdf(markdown, options);
30603
30603
  }
30604
30604
 
@@ -31496,15 +31496,15 @@ function renderSectionToPages(root, geom, ctxBase, doReflow, reflowMode) {
31496
31496
  async function renderHwpxToSvg(input, options) {
31497
31497
  const maxImg = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _599 => _599.maxImageBytes]), () => ( 40 * 1024 * 1024));
31498
31498
  const ab = input instanceof Uint8Array ? input.buffer.slice(input.byteOffset, input.byteOffset + input.byteLength) : input;
31499
- _chunkJ7DBL77Bcjs.precheckZipSize.call(void 0, ab, MAX_DECOMPRESS_SIZE, MAX_ZIP_ENTRIES);
31499
+ _chunkD6NDAA72cjs.precheckZipSize.call(void 0, ab, MAX_DECOMPRESS_SIZE, MAX_ZIP_ENTRIES);
31500
31500
  let zip;
31501
31501
  try {
31502
31502
  zip = await _jszip2.default.loadAsync(input);
31503
31503
  } catch (e38) {
31504
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("HWPX(ZIP) \uD615\uC2DD\uC774 \uC544\uB2D9\uB2C8\uB2E4 \u2014 \uB80C\uB354\uB294 HWPX\uB9CC \uC9C0\uC6D0");
31504
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("HWPX(ZIP) \uD615\uC2DD\uC774 \uC544\uB2D9\uB2C8\uB2E4 \u2014 \uB80C\uB354\uB294 HWPX\uB9CC \uC9C0\uC6D0");
31505
31505
  }
31506
31506
  const secFiles = zip.file(/Contents\/section\d+\.xml$/i).sort((a, b) => a.name.localeCompare(b.name));
31507
- if (secFiles.length === 0) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("Contents/section0.xml \uC5C6\uC74C \u2014 HWPX\uAC00 \uC544\uB2C8\uAC70\uB098 \uC190\uC0C1\uB428");
31507
+ if (secFiles.length === 0) throw new (0, _chunkD6NDAA72cjs.KordocError)("Contents/section0.xml \uC5C6\uC74C \u2014 HWPX\uAC00 \uC544\uB2C8\uAC70\uB098 \uC190\uC0C1\uB428");
31508
31508
  const warnings = [];
31509
31509
  const headFile = _nullishCoalesce(zip.file("Contents/header.xml"), () => ( zip.file("Contents/head.xml")));
31510
31510
  const styles = headFile ? parseRenderStyles(await headFile.async("string")) : { charPr: /* @__PURE__ */ new Map(), paraAlign: /* @__PURE__ */ new Map(), paraGeom: /* @__PURE__ */ new Map(), borderFill: /* @__PURE__ */ new Map() };
@@ -31512,7 +31512,7 @@ async function renderHwpxToSvg(input, options) {
31512
31512
  const secXmls = [];
31513
31513
  for (const f of secFiles) {
31514
31514
  const xml = await f.async("string");
31515
- if (xml.length > MAX_DECOMPRESS_SIZE) throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC139\uC158 XML\uC774 \uD5C8\uC6A9 \uD06C\uAE30\uB97C \uCD08\uACFC");
31515
+ if (xml.length > MAX_DECOMPRESS_SIZE) throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC139\uC158 XML\uC774 \uD5C8\uC6A9 \uD06C\uAE30\uB97C \uCD08\uACFC");
31516
31516
  secXmls.push(xml);
31517
31517
  }
31518
31518
  const binmap = /* @__PURE__ */ new Map();
@@ -31585,9 +31585,9 @@ async function renderHwpxToSvg(input, options) {
31585
31585
  }
31586
31586
  if (rendered.length === 0) {
31587
31587
  if (noCacheSkipped) {
31588
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uC870\uD310 \uCE90\uC2DC(linesegarray) \uC5C6\uC74C \u2014 \uD55C\uCEF4\uC5D0\uC11C \uC800\uC7A5\uD55C HWPX\uB9CC \uB80C\uB354 \uAC00\uB2A5 (reflow \uC635\uC158\uC73C\uB85C \uD569\uC131 \uB80C\uB354 \uAC00\uB2A5)");
31588
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uC870\uD310 \uCE90\uC2DC(linesegarray) \uC5C6\uC74C \u2014 \uD55C\uCEF4\uC5D0\uC11C \uC800\uC7A5\uD55C HWPX\uB9CC \uB80C\uB354 \uAC00\uB2A5 (reflow \uC635\uC158\uC73C\uB85C \uD569\uC131 \uB80C\uB354 \uAC00\uB2A5)");
31589
31589
  }
31590
- throw new (0, _chunkJ7DBL77Bcjs.KordocError)("\uB80C\uB354\uD560 \uAD6C\uC5ED\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 HWPX\uAC00 \uC190\uC0C1\uB418\uC5C8\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4");
31590
+ throw new (0, _chunkD6NDAA72cjs.KordocError)("\uB80C\uB354\uD560 \uAD6C\uC5ED\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 HWPX\uAC00 \uC190\uC0C1\uB418\uC5C8\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4");
31591
31591
  }
31592
31592
  const GAP = 2400;
31593
31593
  const clipDefs = [];
@@ -31623,13 +31623,13 @@ async function parse(input, options) {
31623
31623
  if (typeof input === "string") {
31624
31624
  try {
31625
31625
  const buf = await _promises.readFile.call(void 0, input);
31626
- buffer = _chunkJ7DBL77Bcjs.toArrayBuffer.call(void 0, buf);
31626
+ buffer = _chunkD6NDAA72cjs.toArrayBuffer.call(void 0, buf);
31627
31627
  } catch (err) {
31628
31628
  const msg2 = err instanceof Error && "code" in err && err.code === "ENOENT" ? `\uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${input}` : `\uD30C\uC77C \uC77D\uAE30 \uC2E4\uD328: ${input}`;
31629
31629
  return { success: false, fileType: "unknown", error: msg2, code: "PARSE_ERROR" };
31630
31630
  }
31631
31631
  } else if (Buffer.isBuffer(input)) {
31632
- buffer = _chunkJ7DBL77Bcjs.toArrayBuffer.call(void 0, input);
31632
+ buffer = _chunkD6NDAA72cjs.toArrayBuffer.call(void 0, input);
31633
31633
  } else {
31634
31634
  buffer = input;
31635
31635
  }
@@ -31671,18 +31671,18 @@ async function dispatch(format, buffer, opts) {
31671
31671
  }
31672
31672
  async function parseImage(buffer, options) {
31673
31673
  try {
31674
- const { parseImageDocument } = await Promise.resolve().then(() => _interopRequireWildcard(require("./image-ocr-CBMJIJTQ.cjs")));
31674
+ const { parseImageDocument } = await Promise.resolve().then(() => _interopRequireWildcard(require("./image-ocr-WMTQ357I.cjs")));
31675
31675
  const { blocks, warnings } = await parseImageDocument(buffer, options);
31676
31676
  return {
31677
31677
  success: true,
31678
31678
  fileType: "image",
31679
- markdown: _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, blocks),
31679
+ markdown: _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, blocks),
31680
31680
  blocks,
31681
31681
  warnings: warnings.length ? warnings : void 0,
31682
31682
  pageCount: 1
31683
31683
  };
31684
31684
  } catch (err) {
31685
- return { success: false, fileType: "image", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err) };
31685
+ return { success: false, fileType: "image", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err) };
31686
31686
  }
31687
31687
  }
31688
31688
  async function parseHwp3(buffer, options) {
@@ -31690,7 +31690,7 @@ async function parseHwp3(buffer, options) {
31690
31690
  const { markdown, blocks, metadata, outline, warnings } = parseHwp3Document(buffer, options);
31691
31691
  return { success: true, fileType: "hwp3", markdown, blocks, metadata, outline, warnings, pageCount: _optionalChain([metadata, 'optionalAccess', _606 => _606.pageCount]) };
31692
31692
  } catch (err) {
31693
- return { success: false, fileType: "hwp3", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err) };
31693
+ return { success: false, fileType: "hwp3", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err) };
31694
31694
  }
31695
31695
  }
31696
31696
  async function parseHwpx(buffer, options) {
@@ -31698,7 +31698,7 @@ async function parseHwpx(buffer, options) {
31698
31698
  const { markdown, blocks, metadata, outline, warnings, images } = await parseHwpxDocument(buffer, options);
31699
31699
  return { success: true, fileType: "hwpx", markdown, blocks, metadata, outline, warnings, images: _optionalChain([images, 'optionalAccess', _607 => _607.length]) ? images : void 0, pageCount: _optionalChain([metadata, 'optionalAccess', _608 => _608.pageCount]) };
31700
31700
  } catch (err) {
31701
- return { success: false, fileType: "hwpx", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err) };
31701
+ return { success: false, fileType: "hwpx", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err) };
31702
31702
  }
31703
31703
  }
31704
31704
  async function parseHwp(buffer, options) {
@@ -31724,13 +31724,13 @@ async function parseHwp(buffer, options) {
31724
31724
  }
31725
31725
  return { success: true, fileType: "hwp", markdown, blocks, metadata, outline, warnings, images: _optionalChain([images, 'optionalAccess', _610 => _610.length]) ? images : void 0, pageCount: _optionalChain([metadata, 'optionalAccess', _611 => _611.pageCount]) };
31726
31726
  } catch (err) {
31727
- return { success: false, fileType: "hwp", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err) };
31727
+ return { success: false, fileType: "hwp", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err) };
31728
31728
  }
31729
31729
  }
31730
31730
  async function parsePdf(buffer, options) {
31731
31731
  let parsePdfDocument;
31732
31732
  try {
31733
- const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("./parser-GIVQWVKJ.cjs")));
31733
+ const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("./parser-XVUFA35I.cjs")));
31734
31734
  parsePdfDocument = mod.parsePdfDocument;
31735
31735
  } catch (e40) {
31736
31736
  return {
@@ -31745,7 +31745,7 @@ async function parsePdf(buffer, options) {
31745
31745
  return { success: true, fileType: "pdf", markdown, blocks, metadata, outline, warnings, isImageBased, pageQuality, qualitySummary, images, pageCount: _optionalChain([metadata, 'optionalAccess', _612 => _612.pageCount]) };
31746
31746
  } catch (err) {
31747
31747
  const isImageBased = err instanceof Error && "isImageBased" in err ? true : void 0;
31748
- return { success: false, fileType: "pdf", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err), isImageBased };
31748
+ return { success: false, fileType: "pdf", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err), isImageBased };
31749
31749
  }
31750
31750
  }
31751
31751
  async function parseXlsx(buffer, options) {
@@ -31753,7 +31753,7 @@ async function parseXlsx(buffer, options) {
31753
31753
  const { markdown, blocks, metadata, warnings } = await parseXlsxDocument(buffer, options);
31754
31754
  return { success: true, fileType: "xlsx", markdown, blocks, metadata, warnings, pageCount: _optionalChain([metadata, 'optionalAccess', _613 => _613.pageCount]) };
31755
31755
  } catch (err) {
31756
- return { success: false, fileType: "xlsx", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err) };
31756
+ return { success: false, fileType: "xlsx", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err) };
31757
31757
  }
31758
31758
  }
31759
31759
  async function parseXls(buffer, options) {
@@ -31761,7 +31761,7 @@ async function parseXls(buffer, options) {
31761
31761
  const { markdown, blocks, metadata, warnings } = await parseXlsDocument(buffer, options);
31762
31762
  return { success: true, fileType: "xls", markdown, blocks, metadata, warnings, pageCount: _optionalChain([metadata, 'optionalAccess', _614 => _614.pageCount]) };
31763
31763
  } catch (err) {
31764
- return { success: false, fileType: "xls", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err) };
31764
+ return { success: false, fileType: "xls", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err) };
31765
31765
  }
31766
31766
  }
31767
31767
  async function parseDocx(buffer, options) {
@@ -31769,7 +31769,7 @@ async function parseDocx(buffer, options) {
31769
31769
  const { markdown, blocks, metadata, outline, warnings, images } = await parseDocxDocument(buffer, options);
31770
31770
  return { success: true, fileType: "docx", markdown, blocks, metadata, outline, warnings, images: _optionalChain([images, 'optionalAccess', _615 => _615.length]) ? images : void 0, pageCount: _optionalChain([metadata, 'optionalAccess', _616 => _616.pageCount]) };
31771
31771
  } catch (err) {
31772
- return { success: false, fileType: "docx", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err) };
31772
+ return { success: false, fileType: "docx", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err) };
31773
31773
  }
31774
31774
  }
31775
31775
  async function parseHwpml(buffer, options) {
@@ -31777,16 +31777,16 @@ async function parseHwpml(buffer, options) {
31777
31777
  const { markdown, blocks, metadata, outline, warnings } = parseHwpmlDocument(buffer, options);
31778
31778
  return { success: true, fileType: "hwpml", markdown, blocks, metadata, outline, warnings, pageCount: _optionalChain([metadata, 'optionalAccess', _617 => _617.pageCount]) };
31779
31779
  } catch (err) {
31780
- return { success: false, fileType: "hwpml", error: _chunkJ7DBL77Bcjs.sanitizeError.call(void 0, err), code: _chunkJ7DBL77Bcjs.classifyError.call(void 0, err) };
31780
+ return { success: false, fileType: "hwpml", error: _chunkD6NDAA72cjs.sanitizeError.call(void 0, err), code: _chunkD6NDAA72cjs.classifyError.call(void 0, err) };
31781
31781
  }
31782
31782
  }
31783
31783
  async function fillForm(input, values, outputFormat = "markdown") {
31784
31784
  let buffer;
31785
31785
  if (typeof input === "string") {
31786
31786
  const buf = await _promises.readFile.call(void 0, input);
31787
- buffer = _chunkJ7DBL77Bcjs.toArrayBuffer.call(void 0, buf);
31787
+ buffer = _chunkD6NDAA72cjs.toArrayBuffer.call(void 0, buf);
31788
31788
  } else if (Buffer.isBuffer(input)) {
31789
- buffer = _chunkJ7DBL77Bcjs.toArrayBuffer.call(void 0, input);
31789
+ buffer = _chunkD6NDAA72cjs.toArrayBuffer.call(void 0, input);
31790
31790
  } else {
31791
31791
  buffer = input;
31792
31792
  }
@@ -31812,7 +31812,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
31812
31812
  throw new Error(`\uC11C\uC2DD \uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}`);
31813
31813
  }
31814
31814
  const fill = fillFormFields(parsed.blocks, values);
31815
- const markdown = _chunkGGZ5PSJOcjs.blocksToMarkdown.call(void 0, fill.blocks);
31815
+ const markdown = _chunkFZA5HW4Kcjs.blocksToMarkdown.call(void 0, fill.blocks);
31816
31816
  if (outputFormat === "hwpx") {
31817
31817
  const hwpxBuffer = await markdownToHwpx(markdown);
31818
31818
  return { output: hwpxBuffer, format: "hwpx", fill };
@@ -31892,5 +31892,5 @@ async function fillForm(input, values, outputFormat = "markdown") {
31892
31892
 
31893
31893
 
31894
31894
 
31895
- exports.BUILTIN_TEMPLATES = BUILTIN_TEMPLATES; exports.DEFAULT_REDACT_RULES = DEFAULT_REDACT_RULES; exports.HwpxSession = HwpxSession; exports.PRESET_ALIAS = PRESET_ALIAS; exports.SPACE_EM_FIXED = SPACE_EM_FIXED; exports.SPACE_EM_FONT = SPACE_EM_FONT; exports.VERSION = _chunkJ7DBL77Bcjs.VERSION; exports.ValueCursor = ValueCursor; exports.applySplices = applySplices; exports.blocksToChunks = blocksToChunks; exports.blocksToMarkdown = _chunkGGZ5PSJOcjs.blocksToMarkdown; exports.blocksToPages = blocksToPages; exports.blocksToPdf = blocksToPdf; exports.buildParagraphSplices = buildParagraphSplices; exports.buildRangeSplices = buildRangeSplices; exports.charWidthEm1000 = charWidthEm1000; exports.compare = compare; exports.detectFormat = detectFormat; exports.detectOle2Format = detectOle2Format; exports.detectZipFormat = detectZipFormat; exports.diffBlocks = diffBlocks; exports.extractClickHereFields = extractClickHereFields; exports.extractFormFields = extractFormFields; exports.extractFormSchema = extractFormSchema; exports.fillForm = fillForm; exports.fillFormFields = fillFormFields; exports.fillHwpx = fillHwpx; exports.fillWithUniqueGuard = fillWithUniqueGuard; exports.fitRatioForFewerLines = fitRatioForFewerLines; exports.formatFillValue = formatFillValue; exports.gongmunLintWarnings = gongmunLintWarnings; exports.hwpxToProfile = hwpxToProfile; exports.incompatibleGongmunWarnings = incompatibleGongmunWarnings; exports.inferFieldType = inferFieldType; exports.isHwpxFile = isHwpxFile; exports.isKnownFont = isKnownFont; exports.isLabelCell = isLabelCell; exports.isOldHwpFile = isOldHwpFile; exports.isPdfFile = isPdfFile; exports.isZipFile = isZipFile; exports.lintGongmunText = lintGongmunText; exports.markdownToHwpx = markdownToHwpx; exports.markdownToPdf = markdownToPdf; exports.measureTextWidth = measureTextWidth; exports.normalizeGongmunPreset = normalizeGongmunPreset; exports.openHwpxDocument = openHwpxDocument; exports.parse = parse; exports.parseDocx = parseDocx; exports.parseHwp = parseHwp; exports.parseHwp3 = parseHwp3; exports.parseHwpml = parseHwpml; exports.parseHwpx = parseHwpx; exports.parseImage = parseImage; exports.parsePdf = parsePdf; exports.parseXls = parseXls; exports.parseXlsx = parseXlsx; exports.patchHwp = patchHwp; exports.patchHwpx = patchHwpx; exports.patchHwpxBlocks = patchHwpxBlocks; exports.placeSealHwpx = placeSealHwpx; exports.readBuiltinTemplate = readBuiltinTemplate; exports.readBuiltinTemplateSample = readBuiltinTemplateSample; exports.redactMarkdown = redactMarkdown; exports.redactText = redactText; exports.renderHtml = renderHtml; exports.renderHwpxToSvg = renderHwpxToSvg; exports.resolveBuiltinTemplate = resolveBuiltinTemplate; exports.scanSectionXml = scanSectionXml; exports.simulateWrap = simulateWrap; exports.simulateWrapKeepWord = simulateWrapKeepWord; exports.unknownFontWarnings = unknownFontWarnings; exports.validateHwpx = validateHwpx;
31895
+ exports.BUILTIN_TEMPLATES = BUILTIN_TEMPLATES; exports.DEFAULT_REDACT_RULES = DEFAULT_REDACT_RULES; exports.HwpxSession = HwpxSession; exports.PRESET_ALIAS = PRESET_ALIAS; exports.SPACE_EM_FIXED = SPACE_EM_FIXED; exports.SPACE_EM_FONT = SPACE_EM_FONT; exports.VERSION = _chunkD6NDAA72cjs.VERSION; exports.ValueCursor = ValueCursor; exports.applySplices = applySplices; exports.blocksToChunks = blocksToChunks; exports.blocksToMarkdown = _chunkFZA5HW4Kcjs.blocksToMarkdown; exports.blocksToPages = blocksToPages; exports.blocksToPdf = blocksToPdf; exports.buildParagraphSplices = buildParagraphSplices; exports.buildRangeSplices = buildRangeSplices; exports.charWidthEm1000 = charWidthEm1000; exports.compare = compare; exports.detectFormat = detectFormat; exports.detectOle2Format = detectOle2Format; exports.detectZipFormat = detectZipFormat; exports.diffBlocks = diffBlocks; exports.extractClickHereFields = extractClickHereFields; exports.extractFormFields = extractFormFields; exports.extractFormSchema = extractFormSchema; exports.fillForm = fillForm; exports.fillFormFields = fillFormFields; exports.fillHwpx = fillHwpx; exports.fillWithUniqueGuard = fillWithUniqueGuard; exports.fitRatioForFewerLines = fitRatioForFewerLines; exports.formatFillValue = formatFillValue; exports.gongmunLintWarnings = gongmunLintWarnings; exports.hwpxToProfile = hwpxToProfile; exports.incompatibleGongmunWarnings = incompatibleGongmunWarnings; exports.inferFieldType = inferFieldType; exports.isHwpxFile = isHwpxFile; exports.isKnownFont = isKnownFont; exports.isLabelCell = isLabelCell; exports.isOldHwpFile = isOldHwpFile; exports.isPdfFile = isPdfFile; exports.isZipFile = isZipFile; exports.lintGongmunText = lintGongmunText; exports.markdownToHwpx = markdownToHwpx; exports.markdownToPdf = markdownToPdf; exports.measureTextWidth = measureTextWidth; exports.normalizeGongmunPreset = normalizeGongmunPreset; exports.openHwpxDocument = openHwpxDocument; exports.parse = parse; exports.parseDocx = parseDocx; exports.parseHwp = parseHwp; exports.parseHwp3 = parseHwp3; exports.parseHwpml = parseHwpml; exports.parseHwpx = parseHwpx; exports.parseImage = parseImage; exports.parsePdf = parsePdf; exports.parseXls = parseXls; exports.parseXlsx = parseXlsx; exports.patchHwp = patchHwp; exports.patchHwpx = patchHwpx; exports.patchHwpxBlocks = patchHwpxBlocks; exports.placeSealHwpx = placeSealHwpx; exports.readBuiltinTemplate = readBuiltinTemplate; exports.readBuiltinTemplateSample = readBuiltinTemplateSample; exports.redactMarkdown = redactMarkdown; exports.redactText = redactText; exports.renderHtml = renderHtml; exports.renderHwpxToSvg = renderHwpxToSvg; exports.resolveBuiltinTemplate = resolveBuiltinTemplate; exports.scanSectionXml = scanSectionXml; exports.simulateWrap = simulateWrap; exports.simulateWrapKeepWord = simulateWrapKeepWord; exports.unknownFontWarnings = unknownFontWarnings; exports.validateHwpx = validateHwpx;
31896
31896
  //# sourceMappingURL=index.cjs.map