@eigenpal/docx-editor-core 1.3.3 → 1.5.0

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 (280) hide show
  1. package/dist/agent/index.d.mts +7 -6
  2. package/dist/agent/index.d.ts +7 -6
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/index.mjs +1 -1
  5. package/dist/chunk-2LVK7EF5.mjs +2 -0
  6. package/dist/chunk-3HENAL6V.mjs +2 -0
  7. package/dist/{chunk-BUEMXRXH.js → chunk-3SJQRYO7.js} +1 -1
  8. package/dist/chunk-4JPHW7ZI.js +2 -0
  9. package/dist/chunk-4RQAAKQI.mjs +1 -0
  10. package/dist/{chunk-OF373DBR.mjs → chunk-5HA66FH4.mjs} +1 -1
  11. package/dist/chunk-5WINQXA3.js +1 -0
  12. package/dist/{chunk-3QPKTG2Y.js → chunk-6KM4VW4L.js} +2 -2
  13. package/dist/chunk-AA6D2C6R.js +4 -0
  14. package/dist/{chunk-7CZEZ3UL.mjs → chunk-AMJNIGO2.mjs} +1 -1
  15. package/dist/chunk-BTSL4AYY.js +1 -0
  16. package/dist/{chunk-GE2GV2AX.mjs → chunk-CBKJOPOW.mjs} +1 -1
  17. package/dist/chunk-CDBKFBC2.mjs +15 -0
  18. package/dist/chunk-COV4LHQ7.js +1 -0
  19. package/dist/chunk-DZ3FN3JI.js +2 -0
  20. package/dist/chunk-ENIWJBS7.mjs +2 -0
  21. package/dist/{chunk-55XWETY4.mjs → chunk-EZNVVB63.mjs} +1 -1
  22. package/dist/{chunk-CHN26LLL.mjs → chunk-F24WZXN4.mjs} +1 -1
  23. package/dist/{chunk-LIW3H4WB.js → chunk-GB7RICH6.js} +1 -1
  24. package/dist/{chunk-CZSAC65M.js → chunk-GFM6PERG.js} +1 -1
  25. package/dist/chunk-GKAXYZCE.mjs +1 -0
  26. package/dist/chunk-H57LNDBH.js +1 -0
  27. package/dist/chunk-IGYHDSM7.mjs +1 -0
  28. package/dist/{chunk-BH3ACQ3M.js → chunk-JQUIUKRO.js} +3 -3
  29. package/dist/chunk-L6ZRNW7Y.mjs +1 -0
  30. package/dist/{chunk-Q4IEATDJ.js → chunk-LJ2TB6CY.js} +1 -1
  31. package/dist/{chunk-DFUWJHKF.mjs → chunk-M3UL6EUU.mjs} +3 -3
  32. package/dist/chunk-M7KTKPGO.mjs +1 -0
  33. package/dist/chunk-MA3HLGFO.js +1 -0
  34. package/dist/chunk-ND33YQGU.js +1 -0
  35. package/dist/{chunk-KXVCCT2A.js → chunk-NPFFCPZ6.js} +1 -1
  36. package/dist/chunk-NTBZRITU.mjs +1 -0
  37. package/dist/{chunk-SCK6ZM5V.js → chunk-O2643IUW.js} +1 -1
  38. package/dist/chunk-P7HWOJC5.js +2 -0
  39. package/dist/{chunk-YNUPP7UG.mjs → chunk-PYDX4MOT.mjs} +2 -2
  40. package/dist/{chunk-CHTIWTHQ.mjs → chunk-QUM4DFRE.mjs} +1 -1
  41. package/dist/chunk-QVRMX2AC.js +15 -0
  42. package/dist/chunk-QXSDGNJ4.js +1 -0
  43. package/dist/{chunk-FYRJTDC4.mjs → chunk-QZPVZY6S.mjs} +1 -1
  44. package/dist/chunk-RT52EYG3.mjs +4 -0
  45. package/dist/chunk-SHYNWAW6.mjs +1 -0
  46. package/dist/chunk-SKBHY5MK.mjs +1 -0
  47. package/dist/chunk-SNTAAXXA.mjs +1 -0
  48. package/dist/chunk-T4O4PFJD.mjs +1 -0
  49. package/dist/chunk-TAQTZAVZ.js +1 -0
  50. package/dist/{chunk-2SGJZYQF.js → chunk-TDYWEVAE.js} +1 -1
  51. package/dist/{chunk-OPSOGVSU.js → chunk-TV6JLFY5.js} +1 -1
  52. package/dist/chunk-UKMKGIME.js +1 -0
  53. package/dist/chunk-UXPY65AC.js +1 -0
  54. package/dist/chunk-VDKSZ5BQ.mjs +1 -0
  55. package/dist/chunk-VJFIAFZ5.mjs +1 -0
  56. package/dist/chunk-WQRWRWSK.js +1 -0
  57. package/dist/chunk-WWVIVYX6.mjs +1 -0
  58. package/dist/chunk-WXSGCEBZ.js +1 -0
  59. package/dist/{chunk-C52D36FA.mjs → chunk-WYFK4QOF.mjs} +1 -1
  60. package/dist/chunk-X6AICTHN.js +1 -0
  61. package/dist/chunk-YHXVNJK5.mjs +1 -0
  62. package/dist/{chunk-J3YFJDZD.js → chunk-ZETEPB7I.js} +1 -1
  63. package/dist/{colorResolver-8A-qj-LP.d.ts → colorResolver-C696sd9x.d.ts} +1 -1
  64. package/dist/{colorResolver-BCvxTlLF.d.mts → colorResolver-DCBfI4ld.d.mts} +1 -1
  65. package/dist/{content-3xF4WDE8.d.mts → content-BlWiORm-.d.mts} +3 -147
  66. package/dist/{content-C8fc_tL6.d.ts → content-eG_Rtl0l.d.ts} +3 -147
  67. package/dist/{contentControlValues-DGDKD589.d.ts → contentControlValues-CO7pUqOf.d.ts} +1 -1
  68. package/dist/{contentControlValues-DjWvoJQ-.d.mts → contentControlValues-DfYN9BZ8.d.mts} +1 -1
  69. package/dist/core-plugins.d.mts +4 -3
  70. package/dist/core-plugins.d.ts +4 -3
  71. package/dist/core-plugins.js +1 -1
  72. package/dist/core-plugins.mjs +1 -1
  73. package/dist/core.d.mts +11 -10
  74. package/dist/core.d.ts +11 -10
  75. package/dist/core.js +1 -1
  76. package/dist/core.mjs +1 -1
  77. package/dist/{documentStyles-qR0VR2s0.d.mts → documentStyles-1G0xTl1v.d.mts} +1 -1
  78. package/dist/{documentStyles-C7k_8Sye.d.ts → documentStyles-Bw98BwEy.d.ts} +1 -1
  79. package/dist/docx/index.d.mts +7 -67
  80. package/dist/docx/index.d.ts +7 -67
  81. package/dist/docx/index.js +1 -1
  82. package/dist/docx/index.mjs +1 -1
  83. package/dist/docx/parser.d.mts +4 -3
  84. package/dist/docx/parser.d.ts +4 -3
  85. package/dist/docx/parser.js +1 -1
  86. package/dist/docx/parser.mjs +1 -1
  87. package/dist/docx/rezip.d.mts +4 -3
  88. package/dist/docx/rezip.d.ts +4 -3
  89. package/dist/docx/rezip.js +1 -1
  90. package/dist/docx/rezip.mjs +1 -1
  91. package/dist/docx/serializer/index.d.mts +5 -4
  92. package/dist/docx/serializer/index.d.ts +5 -4
  93. package/dist/docx/serializer/index.js +1 -1
  94. package/dist/docx/serializer/index.mjs +1 -1
  95. package/dist/editor/index.d.mts +4 -3
  96. package/dist/editor/index.d.ts +4 -3
  97. package/dist/editor/index.js +1 -1
  98. package/dist/editor/index.mjs +1 -1
  99. package/dist/{fontLoader-CUS1BPv7.d.mts → fontLoader-3MFD_Hj2.d.mts} +48 -5
  100. package/dist/{fontLoader-Dl9SEKex.d.ts → fontLoader-C6VvBUVB.d.ts} +48 -5
  101. package/dist/{formatting-BH4hcZiq.d.mts → formatting-DFtuRFQY.d.mts} +13 -0
  102. package/dist/{formatting-_OXU8gLB.d.ts → formatting-JhqWT_XM.d.ts} +13 -0
  103. package/dist/{headerFooterLayout-CU6hvszp.d.mts → headerFooterLayout-DJb-dV7X.d.mts} +2 -2
  104. package/dist/{headerFooterLayout-AtAOhM8E.d.ts → headerFooterLayout-bdHWlU6g.d.ts} +2 -2
  105. package/dist/headless.d.mts +9 -8
  106. package/dist/headless.d.ts +9 -8
  107. package/dist/headless.js +1 -1
  108. package/dist/headless.mjs +1 -1
  109. package/dist/layout-bridge/clickToPositionDom.js +1 -1
  110. package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
  111. package/dist/layout-bridge/index.d.mts +5 -4
  112. package/dist/layout-bridge/index.d.ts +5 -4
  113. package/dist/layout-bridge/index.js +1 -1
  114. package/dist/layout-bridge/index.mjs +1 -1
  115. package/dist/layout-bridge/measuring/index.d.mts +3 -2
  116. package/dist/layout-bridge/measuring/index.d.ts +3 -2
  117. package/dist/layout-bridge/measuring/index.js +1 -1
  118. package/dist/layout-bridge/measuring/index.mjs +1 -1
  119. package/dist/layout-bridge/tableInsertHover.js +1 -1
  120. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  121. package/dist/layout-bridge/toFlowBlocks.d.mts +4 -3
  122. package/dist/layout-bridge/toFlowBlocks.d.ts +4 -3
  123. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  124. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  125. package/dist/layout-engine/index.d.mts +4 -3
  126. package/dist/layout-engine/index.d.ts +4 -3
  127. package/dist/layout-engine/index.js +1 -1
  128. package/dist/layout-engine/index.mjs +1 -1
  129. package/dist/layout-engine/types.d.mts +21 -9
  130. package/dist/layout-engine/types.d.ts +21 -9
  131. package/dist/layout-painter/index.d.mts +5 -4
  132. package/dist/layout-painter/index.d.ts +5 -4
  133. package/dist/layout-painter/index.js +1 -1
  134. package/dist/layout-painter/index.mjs +1 -1
  135. package/dist/layout-painter/renderPage.d.mts +5 -4
  136. package/dist/layout-painter/renderPage.d.ts +5 -4
  137. package/dist/layout-painter/renderPage.js +1 -1
  138. package/dist/layout-painter/renderPage.mjs +1 -1
  139. package/dist/lists-Bn29SzeS.d.ts +148 -0
  140. package/dist/lists-CyGxd5Y2.d.mts +148 -0
  141. package/dist/managers/AutoSaveManager.d.mts +4 -3
  142. package/dist/managers/AutoSaveManager.d.ts +4 -3
  143. package/dist/managers/TableSelectionManager.d.mts +4 -3
  144. package/dist/managers/TableSelectionManager.d.ts +4 -3
  145. package/dist/managers/types.d.mts +4 -3
  146. package/dist/managers/types.d.ts +4 -3
  147. package/dist/{marks-BY573yZn.d.mts → marks-CzrbFi4o.d.mts} +1 -1
  148. package/dist/{marks-CjC9tF5k.d.ts → marks-Dq1QsxKA.d.ts} +1 -1
  149. package/dist/mcp-cli.mjs +23 -23
  150. package/dist/mcp.d.mts +4 -3
  151. package/dist/mcp.d.ts +4 -3
  152. package/dist/mcp.js +3 -3
  153. package/dist/mcp.mjs +7 -7
  154. package/dist/{nodes-75Q9GBxV.d.ts → nodes-BJef4KFW.d.ts} +17 -2
  155. package/dist/{nodes-cEI7hVY2.d.mts → nodes-RfTS-NSv.d.mts} +17 -2
  156. package/dist/numberingParser-ZSQ3SDCV.d.ts +81 -0
  157. package/dist/numberingParser-nSPZlzKr.d.mts +81 -0
  158. package/dist/prosemirror/applyFormatting.d.mts +5 -2
  159. package/dist/prosemirror/applyFormatting.d.ts +5 -2
  160. package/dist/prosemirror/applyFormatting.js +1 -1
  161. package/dist/prosemirror/applyFormatting.mjs +1 -1
  162. package/dist/prosemirror/cellDragSelection.d.mts +46 -0
  163. package/dist/prosemirror/cellDragSelection.d.ts +46 -0
  164. package/dist/prosemirror/cellDragSelection.js +1 -0
  165. package/dist/prosemirror/cellDragSelection.mjs +1 -0
  166. package/dist/prosemirror/commands/formatting.d.mts +2 -2
  167. package/dist/prosemirror/commands/formatting.d.ts +2 -2
  168. package/dist/prosemirror/commands/formatting.js +1 -1
  169. package/dist/prosemirror/commands/formatting.mjs +1 -1
  170. package/dist/prosemirror/commands/index.d.mts +32 -3
  171. package/dist/prosemirror/commands/index.d.ts +32 -3
  172. package/dist/prosemirror/commands/index.js +1 -1
  173. package/dist/prosemirror/commands/index.mjs +1 -1
  174. package/dist/prosemirror/commands/paragraph.d.mts +11 -1
  175. package/dist/prosemirror/commands/paragraph.d.ts +11 -1
  176. package/dist/prosemirror/commands/paragraph.js +1 -1
  177. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  178. package/dist/prosemirror/commentIdAllocator.d.mts +3 -2
  179. package/dist/prosemirror/commentIdAllocator.d.ts +3 -2
  180. package/dist/prosemirror/commentOps.d.mts +3 -2
  181. package/dist/prosemirror/commentOps.d.ts +3 -2
  182. package/dist/prosemirror/conversion/fromProseDoc.d.mts +4 -3
  183. package/dist/prosemirror/conversion/fromProseDoc.d.ts +4 -3
  184. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  185. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  186. package/dist/prosemirror/conversion/index.d.mts +4 -3
  187. package/dist/prosemirror/conversion/index.d.ts +4 -3
  188. package/dist/prosemirror/conversion/index.js +1 -1
  189. package/dist/prosemirror/conversion/index.mjs +1 -1
  190. package/dist/prosemirror/editor.css +13 -0
  191. package/dist/prosemirror/extensions/index.d.mts +1 -1
  192. package/dist/prosemirror/extensions/index.d.ts +1 -1
  193. package/dist/prosemirror/extensions/index.js +1 -1
  194. package/dist/prosemirror/extensions/index.mjs +1 -1
  195. package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
  196. package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
  197. package/dist/prosemirror/imageCommit.d.mts +18 -1
  198. package/dist/prosemirror/imageCommit.d.ts +18 -1
  199. package/dist/prosemirror/imageCommit.js +1 -1
  200. package/dist/prosemirror/imageCommit.mjs +1 -1
  201. package/dist/prosemirror/index.d.mts +20 -10
  202. package/dist/prosemirror/index.d.ts +20 -10
  203. package/dist/prosemirror/index.js +3 -3
  204. package/dist/prosemirror/index.mjs +3 -3
  205. package/dist/prosemirror/plugins/index.d.mts +5 -4
  206. package/dist/prosemirror/plugins/index.d.ts +5 -4
  207. package/dist/prosemirror/plugins/index.js +1 -1
  208. package/dist/prosemirror/plugins/index.mjs +1 -1
  209. package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
  210. package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
  211. package/dist/prosemirror/queries.d.mts +45 -3
  212. package/dist/prosemirror/queries.d.ts +45 -3
  213. package/dist/prosemirror/queries.js +2 -2
  214. package/dist/prosemirror/queries.mjs +2 -2
  215. package/dist/prosemirror/schema/index.d.mts +5 -4
  216. package/dist/prosemirror/schema/index.d.ts +5 -4
  217. package/dist/prosemirror/schema/index.js +1 -1
  218. package/dist/prosemirror/schema/index.mjs +1 -1
  219. package/dist/prosemirror/styles/index.d.mts +2 -2
  220. package/dist/prosemirror/styles/index.d.ts +2 -2
  221. package/dist/prosemirror/tableResize.js +1 -1
  222. package/dist/prosemirror/tableResize.mjs +1 -1
  223. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +3 -2
  224. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +3 -2
  225. package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
  226. package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
  227. package/dist/{sectionPropertiesSerializer-D86QlzlT.d.mts → sectionPropertiesSerializer-C8XCmzE4.d.mts} +1 -1
  228. package/dist/{sectionPropertiesSerializer-uXyGONxu.d.ts → sectionPropertiesSerializer-S8J1V9mb.d.ts} +1 -1
  229. package/dist/{selectionContext-BPAqgNgk.d.ts → selectionContext-BJZZW1JA.d.ts} +1 -1
  230. package/dist/{selectionContext-CoZat7QZ.d.mts → selectionContext-BjMyVQZO.d.mts} +1 -1
  231. package/dist/{styles-BOJ93SAm.d.mts → styles-Dqec8Aw6.d.mts} +1 -1
  232. package/dist/{styles-BWqX2AS-.d.ts → styles-gEujs7j6.d.ts} +1 -1
  233. package/dist/types/agentApi.d.mts +1 -1
  234. package/dist/types/agentApi.d.ts +1 -1
  235. package/dist/types/content.d.mts +3 -2
  236. package/dist/types/content.d.ts +3 -2
  237. package/dist/types/document.d.mts +7 -5
  238. package/dist/types/document.d.ts +7 -5
  239. package/dist/utils/comments.d.mts +3 -2
  240. package/dist/utils/comments.d.ts +3 -2
  241. package/dist/utils/index.d.mts +6 -5
  242. package/dist/utils/index.d.ts +6 -5
  243. package/dist/utils/index.js +3 -3
  244. package/dist/utils/index.mjs +3 -3
  245. package/dist/{variableDetector-CaY-sDau.d.mts → variableDetector-CN9_pUR_.d.mts} +1 -1
  246. package/dist/{variableDetector-1mxzPfs2.d.ts → variableDetector-o4Rb2Csy.d.ts} +1 -1
  247. package/package.json +9 -1
  248. package/dist/chunk-2WGTGBBS.js +0 -2
  249. package/dist/chunk-3G44SFHX.mjs +0 -4
  250. package/dist/chunk-4MYKVWNF.js +0 -1
  251. package/dist/chunk-7KMTWDPE.mjs +0 -1
  252. package/dist/chunk-7LRR7RKE.mjs +0 -15
  253. package/dist/chunk-CRMZH7U7.mjs +0 -2
  254. package/dist/chunk-D3PRIF3Y.mjs +0 -1
  255. package/dist/chunk-ESCPS4AO.mjs +0 -1
  256. package/dist/chunk-EUZLYQRB.mjs +0 -1
  257. package/dist/chunk-EV4LVK4X.js +0 -1
  258. package/dist/chunk-FW23IMBF.mjs +0 -1
  259. package/dist/chunk-HKN2NKOG.mjs +0 -1
  260. package/dist/chunk-INDYZOOS.js +0 -1
  261. package/dist/chunk-IUJCUITW.mjs +0 -1
  262. package/dist/chunk-IYKBX24M.js +0 -1
  263. package/dist/chunk-JHTURDPX.mjs +0 -1
  264. package/dist/chunk-L5NPEM7C.js +0 -1
  265. package/dist/chunk-LERLET2D.js +0 -4
  266. package/dist/chunk-LX35TFGF.mjs +0 -1
  267. package/dist/chunk-MNOHUTKE.js +0 -15
  268. package/dist/chunk-NAFMAKLK.js +0 -2
  269. package/dist/chunk-OTHV7YV2.js +0 -2
  270. package/dist/chunk-QAJSNLJR.mjs +0 -1
  271. package/dist/chunk-RSU4HTC6.js +0 -1
  272. package/dist/chunk-TUIEV7Q7.js +0 -1
  273. package/dist/chunk-U67MWOPZ.mjs +0 -1
  274. package/dist/chunk-UE2ZKRYB.mjs +0 -2
  275. package/dist/chunk-WVERBZZU.js +0 -1
  276. package/dist/chunk-WWNOXNEX.mjs +0 -2
  277. package/dist/chunk-XLB6AC5Q.js +0 -1
  278. package/dist/chunk-YPQACU4A.js +0 -1
  279. package/dist/chunk-YWM2QH36.js +0 -1
  280. package/dist/chunk-ZX26QZJ5.mjs +0 -1
@@ -1 +1 @@
1
- export{c as attemptSelectiveSave,b as buildPatchedDocumentXml,a as validatePatchSafety}from'../chunk-FYRJTDC4.mjs';export{t as createDocx,i as repackDocx,m as updateMultipleFiles}from'../chunk-CHN26LLL.mjs';import'../chunk-WWNOXNEX.mjs';export{b as formatNumber,d as getBulletCharacter,e as isBulletLevel,f as parseDocx,a as parseNumbering,c as renderListMarker}from'../chunk-UE2ZKRYB.mjs';import {E}from'../chunk-3G44SFHX.mjs';export{y as getEndnoteText,x as getFootnoteText,L as getHyperlinkRuns,G as getHyperlinkText,J as getHyperlinkUrl,j as getTableColumnCount,k as getTableRowCount,K as hasContent,n as hasHeaderRow,l as isCellMergeContinuation,m as isCellMergeStart,H as isExternalLink,I as isInternalLink,A as isSeparatorEndnote,z as isSeparatorFootnote,d as parseBorderSpec,f as parseCellMargins,w as parseEndnoteProperties,u as parseEndnotes,i as parseFloatingTableProperties,v as parseFootnoteProperties,t as parseFootnotes,F as parseHyperlink,g as parseShading,e as parseTableBorders,h as parseTableLook,c as parseTableMeasurement,o as parseTableProperties,M as resolveHyperlinkUrl}from'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-7LRR7RKE.mjs';import {c,d,e as e$1,b,a}from'../chunk-7CZEZ3UL.mjs';export{f as extractTextBoxContentElements,F as getImageHeightPx,E as getImageWidthPx,k as getTextBoxContentElement,o as getTextBoxDimensionsPx,n as getTextBoxHeightPx,p as getTextBoxMarginsPx,x as getTextBoxOutlineWidthPx,u as getTextBoxText,m as getTextBoxWidthPx,H as getWrapDistancesPx,t as hasTextBoxContent,r as hasTextBoxFill,s as hasTextBoxOutline,C as isBehindText,G as isDecorativeImage,B as isFloatingImage,q as isFloatingTextBox,D as isInFrontOfText,A as isInlineImage,i as isShapeTextBox,h as isTextBoxDrawing,y as parseDrawing,z as parseImage,j as parseTextBox,g as parseTextBoxContent,l as parseTextBoxFromShape,v as resolveTextBoxFillColor,w as resolveTextBoxOutlineColor}from'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import {j,f,i,h,l,e as e$2,g}from'../chunk-3ANZ3252.mjs';import'../chunk-LE67NTCN.mjs';import {e}from'../chunk-VW22RZ6C.mjs';export{e as emuToPixels,f as pixelsToEmu}from'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';var M=["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","EDITTIME","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","REVNUM","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE"];function I(e){if(!e)return "UNKNOWN";let n=e.trim().match(/^\\?([A-Z][A-Z0-9]*)/i);if(!n)return "UNKNOWN";let o=n[1].toUpperCase();return M.includes(o)?o:"UNKNOWN"}function at(e){return M.includes(e)}function st(e){let t=I(e),n=e.trim(),o=[],r=n.match(/^\\?([A-Z][A-Z0-9]*)/i),i=r?r[0].length:0,a=n.substring(i).trim(),s=/\\(\*|@|#|!|[a-z])\s*(?:"([^"]*)"|([\S]*))?/gi,l,u=[];for(;(l=s.exec(a))!==null;){let p={switch:l[1]};l[2]?p.value=l[2]:l[3]&&(p.value=l[3]),o.push(p),u.push({start:l.index,end:l.index+l[0].length});}let c;if(a.length>0){let p=u.length>0?u[0].start:a.length,m=a.substring(0,p).trim();m.startsWith('"')&&m.endsWith('"')?c=m.slice(1,-1):m&&(c=m);}return {type:t,raw:e,argument:c,switches:o}}function pt(e){return e.switches.find(n=>n.switch==="*"||n.switch==="@")?.value}function ct(e){return e.switches.find(n=>n.switch==="*")?.value?.toUpperCase()==="MERGEFORMAT"}function ut(e,t,n){let o=j(e,"w","instr")??"",r=I(o),i={type:"simpleField",instruction:o,fieldType:r,content:[]},a=j(e,"w","fldLock");(a==="1"||a==="true")&&(i.fldLock=true);let s=j(e,"w","dirty");(s==="1"||s==="true")&&(i.dirty=true);let l=f(e,"w","r");for(let u of l){let c=E(u,t,n);i.content.push(c);}return i}function dt(){return {state:"outside",instruction:"",codeRuns:[],resultRuns:[],fldLock:false,dirty:false,nestingLevel:0}}function ft(e){return e.type==="simpleField"?e.content.filter(t=>"content"in t).map(t=>U(t)).join(""):e.fieldResult.map(t=>U(t)).join("")}function U(e){return e.content.filter(t=>t.type==="text").map(t=>t.text).join("")}function mt(e){return e.fieldType==="PAGE"}function ht(e){return e.fieldType==="NUMPAGES"}function gt(e){return ["DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","EDITTIME"].includes(e.fieldType)}function Tt(e){return ["AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","REVNUM","DOCPROPERTY","DOCVARIABLE"].includes(e.fieldType)}function xt(e){return ["REF","PAGEREF","NOTEREF"].includes(e.fieldType)}function yt(e){return ["MERGEFIELD","IF","NEXT","NEXTIF","ASK","SET"].includes(e.fieldType)}function St(e){return ["TOC","TOA","INDEX"].includes(e.fieldType)}function H(e){if(!e)return;let t=parseInt(e,10);if(!isNaN(t))return t/6e4}function Ft(e,t){let n=b(e);if(n){if(n.type==="gradient"&&e){let r=i(e).find(i=>i.name==="a:gradFill");if(r)return bt(r)}return n}if(e){let o=i(e);if(o.find(a=>a.name==="a:pattFill"))return {type:"pattern"};if(o.find(a=>a.name==="a:blipFill"))return {type:"picture"}}if(t){let o=h(t,"a:fillRef");if(o){if(j(o,null,"idx")==="0")return {type:"none"};let i=a(o);if(i)return {type:"solid",color:i}}}}function bt(e){let t=i(e),n="linear",o,r=t.find(l=>l.name==="a:lin");if(r){n="linear";let l=j(r,null,"ang");l&&(o=parseInt(l,10)/6e4);}let i$1=t.find(l=>l.name==="a:path");if(i$1){let l=j(i$1,null,"path");l==="circle"?n="radial":l==="rect"?n="rectangular":n="path";}let a$1=t.find(l=>l.name==="a:gsLst"),s=[];if(a$1){let l=g(a$1,"gs");for(let u of l){let c=j(u,null,"pos"),p=c?parseInt(c,10):0,m=a(u);m&&s.push({position:p,color:m});}}return {type:"gradient",gradient:{type:n,angle:o,stops:s}}}function Et(e,t){let n=e?h(e,"a:ln"):null;if(!n){if(t){let f=h(t,"a:lnRef");if(f){if(j(f,null,"idx")==="0")return;let g=a(f);if(g)return {color:g,width:9525}}}return}let o=i(n);if(o.find(f=>f.name==="a:noFill"))return;let i$1={},a$1=j(n,null,"w");a$1&&(i$1.width=parseInt(a$1,10));let s=j(n,null,"cap");(s==="flat"||s==="rnd"||s==="sq")&&(i$1.cap=s==="rnd"?"round":s==="sq"?"square":"flat");let l=o.find(f=>f.name==="a:bevel"),u=o.find(f=>f.name==="a:miter"),c=o.find(f=>f.name==="a:round");l?i$1.join="bevel":c?i$1.join="round":u&&(i$1.join="miter");let p=o.find(f=>f.name==="a:solidFill");p&&(i$1.color=a(p));let m=o.find(f=>f.name==="a:prstDash");if(m){let f=j(m,null,"val");f&&(i$1.style=f);}let y=o.find(f=>f.name==="a:headEnd");y&&(i$1.headEnd=X(y));let T=o.find(f=>f.name==="a:tailEnd");return T&&(i$1.tailEnd=X(T)),i$1}function X(e){let t=j(e,null,"type")??"none",n=j(e,null,"w"),o=j(e,null,"len");return {type:{none:"none",triangle:"triangle",stealth:"stealth",diamond:"diamond",oval:"oval",arrow:"arrow"}[t]??"none",width:n,length:o}}function Ct(e){if(!e)return {size:{width:0,height:0}};let t=h(e,"a:ext"),n=l(t,null,"cx")??0,o=l(t,null,"cy")??0,r={width:n,height:o},i=h(e,"a:off"),a;if(i){let m=l(i,null,"x")??0,y=l(i,null,"y")??0;a={x:m,y};}let s=j(e,null,"rot"),l$1=j(e,null,"flipH")==="1",u=j(e,null,"flipV")==="1",c=H(s),p;return (c!==void 0||l$1||u)&&(p={},c!==void 0&&(p.rotation=c),l$1&&(p.flipH=true),u&&(p.flipV=true)),{size:r,transform:p,offset:a}}function wt(e){if(!e)return "rect";let t=h(e,"a:prstGeom");if(t){let o=j(t,null,"prst");if(o)return o}return h(e,"a:custGeom"),"rect"}function At(e){if(!e)return {};let t={},n=j(e,null,"vert");(n==="vert"||n==="vert270"||n==="wordArtVert")&&(t.vertical=true);let o=j(e,null,"rot");o&&(t.rotation=H(o));let r=j(e,null,"anchor");if(r){let m={t:"top",ctr:"middle",b:"bottom",dist:"distributed",just:"justified"};t.anchor=m[r];}j(e,null,"anchorCtr")==="1"&&(t.anchorCenter=true);let i=h(e,"a:noAutofit"),a=h(e,"a:normAutofit"),s=h(e,"a:spAutoFit");i?t.autoFit="none":a?t.autoFit="normal":s&&(t.autoFit="shape");let l$1=l(e,null,"lIns"),u=l(e,null,"rIns"),c=l(e,null,"tIns"),p=l(e,null,"bIns");return (l$1!==void 0||u!==void 0||c!==void 0||p!==void 0)&&(t.margins={left:l$1,right:u,top:c,bottom:p}),t}function Mt(e){if(!e)return [];let t=[],n=g(e,"p");for(let o of n)t.push({type:"paragraph",formatting:{},content:[]});return t}function W(e){let t=i(e),n=t.find(g=>g.name==="wps:cNvPr"),o=t.find(g=>g.name==="wps:spPr"),r=t.find(g=>g.name==="wps:style"),i$1=t.find(g=>g.name==="wps:txbx"),a=i$1?h(i$1,"w:txbxContent"):null,s=t.find(g=>g.name==="wps:bodyPr"),l=wt(o??null),u=o?h(o,"a:xfrm"):null,{size:c,transform:p}=Ct(u),m=Ft(o??null,r??null),y=Et(o??null,r??null),T,f;n&&(T=j(n,null,"id")??void 0,f=j(n,null,"name")??void 0);let S={type:"shape",shapeType:l,size:c};if(T&&(S.id=T),f&&(S.name=f),m&&(S.fill=m),y&&(S.outline=y),p&&(S.transform=p),a||s){let g=At(s??null),P=Mt(a);(P.length>0||Object.keys(g).length>0)&&(S.textBody={...g,content:P});}return S}function It(e){let n=i(e).find(c=>c.name==="wp:inline"||c.name==="wp:anchor");if(!n)return null;let o=n.name==="wp:anchor",r=h(n,"a:graphic");if(!r)return null;let i$1=h(r,"a:graphicData");if(!i$1)return null;let a=h(i$1,"wps:wsp");if(!a)return null;let s=W(a),l$1=h(n,"wp:extent");if(l$1){let c=l(l$1,null,"cx")??0,p=l(l$1,null,"cy")??0;s.size={width:c,height:p};}if(o){let c$1=c(n);c$1&&(s.position=c$1);let p=d(n);p&&(s.wrap=p);}let u=h(n,"wp:docPr");if(u){let c=j(u,null,"id"),p=j(u,null,"name");c&&(s.id=c),p&&(s.name=p);}return s}function Rt(e){let n=i(e).find(a=>a.name==="wp:inline"||a.name==="wp:anchor");if(!n)return false;let o=h(n,"a:graphic");if(!o)return false;let r=h(o,"a:graphicData");return r?h(r,"wps:wsp")!==null:false}function Lt(e){return ["line","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5"].includes(e.shapeType)}function Dt(e){return e.shapeType==="textBox"||e.textBody!==void 0&&e.textBody.content.length>0}function Pt(e){return e.textBody!==void 0&&e.textBody.content.length>0}function Nt(e$1){return e(e$1.size.width)}function Bt(e$1){return e(e$1.size.height)}function vt(e$1){return {width:e(e$1.size.width),height:e(e$1.size.height)}}function Ot(e){return e.position!==void 0||e.wrap!==void 0}function kt(e){return e.fill!==void 0&&e.fill.type!=="none"}function Ut(e){return e.outline!==void 0}function Xt(e$1){return e$1.outline?.width?e(e$1.outline.width):0}function Ht(e){if(!(!e.fill||e.fill.type!=="solid"))return e$1(e.fill.color)}function Wt(e){if(e.outline?.color)return e$1(e.outline.color)}var R=720,L="left",Vt="none";function V(e){let t=l(e,"w","pos"),n=j(e,"w","val");if(t===void 0||!n)return null;let o={position:t,alignment:n},r=j(e,"w","leader");return r&&(o.leader=r),o}function G(e){if(!e)return [];let t=f(e,"w","tab");if(t.length===0)return [];let n=[];for(let o of t){let r=V(o);r&&n.push(r);}return n.sort((o,r)=>o.position-r.position),n}function Gt(e){if(!e)return;let t=e$2(e,"w","tabs"),n=G(t);return n.length>0?n:void 0}function _t(e,t){if(!e&&!t)return [];if(!e)return t??[];if(!t)return [...e];let n=new Map;for(let r of e)n.set(r.position,r);for(let r of t)r.alignment==="clear"?n.delete(r.position):n.set(r.position,r);let o=Array.from(n.values());return o.sort((r,i)=>r.position-i.position),o}function D(e,t,n){for(let r of t)if(r.position>e&&r.alignment!=="clear")return r;let o=Math.ceil((e+1)/R)*R;return o>n?{position:n,alignment:L}:{position:o,alignment:L}}function jt(e,t,n){let o=D(e,t,n);return Math.max(0,o.position-e)}function zt(e,t,n,o=0){let r=D(e,t,n),i;switch(r.alignment){case "right":i=Math.max(0,r.position-e-o);break;case "center":i=Math.max(0,r.position-e-o/2);break;case "decimal":i=Math.max(0,r.position-e-o);break;case "bar":i=Math.max(0,r.position-e);break;default:i=Math.max(0,r.position-e);break}return {width:i,alignment:r.alignment}}function Kt(e){switch(e){case "dot":return ".";case "hyphen":return "-";case "underscore":return "_";case "heavy":return "_";case "middleDot":return "\xB7";default:return " "}}function Yt(e){return e!==void 0&&e!=="none"}function Jt(e,t){let n=t.filter(i=>i.parentId!=null);if(n.length===0)return;let o=new Map;for(let i of n){let a=o.get(i.parentId);a?a.push(i.id):o.set(i.parentId,[i.id]);}function r(i){for(let a of i)if(a.type==="paragraph"){if(!a.content.some(l=>l.type==="commentRangeStart"||l.type==="commentRangeEnd"))continue;let s=[];for(let l of a.content)if(l.type==="commentRangeStart"){s.push(l);let u=o.get(l.id);if(u)for(let c of u)s.push({type:"commentRangeStart",id:c});}else if(l.type==="commentRangeEnd"){s.push(l);let u=o.get(l.id);if(u)for(let c of u)s.push({type:"commentRangeEnd",id:c});}else s.push(l);a.content=s;}else if(a.type==="table")for(let s of a.rows)for(let l of s.cells)r(l.content);}r(e);}function Zt(e,t){let n=new Set(t.map(a=>a.id)),o=t.filter(a=>a.parentId!=null&&!n.has(a.parentId));if(o.length===0)return;let r=new Map;for(let a of o){let s=r.get(a.parentId);s?s.push(a.id):r.set(a.parentId,[a.id]);}function i(a){for(let s of a)if(s.type==="paragraph"){if(!s.content.some(p=>(p.type==="insertion"||p.type==="deletion")&&r.has(p.info.id)))continue;let u=[],c=s.content;for(let p=0;p<c.length;p++){let m=c[p];if((m.type==="insertion"||m.type==="deletion")&&r.has(m.info.id)){let y=r.get(m.info.id);for(let f of y)u.push({type:"commentRangeStart",id:f});u.push(m);let T=c[p+1];T&&(T.type==="insertion"||T.type==="deletion")&&T.type!==m.type&&T.info.author===m.info.author&&T.info.date===m.info.date&&(u.push(T),p++);for(let f of y)u.push({type:"commentRangeEnd",id:f});}else u.push(m);}s.content=u;}else if(s.type==="table")for(let l of s.rows)for(let u of l.cells)i(u.content);}i(e);}export{L as DEFAULT_TAB_ALIGNMENT,R as DEFAULT_TAB_INTERVAL_TWIPS,Vt as DEFAULT_TAB_LEADER,M as KNOWN_FIELD_TYPES,jt as calculateTabWidth,zt as calculateTabWidthWithAlignment,dt as createComplexFieldContext,ft as getFieldDisplayValue,pt as getFormatSwitch,Kt as getLeaderCharacter,D as getNextTabStop,Xt as getOutlineWidthPx,vt as getShapeDimensionsPx,Bt as getShapeHeightPx,Nt as getShapeWidthPx,kt as hasFill,ct as hasMergeFormat,Ut as hasOutline,Pt as hasTextContent,Yt as hasVisibleLeader,Jt as injectReplyRangeMarkers,Zt as injectTCReplyRangeMarkers,gt as isDateTimeField,Tt as isDocPropertyField,Ot as isFloatingShape,at as isKnownFieldType,Lt as isLineShape,yt as isMergeField,mt as isPageNumberField,xt as isReferenceField,Rt as isShapeDrawing,Dt as isTextBoxShape,St as isTocField,ht as isTotalPagesField,_t as mergeTabStops,st as parseFieldInstruction,I as parseFieldType,W as parseShape,It as parseShapeFromDrawing,ut as parseSimpleField,V as parseTabStop,G as parseTabStops,Gt as parseTabStopsFromParagraphProperties,Ht as resolveFillColor,Wt as resolveOutlineColor};
1
+ export{c as attemptSelectiveSave,b as buildPatchedDocumentXml,a as validatePatchSafety}from'../chunk-QZPVZY6S.mjs';export{t as createDocx,i as repackDocx,m as updateMultipleFiles}from'../chunk-F24WZXN4.mjs';import'../chunk-2LVK7EF5.mjs';export{a as parseDocx}from'../chunk-3HENAL6V.mjs';import {E}from'../chunk-RT52EYG3.mjs';export{y as getEndnoteText,x as getFootnoteText,L as getHyperlinkRuns,G as getHyperlinkText,J as getHyperlinkUrl,j as getTableColumnCount,k as getTableRowCount,K as hasContent,n as hasHeaderRow,l as isCellMergeContinuation,m as isCellMergeStart,H as isExternalLink,I as isInternalLink,A as isSeparatorEndnote,z as isSeparatorFootnote,d as parseBorderSpec,f as parseCellMargins,w as parseEndnoteProperties,u as parseEndnotes,i as parseFloatingTableProperties,v as parseFootnoteProperties,t as parseFootnotes,F as parseHyperlink,g as parseShading,e as parseTableBorders,h as parseTableLook,c as parseTableMeasurement,o as parseTableProperties,M as resolveHyperlinkUrl}from'../chunk-RT52EYG3.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-CDBKFBC2.mjs';import {c,d,e as e$1,b,a}from'../chunk-AMJNIGO2.mjs';export{f as extractTextBoxContentElements,F as getImageHeightPx,E as getImageWidthPx,k as getTextBoxContentElement,o as getTextBoxDimensionsPx,n as getTextBoxHeightPx,p as getTextBoxMarginsPx,x as getTextBoxOutlineWidthPx,u as getTextBoxText,m as getTextBoxWidthPx,H as getWrapDistancesPx,t as hasTextBoxContent,r as hasTextBoxFill,s as hasTextBoxOutline,C as isBehindText,G as isDecorativeImage,B as isFloatingImage,q as isFloatingTextBox,D as isInFrontOfText,A as isInlineImage,i as isShapeTextBox,h as isTextBoxDrawing,y as parseDrawing,z as parseImage,j as parseTextBox,g as parseTextBoxContent,l as parseTextBoxFromShape,v as resolveTextBoxFillColor,w as resolveTextBoxOutlineColor}from'../chunk-AMJNIGO2.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-LE67NTCN.mjs';import {e}from'../chunk-VW22RZ6C.mjs';export{e as emuToPixels,f as pixelsToEmu}from'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';export{d as computeListRendering,c as createNumberingMap,e as formatNumber,h as getBulletCharacter,b as getCachedNumberingMap,i as isBulletLevel,a as parseNumbering,g as renderListMarker}from'../chunk-VJFIAFZ5.mjs';import {j,f,i,h,l,e as e$2,g}from'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';var M=["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","EDITTIME","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","REVNUM","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE"];function I(e){if(!e)return "UNKNOWN";let n=e.trim().match(/^\\?([A-Z][A-Z0-9]*)/i);if(!n)return "UNKNOWN";let o=n[1].toUpperCase();return M.includes(o)?o:"UNKNOWN"}function ct(e){return M.includes(e)}function ut(e){let t=I(e),n=e.trim(),o=[],r=n.match(/^\\?([A-Z][A-Z0-9]*)/i),i=r?r[0].length:0,a=n.substring(i).trim(),s=/\\(\*|@|#|!|[a-z])\s*(?:"([^"]*)"|([\S]*))?/gi,l,u=[];for(;(l=s.exec(a))!==null;){let p={switch:l[1]};l[2]?p.value=l[2]:l[3]&&(p.value=l[3]),o.push(p),u.push({start:l.index,end:l.index+l[0].length});}let c;if(a.length>0){let p=u.length>0?u[0].start:a.length,m=a.substring(0,p).trim();m.startsWith('"')&&m.endsWith('"')?c=m.slice(1,-1):m&&(c=m);}return {type:t,raw:e,argument:c,switches:o}}function dt(e){return e.switches.find(n=>n.switch==="*"||n.switch==="@")?.value}function ft(e){return e.switches.find(n=>n.switch==="*")?.value?.toUpperCase()==="MERGEFORMAT"}function mt(e,t,n){let o=j(e,"w","instr")??"",r=I(o),i={type:"simpleField",instruction:o,fieldType:r,content:[]},a=j(e,"w","fldLock");(a==="1"||a==="true")&&(i.fldLock=true);let s=j(e,"w","dirty");(s==="1"||s==="true")&&(i.dirty=true);let l=f(e,"w","r");for(let u of l){let c=E(u,t,n);i.content.push(c);}return i}function ht(){return {state:"outside",instruction:"",codeRuns:[],resultRuns:[],fldLock:false,dirty:false,nestingLevel:0}}function gt(e){return e.type==="simpleField"?e.content.filter(t=>"content"in t).map(t=>U(t)).join(""):e.fieldResult.map(t=>U(t)).join("")}function U(e){return e.content.filter(t=>t.type==="text").map(t=>t.text).join("")}function Tt(e){return e.fieldType==="PAGE"}function xt(e){return e.fieldType==="NUMPAGES"}function yt(e){return ["DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","EDITTIME"].includes(e.fieldType)}function St(e){return ["AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","REVNUM","DOCPROPERTY","DOCVARIABLE"].includes(e.fieldType)}function Ft(e){return ["REF","PAGEREF","NOTEREF"].includes(e.fieldType)}function bt(e){return ["MERGEFIELD","IF","NEXT","NEXTIF","ASK","SET"].includes(e.fieldType)}function Et(e){return ["TOC","TOA","INDEX"].includes(e.fieldType)}function H(e){if(!e)return;let t=parseInt(e,10);if(!isNaN(t))return t/6e4}function Ct(e,t){let n=b(e);if(n){if(n.type==="gradient"&&e){let r=i(e).find(i=>i.name==="a:gradFill");if(r)return wt(r)}return n}if(e){let o=i(e);if(o.find(a=>a.name==="a:pattFill"))return {type:"pattern"};if(o.find(a=>a.name==="a:blipFill"))return {type:"picture"}}if(t){let o=h(t,"a:fillRef");if(o){if(j(o,null,"idx")==="0")return {type:"none"};let i=a(o);if(i)return {type:"solid",color:i}}}}function wt(e){let t=i(e),n="linear",o,r=t.find(l=>l.name==="a:lin");if(r){n="linear";let l=j(r,null,"ang");l&&(o=parseInt(l,10)/6e4);}let i$1=t.find(l=>l.name==="a:path");if(i$1){let l=j(i$1,null,"path");l==="circle"?n="radial":l==="rect"?n="rectangular":n="path";}let a$1=t.find(l=>l.name==="a:gsLst"),s=[];if(a$1){let l=g(a$1,"gs");for(let u of l){let c=j(u,null,"pos"),p=c?parseInt(c,10):0,m=a(u);m&&s.push({position:p,color:m});}}return {type:"gradient",gradient:{type:n,angle:o,stops:s}}}function At(e,t){let n=e?h(e,"a:ln"):null;if(!n){if(t){let f=h(t,"a:lnRef");if(f){if(j(f,null,"idx")==="0")return;let g=a(f);if(g)return {color:g,width:9525}}}return}let o=i(n);if(o.find(f=>f.name==="a:noFill"))return;let i$1={},a$1=j(n,null,"w");a$1&&(i$1.width=parseInt(a$1,10));let s=j(n,null,"cap");(s==="flat"||s==="rnd"||s==="sq")&&(i$1.cap=s==="rnd"?"round":s==="sq"?"square":"flat");let l=o.find(f=>f.name==="a:bevel"),u=o.find(f=>f.name==="a:miter"),c=o.find(f=>f.name==="a:round");l?i$1.join="bevel":c?i$1.join="round":u&&(i$1.join="miter");let p=o.find(f=>f.name==="a:solidFill");p&&(i$1.color=a(p));let m=o.find(f=>f.name==="a:prstDash");if(m){let f=j(m,null,"val");f&&(i$1.style=f);}let y=o.find(f=>f.name==="a:headEnd");y&&(i$1.headEnd=X(y));let T=o.find(f=>f.name==="a:tailEnd");return T&&(i$1.tailEnd=X(T)),i$1}function X(e){let t=j(e,null,"type")??"none",n=j(e,null,"w"),o=j(e,null,"len");return {type:{none:"none",triangle:"triangle",stealth:"stealth",diamond:"diamond",oval:"oval",arrow:"arrow"}[t]??"none",width:n,length:o}}function Mt(e){if(!e)return {size:{width:0,height:0}};let t=h(e,"a:ext"),n=l(t,null,"cx")??0,o=l(t,null,"cy")??0,r={width:n,height:o},i=h(e,"a:off"),a;if(i){let m=l(i,null,"x")??0,y=l(i,null,"y")??0;a={x:m,y};}let s=j(e,null,"rot"),l$1=j(e,null,"flipH")==="1",u=j(e,null,"flipV")==="1",c=H(s),p;return (c!==void 0||l$1||u)&&(p={},c!==void 0&&(p.rotation=c),l$1&&(p.flipH=true),u&&(p.flipV=true)),{size:r,transform:p,offset:a}}function It(e){if(!e)return "rect";let t=h(e,"a:prstGeom");if(t){let o=j(t,null,"prst");if(o)return o}return h(e,"a:custGeom"),"rect"}function Rt(e){if(!e)return {};let t={},n=j(e,null,"vert");(n==="vert"||n==="vert270"||n==="wordArtVert")&&(t.vertical=true);let o=j(e,null,"rot");o&&(t.rotation=H(o));let r=j(e,null,"anchor");if(r){let m={t:"top",ctr:"middle",b:"bottom",dist:"distributed",just:"justified"};t.anchor=m[r];}j(e,null,"anchorCtr")==="1"&&(t.anchorCenter=true);let i=h(e,"a:noAutofit"),a=h(e,"a:normAutofit"),s=h(e,"a:spAutoFit");i?t.autoFit="none":a?t.autoFit="normal":s&&(t.autoFit="shape");let l$1=l(e,null,"lIns"),u=l(e,null,"rIns"),c=l(e,null,"tIns"),p=l(e,null,"bIns");return (l$1!==void 0||u!==void 0||c!==void 0||p!==void 0)&&(t.margins={left:l$1,right:u,top:c,bottom:p}),t}function Lt(e){if(!e)return [];let t=[],n=g(e,"p");for(let o of n)t.push({type:"paragraph",formatting:{},content:[]});return t}function W(e){let t=i(e),n=t.find(g=>g.name==="wps:cNvPr"),o=t.find(g=>g.name==="wps:spPr"),r=t.find(g=>g.name==="wps:style"),i$1=t.find(g=>g.name==="wps:txbx"),a=i$1?h(i$1,"w:txbxContent"):null,s=t.find(g=>g.name==="wps:bodyPr"),l=It(o??null),u=o?h(o,"a:xfrm"):null,{size:c,transform:p}=Mt(u),m=Ct(o??null,r??null),y=At(o??null,r??null),T,f;n&&(T=j(n,null,"id")??void 0,f=j(n,null,"name")??void 0);let S={type:"shape",shapeType:l,size:c};if(T&&(S.id=T),f&&(S.name=f),m&&(S.fill=m),y&&(S.outline=y),p&&(S.transform=p),a||s){let g=Rt(s??null),P=Lt(a);(P.length>0||Object.keys(g).length>0)&&(S.textBody={...g,content:P});}return S}function Dt(e){let n=i(e).find(c=>c.name==="wp:inline"||c.name==="wp:anchor");if(!n)return null;let o=n.name==="wp:anchor",r=h(n,"a:graphic");if(!r)return null;let i$1=h(r,"a:graphicData");if(!i$1)return null;let a=h(i$1,"wps:wsp");if(!a)return null;let s=W(a),l$1=h(n,"wp:extent");if(l$1){let c=l(l$1,null,"cx")??0,p=l(l$1,null,"cy")??0;s.size={width:c,height:p};}if(o){let c$1=c(n);c$1&&(s.position=c$1);let p=d(n);p&&(s.wrap=p);}let u=h(n,"wp:docPr");if(u){let c=j(u,null,"id"),p=j(u,null,"name");c&&(s.id=c),p&&(s.name=p);}return s}function Pt(e){let n=i(e).find(a=>a.name==="wp:inline"||a.name==="wp:anchor");if(!n)return false;let o=h(n,"a:graphic");if(!o)return false;let r=h(o,"a:graphicData");return r?h(r,"wps:wsp")!==null:false}function Nt(e){return ["line","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5"].includes(e.shapeType)}function Bt(e){return e.shapeType==="textBox"||e.textBody!==void 0&&e.textBody.content.length>0}function vt(e){return e.textBody!==void 0&&e.textBody.content.length>0}function Ot(e$1){return e(e$1.size.width)}function kt(e$1){return e(e$1.size.height)}function Ut(e$1){return {width:e(e$1.size.width),height:e(e$1.size.height)}}function Xt(e){return e.position!==void 0||e.wrap!==void 0}function Ht(e){return e.fill!==void 0&&e.fill.type!=="none"}function Wt(e){return e.outline!==void 0}function Vt(e$1){return e$1.outline?.width?e(e$1.outline.width):0}function Gt(e){if(!(!e.fill||e.fill.type!=="solid"))return e$1(e.fill.color)}function _t(e){if(e.outline?.color)return e$1(e.outline.color)}var R=720,L="left",jt="none";function V(e){let t=l(e,"w","pos"),n=j(e,"w","val");if(t===void 0||!n)return null;let o={position:t,alignment:n},r=j(e,"w","leader");return r&&(o.leader=r),o}function G(e){if(!e)return [];let t=f(e,"w","tab");if(t.length===0)return [];let n=[];for(let o of t){let r=V(o);r&&n.push(r);}return n.sort((o,r)=>o.position-r.position),n}function zt(e){if(!e)return;let t=e$2(e,"w","tabs"),n=G(t);return n.length>0?n:void 0}function Kt(e,t){if(!e&&!t)return [];if(!e)return t??[];if(!t)return [...e];let n=new Map;for(let r of e)n.set(r.position,r);for(let r of t)r.alignment==="clear"?n.delete(r.position):n.set(r.position,r);let o=Array.from(n.values());return o.sort((r,i)=>r.position-i.position),o}function D(e,t,n){for(let r of t)if(r.position>e&&r.alignment!=="clear")return r;let o=Math.ceil((e+1)/R)*R;return o>n?{position:n,alignment:L}:{position:o,alignment:L}}function Yt(e,t,n){let o=D(e,t,n);return Math.max(0,o.position-e)}function Jt(e,t,n,o=0){let r=D(e,t,n),i;switch(r.alignment){case "right":i=Math.max(0,r.position-e-o);break;case "center":i=Math.max(0,r.position-e-o/2);break;case "decimal":i=Math.max(0,r.position-e-o);break;case "bar":i=Math.max(0,r.position-e);break;default:i=Math.max(0,r.position-e);break}return {width:i,alignment:r.alignment}}function Zt(e){switch(e){case "dot":return ".";case "hyphen":return "-";case "underscore":return "_";case "heavy":return "_";case "middleDot":return "\xB7";default:return " "}}function qt(e){return e!==void 0&&e!=="none"}function Qt(e,t){let n=t.filter(i=>i.parentId!=null);if(n.length===0)return;let o=new Map;for(let i of n){let a=o.get(i.parentId);a?a.push(i.id):o.set(i.parentId,[i.id]);}function r(i){for(let a of i)if(a.type==="paragraph"){if(!a.content.some(l=>l.type==="commentRangeStart"||l.type==="commentRangeEnd"))continue;let s=[];for(let l of a.content)if(l.type==="commentRangeStart"){s.push(l);let u=o.get(l.id);if(u)for(let c of u)s.push({type:"commentRangeStart",id:c});}else if(l.type==="commentRangeEnd"){s.push(l);let u=o.get(l.id);if(u)for(let c of u)s.push({type:"commentRangeEnd",id:c});}else s.push(l);a.content=s;}else if(a.type==="table")for(let s of a.rows)for(let l of s.cells)r(l.content);}r(e);}function $t(e,t){let n=new Set(t.map(a=>a.id)),o=t.filter(a=>a.parentId!=null&&!n.has(a.parentId));if(o.length===0)return;let r=new Map;for(let a of o){let s=r.get(a.parentId);s?s.push(a.id):r.set(a.parentId,[a.id]);}function i(a){for(let s of a)if(s.type==="paragraph"){if(!s.content.some(p=>(p.type==="insertion"||p.type==="deletion")&&r.has(p.info.id)))continue;let u=[],c=s.content;for(let p=0;p<c.length;p++){let m=c[p];if((m.type==="insertion"||m.type==="deletion")&&r.has(m.info.id)){let y=r.get(m.info.id);for(let f of y)u.push({type:"commentRangeStart",id:f});u.push(m);let T=c[p+1];T&&(T.type==="insertion"||T.type==="deletion")&&T.type!==m.type&&T.info.author===m.info.author&&T.info.date===m.info.date&&(u.push(T),p++);for(let f of y)u.push({type:"commentRangeEnd",id:f});}else u.push(m);}s.content=u;}else if(s.type==="table")for(let l of s.rows)for(let u of l.cells)i(u.content);}i(e);}export{L as DEFAULT_TAB_ALIGNMENT,R as DEFAULT_TAB_INTERVAL_TWIPS,jt as DEFAULT_TAB_LEADER,M as KNOWN_FIELD_TYPES,Yt as calculateTabWidth,Jt as calculateTabWidthWithAlignment,ht as createComplexFieldContext,gt as getFieldDisplayValue,dt as getFormatSwitch,Zt as getLeaderCharacter,D as getNextTabStop,Vt as getOutlineWidthPx,Ut as getShapeDimensionsPx,kt as getShapeHeightPx,Ot as getShapeWidthPx,Ht as hasFill,ft as hasMergeFormat,Wt as hasOutline,vt as hasTextContent,qt as hasVisibleLeader,Qt as injectReplyRangeMarkers,$t as injectTCReplyRangeMarkers,yt as isDateTimeField,St as isDocPropertyField,Xt as isFloatingShape,ct as isKnownFieldType,Nt as isLineShape,bt as isMergeField,Tt as isPageNumberField,Ft as isReferenceField,Pt as isShapeDrawing,Bt as isTextBoxShape,Et as isTocField,xt as isTotalPagesField,Kt as mergeTabStops,ut as parseFieldInstruction,I as parseFieldType,W as parseShape,Dt as parseShapeFromDrawing,mt as parseSimpleField,V as parseTabStop,G as parseTabStops,zt as parseTabStopsFromParagraphProperties,Gt as resolveFillColor,_t as resolveOutlineColor};
@@ -22,11 +22,12 @@
22
22
  import { Document } from '../types/document.mjs';
23
23
  import { D as DocxInput } from '../docxInput-DTbCa48g.mjs';
24
24
  import '../colors-C3vA7HUU.mjs';
25
- import '../formatting-BH4hcZiq.mjs';
26
- import '../content-3xF4WDE8.mjs';
25
+ import '../formatting-DFtuRFQY.mjs';
26
+ import '../lists-CyGxd5Y2.mjs';
27
+ import '../content-BlWiORm-.mjs';
27
28
  import './wrapTypes.mjs';
28
29
  import '../watermark-DAcnAs_J.mjs';
29
- import '../styles-BOJ93SAm.mjs';
30
+ import '../styles-Dqec8Aw6.mjs';
30
31
 
31
32
  /**
32
33
  * Main Parser Orchestrator - Unified parseDocx function
@@ -22,11 +22,12 @@
22
22
  import { Document } from '../types/document.js';
23
23
  import { D as DocxInput } from '../docxInput-DTbCa48g.js';
24
24
  import '../colors-C3vA7HUU.js';
25
- import '../formatting-_OXU8gLB.js';
26
- import '../content-C8fc_tL6.js';
25
+ import '../formatting-JhqWT_XM.js';
26
+ import '../lists-Bn29SzeS.js';
27
+ import '../content-eG_Rtl0l.js';
27
28
  import './wrapTypes.js';
28
29
  import '../watermark-DAcnAs_J.js';
29
- import '../styles-BWqX2AS-.js';
30
+ import '../styles-gEujs7j6.js';
30
31
 
31
32
  /**
32
33
  * Main Parser Orchestrator - Unified parseDocx function
@@ -1 +1 @@
1
- 'use strict';var chunkOTHV7YV2_js=require('../chunk-OTHV7YV2.js');require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-MNOHUTKE.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"fullParseDocx",{enumerable:true,get:function(){return chunkOTHV7YV2_js.h}});Object.defineProperty(exports,"getDocxSummary",{enumerable:true,get:function(){return chunkOTHV7YV2_js.j}});Object.defineProperty(exports,"getDocxVariables",{enumerable:true,get:function(){return chunkOTHV7YV2_js.i}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkOTHV7YV2_js.f}});Object.defineProperty(exports,"quickParseDocx",{enumerable:true,get:function(){return chunkOTHV7YV2_js.g}});
1
+ 'use strict';var chunkP7HWOJC5_js=require('../chunk-P7HWOJC5.js');require('../chunk-AA6D2C6R.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-QVRMX2AC.js'),require('../chunk-O2643IUW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-H57LNDBH.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"fullParseDocx",{enumerable:true,get:function(){return chunkP7HWOJC5_js.c}});Object.defineProperty(exports,"getDocxSummary",{enumerable:true,get:function(){return chunkP7HWOJC5_js.e}});Object.defineProperty(exports,"getDocxVariables",{enumerable:true,get:function(){return chunkP7HWOJC5_js.d}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkP7HWOJC5_js.a}});Object.defineProperty(exports,"quickParseDocx",{enumerable:true,get:function(){return chunkP7HWOJC5_js.b}});
@@ -1 +1 @@
1
- export{h as fullParseDocx,j as getDocxSummary,i as getDocxVariables,f as parseDocx,g as quickParseDocx}from'../chunk-UE2ZKRYB.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-7LRR7RKE.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{c as fullParseDocx,e as getDocxSummary,d as getDocxVariables,a as parseDocx,b as quickParseDocx}from'../chunk-3HENAL6V.mjs';import'../chunk-RT52EYG3.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-CDBKFBC2.mjs';import'../chunk-AMJNIGO2.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-VJFIAFZ5.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -38,11 +38,12 @@
38
38
  import JSZip from 'jszip';
39
39
  import { Document } from '../types/document.mjs';
40
40
  import '../colors-C3vA7HUU.mjs';
41
- import '../formatting-BH4hcZiq.mjs';
42
- import '../content-3xF4WDE8.mjs';
41
+ import '../formatting-DFtuRFQY.mjs';
42
+ import '../lists-CyGxd5Y2.mjs';
43
+ import '../content-BlWiORm-.mjs';
43
44
  import './wrapTypes.mjs';
44
45
  import '../watermark-DAcnAs_J.mjs';
45
- import '../styles-BOJ93SAm.mjs';
46
+ import '../styles-Dqec8Aw6.mjs';
46
47
 
47
48
  /**
48
49
  * DOCX Unzipper
@@ -38,11 +38,12 @@
38
38
  import JSZip from 'jszip';
39
39
  import { Document } from '../types/document.js';
40
40
  import '../colors-C3vA7HUU.js';
41
- import '../formatting-_OXU8gLB.js';
42
- import '../content-C8fc_tL6.js';
41
+ import '../formatting-JhqWT_XM.js';
42
+ import '../lists-Bn29SzeS.js';
43
+ import '../content-eG_Rtl0l.js';
43
44
  import './wrapTypes.js';
44
45
  import '../watermark-DAcnAs_J.js';
45
- import '../styles-BWqX2AS-.js';
46
+ import '../styles-gEujs7j6.js';
46
47
 
47
48
  /**
48
49
  * DOCX Unzipper
@@ -1 +1 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkBH3ACQ3M_js=require('../chunk-BH3ACQ3M.js');require('../chunk-NAFMAKLK.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"COMMENTS_CONTENT_TYPE",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.c}});Object.defineProperty(exports,"COMMENTS_EXTENDED_CONTENT_TYPE",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.d}});Object.defineProperty(exports,"COMMENTS_EXTENSIBLE_CONTENT_TYPE",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.f}});Object.defineProperty(exports,"COMMENTS_IDS_CONTENT_TYPE",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.e}});Object.defineProperty(exports,"addMedia",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.p}});Object.defineProperty(exports,"addRelationship",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.o}});Object.defineProperty(exports,"applyUpdatesToZip",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.n}});Object.defineProperty(exports,"collectHeaderFooterUpdates",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.g}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.t}});Object.defineProperty(exports,"createEmptyDocx",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.h}});Object.defineProperty(exports,"default",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.u}});Object.defineProperty(exports,"findMaxRId",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.b}});Object.defineProperty(exports,"isDocxBuffer",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.s}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.i}});Object.defineProperty(exports,"repackDocxFromRaw",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.j}});Object.defineProperty(exports,"updateCoreProperties",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.q}});Object.defineProperty(exports,"updateDocumentXml",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.k}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.m}});Object.defineProperty(exports,"updateXmlFile",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.l}});Object.defineProperty(exports,"validateDocx",{enumerable:true,get:function(){return chunkBH3ACQ3M_js.r}});
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkJQUIUKRO_js=require('../chunk-JQUIUKRO.js');require('../chunk-4JPHW7ZI.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"COMMENTS_CONTENT_TYPE",{enumerable:true,get:function(){return chunkJQUIUKRO_js.c}});Object.defineProperty(exports,"COMMENTS_EXTENDED_CONTENT_TYPE",{enumerable:true,get:function(){return chunkJQUIUKRO_js.d}});Object.defineProperty(exports,"COMMENTS_EXTENSIBLE_CONTENT_TYPE",{enumerable:true,get:function(){return chunkJQUIUKRO_js.f}});Object.defineProperty(exports,"COMMENTS_IDS_CONTENT_TYPE",{enumerable:true,get:function(){return chunkJQUIUKRO_js.e}});Object.defineProperty(exports,"addMedia",{enumerable:true,get:function(){return chunkJQUIUKRO_js.p}});Object.defineProperty(exports,"addRelationship",{enumerable:true,get:function(){return chunkJQUIUKRO_js.o}});Object.defineProperty(exports,"applyUpdatesToZip",{enumerable:true,get:function(){return chunkJQUIUKRO_js.n}});Object.defineProperty(exports,"collectHeaderFooterUpdates",{enumerable:true,get:function(){return chunkJQUIUKRO_js.g}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkJQUIUKRO_js.t}});Object.defineProperty(exports,"createEmptyDocx",{enumerable:true,get:function(){return chunkJQUIUKRO_js.h}});Object.defineProperty(exports,"default",{enumerable:true,get:function(){return chunkJQUIUKRO_js.u}});Object.defineProperty(exports,"findMaxRId",{enumerable:true,get:function(){return chunkJQUIUKRO_js.b}});Object.defineProperty(exports,"isDocxBuffer",{enumerable:true,get:function(){return chunkJQUIUKRO_js.s}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkJQUIUKRO_js.i}});Object.defineProperty(exports,"repackDocxFromRaw",{enumerable:true,get:function(){return chunkJQUIUKRO_js.j}});Object.defineProperty(exports,"updateCoreProperties",{enumerable:true,get:function(){return chunkJQUIUKRO_js.q}});Object.defineProperty(exports,"updateDocumentXml",{enumerable:true,get:function(){return chunkJQUIUKRO_js.k}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkJQUIUKRO_js.m}});Object.defineProperty(exports,"updateXmlFile",{enumerable:true,get:function(){return chunkJQUIUKRO_js.l}});Object.defineProperty(exports,"validateDocx",{enumerable:true,get:function(){return chunkJQUIUKRO_js.r}});
@@ -1 +1 @@
1
- export{c as COMMENTS_CONTENT_TYPE,d as COMMENTS_EXTENDED_CONTENT_TYPE,f as COMMENTS_EXTENSIBLE_CONTENT_TYPE,e as COMMENTS_IDS_CONTENT_TYPE,p as addMedia,o as addRelationship,n as applyUpdatesToZip,g as collectHeaderFooterUpdates,t as createDocx,h as createEmptyDocx,u as default,b as findMaxRId,s as isDocxBuffer,i as repackDocx,j as repackDocxFromRaw,q as updateCoreProperties,k as updateDocumentXml,m as updateMultipleFiles,l as updateXmlFile,r as validateDocx}from'../chunk-CHN26LLL.mjs';import'../chunk-WWNOXNEX.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{c as COMMENTS_CONTENT_TYPE,d as COMMENTS_EXTENDED_CONTENT_TYPE,f as COMMENTS_EXTENSIBLE_CONTENT_TYPE,e as COMMENTS_IDS_CONTENT_TYPE,p as addMedia,o as addRelationship,n as applyUpdatesToZip,g as collectHeaderFooterUpdates,t as createDocx,h as createEmptyDocx,u as default,b as findMaxRId,s as isDocxBuffer,i as repackDocx,j as repackDocxFromRaw,q as updateCoreProperties,k as updateDocumentXml,m as updateMultipleFiles,l as updateXmlFile,r as validateDocx}from'../chunk-F24WZXN4.mjs';import'../chunk-2LVK7EF5.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -6,13 +6,14 @@
6
6
  * @packageDocumentation
7
7
  * @public
8
8
  */
9
- export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-D86QlzlT.mjs';
10
- import { P as Paragraph, m as Run, T as Table, y as HeaderFooter, e as Comment, E as Endnote, F as Footnote } from '../../content-3xF4WDE8.mjs';
9
+ export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-C8XCmzE4.mjs';
10
+ import { P as Paragraph, k as Run, T as Table, w as HeaderFooter, C as Comment, E as Endnote, F as Footnote } from '../../content-BlWiORm-.mjs';
11
11
  import '../../types/document.mjs';
12
12
  import '../../colors-C3vA7HUU.mjs';
13
- import '../../formatting-BH4hcZiq.mjs';
13
+ import '../../formatting-DFtuRFQY.mjs';
14
+ import '../../lists-CyGxd5Y2.mjs';
14
15
  import '../../watermark-DAcnAs_J.mjs';
15
- import '../../styles-BOJ93SAm.mjs';
16
+ import '../../styles-Dqec8Aw6.mjs';
16
17
  import '../wrapTypes.mjs';
17
18
 
18
19
  /**
@@ -6,13 +6,14 @@
6
6
  * @packageDocumentation
7
7
  * @public
8
8
  */
9
- export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-uXyGONxu.js';
10
- import { P as Paragraph, m as Run, T as Table, y as HeaderFooter, e as Comment, E as Endnote, F as Footnote } from '../../content-C8fc_tL6.js';
9
+ export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-S8J1V9mb.js';
10
+ import { P as Paragraph, k as Run, T as Table, w as HeaderFooter, C as Comment, E as Endnote, F as Footnote } from '../../content-eG_Rtl0l.js';
11
11
  import '../../types/document.js';
12
12
  import '../../colors-C3vA7HUU.js';
13
- import '../../formatting-_OXU8gLB.js';
13
+ import '../../formatting-JhqWT_XM.js';
14
+ import '../../lists-Bn29SzeS.js';
14
15
  import '../../watermark-DAcnAs_J.js';
15
- import '../../styles-BWqX2AS-.js';
16
+ import '../../styles-gEujs7j6.js';
16
17
  import '../wrapTypes.js';
17
18
 
18
19
  /**
@@ -1 +1 @@
1
- 'use strict';var chunkNAFMAKLK_js=require('../../chunk-NAFMAKLK.js');require('../../chunk-C2BAPYGJ.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"serializeBlockContent",{enumerable:true,get:function(){return chunkNAFMAKLK_js.f}});Object.defineProperty(exports,"serializeComments",{enumerable:true,get:function(){return chunkNAFMAKLK_js.k}});Object.defineProperty(exports,"serializeDocument",{enumerable:true,get:function(){return chunkNAFMAKLK_js.h}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkNAFMAKLK_js.g}});Object.defineProperty(exports,"serializeEndnotes",{enumerable:true,get:function(){return chunkNAFMAKLK_js.p}});Object.defineProperty(exports,"serializeFootnotes",{enumerable:true,get:function(){return chunkNAFMAKLK_js.o}});Object.defineProperty(exports,"serializeHeaderFooter",{enumerable:true,get:function(){return chunkNAFMAKLK_js.i}});Object.defineProperty(exports,"serializeParagraph",{enumerable:true,get:function(){return chunkNAFMAKLK_js.d}});Object.defineProperty(exports,"serializeRun",{enumerable:true,get:function(){return chunkNAFMAKLK_js.b}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkNAFMAKLK_js.c}});Object.defineProperty(exports,"serializeTable",{enumerable:true,get:function(){return chunkNAFMAKLK_js.e}});
1
+ 'use strict';var chunk4JPHW7ZI_js=require('../../chunk-4JPHW7ZI.js');require('../../chunk-C2BAPYGJ.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"serializeBlockContent",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.f}});Object.defineProperty(exports,"serializeComments",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.k}});Object.defineProperty(exports,"serializeDocument",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.h}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.g}});Object.defineProperty(exports,"serializeEndnotes",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.p}});Object.defineProperty(exports,"serializeFootnotes",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.o}});Object.defineProperty(exports,"serializeHeaderFooter",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.i}});Object.defineProperty(exports,"serializeParagraph",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.d}});Object.defineProperty(exports,"serializeRun",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.b}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.c}});Object.defineProperty(exports,"serializeTable",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.e}});
@@ -1 +1 @@
1
- export{f as serializeBlockContent,k as serializeComments,h as serializeDocument,g as serializeDocumentBody,p as serializeEndnotes,o as serializeFootnotes,i as serializeHeaderFooter,d as serializeParagraph,b as serializeRun,c as serializeSectionProperties,e as serializeTable}from'../../chunk-WWNOXNEX.mjs';import'../../chunk-LE67NTCN.mjs';import'../../chunk-QYUPLKLP.mjs';
1
+ export{f as serializeBlockContent,k as serializeComments,h as serializeDocument,g as serializeDocumentBody,p as serializeEndnotes,o as serializeFootnotes,i as serializeHeaderFooter,d as serializeParagraph,b as serializeRun,c as serializeSectionProperties,e as serializeTable}from'../../chunk-2LVK7EF5.mjs';import'../../chunk-LE67NTCN.mjs';import'../../chunk-QYUPLKLP.mjs';
@@ -2,14 +2,15 @@ import { EditorState, Transaction } from 'prosemirror-state';
2
2
  import { Node } from 'prosemirror-model';
3
3
  import { PageMargins, ColumnLayout, FlowBlock, Measure, Layout } from '../layout-engine/types.mjs';
4
4
  import { Document } from '../types/document.mjs';
5
- import { S as SectionProperties, y as HeaderFooter } from '../content-3xF4WDE8.mjs';
5
+ import { S as SectionProperties, w as HeaderFooter } from '../content-BlWiORm-.mjs';
6
6
  import { F as FloatPageGeometry } from '../measureBlocksPipeline-BMqbRFQB.mjs';
7
7
  import { H as HeaderFooterContent, F as FootnoteRenderItem } from '../footnotes-BZ24OTAT.mjs';
8
8
  import { W as Watermark } from '../watermark-DAcnAs_J.mjs';
9
- import { T as Theme, S as StyleDefinitions } from '../styles-BOJ93SAm.mjs';
10
- import '../formatting-BH4hcZiq.mjs';
9
+ import { T as Theme, S as StyleDefinitions } from '../styles-Dqec8Aw6.mjs';
10
+ import '../formatting-DFtuRFQY.mjs';
11
11
  import '../colors-C3vA7HUU.mjs';
12
12
  import '../docx/wrapTypes.mjs';
13
+ import '../lists-CyGxd5Y2.mjs';
13
14
  import '../anchoredObjectPosition-KJEyF-wr.mjs';
14
15
 
15
16
  /**
@@ -2,14 +2,15 @@ import { EditorState, Transaction } from 'prosemirror-state';
2
2
  import { Node } from 'prosemirror-model';
3
3
  import { PageMargins, ColumnLayout, FlowBlock, Measure, Layout } from '../layout-engine/types.js';
4
4
  import { Document } from '../types/document.js';
5
- import { S as SectionProperties, y as HeaderFooter } from '../content-C8fc_tL6.js';
5
+ import { S as SectionProperties, w as HeaderFooter } from '../content-eG_Rtl0l.js';
6
6
  import { F as FloatPageGeometry } from '../measureBlocksPipeline-iYNzAH-o.js';
7
7
  import { H as HeaderFooterContent, F as FootnoteRenderItem } from '../footnotes-DMsicPGd.js';
8
8
  import { W as Watermark } from '../watermark-DAcnAs_J.js';
9
- import { T as Theme, S as StyleDefinitions } from '../styles-BWqX2AS-.js';
10
- import '../formatting-_OXU8gLB.js';
9
+ import { T as Theme, S as StyleDefinitions } from '../styles-gEujs7j6.js';
10
+ import '../formatting-JhqWT_XM.js';
11
11
  import '../colors-C3vA7HUU.js';
12
12
  import '../docx/wrapTypes.js';
13
+ import '../lists-Bn29SzeS.js';
13
14
  import '../anchoredObjectPosition-CS-8BfhO.js';
14
15
 
15
16
  /**
@@ -1 +1 @@
1
- 'use strict';require('../chunk-LIW3H4WB.js');var chunkQ4IEATDJ_js=require('../chunk-Q4IEATDJ.js');require('../chunk-OPSOGVSU.js');var chunkYWM2QH36_js=require('../chunk-YWM2QH36.js'),chunkYPQACU4A_js=require('../chunk-YPQACU4A.js');require('../chunk-4MYKVWNF.js');var chunkJ3YFJDZD_js=require('../chunk-J3YFJDZD.js'),chunkRSU4HTC6_js=require('../chunk-RSU4HTC6.js');require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-XLB6AC5Q.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-L5NPEM7C.js'),require('../chunk-2WGTGBBS.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');function de(a){let{state:t,document:n,pageSize:e,margins:o,columns:p,finalPageSize:d,finalMargins:L,finalColumns:M,pageGap:K,contentWidth:f,theme:m,styles:D,sectionProperties:s,finalSectionProperties:Q,headerContent:X,footerContent:Y,firstPageHeaderContent:Z,firstPageFooterContent:ee,measureBlocks:g,getHfPmDoc:te}=a,oe=e.h-o.top-o.bottom,r=chunkYPQACU4A_js.c(t.doc,{theme:m,pageContentHeight:oe}),ne=chunkQ4IEATDJ_js.O(r,{pageSize:e,margins:o,columns:p},{pageSize:d,margins:L,columns:M}),l=g(r,ne,chunkJ3YFJDZD_js.f({size:e,margins:o})),y=chunkYWM2QH36_js.d(r),k=y.length>0&&!!n?.package?.footnotes,H={section:"header",pageSize:e,margins:o},x={section:"footer",pageSize:e,margins:o},T=t.doc.attrs?.defaultTabStopTwips,w={styles:D,theme:m,measureBlocks:g,defaultTabStopTwips:T},c=(i,u)=>{if(!i)return;let _=te(i);return _?chunkQ4IEATDJ_js.z(_,f,u,w):chunkQ4IEATDJ_js.y(i,f,u,w)},B=c(X,H),R=c(Y,x),F=s?.titlePg===true,v=F?c(Z,H):void 0,z=F?c(ee,x):void 0,re=t.doc.attrs?.watermark??void 0,{margins:ae,finalMargins:ie}=chunkQ4IEATDJ_js.D({pageSize:e,margins:o,finalMargins:L,bodyBlocks:r,headers:[B,v],footers:[R,z],warn:i=>console.warn(`[computeLayout] ${i}`)}),se=Q?.sectionStart,P={pageSize:e,margins:ae,finalPageSize:d,finalMargins:ie,columns:M,bodyBreakType:se,pageGap:K},h,E=new Map,S=new Map;if(k){let i=chunkRSU4HTC6_js.U(r,l,P);S=chunkYWM2QH36_js.h(n.package.footnotes,y,f,{styles:D??void 0,theme:m??null,measureBlocks:g,defaultTabStopTwips:T});let u=chunkYWM2QH36_js.j({blocks:r,measures:l,layoutOpts:P,footnoteRefs:y,footnoteContentMap:S,initialLayout:i});h=u.layout,E=u.pageFootnoteMap;}else h=chunkRSU4HTC6_js.U(r,l,P);let W=k?chunkYWM2QH36_js.k(E,S,n):void 0;return {blocks:r,measures:l,layout:h,headerContentForRender:B,footerContentForRender:R,firstPageHeaderForRender:v,firstPageFooterForRender:z,hasTitlePg:F,watermark:re,headerDistancePx:s?.headerDistance!=null?chunkQ4IEATDJ_js.I(s.headerDistance):void 0,footerDistancePx:s?.footerDistance!=null?chunkQ4IEATDJ_js.I(s.footerDistance):void 0,pageBorders:s?.pageBorders,footnotesByPage:W?.size?W:void 0}}function ue(a,t=e=>requestAnimationFrame(e),n=e=>cancelAnimationFrame(e)){let e=null;return {schedule(o){if(e){e.state=o;return}e={handle:0,state:o};let p=t(()=>{let d=e;e=null,d&&a(d.state);});e&&(e.handle=p);},cancel(){e&&(n(e.handle),e=null);}}}var J=false;function le(a){if(!J){J=true;try{let t=a.scrollIntoView();(typeof t.updated!="number"||(t.updated&4)===0)&&console.warn("[docx-editor] prosemirror-state UPDATED_SCROLL bit shape changed; paginated scroll suppression may be stale. Update PM_UPDATED_SCROLL.");}catch{}}}function ce(a,t){le(t);let n=a;typeof n.updated=="number"&&(n.updated&=-5);}exports.computeLayout=de;exports.createLayoutScheduler=ue;exports.stripScrollFlag=ce;
1
+ 'use strict';require('../chunk-GB7RICH6.js');var chunkLJ2TB6CY_js=require('../chunk-LJ2TB6CY.js');require('../chunk-TV6JLFY5.js');var chunkQXSDGNJ4_js=require('../chunk-QXSDGNJ4.js'),chunkBTSL4AYY_js=require('../chunk-BTSL4AYY.js');require('../chunk-WQRWRWSK.js');var chunkZETEPB7I_js=require('../chunk-ZETEPB7I.js'),chunkTAQTZAVZ_js=require('../chunk-TAQTZAVZ.js');require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-AA6D2C6R.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-UXPY65AC.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-O2643IUW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-ND33YQGU.js'),require('../chunk-DZ3FN3JI.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-5WINQXA3.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-X6AICTHN.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-H57LNDBH.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');function de(a){let{state:t,document:n,pageSize:e,margins:o,columns:p,finalPageSize:d,finalMargins:L,finalColumns:M,pageGap:K,contentWidth:f,theme:m,styles:D,sectionProperties:s,finalSectionProperties:Q,headerContent:X,footerContent:Y,firstPageHeaderContent:Z,firstPageFooterContent:ee,measureBlocks:g,getHfPmDoc:te}=a,oe=e.h-o.top-o.bottom,r=chunkBTSL4AYY_js.c(t.doc,{theme:m,pageContentHeight:oe}),ne=chunkLJ2TB6CY_js.O(r,{pageSize:e,margins:o,columns:p},{pageSize:d,margins:L,columns:M}),l=g(r,ne,chunkZETEPB7I_js.f({size:e,margins:o})),y=chunkQXSDGNJ4_js.d(r),k=y.length>0&&!!n?.package?.footnotes,H={section:"header",pageSize:e,margins:o},x={section:"footer",pageSize:e,margins:o},T=t.doc.attrs?.defaultTabStopTwips,w={styles:D,theme:m,measureBlocks:g,defaultTabStopTwips:T},c=(i,u)=>{if(!i)return;let _=te(i);return _?chunkLJ2TB6CY_js.z(_,f,u,w):chunkLJ2TB6CY_js.y(i,f,u,w)},B=c(X,H),R=c(Y,x),F=s?.titlePg===true,v=F?c(Z,H):void 0,z=F?c(ee,x):void 0,re=t.doc.attrs?.watermark??void 0,{margins:ae,finalMargins:ie}=chunkLJ2TB6CY_js.D({pageSize:e,margins:o,finalMargins:L,bodyBlocks:r,headers:[B,v],footers:[R,z],warn:i=>console.warn(`[computeLayout] ${i}`)}),se=Q?.sectionStart,P={pageSize:e,margins:ae,finalPageSize:d,finalMargins:ie,columns:M,bodyBreakType:se,pageGap:K},h,E=new Map,S=new Map;if(k){let i=chunkTAQTZAVZ_js.U(r,l,P);S=chunkQXSDGNJ4_js.h(n.package.footnotes,y,f,{styles:D??void 0,theme:m??null,measureBlocks:g,defaultTabStopTwips:T});let u=chunkQXSDGNJ4_js.j({blocks:r,measures:l,layoutOpts:P,footnoteRefs:y,footnoteContentMap:S,initialLayout:i});h=u.layout,E=u.pageFootnoteMap;}else h=chunkTAQTZAVZ_js.U(r,l,P);let W=k?chunkQXSDGNJ4_js.k(E,S,n):void 0;return {blocks:r,measures:l,layout:h,headerContentForRender:B,footerContentForRender:R,firstPageHeaderForRender:v,firstPageFooterForRender:z,hasTitlePg:F,watermark:re,headerDistancePx:s?.headerDistance!=null?chunkLJ2TB6CY_js.I(s.headerDistance):void 0,footerDistancePx:s?.footerDistance!=null?chunkLJ2TB6CY_js.I(s.footerDistance):void 0,pageBorders:s?.pageBorders,footnotesByPage:W?.size?W:void 0}}function ue(a,t=e=>requestAnimationFrame(e),n=e=>cancelAnimationFrame(e)){let e=null;return {schedule(o){if(e){e.state=o;return}e={handle:0,state:o};let p=t(()=>{let d=e;e=null,d&&a(d.state);});e&&(e.handle=p);},cancel(){e&&(n(e.handle),e=null);}}}var J=false;function le(a){if(!J){J=true;try{let t=a.scrollIntoView();(typeof t.updated!="number"||(t.updated&4)===0)&&console.warn("[docx-editor] prosemirror-state UPDATED_SCROLL bit shape changed; paginated scroll suppression may be stale. Update PM_UPDATED_SCROLL.");}catch{}}}function ce(a,t){le(t);let n=a;typeof n.updated=="number"&&(n.updated&=-5);}exports.computeLayout=de;exports.createLayoutScheduler=ue;exports.stripScrollFlag=ce;
@@ -1 +1 @@
1
- import'../chunk-GE2GV2AX.mjs';import {O,D,I,z,y}from'../chunk-OF373DBR.mjs';import'../chunk-C52D36FA.mjs';import {d,h,j,k}from'../chunk-7KMTWDPE.mjs';import {c}from'../chunk-HKN2NKOG.mjs';import'../chunk-LX35TFGF.mjs';import {f}from'../chunk-55XWETY4.mjs';import {U}from'../chunk-JHTURDPX.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-IUJCUITW.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QAJSNLJR.mjs';import'../chunk-CRMZH7U7.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';function de(a){let{state:t,document:n,pageSize:e,margins:o,columns:p,finalPageSize:d$1,finalMargins:L,finalColumns:M,pageGap:K,contentWidth:f$1,theme:m,styles:D$1,sectionProperties:s,finalSectionProperties:Q,headerContent:X,footerContent:Y,firstPageHeaderContent:Z,firstPageFooterContent:ee,measureBlocks:g,getHfPmDoc:te}=a,oe=e.h-o.top-o.bottom,r=c(t.doc,{theme:m,pageContentHeight:oe}),ne=O(r,{pageSize:e,margins:o,columns:p},{pageSize:d$1,margins:L,columns:M}),l=g(r,ne,f({size:e,margins:o})),y$1=d(r),k$1=y$1.length>0&&!!n?.package?.footnotes,H={section:"header",pageSize:e,margins:o},x={section:"footer",pageSize:e,margins:o},T=t.doc.attrs?.defaultTabStopTwips,w={styles:D$1,theme:m,measureBlocks:g,defaultTabStopTwips:T},c$1=(i,u)=>{if(!i)return;let _=te(i);return _?z(_,f$1,u,w):y(i,f$1,u,w)},B=c$1(X,H),R=c$1(Y,x),F=s?.titlePg===true,v=F?c$1(Z,H):void 0,z$1=F?c$1(ee,x):void 0,re=t.doc.attrs?.watermark??void 0,{margins:ae,finalMargins:ie}=D({pageSize:e,margins:o,finalMargins:L,bodyBlocks:r,headers:[B,v],footers:[R,z$1],warn:i=>console.warn(`[computeLayout] ${i}`)}),se=Q?.sectionStart,P={pageSize:e,margins:ae,finalPageSize:d$1,finalMargins:ie,columns:M,bodyBreakType:se,pageGap:K},h$1,E=new Map,S=new Map;if(k$1){let i=U(r,l,P);S=h(n.package.footnotes,y$1,f$1,{styles:D$1??void 0,theme:m??null,measureBlocks:g,defaultTabStopTwips:T});let u=j({blocks:r,measures:l,layoutOpts:P,footnoteRefs:y$1,footnoteContentMap:S,initialLayout:i});h$1=u.layout,E=u.pageFootnoteMap;}else h$1=U(r,l,P);let W=k$1?k(E,S,n):void 0;return {blocks:r,measures:l,layout:h$1,headerContentForRender:B,footerContentForRender:R,firstPageHeaderForRender:v,firstPageFooterForRender:z$1,hasTitlePg:F,watermark:re,headerDistancePx:s?.headerDistance!=null?I(s.headerDistance):void 0,footerDistancePx:s?.footerDistance!=null?I(s.footerDistance):void 0,pageBorders:s?.pageBorders,footnotesByPage:W?.size?W:void 0}}function ue(a,t=e=>requestAnimationFrame(e),n=e=>cancelAnimationFrame(e)){let e=null;return {schedule(o){if(e){e.state=o;return}e={handle:0,state:o};let p=t(()=>{let d=e;e=null,d&&a(d.state);});e&&(e.handle=p);},cancel(){e&&(n(e.handle),e=null);}}}var J=false;function le(a){if(!J){J=true;try{let t=a.scrollIntoView();(typeof t.updated!="number"||(t.updated&4)===0)&&console.warn("[docx-editor] prosemirror-state UPDATED_SCROLL bit shape changed; paginated scroll suppression may be stale. Update PM_UPDATED_SCROLL.");}catch{}}}function ce(a,t){le(t);let n=a;typeof n.updated=="number"&&(n.updated&=-5);}export{de as computeLayout,ue as createLayoutScheduler,ce as stripScrollFlag};
1
+ import'../chunk-CBKJOPOW.mjs';import {O,D,I,z,y}from'../chunk-5HA66FH4.mjs';import'../chunk-WYFK4QOF.mjs';import {d,h,j,k}from'../chunk-YHXVNJK5.mjs';import {c}from'../chunk-L6ZRNW7Y.mjs';import'../chunk-GKAXYZCE.mjs';import {f}from'../chunk-EZNVVB63.mjs';import {U}from'../chunk-4RQAAKQI.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-RT52EYG3.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-SHYNWAW6.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-AMJNIGO2.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-SNTAAXXA.mjs';import'../chunk-ENIWJBS7.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-M7KTKPGO.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-NTBZRITU.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-VJFIAFZ5.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';function de(a){let{state:t,document:n,pageSize:e,margins:o,columns:p,finalPageSize:d$1,finalMargins:L,finalColumns:M,pageGap:K,contentWidth:f$1,theme:m,styles:D$1,sectionProperties:s,finalSectionProperties:Q,headerContent:X,footerContent:Y,firstPageHeaderContent:Z,firstPageFooterContent:ee,measureBlocks:g,getHfPmDoc:te}=a,oe=e.h-o.top-o.bottom,r=c(t.doc,{theme:m,pageContentHeight:oe}),ne=O(r,{pageSize:e,margins:o,columns:p},{pageSize:d$1,margins:L,columns:M}),l=g(r,ne,f({size:e,margins:o})),y$1=d(r),k$1=y$1.length>0&&!!n?.package?.footnotes,H={section:"header",pageSize:e,margins:o},x={section:"footer",pageSize:e,margins:o},T=t.doc.attrs?.defaultTabStopTwips,w={styles:D$1,theme:m,measureBlocks:g,defaultTabStopTwips:T},c$1=(i,u)=>{if(!i)return;let _=te(i);return _?z(_,f$1,u,w):y(i,f$1,u,w)},B=c$1(X,H),R=c$1(Y,x),F=s?.titlePg===true,v=F?c$1(Z,H):void 0,z$1=F?c$1(ee,x):void 0,re=t.doc.attrs?.watermark??void 0,{margins:ae,finalMargins:ie}=D({pageSize:e,margins:o,finalMargins:L,bodyBlocks:r,headers:[B,v],footers:[R,z$1],warn:i=>console.warn(`[computeLayout] ${i}`)}),se=Q?.sectionStart,P={pageSize:e,margins:ae,finalPageSize:d$1,finalMargins:ie,columns:M,bodyBreakType:se,pageGap:K},h$1,E=new Map,S=new Map;if(k$1){let i=U(r,l,P);S=h(n.package.footnotes,y$1,f$1,{styles:D$1??void 0,theme:m??null,measureBlocks:g,defaultTabStopTwips:T});let u=j({blocks:r,measures:l,layoutOpts:P,footnoteRefs:y$1,footnoteContentMap:S,initialLayout:i});h$1=u.layout,E=u.pageFootnoteMap;}else h$1=U(r,l,P);let W=k$1?k(E,S,n):void 0;return {blocks:r,measures:l,layout:h$1,headerContentForRender:B,footerContentForRender:R,firstPageHeaderForRender:v,firstPageFooterForRender:z$1,hasTitlePg:F,watermark:re,headerDistancePx:s?.headerDistance!=null?I(s.headerDistance):void 0,footerDistancePx:s?.footerDistance!=null?I(s.footerDistance):void 0,pageBorders:s?.pageBorders,footnotesByPage:W?.size?W:void 0}}function ue(a,t=e=>requestAnimationFrame(e),n=e=>cancelAnimationFrame(e)){let e=null;return {schedule(o){if(e){e.state=o;return}e={handle:0,state:o};let p=t(()=>{let d=e;e=null,d&&a(d.state);});e&&(e.handle=p);},cancel(){e&&(n(e.handle),e=null);}}}var J=false;function le(a){if(!J){J=true;try{let t=a.scrollIntoView();(typeof t.updated!="number"||(t.updated&4)===0)&&console.warn("[docx-editor] prosemirror-state UPDATED_SCROLL bit shape changed; paginated scroll suppression may be stale. Update PM_UPDATED_SCROLL.");}catch{}}}function ce(a,t){le(t);let n=a;typeof n.updated=="number"&&(n.updated&=-5);}export{de as computeLayout,ue as createLayoutScheduler,ce as stripScrollFlag};
@@ -1,5 +1,5 @@
1
1
  import { Document } from './types/document.mjs';
2
- import { x as BreakContent, P as Paragraph, m as Run, n as RunContent } from './content-3xF4WDE8.mjs';
2
+ import { v as BreakContent, P as Paragraph, k as Run, l as RunContent } from './content-BlWiORm-.mjs';
3
3
 
4
4
  /**
5
5
  * Insert Operations Utility
@@ -124,6 +124,37 @@ declare function loadFonts(families: string[], options?: {
124
124
  * @returns true if the font is loaded, false otherwise
125
125
  */
126
126
  declare function isFontLoaded(fontFamily: string): boolean;
127
+ /**
128
+ * Enable or disable the editor's automatic Google Fonts lookup.
129
+ *
130
+ * Defaults to enabled. Set to `false` in no-egress embedders (strict CSP,
131
+ * offline) so `loadFont` / `loadFontWithMapping` never inject a
132
+ * `fonts.googleapis.com` stylesheet `<link>`. This gates ONLY the implicit
133
+ * Google Fonts lookup — font URLs you register yourself (the `fonts` prop /
134
+ * `loadFontFromUrl`) are still fetched by the browser, and embedded blobs
135
+ * (`loadFontFromBuffer`) and system fonts still resolve.
136
+ *
137
+ * The flag is page-global (module-level), not per-editor: with multiple
138
+ * editors on one page the last caller wins. Call it before loading documents;
139
+ * disabling does not cancel fetches already in flight. A document font that
140
+ * is neither local nor registered then resolves `loadFont` to `false`
141
+ * silently (no `onFontError`) and renders via its CSS fallback stack.
142
+ *
143
+ * @see isGoogleFontsEnabled
144
+ * @see loadFontFromBuffer
145
+ * @see loadFontFromUrl
146
+ *
147
+ * @public
148
+ */
149
+ declare function setGoogleFontsEnabled(enabled: boolean): void;
150
+ /**
151
+ * Whether the automatic Google Fonts lookup is currently enabled.
152
+ *
153
+ * @see setGoogleFontsEnabled
154
+ *
155
+ * @public
156
+ */
157
+ declare function isGoogleFontsEnabled(): boolean;
127
158
  /**
128
159
  * Check if any fonts are currently loading
129
160
  *
@@ -154,8 +185,10 @@ declare function onFontError(callback: (error: Error) => void): () => void;
154
185
  /**
155
186
  * Check if a font is available on the system using canvas measurement
156
187
  *
157
- * This uses the technique of comparing text width with the target font
158
- * vs a known fallback font. If they differ, the font is available.
188
+ * Compares text width with the target font vs a known fallback font (and the
189
+ * opposite fallback, for names that collide with the browser defaults). If
190
+ * the widths differ, the font is available. Reuses one shared canvas; the
191
+ * fallback widths are session constants and memoized.
159
192
  *
160
193
  * @param fontFamily - The font family name to check
161
194
  * @param fallbackFont - Fallback font to compare against
@@ -165,6 +198,13 @@ declare function canRenderFont(fontFamily: string, fallbackFont?: string): boole
165
198
  /**
166
199
  * Load a font from a raw buffer (e.g., embedded in DOCX)
167
200
  *
201
+ * Call before loading the document when possible: registration marks the
202
+ * family as ours, which is what keeps the metric-compatible Google fallback
203
+ * in play for subsetted faces during the document's font resolution pass.
204
+ * Late registration still self-heals on the next pass. Under
205
+ * `setGoogleFontsEnabled(false)` that fallback fetch is suppressed and
206
+ * glyphs missing from the registered faces render via the CSS stack.
207
+ *
168
208
  * @param fontFamily - The font family name
169
209
  * @param buffer - Font file buffer (TTF, OTF, WOFF, WOFF2)
170
210
  * @param options - Font options
@@ -177,7 +217,10 @@ declare function loadFontFromBuffer(fontFamily: string, buffer: ArrayBuffer, opt
177
217
  * Load a font face from a URL (woff2, woff, ttf, otf).
178
218
  *
179
219
  * Injects an `@font-face` rule pointing at the URL. Multiple weights of the
180
- * same family can be registered independently.
220
+ * same family can be registered independently. Families registered here are
221
+ * treated as potentially subsetted: the editor still fetches their
222
+ * metric-compatible Google equivalent as a glyph-coverage fallback, unless
223
+ * disabled via `setGoogleFontsEnabled(false)`.
181
224
  *
182
225
  * @param fontFamily - CSS font-family name to expose
183
226
  * @param src - URL to the font file
@@ -280,4 +323,4 @@ declare function extractFontsFromDocument(document: unknown): Set<string>;
280
323
  */
281
324
  declare function loadDocumentFonts(document: unknown): Promise<void>;
282
325
 
283
- export { extractFontsFromDocument as A, getGoogleFontEquivalent as B, loadDocumentFonts as C, loadFontDefinitions as D, loadFontFromUrl as E, FONT_MAPPING as F, loadFontWithMapping as G, loadFontsWithMapping as H, type InsertPosition as I, onFontError as J, countPageBreaks as a, createColumnBreak as b, canRenderFont as c, createHorizontalRule as d, createLineBreak as e, createPageBreak as f, createPageBreakParagraph as g, createPageBreakRun as h, findPageBreaks as i, getLoadedFonts as j, hasPageBreakBefore as k, insertHorizontalRule as l, insertPageBreak as m, isBreakContent as n, isColumnBreak as o, isFontLoaded as p, isLoading as q, isLineBreak as r, isPageBreak as s, loadFont as t, loadFontFromBuffer as u, loadFonts as v, onFontsLoaded as w, preloadCommonFonts as x, removePageBreak as y, type FontDefinition as z };
326
+ export { setGoogleFontsEnabled as A, type FontDefinition as B, extractFontsFromDocument as C, getGoogleFontEquivalent as D, loadDocumentFonts as E, FONT_MAPPING as F, loadFontDefinitions as G, loadFontFromUrl as H, type InsertPosition as I, loadFontWithMapping as J, loadFontsWithMapping as K, onFontError as L, countPageBreaks as a, createColumnBreak as b, canRenderFont as c, createHorizontalRule as d, createLineBreak as e, createPageBreak as f, createPageBreakParagraph as g, createPageBreakRun as h, findPageBreaks as i, getLoadedFonts as j, hasPageBreakBefore as k, insertHorizontalRule as l, insertPageBreak as m, isBreakContent as n, isColumnBreak as o, isFontLoaded as p, isLoading as q, isGoogleFontsEnabled as r, isLineBreak as s, isPageBreak as t, loadFont as u, loadFontFromBuffer as v, loadFonts as w, onFontsLoaded as x, preloadCommonFonts as y, removePageBreak as z };
@@ -1,5 +1,5 @@
1
1
  import { Document } from './types/document.js';
2
- import { x as BreakContent, P as Paragraph, m as Run, n as RunContent } from './content-C8fc_tL6.js';
2
+ import { v as BreakContent, P as Paragraph, k as Run, l as RunContent } from './content-eG_Rtl0l.js';
3
3
 
4
4
  /**
5
5
  * Insert Operations Utility
@@ -124,6 +124,37 @@ declare function loadFonts(families: string[], options?: {
124
124
  * @returns true if the font is loaded, false otherwise
125
125
  */
126
126
  declare function isFontLoaded(fontFamily: string): boolean;
127
+ /**
128
+ * Enable or disable the editor's automatic Google Fonts lookup.
129
+ *
130
+ * Defaults to enabled. Set to `false` in no-egress embedders (strict CSP,
131
+ * offline) so `loadFont` / `loadFontWithMapping` never inject a
132
+ * `fonts.googleapis.com` stylesheet `<link>`. This gates ONLY the implicit
133
+ * Google Fonts lookup — font URLs you register yourself (the `fonts` prop /
134
+ * `loadFontFromUrl`) are still fetched by the browser, and embedded blobs
135
+ * (`loadFontFromBuffer`) and system fonts still resolve.
136
+ *
137
+ * The flag is page-global (module-level), not per-editor: with multiple
138
+ * editors on one page the last caller wins. Call it before loading documents;
139
+ * disabling does not cancel fetches already in flight. A document font that
140
+ * is neither local nor registered then resolves `loadFont` to `false`
141
+ * silently (no `onFontError`) and renders via its CSS fallback stack.
142
+ *
143
+ * @see isGoogleFontsEnabled
144
+ * @see loadFontFromBuffer
145
+ * @see loadFontFromUrl
146
+ *
147
+ * @public
148
+ */
149
+ declare function setGoogleFontsEnabled(enabled: boolean): void;
150
+ /**
151
+ * Whether the automatic Google Fonts lookup is currently enabled.
152
+ *
153
+ * @see setGoogleFontsEnabled
154
+ *
155
+ * @public
156
+ */
157
+ declare function isGoogleFontsEnabled(): boolean;
127
158
  /**
128
159
  * Check if any fonts are currently loading
129
160
  *
@@ -154,8 +185,10 @@ declare function onFontError(callback: (error: Error) => void): () => void;
154
185
  /**
155
186
  * Check if a font is available on the system using canvas measurement
156
187
  *
157
- * This uses the technique of comparing text width with the target font
158
- * vs a known fallback font. If they differ, the font is available.
188
+ * Compares text width with the target font vs a known fallback font (and the
189
+ * opposite fallback, for names that collide with the browser defaults). If
190
+ * the widths differ, the font is available. Reuses one shared canvas; the
191
+ * fallback widths are session constants and memoized.
159
192
  *
160
193
  * @param fontFamily - The font family name to check
161
194
  * @param fallbackFont - Fallback font to compare against
@@ -165,6 +198,13 @@ declare function canRenderFont(fontFamily: string, fallbackFont?: string): boole
165
198
  /**
166
199
  * Load a font from a raw buffer (e.g., embedded in DOCX)
167
200
  *
201
+ * Call before loading the document when possible: registration marks the
202
+ * family as ours, which is what keeps the metric-compatible Google fallback
203
+ * in play for subsetted faces during the document's font resolution pass.
204
+ * Late registration still self-heals on the next pass. Under
205
+ * `setGoogleFontsEnabled(false)` that fallback fetch is suppressed and
206
+ * glyphs missing from the registered faces render via the CSS stack.
207
+ *
168
208
  * @param fontFamily - The font family name
169
209
  * @param buffer - Font file buffer (TTF, OTF, WOFF, WOFF2)
170
210
  * @param options - Font options
@@ -177,7 +217,10 @@ declare function loadFontFromBuffer(fontFamily: string, buffer: ArrayBuffer, opt
177
217
  * Load a font face from a URL (woff2, woff, ttf, otf).
178
218
  *
179
219
  * Injects an `@font-face` rule pointing at the URL. Multiple weights of the
180
- * same family can be registered independently.
220
+ * same family can be registered independently. Families registered here are
221
+ * treated as potentially subsetted: the editor still fetches their
222
+ * metric-compatible Google equivalent as a glyph-coverage fallback, unless
223
+ * disabled via `setGoogleFontsEnabled(false)`.
181
224
  *
182
225
  * @param fontFamily - CSS font-family name to expose
183
226
  * @param src - URL to the font file
@@ -280,4 +323,4 @@ declare function extractFontsFromDocument(document: unknown): Set<string>;
280
323
  */
281
324
  declare function loadDocumentFonts(document: unknown): Promise<void>;
282
325
 
283
- export { extractFontsFromDocument as A, getGoogleFontEquivalent as B, loadDocumentFonts as C, loadFontDefinitions as D, loadFontFromUrl as E, FONT_MAPPING as F, loadFontWithMapping as G, loadFontsWithMapping as H, type InsertPosition as I, onFontError as J, countPageBreaks as a, createColumnBreak as b, canRenderFont as c, createHorizontalRule as d, createLineBreak as e, createPageBreak as f, createPageBreakParagraph as g, createPageBreakRun as h, findPageBreaks as i, getLoadedFonts as j, hasPageBreakBefore as k, insertHorizontalRule as l, insertPageBreak as m, isBreakContent as n, isColumnBreak as o, isFontLoaded as p, isLoading as q, isLineBreak as r, isPageBreak as s, loadFont as t, loadFontFromBuffer as u, loadFonts as v, onFontsLoaded as w, preloadCommonFonts as x, removePageBreak as y, type FontDefinition as z };
326
+ export { setGoogleFontsEnabled as A, type FontDefinition as B, extractFontsFromDocument as C, getGoogleFontEquivalent as D, loadDocumentFonts as E, FONT_MAPPING as F, loadFontDefinitions as G, loadFontFromUrl as H, type InsertPosition as I, loadFontWithMapping as J, loadFontsWithMapping as K, onFontError as L, countPageBreaks as a, createColumnBreak as b, canRenderFont as c, createHorizontalRule as d, createLineBreak as e, createPageBreak as f, createPageBreakParagraph as g, createPageBreakRun as h, findPageBreaks as i, getLoadedFonts as j, hasPageBreakBefore as k, insertHorizontalRule as l, insertPageBreak as m, isBreakContent as n, isColumnBreak as o, isFontLoaded as p, isLoading as q, isGoogleFontsEnabled as r, isLineBreak as s, isPageBreak as t, loadFont as u, loadFontFromBuffer as v, loadFonts as w, onFontsLoaded as x, preloadCommonFonts as y, removePageBreak as z };
@@ -211,6 +211,19 @@ interface ParagraphFormatting {
211
211
  /** List level (0-8) (w:ilvl) */
212
212
  ilvl?: number;
213
213
  };
214
+ /**
215
+ * When `numPr` was resolved from the paragraph STYLE's pPr rather than the
216
+ * paragraph's own `<w:numPr>`, this records the style-sourced value. The
217
+ * serializer omits `numPr` while it still equals this value — writing it as
218
+ * direct formatting would flip Word's indent precedence (a directly
219
+ * referenced level's indents beat the style's; a style-referenced level's
220
+ * do not) and break the document on save/reload. Cleared the moment the
221
+ * user changes the numbering (values diverge).
222
+ */
223
+ numPrFromStyle?: {
224
+ numId?: number;
225
+ ilvl?: number;
226
+ };
214
227
  /** Outline level 0-9 (w:outlineLvl) */
215
228
  outlineLevel?: number;
216
229
  /** Paragraph style ID (w:pStyle) */
@@ -211,6 +211,19 @@ interface ParagraphFormatting {
211
211
  /** List level (0-8) (w:ilvl) */
212
212
  ilvl?: number;
213
213
  };
214
+ /**
215
+ * When `numPr` was resolved from the paragraph STYLE's pPr rather than the
216
+ * paragraph's own `<w:numPr>`, this records the style-sourced value. The
217
+ * serializer omits `numPr` while it still equals this value — writing it as
218
+ * direct formatting would flip Word's indent precedence (a directly
219
+ * referenced level's indents beat the style's; a style-referenced level's
220
+ * do not) and break the document on save/reload. Cleared the moment the
221
+ * user changes the numbering (values diverge).
222
+ */
223
+ numPrFromStyle?: {
224
+ numId?: number;
225
+ ilvl?: number;
226
+ };
214
227
  /** Outline level 0-9 (w:outlineLvl) */
215
228
  outlineLevel?: number;
216
229
  /** Paragraph style ID (w:pStyle) */
@@ -1,8 +1,8 @@
1
1
  import { Node } from 'prosemirror-model';
2
2
  import { EditorView } from 'prosemirror-view';
3
3
  import { FlowBlock, Measure, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.mjs';
4
- import { F as Footnote, y as HeaderFooter } from './content-3xF4WDE8.mjs';
5
- import { S as StyleDefinitions, T as Theme } from './styles-BOJ93SAm.mjs';
4
+ import { F as Footnote, w as HeaderFooter } from './content-BlWiORm-.mjs';
5
+ import { S as StyleDefinitions, T as Theme } from './styles-Dqec8Aw6.mjs';
6
6
  import { F as FootnoteRenderItem, H as HeaderFooterContent } from './footnotes-BZ24OTAT.mjs';
7
7
  import { Document } from './types/document.mjs';
8
8
 
@@ -1,8 +1,8 @@
1
1
  import { Node } from 'prosemirror-model';
2
2
  import { EditorView } from 'prosemirror-view';
3
3
  import { FlowBlock, Measure, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.js';
4
- import { F as Footnote, y as HeaderFooter } from './content-C8fc_tL6.js';
5
- import { S as StyleDefinitions, T as Theme } from './styles-BWqX2AS-.js';
4
+ import { F as Footnote, w as HeaderFooter } from './content-eG_Rtl0l.js';
5
+ import { S as StyleDefinitions, T as Theme } from './styles-gEujs7j6.js';
6
6
  import { F as FootnoteRenderItem, H as HeaderFooterContent } from './footnotes-DMsicPGd.js';
7
7
  import { Document } from './types/document.js';
8
8