kordoc 4.24.39 → 4.24.41

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 (209) hide show
  1. package/README.md +4 -4
  2. package/dist/{-7VE547IT.js → -5XLO3RHD.js} +21 -21
  3. package/dist/{chunk-F2JYJ2SP.js → chunk-2CHSOHDE.js} +2 -2
  4. package/dist/{chunk-YXKU6UJD.js → chunk-2IK2Z6PO.js} +2 -2
  5. package/dist/{chunk-3MHRL3OO.js → chunk-3GJ3CMYS.js} +2 -2
  6. package/dist/{chunk-4FWLCWNU.js → chunk-57LVGVIS.js} +2 -2
  7. package/dist/{chunk-PFHMNNW7.js → chunk-5QHQ56AK.js} +36 -6
  8. package/dist/chunk-5QHQ56AK.js.map +1 -0
  9. package/dist/{chunk-IM5SIGUN.cjs → chunk-5QMMROCA.cjs} +3 -3
  10. package/dist/chunk-5QMMROCA.cjs.map +1 -0
  11. package/dist/chunk-ARVHYL3V.cjs.map +1 -1
  12. package/dist/{chunk-RPAEXGWZ.js → chunk-C2YUJXHB.js} +2 -2
  13. package/dist/{chunk-QDQPAC4L.js → chunk-C5XJDCXW.js} +2 -2
  14. package/dist/{chunk-ZDMLZRS4.js → chunk-CCGGLBHD.js} +111 -34
  15. package/dist/chunk-CCGGLBHD.js.map +1 -0
  16. package/dist/chunk-DEVQZTE7.cjs.map +1 -1
  17. package/dist/{chunk-SFLHCRO6.js → chunk-EPR3TQS3.js} +2 -2
  18. package/dist/{chunk-7ZRUR4TZ.js → chunk-EPZVMBAQ.js} +2 -2
  19. package/dist/{chunk-CS76UPUC.js → chunk-FVYTDR6E.js} +29 -7
  20. package/dist/chunk-FVYTDR6E.js.map +1 -0
  21. package/dist/chunk-GS7T56RP.cjs.map +1 -1
  22. package/dist/{chunk-7BQWFZJO.js → chunk-GYMAGQNQ.js} +6 -6
  23. package/dist/{chunk-XYVTCXAG.cjs → chunk-HJGKVI7D.cjs} +81 -51
  24. package/dist/chunk-HJGKVI7D.cjs.map +1 -0
  25. package/dist/{chunk-RJNHXCMP.cjs → chunk-HR72SA4M.cjs} +182 -106
  26. package/dist/chunk-HR72SA4M.cjs.map +1 -0
  27. package/dist/{chunk-LU7X6LLW.cjs → chunk-IHMDGE7Z.cjs} +3 -3
  28. package/dist/chunk-IHMDGE7Z.cjs.map +1 -0
  29. package/dist/{chunk-WVER4OWF.js → chunk-IXFRVO7E.js} +3 -3
  30. package/dist/chunk-J55UQC5H.cjs.map +1 -1
  31. package/dist/{chunk-QDPYTJ4Y.js → chunk-JBQ5R4VV.js} +2 -2
  32. package/dist/{chunk-MANE7HAZ.cjs → chunk-JZEMASGR.cjs} +2 -2
  33. package/dist/chunk-JZEMASGR.cjs.map +1 -0
  34. package/dist/{chunk-NQJL3664.js → chunk-K2AVB6ZW.js} +3 -3
  35. package/dist/{chunk-PQIIYKNL.js → chunk-KF6MJIPV.js} +11 -11
  36. package/dist/{chunk-WPIG3KUV.js → chunk-KQDO246G.js} +28 -6
  37. package/dist/chunk-KQDO246G.js.map +1 -0
  38. package/dist/{chunk-NL5OTD2E.js → chunk-KTWCSSNS.js} +10 -10
  39. package/dist/chunk-LAYKIZOX.cjs.map +1 -1
  40. package/dist/{chunk-Y5O4DS56.js → chunk-MZ7AGKAN.js} +2 -2
  41. package/dist/{chunk-LOJYJISM.js → chunk-NHDOSQZ6.js} +110 -34
  42. package/dist/chunk-NHDOSQZ6.js.map +1 -0
  43. package/dist/{chunk-M2ZRTYQ5.js → chunk-OPE2XDGY.js} +5 -5
  44. package/dist/{chunk-2XXTL4S4.js → chunk-QNXWOUWQ.js} +2 -2
  45. package/dist/{chunk-FRMJTW3C.js → chunk-S7TKYRJB.js} +2 -2
  46. package/dist/{chunk-346W5O2J.js → chunk-SGBD6MTI.js} +2 -2
  47. package/dist/{chunk-BWBR5GWQ.js → chunk-SV462GOK.js} +2 -2
  48. package/dist/{chunk-7AYP2XO6.js → chunk-TGKYTBQ2.js} +3 -3
  49. package/dist/{chunk-UKTRLJII.cjs → chunk-TJARBWAJ.cjs} +98 -98
  50. package/dist/chunk-TJARBWAJ.cjs.map +1 -0
  51. package/dist/chunk-TK3FDAEE.cjs.map +1 -1
  52. package/dist/{chunk-LE3733C2.cjs → chunk-TVMNTRPZ.cjs} +104 -82
  53. package/dist/chunk-TVMNTRPZ.cjs.map +1 -0
  54. package/dist/{chunk-GXED6LJX.js → chunk-TWFL7T4K.js} +2 -2
  55. package/dist/{chunk-FZMZUX7B.js → chunk-UHN5TULI.js} +37 -7
  56. package/dist/chunk-UHN5TULI.js.map +1 -0
  57. package/dist/{chunk-L23XOAKF.js → chunk-UI3SZQXC.js} +6 -6
  58. package/dist/{chunk-V3IMDOZE.cjs → chunk-WNOSEEBH.cjs} +6 -6
  59. package/dist/chunk-WNOSEEBH.cjs.map +1 -0
  60. package/dist/{chunk-PHVAJBHM.js → chunk-WYJWJ7X4.js} +2 -2
  61. package/dist/chunk-X7RBVVDC.cjs.map +1 -1
  62. package/dist/{chunk-IZWZ3RQC.js → chunk-XBWP6REN.js} +2 -2
  63. package/dist/{chunk-COH7WXBK.js → chunk-XPYC55DA.js} +5 -5
  64. package/dist/{chunk-ZVAX6E63.js → chunk-ZDTP5IJU.js} +2 -2
  65. package/dist/{chunk-V2RIY72D.js → chunk-ZOCDODX3.js} +2 -2
  66. package/dist/chunk-ZTN3T3GH.cjs.map +1 -1
  67. package/dist/{chunk-U5OV6D66.js → chunk-ZUFIMOGS.js} +15 -15
  68. package/dist/chunks-23JEOBIH.js +11 -0
  69. package/dist/cli.js +43 -43
  70. package/dist/detect-V75ERMYL.cjs.map +1 -1
  71. package/dist/{formula-PFSZZNPP.js → formula-3X2Y6F6V.js} +3 -3
  72. package/dist/{formula-UI2UR74M.cjs → formula-4WGDQBOM.cjs} +9 -9
  73. package/dist/formula-4WGDQBOM.cjs.map +1 -0
  74. package/dist/{formula-MMLDES2Z.js → formula-IBE4CZ5R.js} +4 -4
  75. package/dist/generator-JYJLWH7T.js +17 -0
  76. package/dist/generator-PGOJNK7D.js +10 -0
  77. package/dist/generator-ZRVKK7UG.cjs +11 -0
  78. package/dist/generator-ZRVKK7UG.cjs.map +1 -0
  79. package/dist/{hancom-XO52GNC3.js → hancom-CBYVMPCO.js} +2 -2
  80. package/dist/{hancom-3V3USCW5.js → hancom-UACA2WTF.js} +2 -2
  81. package/dist/{hancom-GV5TTF5H.cjs → hancom-YR2BB373.cjs} +5 -5
  82. package/dist/hancom-YR2BB373.cjs.map +1 -0
  83. package/dist/{image-ocr-R2ASFKHX.js → image-ocr-2CUGPHIK.js} +10 -10
  84. package/dist/{image-ocr-SU4RPHBF.js → image-ocr-JEHNWQVE.js} +7 -7
  85. package/dist/{image-ocr-2WKCFABH.cjs → image-ocr-RNAJ66EN.cjs} +27 -27
  86. package/dist/image-ocr-RNAJ66EN.cjs.map +1 -0
  87. package/dist/index.cjs +1105 -1105
  88. package/dist/index.cjs.map +1 -1
  89. package/dist/index.d.cts +2 -2
  90. package/dist/index.d.ts +2 -2
  91. package/dist/index.js +9 -9
  92. package/dist/mcp.js +37 -37
  93. package/dist/mcp.js.map +1 -1
  94. package/dist/memo-V24MEWBZ.js +17 -0
  95. package/dist/{model-bundle-JMSH2F4A.js → model-bundle-HLPWOTCS.js} +5 -5
  96. package/dist/{models-D5SATVOZ.js → models-AMOW56WP.js} +5 -5
  97. package/dist/page-range-QHHFTL7X.cjs.map +1 -1
  98. package/dist/{parse-worker-v2-WIIZQFRX.js → parse-worker-v2-Z4BCWVRX.js} +22 -22
  99. package/dist/{parser-MFBTEGJA.cjs → parser-D2DQIUP3.cjs} +159 -159
  100. package/dist/parser-D2DQIUP3.cjs.map +1 -0
  101. package/dist/{parser-SBJKV5GS.js → parser-Y4GUP7PZ.js} +12 -12
  102. package/dist/{parser-KCY43TBS.js → parser-YMNUQBLB.js} +9 -9
  103. package/dist/{pdf-ocr-UU5PSZ7Z.js → pdf-ocr-3K266ENT.js} +9 -9
  104. package/dist/{pdf-ocr-I6GNQEFS.js → pdf-ocr-EPIM3YWE.js} +6 -6
  105. package/dist/pdf-ocr-OX7H7NOU.cjs +40 -0
  106. package/dist/pdf-ocr-OX7H7NOU.cjs.map +1 -0
  107. package/dist/{profile-io-HZK4ZZ2O.js → profile-io-AW4GEYDQ.js} +3 -3
  108. package/dist/{rasterize-VNP4ULXM.js → rasterize-75AWRNSO.js} +3 -3
  109. package/dist/{redact-doc-SPHSBCPN.js → redact-doc-3UUPTXFI.js} +21 -21
  110. package/dist/{render-CKTTIDU2.js → render-JGMRAI2P.js} +12 -12
  111. package/dist/{rewrite-fallback-H2KMJV6G.js → rewrite-fallback-UDQAKQN2.js} +13 -13
  112. package/dist/rewrite-fallback-UDQAKQN2.js.map +1 -0
  113. package/dist/seal-WFNKTHBW.js +16 -0
  114. package/dist/{setup-GJVOXJN7.js → setup-JTHBR676.js} +3 -3
  115. package/dist/{to-hwpx-5UIBNW3D.js → to-hwpx-GJP66LQS.js} +7 -7
  116. package/dist/to-hwpx-LKPXAHSQ.cjs +16 -0
  117. package/dist/to-hwpx-LKPXAHSQ.cjs.map +1 -0
  118. package/dist/{to-hwpx-JJHDCYER.js → to-hwpx-ZD7IGU7G.js} +4 -4
  119. package/dist/visual-666SNQ3Y.js +37 -0
  120. package/dist/{watch-YZZES36Q.js → watch-QL4YAMRV.js} +22 -22
  121. package/package.json +1 -1
  122. package/dist/chunk-CS76UPUC.js.map +0 -1
  123. package/dist/chunk-FZMZUX7B.js.map +0 -1
  124. package/dist/chunk-IM5SIGUN.cjs.map +0 -1
  125. package/dist/chunk-LE3733C2.cjs.map +0 -1
  126. package/dist/chunk-LOJYJISM.js.map +0 -1
  127. package/dist/chunk-LU7X6LLW.cjs.map +0 -1
  128. package/dist/chunk-MANE7HAZ.cjs.map +0 -1
  129. package/dist/chunk-PFHMNNW7.js.map +0 -1
  130. package/dist/chunk-RJNHXCMP.cjs.map +0 -1
  131. package/dist/chunk-UKTRLJII.cjs.map +0 -1
  132. package/dist/chunk-V3IMDOZE.cjs.map +0 -1
  133. package/dist/chunk-WPIG3KUV.js.map +0 -1
  134. package/dist/chunk-XYVTCXAG.cjs.map +0 -1
  135. package/dist/chunk-ZDMLZRS4.js.map +0 -1
  136. package/dist/chunks-WTYZ4KG2.js +0 -11
  137. package/dist/formula-UI2UR74M.cjs.map +0 -1
  138. package/dist/generator-C3SCP3ZG.js +0 -10
  139. package/dist/generator-CHBOCLYX.cjs +0 -11
  140. package/dist/generator-CHBOCLYX.cjs.map +0 -1
  141. package/dist/generator-RTSNDZJB.js +0 -17
  142. package/dist/hancom-GV5TTF5H.cjs.map +0 -1
  143. package/dist/image-ocr-2WKCFABH.cjs.map +0 -1
  144. package/dist/memo-U4RZJRU2.js +0 -17
  145. package/dist/parser-MFBTEGJA.cjs.map +0 -1
  146. package/dist/pdf-ocr-L2O4SQUK.cjs +0 -40
  147. package/dist/pdf-ocr-L2O4SQUK.cjs.map +0 -1
  148. package/dist/rewrite-fallback-H2KMJV6G.js.map +0 -1
  149. package/dist/seal-MSY5G3UR.js +0 -16
  150. package/dist/to-hwpx-6BQNMA6P.cjs +0 -16
  151. package/dist/to-hwpx-6BQNMA6P.cjs.map +0 -1
  152. package/dist/visual-Q6PIMKSA.js +0 -37
  153. /package/dist/{-7VE547IT.js.map → -5XLO3RHD.js.map} +0 -0
  154. /package/dist/{chunk-F2JYJ2SP.js.map → chunk-2CHSOHDE.js.map} +0 -0
  155. /package/dist/{chunk-YXKU6UJD.js.map → chunk-2IK2Z6PO.js.map} +0 -0
  156. /package/dist/{chunk-3MHRL3OO.js.map → chunk-3GJ3CMYS.js.map} +0 -0
  157. /package/dist/{chunk-4FWLCWNU.js.map → chunk-57LVGVIS.js.map} +0 -0
  158. /package/dist/{chunk-RPAEXGWZ.js.map → chunk-C2YUJXHB.js.map} +0 -0
  159. /package/dist/{chunk-QDQPAC4L.js.map → chunk-C5XJDCXW.js.map} +0 -0
  160. /package/dist/{chunk-SFLHCRO6.js.map → chunk-EPR3TQS3.js.map} +0 -0
  161. /package/dist/{chunk-7ZRUR4TZ.js.map → chunk-EPZVMBAQ.js.map} +0 -0
  162. /package/dist/{chunk-7BQWFZJO.js.map → chunk-GYMAGQNQ.js.map} +0 -0
  163. /package/dist/{chunk-WVER4OWF.js.map → chunk-IXFRVO7E.js.map} +0 -0
  164. /package/dist/{chunk-QDPYTJ4Y.js.map → chunk-JBQ5R4VV.js.map} +0 -0
  165. /package/dist/{chunk-NQJL3664.js.map → chunk-K2AVB6ZW.js.map} +0 -0
  166. /package/dist/{chunk-PQIIYKNL.js.map → chunk-KF6MJIPV.js.map} +0 -0
  167. /package/dist/{chunk-NL5OTD2E.js.map → chunk-KTWCSSNS.js.map} +0 -0
  168. /package/dist/{chunk-Y5O4DS56.js.map → chunk-MZ7AGKAN.js.map} +0 -0
  169. /package/dist/{chunk-M2ZRTYQ5.js.map → chunk-OPE2XDGY.js.map} +0 -0
  170. /package/dist/{chunk-2XXTL4S4.js.map → chunk-QNXWOUWQ.js.map} +0 -0
  171. /package/dist/{chunk-FRMJTW3C.js.map → chunk-S7TKYRJB.js.map} +0 -0
  172. /package/dist/{chunk-346W5O2J.js.map → chunk-SGBD6MTI.js.map} +0 -0
  173. /package/dist/{chunk-BWBR5GWQ.js.map → chunk-SV462GOK.js.map} +0 -0
  174. /package/dist/{chunk-7AYP2XO6.js.map → chunk-TGKYTBQ2.js.map} +0 -0
  175. /package/dist/{chunk-GXED6LJX.js.map → chunk-TWFL7T4K.js.map} +0 -0
  176. /package/dist/{chunk-L23XOAKF.js.map → chunk-UI3SZQXC.js.map} +0 -0
  177. /package/dist/{chunk-PHVAJBHM.js.map → chunk-WYJWJ7X4.js.map} +0 -0
  178. /package/dist/{chunk-IZWZ3RQC.js.map → chunk-XBWP6REN.js.map} +0 -0
  179. /package/dist/{chunk-COH7WXBK.js.map → chunk-XPYC55DA.js.map} +0 -0
  180. /package/dist/{chunk-ZVAX6E63.js.map → chunk-ZDTP5IJU.js.map} +0 -0
  181. /package/dist/{chunk-V2RIY72D.js.map → chunk-ZOCDODX3.js.map} +0 -0
  182. /package/dist/{chunk-U5OV6D66.js.map → chunk-ZUFIMOGS.js.map} +0 -0
  183. /package/dist/{chunks-WTYZ4KG2.js.map → chunks-23JEOBIH.js.map} +0 -0
  184. /package/dist/{formula-PFSZZNPP.js.map → formula-3X2Y6F6V.js.map} +0 -0
  185. /package/dist/{formula-MMLDES2Z.js.map → formula-IBE4CZ5R.js.map} +0 -0
  186. /package/dist/{generator-C3SCP3ZG.js.map → generator-JYJLWH7T.js.map} +0 -0
  187. /package/dist/{generator-RTSNDZJB.js.map → generator-PGOJNK7D.js.map} +0 -0
  188. /package/dist/{hancom-XO52GNC3.js.map → hancom-CBYVMPCO.js.map} +0 -0
  189. /package/dist/{hancom-3V3USCW5.js.map → hancom-UACA2WTF.js.map} +0 -0
  190. /package/dist/{image-ocr-R2ASFKHX.js.map → image-ocr-2CUGPHIK.js.map} +0 -0
  191. /package/dist/{image-ocr-SU4RPHBF.js.map → image-ocr-JEHNWQVE.js.map} +0 -0
  192. /package/dist/{memo-U4RZJRU2.js.map → memo-V24MEWBZ.js.map} +0 -0
  193. /package/dist/{model-bundle-JMSH2F4A.js.map → model-bundle-HLPWOTCS.js.map} +0 -0
  194. /package/dist/{models-D5SATVOZ.js.map → models-AMOW56WP.js.map} +0 -0
  195. /package/dist/{parse-worker-v2-WIIZQFRX.js.map → parse-worker-v2-Z4BCWVRX.js.map} +0 -0
  196. /package/dist/{parser-SBJKV5GS.js.map → parser-Y4GUP7PZ.js.map} +0 -0
  197. /package/dist/{parser-KCY43TBS.js.map → parser-YMNUQBLB.js.map} +0 -0
  198. /package/dist/{pdf-ocr-I6GNQEFS.js.map → pdf-ocr-3K266ENT.js.map} +0 -0
  199. /package/dist/{pdf-ocr-UU5PSZ7Z.js.map → pdf-ocr-EPIM3YWE.js.map} +0 -0
  200. /package/dist/{profile-io-HZK4ZZ2O.js.map → profile-io-AW4GEYDQ.js.map} +0 -0
  201. /package/dist/{rasterize-VNP4ULXM.js.map → rasterize-75AWRNSO.js.map} +0 -0
  202. /package/dist/{redact-doc-SPHSBCPN.js.map → redact-doc-3UUPTXFI.js.map} +0 -0
  203. /package/dist/{render-CKTTIDU2.js.map → render-JGMRAI2P.js.map} +0 -0
  204. /package/dist/{seal-MSY5G3UR.js.map → seal-WFNKTHBW.js.map} +0 -0
  205. /package/dist/{setup-GJVOXJN7.js.map → setup-JTHBR676.js.map} +0 -0
  206. /package/dist/{to-hwpx-5UIBNW3D.js.map → to-hwpx-GJP66LQS.js.map} +0 -0
  207. /package/dist/{to-hwpx-JJHDCYER.js.map → to-hwpx-ZD7IGU7G.js.map} +0 -0
  208. /package/dist/{visual-Q6PIMKSA.js.map → visual-666SNQ3Y.js.map} +0 -0
  209. /package/dist/{watch-YZZES36Q.js.map → watch-QL4YAMRV.js.map} +0 -0
@@ -39,12 +39,12 @@ var _chunkLAYKIZOXcjs = require('./chunk-LAYKIZOX.cjs');
39
39
 
40
40
 
41
41
 
42
- var _chunkV3IMDOZEcjs = require('./chunk-V3IMDOZE.cjs');
42
+ var _chunkWNOSEEBHcjs = require('./chunk-WNOSEEBH.cjs');
43
43
 
44
44
 
45
45
 
46
46
 
47
- var _chunkMANE7HAZcjs = require('./chunk-MANE7HAZ.cjs');
47
+ var _chunkJZEMASGRcjs = require('./chunk-JZEMASGR.cjs');
48
48
 
49
49
 
50
50
  var _chunkGS7T56RPcjs = require('./chunk-GS7T56RP.cjs');
@@ -121,7 +121,7 @@ function decompressStream(data2) {
121
121
  return _zlib.inflateRawSync.call(void 0, data2, opts);
122
122
  }
123
123
  function parseFileHeader(data2) {
124
- if (data2.length < 40) throw new (0, _chunkMANE7HAZcjs.KordocError)("FileHeader\uAC00 \uB108\uBB34 \uC9E7\uC2B5\uB2C8\uB2E4 (\uCD5C\uC18C 40\uBC14\uC774\uD2B8)");
124
+ if (data2.length < 40) throw new (0, _chunkJZEMASGRcjs.KordocError)("FileHeader\uAC00 \uB108\uBB34 \uC9E7\uC2B5\uB2C8\uB2E4 (\uCD5C\uC18C 40\uBC14\uC774\uD2B8)");
125
125
  const sig = data2.subarray(0, 32).toString("utf8").replace(/\0+$/, "");
126
126
  return {
127
127
  signature: sig,
@@ -1350,7 +1350,7 @@ function decryptPasswordStream(raw, password) {
1350
1350
  var TAG_DOCUMENT_PROPERTIES = 16;
1351
1351
  var TAG_ID_MAPPINGS2 = 17;
1352
1352
  function assertDecryptedDocInfo(data2, readRecords2) {
1353
- const wrong = () => new (0, _chunkMANE7HAZcjs.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.");
1353
+ const wrong = () => new (0, _chunkJZEMASGRcjs.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.");
1354
1354
  let records;
1355
1355
  try {
1356
1356
  records = readRecords2(data2);
@@ -1362,7 +1362,7 @@ function assertDecryptedDocInfo(data2, readRecords2) {
1362
1362
  }
1363
1363
  function assertSupportedEncryptVersion(version) {
1364
1364
  if (version !== SUPPORTED_ENCRYPT_VERSION) {
1365
- throw new (0, _chunkMANE7HAZcjs.KordocError)(
1365
+ throw new (0, _chunkJZEMASGRcjs.KordocError)(
1366
1366
  `\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 HWP \uC554\uD638\uD654 \uBC84\uC804\uC785\uB2C8\uB2E4 (EncryptVersion=${version}, \uC9C0\uC6D0: ${SUPPORTED_ENCRYPT_VERSION})`
1367
1367
  );
1368
1368
  }
@@ -1611,19 +1611,19 @@ var HANJA_UNITS = ["", "\u5341", "\u767E", "\u5343", "\u842C"];
1611
1611
  function formatNumber(n, fmt) {
1612
1612
  switch (fmt) {
1613
1613
  case "circled":
1614
- return n >= 1 ? _chunkV3IMDOZEcjs.circledNumber.call(void 0, n - 1) : String(n);
1614
+ return n >= 1 ? _chunkWNOSEEBHcjs.circledNumber.call(void 0, n - 1) : String(n);
1615
1615
  case "romanUpper":
1616
- return _chunkV3IMDOZEcjs.romanNumeral.call(void 0, n, true);
1616
+ return _chunkWNOSEEBHcjs.romanNumeral.call(void 0, n, true);
1617
1617
  case "romanLower":
1618
- return _chunkV3IMDOZEcjs.romanNumeral.call(void 0, n, false);
1618
+ return _chunkWNOSEEBHcjs.romanNumeral.call(void 0, n, false);
1619
1619
  case "latinUpper":
1620
1620
  return formatLatin(n, true) || String(n);
1621
1621
  case "latinLower":
1622
1622
  return formatLatin(n, false) || String(n);
1623
1623
  case "ganada":
1624
- return n >= 1 ? _chunkV3IMDOZEcjs.hangulOrdinal.call(void 0, n - 1) : String(n);
1624
+ return n >= 1 ? _chunkWNOSEEBHcjs.hangulOrdinal.call(void 0, n - 1) : String(n);
1625
1625
  case "circledGanada":
1626
- return n >= 1 ? _chunkV3IMDOZEcjs.circledHangul.call(void 0, n - 1) : String(n);
1626
+ return n >= 1 ? _chunkWNOSEEBHcjs.circledHangul.call(void 0, n - 1) : String(n);
1627
1627
  case "jamo":
1628
1628
  return fromTable(n, JAMO);
1629
1629
  case "circledJamo":
@@ -1806,8 +1806,8 @@ function emitParagraphBlocks(p) {
1806
1806
  return blocks;
1807
1807
  }
1808
1808
  function tableFlatText(table) {
1809
- const flat = _chunkV3IMDOZEcjs.convertTableToText.call(void 0, table.cells);
1810
- return table.caption ? _chunkV3IMDOZEcjs.captionedText.call(void 0, flat, table.caption, table.captionBelow) : flat;
1809
+ const flat = _chunkWNOSEEBHcjs.convertTableToText.call(void 0, table.cells);
1810
+ return table.caption ? _chunkWNOSEEBHcjs.captionedText.call(void 0, flat, table.caption, table.captionBelow) : flat;
1811
1811
  }
1812
1812
  function blocksPlainText(blocks, sep) {
1813
1813
  const parts = [];
@@ -1890,8 +1890,8 @@ ${cell.text}` : cell.text;
1890
1890
  }
1891
1891
  function buildAddressedTable(cells, rows, cols, keepAnchoredEmptyCols) {
1892
1892
  for (const c of cells) {
1893
- rows = Math.max(rows, Math.min((_nullishCoalesce(c.rowAddr, () => ( 0))) + 1, _chunkV3IMDOZEcjs.MAX_ROWS));
1894
- cols = Math.max(cols, Math.min((_nullishCoalesce(c.colAddr, () => ( 0))) + 1, _chunkV3IMDOZEcjs.MAX_COLS));
1893
+ rows = Math.max(rows, Math.min((_nullishCoalesce(c.rowAddr, () => ( 0))) + 1, _chunkWNOSEEBHcjs.MAX_ROWS));
1894
+ cols = Math.max(cols, Math.min((_nullishCoalesce(c.colAddr, () => ( 0))) + 1, _chunkWNOSEEBHcjs.MAX_COLS));
1895
1895
  }
1896
1896
  const placed = resolveCellOverlaps(cells, rows, cols);
1897
1897
  const byRow = Array.from({ length: rows }, () => []);
@@ -1899,12 +1899,12 @@ function buildAddressedTable(cells, rows, cols, keepAnchoredEmptyCols) {
1899
1899
  const r = _nullishCoalesce(c.rowAddr, () => ( 0));
1900
1900
  if (r < rows && (_nullishCoalesce(c.colAddr, () => ( 0))) < cols) byRow[r].push(c);
1901
1901
  }
1902
- const table = _chunkV3IMDOZEcjs.buildTable.call(void 0, byRow, { keepAnchoredEmptyCols });
1902
+ const table = _chunkWNOSEEBHcjs.buildTable.call(void 0, byRow, { keepAnchoredEmptyCols });
1903
1903
  if (table.rows === 0) return null;
1904
1904
  for (const c of placed) {
1905
1905
  if (c.edges) {
1906
1906
  const at = _optionalChain([table, 'access', _12 => _12.cells, 'access', _13 => _13[_nullishCoalesce(c.rowAddr, () => ( 0))], 'optionalAccess', _14 => _14[_nullishCoalesce(c.colAddr, () => ( 0))]]);
1907
- if (at) _chunkV3IMDOZEcjs.CELL_EDGES.set(at, c.edges);
1907
+ if (at) _chunkWNOSEEBHcjs.CELL_EDGES.set(at, c.edges);
1908
1908
  }
1909
1909
  if (!_optionalChain([c, 'access', _15 => _15.blocks, 'optionalAccess', _16 => _16.length]) && !c.isHeader) continue;
1910
1910
  const target = _optionalChain([table, 'access', _17 => _17.cells, 'access', _18 => _18[_nullishCoalesce(c.rowAddr, () => ( 0))], 'optionalAccess', _19 => _19[_nullishCoalesce(c.colAddr, () => ( 0))]]);
@@ -2141,7 +2141,7 @@ function parseParagraph(records, start, end, ctx) {
2141
2141
  continue;
2142
2142
  }
2143
2143
  if (!ctrl2.href) continue;
2144
- const href = _chunkMANE7HAZcjs.sanitizeHref.call(void 0, ctrl2.href);
2144
+ const href = _chunkJZEMASGRcjs.sanitizeHref.call(void 0, ctrl2.href);
2145
2145
  if (!href) continue;
2146
2146
  if (!anchor.trim() || anchor.includes(INLINE_TABLE_MARK)) continue;
2147
2147
  text = text.slice(0, r.start) + `[${anchor}](${href})` + text.slice(r.end);
@@ -2151,7 +2151,7 @@ function parseParagraph(records, start, end, ctx) {
2151
2151
  }
2152
2152
  if (text.includes(LITERAL_DOLLAR_MARK)) text = text.replaceAll(LITERAL_DOLLAR_MARK, "\\$");
2153
2153
  text = resolveLiteralLt(text);
2154
- text = _chunkV3IMDOZEcjs.tidyScriptTags.call(void 0, text);
2154
+ text = _chunkWNOSEEBHcjs.tidyScriptTags.call(void 0, text);
2155
2155
  const toc = _chunkLAYKIZOXcjs.takeTocLeaders.call(void 0, text);
2156
2156
  text = toc.text;
2157
2157
  const holdsText = (c) => {
@@ -2278,7 +2278,7 @@ function applyCtrlEffect(ctrl2, records, ctx) {
2278
2278
  // 글자 겹침 — ctrl id 뒤 글자 수(WORD)·겹친 글자(WCHAR[n])·테두리 종류(BYTE, 0 = 없음). 종전엔 건너뛰어 법령 서식 원 번호(⑯·⑰)가 빠졌다
2279
2279
  case CTRL_TCPS: {
2280
2280
  const d = ctrl2.data, n = d.length >= 6 ? d.readUInt16LE(4) : 0;
2281
- if (n > 0 && d.length >= 6 + 2 * n) ctrl2.inlineText = _chunkV3IMDOZEcjs.composeText.call(void 0, d.toString("utf16le", 6, 6 + 2 * n), (_nullishCoalesce(d[6 + 2 * n], () => ( 0))) !== 0);
2281
+ if (n > 0 && d.length >= 6 + 2 * n) ctrl2.inlineText = _chunkWNOSEEBHcjs.composeText.call(void 0, d.toString("utf16le", 6, 6 + 2 * n), (_nullishCoalesce(d[6 + 2 * n], () => ( 0))) !== 0);
2282
2282
  return;
2283
2283
  }
2284
2284
  // 숨은 설명/단 정의/쪽번호 위치/감추기/찾아보기/책갈피/덧말 — 본문 텍스트 없음 또는 의도적 스킵
@@ -2413,7 +2413,7 @@ function hyperlinkUrlFromCommand(command) {
2413
2413
  }
2414
2414
  var A4_HEIGHT = 84188;
2415
2415
  function keepUnlessPageSpanning(table, cells) {
2416
- if (!cells.some((c) => c.pageSpanning)) _chunkV3IMDOZEcjs.markNonLayoutTable.call(void 0, table);
2416
+ if (!cells.some((c) => c.pageSpanning)) _chunkWNOSEEBHcjs.markNonLayoutTable.call(void 0, table);
2417
2417
  }
2418
2418
  function parseTableControl(ctrl2, records, ctx) {
2419
2419
  if (ctx.depth >= MAX_NEST_DEPTH) return null;
@@ -2425,8 +2425,8 @@ function parseTableControl(ctrl2, records, ctx) {
2425
2425
  let tableIdx = -1;
2426
2426
  for (let i2 = childStart; i2 < childEnd; i2++) {
2427
2427
  if (records[i2].tagId === TAG_TABLE && records[i2].level === directLevel && records[i2].data.length >= 8) {
2428
- rows = Math.min(records[i2].data.readUInt16LE(4), _chunkV3IMDOZEcjs.MAX_ROWS);
2429
- cols = Math.min(records[i2].data.readUInt16LE(6), _chunkV3IMDOZEcjs.MAX_COLS);
2428
+ rows = Math.min(records[i2].data.readUInt16LE(4), _chunkWNOSEEBHcjs.MAX_ROWS);
2429
+ cols = Math.min(records[i2].data.readUInt16LE(6), _chunkWNOSEEBHcjs.MAX_COLS);
2430
2430
  tableIdx = i2;
2431
2431
  break;
2432
2432
  }
@@ -2473,11 +2473,11 @@ function parseTableControl(ctrl2, records, ctx) {
2473
2473
  return table2;
2474
2474
  }
2475
2475
  if (rows === 0 || cols === 0) {
2476
- rows = Math.min(cells.length, _chunkV3IMDOZEcjs.MAX_ROWS);
2476
+ rows = Math.min(cells.length, _chunkWNOSEEBHcjs.MAX_ROWS);
2477
2477
  cols = 1;
2478
2478
  }
2479
2479
  const cellRows = arrangeCells(rows, cols, cells);
2480
- const table = _chunkV3IMDOZEcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols: ctx.doc.keepTrailingEmptyCols });
2480
+ const table = _chunkWNOSEEBHcjs.buildTable.call(void 0, cellRows, { keepAnchoredEmptyCols: ctx.doc.keepTrailingEmptyCols });
2481
2481
  if (caption && table.rows > 0) table.caption = caption;
2482
2482
  if (caption && captionBelow && table.rows > 0) table.captionBelow = true;
2483
2483
  if (sourceId && table.rows > 0) table.sourceId = sourceId;
@@ -2497,8 +2497,8 @@ function parseCell(records, lhIdx, end, ctx) {
2497
2497
  rowAddr = rec.data.readUInt16LE(10);
2498
2498
  const cs = rec.data.readUInt16LE(12);
2499
2499
  const rs = rec.data.readUInt16LE(14);
2500
- if (cs > 0) colSpan = Math.min(cs, _chunkV3IMDOZEcjs.MAX_COLS);
2501
- if (rs > 0) rowSpan = Math.min(rs, _chunkV3IMDOZEcjs.MAX_ROWS);
2500
+ if (cs > 0) colSpan = Math.min(cs, _chunkWNOSEEBHcjs.MAX_COLS);
2501
+ if (rs > 0) rowSpan = Math.min(rs, _chunkWNOSEEBHcjs.MAX_ROWS);
2502
2502
  }
2503
2503
  const blocks = ctx.depth < MAX_NEST_DEPTH ? parseParagraphList(records, lhIdx + 1, end, { ...ctx, depth: ctx.depth + 1, plainText: false }) : [];
2504
2504
  const { text, hasStructure } = cellTextFromBlocks(blocks);
@@ -2624,7 +2624,7 @@ function emphasisSpans(state, text) {
2624
2624
  for (let r = 0; r < runs.length; r++) {
2625
2625
  const end = r + 1 < runs.length ? runs[r + 1][0] : state.text.length;
2626
2626
  const raw = state.text.slice(r === 0 ? 0 : runs[r][0], end);
2627
- const t = _chunkV3IMDOZEcjs.tidyScriptTags.call(void 0, resolveLiteralLt(raw.replaceAll(LITERAL_DOLLAR_MARK, "\\$")));
2627
+ const t = _chunkWNOSEEBHcjs.tidyScriptTags.call(void 0, resolveLiteralLt(raw.replaceAll(LITERAL_DOLLAR_MARK, "\\$")));
2628
2628
  if (!t) continue;
2629
2629
  const key = runs[r][1], last = spans[spans.length - 1];
2630
2630
  if (last && last.key === key) {
@@ -2681,7 +2681,7 @@ function hasRealUnderline(attrFlags) {
2681
2681
 
2682
2682
 
2683
2683
  // src/memo-notes.ts
2684
- var squash = (s) => _chunkV3IMDOZEcjs.sanitizeText.call(void 0, s).replace(/\s+/g, "");
2684
+ var squash = (s) => _chunkWNOSEEBHcjs.sanitizeText.call(void 0, s).replace(/\s+/g, "");
2685
2685
  function blockText(b) {
2686
2686
  if (b.type !== "table" || !b.table) return _nullishCoalesce(b.text, () => ( ""));
2687
2687
  return b.table.cells.flat().map((c) => _nullishCoalesce(_optionalChain([c, 'optionalAccess', _51 => _51.text]), () => ( ""))).join("\n");
@@ -2703,7 +2703,7 @@ function locateMemoBlocks(blocks, memos) {
2703
2703
  });
2704
2704
  }
2705
2705
  function memosMarkdown(memos) {
2706
- const one = (s) => _chunkV3IMDOZEcjs.escapeGfm.call(void 0, _chunkV3IMDOZEcjs.sanitizeText.call(void 0, s.replace(/\s*\n\s*/g, " / ")));
2706
+ const one = (s) => _chunkWNOSEEBHcjs.escapeGfm.call(void 0, _chunkWNOSEEBHcjs.sanitizeText.call(void 0, s.replace(/\s*\n\s*/g, " / ")));
2707
2707
  const lines = memos.map((m, i) => {
2708
2708
  const when = _optionalChain([m, 'access', _52 => _52.createdAt, 'optionalAccess', _53 => _53.replace, 'call', _54 => _54("T", " "), 'access', _55 => _55.replace, 'call', _56 => _56(/(:\d\d)?Z?$/, "")]);
2709
2709
  const who = [m.author, when].filter(Boolean).join(", ");
@@ -2735,7 +2735,7 @@ function openHwp5Container(buffer, options) {
2735
2735
  lenientCfb = _chunkDEVQZTE7cjs.parseLenientCfb.call(void 0, buffer);
2736
2736
  warnings.push({ message: "\uC190\uC0C1\uB41C CFB \uCEE8\uD14C\uC774\uB108 \u2014 lenient \uBAA8\uB4DC\uB85C \uBCF5\uAD6C", code: "LENIENT_CFB_RECOVERY" });
2737
2737
  } catch (e8) {
2738
- throw new (0, _chunkMANE7HAZcjs.KordocError)("CFB \uCEE8\uD14C\uC774\uB108 \uD30C\uC2F1 \uC2E4\uD328 (strict \uBC0F lenient \uBAA8\uB450)");
2738
+ throw new (0, _chunkJZEMASGRcjs.KordocError)("CFB \uCEE8\uD14C\uC774\uB108 \uD30C\uC2F1 \uC2E4\uD328 (strict \uBC0F lenient \uBAA8\uB450)");
2739
2739
  }
2740
2740
  }
2741
2741
  const readRawStream = (path) => {
@@ -2746,14 +2746,14 @@ function openHwp5Container(buffer, options) {
2746
2746
  return lenientCfb.findStream(path);
2747
2747
  };
2748
2748
  const headerData = readRawStream("/FileHeader");
2749
- if (!headerData) throw new (0, _chunkMANE7HAZcjs.KordocError)("FileHeader \uC2A4\uD2B8\uB9BC \uC5C6\uC74C");
2749
+ if (!headerData) throw new (0, _chunkJZEMASGRcjs.KordocError)("FileHeader \uC2A4\uD2B8\uB9BC \uC5C6\uC74C");
2750
2750
  const header = parseFileHeader(headerData);
2751
- if (header.signature !== "HWP Document File") throw new (0, _chunkMANE7HAZcjs.KordocError)("HWP \uC2DC\uADF8\uB2C8\uCC98 \uBD88\uC77C\uCE58");
2752
- if (header.flags & FLAG_DRM) throw new (0, _chunkMANE7HAZcjs.KordocError)("DRM \uBCF4\uD638\uB41C HWP\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
2751
+ if (header.signature !== "HWP Document File") throw new (0, _chunkJZEMASGRcjs.KordocError)("HWP \uC2DC\uADF8\uB2C8\uCC98 \uBD88\uC77C\uCE58");
2752
+ if (header.flags & FLAG_DRM) throw new (0, _chunkJZEMASGRcjs.KordocError)("DRM \uBCF4\uD638\uB41C HWP\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4");
2753
2753
  const encrypted = (header.flags & FLAG_ENCRYPTED) !== 0;
2754
2754
  if (encrypted) {
2755
2755
  if (!_optionalChain([options, 'optionalAccess', _58 => _58.password])) {
2756
- throw new (0, _chunkMANE7HAZcjs.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.");
2756
+ throw new (0, _chunkJZEMASGRcjs.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.");
2757
2757
  }
2758
2758
  assertSupportedEncryptVersion(readEncryptVersion(headerData));
2759
2759
  }
@@ -2767,12 +2767,12 @@ function openHwp5Container(buffer, options) {
2767
2767
  const distribution = (header.flags & FLAG_DISTRIBUTION) !== 0;
2768
2768
  if (encrypted) {
2769
2769
  const rawDocInfo = findStream("/DocInfo");
2770
- if (!rawDocInfo) throw new (0, _chunkMANE7HAZcjs.KordocError)("DocInfo \uC2A4\uD2B8\uB9BC \uC5C6\uC74C");
2770
+ if (!rawDocInfo) throw new (0, _chunkJZEMASGRcjs.KordocError)("DocInfo \uC2A4\uD2B8\uB9BC \uC5C6\uC74C");
2771
2771
  let docInfoData;
2772
2772
  try {
2773
2773
  docInfoData = compressed ? decompressStream(rawDocInfo) : rawDocInfo;
2774
2774
  } catch (e9) {
2775
- throw new (0, _chunkMANE7HAZcjs.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.");
2775
+ throw new (0, _chunkJZEMASGRcjs.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.");
2776
2776
  }
2777
2777
  assertDecryptedDocInfo(docInfoData, readRecords);
2778
2778
  }
@@ -2797,10 +2797,10 @@ function readHwp5SectionRecords(c, sections, warnings) {
2797
2797
  try {
2798
2798
  const data2 = !c.distribution && c.compressed ? decompressStream(Buffer.from(sections[si])) : Buffer.from(sections[si]);
2799
2799
  totalDecompressed += data2.length;
2800
- if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkMANE7HAZcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
2800
+ if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkJZEMASGRcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
2801
2801
  out.push(readRecords(data2));
2802
2802
  } catch (secErr) {
2803
- if (secErr instanceof _chunkMANE7HAZcjs.KordocError) throw secErr;
2803
+ if (secErr instanceof _chunkJZEMASGRcjs.KordocError) throw secErr;
2804
2804
  out.push(null);
2805
2805
  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" });
2806
2806
  }
@@ -2820,7 +2820,7 @@ function parseHwp5Document(buffer, options) {
2820
2820
  if (cfb) extractHwp5Metadata(cfb, metadata);
2821
2821
  const docInfo = cfb && !encrypted ? parseDocInfoStream(cfb, compressed) : parseDocInfoFromStream(findStream("/DocInfo"), compressed);
2822
2822
  const sections = readHwp5SectionStreams(c);
2823
- if (sections.length === 0) throw new (0, _chunkMANE7HAZcjs.KordocError)("\uC139\uC158 \uC2A4\uD2B8\uB9BC\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
2823
+ if (sections.length === 0) throw new (0, _chunkJZEMASGRcjs.KordocError)("\uC139\uC158 \uC2A4\uD2B8\uB9BC\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
2824
2824
  const sectionRecords = readHwp5SectionRecords(c, sections, warnings);
2825
2825
  const sectionDetects = sectionRecords.map((r) => r ? detectHwp5SectionPages(r) : null);
2826
2826
  const sectionTableIds = [];
@@ -2864,7 +2864,7 @@ function parseHwp5Document(buffer, options) {
2864
2864
  parsedSections++;
2865
2865
  _optionalChain([options, 'optionalAccess', _63 => _63.onProgress, 'optionalCall', _64 => _64(parsedSections, sections.length)]);
2866
2866
  } catch (secErr) {
2867
- if (secErr instanceof _chunkMANE7HAZcjs.KordocError) throw secErr;
2867
+ if (secErr instanceof _chunkJZEMASGRcjs.KordocError) throw secErr;
2868
2868
  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" });
2869
2869
  } finally {
2870
2870
  pageBase += detect.pages;
@@ -2875,10 +2875,10 @@ function parseHwp5Document(buffer, options) {
2875
2875
  }
2876
2876
  const blocks = [...doc.headerBlocks, ...bodyBlocks, ...doc.footerBlocks];
2877
2877
  const images = cfb ? extractHwp5Images(cfb.FileIndex, blocks, warnings, !pageFilter, encrypted ? findStream : void 0) : extractHwp5ImagesLenient(lenientCfb, blocks, warnings, !pageFilter, encrypted ? findStream : void 0);
2878
- let flatBlocks = _chunkV3IMDOZEcjs.flattenLayoutTables.call(void 0, blocks);
2879
- if (_optionalChain([options, 'optionalAccess', _65 => _65.layoutTables]) !== "keep") flatBlocks = _chunkV3IMDOZEcjs.unframeLayoutTables.call(void 0, flatBlocks, !!_optionalChain([options, 'optionalAccess', _66 => _66.keepTrailingEmptyCols]));
2878
+ let flatBlocks = _chunkWNOSEEBHcjs.flattenLayoutTables.call(void 0, blocks);
2879
+ if (_optionalChain([options, 'optionalAccess', _65 => _65.layoutTables]) !== "keep") flatBlocks = _chunkWNOSEEBHcjs.unframeLayoutTables.call(void 0, flatBlocks, !!_optionalChain([options, 'optionalAccess', _66 => _66.keepTrailingEmptyCols]));
2880
2880
  if (_optionalChain([options, 'optionalAccess', _67 => _67.dedupeRunningHeaders])) {
2881
- const deduped = _chunkV3IMDOZEcjs.dedupeRunningHeaders.call(void 0, flatBlocks);
2881
+ const deduped = _chunkWNOSEEBHcjs.dedupeRunningHeaders.call(void 0, flatBlocks);
2882
2882
  const removed = flatBlocks.length - deduped.length;
2883
2883
  if (removed > 0) warnings.push({ message: `\uBC18\uBCF5 \uB7EC\uB2DD \uD5E4\uB354 ${removed}\uAC1C \uC81C\uAC70`, code: "HIDDEN_TEXT_FILTERED" });
2884
2884
  flatBlocks = deduped;
@@ -2887,7 +2887,7 @@ function parseHwp5Document(buffer, options) {
2887
2887
  detectHwp5Headings(flatBlocks, docInfo, doc.tocTexts);
2888
2888
  }
2889
2889
  const outline = flatBlocks.filter((b) => b.type === "heading" && b.level && b.text).map((b) => ({ level: b.level, text: b.text, pageNumber: b.pageNumber }));
2890
- let markdown = _chunkV3IMDOZEcjs.blocksToMarkdown.call(void 0, flatBlocks, { tableFormat: _optionalChain([options, 'optionalAccess', _68 => _68.tableFormat]) });
2890
+ let markdown = _chunkWNOSEEBHcjs.blocksToMarkdown.call(void 0, flatBlocks, { tableFormat: _optionalChain([options, 'optionalAccess', _68 => _68.tableFormat]) });
2891
2891
  if (_optionalChain([options, 'optionalAccess', _69 => _69.inlineImages]) && options.images !== false && images.length > 0) {
2892
2892
  try {
2893
2893
  markdown = _chunkX7RBVVDCcjs.inlineImagesIntoMarkdown.call(void 0, markdown, images, { compress: true });
@@ -2955,9 +2955,9 @@ function detectHwp5Headings(blocks, docInfo, tocTexts) {
2955
2955
  let level = 0;
2956
2956
  if (_optionalChain([block, 'access', _76 => _76.style, 'optionalAccess', _77 => _77.fontSize]) && baseFontSize > 0) {
2957
2957
  const ratio = block.style.fontSize / baseFontSize;
2958
- if (ratio >= _chunkV3IMDOZEcjs.HEADING_RATIO_H1) level = 1;
2959
- else if (ratio >= _chunkV3IMDOZEcjs.HEADING_RATIO_H2) level = 2;
2960
- else if (ratio >= _chunkV3IMDOZEcjs.HEADING_RATIO_H3) level = 3;
2958
+ if (ratio >= _chunkWNOSEEBHcjs.HEADING_RATIO_H1) level = 1;
2959
+ else if (ratio >= _chunkWNOSEEBHcjs.HEADING_RATIO_H2) level = 2;
2960
+ else if (ratio >= _chunkWNOSEEBHcjs.HEADING_RATIO_H3) level = 3;
2961
2961
  }
2962
2962
  if (/^제\d+[장절편]\s/.test(text) && text.length <= 50) {
2963
2963
  if (level === 0) level = 2;
@@ -3090,7 +3090,7 @@ function findSectionsLenient(lcfb) {
3090
3090
  const raw = _nullishCoalesce(lcfb.findStream(`/BodyText/Section${i}`), () => ( lcfb.findStream(`Section${i}`)));
3091
3091
  if (!raw) break;
3092
3092
  totalBytes += raw.length;
3093
- if (totalBytes > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkMANE7HAZcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
3093
+ if (totalBytes > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkJZEMASGRcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
3094
3094
  sections.push({ idx: i, content: raw });
3095
3095
  }
3096
3096
  if (sections.length === 0) {
@@ -3101,7 +3101,7 @@ function findSectionsLenient(lcfb) {
3101
3101
  const raw = lcfb.findStream(e.name);
3102
3102
  if (raw) {
3103
3103
  totalBytes += raw.length;
3104
- if (totalBytes > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkMANE7HAZcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
3104
+ if (totalBytes > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkJZEMASGRcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
3105
3105
  sections.push({ idx, content: raw });
3106
3106
  }
3107
3107
  }
@@ -3118,7 +3118,7 @@ function findViewTextSectionsLenient(lcfb, compressed) {
3118
3118
  try {
3119
3119
  const content = decryptViewText(raw, compressed);
3120
3120
  totalDecompressed += content.length;
3121
- if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkMANE7HAZcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
3121
+ if (totalDecompressed > MAX_TOTAL_DECOMPRESS) throw new (0, _chunkJZEMASGRcjs.KordocError)("\uCD1D \uC555\uCD95 \uD574\uC81C \uD06C\uAE30 \uCD08\uACFC (decompression bomb \uC758\uC2EC)");
3122
3122
  sections.push({ idx: i, content });
3123
3123
  } catch (e16) {
3124
3124
  break;
@@ -3209,7 +3209,7 @@ function color(c) {
3209
3209
  c >>>= 0;
3210
3210
  if (c === 4294967295) return "none";
3211
3211
  const a = c >>> 24;
3212
- return "#" + (a ? hex2(a) : "") + hex2(c & 255) + hex2(c >>> 8 & 255) + hex2(c >>> 16 & 255);
3212
+ return "#" + (a ? a.toString(16).toUpperCase() : "") + hex2(c & 255) + hex2(c >>> 8 & 255) + hex2(c >>> 16 & 255);
3213
3213
  }
3214
3214
  var bit = (v, n) => v >>> n & 1;
3215
3215
  var bits = (v, from, width) => v >>> from & (1 << width) - 1;
@@ -3694,7 +3694,7 @@ function style(r, id, paraIds) {
3694
3694
  }
3695
3695
  function memoPr(r, id) {
3696
3696
  const c = new Cur(r.data);
3697
- const width = c.u32(), lineWidth = c.u8(), lineType = c.u8(), lineColor = c.u32(), fillColor = c.u32(), activeColor = c.u32(), type = c.u16();
3697
+ const width = c.u32(), lineType = c.u8(), lineWidth = c.u8(), lineColor = c.u32(), fillColor = c.u32(), activeColor = c.u32(), type = c.u16();
3698
3698
  return el("hh:memoPr", [
3699
3699
  ["id", id],
3700
3700
  ["width", width],
@@ -3706,6 +3706,32 @@ function memoPr(r, id) {
3706
3706
  ["memoType", pick(MEMO_TYPES, type)]
3707
3707
  ]);
3708
3708
  }
3709
+ var TRACK_TYPES = { 17: "Delete", 18: "CharShape", 19: "ParaShape" };
3710
+ function trackChange(r, id, paraIds) {
3711
+ const c = new Cur(r.data);
3712
+ const type = c.u32(), y = c.u16(), mo = c.u16(), d = c.u16(), h = c.u16(), mi = c.u16();
3713
+ const author = c.u32(), n = c.u32();
3714
+ const shape = n >= 4 ? c.u32() : 0;
3715
+ c.skip(Math.max(0, n - 4));
3716
+ const hide = c.u32();
3717
+ const name = _nullishCoalesce(TRACK_TYPES[type], () => ( "UnKnown"));
3718
+ return el("hh:trackChange", [
3719
+ ["type", name],
3720
+ ["date", new Date(y, mo - 1, d, h, mi).toISOString().replace(/\.\d+Z$/, "Z")],
3721
+ ["authorID", author],
3722
+ ["hide", hide],
3723
+ ["id", id],
3724
+ ...name === "CharShape" ? [["charshapeID", shape]] : [],
3725
+ ...name === "ParaShape" ? [["parashapeID", _nullishCoalesce(paraIds[shape], () => ( shape))]] : []
3726
+ ]);
3727
+ }
3728
+ function trackChangeAuthor(r, id) {
3729
+ const c = new Cur(r.data);
3730
+ const n = c.u32();
3731
+ const name = r.data.toString("utf16le", Math.min(c.o, r.data.length), Math.min(r.data.length, c.o + n * 2));
3732
+ c.skip(n * 2);
3733
+ return el("hh:trackChangeAuthor", [["name", name], ["mark", c.u32()], ["id", id]]);
3734
+ }
3709
3735
  function docProps(recs) {
3710
3736
  const r = recs.find((x) => x.tagId === TAG.DOCUMENT_PROPERTIES);
3711
3737
  const c = new Cur(_nullishCoalesce(_optionalChain([r, 'optionalAccess', _93 => _93.data]), () => ( Buffer.alloc(0))));
@@ -3758,8 +3784,11 @@ function headerXml(recs, linkInfo, ref, secCnt) {
3758
3784
  refList += list("hh:paraProperties", of(TAG.PARA_SHAPE).flatMap((r, i) => paraIds.indexOf(paraIds[i]) === i ? [paraPr(r, paraIds[i])] : []));
3759
3785
  refList += list("hh:styles", of(TAG.STYLE).map((r, i) => style(r, i, paraIds)));
3760
3786
  refList += list("hh:memoProperties", of(TAG.MEMO_SHAPE).map((r, i) => memoPr(r, i + 1)));
3787
+ refList += list("hh:trackChanges", recs.filter((r) => r.tagId === TAG.TRACK_CHANGE).map((r, i) => trackChange(r, i + 1, paraIds)));
3788
+ refList += list("hh:trackChangeAuthors", recs.filter((r) => r.tagId === TAG.TRACK_CHANGE_AUTHOR).map((r, i) => trackChangeAuthor(r, i + 1)));
3761
3789
  const compat = new Cur(_nullishCoalesce(_optionalChain([recs, 'access', _97 => _97.find, 'call', _98 => _98((r) => r.tagId === TAG.COMPATIBLE_DOCUMENT), 'optionalAccess', _99 => _99.data]), () => ( Buffer.alloc(0)))).u32();
3762
- const track = new Cur(_nullishCoalesce(_optionalChain([recs, 'access', _100 => _100.find, 'call', _101 => _101((r) => r.tagId === TAG.TRACKCHANGE), 'optionalAccess', _102 => _102.data]), () => ( Buffer.alloc(0)))).u32();
3790
+ const trackRec = recs.find((r) => r.tagId === TAG.TRACKCHANGE);
3791
+ const track = trackRec ? new Cur(trackRec.data).u32() : 56;
3763
3792
  return XML_DECL + `<hh:head ${NS} version="1.5" secCnt="${secCnt}">` + el("hh:beginNum", [["page", bPage], ["footnote", bFoot], ["endnote", bEnd], ["pic", bPic], ["tbl", bTbl], ["equation", bEq]]) + `<hh:refList>${refList}</hh:refList>` + el("hh:compatibleDocument", [["targetProgram", pick(TARGET_PROGRAMS, compat)]], "<hh:layoutCompatibility/>") + el("hh:docOption", [], el("hh:linkinfo", [["path", linkInfo.path], ["pageInherit", linkInfo.pageInherit], ["footnoteInherit", linkInfo.footnoteInherit]])) + el("hh:trackchageConfig", [["flags", track]]) + "</hh:head>";
3764
3793
  }
3765
3794
 
@@ -3983,7 +4012,13 @@ function drawingStyle(k, ctx) {
3983
4012
  const lineAlpha = c.u8(), sAlpha = c.u8();
3984
4013
  const line = lineShapeXml(lineColor, width, a, outline, lineAlpha);
3985
4014
  const shadow = el("hp:shadow", [["type", pick(SHADOW_TYPES2, sType)], ["color", color(sColor)], ["offsetX", sx], ["offsetY", sy], ["alpha", sAlpha]]);
3986
- return { xml: line + fill + shadow, instId };
4015
+ return { xml: line + fill + shadow, instId, shadow: [sType, sx, sy] };
4016
+ }
4017
+ function shadowMargin(m, [type, sx, sy]) {
4018
+ if (type < 1 || type > 4) return m;
4019
+ const h = sx + (type === 2 || type === 4 ? 600 : -600), v = sy + (type >= 3 ? 600 : -600);
4020
+ const cut = (x, d) => d > 0 ? x - d >>> 0 : x;
4021
+ return [cut(m[0], -h), cut(m[1], h), cut(m[2], -v), cut(m[3], v)];
3987
4022
  }
3988
4023
  function drawTextXml(comp, ctx) {
3989
4024
  const g = listGroups(comp.kids)[0];
@@ -4003,15 +4038,15 @@ var ELLIPSE_ARC = ["NORMAL", "PIE", "CHORD"];
4003
4038
  var pt = (name, c) => el(name, [["x", c.i32()], ["y", c.i32()]]);
4004
4039
  function shapeHref(comp) {
4005
4040
  const cd = comp.kids.find((x) => x.rec.tagId === TAG_CTRL_DATA);
4006
- const v = cd ? _optionalChain([subSet, 'call', _103 => _103(readParamSet(cd.rec.data, { o: 0 }), 623), 'optionalAccess', _104 => _104[613]]) : void 0;
4041
+ const v = cd ? _optionalChain([subSet, 'call', _100 => _100(readParamSet(cd.rec.data, { o: 0 }), 623), 'optionalAccess', _101 => _101[613]]) : void 0;
4007
4042
  return typeof v === "string" ? v.replace(/\\:/g, ":") : "";
4008
4043
  }
4009
4044
  function shapeXml(comp, o, description, ctx, caption) {
4010
4045
  const k = readComponent(comp);
4011
- const sub = (tag) => new Cur(_nullishCoalesce(_optionalChain([comp, 'access', _105 => _105.kids, 'access', _106 => _106.find, 'call', _107 => _107((x) => x.rec.tagId === tag), 'optionalAccess', _108 => _108.rec, 'access', _109 => _109.data]), () => ( Buffer.alloc(0))));
4046
+ const sub = (tag) => new Cur(_nullishCoalesce(_optionalChain([comp, 'access', _102 => _102.kids, 'access', _103 => _103.find, 'call', _104 => _104((x) => x.rec.tagId === tag), 'optionalAccess', _105 => _105.rec, 'access', _106 => _106.data]), () => ( Buffer.alloc(0))));
4012
4047
  const head = o ? objHeadAttrs(o) : [["id", 0], ["zOrder", 0], ["numberingType", "NONE"], ["textWrap", "TOP_AND_BOTTOM"], ["textFlow", "BOTH_SIDES"], ["lock", 0], ["dropcapstyle", "None"]];
4013
4048
  const comment = o && description ? `<hp:shapeComment>${escText(description)}</hp:shapeComment>` : "";
4014
- const tail = o ? objPlacementXml(o) + comment + caption : comment;
4049
+ let tail = o ? objPlacementXml(o) + comment + caption : comment;
4015
4050
  const common = componentHeadXml(k);
4016
4051
  const href = shapeHref(comp);
4017
4052
  if (k.kind === "$pic") {
@@ -4053,6 +4088,7 @@ function shapeXml(comp, o, description, ctx, caption) {
4053
4088
  return el("hp:container", [...head, ["href", href], ["groupLevel", k.groupLevel], ["instid", instId]], common + kids + tail);
4054
4089
  }
4055
4090
  const s = drawingStyle(k, ctx);
4091
+ if (o) tail = objPlacementXml({ ...o, margin: shadowMargin(o.margin, s.shadow) }) + comment + caption;
4056
4092
  const text = drawTextXml(comp, ctx);
4057
4093
  const ref = [["href", href], ["groupLevel", k.groupLevel], ["instid", s.instId]];
4058
4094
  switch (k.kind) {
@@ -4128,7 +4164,7 @@ var OLE_ASPECTS = { 1: "CONTENT", 2: "THUMBNAIL", 4: "ICON", 8: "DOCPRINT" };
4128
4164
  var OLE_TYPES = ["UNKNOWN", "EMBEDDED", "LINK", "STATIC", "EQUATION"];
4129
4165
  var CHART_NS = "http://www.hancom.co.kr/hwpml/2016/ooxmlchart";
4130
4166
  function oleXml(comp, k, head, common, o, caption, comment, ctx) {
4131
- const r = new Cur(_nullishCoalesce(_optionalChain([comp, 'access', _110 => _110.kids, 'access', _111 => _111.find, 'call', _112 => _112((x) => x.rec.tagId === TAG_SHAPE.OLE), 'optionalAccess', _113 => _113.rec, 'access', _114 => _114.data]), () => ( Buffer.alloc(0))));
4167
+ const r = new Cur(_nullishCoalesce(_optionalChain([comp, 'access', _107 => _107.kids, 'access', _108 => _108.find, 'call', _109 => _109((x) => x.rec.tagId === TAG_SHAPE.OLE), 'optionalAccess', _110 => _110.rec, 'access', _111 => _111.data]), () => ( Buffer.alloc(0))));
4132
4168
  const a = r.u32(), ex = r.i32(), ey = r.i32(), binId = r.u16();
4133
4169
  const lineColor = r.u32(), lineWidth = r.i32(), la = r.u32();
4134
4170
  const instId = r.rest >= 4 ? r.u32() : 0;
@@ -4322,7 +4358,7 @@ function otherControlXml(id, node, ctx) {
4322
4358
  ["charSz", size],
4323
4359
  ["composeType", expansion ? "OVERLAP" : "SPREAD"],
4324
4360
  ["charPrCnt", ids.length],
4325
- ["composeText", circle ? _chunkV3IMDOZEcjs.composeDigits.call(void 0, text) : text]
4361
+ ["composeText", circle ? _chunkWNOSEEBHcjs.composeDigits.call(void 0, text) : text]
4326
4362
  ],
4327
4363
  ids.map((i) => el("hp:charPr", [["prIDRef", i]])).join("")
4328
4364
  ) };
@@ -4386,7 +4422,7 @@ function formProps(s) {
4386
4422
  return out;
4387
4423
  }
4388
4424
  function formXml(node) {
4389
- const rec = _optionalChain([node, 'access', _115 => _115.kids, 'access', _116 => _116.find, 'call', _117 => _117((k) => k.rec.tagId === TAG_FORM_OBJECT), 'optionalAccess', _118 => _118.rec, 'access', _119 => _119.data]);
4425
+ const rec = _optionalChain([node, 'access', _112 => _112.kids, 'access', _113 => _113.find, 'call', _114 => _114((k) => k.rec.tagId === TAG_FORM_OBJECT), 'optionalAccess', _115 => _115.rec, 'access', _116 => _116.data]);
4390
4426
  const tag = rec && rec.length >= 14 ? FORM_KINDS[rec.toString("latin1", 0, 4)] : void 0;
4391
4427
  if (!rec || !tag) return null;
4392
4428
  const p = formProps(rec.toString("utf16le", 14, 14 + rec.readUInt16LE(12) * 2));
@@ -4442,7 +4478,7 @@ function equationXml(node, ctx) {
4442
4478
  const desc = new Cur(node.rec.data, 44);
4443
4479
  const description = desc.rest >= 2 ? desc.str() : "";
4444
4480
  const eq = node.kids.find((k) => k.rec.tagId === 88);
4445
- const c = new Cur(_nullishCoalesce(_optionalChain([eq, 'optionalAccess', _120 => _120.rec, 'access', _121 => _121.data]), () => ( Buffer.alloc(0))));
4481
+ const c = new Cur(_nullishCoalesce(_optionalChain([eq, 'optionalAccess', _117 => _117.rec, 'access', _118 => _118.data]), () => ( Buffer.alloc(0))));
4446
4482
  const a = c.u32(), script = c.str(), baseUnit = c.u32(), textColor = c.u32(), baseLine = c.i16();
4447
4483
  c.u16();
4448
4484
  const version = c.rest >= 2 ? c.str() : "", font = c.rest >= 2 ? c.str() : "";
@@ -4691,17 +4727,17 @@ function paragraphXml(p, ctx) {
4691
4727
  }
4692
4728
  if (!runs.length) runs.push([0, 0]);
4693
4729
  const ctrls = p.kids.filter((k) => k.rec.tagId === TAG2.CTRL_HEADER);
4694
- const ranges = rangeTags(p.kids.find((k) => k.rec.tagId === TAG2.PARA_RANGE_TAG));
4730
+ const ranges = rangeTags(p.kids.find((k) => k.rec.tagId === TAG2.PARA_RANGE_TAG), crPos);
4695
4731
  const toks = tokenize(text, ctrls, ctx, /* @__PURE__ */ new Set([...runs.map((r) => r[0]), ...ranges.styles.flatMap((r) => [r[0], r[1]])]), ranges.marks);
4696
- for (const k of toks) if (k.t !== "ctrl") k.cs = _optionalChain([ranges, 'access', _122 => _122.styles, 'access', _123 => _123.find, 'call', _124 => _124((r) => k.pos >= r[0] && k.pos < r[1]), 'optionalAccess', _125 => _125[2]]);
4732
+ for (const k of toks) if (k.t !== "ctrl") k.cs = _optionalChain([ranges, 'access', _119 => _119.styles, 'access', _120 => _120.find, 'call', _121 => _121((r) => k.pos >= r[0] && k.pos < r[1]), 'optionalAccess', _122 => _122[2]]);
4697
4733
  const units = text.length / 2;
4698
4734
  const hasCtrl = toks.some((t) => t.t === "ctrl");
4699
4735
  let body = "";
4700
4736
  for (let i = 0; i < runs.length; i++) {
4701
4737
  const from = runs[i][0], to = i + 1 < runs.length ? runs[i + 1][0] : Math.max(units, nChars);
4702
4738
  let seg = toks.filter((t) => t.pos >= from && t.pos < to);
4703
- if (!seg.length && i > 0 && from >= crPos && hasCtrl) seg = [{ pos: from, t: "text", s: "" }];
4704
- body += runXml(runs[i][1], seg);
4739
+ if (!seg.length && i > 0 && from >= crPos && (hasCtrl || toks.some((k) => k.t === "inline" && (_nullishCoalesce(k.end, () => ( -1))) >= from))) seg = [{ pos: from, t: "text", s: "" }];
4740
+ body += runXml(runs[i][1], seg, _optionalChain([ranges, 'access', _123 => _123.charTc, 'access', _124 => _124.find, 'call', _125 => _125((r) => from >= r[0] && from < r[1]), 'optionalAccess', _126 => _126[2]]));
4705
4741
  }
4706
4742
  const ls = p.kids.find((k) => k.rec.tagId === TAG2.PARA_LINE_SEG);
4707
4743
  if (ls) {
@@ -4727,12 +4763,17 @@ function paragraphXml(p, ctx) {
4727
4763
  ["styleIDRef", styleId],
4728
4764
  ["pageBreak", bit(breaks, 2)],
4729
4765
  ["columnBreak", bit(breaks, 3)],
4730
- ["merged", merged]
4766
+ ["merged", merged],
4767
+ ...ranges.paraTc ? [["paraTcId", ranges.paraTc]] : []
4731
4768
  ], body);
4732
4769
  }
4733
- function rangeTags(node) {
4734
- const marks = /* @__PURE__ */ new Map(), styles = [];
4735
- if (!node) return { marks, styles };
4770
+ var TRACK_RANGES = { 17: "delete" };
4771
+ var TRACK_CHAR_SHAPE = 18;
4772
+ var TRACK_PARA_SHAPE = 19;
4773
+ function rangeTags(node, crPos) {
4774
+ const marks = /* @__PURE__ */ new Map(), styles = [], charTc = [];
4775
+ let paraTc = 0;
4776
+ if (!node) return { marks, styles, charTc, paraTc };
4736
4777
  const add = (pos, xml, first) => {
4737
4778
  const list = _nullishCoalesce(marks.get(pos), () => ( []));
4738
4779
  if (first) list.unshift(xml);
@@ -4742,18 +4783,36 @@ function rangeTags(node) {
4742
4783
  for (const c = new Cur(node.rec.data); c.rest >= 12; ) {
4743
4784
  const start = c.u32(), end = c.u32(), tag = c.u32();
4744
4785
  if (end <= start) continue;
4745
- if (tag >>> 24 === 1) styles.push([start, end, tag & 16777215]);
4746
- if (tag >>> 24 !== 2) continue;
4747
- add(start, el("hp:markpenBegin", [["color", color(tag & 16777215)]]), false);
4748
- add(end, "<hp:markpenEnd/>", true);
4749
- }
4750
- return { marks, styles };
4751
- }
4786
+ const kind = tag >>> 24, data2 = tag & 16777215;
4787
+ if (kind === 1) styles.push([start, end, data2]);
4788
+ if (kind === TRACK_CHAR_SHAPE) charTc.push([start, end, data2]);
4789
+ if (kind === TRACK_PARA_SHAPE) paraTc = data2;
4790
+ if (TRACK_RANGES[kind]) {
4791
+ const range = { name: TRACK_RANGES[kind], tc: data2, paraend: end > crPos ? 1 : 0, id: 0 };
4792
+ add(start, { range, begin: true }, false);
4793
+ add(end, { range, begin: false }, true);
4794
+ }
4795
+ if (kind !== 2) continue;
4796
+ add(start, el("hp:markpenBegin", [["color", color(data2)]]), false);
4797
+ add(end, MARKPEN_END, true);
4798
+ }
4799
+ return { marks, styles, charTc, paraTc };
4800
+ }
4801
+ var MARKPEN_END = "<hp:markpenEnd/>";
4802
+ function markTok(pos, m, ctx) {
4803
+ if (typeof m === "string") return m === MARKPEN_END ? { pos: pos - 1, t: "inline", xml: m, mark: true, end: pos } : { pos, t: "inline", xml: m, mark: true };
4804
+ const r = m.range;
4805
+ if (m.begin) r.id = ++ctx.trackMarks;
4806
+ const xml = m.begin ? el(`hp:${r.name}Begin`, [["Id", r.id], ["TcId", r.tc]]) : el(`hp:${r.name}End`, [["Id", r.id], ["TcId", r.tc], ["paraend", r.paraend]]);
4807
+ return m.begin ? { pos, t: "inline", xml, track: true } : { pos: pos - 1, t: "inline", xml, track: true, end: pos };
4808
+ }
4809
+ var isTrack = (k) => _optionalChain([k, 'optionalAccess', _127 => _127.t]) === "inline" && !!k.track;
4752
4810
  function tokenize(text, ctrls, ctx, cuts, marks) {
4753
4811
  const toks = [];
4754
4812
  const n = text.length / 2;
4755
4813
  let ci = 0;
4756
4814
  let buf = "", bufPos = 0;
4815
+ const pageNums = /* @__PURE__ */ new Set();
4757
4816
  const flush = () => {
4758
4817
  if (buf) toks.push({ pos: bufPos, t: "text", s: buf });
4759
4818
  buf = "";
@@ -4764,7 +4823,7 @@ function tokenize(text, ctrls, ctx, cuts, marks) {
4764
4823
  const mk = marks.get(i);
4765
4824
  if (mk) {
4766
4825
  flush();
4767
- for (const xml of mk) toks.push({ pos: i, t: "inline", xml, mark: true });
4826
+ for (const m of mk) toks.push(markTok(i, m, ctx));
4768
4827
  }
4769
4828
  if (c >= 32) {
4770
4829
  if (!buf) bufPos = i;
@@ -4798,21 +4857,27 @@ function tokenize(text, ctrls, ctx, cuts, marks) {
4798
4857
  const node = ctrls[ci++];
4799
4858
  if (node) {
4800
4859
  const r = controlXml(node, ctx);
4801
- if (r) toks.push({ pos: i, t: "ctrl", obj: r.obj, xml: r.xml, def: r.def });
4860
+ const dup = r !== null && ctrlId(node) === "pgnp" && pageNums.has(r.xml);
4861
+ if (r && ctrlId(node) === "pgnp") pageNums.add(r.xml);
4862
+ if (r) toks.push({ pos: i, t: "ctrl", obj: r.obj, xml: dup ? "" : r.xml, def: r.def });
4802
4863
  }
4803
4864
  i += 8;
4804
4865
  }
4805
4866
  flush();
4806
- for (const [pos, list] of marks) if (pos >= n) for (const xml of list) toks.push({ pos: Math.max(0, n - 1), t: "inline", xml, mark: true });
4867
+ for (const [pos, list] of marks) if (pos >= n) for (const m of list) toks.push(markTok(n, m, ctx));
4807
4868
  for (let k = toks.length - 1; k >= 0; k--) {
4808
4869
  const o = toks[k];
4809
- if (o.t === "ctrl" && _optionalChain([toks, 'access', _126 => _126[k + 1], 'optionalAccess', _127 => _127.pos]) !== o.pos + 8) toks.splice(k + 1, 0, { pos: o.pos + 8, t: "text", s: "" });
4870
+ if (o.t !== "ctrl") continue;
4871
+ let j = k + 1;
4872
+ while (isTrack(toks[j]) && toks[j].pos <= o.pos + 8) j++;
4873
+ if (_optionalChain([toks, 'access', _128 => _128[j], 'optionalAccess', _129 => _129.pos]) !== o.pos + 8) toks.splice(j, 0, { pos: o.pos + 8, t: "text", s: "", fresh: j > k + 1 });
4810
4874
  }
4811
4875
  return toks;
4812
4876
  }
4813
- function runXml(charShape, toks) {
4814
- const open = `<hp:run charPrIDRef="${charShape}">`;
4815
- if (!toks.length) return el("hp:run", [["charPrIDRef", charShape]]);
4877
+ function runXml(charShape, toks, tcId) {
4878
+ const runAttrs = [["charPrIDRef", charShape], ...tcId ? [["charTcId", tcId]] : []];
4879
+ const open = `<hp:run${attrs(runAttrs)}>`;
4880
+ if (!toks.length) return el("hp:run", runAttrs);
4816
4881
  let out = "", t = null, tcs;
4817
4882
  const closeT = () => {
4818
4883
  if (t !== null) {
@@ -4822,10 +4887,11 @@ function runXml(charShape, toks) {
4822
4887
  t = null;
4823
4888
  };
4824
4889
  toks.forEach((k, i) => {
4890
+ if (k.t === "text" && k.fresh) closeT();
4825
4891
  if (k.t !== "ctrl" && t !== null && k.cs !== tcs) closeT();
4826
4892
  if (k.t !== "ctrl" && t === null) tcs = k.cs;
4827
4893
  if (k.t === "text") t = (_nullishCoalesce(t, () => ( ""))) + escText(k.s);
4828
- else if (k.t === "inline" && k.mark && _optionalChain([toks, 'access', _128 => _128[i + 1], 'optionalAccess', _129 => _129.t]) === "ctrl") {
4894
+ else if (k.t === "inline" && k.mark && _optionalChain([toks, 'access', _130 => _130[i + 1], 'optionalAccess', _131 => _131.t]) === "ctrl") {
4829
4895
  closeT();
4830
4896
  out += k.xml;
4831
4897
  } else if (k.t === "inline") t = (_nullishCoalesce(t, () => ( ""))) + k.xml;
@@ -4833,11 +4899,11 @@ function runXml(charShape, toks) {
4833
4899
  closeT();
4834
4900
  out += k.xml;
4835
4901
  const next = toks[i + 1];
4836
- if (k.def && !(_optionalChain([next, 'optionalAccess', _130 => _130.t]) === "ctrl" && next.def)) out += "</hp:run>" + open;
4902
+ if (k.def && !(_optionalChain([next, 'optionalAccess', _132 => _132.t]) === "ctrl" && next.def)) out += "</hp:run>" + open;
4837
4903
  }
4838
4904
  });
4839
4905
  closeT();
4840
- return (open + out + "</hp:run>").replace(`${open}</hp:run>`, el("hp:run", [["charPrIDRef", charShape]]));
4906
+ return (open + out + "</hp:run>").replace(`${open}</hp:run>`, el("hp:run", runAttrs));
4841
4907
  }
4842
4908
  function sectionXml(top, ctx) {
4843
4909
  const last = top.filter((n) => n.rec.tagId === TAG2.PARA_HEADER).at(-1);
@@ -4845,12 +4911,12 @@ function sectionXml(top, ctx) {
4845
4911
  ctx.linkedParas = splitLinkedBoxes(top);
4846
4912
  ctx.memos = /* @__PURE__ */ new Map();
4847
4913
  let memo = -1;
4848
- for (const k of _nullishCoalesce(_optionalChain([last, 'optionalAccess', _131 => _131.kids]), () => ( []))) {
4914
+ for (const k of _nullishCoalesce(_optionalChain([last, 'optionalAccess', _133 => _133.kids]), () => ( []))) {
4849
4915
  if (k.rec.tagId === TAG2.MEMO_LIST) memo = k.rec.data.length >= 4 ? k.rec.data.readUInt32LE(0) : -1;
4850
4916
  else if (k.rec.tagId === TAG2.LIST_HEADER) {
4851
4917
  if (memo >= 0 && k.rec.data.length < 20) ctx.memos.set(memo, { head: k, paras: [] });
4852
4918
  else memo = -1;
4853
- } else if (k.rec.tagId === TAG2.PARA_HEADER && memo >= 0) _optionalChain([ctx, 'access', _132 => _132.memos, 'access', _133 => _133.get, 'call', _134 => _134(memo), 'optionalAccess', _135 => _135.paras, 'access', _136 => _136.push, 'call', _137 => _137(k)]);
4919
+ } else if (k.rec.tagId === TAG2.PARA_HEADER && memo >= 0) _optionalChain([ctx, 'access', _134 => _134.memos, 'access', _135 => _135.get, 'call', _136 => _136(memo), 'optionalAccess', _137 => _137.paras, 'access', _138 => _138.push, 'call', _139 => _139(k)]);
4854
4920
  }
4855
4921
  return XML_DECL + `<hs:sec ${NS}>` + paragraphsXml(top, ctx) + "</hs:sec>";
4856
4922
  }
@@ -4992,7 +5058,7 @@ function splitLinkedBoxes(top) {
4992
5058
  for (const n of nodes) {
4993
5059
  if (n.rec.tagId === TAG2.SHAPE_COMPONENT) {
4994
5060
  const g = listGroups(n.kids)[0];
4995
- const d = _optionalChain([g, 'optionalAccess', _138 => _138.head, 'access', _139 => _139.rec, 'access', _140 => _140.data]);
5061
+ const d = _optionalChain([g, 'optionalAccess', _140 => _140.head, 'access', _141 => _141.rec, 'access', _142 => _142.data]);
4996
5062
  if (g && d && d.length >= 28 && d.readUInt32LE(20)) boxes.set(d.readUInt32LE(20), { next: d.readUInt32LE(24), paras: g.paras });
4997
5063
  }
4998
5064
  walk(n.kids);
@@ -5002,7 +5068,7 @@ function splitLinkedBoxes(top) {
5002
5068
  const out = /* @__PURE__ */ new Map();
5003
5069
  const nexts = new Set([...boxes.values()].map((b) => b.next));
5004
5070
  const vpos = (p, last) => {
5005
- const ls = _optionalChain([p, 'access', _141 => _141.kids, 'access', _142 => _142.find, 'call', _143 => _143((k) => k.rec.tagId === TAG2.PARA_LINE_SEG), 'optionalAccess', _144 => _144.rec, 'access', _145 => _145.data]);
5071
+ const ls = _optionalChain([p, 'access', _143 => _143.kids, 'access', _144 => _144.find, 'call', _145 => _145((k) => k.rec.tagId === TAG2.PARA_LINE_SEG), 'optionalAccess', _146 => _146.rec, 'access', _147 => _147.data]);
5006
5072
  if (!ls || ls.length < 36) return -1;
5007
5073
  return ls.readInt32LE((last ? Math.floor(ls.length / 36) - 1 : 0) * 36 + 4);
5008
5074
  };
@@ -5021,7 +5087,7 @@ function splitLinkedBoxes(top) {
5021
5087
  });
5022
5088
  if (parts.length < 2) continue;
5023
5089
  chain.forEach((cid2, i) => {
5024
- if (_optionalChain([parts, 'access', _146 => _146[i], 'optionalAccess', _147 => _147.length])) out.set(cid2, parts[i]);
5090
+ if (_optionalChain([parts, 'access', _148 => _148[i], 'optionalAccess', _149 => _149.length])) out.set(cid2, parts[i]);
5025
5091
  });
5026
5092
  }
5027
5093
  return out;
@@ -5084,7 +5150,7 @@ function oleChartXml(data2) {
5084
5150
  try {
5085
5151
  const cfb = CFB2.read(data2.subarray(4), { type: "buffer" });
5086
5152
  const e = CFB2.find(cfb, "OOXMLChartContents");
5087
- return _optionalChain([e, 'optionalAccess', _148 => _148.content, 'optionalAccess', _149 => _149.length]) ? Buffer.from(e.content) : null;
5153
+ return _optionalChain([e, 'optionalAccess', _150 => _150.content, 'optionalAccess', _151 => _151.length]) ? Buffer.from(e.content) : null;
5088
5154
  } catch (e17) {
5089
5155
  return null;
5090
5156
  }
@@ -5131,13 +5197,22 @@ function shiftZeroBorderFill(parts) {
5131
5197
  }
5132
5198
  return out;
5133
5199
  }
5200
+ function trackChangeSections(c) {
5201
+ if (c.distribution || !(c.header.flags & FLAG_TRACK_CHANGES)) return null;
5202
+ const out = [];
5203
+ for (let i = 0; ; i++) {
5204
+ const s = c.findStream(`/ViewText/Section${i}`);
5205
+ if (!s) break;
5206
+ out.push(s);
5207
+ }
5208
+ return out.length ? out : null;
5209
+ }
5134
5210
  var V13_DEFAULT_SCRIPT = "function OnDocument_New()\r\n{\r\n //todo : \r\n}\r\n\r\n";
5135
5211
  async function hwpToHwpx(input, options) {
5136
5212
  const buffer = Buffer.from(input instanceof ArrayBuffer ? new Uint8Array(input) : input);
5137
5213
  const c = openHwp5Container(buffer, options);
5138
- if (c.distribution) throw new (0, _chunkMANE7HAZcjs.KordocError)("\uBC30\uD3EC\uC6A9(\uC77D\uAE30 \uC804\uC6A9) HWP \uBB38\uC11C\uB294 HWPX \uB85C \uBCC0\uD658\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uC791\uC131\uC790\uAC00 \uBCF5\uC0AC\xB7\uD3B8\uC9D1\uC744 \uB9C9\uC740 \uBB38\uC11C\uC785\uB2C8\uB2E4");
5139
5214
  const docInfo = _nullishCoalesce(readHwp5DocInfoRecords(c), () => ( []));
5140
- const sections = readHwp5SectionRecords(c, readHwp5SectionStreams(c), c.warnings);
5215
+ const sections = readHwp5SectionRecords(c, _nullishCoalesce(trackChangeSections(c), () => ( readHwp5SectionStreams(c))), c.warnings);
5141
5216
  const bins = readHwp5BinData(c);
5142
5217
  const linkDoc = c.findStream("/DocOptions/_LinkDoc");
5143
5218
  const link = { path: "", pageInherit: 0, footnoteInherit: 0 };
@@ -5164,10 +5239,11 @@ async function hwpToHwpx(input, options) {
5164
5239
  tailMasters: [],
5165
5240
  memos: /* @__PURE__ */ new Map(),
5166
5241
  linkedParas: /* @__PURE__ */ new Map(),
5242
+ trackMarks: 0,
5167
5243
  chartOf(binId) {
5168
5244
  if (chartByBin.has(binId)) return chartByBin.get(binId);
5169
5245
  const item = items.find((b) => b.index === binId);
5170
- const xml = _optionalChain([item, 'optionalAccess', _150 => _150.ole]) ? oleChartXml(_optionalChain([bins, 'access', _151 => _151.get, 'call', _152 => _152(item.storageId), 'optionalAccess', _153 => _153.data])) : null;
5246
+ const xml = _optionalChain([item, 'optionalAccess', _152 => _152.ole]) ? oleChartXml(_optionalChain([bins, 'access', _153 => _153.get, 'call', _154 => _154(item.storageId), 'optionalAccess', _155 => _155.data])) : null;
5171
5247
  const name = xml ? `Chart/chart${charts.length + 1}.xml` : null;
5172
5248
  if (xml && name) charts.push({ name, xml });
5173
5249
  chartByBin.set(binId, name);
@@ -5190,7 +5266,7 @@ async function hwpToHwpx(input, options) {
5190
5266
  ["os", 1],
5191
5267
  ["xmlVersion", "1.5"],
5192
5268
  ["application", "kordoc"],
5193
- ["appVersion", _chunkMANE7HAZcjs.VERSION]
5269
+ ["appVersion", _chunkJZEMASGRcjs.VERSION]
5194
5270
  ]),
5195
5271
  { compression: "STORE" }
5196
5272
  );
@@ -5220,7 +5296,7 @@ async function hwpToHwpx(input, options) {
5220
5296
  const b = items.find((x) => x.index === binId);
5221
5297
  const data2 = b && bins.get(b.storageId);
5222
5298
  if (!b || !data2) continue;
5223
- const ext = r.kind === "ole" ? "ole" : _nullishCoalesce(_optionalChain([/\.([^.]+)$/, 'access', _154 => _154.exec, 'call', _155 => _155(data2.name), 'optionalAccess', _156 => _156[1]]), () => ( b.ext));
5299
+ const ext = r.kind === "ole" ? "ole" : _nullishCoalesce(_optionalChain([/\.([^.]+)$/, 'access', _156 => _156.exec, 'call', _157 => _157(data2.name), 'optionalAccess', _158 => _158[1]]), () => ( b.ext));
5224
5300
  const name = `BinData/${r.id}.${ext}`;
5225
5301
  zip.file(name, data2.data, /^(png|jpe?g|gif)$/i.test(ext) ? { compression: "STORE" } : void 0);
5226
5302
  manifest.push(el("opf:item", [
@@ -5270,20 +5346,20 @@ async function convertToHwpx(input, options) {
5270
5346
  const { detectFormat } = await Promise.resolve().then(() => _interopRequireWildcard(require("./detect-V75ERMYL.cjs")));
5271
5347
  const format = detectFormat(ab);
5272
5348
  if (format === "hwpx") return { data: bytes, mode: "preserve", engine: "kordoc", warnings: ["\uC774\uBBF8 HWPX \uBB38\uC11C\uC785\uB2C8\uB2E4 \u2014 \uADF8\uB300\uB85C \uB461\uB2C8\uB2E4"] };
5273
- if (format !== "hwp" && format !== "hwp3" && format !== "hwpml") throw new (0, _chunkMANE7HAZcjs.KordocError)(`HWP \uBB38\uC11C\uAC00 \uC544\uB2D9\uB2C8\uB2E4 (${format})`);
5274
- const engine = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _157 => _157.engine]), () => ( "kordoc"));
5349
+ if (format !== "hwp" && format !== "hwp3" && format !== "hwpml") throw new (0, _chunkJZEMASGRcjs.KordocError)(`HWP \uBB38\uC11C\uAC00 \uC544\uB2D9\uB2C8\uB2E4 (${format})`);
5350
+ const engine = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _159 => _159.engine]), () => ( "kordoc"));
5275
5351
  if (engine !== "kordoc") {
5276
- const { hancomAvailable, hwpToHwpxViaHancom } = await Promise.resolve().then(() => _interopRequireWildcard(require("./hancom-GV5TTF5H.cjs")));
5277
- if (engine === "hancom" || !_optionalChain([options, 'optionalAccess', _158 => _158.password]) && hancomAvailable()) {
5278
- if (_optionalChain([options, 'optionalAccess', _159 => _159.password])) throw new (0, _chunkMANE7HAZcjs.KordocError)('\uD55C/\uAE00 \uC800\uC7A5 \uBCC0\uD658\uC740 \uC5F4\uAE30 \uC554\uD638\uB97C \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 engine "kordoc" \uC73C\uB85C \uBC14\uAFB8\uC138\uC694');
5352
+ const { hancomAvailable, hwpToHwpxViaHancom } = await Promise.resolve().then(() => _interopRequireWildcard(require("./hancom-YR2BB373.cjs")));
5353
+ if (engine === "hancom" || !_optionalChain([options, 'optionalAccess', _160 => _160.password]) && hancomAvailable()) {
5354
+ if (_optionalChain([options, 'optionalAccess', _161 => _161.password])) throw new (0, _chunkJZEMASGRcjs.KordocError)('\uD55C/\uAE00 \uC800\uC7A5 \uBCC0\uD658\uC740 \uC5F4\uAE30 \uC554\uD638\uB97C \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 engine "kordoc" \uC73C\uB85C \uBC14\uAFB8\uC138\uC694');
5279
5355
  return { data: hwpToHwpxViaHancom(bytes, format === "hwpml" ? "hml" : "hwp"), mode: "preserve", engine: "hancom", warnings: [] };
5280
5356
  }
5281
5357
  }
5282
5358
  if (format === "hwp") return { data: await hwpToHwpx(bytes, options), mode: "preserve", engine: "kordoc", warnings: [] };
5283
5359
  const { parse } = await Promise.resolve().then(() => _interopRequireWildcard(require("./index.cjs")));
5284
- const { markdownToHwpx } = await Promise.resolve().then(() => _interopRequireWildcard(require("./generator-CHBOCLYX.cjs")));
5285
- const parsed = await parse(ab, { password: _optionalChain([options, 'optionalAccess', _160 => _160.password]) });
5286
- if (!parsed.success) throw new (0, _chunkMANE7HAZcjs.KordocError)(_nullishCoalesce(parsed.error, () => ( "\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4")));
5360
+ const { markdownToHwpx } = await Promise.resolve().then(() => _interopRequireWildcard(require("./generator-ZRVKK7UG.cjs")));
5361
+ const parsed = await parse(ab, { password: _optionalChain([options, 'optionalAccess', _162 => _162.password]) });
5362
+ if (!parsed.success) throw new (0, _chunkJZEMASGRcjs.KordocError)(_nullishCoalesce(parsed.error, () => ( "\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4")));
5287
5363
  return {
5288
5364
  data: new Uint8Array(await markdownToHwpx(parsed.markdown)),
5289
5365
  mode: "content",
@@ -5344,4 +5420,4 @@ async function convertToHwpx(input, options) {
5344
5420
 
5345
5421
 
5346
5422
  exports.locateMemoBlocks = locateMemoBlocks; exports.memosMarkdown = memosMarkdown; exports.TAG_PARA_HEADER = TAG_PARA_HEADER; exports.TAG_PARA_TEXT = TAG_PARA_TEXT; exports.TAG_CHAR_SHAPE = TAG_CHAR_SHAPE; exports.TAG_PARA_LINE_SEG = TAG_PARA_LINE_SEG; exports.TAG_CTRL_HEADER = TAG_CTRL_HEADER; exports.TAG_LIST_HEADER = TAG_LIST_HEADER; exports.TAG_TABLE = TAG_TABLE; exports.TAG_SHAPE_COMPONENT = TAG_SHAPE_COMPONENT; exports.TAG_SHAPE_COMPONENT_PICTURE = TAG_SHAPE_COMPONENT_PICTURE; exports.TAG_ID_MAPPINGS = TAG_ID_MAPPINGS; exports.TAG_FACE_NAME = TAG_FACE_NAME; exports.TAG_DOC_CHAR_SHAPE = TAG_DOC_CHAR_SHAPE; exports.TAG_DOC_PARA_SHAPE = TAG_DOC_PARA_SHAPE; exports.FLAG_COMPRESSED = FLAG_COMPRESSED; exports.FLAG_ENCRYPTED = FLAG_ENCRYPTED; exports.FLAG_DISTRIBUTION = FLAG_DISTRIBUTION; exports.FLAG_DRM = FLAG_DRM; exports.FLAG_TRACK_CHANGES = FLAG_TRACK_CHANGES; exports.readRecords = readRecords; exports.decompressStream = decompressStream; exports.parseFileHeader = parseFileHeader; exports.fileTimeText = fileTimeText; exports.parseDocInfo = parseDocInfo; exports.createParaTextState = createParaTextState; exports.isExtendedOnlyCtrlChar = isExtendedOnlyCtrlChar; exports.appendParaText = appendParaText; exports.detectImageMime = detectImageMime; exports.resolveImageBlocks = resolveImageBlocks; exports.indexHwp5Tables = indexHwp5Tables; exports.formatNumber = formatNumber; exports.hwpEquationToLatex = hwpEquationToLatex; exports.INLINE_TABLE_MARK = INLINE_TABLE_MARK; exports.emitParagraphBlocks = emitParagraphBlocks; exports.blocksPlainText = blocksPlainText; exports.cellTextFromBlocks = cellTextFromBlocks; exports.buildAddressedTable = buildAddressedTable; exports.unfilledClickHereGuide = unfilledClickHereGuide; exports.isClickHereGuideText = isClickHereGuideText; exports.hasRealStrike = hasRealStrike; exports.hasRealUnderline = hasRealUnderline; exports.openHwp5Container = openHwp5Container; exports.readHwp5DocInfoRecords = readHwp5DocInfoRecords; exports.readHwp5SectionStreams = readHwp5SectionStreams; exports.readHwp5SectionRecords = readHwp5SectionRecords; exports.readHwp5BinData = readHwp5BinData; exports.parseHwp5Document = parseHwp5Document; exports.hwpToHwpx = hwpToHwpx; exports.convertToHwpx = convertToHwpx;
5347
- //# sourceMappingURL=chunk-RJNHXCMP.cjs.map
5423
+ //# sourceMappingURL=chunk-HR72SA4M.cjs.map