@eigenpal/docx-editor-core 1.2.0 → 1.3.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 (239) hide show
  1. package/dist/agent/index.d.mts +5 -4
  2. package/dist/agent/index.d.ts +5 -4
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/index.mjs +1 -1
  5. package/dist/anchoredObjectPosition-CS-8BfhO.d.ts +48 -0
  6. package/dist/anchoredObjectPosition-KJEyF-wr.d.mts +48 -0
  7. package/dist/{chunk-U4WUDHDK.js → chunk-2SGJZYQF.js} +1 -1
  8. package/dist/chunk-3ANZ3252.mjs +2 -0
  9. package/dist/chunk-3G44SFHX.mjs +4 -0
  10. package/dist/{chunk-4QEETB7U.js → chunk-3QPKTG2Y.js} +2 -2
  11. package/dist/chunk-3R7QHNI5.js +2 -0
  12. package/dist/chunk-4GFTMGSV.mjs +1 -0
  13. package/dist/chunk-4RTVLMRZ.js +2 -0
  14. package/dist/{chunk-THLJYXFB.js → chunk-6V3SFHEM.js} +1 -1
  15. package/dist/chunk-72KLR6TJ.mjs +1 -0
  16. package/dist/{chunk-6ZXL3EIP.mjs → chunk-7CZEZ3UL.mjs} +1 -1
  17. package/dist/chunk-7JQVKJRN.mjs +1 -0
  18. package/dist/{chunk-Z5MJYQSD.mjs → chunk-7UZJ5YDF.mjs} +1 -1
  19. package/dist/chunk-7WGN2OBZ.js +1 -0
  20. package/dist/{chunk-BXWOLARZ.js → chunk-APNMO5JT.js} +1 -1
  21. package/dist/{chunk-KZXZWGFX.mjs → chunk-B46V5G46.mjs} +1 -1
  22. package/dist/chunk-BH3ACQ3M.js +59 -0
  23. package/dist/chunk-BUCOTKYY.js +1 -0
  24. package/dist/{chunk-5BLQHXWK.mjs → chunk-CDXCFHOY.mjs} +1 -1
  25. package/dist/chunk-CHN26LLL.mjs +59 -0
  26. package/dist/chunk-CZSAC65M.js +2 -0
  27. package/dist/chunk-D3PRIF3Y.mjs +1 -0
  28. package/dist/{chunk-7BVHKWEW.mjs → chunk-DFUWJHKF.mjs} +1 -1
  29. package/dist/chunk-DKKTY56Q.js +1 -0
  30. package/dist/chunk-FIGLFSNR.js +1 -0
  31. package/dist/{chunk-AMB6Y77B.js → chunk-FQS436KN.js} +1 -1
  32. package/dist/chunk-FYRJTDC4.mjs +2 -0
  33. package/dist/chunk-GYWTUUXX.mjs +2 -0
  34. package/dist/chunk-INDYZOOS.js +1 -0
  35. package/dist/chunk-IUVQJ6PX.mjs +1 -0
  36. package/dist/chunk-JUMHC5Z6.mjs +1 -0
  37. package/dist/chunk-L6YTCHOQ.mjs +1 -0
  38. package/dist/{chunk-D62KS7QG.mjs → chunk-LAJPGQEE.mjs} +1 -1
  39. package/dist/chunk-LERLET2D.js +4 -0
  40. package/dist/chunk-MEVZCB56.mjs +1 -0
  41. package/dist/{chunk-BOOHU5EW.mjs → chunk-MOCGHQ4A.mjs} +1 -1
  42. package/dist/chunk-NAFMAKLK.js +2 -0
  43. package/dist/chunk-OTHV7YV2.js +2 -0
  44. package/dist/chunk-Q5B5GKXD.mjs +1 -0
  45. package/dist/{chunk-U4XMGWF7.js → chunk-RAWVGULQ.js} +1 -1
  46. package/dist/chunk-RQVHKDXK.js +2 -0
  47. package/dist/{chunk-E4JMCA5X.js → chunk-SCK6ZM5V.js} +2 -2
  48. package/dist/chunk-SWBLJF6R.mjs +2 -0
  49. package/dist/chunk-T4RYVPAB.js +1 -0
  50. package/dist/{chunk-RORPREG3.js → chunk-TJRROR6U.js} +1 -1
  51. package/dist/chunk-TURYWKNS.js +1 -0
  52. package/dist/chunk-UE2ZKRYB.mjs +2 -0
  53. package/dist/chunk-VOCHZNOF.mjs +1 -0
  54. package/dist/{chunk-OEXVWIHW.mjs → chunk-W77JXDEV.mjs} +1 -1
  55. package/dist/chunk-WDBZ3QVB.js +1 -0
  56. package/dist/chunk-WWBNJ7KF.js +1 -0
  57. package/dist/chunk-WWNOXNEX.mjs +2 -0
  58. package/dist/chunk-XWC67YLW.js +1 -0
  59. package/dist/{chunk-QKLY4F2J.mjs → chunk-YNUPP7UG.mjs} +1 -1
  60. package/dist/{chunk-HQPWFUP5.js → chunk-Z3LGMBJC.js} +1 -1
  61. package/dist/{colorResolver-BZ_yScf4.d.ts → colorResolver-8A-qj-LP.d.ts} +1 -1
  62. package/dist/{colorResolver-C6DtsoFI.d.mts → colorResolver-BCvxTlLF.d.mts} +1 -1
  63. package/dist/{content-CE-ZdMwG.d.mts → content-3xF4WDE8.d.mts} +51 -7
  64. package/dist/{content-CYXJ2tfQ.d.ts → content-C8fc_tL6.d.ts} +51 -7
  65. package/dist/{contentControlValues-gyVPsi6m.d.ts → contentControlValues-DGDKD589.d.ts} +1 -1
  66. package/dist/{contentControlValues-DAwTWfgR.d.mts → contentControlValues-DjWvoJQ-.d.mts} +1 -1
  67. package/dist/core-plugins.d.mts +6 -5
  68. package/dist/core-plugins.d.ts +6 -5
  69. package/dist/core-plugins.js +1 -1
  70. package/dist/core-plugins.mjs +1 -1
  71. package/dist/core.d.mts +12 -11
  72. package/dist/core.d.ts +12 -11
  73. package/dist/core.js +1 -1
  74. package/dist/core.mjs +1 -1
  75. package/dist/{documentStyles-DToJv9co.d.ts → documentStyles-C7k_8Sye.d.ts} +1 -1
  76. package/dist/{documentStyles-D87dxl18.d.mts → documentStyles-qR0VR2s0.d.mts} +1 -1
  77. package/dist/docx/index.d.mts +3 -2
  78. package/dist/docx/index.d.ts +3 -2
  79. package/dist/docx/index.js +1 -1
  80. package/dist/docx/index.mjs +1 -1
  81. package/dist/docx/parser.d.mts +3 -2
  82. package/dist/docx/parser.d.ts +3 -2
  83. package/dist/docx/parser.js +1 -1
  84. package/dist/docx/parser.mjs +1 -1
  85. package/dist/docx/rezip.d.mts +3 -2
  86. package/dist/docx/rezip.d.ts +3 -2
  87. package/dist/docx/rezip.js +1 -1
  88. package/dist/docx/rezip.mjs +1 -1
  89. package/dist/docx/serializer/index.d.mts +42 -4
  90. package/dist/docx/serializer/index.d.ts +42 -4
  91. package/dist/docx/serializer/index.js +1 -1
  92. package/dist/docx/serializer/index.mjs +1 -1
  93. package/dist/{fontLoader-Z7pqeNvZ.d.mts → fontLoader-CUS1BPv7.d.mts} +1 -1
  94. package/dist/{fontLoader-Cm02v7PO.d.ts → fontLoader-Dl9SEKex.d.ts} +1 -1
  95. package/dist/{footnotes-lCH_P3N3.d.mts → footnotes-BtVc6VFl.d.mts} +14 -1
  96. package/dist/{footnotes-skVvEHvZ.d.ts → footnotes-DcUMWXul.d.ts} +14 -1
  97. package/dist/{headerFooterLayout-Bd58Tum3.d.ts → headerFooterLayout-4E-S4Aay.d.ts} +5 -5
  98. package/dist/{headerFooterLayout-CuIJiIzi.d.mts → headerFooterLayout-DlJLWmpR.d.mts} +5 -5
  99. package/dist/headless.d.mts +47 -11
  100. package/dist/headless.d.ts +47 -11
  101. package/dist/headless.js +1 -1
  102. package/dist/headless.mjs +1 -1
  103. package/dist/layout-bridge/clickToPositionDom.d.mts +26 -1
  104. package/dist/layout-bridge/clickToPositionDom.d.ts +26 -1
  105. package/dist/layout-bridge/clickToPositionDom.js +1 -1
  106. package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
  107. package/dist/layout-bridge/index.d.mts +29 -7
  108. package/dist/layout-bridge/index.d.ts +29 -7
  109. package/dist/layout-bridge/index.js +1 -1
  110. package/dist/layout-bridge/index.mjs +1 -1
  111. package/dist/layout-bridge/measuring/index.d.mts +25 -3
  112. package/dist/layout-bridge/measuring/index.d.ts +25 -3
  113. package/dist/layout-bridge/measuring/index.js +1 -1
  114. package/dist/layout-bridge/measuring/index.mjs +1 -1
  115. package/dist/layout-bridge/tableInsertHover.js +1 -1
  116. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  117. package/dist/layout-bridge/toFlowBlocks.d.mts +3 -2
  118. package/dist/layout-bridge/toFlowBlocks.d.ts +3 -2
  119. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  120. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  121. package/dist/layout-engine/index.d.mts +16 -3
  122. package/dist/layout-engine/index.d.ts +16 -3
  123. package/dist/layout-engine/index.js +1 -1
  124. package/dist/layout-engine/index.mjs +1 -1
  125. package/dist/layout-engine/types.d.mts +22 -1
  126. package/dist/layout-engine/types.d.ts +22 -1
  127. package/dist/layout-painter/index.d.mts +7 -5
  128. package/dist/layout-painter/index.d.ts +7 -5
  129. package/dist/layout-painter/index.js +1 -1
  130. package/dist/layout-painter/index.mjs +1 -1
  131. package/dist/layout-painter/renderPage.d.mts +23 -6
  132. package/dist/layout-painter/renderPage.d.ts +23 -6
  133. package/dist/layout-painter/renderPage.js +1 -1
  134. package/dist/layout-painter/renderPage.mjs +1 -1
  135. package/dist/managers/AutoSaveManager.d.mts +3 -2
  136. package/dist/managers/AutoSaveManager.d.ts +3 -2
  137. package/dist/managers/TableSelectionManager.d.mts +3 -2
  138. package/dist/managers/TableSelectionManager.d.ts +3 -2
  139. package/dist/managers/types.d.mts +3 -2
  140. package/dist/managers/types.d.ts +3 -2
  141. package/dist/mcp-cli.mjs +23 -23
  142. package/dist/mcp.d.mts +4 -3
  143. package/dist/mcp.d.ts +4 -3
  144. package/dist/mcp.js +3 -3
  145. package/dist/mcp.mjs +2 -2
  146. package/dist/{nodes-BNkRKBBX.d.ts → nodes-75Q9GBxV.d.ts} +1 -1
  147. package/dist/{nodes-Bz-UHhLE.d.mts → nodes-cEI7hVY2.d.mts} +1 -1
  148. package/dist/prosemirror/commands/formatting.js +1 -1
  149. package/dist/prosemirror/commands/formatting.mjs +1 -1
  150. package/dist/prosemirror/commands/index.d.mts +20 -1
  151. package/dist/prosemirror/commands/index.d.ts +20 -1
  152. package/dist/prosemirror/commands/index.js +1 -1
  153. package/dist/prosemirror/commands/index.mjs +1 -1
  154. package/dist/prosemirror/commands/paragraph.js +1 -1
  155. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  156. package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -2
  157. package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -2
  158. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  159. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  160. package/dist/prosemirror/conversion/index.d.mts +3 -2
  161. package/dist/prosemirror/conversion/index.d.ts +3 -2
  162. package/dist/prosemirror/conversion/index.js +1 -1
  163. package/dist/prosemirror/conversion/index.mjs +1 -1
  164. package/dist/prosemirror/editor.css +12 -2
  165. package/dist/prosemirror/extensions/index.js +1 -1
  166. package/dist/prosemirror/extensions/index.mjs +1 -1
  167. package/dist/prosemirror/index.d.mts +6 -5
  168. package/dist/prosemirror/index.d.ts +6 -5
  169. package/dist/prosemirror/index.js +2 -2
  170. package/dist/prosemirror/index.mjs +1 -1
  171. package/dist/prosemirror/plugins/index.d.mts +4 -3
  172. package/dist/prosemirror/plugins/index.d.ts +4 -3
  173. package/dist/prosemirror/schema/index.d.mts +3 -2
  174. package/dist/prosemirror/schema/index.d.ts +3 -2
  175. package/dist/prosemirror/schema/index.js +1 -1
  176. package/dist/prosemirror/schema/index.mjs +1 -1
  177. package/dist/prosemirror/styles/index.d.mts +1 -1
  178. package/dist/prosemirror/styles/index.d.ts +1 -1
  179. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -1
  180. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -1
  181. package/dist/{registry-Cpyybgij.d.mts → registry-NLnxX7pq.d.mts} +1 -1
  182. package/dist/{registry-E5pahPKL.d.ts → registry-egK81C_z.d.ts} +1 -1
  183. package/dist/sectionPropertiesSerializer-D86QlzlT.d.mts +59 -0
  184. package/dist/sectionPropertiesSerializer-uXyGONxu.d.ts +59 -0
  185. package/dist/{styles-EI2lxeEN.d.mts → styles-BOJ93SAm.d.mts} +1 -1
  186. package/dist/{styles-BBv7doYK.d.ts → styles-BWqX2AS-.d.ts} +1 -1
  187. package/dist/types/content.d.mts +2 -1
  188. package/dist/types/content.d.ts +2 -1
  189. package/dist/types/content.js +1 -1
  190. package/dist/types/content.mjs +1 -0
  191. package/dist/types/document.d.mts +17 -6
  192. package/dist/types/document.d.ts +17 -6
  193. package/dist/types/document.js +1 -1
  194. package/dist/types/document.mjs +1 -0
  195. package/dist/{types-DXG7vqe9.d.ts → types-DDQWU7-j.d.ts} +1 -1
  196. package/dist/{types-dYdjUZMo.d.mts → types-DTF0N7UE.d.mts} +1 -1
  197. package/dist/utils/comments.d.mts +2 -1
  198. package/dist/utils/comments.d.ts +2 -1
  199. package/dist/utils/index.d.mts +5 -4
  200. package/dist/utils/index.d.ts +5 -4
  201. package/dist/{variableDetector-HPZbJ_gw.d.ts → variableDetector-1mxzPfs2.d.ts} +1 -1
  202. package/dist/{variableDetector-C7BLz9sJ.d.mts → variableDetector-CaY-sDau.d.mts} +1 -1
  203. package/dist/watermark-DAcnAs_J.d.mts +77 -0
  204. package/dist/watermark-DAcnAs_J.d.ts +77 -0
  205. package/package.json +1 -1
  206. package/dist/chunk-2EQGBVPV.js +0 -2
  207. package/dist/chunk-44FHVKSI.js +0 -1
  208. package/dist/chunk-44JKHPGF.mjs +0 -2
  209. package/dist/chunk-5M7TI6TV.js +0 -1
  210. package/dist/chunk-6JKM7TWJ.mjs +0 -1
  211. package/dist/chunk-6Y6LON6Y.mjs +0 -1
  212. package/dist/chunk-7RDCZLTU.js +0 -1
  213. package/dist/chunk-7ZN4WI5N.mjs +0 -4
  214. package/dist/chunk-CCPBNE2F.mjs +0 -2
  215. package/dist/chunk-DV6GWBUJ.js +0 -2
  216. package/dist/chunk-EQAORQC3.mjs +0 -1
  217. package/dist/chunk-FYKRDDKG.js +0 -1
  218. package/dist/chunk-GUQFNJHE.mjs +0 -1
  219. package/dist/chunk-ICE6NC3S.mjs +0 -1
  220. package/dist/chunk-IFUED5ZS.mjs +0 -1
  221. package/dist/chunk-KRN6YSR2.mjs +0 -1
  222. package/dist/chunk-L24C5TEX.mjs +0 -1
  223. package/dist/chunk-L72YAV5N.js +0 -3
  224. package/dist/chunk-LTHT4A4S.js +0 -1
  225. package/dist/chunk-MERJFGEP.mjs +0 -59
  226. package/dist/chunk-MP4QSEO2.mjs +0 -1
  227. package/dist/chunk-PVAVS3IU.js +0 -1
  228. package/dist/chunk-QYF7BRG3.js +0 -2
  229. package/dist/chunk-ROG4MNOR.js +0 -4
  230. package/dist/chunk-SORYYVJ7.js +0 -1
  231. package/dist/chunk-SZIOF5SG.js +0 -59
  232. package/dist/chunk-VMRUBLPI.js +0 -1
  233. package/dist/chunk-WLDI6N3B.mjs +0 -3
  234. package/dist/chunk-WLHNIXWC.mjs +0 -2
  235. package/dist/chunk-XCKTBNKN.js +0 -1
  236. package/dist/chunk-YMZ3F2FZ.mjs +0 -1
  237. package/dist/chunk-ZBFNOJGY.js +0 -1
  238. package/dist/documentSerializer-Bghq9rFI.d.mts +0 -36
  239. package/dist/documentSerializer-C4lFC60P.d.ts +0 -36
@@ -1 +1 @@
1
- 'use strict';var chunkIMKU4O3P_js=require('./chunk-IMKU4O3P.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkROG4MNOR_js=require('./chunk-ROG4MNOR.js'),chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function B(e,a){let i={};for(let t of e)switch(t.type.name){case "bold":i.bold=true;break;case "italic":i.italic=true;break;case "underline":{let n=t.attrs;if(n.style||n.color){let r=n.color?chunkMJ5FQX7Q_js.a(n.color,a):void 0;i.underline={style:n.style,color:r};}else i.underline=true;break}case "strike":i.strike=true;break;case "textColor":{let n=t.attrs;(n.themeColor||n.rgb)&&(i.color=chunkMJ5FQX7Q_js.a({rgb:n.rgb,themeColor:n.themeColor,themeTint:n.themeTint,themeShade:n.themeShade},a));break}case "highlight":i.highlight=chunkMJ5FQX7Q_js.o(t.attrs.color);break;case "fontSize":{let n=t.attrs;i.fontSize=n.size/2;break}case "fontFamily":{let n=t.attrs;i.fontFamily=n.ascii||n.hAnsi;break}case "characterSpacing":{let n=t.attrs;n.spacing!=null&&n.spacing!==0&&(i.letterSpacing=chunkIMKU4O3P_js.a(n.spacing)),n.position!=null&&n.position!==0&&(i.positionPx=chunk4Q2IP5FW_js.j(n.position)),n.scale!=null&&n.scale!==100&&(i.horizontalScale=n.scale),n.kerning!=null&&n.kerning>0&&(i.kerningMinPt=chunk4Q2IP5FW_js.k(n.kerning));break}case "allCaps":i.allCaps=true;break;case "smallCaps":i.smallCaps=true;break;case "emboss":i.emboss=true;break;case "imprint":i.imprint=true;break;case "textShadow":i.textShadow=true;break;case "textOutline":i.textOutline=true;break;case "hidden":i.hidden=true;break;case "rtl":i.rtl=true;break;case "textEffect":{let n=t.attrs.effect;(n==="blinkBackground"||n==="lights"||n==="antsBlack"||n==="antsRed"||n==="shimmer"||n==="sparkle")&&(i.textEffect=n);break}case "emphasisMark":{let n=t.attrs.type;n==="dot"||n==="comma"||n==="circle"||n==="underDot"?i.emphasisMark=n:i.emphasisMark="dot";break}case "superscript":i.superscript=true;break;case "subscript":i.subscript=true;break;case "hyperlink":{let n=t.attrs;i.hyperlink={href:n.href,tooltip:n.tooltip};break}case "footnoteRef":{let n=t.attrs,r=typeof n.id=="string"?parseInt(n.id,10):n.id;n.noteType==="endnote"?i.endnoteRefId=r:i.footnoteRefId=r;break}case "comment":{let n=t.attrs.commentId;n&&(i.commentIds||(i.commentIds=[]),i.commentIds.push(n));break}case "insertion":i.isInsertion=true,i.changeAuthor=t.attrs.author,i.changeDate=t.attrs.date,i.changeRevisionId=t.attrs.revisionId;break;case "deletion":i.isDeletion=true,i.changeAuthor=t.attrs.author,i.changeDate=t.attrs.date,i.changeRevisionId=t.attrs.revisionId;break}return i}function _(e){let a=e.defaultTextFormatting;if(!a)return {};let i={};if(a.fontFamily){let t=a.fontFamily.ascii||a.fontFamily.hAnsi;t&&(i.fontFamily=t);}return a.fontSize!=null&&(i.fontSize=a.fontSize/2),i}function E(e){e.hyperlink&&(e.hyperlink={...e.hyperlink,noDefaultStyle:true},delete e.color,delete e.underline);}function L(e,a,i){let t=[],n=a+1,r=i.theme,s=_(e.attrs),d=e.attrs.styleId,m=typeof d=="string"&&/^TOC\d*$/i.test(d);function g(c,f){if(c.isText&&c.text){let o=B(c.marks,r);m&&E(o);let u={kind:"text",text:c.text,...s,...o,pmStart:f,pmEnd:f+c.nodeSize};t.push(u);}else if(c.type.name==="hardBreak")t.push({kind:"lineBreak",pmStart:f,pmEnd:f+c.nodeSize});else if(c.type.name==="tab"){let o=B(c.marks,r),u={kind:"tab",...s,...o,pmStart:f,pmEnd:f+c.nodeSize};t.push(u);}else if(c.type.name==="image"){let o=c.attrs,u=chunkIMKU4O3P_js.b(o.width||100,o.height||100,i.pageContentHeight),l=B(c.marks,r),b={kind:"image",src:o.src,width:u.width,height:u.height,alt:o.alt,transform:o.transform,wrapType:o.wrapType,displayMode:o.displayMode,cssFloat:o.cssFloat,distTop:o.distTop,distBottom:o.distBottom,distLeft:o.distLeft,distRight:o.distRight,position:o.position,cropTop:o.cropTop,cropRight:o.cropRight,cropBottom:o.cropBottom,cropLeft:o.cropLeft,opacity:o.opacity,isInsertion:l.isInsertion,isDeletion:l.isDeletion,changeAuthor:l.changeAuthor,changeDate:l.changeDate,changeRevisionId:l.changeRevisionId,pmStart:f,pmEnd:f+c.nodeSize};t.push(b);}else if(c.type.name==="field"){let o=c.attrs.fieldType,u=o==="PAGE"?"PAGE":o==="NUMPAGES"?"NUMPAGES":o==="DATE"?"DATE":o==="TIME"?"TIME":"OTHER",l=B(c.marks,r);m&&E(l),t.push({kind:"field",fieldType:u,fallback:c.attrs.displayText||"",...s,...l,pmStart:f,pmEnd:f+c.nodeSize});}else if(c.type.name==="math"){let o=c.attrs.plainText||"[equation]";t.push({kind:"text",text:o,italic:true,fontFamily:"Cambria Math",pmStart:f,pmEnd:f+c.nodeSize});}else if(c.type.name==="sdt"){let o=f+1;c.forEach((u,l)=>{g(u,o+l);});}}return e.forEach((c,f)=>{g(c,n+f);}),t}function U(e){return Math.max(1,Math.round(e/8*1.333))}var G={single:"solid",double:"double",dotted:"dotted",dashed:"dashed",thick:"solid",dashSmallGap:"dashed",dotDash:"dashed",dotDotDash:"dotted",triple:"double",wave:"solid",doubleWave:"double",threeDEmboss:"ridge",threeDEngrave:"groove",outset:"outset",inset:"inset"};function F(e,a){if(!e||!e.style||e.style==="none"||e.style==="nil")return;let i={style:G[e.style]||"solid",width:U(e.size??0),color:e.color?chunkMJ5FQX7Q_js.a(e.color,a):"#000000"};return e.space!==void 0&&(i.space=chunk4Q2IP5FW_js.i(e.space)),i}function D(e,a){let i=e.borders;if(!i)return;let t={},n=["top","bottom","left","right"];for(let r of n){let s=i[r],d=s?F(s,a):void 0;t[r]=d??{width:0,style:"none"};}return Object.keys(t).length>0?t:void 0}function $(e,a){let i=[];for(let t=0;t<=a;t+=1){let n=e[t]??0;if(n<=0)break;i.push(n);}return i.length===0?"1.":`${i.join(".")}.`}var Y=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function N(e,a){if(e<=0)return "";let i=e,t="";for(let[n,r]of Y)for(;i>=n;)t+=r,i-=n;return a?t:t.toLowerCase()}function O(e,a){if(e<=0)return "";let i=e,t="";for(;i>0;){let n=(i-1)%26;t=String.fromCharCode(65+n)+t,i=Math.floor((i-1)/26);}return a?t:t.toLowerCase()}function j(e,a){if(e<=0)return "";switch(a){case "upperRoman":return N(e,true);case "lowerRoman":return N(e,false);case "upperLetter":return O(e,true);case "lowerLetter":return O(e,false);case "decimalZero":return e<10?`0${e}`:String(e);case "none":return "";default:return String(e)}}function H(e,a,i){return e.replace(/%(\d)([.):\]])?/g,(t,n,r="")=>{let s=parseInt(n,10)-1;if(s<0)return "";let d=a[s]??0,m=i?.[s]??"decimal",g=j(d,m);return g?g+r:""})}function X(e,a,i){let t=e.numPr;if(!t)return null;let n=t.numId;if(n==null||n===0)return null;if(e.listIsBullet)return chunkROG4MNOR_js.p(e.listMarker||"");let r=t.ilvl??0,s=e.listAbstractNumId??n,d=a.get(s)??new Array(9).fill(0),m=`${n}:${r}`;i.has(m)||(i.add(m),e.listStartOverride!=null&&(d[r]=e.listStartOverride-1)),d[r]=(d[r]??0)+1;for(let g=r+1;g<d.length;g+=1)d[g]=0;return a.set(s,d),e.listMarker&&e.listMarker.includes("%")?H(e.listMarker,d,e.listLevelNumFmts??void 0):e.listMarker?e.listMarker:$(d,r)}var V="Calibri",q=11;function K(e,a,i,t,n){let r={};if(e.alignment){let o=e.alignment;o==="both"||o==="distribute"?r.alignment="justify":o==="left"?r.alignment="left":o==="center"?r.alignment="center":o==="right"&&(r.alignment="right");}(e.spaceBefore!=null||e.spaceAfter!=null||e.lineSpacing!=null)&&(r.spacing={},e.spaceBefore!=null&&(r.spacing.before=chunkIMKU4O3P_js.a(e.spaceBefore)),e.spaceAfter!=null&&(r.spacing.after=chunkIMKU4O3P_js.a(e.spaceAfter)),e.lineSpacing!=null&&(e.lineSpacingRule==="exact"||e.lineSpacingRule==="atLeast"?(r.spacing.line=chunkIMKU4O3P_js.a(e.lineSpacing),r.spacing.lineUnit="px",r.spacing.lineRule=e.lineSpacingRule):(r.spacing.line=e.lineSpacing/240,r.spacing.lineUnit="multiplier",r.spacing.lineRule="auto"))),e.spacingExplicit&&(r.spacingExplicit=e.spacingExplicit);let s=e.indentLeft,d=e.indentFirstLine,m=e.hangingIndent;if(e.numPr?.numId&&s==null&&(s=((e.numPr.ilvl??0)+1)*720,d==null&&(d=-360,m=true)),(s!=null||e.indentRight!=null||d!=null)&&(r.indent={},s!=null&&(r.indent.left=chunkIMKU4O3P_js.a(s)),e.indentRight!=null&&(r.indent.right=chunkIMKU4O3P_js.a(e.indentRight)),d!=null&&(m?r.indent.hanging=Math.abs(chunkIMKU4O3P_js.a(d)):r.indent.firstLine=chunkIMKU4O3P_js.a(d))),e.styleId&&(r.styleId=e.styleId),e.borders){let o=e.borders;r.borders={};let u=l=>l?F(l,a):void 0;o.top&&(r.borders.top=u(o.top)),o.bottom&&(r.borders.bottom=u(o.bottom)),o.left&&(r.borders.left=u(o.left)),o.right&&(r.borders.right=u(o.right)),o.between&&(r.borders.between=u(o.between)),o.bar&&(r.borders.bar=u(o.bar)),!r.borders.top&&!r.borders.bottom&&!r.borders.left&&!r.borders.right&&!r.borders.between&&!r.borders.bar&&delete r.borders;}let g=chunkMJ5FQX7Q_js.b(e.shading?.fill,a);g&&(r.shading=`#${g}`),e.tabs&&e.tabs.length>0&&(r.tabs=e.tabs.map(o=>({val:Z(o.alignment),pos:o.position,leader:o.leader}))),e.pageBreakBefore&&(r.pageBreakBefore=true),e.keepNext&&(r.keepNext=true),e.keepLines&&(r.keepLines=true),e.contextualSpacing&&(r.contextualSpacing=true),e.bidi&&(r.bidi=true),e.styleId&&(r.styleId=e.styleId),e.numPr&&(r.numPr={numId:e.numPr.numId,ilvl:e.numPr.ilvl});let c=i&&t?X(e,i,t):null;c!=null?r.listMarker=c:e.listMarker&&(r.listMarker=e.listMarker),e.listIsBullet!=null&&(r.listIsBullet=e.listIsBullet),e.listMarkerHidden&&(r.listMarkerHidden=true),e.listMarkerFontFamily&&(r.listMarkerFontFamily=e.listMarkerFontFamily),e.listMarkerFontSize&&(r.listMarkerFontSize=e.listMarkerFontSize),e.listMarkerSuffix&&(r.listMarkerSuffix=e.listMarkerSuffix),n!==void 0&&(r.defaultTabStopTwips=n);let f=e.defaultTextFormatting;if(f&&(f.fontSize!=null&&(r.defaultFontSize=f.fontSize/2),f.fontFamily&&(r.defaultFontFamily=f.fontFamily.ascii||f.fontFamily.hAnsi)),e.pPrIns&&(r.pPrIns=e.pPrIns),e.pPrDel&&(r.pPrDel=e.pPrDel),e.numPr){let o=e.pPrChange,u=Array.isArray(o)&&o.some(l=>!l?.previousFormatting?.numPr);e.pPrDel?r.listMarkerRevision="del":(e.pPrIns||u)&&(r.listMarkerRevision="ins");}return r}function Z(e){switch(e){case "left":return "start";case "right":return "end";case "center":return "center";case "decimal":return "decimal";case "bar":return "bar";case "clear":return "clear";case "num":return "start";default:return "start"}}function w(e,a,i){let t=e.attrs,n=L(e,a,i),r=K(t,i.theme,i.listCounters,i.listSeenNumIds,i.defaultTabStopTwips);return {kind:"paragraph",id:chunkIMKU4O3P_js.c(),runs:n,attrs:r,pmStart:a,pmEnd:a+e.nodeSize}}function J(e,a,i,t){let n=[],r=a+1;e.forEach(l=>{l.type.name==="paragraph"?n.push(w(l,r,i)):l.type.name==="table"&&n.push(W(l,r,i)),r+=l.nodeSize;});let s=e.attrs,d=s.width,m=s.widthType,g=d&&(!m||m==="dxa"||m==="auto")?chunkIMKU4O3P_js.a(d):void 0,c=s.margins,f=(l,b)=>{if(l!=null){let h=chunkIMKU4O3P_js.a(l);if(h>0)return h}if(b!=null){let h=chunkIMKU4O3P_js.a(b);if(h>=0)return h}return 0},o={top:f(c?.top,t?.top),right:f(c?.right,t?.right),bottom:f(c?.bottom,t?.bottom),left:f(c?.left,t?.left)},u=s.cellMarker;return {id:chunkIMKU4O3P_js.c(),blocks:n,colSpan:s.colspan,rowSpan:s.rowspan,width:g,widthValue:d,widthType:m,verticalAlign:s.verticalAlign,background:s.backgroundColor?`#${s.backgroundColor}`:void 0,borders:D(s,i.theme),padding:o,noWrap:s.noWrap||void 0,trackedMarker:u??void 0}}function Q(e,a,i,t){let n=[],r=a+1;e.forEach(d=>{(d.type.name==="tableCell"||d.type.name==="tableHeader")&&n.push(J(d,r,i,t)),r+=d.nodeSize;});let s=e.attrs;return {id:chunkIMKU4O3P_js.c(),cells:n,height:s.height?chunkIMKU4O3P_js.a(s.height):void 0,heightRule:s.heightRule??void 0,isHeader:s.isHeader,trackedIns:s.trIns??void 0,trackedDel:s.trDel??void 0}}function W(e,a,i){let t=[],n=a+1,r=e.attrs.cellMargins;e.forEach(b=>{b.type.name==="tableRow"&&t.push(Q(b,n,i,r)),n+=b.nodeSize;});let d=e.attrs.columnWidths?.map(chunkIMKU4O3P_js.a),m=e.attrs.width,g=e.attrs.widthType;if(!d&&t.length>0){let h=t[0].cells.map(k=>k.width);h.every(k=>k!==void 0&&k>0)&&(d=h);}let c=e.attrs.justification,f=e.attrs._originalFormatting,o=f?.indent?.value&&f.indent.type==="dxa"?chunkIMKU4O3P_js.a(f.indent.value):void 0,u=e.attrs.floating,l=u?{horzAnchor:u.horzAnchor,vertAnchor:u.vertAnchor,tblpX:u.tblpX!==void 0?chunkIMKU4O3P_js.a(u.tblpX):void 0,tblpXSpec:u.tblpXSpec,tblpY:u.tblpY!==void 0?chunkIMKU4O3P_js.a(u.tblpY):void 0,tblpYSpec:u.tblpYSpec,topFromText:u.topFromText!==void 0?chunkIMKU4O3P_js.a(u.topFromText):void 0,bottomFromText:u.bottomFromText!==void 0?chunkIMKU4O3P_js.a(u.bottomFromText):void 0,leftFromText:u.leftFromText!==void 0?chunkIMKU4O3P_js.a(u.leftFromText):void 0,rightFromText:u.rightFromText!==void 0?chunkIMKU4O3P_js.a(u.rightFromText):void 0}:void 0;return {kind:"table",id:chunkIMKU4O3P_js.c(),rows:t,columnWidths:d,width:m,widthType:g,justification:c,indent:o,floating:l,pmStart:a,pmEnd:a+e.nodeSize}}function A(e,a,i){let t=e.attrs,n=t.wrapType,r=n==="behind"||n==="inFront",s=chunkIMKU4O3P_js.b(t.width||100,t.height||100,i);return {kind:"image",id:chunkIMKU4O3P_js.c(),src:t.src,width:s.width,height:s.height,alt:t.alt,transform:t.transform,anchor:r?{isAnchored:true,offsetH:t.distLeft,offsetV:t.distTop,behindDoc:n==="behind"}:void 0,hlinkHref:t.hlinkHref,pmStart:a,pmEnd:a+e.nodeSize}}function ee(e,a,i){let t=e.attrs,n=[];return e.forEach((r,s)=>{if(r.type.name==="paragraph"){let d=w(r,a+1+s,i);n.push(d);}}),{kind:"textBox",id:chunkIMKU4O3P_js.c(),width:t.width??chunkDROCYKAR_js.b,height:t.height??void 0,fillColor:t.fillColor,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor,outlineStyle:t.outlineStyle,margins:{top:t.marginTop??chunkDROCYKAR_js.a.top,bottom:t.marginBottom??chunkDROCYKAR_js.a.bottom,left:t.marginLeft??chunkDROCYKAR_js.a.left,right:t.marginRight??chunkDROCYKAR_js.a.right},content:n,displayMode:t.displayMode,cssFloat:t.cssFloat,wrapType:t.wrapType,wrapText:t.wrapText,anchorTarget:t.anchorTarget,position:t.position,distTop:t.distTop,distBottom:t.distBottom,distLeft:t.distLeft,distRight:t.distRight,pmStart:a,pmEnd:a+e.nodeSize}}function he(e,a={}){let i=e.attrs?.defaultTabStopTwips,t={...a,defaultFont:a.defaultFont??V,defaultSize:a.defaultSize??q,defaultTabStopTwips:a.defaultTabStopTwips??i},n=[],r=0,s={top:1440,bottom:1440,left:1440,right:1440};t.listCounters||(t.listCounters=new Map),t.listSeenNumIds||(t.listSeenNumIds=new Set);let d=(m,g,c)=>{if(m.type.name==="blockSdt"){let o=m.attrs,u={id:`sdt@${g}`,sdtType:typeof o.sdtType=="string"?o.sdtType:"richText",tag:o.tag!=null?String(o.tag):void 0,alias:o.alias!=null?String(o.alias):void 0,lock:o.lock!=null?String(o.lock):void 0,checked:typeof o.checked=="boolean"?o.checked:void 0,bound:o.dataBinding!=null?true:void 0,repeatingItem:/<w15:repeatingSectionItem[\s/>]/.test(String(o.rawPropertiesXml??""))?true:void 0},l=[...c,u];m.forEach((b,h)=>{d(b,g+1+h,l);});return}let f=n.length;switch(m.type.name){case "paragraph":{let o=w(m,g,t),u=m.attrs;n.push(o);let l=u._sectionProperties;if(l||u.sectionBreakType){let b={kind:"sectionBreak",id:chunkIMKU4O3P_js.c(),type:l?.sectionStart??u.sectionBreakType};if(l){if((l.pageWidth!==void 0||l.pageHeight!==void 0)&&(b.pageSize={w:chunkIMKU4O3P_js.a(l.pageWidth??12240),h:chunkIMKU4O3P_js.a(l.pageHeight??15840)}),l.marginTop!==void 0||l.marginBottom!==void 0||l.marginLeft!==void 0||l.marginRight!==void 0){let k={top:l.marginTop??s.top,bottom:l.marginBottom??s.bottom,left:l.marginLeft??s.left,right:l.marginRight??s.right};b.margins={top:chunkIMKU4O3P_js.a(k.top),bottom:chunkIMKU4O3P_js.a(k.bottom),left:chunkIMKU4O3P_js.a(k.left),right:chunkIMKU4O3P_js.a(k.right)},s=k;}let h=l.columnCount??1;if(h>1){let k={count:h,gap:chunkIMKU4O3P_js.a(l.columnSpace??720),equalWidth:l.equalWidth??true,separator:l.separator};b.columns=k;}}n.push(b);}}break;case "table":n.push(W(m,g,t));break;case "image":n.push(A(m,g,t.pageContentHeight));break;case "textBox":n.push(ee(m,g,t));break;case "horizontalRule":case "pageBreak":{let o={kind:"pageBreak",id:chunkIMKU4O3P_js.c(),pmStart:g,pmEnd:g+m.nodeSize};n.push(o);break}}if(c.length>0)for(let o=f;o<n.length;o++)n[o].sdtGroups=c;};return e.forEach((m,g)=>{d(m,r+g,[]);}),n}exports.a=F;exports.b=H;exports.c=he;
1
+ 'use strict';var chunkIMKU4O3P_js=require('./chunk-IMKU4O3P.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkLERLET2D_js=require('./chunk-LERLET2D.js'),chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function B(e,a){let i={};for(let t of e)switch(t.type.name){case "bold":i.bold=true;break;case "italic":i.italic=true;break;case "underline":{let n=t.attrs;if(n.style||n.color){let r=n.color?chunkMJ5FQX7Q_js.a(n.color,a):void 0;i.underline={style:n.style,color:r};}else i.underline=true;break}case "strike":i.strike=true;break;case "textColor":{let n=t.attrs;(n.themeColor||n.rgb)&&(i.color=chunkMJ5FQX7Q_js.a({rgb:n.rgb,themeColor:n.themeColor,themeTint:n.themeTint,themeShade:n.themeShade},a));break}case "highlight":i.highlight=chunkMJ5FQX7Q_js.o(t.attrs.color);break;case "fontSize":{let n=t.attrs;i.fontSize=n.size/2;break}case "fontFamily":{let n=t.attrs;i.fontFamily=n.ascii||n.hAnsi;break}case "characterSpacing":{let n=t.attrs;n.spacing!=null&&n.spacing!==0&&(i.letterSpacing=chunkIMKU4O3P_js.a(n.spacing)),n.position!=null&&n.position!==0&&(i.positionPx=chunk4Q2IP5FW_js.j(n.position)),n.scale!=null&&n.scale!==100&&(i.horizontalScale=n.scale),n.kerning!=null&&n.kerning>0&&(i.kerningMinPt=chunk4Q2IP5FW_js.k(n.kerning));break}case "allCaps":i.allCaps=true;break;case "smallCaps":i.smallCaps=true;break;case "emboss":i.emboss=true;break;case "imprint":i.imprint=true;break;case "textShadow":i.textShadow=true;break;case "textOutline":i.textOutline=true;break;case "hidden":i.hidden=true;break;case "rtl":i.rtl=true;break;case "textEffect":{let n=t.attrs.effect;(n==="blinkBackground"||n==="lights"||n==="antsBlack"||n==="antsRed"||n==="shimmer"||n==="sparkle")&&(i.textEffect=n);break}case "emphasisMark":{let n=t.attrs.type;n==="dot"||n==="comma"||n==="circle"||n==="underDot"?i.emphasisMark=n:i.emphasisMark="dot";break}case "superscript":i.superscript=true;break;case "subscript":i.subscript=true;break;case "hyperlink":{let n=t.attrs;i.hyperlink={href:n.href,tooltip:n.tooltip};break}case "footnoteRef":{let n=t.attrs,r=typeof n.id=="string"?parseInt(n.id,10):n.id;n.noteType==="endnote"?i.endnoteRefId=r:i.footnoteRefId=r;break}case "comment":{let n=t.attrs.commentId;n&&(i.commentIds||(i.commentIds=[]),i.commentIds.push(n));break}case "insertion":i.isInsertion=true,i.changeAuthor=t.attrs.author,i.changeDate=t.attrs.date,i.changeRevisionId=t.attrs.revisionId;break;case "deletion":i.isDeletion=true,i.changeAuthor=t.attrs.author,i.changeDate=t.attrs.date,i.changeRevisionId=t.attrs.revisionId;break}return i}function _(e){let a=e.defaultTextFormatting;if(!a)return {};let i={};if(a.fontFamily){let t=a.fontFamily.ascii||a.fontFamily.hAnsi;t&&(i.fontFamily=t);}return a.fontSize!=null&&(i.fontSize=a.fontSize/2),i}function E(e){e.hyperlink&&(e.hyperlink={...e.hyperlink,noDefaultStyle:true},delete e.color,delete e.underline);}function L(e,a,i){let t=[],n=a+1,r=i.theme,s=_(e.attrs),c=e.attrs.styleId,f=typeof c=="string"&&/^TOC\d*$/i.test(c);function g(d,m){if(d.isText&&d.text){let o=B(d.marks,r);f&&E(o);let u={kind:"text",text:d.text,...s,...o,pmStart:m,pmEnd:m+d.nodeSize};t.push(u);}else if(d.type.name==="hardBreak")t.push({kind:"lineBreak",pmStart:m,pmEnd:m+d.nodeSize});else if(d.type.name==="tab"){let o=B(d.marks,r),u={kind:"tab",...s,...o,pmStart:m,pmEnd:m+d.nodeSize};t.push(u);}else if(d.type.name==="image"){let o=d.attrs,u=chunkIMKU4O3P_js.b(o.width||100,o.height||100,i.pageContentHeight),l=B(d.marks,r),b={kind:"image",src:o.src,width:u.width,height:u.height,alt:o.alt,transform:o.transform,wrapType:o.wrapType,displayMode:o.displayMode,cssFloat:o.cssFloat,distTop:o.distTop,distBottom:o.distBottom,distLeft:o.distLeft,distRight:o.distRight,position:o.position,cropTop:o.cropTop,cropRight:o.cropRight,cropBottom:o.cropBottom,cropLeft:o.cropLeft,opacity:o.opacity,isInsertion:l.isInsertion,isDeletion:l.isDeletion,changeAuthor:l.changeAuthor,changeDate:l.changeDate,changeRevisionId:l.changeRevisionId,pmStart:m,pmEnd:m+d.nodeSize};t.push(b);}else if(d.type.name==="field"){let o=d.attrs.fieldType,u=o==="PAGE"?"PAGE":o==="NUMPAGES"?"NUMPAGES":o==="DATE"?"DATE":o==="TIME"?"TIME":"OTHER",l=B(d.marks,r);f&&E(l),t.push({kind:"field",fieldType:u,fallback:d.attrs.displayText||"",...s,...l,pmStart:m,pmEnd:m+d.nodeSize});}else if(d.type.name==="math"){let o=d.attrs.plainText||"[equation]";t.push({kind:"text",text:o,italic:true,fontFamily:"Cambria Math",pmStart:m,pmEnd:m+d.nodeSize});}else if(d.type.name==="sdt"){let o=m+1;d.forEach((u,l)=>{g(u,o+l);});}}return e.forEach((d,m)=>{g(d,n+m);}),t}function U(e){return Math.max(1,Math.round(e/8*1.333))}var G={single:"solid",double:"double",dotted:"dotted",dashed:"dashed",thick:"solid",dashSmallGap:"dashed",dotDash:"dashed",dotDotDash:"dotted",triple:"double",wave:"solid",doubleWave:"double",threeDEmboss:"ridge",threeDEngrave:"groove",outset:"outset",inset:"inset"};function F(e,a){if(!e||!e.style||e.style==="none"||e.style==="nil")return;let i={style:G[e.style]||"solid",width:U(e.size??0),color:e.color?chunkMJ5FQX7Q_js.a(e.color,a):"#000000"};return e.space!==void 0&&(i.space=chunk4Q2IP5FW_js.i(e.space)),i}function D(e,a){let i=e.borders;if(!i)return;let t={},n=["top","bottom","left","right"];for(let r of n){let s=i[r],c=s?F(s,a):void 0;t[r]=c??{width:0,style:"none"};}return Object.keys(t).length>0?t:void 0}function $(e,a){let i=[];for(let t=0;t<=a;t+=1){let n=e[t]??0;if(n<=0)break;i.push(n);}return i.length===0?"1.":`${i.join(".")}.`}var Y=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function N(e,a){if(e<=0)return "";let i=e,t="";for(let[n,r]of Y)for(;i>=n;)t+=r,i-=n;return a?t:t.toLowerCase()}function O(e,a){if(e<=0)return "";let i=e,t="";for(;i>0;){let n=(i-1)%26;t=String.fromCharCode(65+n)+t,i=Math.floor((i-1)/26);}return a?t:t.toLowerCase()}function j(e,a){if(e<=0)return "";switch(a){case "upperRoman":return N(e,true);case "lowerRoman":return N(e,false);case "upperLetter":return O(e,true);case "lowerLetter":return O(e,false);case "decimalZero":return e<10?`0${e}`:String(e);case "none":return "";default:return String(e)}}function H(e,a,i){return e.replace(/%(\d)([.):\]])?/g,(t,n,r="")=>{let s=parseInt(n,10)-1;if(s<0)return "";let c=a[s]??0,f=i?.[s]??"decimal",g=j(c,f);return g?g+r:""})}function X(e,a,i){let t=e.numPr;if(!t)return null;let n=t.numId;if(n==null||n===0)return null;if(e.listIsBullet)return chunkLERLET2D_js.p(e.listMarker||"");let r=t.ilvl??0,s=e.listAbstractNumId??n,c=a.get(s)??new Array(9).fill(0),f=`${n}:${r}`;i.has(f)||(i.add(f),e.listStartOverride!=null&&(c[r]=e.listStartOverride-1)),c[r]=(c[r]??0)+1;for(let g=r+1;g<c.length;g+=1)c[g]=0;return a.set(s,c),e.listMarker&&e.listMarker.includes("%")?H(e.listMarker,c,e.listLevelNumFmts??void 0):e.listMarker?e.listMarker:$(c,r)}var V="Calibri",q=11;function K(e,a,i,t,n){let r={};if(e.alignment){let o=e.alignment;o==="both"||o==="distribute"?r.alignment="justify":o==="left"?r.alignment="left":o==="center"?r.alignment="center":o==="right"&&(r.alignment="right");}(e.spaceBefore!=null||e.spaceAfter!=null||e.lineSpacing!=null)&&(r.spacing={},e.spaceBefore!=null&&(r.spacing.before=chunkIMKU4O3P_js.a(e.spaceBefore)),e.spaceAfter!=null&&(r.spacing.after=chunkIMKU4O3P_js.a(e.spaceAfter)),e.lineSpacing!=null&&(e.lineSpacingRule==="exact"||e.lineSpacingRule==="atLeast"?(r.spacing.line=chunkIMKU4O3P_js.a(e.lineSpacing),r.spacing.lineUnit="px",r.spacing.lineRule=e.lineSpacingRule):(r.spacing.line=e.lineSpacing/240,r.spacing.lineUnit="multiplier",r.spacing.lineRule="auto"))),e.spacingExplicit&&(r.spacingExplicit=e.spacingExplicit);let s=e.indentLeft,c=e.indentFirstLine,f=e.hangingIndent;if(e.numPr?.numId&&s==null&&(s=((e.numPr.ilvl??0)+1)*720,c==null&&(c=-360,f=true)),(s!=null||e.indentRight!=null||c!=null)&&(r.indent={},s!=null&&(r.indent.left=chunkIMKU4O3P_js.a(s)),e.indentRight!=null&&(r.indent.right=chunkIMKU4O3P_js.a(e.indentRight)),c!=null&&(f?r.indent.hanging=Math.abs(chunkIMKU4O3P_js.a(c)):r.indent.firstLine=chunkIMKU4O3P_js.a(c))),e.styleId&&(r.styleId=e.styleId),e.borders){let o=e.borders;r.borders={};let u=l=>l?F(l,a):void 0;o.top&&(r.borders.top=u(o.top)),o.bottom&&(r.borders.bottom=u(o.bottom)),o.left&&(r.borders.left=u(o.left)),o.right&&(r.borders.right=u(o.right)),o.between&&(r.borders.between=u(o.between)),o.bar&&(r.borders.bar=u(o.bar)),!r.borders.top&&!r.borders.bottom&&!r.borders.left&&!r.borders.right&&!r.borders.between&&!r.borders.bar&&delete r.borders;}let g=chunkMJ5FQX7Q_js.b(e.shading?.fill,a);g&&(r.shading=`#${g}`),e.tabs&&e.tabs.length>0&&(r.tabs=e.tabs.map(o=>({val:Z(o.alignment),pos:o.position,leader:o.leader}))),e.pageBreakBefore&&(r.pageBreakBefore=true),e.keepNext&&(r.keepNext=true),e.keepLines&&(r.keepLines=true),e.contextualSpacing&&(r.contextualSpacing=true),e.bidi&&(r.bidi=true),e.styleId&&(r.styleId=e.styleId),e.numPr&&(r.numPr={numId:e.numPr.numId,ilvl:e.numPr.ilvl});let d=i&&t?X(e,i,t):null;d!=null?r.listMarker=d:e.listMarker&&(r.listMarker=e.listMarker),e.listIsBullet!=null&&(r.listIsBullet=e.listIsBullet),e.listMarkerHidden&&(r.listMarkerHidden=true),e.listMarkerFontFamily&&(r.listMarkerFontFamily=e.listMarkerFontFamily),e.listMarkerFontSize&&(r.listMarkerFontSize=e.listMarkerFontSize),e.listMarkerSuffix&&(r.listMarkerSuffix=e.listMarkerSuffix),n!==void 0&&(r.defaultTabStopTwips=n);let m=e.defaultTextFormatting;if(m&&(m.fontSize!=null&&(r.defaultFontSize=m.fontSize/2),m.fontFamily&&(r.defaultFontFamily=m.fontFamily.ascii||m.fontFamily.hAnsi)),e.pPrIns&&(r.pPrIns=e.pPrIns),e.pPrDel&&(r.pPrDel=e.pPrDel),e.numPr){let o=e.pPrChange,u=Array.isArray(o)&&o.some(l=>!l?.previousFormatting?.numPr);e.pPrDel?r.listMarkerRevision="del":(e.pPrIns||u)&&(r.listMarkerRevision="ins");}return r}function Z(e){switch(e){case "left":return "start";case "right":return "end";case "center":return "center";case "decimal":return "decimal";case "bar":return "bar";case "clear":return "clear";case "num":return "start";default:return "start"}}function w(e,a,i){let t=e.attrs,n=L(e,a,i),r=K(t,i.theme,i.listCounters,i.listSeenNumIds,i.defaultTabStopTwips);return {kind:"paragraph",id:chunkIMKU4O3P_js.c(),runs:n,attrs:r,pmStart:a,pmEnd:a+e.nodeSize}}function J(e,a,i,t){let n=[],r=a+1;e.forEach(l=>{l.type.name==="paragraph"?n.push(w(l,r,i)):l.type.name==="table"&&n.push(W(l,r,i)),r+=l.nodeSize;});let s=e.attrs,c=s.width,f=s.widthType,g=c&&(!f||f==="dxa"||f==="auto")?chunkIMKU4O3P_js.a(c):void 0,d=s.margins,m=(l,b)=>{if(l!=null){let h=chunkIMKU4O3P_js.a(l);if(h>0)return h}if(b!=null){let h=chunkIMKU4O3P_js.a(b);if(h>=0)return h}return 0},o={top:m(d?.top,t?.top),right:m(d?.right,t?.right),bottom:m(d?.bottom,t?.bottom),left:m(d?.left,t?.left)},u=s.cellMarker;return {id:chunkIMKU4O3P_js.c(),blocks:n,colSpan:s.colspan,rowSpan:s.rowspan,width:g,widthValue:c,widthType:f,verticalAlign:s.verticalAlign,background:s.backgroundColor?`#${s.backgroundColor}`:void 0,borders:D(s,i.theme),padding:o,noWrap:s.noWrap||void 0,trackedMarker:u??void 0}}function Q(e,a,i,t){let n=[],r=a+1;e.forEach(f=>{(f.type.name==="tableCell"||f.type.name==="tableHeader")&&n.push(J(f,r,i,t)),r+=f.nodeSize;});let s=e.attrs,c=s._originalFormatting;return {id:chunkIMKU4O3P_js.c(),cells:n,height:s.height?chunkIMKU4O3P_js.a(s.height):void 0,heightRule:s.heightRule??void 0,isHeader:s.isHeader,cantSplit:c?.cantSplit||void 0,trackedIns:s.trIns??void 0,trackedDel:s.trDel??void 0}}function W(e,a,i){let t=[],n=a+1,r=e.attrs.cellMargins;e.forEach(b=>{b.type.name==="tableRow"&&t.push(Q(b,n,i,r)),n+=b.nodeSize;});let c=e.attrs.columnWidths?.map(chunkIMKU4O3P_js.a),f=e.attrs.width,g=e.attrs.widthType;if(!c&&t.length>0){let h=t[0].cells.map(k=>k.width);h.every(k=>k!==void 0&&k>0)&&(c=h);}let d=e.attrs.justification,m=e.attrs._originalFormatting,o=m?.indent?.value&&m.indent.type==="dxa"?chunkIMKU4O3P_js.a(m.indent.value):void 0,u=e.attrs.floating,l=u?{horzAnchor:u.horzAnchor,vertAnchor:u.vertAnchor,tblpX:u.tblpX!==void 0?chunkIMKU4O3P_js.a(u.tblpX):void 0,tblpXSpec:u.tblpXSpec,tblpY:u.tblpY!==void 0?chunkIMKU4O3P_js.a(u.tblpY):void 0,tblpYSpec:u.tblpYSpec,topFromText:u.topFromText!==void 0?chunkIMKU4O3P_js.a(u.topFromText):void 0,bottomFromText:u.bottomFromText!==void 0?chunkIMKU4O3P_js.a(u.bottomFromText):void 0,leftFromText:u.leftFromText!==void 0?chunkIMKU4O3P_js.a(u.leftFromText):void 0,rightFromText:u.rightFromText!==void 0?chunkIMKU4O3P_js.a(u.rightFromText):void 0}:void 0;return {kind:"table",id:chunkIMKU4O3P_js.c(),rows:t,columnWidths:c,width:f,widthType:g,justification:d,indent:o,floating:l,pmStart:a,pmEnd:a+e.nodeSize}}function A(e,a,i){let t=e.attrs,n=t.wrapType,r=n==="behind"||n==="inFront",s=chunkIMKU4O3P_js.b(t.width||100,t.height||100,i);return {kind:"image",id:chunkIMKU4O3P_js.c(),src:t.src,width:s.width,height:s.height,alt:t.alt,transform:t.transform,anchor:r?{isAnchored:true,offsetH:t.distLeft,offsetV:t.distTop,behindDoc:n==="behind"}:void 0,hlinkHref:t.hlinkHref,pmStart:a,pmEnd:a+e.nodeSize}}function ee(e,a,i){let t=e.attrs,n=[];return e.forEach((r,s)=>{if(r.type.name==="paragraph"){let c=w(r,a+1+s,i);n.push(c);}}),{kind:"textBox",id:chunkIMKU4O3P_js.c(),width:t.width??chunkDROCYKAR_js.b,height:t.height??void 0,fillColor:t.fillColor,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor,outlineStyle:t.outlineStyle,margins:{top:t.marginTop??chunkDROCYKAR_js.a.top,bottom:t.marginBottom??chunkDROCYKAR_js.a.bottom,left:t.marginLeft??chunkDROCYKAR_js.a.left,right:t.marginRight??chunkDROCYKAR_js.a.right},content:n,displayMode:t.displayMode,cssFloat:t.cssFloat,wrapType:t.wrapType,wrapText:t.wrapText,anchorTarget:t.anchorTarget,position:t.position,distTop:t.distTop,distBottom:t.distBottom,distLeft:t.distLeft,distRight:t.distRight,pmStart:a,pmEnd:a+e.nodeSize}}function he(e,a={}){let i=e.attrs?.defaultTabStopTwips,t={...a,defaultFont:a.defaultFont??V,defaultSize:a.defaultSize??q,defaultTabStopTwips:a.defaultTabStopTwips??i},n=[],r=0,s={top:1440,bottom:1440,left:1440,right:1440};t.listCounters||(t.listCounters=new Map),t.listSeenNumIds||(t.listSeenNumIds=new Set);let c=(f,g,d)=>{if(f.type.name==="blockSdt"){let o=f.attrs,u={id:`sdt@${g}`,sdtType:typeof o.sdtType=="string"?o.sdtType:"richText",tag:o.tag!=null?String(o.tag):void 0,alias:o.alias!=null?String(o.alias):void 0,lock:o.lock!=null?String(o.lock):void 0,checked:typeof o.checked=="boolean"?o.checked:void 0,bound:o.dataBinding!=null?true:void 0,repeatingItem:/<w15:repeatingSectionItem[\s/>]/.test(String(o.rawPropertiesXml??""))?true:void 0},l=[...d,u];f.forEach((b,h)=>{c(b,g+1+h,l);});return}let m=n.length;switch(f.type.name){case "paragraph":{let o=w(f,g,t),u=f.attrs;n.push(o);let l=u._sectionProperties;if(l||u.sectionBreakType){let b={kind:"sectionBreak",id:chunkIMKU4O3P_js.c(),type:l?.sectionStart??u.sectionBreakType};if(l){if((l.pageWidth!==void 0||l.pageHeight!==void 0)&&(b.pageSize={w:chunkIMKU4O3P_js.a(l.pageWidth??12240),h:chunkIMKU4O3P_js.a(l.pageHeight??15840)}),l.marginTop!==void 0||l.marginBottom!==void 0||l.marginLeft!==void 0||l.marginRight!==void 0){let k={top:l.marginTop??s.top,bottom:l.marginBottom??s.bottom,left:l.marginLeft??s.left,right:l.marginRight??s.right};b.margins={top:chunkIMKU4O3P_js.a(k.top),bottom:chunkIMKU4O3P_js.a(k.bottom),left:chunkIMKU4O3P_js.a(k.left),right:chunkIMKU4O3P_js.a(k.right)},s=k;}let h=l.columnCount??1;if(h>1){let k={count:h,gap:chunkIMKU4O3P_js.a(l.columnSpace??720),equalWidth:l.equalWidth??true,separator:l.separator};b.columns=k;}}n.push(b);}}break;case "table":n.push(W(f,g,t));break;case "image":n.push(A(f,g,t.pageContentHeight));break;case "textBox":n.push(ee(f,g,t));break;case "horizontalRule":case "pageBreak":{let o={kind:"pageBreak",id:chunkIMKU4O3P_js.c(),pmStart:g,pmEnd:g+f.nodeSize};n.push(o);break}}if(d.length>0)for(let o=m;o<n.length;o++)n[o].sdtGroups=d;};return e.forEach((f,g)=>{c(f,r+g,[]);}),n}exports.a=F;exports.b=H;exports.c=he;
@@ -0,0 +1,2 @@
1
+ import {g,a as a$1,c,d,e,f,b,q as q$1,n as n$1}from'./chunk-CHN26LLL.mjs';import {h,j as j$1,l,m,n}from'./chunk-WWNOXNEX.mjs';import {a}from'./chunk-W77JXDEV.mjs';function Z(e,s){let r=G(s),t=new RegExp(`<w:p[\\s][^>]*w14:paraId="${r}"`,"g"),o=[],i;for(;(i=t.exec(e))!==null;)o.push(i.index);if(o.length===0||o.length>1)return null;let l=o[0],n=l,a=0;for(;n<e.length;){let m=e.indexOf("<",n);if(m===-1)break;if(e.startsWith("<w:p",m)){let y=e[m+4];if(y===">"||y===" "||y==="/"){let f=e.indexOf(">",m);if(f===-1)break;if(e[f-1]==="/"){if(a===0)return {start:l,end:f+1};n=f+1;}else a++,n=f+1;}else n=m+1;}else if(e.startsWith("</w:p>",m)){if(a--,a===0)return {start:l,end:m+6};n=m+6;}else n=m+1;}return null}function j(e,s){let r=Z(e,s);return r?e.substring(r.start,r.end):null}function H(e){let s=0,r=/<w:p[\s>]/g,t;for(;(t=r.exec(e))!==null;){let o=t.index,i=e[o+4];(i===">"||i===" ")&&s++;}return s}function W(e){let s=new Map,r=/w14:paraId="([^"]+)"/g,t;for(;(t=r.exec(e))!==null;){let o=t[1];s.set(o,(s.get(o)||0)+1);}return s}function q(e,s,r){if(r.size===0)return {safe:true};let t=W(e),o=W(s);for(let n of r){let a=t.get(n)||0;if(a===0)return {safe:false,reason:`paraId-not-found-in-original: ${n}`};if(a>1)return {safe:false,reason:`duplicate-paraId-in-original: ${n}`}}for(let n of r){let a=o.get(n)||0;if(a===0)return {safe:false,reason:`paraId-not-found-in-serialized: ${n}`};if(a>1)return {safe:false,reason:`duplicate-paraId-in-serialized: ${n}`}}let i=H(e),l=H(s);return i!==l?{safe:false,reason:`paragraph-count-mismatch: original=${i}, serialized=${l}`}:{safe:true}}function J(e,s,r){if(r.size===0)return e;if(!q(e,s,r).safe)return null;let o=[];for(let l of r){let n=Z(e,l);if(!n)return null;let a=j(s,l);if(!a)return null;o.push({start:n.start,end:n.end,newXml:a});}o.sort((l,n)=>n.start-l.start);let i=e;for(let{start:l,end:n,newXml:a}of o)i=i.substring(0,l)+a+i.substring(n);return i}function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function L(e){let s=r=>r.content.some(t=>t.type==="drawing"&&t.image?.src?.startsWith("data:")&&!t.image?.rId);for(let r of e)if(r.type==="paragraph")for(let t of r.content)if(t.type==="run"){if(s(t))return true}else {if(t.type==="hyperlink"&&t.href&&!t.rId&&!t.anchor)return true;if(t.type==="insertion"||t.type==="deletion"||t.type==="moveFrom"||t.type==="moveTo"){for(let o of t.content)if(o.type==="run"&&s(o))return true}}else if(r.type==="table"){for(let t of r.rows)for(let o of t.cells)if(L(o.content))return true}return false}async function oe(e$1,s,r){let{changedParaIds:t,structuralChange:o,hasUntrackedChanges:i}=r;if(o||i||!s)return null;let l$1=e$1.package.document.content;if(L(l$1))return null;let n$2=e$1.package.document.comments,a$2=n$2&&n$2.length>0,m$1=g(e$1);try{let f$1=await(await import('jszip')).default.loadAsync(s),u=new Map,I=e$1.package.relationships;if(I)for(let c of I.values()){if(!c.target||c.type!==a.header&&c.type!==a.footer)continue;let d=a$1(c.target).replace(/^\//,"");if(!f$1.file(d))return null}if(t.size>0){let c=f$1.file("word/document.xml");if(!c)return null;let d=await c.async("text"),w=h(e$1),x=J(d,w,t);if(!x)return null;u.set("word/document.xml",x);}if(a$2){let{xml:c$1,paraInfos:d$1}=j$1(n$2);u.set("word/comments.xml",c$1);let w=l(d$1);w&&u.set("word/commentsExtended.xml",w);let x=m(d$1);x&&u.set("word/commentsIds.xml",x);let S=n(d$1,n$2);S&&u.set("word/commentsExtensible.xml",S);let N=f$1.file("[Content_Types].xml");if(N){let p=u.get("[Content_Types].xml")??await N.async("text"),h=!1,C=[["/word/comments.xml",c],["/word/commentsExtended.xml",d],["/word/commentsIds.xml",e],["/word/commentsExtensible.xml",f]];for(let[E,b]of C)p.includes(E)||(p=p.replace("</Types>",`<Override PartName="${E}" ContentType="${b}"/></Types>`),h=!0);h&&u.set("[Content_Types].xml",p);}let T="word/_rels/document.xml.rels",O=f$1.file(T);if(O){let p=u.get(T)??await O.async("text"),h=!1,C=[["comments.xml",a.comments],["commentsExtended.xml",a.commentsExtended],["commentsIds.xml",a.commentsIds],["commentsExtensible.xml",a.commentsExtensible]];for(let[E,b$1]of C)if(!p.includes(E)){let V=b(p);p=p.replace("</Relationships>",`<Relationship Id="rId${V+1}" Type="${b$1}" Target="${E}"/></Relationships>`),h=!0;}h&&u.set(T,p);}}for(let[c,d]of m$1)u.set(c,d);let P=f$1.file("docProps/core.xml");if(P){let c=await P.async("text");u.set("docProps/core.xml",q$1(c,{updateModifiedDate:!0}));}return await n$1(f$1,u)}catch{return null}}
2
+ export{q as a,J as b,oe as c};
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-W77JXDEV.mjs';function C(t){let o=t?.package.headers;if(o){for(let n of o.values())if(n.watermark)return n.watermark}}function R(t){let o=t.package.headers;if(!o||o.size===0)return t;let n=false,s=new Map;for(let[a,i]of o)if(i.watermark){let{watermark:d,...u}=i;s.set(a,u),n=true;}else s.set(a,i);return n?{...t,package:{...t.package,headers:s}}:t}function y(t,o){let n=t.package.headers;if(!n||n.size===0)return t;let s=new Map;for(let[a,i]of n)s.set(a,{...i,watermark:{...o}});return {...t,package:{...t.package,headers:s}}}function $(t){let o=t.package.document,n=[];if(o.sections)for(let s of o.sections)s.properties&&n.push(s.properties);return o.finalSectionProperties&&n.push(o.finalSectionProperties),n}function M(t,o){let n=t.package,s=n.document,a$1=n.headers,i=$(t),d=new Set;if(a$1)for(let e of a$1.values())d.add(e.hdrFtrType);let u=!a$1||a$1.size===0,F=i.some(e=>e.titlePg),D=i.some(e=>e.evenAndOddHeaders),h=u,g=F&&!d.has("first"),k=D&&!d.has("even");if(!h&&!g&&!k)return t;let f=n.relationships?new Map(n.relationships):new Map,H=new Map(a$1??[]),p=new Set;for(let e of f.values())e.target&&p.add(e.target.replace(/^\/?word\//,"").toLowerCase());function T(){let e=1;for(;p.has(`header${e}.xml`);)e++;let r=`header${e}.xml`;return p.add(r.toLowerCase()),r}function v(e){let r=`rIdWmHdr${e[0].toUpperCase()}${e.slice(1)}`,c=1;for(;f.has(r);)r=`rIdWmHdr${e[0].toUpperCase()}${e.slice(1)}${c++}`;return f.set(r,{id:r,type:a.header,target:T()}),H.set(r,{type:"header",hdrFtrType:e,content:[],watermark:{...o}}),r}let l={};function x(e){return l[e]??(l[e]=v(e))}function m(e,r){let c=e?.headerReferences?[...e.headerReferences]:[];return c.some(I=>I.type===r)?e??{}:(c.push({type:r,rId:x(r)}),{...e??{},headerReferences:c})}function P(e){let r=e;return h&&(r=m(r,"default")),g&&r?.titlePg&&(r=m(r,"first")),k&&r?.evenAndOddHeaders&&(r=m(r,"even")),r}let W=P(s.finalSectionProperties),w=s.sections?.map(e=>({...e,properties:P(e.properties)??e.properties}));return {...t,package:{...n,relationships:f,headers:H,document:{...s,finalSectionProperties:W,...w?{sections:w}:{}}}}}function O(t,o){if(!o)return R(t);let n=y(t,o);return M(n,o)}
2
+ export{C as a,O as b};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkC45EFOVP_js=require('./chunk-C45EFOVP.js'),chunkRQVHKDXK_js=require('./chunk-RQVHKDXK.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function H(t){return t.attrs.href||""}function O(t){let e=t.filter(n=>n.type.name!=="hyperlink");return e.length===0?"":e.map(n=>`${n.type.name}:${JSON.stringify(n.attrs)}`).sort().join("|")}function k(t){let e={};for(let n of t)switch(n.type.name){case "bold":e.bold=true,e.boldCs=true;break;case "italic":e.italic=true,e.italicCs=true;break;case "underline":{let o=n.attrs;e.underline={style:o.style||"single",color:o.color};break}case "strike":n.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":{let o=n.attrs;e.color={rgb:o.rgb,themeColor:o.themeColor,themeTint:o.themeTint,themeShade:o.themeShade};break}case "highlight":e.highlight=n.attrs.color;break;case "fontSize":e.fontSize=n.attrs.size,e.fontSizeCs=n.attrs.size;break;case "fontFamily":{let o=n.attrs;e.fontFamily={ascii:o.ascii,hAnsi:o.hAnsi,eastAsia:o.eastAsia||void 0,cs:o.cs||o.ascii||void 0,asciiTheme:o.asciiTheme,hAnsiTheme:o.hAnsiTheme||void 0,eastAsiaTheme:o.eastAsiaTheme||void 0,csTheme:o.csTheme||void 0};break}case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break;case "allCaps":e.allCaps=true;break;case "smallCaps":e.smallCaps=true;break;case "characterSpacing":{n.attrs.spacing!=null&&(e.spacing=n.attrs.spacing),n.attrs.position!=null&&(e.position=n.attrs.position),n.attrs.scale!=null&&(e.scale=n.attrs.scale),n.attrs.kerning!=null&&(e.kerning=n.attrs.kerning);break}case "emboss":e.emboss=true;break;case "imprint":e.imprint=true;break;case "textShadow":e.shadow=true;break;case "emphasisMark":e.emphasisMark=n.attrs.type||"dot";break;case "textOutline":e.outline=true;break;case "hidden":e.hidden=true;break;case "rtl":e.rtl=true;break;case "textEffect":e.effect=n.attrs.effect||"blinkBackground";break}return e}function W(t){let e=t.attrs.href;return e?.startsWith("#")?{type:"hyperlink",anchor:e.substring(1),tooltip:t.attrs.tooltip||void 0,children:[]}:{type:"hyperlink",href:e,tooltip:t.attrs.tooltip||void 0,rId:t.attrs.rId||void 0,children:[]}}function P(t,e){let n=e.marks.filter(o=>o.type.name!=="hyperlink");e.isText&&e.text?t.children.push(w(e.text,n)):e.type.name==="tab"?t.children.push(v()):e.type.name==="hardBreak"&&t.children.push(M());}function w(t,e){let n=k(e),o={type:"text",text:t};return {type:"run",formatting:Object.keys(n).length>0?n:void 0,content:[o]}}function j(t,e){let n=t.content[t.content.length-1];n&&n.type==="text"?n.text+=e:t.content.push({type:"text",text:e});}function M(){return {type:"run",content:[{type:"break",breakType:"textWrapping"}]}}function v(){return {type:"run",content:[{type:"tab"}]}}function z(t,e){let n=t.attrs,o=e&&e.length>0?k(e):void 0,i=n.displayText||"";if(!i)switch(n.fieldType){case "PAGE":i="1";break;case "NUMPAGES":i="1";break;default:i=" ";break}let r={type:"run",content:[{type:"text",text:i}],...o&&Object.keys(o).length>0?{formatting:o}:{}};return n.fieldKind==="complex"?{type:"complexField",instruction:n.instruction,fieldType:n.fieldType,fieldCode:[],fieldResult:[r],fldLock:n.fldLock||void 0,dirty:n.dirty||void 0}:{type:"simpleField",instruction:n.instruction,fieldType:n.fieldType,content:[r],fldLock:n.fldLock||void 0,dirty:n.dirty||void 0}}function _(t){let e=t.attrs;return {type:"mathEquation",display:e.display||"inline",ommlXml:e.ommlXml,plainText:e.plainText||void 0}}function R(t){let e=t.attrs,o={type:e.wrapType||"inline"};e.distTop!==void 0&&(o.distT=chunk4Q2IP5FW_js.f(e.distTop)),e.distBottom!==void 0&&(o.distB=chunk4Q2IP5FW_js.f(e.distBottom)),e.distLeft!==void 0&&(o.distL=chunk4Q2IP5FW_js.f(e.distLeft)),e.distRight!==void 0&&(o.distR=chunk4Q2IP5FW_js.f(e.distRight)),e.wrapText&&(o.wrapText=e.wrapText);let i={type:"image",rId:e.rId||"",src:e.src,alt:e.alt||void 0,title:e.title||void 0,size:{width:chunk4Q2IP5FW_js.f(e.width||0),height:chunk4Q2IP5FW_js.f(e.height||0)},wrap:o};if(e.transform){let a=e.transform,l={},u=a.match(/rotate\(([-\d.]+)deg\)/);u&&(l.rotation=parseFloat(u[1])),a.includes("scaleX(-1)")&&(l.flipH=true),a.includes("scaleY(-1)")&&(l.flipV=true),(l.rotation||l.flipH||l.flipV)&&(i.transform=l);}if(e.position?.horizontal&&e.position?.vertical){let a=e.position;i.position={horizontal:{relativeTo:a.horizontal.relativeTo||"column",alignment:a.horizontal.align,posOffset:a.horizontal.posOffset},vertical:{relativeTo:a.vertical.relativeTo||"paragraph",alignment:a.vertical.align,posOffset:a.vertical.posOffset}};}if(e.borderWidth&&e.borderWidth>0){let a={solid:"solid",dotted:"dot",dashed:"dash",double:"solid",groove:"solid",ridge:"solid",inset:"solid",outset:"solid"};i.outline={width:chunk4Q2IP5FW_js.f(e.borderWidth),color:e.borderColor?{rgb:e.borderColor.replace("#","")}:void 0,style:e.borderStyle&&a[e.borderStyle]||"solid"};}if(e.hlinkHref&&(i.hlinkHref=e.hlinkHref),e.cropTop!==void 0||e.cropRight!==void 0||e.cropBottom!==void 0||e.cropLeft!==void 0){let a={};e.cropTop!==void 0&&e.cropTop!==null&&(a.top=e.cropTop),e.cropRight!==void 0&&e.cropRight!==null&&(a.right=e.cropRight),e.cropBottom!==void 0&&e.cropBottom!==null&&(a.bottom=e.cropBottom),e.cropLeft!==void 0&&e.cropLeft!==null&&(a.left=e.cropLeft),Object.keys(a).length>0&&(i.crop=a);}if(e.opacity!==void 0&&e.opacity!==null&&e.opacity<1&&(i.opacity=e.opacity),e.layoutInCell!==void 0&&e.layoutInCell!==null&&(i.layoutInCell=e.layoutInCell),e.allowOverlap!==void 0&&e.allowOverlap!==null&&(i.allowOverlap=e.allowOverlap),e.effectExtentTop||e.effectExtentBottom||e.effectExtentLeft||e.effectExtentRight){let a={};e.effectExtentTop&&(a.top=chunk4Q2IP5FW_js.f(e.effectExtentTop)),e.effectExtentBottom&&(a.bottom=chunk4Q2IP5FW_js.f(e.effectExtentBottom)),e.effectExtentLeft&&(a.left=chunk4Q2IP5FW_js.f(e.effectExtentLeft)),e.effectExtentRight&&(a.right=chunk4Q2IP5FW_js.f(e.effectExtentRight)),Object.keys(a).length>0&&(i.padding=a);}return {type:"run",content:[{type:"drawing",image:i}]}}function S(t){let e=t.attrs,n={type:"shape",shapeType:e.shapeType||"rect",id:e.shapeId||void 0,size:{width:e.width?chunk4Q2IP5FW_js.f(e.width):0,height:e.height?chunk4Q2IP5FW_js.f(e.height):0}};if(e.fillType==="gradient"&&e.gradientStops)try{let i=JSON.parse(e.gradientStops);n.fill={type:"gradient",gradient:{type:e.gradientType||"linear",angle:e.gradientAngle||void 0,stops:i.map(r=>({position:r.position,color:{rgb:r.color.replace("#","")}}))}};}catch{n.fill={type:"solid",color:{rgb:(e.fillColor||"000000").replace("#","")}};}else e.fillColor?n.fill={type:e.fillType||"solid",color:{rgb:e.fillColor.replace("#","")}}:e.fillType==="none"&&(n.fill={type:"none"});if(e.outlineWidth&&e.outlineWidth>0){let i={solid:"solid",dotted:"dot",dashed:"dash"};n.outline={width:chunk4Q2IP5FW_js.f(e.outlineWidth),color:e.outlineColor?{rgb:e.outlineColor.replace("#","")}:void 0,style:e.outlineStyle&&i[e.outlineStyle]||"solid"};}return {type:"run",content:[{type:"shape",shape:n}]}}function T(t){let e=t.attrs,n=V($(t),t),o=e.bookmarks;if(o&&o.length>0){let r=o.map(l=>({type:"bookmarkStart",id:l.id,name:l.name})),a=o.map(l=>({type:"bookmarkEnd",id:l.id}));n=[...r,...n,...a];}let i={type:"paragraph",paraId:e.paraId||void 0,textId:e.textId||void 0,formatting:q(e),content:n};return e.renderedPageBreakBefore&&(i.renderedPageBreakBefore=true),e.pPrIns&&(i.pPrIns={id:e.pPrIns.revisionId,author:e.pPrIns.author,...e.pPrIns.date?{date:e.pPrIns.date}:{}}),e.pPrDel&&(i.pPrDel={id:e.pPrDel.revisionId,author:e.pPrDel.author,...e.pPrDel.date?{date:e.pPrDel.date}:{}}),e.pPrChange&&e.pPrChange.length>0&&(i.propertyChanges=e.pPrChange),e._sectionProperties?i.sectionProperties=e._sectionProperties:e.sectionBreakType&&(i.sectionProperties={sectionStart:e.sectionBreakType}),i}function V(t,e){let n=new Set;if(e.forEach(a=>{for(let l of a.marks)l.type.name==="comment"&&n.add(l.attrs.commentId);}),n.size===0)return t;let o=[],i=new Set,r=0;e.forEach(a=>{let l=new Set;for(let u of a.marks)u.type.name==="comment"&&l.add(u.attrs.commentId);for(let u of [...i])l.has(u)||(o.push({type:"commentRangeEnd",id:u}),i.delete(u));for(let u of l)i.has(u)||(o.push({type:"commentRangeStart",id:u}),i.add(u));r<t.length&&o.push(t[r]),r++;});for(let a of i)o.push({type:"commentRangeEnd",id:a});return o}function q(t){if(t._originalFormatting){let n=t._originalFormatting,o={...n};return t.alignment!==(n.alignment||void 0)&&(o.alignment=t.alignment||void 0),t.numPr!==n.numPr&&JSON.stringify(t.numPr)!==JSON.stringify(n.numPr)&&(o.numPr=t.numPr||void 0),t.styleId!==(n.styleId||void 0)&&(o.styleId=t.styleId||void 0),t.pageBreakBefore!==(n.pageBreakBefore||void 0)&&(o.pageBreakBefore=t.pageBreakBefore||void 0),t.bidi!==(n.bidi||void 0)&&(o.bidi=t.bidi||void 0),o}if(t.alignment||t.spaceBefore||t.spaceAfter||t.lineSpacing||t.indentLeft||t.indentRight||t.indentFirstLine||t.numPr||t.styleId||t.borders||t.shading||t.tabs||t.outlineLevel!=null||t.contextualSpacing||t.bidi)return {alignment:t.alignment||void 0,spaceBefore:t.spaceBefore||void 0,spaceAfter:t.spaceAfter||void 0,lineSpacing:t.lineSpacing||void 0,lineSpacingRule:t.lineSpacingRule||void 0,indentLeft:t.indentLeft||void 0,indentRight:t.indentRight||void 0,indentFirstLine:t.indentFirstLine||void 0,hangingIndent:t.hangingIndent||void 0,numPr:t.numPr||void 0,styleId:t.styleId||void 0,borders:t.borders||void 0,shading:t.shading||void 0,tabs:t.tabs||void 0,outlineLevel:t.outlineLevel??void 0,contextualSpacing:t.contextualSpacing||void 0,bidi:t.bidi||void 0}}function $(t){let e=[],n=null,o=null,i=null;return t.forEach(r=>{let a=r.marks.find(s=>s.type.name==="footnoteRef");if(a){n&&(e.push(n),n=null,o=null),i&&(e.push(i),i=null);let f={type:a.attrs.noteType==="endnote"?"endnoteRef":"footnoteRef",id:parseInt(a.attrs.id,10)||0};e.push({type:"run",content:[f]});return}let l=r.marks.find(s=>s.type.name==="insertion"),u=r.marks.find(s=>s.type.name==="deletion");if(l||u){n&&(e.push(n),n=null,o=null),i&&(e.push(i),i=null);let s=l||u,f;if(r.type.name==="image")f=R(r);else if(r.type.name==="shape")f=S(r);else {let h=r.marks.filter(g=>g.type.name!=="insertion"&&g.type.name!=="deletion"),m=k(h);f={type:"run",content:r.isText&&r.text?[{type:"text",text:r.text}]:[],...Object.keys(m).length>0?{formatting:m}:{}};}let p={id:s.attrs.revisionId,author:s.attrs.author||"Unknown",date:s.attrs.date||void 0},y=s.attrs.isMovePair===true;l?y?e.push({type:"moveTo",info:p,content:[f]}):e.push({type:"insertion",info:p,content:[f]}):y?e.push({type:"moveFrom",info:p,content:[f]}):e.push({type:"deletion",info:p,content:[f]});return}let d=r.marks.find(s=>s.type.name==="hyperlink");if(d){let s=H(d),f=i?.href||(i?.anchor?`#${i.anchor}`:"");i&&f===s?P(i,r):(n&&(e.push(n),n=null,o=null),i&&e.push(i),i=W(d),P(i,r));return}if(i&&(e.push(i),i=null),r.isText){let s=O(r.marks);n&&o===s?j(n,r.text||""):(n&&e.push(n),n=w(r.text||"",r.marks),o=s);}else r.type.name==="hardBreak"?(n&&(e.push(n),n=null,o=null),e.push(M())):r.type.name==="image"?(n&&(e.push(n),n=null,o=null),e.push(R(r))):r.type.name==="shape"?(n&&(e.push(n),n=null,o=null),e.push(S(r))):r.type.name==="tab"?(n&&(e.push(n),n=null,o=null),e.push(v())):r.type.name==="field"?(n&&(e.push(n),n=null,o=null),e.push(z(r,r.marks))):r.type.name==="sdt"?(n&&(e.push(n),n=null,o=null),e.push(J(r))):r.type.name==="math"&&(n&&(e.push(n),n=null,o=null),e.push(_(r)));}),n&&e.push(n),i&&e.push(i),e}function J(t){let e=chunkC45EFOVP_js.b(t.attrs),o=$(t).filter(i=>i.type==="run"||i.type==="hyperlink"||i.type==="simpleField"||i.type==="complexField"||i.type==="inlineSdt"||i.type==="mathEquation");return {type:"inlineSdt",properties:e,content:o}}function U(t){for(let e of t)for(let n of e.cells){let o=n.formatting?.borders;if(o){let i=o.top||o.left||o.right||o.bottom||o.insideH||o.insideV;return i?{top:o.top??i,bottom:o.bottom??i,left:o.left??i,right:o.right??i,insideH:o.insideH??o.bottom??i,insideV:o.insideV??o.right??i}:void 0}}}function X(t){let e=[],n=[],o=0;for(let i=0;i<t.childCount;i++){let r=t.child(i),a=0;r.forEach(l=>{if(l.type.name!=="tableCell"&&l.type.name!=="tableHeader")return;for(;e[i]?.[a];)a++;let u=l.attrs.rowspan||1,d=l.attrs.colspan||1;n.push({row:i,col:a,rowspan:u,colspan:d,cell:Q(l)});for(let s=i;s<i+u;s++){let f=e[s]??[];e[s]=f;for(let p=a;p<a+d;p++)f[p]=true;}a+=d,o=Math.max(o,a);});}return {anchors:n,totalCols:o}}function I(t){let e=t.attrs,{anchors:n,totalCols:o}=X(t),i=new Map,r=new Map;for(let d of n){i.set(`${d.row}-${d.col}`,d);for(let s=d.row;s<d.row+d.rowspan;s++)for(let f=d.col;f<d.col+d.colspan;f++)r.set(`${s}-${f}`,d);}let a=[];for(let d=0;d<t.childCount;d++){let s=t.child(d),f=[];for(let h=0;h<o;){let m=i.get(`${d}-${h}`);if(m){let b={...m.cell.formatting??{}};m.colspan>1?b.gridSpan=m.colspan:delete b.gridSpan,m.rowspan>1?b.vMerge="restart":delete b.vMerge,f.push({...m.cell,formatting:Object.keys(b).length?b:void 0}),h+=m.colspan;continue}let g=r.get(`${d}-${h}`);if(!g){h++;continue}let x={...g.cell.formatting??{}};g.colspan>1?x.gridSpan=g.colspan:delete x.gridSpan,x.vMerge="continue",f.push({...g.cell,content:[],formatting:x}),h+=g.colspan;}let p=s.attrs,y={type:"tableRow",formatting:Y(p),cells:f};p.trIns?y.structuralChange={type:"tableRowInsertion",info:{id:p.trIns.revisionId,author:p.trIns.author,...p.trIns.date?{date:p.trIns.date}:{}}}:p.trDel&&(y.structuralChange={type:"tableRowDeletion",info:{id:p.trDel.revisionId,author:p.trDel.author,...p.trDel.date?{date:p.trDel.date}:{}}}),p.trPrChange&&p.trPrChange.length>0&&(y.propertyChanges=p.trPrChange),a.push(y);}let l=G(e)||void 0;if(!l?.borders){let d=U(a);if(d)if(l)l.borders=d;else return {type:"table",columnWidths:e.columnWidths||void 0,formatting:{borders:d},rows:a}}let u={type:"table",columnWidths:e.columnWidths||void 0,formatting:l,rows:a};return e.tblPrChange&&e.tblPrChange.length>0&&(u.propertyChanges=e.tblPrChange),u}function G(t){if(t._originalFormatting){let i=t._originalFormatting,r={...i};t.styleId!==(i.styleId||void 0)&&(r.styleId=t.styleId||void 0),t.justification!==(i.justification||void 0)&&(r.justification=t.justification||void 0),t.floating!==(i.floating||void 0)&&(r.floating=t.floating||void 0),t.look!==(i.look||void 0)&&(r.look=t.look||void 0);let a=i.width?.value,l=i.width?.type;return (t.width!==a||t.widthType!==l)&&(t.width!=null||t.widthType?r.width={value:t.width??0,type:t.widthType||"dxa"}:r.width=void 0),t.cellMargins&&(r.cellMargins={top:t.cellMargins.top!=null?{value:t.cellMargins.top,type:"dxa"}:void 0,bottom:t.cellMargins.bottom!=null?{value:t.cellMargins.bottom,type:"dxa"}:void 0,left:t.cellMargins.left!=null?{value:t.cellMargins.left,type:"dxa"}:void 0,right:t.cellMargins.right!=null?{value:t.cellMargins.right,type:"dxa"}:void 0}),r}if(!(t.styleId||t.width!=null||t.widthType||t.justification||t.floating||t.cellMargins||t.look))return;let n=t.cellMargins?{top:t.cellMargins.top!=null?{value:t.cellMargins.top,type:"dxa"}:void 0,bottom:t.cellMargins.bottom!=null?{value:t.cellMargins.bottom,type:"dxa"}:void 0,left:t.cellMargins.left!=null?{value:t.cellMargins.left,type:"dxa"}:void 0,right:t.cellMargins.right!=null?{value:t.cellMargins.right,type:"dxa"}:void 0}:void 0,o;return (t.width!=null||t.widthType)&&(o={value:t.width??0,type:t.widthType||"dxa"}),{styleId:t.styleId||void 0,width:o,justification:t.justification||void 0,floating:t.floating||void 0,cellMargins:n,look:t.look||void 0}}function Y(t){if(t._originalFormatting){let n=t._originalFormatting,o={...n};return t.height!==(n.height?.value||void 0)&&(o.height=t.height?{value:t.height,type:"dxa"}:void 0),t.heightRule!==(n.heightRule||void 0)&&(o.heightRule=t.heightRule||void 0),t.isHeader!==(n.header||void 0)&&(o.header=t.isHeader||void 0),o}if(t.height||t.isHeader)return {height:t.height?{value:t.height,type:"dxa"}:void 0,heightRule:t.heightRule||void 0,header:t.isHeader||void 0}}function Q(t){let e=t.attrs,n=[];t.forEach(i=>{i.type.name==="paragraph"?n.push(T(i)):i.type.name==="table"&&n.push(I(i));});let o={type:"tableCell",formatting:Z(e),content:n};if(e.cellMarker){let i=e.cellMarker,r={id:i.info.revisionId,author:i.info.author,...i.info.date?{date:i.info.date}:{}};i.kind==="ins"?o.structuralChange={type:"tableCellInsertion",info:r}:i.kind==="del"?o.structuralChange={type:"tableCellDeletion",info:r}:o.structuralChange={type:"tableCellMerge",info:r,...i.vMerge?{vMerge:i.vMerge}:{},...i.vMergeOrig?{vMergeOrig:i.vMergeOrig}:{}};}return e.tcPrChange&&e.tcPrChange.length>0&&(o.propertyChanges=e.tcPrChange),o}function Z(t){if(t._originalFormatting){let o=t._originalFormatting,i={...o};if(t.colspan>1&&(i.gridSpan=t.colspan),t.width!=null&&(i.width={value:t.width,type:t.widthType||"dxa"}),t.verticalAlign!==(o.verticalAlign||void 0)&&(i.verticalAlign=t.verticalAlign||void 0),t.backgroundColor?t._originalResolvedFill===t.backgroundColor&&o.shading?i.shading=o.shading:i.shading={fill:{rgb:t.backgroundColor}}:o.shading&&(i.shading=void 0),t.borders&&(i.borders=t.borders),t.margins){let r=t.margins,a={};r.top!=null&&(a.top={value:r.top,type:"dxa"}),r.bottom!=null&&(a.bottom={value:r.bottom,type:"dxa"}),r.left!=null&&(a.left={value:r.left,type:"dxa"}),r.right!=null&&(a.right={value:r.right,type:"dxa"}),i.margins=a;}return t.textDirection!==(o.textDirection||void 0)&&(i.textDirection=t.textDirection||void 0),i}if(!(t.colspan>1||t.rowspan>1||t.width!=null||t.verticalAlign||t.backgroundColor||t.borders||t.margins||t.textDirection))return;let n;if(t.margins){let o=t.margins;n={},o.top!=null&&(n.top={value:o.top,type:"dxa"}),o.bottom!=null&&(n.bottom={value:o.bottom,type:"dxa"}),o.left!=null&&(n.left={value:o.left,type:"dxa"}),o.right!=null&&(n.right={value:o.right,type:"dxa"});}return {gridSpan:t.colspan>1?t.colspan:void 0,width:t.width!=null?{value:t.width,type:t.widthType||"dxa"}:void 0,verticalAlign:t.verticalAlign||void 0,textDirection:t.textDirection||void 0,shading:t.backgroundColor?{fill:{rgb:t.backgroundColor}}:void 0,borders:t.borders,margins:n}}function A(t){let e=t.attrs,n=[];t.forEach(l=>{l.type.name==="paragraph"&&n.push(T(l));});let o={type:"shape",shapeType:"rect",id:e.textBoxId||void 0,size:{width:e.width?chunk4Q2IP5FW_js.f(e.width):0,height:e.height?chunk4Q2IP5FW_js.f(e.height):0},textBody:{content:n.length>0?n:[{type:"paragraph",content:[]}],margins:{top:e.marginTop!=null?chunk4Q2IP5FW_js.f(e.marginTop):void 0,bottom:e.marginBottom!=null?chunk4Q2IP5FW_js.f(e.marginBottom):void 0,left:e.marginLeft!=null?chunk4Q2IP5FW_js.f(e.marginLeft):void 0,right:e.marginRight!=null?chunk4Q2IP5FW_js.f(e.marginRight):void 0}}},i=chunkC45EFOVP_js.f(e);i&&(o.position=i);let r=chunkC45EFOVP_js.g(e);if(r&&(o.wrap=r),e.fillColor&&(o.fill={type:"solid",color:{rgb:e.fillColor.replace("#","")}}),e.outlineWidth&&e.outlineWidth>0){let l={solid:"solid",dotted:"dot",dashed:"dash"};o.outline={width:chunk4Q2IP5FW_js.f(e.outlineWidth),color:e.outlineColor?{rgb:e.outlineColor.replace("#","")}:void 0,style:e.outlineStyle&&l[e.outlineStyle]||"solid"};}return {type:"run",content:[{type:"shape",shape:o}]}}function K(t){return {type:"paragraph",content:[A(t)]}}function ee(t,e){let o={content:B(t),finalSectionProperties:e?.package.document.finalSectionProperties,sections:e?.package.document.sections,comments:e?.package.document.comments},i=e?{...e,package:{...e.package,document:o}}:{package:{document:o}},r=t.attrs.watermark??null,a=chunkRQVHKDXK_js.a(i)??null;return r!==a?chunkRQVHKDXK_js.b(i,r):i}function B(t){let e=[],n=[],o=()=>{for(let i of n)e.push({type:"paragraph",content:[i]});n=[];};return t.forEach(i=>{if(i.type.name==="paragraph"){let r=T(i);n.length>0&&(r.content=[...n,...r.content],n=[]),e.push(r);}else if(i.type.name==="table")o(),e.push(I(i));else if(i.type.name==="blockSdt")o(),e.push(te(i));else if(i.type.name==="textBox"){let r=i.attrs;chunkC45EFOVP_js.e(r)?n.push(A(i)):(o(),e.push(K(i)));}else i.type.name==="pageBreak"&&(o(),e.push(ne()));}),o(),e}function te(t){return {type:"blockSdt",properties:chunkC45EFOVP_js.b(t.attrs),content:B(t)}}function ne(){return {type:"paragraph",content:[{type:"run",content:[{type:"break",breakType:"page"}]}]}}function Pe(t,e){return ee(e,t)}function we(t){return B(t)}exports.a=ee;exports.b=Pe;exports.c=we;
@@ -0,0 +1 @@
1
+ import {a as a$1,c,d}from'./chunk-7OW3VCZE.mjs';import {b as b$4}from'./chunk-QPFJJPIC.mjs';import {a}from'./chunk-GYWTUUXX.mjs';import {b as b$1}from'./chunk-4GFTMGSV.mjs';import {b}from'./chunk-2XP6GLA4.mjs';import {b as b$3}from'./chunk-67LVRQIR.mjs';import {e}from'./chunk-VW22RZ6C.mjs';import {b as b$2}from'./chunk-DI6CRWSW.mjs';function X(e){if(!e)return [];let n=[];return e.bold&&n.push(b$1.mark("bold")),e.italic&&n.push(b$1.mark("italic")),e.underline&&e.underline.style!=="none"&&n.push(b$1.mark("underline",{style:e.underline.style,color:e.underline.color})),(e.strike||e.doubleStrike)&&n.push(b$1.mark("strike",{double:e.doubleStrike||false})),e.color&&!e.color.auto&&n.push(b$1.mark("textColor",{rgb:e.color.rgb,themeColor:e.color.themeColor,themeTint:e.color.themeTint,themeShade:e.color.themeShade})),e.highlight&&e.highlight!=="none"&&n.push(b$1.mark("highlight",{color:e.highlight})),e.fontSize&&n.push(b$1.mark("fontSize",{size:e.fontSize})),e.fontFamily&&n.push(b$1.mark("fontFamily",{ascii:e.fontFamily.ascii,hAnsi:e.fontFamily.hAnsi,eastAsia:e.fontFamily.eastAsia,cs:e.fontFamily.cs,asciiTheme:e.fontFamily.asciiTheme,hAnsiTheme:e.fontFamily.hAnsiTheme,eastAsiaTheme:e.fontFamily.eastAsiaTheme,csTheme:e.fontFamily.csTheme})),e.vertAlign==="superscript"?n.push(b$1.mark("superscript")):e.vertAlign==="subscript"&&n.push(b$1.mark("subscript")),e.allCaps&&n.push(b$1.mark("allCaps")),e.smallCaps&&n.push(b$1.mark("smallCaps")),(e.spacing!=null||e.position!=null||e.scale!=null||e.kerning!=null)&&n.push(b$1.mark("characterSpacing",{spacing:e.spacing??null,position:e.position??null,scale:e.scale??null,kerning:e.kerning??null})),e.emboss&&n.push(b$1.mark("emboss")),e.imprint&&n.push(b$1.mark("imprint")),e.shadow&&n.push(b$1.mark("textShadow")),e.emphasisMark&&e.emphasisMark!=="none"&&n.push(b$1.mark("emphasisMark",{type:e.emphasisMark})),e.outline&&n.push(b$1.mark("textOutline")),e.hidden&&n.push(b$1.mark("hidden")),e.rtl&&n.push(b$1.mark("rtl")),e.effect&&e.effect!=="none"&&n.push(b$1.mark("textEffect",{effect:e.effect})),n}function E(e,n){if(!e)return;if(!n)return e;let o=n.resolveRunStyle(e.styleId);return o?b$2(o,e):e}function ee(e,n){let o="",l,t=e.type==="simpleField"?e.content:e.fieldResult;if(t){for(let s of t)if(s.type==="run"){for(let c of s.content)c.type==="text"&&(o+=c.text);!l&&s.formatting&&(l=s.formatting);}}let r=b$2(n,l),i=X(r);return b$1.node("field",{fieldType:e.fieldType,instruction:e.instruction,displayText:o,fieldKind:e.type==="simpleField"?"simple":"complex",fldLock:e.fldLock??false,dirty:e.dirty??false},void 0,i)}function te(e){return b$1.node("math",{display:e.display,ommlXml:e.ommlXml,plainText:e.plainText||""})}function K(e,n,o){let l=[],t=e.formatting?.styleId?o?.getRunStyleOwnProperties(e.formatting.styleId):void 0,r=b$2(b$2(n,t),e.formatting),i=X(r);for(let s of e.content){let c=ue(s,i);l.push(...c);}return l}function ue(e,n){switch(e.type){case "text":return e.text?[b$1.text(e.text,n)]:[];case "break":return e.breakType==="textWrapping"||!e.breakType?[b$1.node("hardBreak",null,void 0,n)]:[];case "tab":return [b$1.node("tab",null,void 0,n)];case "drawing":return e.image?[Ce(e.image)]:[];case "shape":{let t=e.shape;return t.textBody&&t.textBody.content.length>0?[]:[we(t)]}case "footnoteRef":let o=b$1.mark("footnoteRef",{id:e.id.toString(),noteType:"footnote"});return [b$1.text(e.id.toString(),[...n,o])];case "endnoteRef":let l=b$1.mark("footnoteRef",{id:e.id.toString(),noteType:"endnote"});return [b$1.text(e.id.toString(),[...n,l])];default:return []}}function Ce(e$1){let n=e$1.size?.width?e(e$1.size.width):void 0,o=e$1.size?.height?e(e$1.size.height):void 0,l=e$1.wrap.type,t=e$1.wrap.wrapText,r=e$1.position?.horizontal?.alignment,i;l==="inline"||l==="topAndBottom"?i="none":l==="square"||l==="tight"||l==="through"?t==="left"?i="right":t==="right"||r==="left"?i="left":r==="right"?i="right":i="none":i="none";let s="inline";l==="inline"?s="inline":l==="topAndBottom"?s="block":b$4(l)||i&&i!=="none"?s="float":s="block";let c;if(e$1.transform){let P=[];e$1.transform.rotation&&P.push(`rotate(${e$1.transform.rotation}deg)`),e$1.transform.flipH&&P.push("scaleX(-1)"),e$1.transform.flipV&&P.push("scaleY(-1)"),P.length>0&&(c=P.join(" "));}let u=e$1.wrap.distT?e(e$1.wrap.distT):void 0,f=e$1.wrap.distB?e(e$1.wrap.distB):void 0,d=e$1.wrap.distL?e(e$1.wrap.distL):void 0,m=e$1.wrap.distR?e(e$1.wrap.distR):void 0,p;e$1.position&&(p={horizontal:e$1.position.horizontal?{relativeTo:e$1.position.horizontal.relativeTo,posOffset:e$1.position.horizontal.posOffset,align:e$1.position.horizontal.alignment}:void 0,vertical:e$1.position.vertical?{relativeTo:e$1.position.vertical.relativeTo,posOffset:e$1.position.vertical.posOffset,align:e$1.position.vertical.alignment}:void 0});let S,w,M;if(e$1.outline&&e$1.outline.width){S=Math.round(e$1.outline.width/914400*96*100)/100,e$1.outline.color?.rgb&&(w=`#${e$1.outline.color.rgb}`);let P={solid:"solid",dot:"dotted",dash:"dashed",lgDash:"dashed",dashDot:"dashed",lgDashDot:"dashed",lgDashDotDot:"dashed",sysDot:"dotted",sysDash:"dashed",sysDashDot:"dashed",sysDashDotDot:"dashed"};M=e$1.outline.style&&P[e$1.outline.style]||"solid";}let z=e$1.padding?.top?e(e$1.padding.top):void 0,I=e$1.padding?.bottom?e(e$1.padding.bottom):void 0,B=e$1.padding?.left?e(e$1.padding.left):void 0,g=e$1.padding?.right?e(e$1.padding.right):void 0;return b$1.node("image",{src:e$1.src||"",alt:e$1.alt,title:e$1.title,width:n,height:o,rId:e$1.rId,wrapType:l,displayMode:s,cssFloat:i,transform:c,distTop:u,distBottom:f,distLeft:d,distRight:m,position:p,borderWidth:S,borderColor:w,borderStyle:M,wrapText:t,hlinkHref:e$1.hlinkHref,cropTop:e$1.crop?.top,cropRight:e$1.crop?.right,cropBottom:e$1.crop?.bottom,cropLeft:e$1.crop?.left,opacity:e$1.opacity,effectExtentTop:z,effectExtentBottom:I,effectExtentLeft:B,effectExtentRight:g,layoutInCell:e$1.layoutInCell,allowOverlap:e$1.allowOverlap})}function Y(e,n,o){let l=[],t=e.href||(e.anchor?`#${e.anchor}`:""),r=b$1.mark("hyperlink",{href:t,tooltip:e.tooltip,rId:e.rId});for(let i of e.children)if(i.type==="run"){let s=i.formatting?.styleId?o?.getRunStyleOwnProperties(i.formatting.styleId):void 0,c=b$2(b$2(n,s),i.formatting),f=[...X(c),r];for(let d of i.content)l.push(...ue(d,f));}return l}function we(e$1){let n=e$1.size?.width?e(e$1.size.width):100,o=e$1.size?.height?e(e$1.size.height):80,l,t="solid",r,i,s;if(e$1.fill&&(t=e$1.fill.type,e$1.fill.color?.rgb&&(l=`#${e$1.fill.color.rgb}`),e$1.fill.type==="gradient"&&e$1.fill.gradient)){let m=e$1.fill.gradient;r=m.type,i=m.angle,s=JSON.stringify(m.stops.map(p=>({position:p.position,color:p.color.rgb?`#${p.color.rgb}`:"#000000"})));}let c,u,f;e$1.outline&&(e$1.outline.width&&(c=Math.round(e$1.outline.width/914400*96*100)/100),e$1.outline.color?.rgb&&(u=`#${e$1.outline.color.rgb}`),f=e$1.outline.style||"solid");let d;if(e$1.transform){let m=[];e$1.transform.rotation&&m.push(`rotate(${e$1.transform.rotation}deg)`),e$1.transform.flipH&&m.push("scaleX(-1)"),e$1.transform.flipV&&m.push("scaleY(-1)"),m.length>0&&(d=m.join(" "));}return b$1.node("shape",{shapeType:e$1.shapeType||"rect",shapeId:e$1.id,width:n,height:o,fillColor:l,fillType:t,gradientType:r,gradientAngle:i,gradientStops:s,outlineWidth:c,outlineColor:u,outlineStyle:f,transform:d})}function V(e,n,o,l){let t=xe(e,n),r=[],i,s=new Set,c;n&&(c=n.resolveParagraphStyle(e.formatting?.styleId).runFormatting);let u=b$2(c,l);for(let f of e.content){if(f.type==="commentRangeStart")s.add(f.id);else if(f.type==="commentRangeEnd")s.delete(f.id);else if(f.type==="run"){let d=K(f,u,n);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="hyperlink"){let d=Y(f,u,n);r.push(...d);}else if(f.type==="simpleField"||f.type==="complexField"){let d=ee(f,u);d&&r.push(d);}else if(f.type==="inlineSdt"){let d=pe(f,u,n);d&&r.push(d);}else if(f.type==="insertion"){let d=J(f,"insertion",u,n);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="deletion"){let d=J(f,"deletion",u,n);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="moveFrom"){let d=J(f,"deletion",u,n,true);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="moveTo"){let d=J(f,"insertion",u,n,true);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="mathEquation"){let d=te(f);d&&r.push(d);}f.type==="bookmarkStart"&&(i||(i=[]),i.push({id:f.id,name:f.name}));}return i&&(t.bookmarks=i),b$1.node("paragraph",t,r)}function O(e,n){if(n.size===0)return e;let o=[...n][0],l=b$1.marks.comment.create({commentId:o});return e.map(t=>t.isText?t.mark(l.addToSet(t.marks)):t)}function J(e,n,o,l,t=false){let r=[];for(let s of e.content)s.type==="run"?r.push(...K(s,o,l)):s.type==="hyperlink"&&r.push(...Y(s,o,l));let i=b$1.marks[n].create({revisionId:e.info.id,author:e.info.author,date:e.info.date??null,isMovePair:t});return r.map(s=>s.isText||s.type.allowsMarkType(i.type)?s.mark(i.addToSet(s.marks)):s)}function xe(e,n){let o=e.formatting,l=o?.styleId,t={paraId:e.paraId??void 0,textId:e.textId??void 0,styleId:l,numPr:o?.numPr,listNumFmt:e.listRendering?.numFmt,listIsBullet:e.listRendering?.isBullet,listMarker:e.listRendering?.marker,listMarkerHidden:e.listRendering?.markerHidden||void 0,listMarkerFontFamily:e.listRendering?.markerFontFamily||void 0,listMarkerFontSize:e.listRendering?.markerFontSize||void 0,listMarkerSuffix:e.listRendering?.markerSuffix||void 0,listLevelNumFmts:e.listRendering?.levelNumFmts||void 0,listAbstractNumId:e.listRendering?.abstractNumId,listStartOverride:e.listRendering?.startOverride,_originalFormatting:o||void 0};if(n){let r=n.resolveParagraphStyle(l),i=r.paragraphFormatting,s=r.runFormatting;t.alignment=o?.alignment??i?.alignment,t.spaceBefore=o?.spaceBefore??i?.spaceBefore,t.spaceAfter=o?.spaceAfter??i?.spaceAfter,t.lineSpacing=o?.lineSpacing??i?.lineSpacing,t.lineSpacingRule=o?.lineSpacingRule??i?.lineSpacingRule,o?.spacingExplicit&&(t.spacingExplicit=o.spacingExplicit),t.indentLeft=o?.indentLeft??i?.indentLeft,t.indentRight=o?.indentRight??i?.indentRight,t.indentFirstLine=o?.indentFirstLine??i?.indentFirstLine,t.hangingIndent=o?.hangingIndent??i?.hangingIndent,t.borders=o?.borders??i?.borders,t.shading=o?.shading??i?.shading,t.tabs=o?.tabs??i?.tabs,t.pageBreakBefore=o?.pageBreakBefore??i?.pageBreakBefore,t.keepNext=o?.keepNext??i?.keepNext,t.keepLines=o?.keepLines??i?.keepLines,t.contextualSpacing=o?.contextualSpacing??i?.contextualSpacing,t.outlineLevel=o?.outlineLevel??i?.outlineLevel,t.bidi=o?.bidi??i?.bidi;let c=n.getDefaultCharacterStyle()?.rPr,u=c?b$2(s,c):s,f=E(o?.runProperties,n);t.defaultTextFormatting=b$2(u,f),!o?.numPr&&i?.numPr&&i.numPr.numId!==0&&(t.numPr=i.numPr);}else t.alignment=o?.alignment,t.spaceBefore=o?.spaceBefore,t.spaceAfter=o?.spaceAfter,t.lineSpacing=o?.lineSpacing,t.lineSpacingRule=o?.lineSpacingRule,o?.spacingExplicit&&(t.spacingExplicit=o.spacingExplicit),t.indentLeft=o?.indentLeft,t.indentRight=o?.indentRight,t.indentFirstLine=o?.indentFirstLine,t.hangingIndent=o?.hangingIndent,t.borders=o?.borders,t.shading=o?.shading,t.tabs=o?.tabs,t.pageBreakBefore=o?.pageBreakBefore,t.keepNext=o?.keepNext,t.keepLines=o?.keepLines,t.outlineLevel=o?.outlineLevel,t.bidi=o?.bidi,t.defaultTextFormatting=E(o?.runProperties,n);if(e.sectionProperties){t._sectionProperties=e.sectionProperties;let r=e.sectionProperties.sectionStart;(r==="nextPage"||r==="continuous"||r==="oddPage"||r==="evenPage")&&(t.sectionBreakType=r);}return e.renderedPageBreakBefore&&(t.renderedPageBreakBefore=true),e.pPrIns&&(t.pPrIns={revisionId:e.pPrIns.id,author:e.pPrIns.author,date:e.pPrIns.date??null}),e.pPrDel&&(t.pPrDel={revisionId:e.pPrDel.id,author:e.pPrDel.author,date:e.pPrDel.date??null}),e.propertyChanges&&e.propertyChanges.length>0&&(t.pPrChange=e.propertyChanges),t}function pe(e,n,o){let l=e.properties,t=[];for(let r of e.content)if(r.type==="run"){let i=K(r,n,o);t.push(...i);}else if(r.type==="hyperlink"){let i=Y(r,n,o);t.push(...i);}else if(r.type==="simpleField"||r.type==="complexField"){let i=ee(r,n);i&&t.push(i);}else if(r.type==="inlineSdt"){let i=pe(r,n,o);i&&t.push(i);}else if(r.type==="mathEquation"){let i=te(r);i&&t.push(i);}return b$1.node("sdt",a$1(l),t.length>0?t:void 0)}function me(e){function n(l){return l.type==="break"&&l.breakType==="page"}function o(l){if(l.type==="run"){for(let t of l.content)if(n(t))return true;return false}if(l.type==="hyperlink"){for(let t of l.children)if(t.type==="run"&&o(t))return true;return false}if(l.type==="insertion"||l.type==="deletion"){let t=l;for(let r of t.content)if(o(r))return true;return false}return false}for(let l of e.content)if(o(l))return true;return false}function R(e,n,o){if(!e||!n)return;let l=e.getStyle(n);if(!l?.tblStylePr)return;let t=l.tblStylePr.find(c=>c.type===o);if(!t)return;let r=E(t.pPr?.runProperties,e),i=E(t.rPr,e),s=b$2(r,i);return {tcPr:t.tcPr,rPr:s}}function N(e,n){if(!e&&!n)return;if(!e)return n;if(!n)return e;let o={},l=e.tcPr,t=n.tcPr;if(l||t){let r={...l??{},...t??{}};(l?.borders||t?.borders)&&(r.borders={...l?.borders??{},...t?.borders??{}}),(l?.shading||t?.shading)&&(r.shading={...l?.shading??{},...t?.shading??{}}),(l?.margins||t?.margins)&&(r.margins={...l?.margins??{},...t?.margins??{}}),o.tcPr=r;}return o.rPr=b$2(e.rPr,n.rPr),o}function ke(e){let n=new Map,o=e.rows.length,l=new Map;for(let t=0;t<o;t++){let r=e.rows[t],i=0,s=r.cells.map(u=>{let f=u.formatting?.gridSpan??1,d=i;return i+=f,{colIndex:d,vMerge:u.formatting?.vMerge,key:`${t}-${d}`}});if(s.length>0&&s.every(({colIndex:u,vMerge:f})=>f==="continue"&&l.has(u))){for(let{colIndex:u,key:f}of s)l.delete(u),n.set(f,{rowSpan:1,skip:false});continue}for(let{colIndex:u,vMerge:f,key:d}of s){let m=u;if(f==="restart")l.set(m,t),n.set(d,{rowSpan:1,skip:false});else if(f==="continue"){let p=l.get(m);if(p!==void 0){let S=`${p}-${m}`,w=n.get(S);w&&w.rowSpan++,n.set(d,{rowSpan:1,skip:true});}else n.set(d,{rowSpan:1,skip:false});}else l.delete(m),n.set(d,{rowSpan:1,skip:false});}}return n}function ne(e,n,o){let l=ke(e),t=e.columnWidths,r=t?.reduce((P,x)=>P+x,0)??0,i=e.formatting?.styleId,s=e.formatting?.look,c=i?n?.getStyle(i):void 0,u=n?.getDefaultTableStyle(),f=e.formatting?.borders??c?.tblPr?.borders??u?.tblPr?.borders,d=e.formatting?.cellMargins??c?.tblPr?.cellMargins??u?.tblPr?.cellMargins??void 0,m=d?{top:d.top?.value,bottom:d.bottom?.value,left:d.left?.value,right:d.right?.value}:void 0,p={styleId:e.formatting?.styleId,width:e.formatting?.width?.value,widthType:e.formatting?.width?.type,justification:e.formatting?.justification,columnWidths:t,floating:e.formatting?.floating,cellMargins:m,look:e.formatting?.look,_originalFormatting:e.formatting||void 0};e.propertyChanges&&e.propertyChanges.length>0&&(p.tblPrChange=e.propertyChanges);let S={wholeTable:R(n,i,"wholeTable"),firstRow:R(n,i,"firstRow"),lastRow:R(n,i,"lastRow"),firstCol:R(n,i,"firstCol"),lastCol:R(n,i,"lastCol"),band1Horz:R(n,i,"band1Horz"),band2Horz:R(n,i,"band2Horz"),band1Vert:R(n,i,"band1Vert"),band2Vert:R(n,i,"band2Vert"),nwCell:R(n,i,"nwCell"),neCell:R(n,i,"neCell"),swCell:R(n,i,"swCell"),seCell:R(n,i,"seCell")},w=s?.noHBand!==true,M=s?.noVBand!==true,z=0,I=e.rows.length,B=t?.length??Math.max(0,...e.rows.map(P=>P.cells.reduce((x,F)=>x+(F.formatting?.gridSpan??1),0))),g=e.rows.map((P,x)=>{let F=x===0&&!!s?.firstRow,v=x===I-1&&!!s?.lastRow,h=w&&!F&&!v?z%2===0?S.band1Horz:S.band2Horz:void 0;return w&&!F&&!v&&z++,Fe(P,n,F,t,r,S,h,M,s,f,x,I,B,l,m,o)});return b$1.node("table",p,g)}function Fe(e,n,o,l,t,r,i,s,c,u,f,d,m,p,S,w){let M={height:e.formatting?.height?.value,heightRule:e.formatting?.heightRule,isHeader:!!e.formatting?.header,_originalFormatting:e.formatting||void 0};if(e.structuralChange){let C=e.structuralChange,D={revisionId:C.info.id,author:C.info.author,date:C.info.date??null};C.type==="tableRowInsertion"?M.trIns=D:C.type==="tableRowDeletion"&&(M.trDel=D);}e.propertyChanges&&e.propertyChanges.length>0&&(M.trPrChange=e.propertyChanges);let z=e.cells.length,I=f===0,B=f===(d??1)-1,g=e.formatting?.conditionalFormat,P=g?.firstRow??I,x=g?.lastRow??B,F=m??z,v=0,h=[];for(let C=0;C<e.cells.length;C++){let D=e.cells[C],H=D.formatting?.gridSpan??1,be=`${f??0}-${v}`,re=p?.get(be),ye=re?.skip??false,Pe=re?.rowSpan??1,ie;if(l&&t&&t>0){let q=0;for(let A=0;A<H&&v+A<l.length;A++)q+=l[v+A];ie=Math.round(q/t*100);}if(v+=H,ye)continue;let le=v-H===0,se=v===F,b=D.formatting?.conditionalFormat,G=b?.firstRow??P,Q=b?.lastRow??x,$=b?.firstColumn??le,W=b?.lastColumn??se,_;if(s){let q=c?.firstColumn?1:0,A=v-H-q;A>=0&&!(c?.lastColumn&&W)&&!(c?.firstColumn&&$)&&(_=A%2===0?r?.band1Vert:r?.band2Vert);}b?.oddVBand?_=r?.band1Vert:b?.evenVBand&&(_=r?.band2Vert);let L=i;g?.oddHBand?L=r?.band1Horz:g?.evenHBand&&(L=r?.band2Horz),b?.oddHBand?L=r?.band1Horz:b?.evenHBand&&(L=r?.band2Horz);let T=r?.wholeTable;T=N(T,L),T=N(T,_),G&&(c?.firstRow||g?.firstRow||b?.firstRow)&&(T=N(T,r?.firstRow)),Q&&(c?.lastRow||g?.lastRow||b?.lastRow)&&(T=N(T,r?.lastRow)),$&&(c?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.firstCol)),W&&(c?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.lastCol)),G&&$&&(c?.firstRow||g?.firstRow||b?.firstRow)&&(c?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.nwCell)),G&&W&&(c?.firstRow||g?.firstRow||b?.firstRow)&&(c?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.neCell)),Q&&$&&(c?.lastRow||g?.lastRow||b?.lastRow)&&(c?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.swCell)),Q&&W&&(c?.lastRow||g?.lastRow||b?.lastRow)&&(c?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.seCell)),h.push(ge(D,n,o,ie,T,u,I,B,le,se,Pe,S,w));}if(h.length===0){let C=Math.max(F,1),D={formatting:C>1?{gridSpan:C}:void 0,content:[{type:"paragraph",content:[]}]},H=N(r?.wholeTable,i);h.push(ge(D,n,o,t&&t>0?100:void 0,H,u,I,B,true,true,1,S,w));}return b$1.node("tableRow",M,h)}var Se=["top","bottom","left","right","insideH","insideV"];function Re(e,n){if(!e)return e;let o;for(let l of Se){let t=e[l];if(!t?.color?.themeColor||t.color.auto)continue;let r=b$3(t.color,n);r&&(o??(o={...e}),o[l]={...t,color:{rgb:r}});}return o??e}function ge(e,n,o,l,t,r,i,s,c,u,f,d,m){let p=e.formatting,S=f??1,w=p?.width?.value,M=p?.width?.type;w===void 0&&l!==void 0&&(w=l,M="pct");let z=b$3(p?.shading?.fill??t?.tcPr?.shading?.fill,m),I=r?{top:i?r.top:r.insideH,bottom:s?r.bottom:r.insideH,left:c?r.left:r.insideV,right:u?r.right:r.insideV}:void 0,B=t?.tcPr?.borders,g=p?.borders,P=Re(I||B||g?{...I??{},...B??{},...g??{}}:void 0,m),x={colspan:p?.gridSpan??1,rowspan:S,width:w,widthType:M,verticalAlign:p?.verticalAlign,backgroundColor:z,textDirection:p?.textDirection,noWrap:p?.noWrap,borders:P,margins:p?.margins?{top:p.margins.top?.value,bottom:p.margins.bottom?.value,left:p.margins.left?.value,right:p.margins.right?.value}:t?.tcPr?.margins?{top:t.tcPr.margins.top?.value,bottom:t.tcPr.margins.bottom?.value,left:t.tcPr.margins.left?.value,right:t.tcPr.margins.right?.value}:d,_originalFormatting:p||void 0,_originalResolvedFill:z};if(e.structuralChange){let h=e.structuralChange,C={revisionId:h.info.id,author:h.info.author,date:h.info.date??null};h.type==="tableCellInsertion"?x.cellMarker={kind:"ins",info:C}:h.type==="tableCellDeletion"?x.cellMarker={kind:"del",info:C}:h.type==="tableCellMerge"&&(x.cellMarker={kind:"merge",info:C,vMerge:h.vMerge??"cont",...h.vMergeOrig?{vMergeOrig:h.vMergeOrig}:{}});}e.propertyChanges&&e.propertyChanges.length>0&&(x.tcPrChange=e.propertyChanges);let F=[];for(let h of e.content)h.type==="paragraph"?F.push(V(h,n,void 0,t?.rPr)):h.type==="table"&&F.push(ne(h,n));F.length===0&&F.push(b$1.node("paragraph",{},[]));let v=o?"tableHeader":"tableCell";return b$1.node(v,x,F)}function Te(e,n){let o=ve(e),l=V(e,n),t=[],r=o.length>0&&l.content.size===0,{anchored:i,inFlow:s}=Me(o);for(let c of i)t.push(he(c,n));r||t.push(l);for(let c of s)t.push(he(c,n));return t}function Me(e){let n=[],o=[];for(let l of e)c(l)?n.push(l):o.push(l);return {anchored:n,inFlow:o}}function ve(e){let n=[];for(let o of e.content)if(o.type==="run"){for(let l of o.content)if(l.type==="shape"&&"shape"in l){let t=l.shape;t.textBody&&t.textBody.content.length>0&&n.push({type:"textBox",id:t.id,size:t.size,position:t.position,wrap:t.wrap,fill:t.fill,outline:t.outline,content:t.textBody.content,margins:t.textBody.margins});}}return n}function he(e$1,n){let o=e$1.size?.width?e(e$1.size.width):200,l=e$1.size?.height?e(e$1.size.height):void 0,t;e$1.fill?.color?.rgb&&(t=`#${e$1.fill.color.rgb}`);let r,i,s;e$1.outline&&e$1.outline.width&&(r=Math.round(e$1.outline.width/914400*96*100)/100,e$1.outline.color?.rgb&&(i=`#${e$1.outline.color.rgb}`),s=e$1.outline.style||"solid");let c=e$1.margins?.top!=null?e(e$1.margins.top):4,u=e$1.margins?.bottom!=null?e(e$1.margins.bottom):4,f=e$1.margins?.left!=null?e(e$1.margins.left):7,d$1=e$1.margins?.right!=null?e(e$1.margins.right):7,m=[];for(let p of e$1.content)m.push(V(p,n));return m.length===0&&m.push(b$1.node("paragraph",{},[])),b$1.node("textBox",{width:o,height:l,textBoxId:e$1.id,fillColor:t,outlineWidth:r,outlineColor:i,outlineStyle:s,marginTop:c,marginBottom:u,marginLeft:f,marginRight:d$1,...d(e$1)},m)}function oe(e,n,o,l){let t=[];for(let r of e)if(r.type==="paragraph")t.push(...Te(r,n)),l&&me(r)&&t.push(b$1.node("pageBreak"));else if(r.type==="table")t.push(ne(r,n,o));else if(r.type==="blockSdt"){let i=oe(r.content,n,o,l),s=i.length>0?i:[b$1.node("paragraph",{},[])];t.push(b$1.node("blockSdt",a$1(r.properties),s));}return t}function ct(e,n){let o=e.package.theme??null,l=n?.styles?b(n.styles):null,t=oe(e.package.document.content,l,o,true);return t.length===0&&t.push(b$1.node("paragraph",{},[])),t[t.length-1]?.type.name==="blockSdt"&&t.push(b$1.node("paragraph",{},[])),b$1.node("doc",{defaultTabStopTwips:e.package.settings?.defaultTabStop??null,watermark:a(e)??null},t)}function Ie(e,n){let o=n?.styles?b(n.styles):null,l=n?.theme??null,t=oe(e,o,l,false);return t.length===0&&t.push(b$1.node("paragraph",{},[])),b$1.node("doc",{defaultTabStopTwips:n?.defaultTabStopTwips??null},t)}function ut(e,n){return Ie(e,n)}function pt(){return b$1.node("doc",null,[b$1.node("paragraph",{},[])])}export{ct as a,Ie as b,ut as c,pt as d};
@@ -0,0 +1 @@
1
+ import {c}from'./chunk-B46V5G46.mjs';import {V,L,k,l}from'./chunk-72KLR6TJ.mjs';import {b}from'./chunk-IUVQJ6PX.mjs';import {e}from'./chunk-VW22RZ6C.mjs';function Q(e,n){if(e.pages.length===0)return null;let a=e.pageGap??0,r=0,t=null,o=1/0;for(let s=0;s<e.pages.length;s++){let i=e.pages[s],l=i.size?.h??e.pageSize.h,f=r,u=f+l;if(n.y>=f&&n.y<u)return {pageIndex:s,page:i,pageY:n.y-f};let c=f+l/2,p=Math.abs(n.y-c);p<o&&(o=p,t=s),r=u+a;}if(t!==null){let s=e.pages[t],i=D(e,t);return {pageIndex:t,page:s,pageY:Math.max(0,Math.min(n.y-i,s.size?.h??e.pageSize.h))}}return null}function D(e,n){let a=e.pageGap??0,r=0;for(let t=0;t<n&&t<e.pages.length;t++){let s=e.pages[t].size?.h??e.pageSize.h;r+=s+a;}return r}function Ee(e,n){return Q(e,{y:n})?.pageIndex??null}function Z(e,n){return e.findIndex(a=>a.id===n)}function Le(e,n){let a=0;for(let r=e.fromLine;r<e.toLine&&r<n.lines.length;r++)a+=n.lines[r].lineHeight;return a}function fe(e,n,a,r){let t=[...e.page.fragments].sort((o,s)=>{let i=o.y-s.y;return Math.abs(i)>.5?i:o.x-s.x});for(let o of t){let s=Z(n,o.blockId);if(s===-1)continue;let i=n[s],l=a[s];if(!i||!l)continue;let f;if(o.kind==="paragraph"){if(i.kind!=="paragraph"||l.kind!=="paragraph")continue;f=Le(o,l);}else if(o.kind==="table")f=o.height;else if(o.kind==="image")f=o.height;else continue;let u=r.x>=o.x&&r.x<=o.x+o.width,c=r.y>=o.y&&r.y<=o.y+f;if(u&&c)return {fragment:o,block:i,measure:l,pageIndex:e.pageIndex,localX:r.x-o.x,localY:r.y-o.y}}return null}function Ce(e,n,a,r){for(let t of e.page.fragments){if(t.kind!=="image")continue;let o=Z(n,t.blockId);if(o===-1)continue;let s=n[o],i=a[o];if(!s||!i)continue;let l=r.x>=t.x&&r.x<=t.x+t.width,f=r.y>=t.y&&r.y<=t.y+t.height;if(l&&f)return {fragment:t,block:s,measure:i,pageIndex:e.pageIndex,localX:r.x-t.x,localY:r.y-t.y}}return null}function de(e,n,a,r){for(let t of e.page.fragments){if(t.kind!=="table")continue;let o=t,s=r.x>=o.x&&r.x<=o.x+o.width,i=r.y>=o.y&&r.y<=o.y+o.height;if(!s||!i)continue;let l=Z(n,o.blockId);if(l===-1)continue;let f=n[l],u=a[l];if(!f||f.kind!=="table"||!u||u.kind!=="table")continue;let c=f,p=u,g=r.x-o.x,x=r.y-o.y,d=o.headerRowCount??0,h=d>0&&o.continuesFromPrev?V(p,d):0,m=0,b=-1;if(p.rows.length===0||c.rows.length===0)continue;if(h>0&&x<h){let T=0;for(let H=0;H<d&&H<p.rows.length;H++){let C=p.rows[H];if(x>=T&&x<T+C.height){b=H;break}T+=C.height;}b===-1&&(b=0);}else {let T=x-h;for(let H=o.fromRow;H<o.toRow&&H<p.rows.length;H++){let C=p.rows[H];if(T>=m&&T<m+C.height){b=H;break}m+=C.height;}}if(b===-1&&(b=Math.min(o.toRow-1,p.rows.length-1),b<o.fromRow))continue;let k=p.rows[b],P=c.rows[b];if(!k||!P)continue;let M=0,y=-1;if(k.cells.length===0||P.cells.length===0)continue;for(let T=0;T<k.cells.length;T++){let H=k.cells[T];if(g>=M&&g<M+H.width){y=T;break}M+=H.width;}if(y===-1&&(y=k.cells.length-1,y<0))continue;let w=k.cells[y],R=P.cells[y];if(!w||!R)continue;let F=0;if(h>0&&b<d)for(let T=0;T<b;T++)F+=p.rows[T]?.height??0;else {F=h;for(let T=o.fromRow;T<b;T++)F+=p.rows[T]?.height??0;}let I=0;for(let T=0;T<y;T++)I+=k.cells[T]?.width??0;let v,S;if(R.blocks&&R.blocks.length>0){let T=R.blocks[0],H=w.blocks[0];T.kind==="paragraph"&&H?.kind==="paragraph"&&(v=T,S=H);}let L=g-I,E=x-F;return {fragment:o,block:c,measure:p,pageIndex:e.pageIndex,rowIndex:b,colIndex:y,cellBlock:v,cellMeasure:S,cellLocalX:Math.max(0,L),cellLocalY:Math.max(0,E)}}return null}function De(e,n,a,r){let t={pageHit:null,fragmentHit:null,tableCellHit:null};if(t.pageHit=Q(e,r),!t.pageHit)return t;let o=D(e,t.pageHit.pageIndex),s={x:r.x,y:r.y-o};return t.fragmentHit=fe(t.pageHit,n,a,s),t.fragmentHit?.fragment.kind==="table"&&(t.tableCellHit=de(t.pageHit,n,a,s)),t}function Ae(e){if(e.pages.length===0)return 0;let n=e.pageGap??0,a=0;for(let r=0;r<e.pages.length;r++){let t=e.pages[r];a+=t.size?.h??e.pageSize.h,r<e.pages.length-1&&(a+=n);}return a}function _e(e,n){return D(e,n)}function Oe(e,n){if(n<0||n>=e.pages.length)return null;let a=D(e,n),t=e.pages[n].size?.h??e.pageSize.h;return {top:a,bottom:a+t}}function ee(e){return {fontFamily:e.fontFamily??"Arial",fontSize:e.fontSize??12,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function he(e,n){let a=[];for(let r=n.fromRun;r<=n.toRun&&r<e.runs.length;r++){let t=e.runs[r];if(t){if(t.kind==="tab"||t.kind==="image"||t.kind==="lineBreak"){a.push(t);continue}if(t.kind==="text"){let o=t.text??"",s=r===n.fromRun,i=r===n.toRun;if(s||i){let l=s?n.fromChar:0,f=i?n.toChar:o.length,u=o.slice(l,f);u.length>0&&a.push({...t,text:u});}else a.push(t);}}}return a}function me(e,n){let a,r,t=e.pmStart??0,o=0;for(let s=0;s<e.runs.length&&s<=n.toRun;s++){let i=e.runs[s];i&&(s<n.fromRun?i.kind==="text"?o+=(i.text??"").length:(i.kind==="tab"||i.kind==="lineBreak"||i.kind==="image")&&(o+=1):s===n.fromRun&&(o+=n.fromChar,a=t+o,i.kind==="text"&&(o=n.fromChar)));}if(a!==void 0){let s=0;for(let i=n.fromRun;i<=n.toRun&&i<e.runs.length;i++){let l=e.runs[i];if(l)if(l.kind==="text"){let f=l.text??"",u=i===n.fromRun?n.fromChar:0,c=i===n.toRun?n.toChar:f.length;s+=c-u;}else (l.kind==="tab"||l.kind==="lineBreak"||l.kind==="image")&&(s+=1);}r=a+s;}return {pmStart:a,pmEnd:r}}function Xe(e,n,a,r){let t=0;for(let o=a;o<r&&o<e.lines.length;o++){let i=e.lines[o].lineHeight;if(n>=t&&n<t+i)return o;t+=i;}return r>a?Math.min(r-1,e.lines.length-1):null}function ve(e,n,a,r){let{pmStart:t,pmEnd:o}=me(e,n);if(t===void 0||o===void 0)return {charOffset:0,pmPosition:e.pmStart??0};let s=e.attrs?.alignment??"left",i=0;s==="center"?i=Math.max(0,(r-n.width)/2):s==="right"&&(i=Math.max(0,r-n.width));let l$1=Math.max(0,a-i);if(l$1<=0)return {charOffset:0,pmPosition:t};let f=he(e,n);if(f.length===0)return {charOffset:0,pmPosition:t};let u=0,c=0;for(let g of f){if(g.kind==="tab"){let x=g.width??48,d=u+x;if(l$1<=d){let h=u+x/2;return l$1<h?{charOffset:c,pmPosition:t+c}:{charOffset:c+1,pmPosition:t+c+1}}u=d,c+=1;continue}if(g.kind==="image"){let x=g.width,d=u+x;if(l$1<=d){let h=u+x/2;return l$1<h?{charOffset:c,pmPosition:t+c}:{charOffset:c+1,pmPosition:t+c+1}}u=d,c+=1;continue}if(g.kind==="lineBreak"){if(l$1>=u)return {charOffset:c,pmPosition:t+c};c+=1;continue}if(g.kind==="text"){let x=g.text??"";if(x.length===0)continue;let d=ee(g),h=k(x,d),m=u+h.width;if(l$1<=m){let b=l$1-u,k=l(b,h.charWidths),P=c+k;return {charOffset:P,pmPosition:t+P}}u=m,c+=x.length;}}return {charOffset:o-t,pmPosition:o}}function te(e){let{fragment:n,block:a,measure:r,localX:t,localY:o}=e;if(n.kind!=="paragraph"||a.kind!=="paragraph"||r.kind!=="paragraph")return null;let s=n,i=a,l=r,f=Xe(l,o,s.fromLine,s.toLine);if(f===null)return null;let u=l.lines[f];if(!u)return null;let c=0;for(let k=s.fromLine;k<f;k++)c+=l.lines[k]?.lineHeight??0;let p=i.attrs?.indent,g=p?.left??0,x=p?.right??0,d=Math.max(0,n.width-g-x),h=t-g,{charOffset:m,pmPosition:b}=ve(i,u,h,d);return {pmPosition:b,charOffset:m,lineIndex:f}}function ge(e){let{cellBlock:n,cellMeasure:a,cellLocalX:r,cellLocalY:t}=e;if(!n||!a)return null;let o={fragment:{kind:"paragraph",blockId:n.id,x:0,y:0,width:a.lines.reduce((i,l)=>Math.max(i,l.width),100),fromLine:0,toLine:a.lines.length,height:a.totalHeight},block:n,measure:a,pageIndex:e.pageIndex,localX:r,localY:t};return te(o)?.pmPosition??null}function Ne(e,n){if(n)return ge(n);if(!e)return null;let{fragment:a}=e;return a.kind==="paragraph"?te(e)?.pmPosition??null:a.kind==="image"?a.pmStart??null:null}function pe(e,n,a,r){let t=e.pmStart??0,o=e.pmEnd??t;if(a<t||a>o)return null;let s=a-t;for(let i=0;i<n.lines.length;i++){let l=n.lines[i],{pmStart:f,pmEnd:u}=me(e,l);if(f===void 0||u===void 0)continue;let c=f-t,p=u-t;if(s>=c&&s<=p){let g=s-c,x=he(e,l),d=0,h=0;for(let m of x)if(m.kind==="tab"){if(g<=h+1)return g<=h?{x:d,lineIndex:i}:{x:d+(m.width??48),lineIndex:i};d+=m.width??48,h+=1;}else if(m.kind==="image"){if(g<=h+1)return g<=h?{x:d,lineIndex:i}:{x:d+m.width,lineIndex:i};d+=m.width,h+=1;}else if(m.kind==="lineBreak"){if(g<=h)return {x:d,lineIndex:i};h+=1;}else if(m.kind==="text"){let b=m.text??"";if(g<=h+b.length){let M=g-h,y=ee(m),w=k(b.slice(0,M),y);return {x:d+w.width,lineIndex:i}}let k$1=ee(m),P=k(b,k$1);d+=P.width,h+=b.length;}return {x:d,lineIndex:i}}}return null}function Ye(e,n,a,r,t,o,s){let i=pe(e,n,a);if(!i)return null;let l=e.attrs?.alignment??"left",f=e.attrs?.indent,u=f?.left??0,c=f?.right??0,p=Math.max(0,o-u-c),g=n.lines[i.lineIndex];if(!g)return null;let x=0;l==="center"?x=Math.max(0,(p-g.width)/2):l==="right"&&(x=Math.max(0,p-g.width));let d=0;for(let h=s;h<i.lineIndex;h++)d+=n.lines[h]?.lineHeight??0;return {x:r+u+x+i.x,y:t+d,height:g.lineHeight}}function be(e){return {fontFamily:e.fontFamily??"Arial",fontSize:e.fontSize??12,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function ne(e,n){return e.findIndex(a=>a.id===n)}function U(e,n){let r=(e.pmStart??0)+1,t=0,o;for(let l=0;l<e.runs.length&&l<=n.toRun;l++){let f=e.runs[l];if(f){if(l<n.fromRun)f.kind==="text"?t+=(f.text??"").length:t+=1;else if(l===n.fromRun){t+=n.fromChar,o=r+t;break}}}o===void 0&&(o=r);let s=0;for(let l=n.fromRun;l<=n.toRun&&l<e.runs.length;l++){let f=e.runs[l];if(f)if(f.kind==="text"){let u=f.text??"",c=l===n.fromRun?n.fromChar:0,p=l===n.toRun?n.toChar:u.length;s+=p-c;}else s+=1;}let i=o+s;return {pmStart:o,pmEnd:i}}function xe(e,n,a,r){let t=[];for(let o=0;o<n.lines.length;o++){let s=n.lines[o],i=U(e,s);i.pmStart===void 0||i.pmEnd===void 0||i.pmEnd>a&&i.pmStart<r&&t.push({line:s,index:o});}return t}function G(e,n,a){let r=U(e,n);return r.pmStart===void 0?0:Math.max(0,a-r.pmStart)}function W(e,n,a,r){let t=0,o=0;for(let s=n.fromRun;s<=n.toRun&&s<e.runs.length;s++){let i=e.runs[s];if(i){if(i.kind==="tab"){let l=i.width??48;if(o+1>=a)return a<=o?t:t+l;t+=l,o+=1;continue}if(i.kind==="image"){let l=i.width;if(o+1>=a)return a<=o?t:t+l;t+=l,o+=1;continue}if(i.kind==="lineBreak"){if(a<=o)return t;o+=1;continue}if(i.kind==="text"){let l=i.text??"",f=s===n.fromRun,u=s===n.toRun,c=f?n.fromChar:0,p=u?n.toChar:l.length,g=l.slice(c,p);if(o+g.length>=a){let h=a-o,m=be(i),b=k(g.slice(0,h),m);return t+b.width}let x=be(i),d=k(g,x);t+=d.width,o+=g.length;}}}return t}function j(e,n){let a=0;for(let r=0;r<n&&r<e.lines.length;r++)a+=e.lines[r].lineHeight;return a}function ze(e,n,a,r,t){if(r===t)return [];let o=Math.min(r,t),s=Math.max(r,t),i=[];for(let l=0;l<e.pages.length;l++){let f=e.pages[l],u=D(e,l);for(let c of f.fragments){if(c.kind==="paragraph"){let p=ne(n,c.blockId);if(p===-1)continue;let g=n[p],x=a[p];if(!g||g.kind!=="paragraph"||!x||x.kind!=="paragraph")continue;let d=g,h=x,m=c,b=xe(d,h,o,s);for(let{line:k,index:P}of b){if(P<m.fromLine||P>=m.toLine)continue;let M=U(d,k);if(M.pmStart===void 0||M.pmEnd===void 0)continue;let y=Math.max(M.pmStart,o),w=Math.min(M.pmEnd,s);if(y>=w)continue;let R=G(d,k,y),F=G(d,k,w),B=d.attrs?.indent,I=B?.left??0,v=B?.right??0,S=Math.max(0,c.width-I-v),L=W(d,k,R),E=W(d,k,F),T=d.attrs?.alignment??"left",H=0;T==="center"?H=Math.max(0,(S-k.width)/2):T==="right"&&(H=Math.max(0,S-k.width));let C=j(h,P)-j(h,m.fromLine),_=c.x+I+H+Math.min(L,E),Y=Math.max(1,Math.abs(E-L)),z=c.y+C;i.push({x:_,y:z+u,width:Y,height:k.lineHeight,pageIndex:l});}}if(c.kind==="table"){let p=ne(n,c.blockId);if(p===-1)continue;let g=n[p],x=a[p];if(!g||g.kind!=="table"||!x||x.kind!=="table")continue;let d=g,h=x,m=c,b=[],k=0;for(let F=0;F<h.rows.length;F++)b.push(Math.round(k)),k+=h.rows[F]?.height??0;b.push(Math.round(k));let P=m.headerRowCount??0,M=P>0&&m.continuesFromPrev?V(h,P):0,y=(b[m.fromRow]??0)+(m.topClip??0),w=m.bottomClip!==void 0?Math.round(m.height):M+((b[m.toRow]??0)-y),R=F=>M+(F-y);for(let F=m.fromRow;F<m.toRow&&F<d.rows.length;F++){let B=d.rows[F],I=h.rows[F];if(!B||!I)continue;let v=b[F]??0,S=0;for(let L$1=0;L$1<B.cells.length;L$1++){let E=B.cells[L$1],T=I.cells[L$1];if(!E||!T)continue;let H=E.padding?.top??0,C=L(E.blocks,T.blocks,H);for(let _=0;_<E.blocks.length;_++){let Y=E.blocks[_],z=T.blocks[_];if(!Y||Y.kind!=="paragraph"||!z||z.kind!=="paragraph")continue;let N=Y,He=z,we=C.lineTops[_]??[],Re=xe(N,He,o,s);for(let{line:O,index:Be}of Re){let V=U(N,O);if(V.pmStart===void 0||V.pmEnd===void 0)continue;let oe=Math.max(V.pmStart,o),re=Math.min(V.pmEnd,s);if(oe>=re)continue;let J=R(v+(we[Be]??0));if(J+O.lineHeight<=M||J>=w)continue;let Ie=G(N,O,oe),Se=G(N,O,re),ie=W(N,O,Ie,T.width),ae=W(N,O,Se,T.width);i.push({x:m.x+S+Math.min(ie,ae),y:m.y+J+u,width:Math.max(1,Math.abs(ae-ie)),height:O.lineHeight,pageIndex:l});}}S+=T.width;}}}if(c.kind==="image"){let p=c.pmStart??0;(c.pmEnd??p+1)>o&&p<s&&i.push({x:c.x,y:c.y+u,width:c.width,height:c.height,pageIndex:l});}}}return i}function Ge(e,n,a,r){for(let t=0;t<e.pages.length;t++){let o=e.pages[t],s=D(e,t);for(let i of o.fragments){if(i.kind==="paragraph"){let l=ne(n,i.blockId);if(l===-1)continue;let f=n[l],u=a[l];if(!f||f.kind!=="paragraph"||!u||u.kind!=="paragraph")continue;let c=f,p=u,g=i,x=c.pmStart??0,d=c.pmEnd??x;if(r<x||r>d)continue;for(let h=g.fromLine;h<g.toLine;h++){let m=p.lines[h];if(!m)continue;let b=U(c,m);if(!(b.pmStart===void 0||b.pmEnd===void 0)&&r>=b.pmStart&&r<=b.pmEnd){let k=G(c,m,r),P=c.attrs?.indent,M=P?.left??0,y=P?.right??0,w=Math.max(0,i.width-M-y),R=W(c,m,k),F=c.attrs?.alignment??"left",B=0;F==="center"?B=Math.max(0,(w-m.width)/2):F==="right"&&(B=Math.max(0,w-m.width));let I=j(p,h)-j(p,g.fromLine);return {x:i.x+M+B+R,y:i.y+I+s,height:m.lineHeight,pageIndex:t}}}}if(i.kind==="image"){let l=i.pmStart??0,f=i.pmEnd??l+1;if(r>=l&&r<=f){let u=r===l?0:i.width;return {x:i.x+u,y:i.y+s,height:i.height,pageIndex:t}}}}}return null}function We(e){return e.length<=1?false:new Set(e.map(a=>a.pageIndex)).size>1}function Ue(e){let n=new Map;for(let a of e){let r=n.get(a.pageIndex)??[];r.push(a),n.set(a.pageIndex,r);}return n}function Ve(e){if(e.kind!=="paragraph")return false;let n=e.attrs;return n?!!(n.borders?.top||n.borders?.bottom||n.spacingExplicit?.before||n.spacingExplicit?.after):false}function Te(e){return ke(e)}function ke(e){let n=new Set;for(let a=1;a<e.length;a++){let r=e[a-1],t=e[a];r.kind==="table"&&t.kind==="paragraph"&&(t.runs.length>0||Ve(t)||n.add(a));}return e.map((a,r)=>{if(a.kind==="table")return qe(a);if(a.kind!=="paragraph")return a;let t=n.has(r),o=a.attrs?.spacingExplicit,s=a.attrs?.spacing?.before!=null,i=a.attrs?.spacing?.after!=null,l=s&&!o?.before,f=i&&!o?.after,u=l||f;if(!u&&!t)return a;let c=a.attrs;return u&&c?.spacing&&(c={...c,spacing:{...c.spacing,before:o?.before?c.spacing.before:void 0,after:o?.after?c.spacing.after:void 0}}),t&&(c={...c??{},suppressEmptyParagraphHeight:true}),{...a,attrs:c}})}function qe(e){let n=false,a=e.rows.map(r=>{let t=false,o=r.cells.map(s=>{let i=ke(s.blocks);return i.some((f,u)=>f!==s.blocks[u])?(t=true,{...s,blocks:i}):s});return t?(n=true,{...r,cells:o}):r});return n?{...e,rows:a}:e}function je(e){return e?.align??e?.alignment}function Fe(e$1,n,a,r){let t=r.section==="header"?r.margins.header??48:r.pageSize.h-(r.margins.footer??48)-a,o=e$1.position?.vertical;if(!o)return n;let s=je(o),i=o.posOffset!==void 0?e(o.posOffset):void 0;if(o.relativeTo==="page"){if(i!==void 0)return i-t;if(s==="top")return -t;if(s==="bottom")return r.pageSize.h-e$1.height-t;if(s==="center")return (r.pageSize.h-e$1.height)/2-t}if(o.relativeTo==="margin"){let l=r.margins.top,f=r.pageSize.h-r.margins.top-r.margins.bottom;if(i!==void 0)return l+i-t;if(s==="top")return l-t;if(s==="bottom")return l+f-e$1.height-t;if(s==="center")return l+(f-e$1.height)/2-t}return i!==void 0?n+i:n}function Pe(e,n,a,r){let t=0,o=a,s=0;for(let i=0;i<e.length;i++){let l=e[i],f=n[i];if(!(!l||!f)){if(l.kind==="paragraph"&&f.kind==="paragraph"){let u=s,c=u+f.totalHeight;t=Math.min(t,u),o=Math.max(o,c);for(let p of l.runs){if(p.kind!=="image"||!p.position)continue;let g=Fe(p,u,a,r);t=Math.min(t,g),o=Math.max(o,g+p.height);}s=c;}else if(l.kind==="table"&&f.kind==="table"){let u=s+f.totalHeight;t=Math.min(t,s),o=Math.max(o,u),s=u;}else if(l.kind==="image"&&f.kind==="image"){let u=s+f.height;t=Math.min(t,s),o=Math.max(o,u),s=u;}else if(l.kind==="textBox"&&f.kind==="textBox"){let u=s+f.height;t=Math.min(t,s),o=Math.max(o,u),s=u;}}}return {visualTop:t,visualBottom:o}}function $e(e,n,a,r){if(!e||!e.content||e.content.length===0)return;let t=b(e.content,{styles:r.styles??void 0,theme:r.theme??null,defaultTabStopTwips:r.defaultTabStopTwips??null});return Me(t,n,a,r)}function Me(e,n,a,r){let t=c(e,{theme:r.theme??void 0});if(t.length===0)return;let o=Te(t),s=r.measureBlocks(o,n),i=s.reduce((u,c)=>c.kind==="paragraph"||c.kind==="table"?u+c.totalHeight:c.kind==="image"||c.kind==="textBox"?u+c.height:u,0),{visualTop:l,visualBottom:f}=Pe(t,s,i,a);return {blocks:o,measures:s,height:i,visualTop:l,visualBottom:f}}var $={header:null,footer:null};function Je(){$.header=null,$.footer=null;}function ye(e,n){let a=n.querySelectorAll(`.layout-page-${e}`);if(a.length===0)return null;let r=n.defaultView,t=r?r.innerHeight/2:0,o=a[0],s=1/0;for(let c of Array.from(a)){let p=c.getBoundingClientRect(),g=Math.abs((p.top+p.bottom)/2-t);g<s&&(s=g,o=c);}let i=$[e];if(i&&i.host===o&&i.host.isConnected)return i;let l=Array.from(o.querySelectorAll("span[data-pm-start][data-pm-end]")),f=Array.from(o.querySelectorAll("[data-pm-start][data-pm-end]")),u={host:o,spans:l,ranged:f};return $[e]=u,u}function Ke(e,n,a=globalThis.document){let r=e.state.selection;if(!r.empty)return null;let t=r.head,o=ye(n,a);if(!o)return null;let{host:s,spans:i}=o;for(let d of i){let h=Number(d.dataset.pmStart),m=Number(d.dataset.pmEnd);if(!(!Number.isFinite(h)||!Number.isFinite(m))&&t>=h&&t<=m){let b=s.ownerDocument.createRange(),k=s.ownerDocument.createTreeWalker(d,NodeFilter.SHOW_TEXT),P=t-h,M=k.nextNode();for(;M;){let R=M.data.length;if(P<=R){try{b.setStart(M,P),b.setEnd(M,P);let F=b.getClientRects()[0]??b.getBoundingClientRect();if(F&&F.height>0)return {top:F.top,left:F.left,height:F.height}}catch{}break}P-=R,M=k.nextNode();}let y=d.getBoundingClientRect(),w=(t-h)/Math.max(1,m-h);return {top:y.top,left:y.left+y.width*w,height:y.height}}}let l=s.querySelector(`[data-pm-start="${t}"]`);if(l){let d=l.getBoundingClientRect();return {top:d.top,left:d.left+1,height:d.height||16}}let f=o.ranged,u=null,c=1/0;for(let d of f){let h=Number(d.dataset.pmStart),m=Number(d.dataset.pmEnd);if(!Number.isFinite(h)||!Number.isFinite(m)||t<h||t>m)continue;let b=m-h;b<c&&(c=b,u=d);}if(u){let d=u.getBoundingClientRect(),h=Number(u.dataset.pmEnd),m=t>=h;return {top:d.top,left:m?d.right:d.left+1,height:d.height||16}}let p=null,g=-1/0;for(let d of f){let h=Number(d.dataset.pmStart);Number.isFinite(h)&&(h>t||h>g&&(g=h,p=d));}if(p){let d=p.getBoundingClientRect();return {top:d.top,left:d.right,height:d.height||16}}let x=s.getBoundingClientRect();return {top:x.top+2,left:x.left+2,height:16}}function Qe(e,n,a=globalThis.document){let r=e.state.selection;if(r.empty)return [];let t=r.from,o=r.to,s=[],i=ye(n,a);if(!i)return s;let{host:l,spans:f}=i;for(let u of f){let c=Number(u.dataset.pmStart),p=Number(u.dataset.pmEnd);if(!Number.isFinite(c)||!Number.isFinite(p)||p<=t||c>=o)continue;if(u.classList.contains("layout-run-tab")){let m=u.getBoundingClientRect();s.push({top:m.top,left:m.left,width:m.width,height:m.height});continue}let g=null;if(u.firstChild?.nodeType===Node.TEXT_NODE?g=u.firstChild:u.firstChild?.nodeType===Node.ELEMENT_NODE&&u.firstChild.tagName==="A"&&u.firstChild.firstChild?.nodeType===Node.TEXT_NODE&&(g=u.firstChild.firstChild),!g)continue;let x=Math.max(0,t-c),d=Math.min(g.length,o-c);if(x>=d)continue;let h=l.ownerDocument.createRange();h.setStart(g,x),h.setEnd(g,d);for(let m of Array.from(h.getClientRects()))s.push({top:m.top,left:m.left,width:m.width,height:m.height});}return s}var Ze=816,et=1056,tt=96,nt=48;function A(e){return Math.round(e/1440*96)}function ot(e){return {w:e?.pageWidth?A(e.pageWidth):816,h:e?.pageHeight?A(e.pageHeight):1056}}function rt(e){return {top:e?.marginTop?A(e.marginTop):96,right:e?.marginRight?A(e.marginRight):96,bottom:e?.marginBottom?A(e.marginBottom):96,left:e?.marginLeft?A(e.marginLeft):96,header:e?.headerDistance?A(e.headerDistance):48,footer:e?.footerDistance?A(e.footerDistance):48}}function it(e,n){let a={header:null,footer:null,firstHeader:null,firstFooter:null};if(!e?.package)return a;let r=e.package.headers,t=e.package.footers,o=null,s=null,i=null,l=null;if(r&&n?.headerReferences){let f=n.headerReferences.find(c=>c.type==="default");f?.rId&&(o=r.get(f.rId)??null);let u=n.headerReferences.find(c=>c.type==="first");u?.rId&&(i=r.get(u.rId)??null);}if(t&&n?.footerReferences){let f=n.footerReferences.find(c=>c.type==="default");f?.rId&&(s=t.get(f.rId)??null);let u=n.footerReferences.find(c=>c.type==="first");u?.rId&&(l=t.get(u.rId)??null);}return n?.titlePg||(!o&&i&&(o=i),!s&&l&&(s=l)),{header:o,footer:s,firstHeader:i,firstFooter:l}}export{Qe as A,Ze as B,et as C,tt as D,nt as E,ot as F,rt as G,it as H,Q as a,D as b,Ee as c,fe as d,Ce as e,de as f,De as g,Ae as h,_e as i,Oe as j,te as k,ge as l,Ne as m,pe as n,Ye as o,ze as p,Ge as q,We as r,Ue as s,Te as t,Fe as u,Pe as v,$e as w,Me as x,Je as y,Ke as z};
@@ -0,0 +1 @@
1
+ import {v,D}from'./chunk-7JQVKJRN.mjs';var O=30,F=200,y=24,R=10,B=10,C=24;function N(_){let{mouseX:n,mouseY:l,pagesContainer:d,target:L,hfEditMode:m,edgeProximity:r=O}=_,T=`.${v.table}`,H=`.${v.row}`,p=`.${v.cell}`,h=`.${D.header}`,M=`.${D.footer}`,E=t=>{let o=!!t.closest(h),e=!!t.closest(M);return !o&&!e?!m:o?m==="header":m==="footer"},c=L.closest(T);if(c&&!E(c)&&(c=null),!c){let t=d.querySelectorAll(T);for(let o of Array.from(t)){if(!E(o))continue;let e=o.getBoundingClientRect(),s=n>=e.left-r&&n<e.left,A=l>=e.top-r&&l<e.top,P=n>=e.left-r&&n<=e.right,I=l>=e.top-r&&l<=e.bottom;if(s&&I||A&&P){c=o;break}}}if(!c)return null;let i=c.getBoundingClientRect(),b=n<i.left+r&&n>=i.left-r,g=l<i.top+r&&l>=i.top-r;if(!b&&!g)return null;let u=c.querySelectorAll(`:scope > ${H}`);if(u.length===0)return null;let S=t=>t&&Number(t.dataset.pmStart)||0;if(b)for(let t=0;t<u.length;t++){let o=u[t].getBoundingClientRect();if(l>=o.top&&l<=o.bottom){let e=u[t].querySelector(p),s=S(e);if(!s)break;return {type:"row",clientX:i.left-y,clientY:o.top+o.height/2-R,cellPmPos:s}}}if(g){let t=u[0].querySelectorAll(`:scope > ${p}`);for(let o=0;o<t.length;o++){let e=t[o].getBoundingClientRect();if(n>=e.left&&n<=e.right){let s=S(t[o]);if(!s)break;return {type:"column",clientX:e.left+e.width/2-B,clientY:i.top-C,cellPmPos:s}}}}return null}export{O as a,F as b,N as c};
@@ -1 +1 @@
1
- import {a}from'./chunk-ICE6NC3S.mjs';var e=a.getCommands();function g(t){return e.setAlignment(t)}var l=e.alignLeft(),u=e.alignCenter(),x=e.alignRight(),C=e.alignJustify();function f(t,n="auto"){return e.setLineSpacing(t,n)}var S=e.singleSpacing(),L=e.oneAndHalfSpacing(),b=e.doubleSpacing();function y(t=720){return e.increaseIndent(t)}function v(t=720){return e.decreaseIndent(t)}function A(t){return e.setIndentLeft(t)}function I(t){return e.setIndentRight(t)}function h(t,n){return e.setIndentFirstLine(t,n)}var R=e.toggleBulletList(),T=e.toggleNumberedList(),P=e.increaseListLevel(),B=e.decreaseListLevel(),k=e.removeList();function E(t){return e.setSpaceBefore(t)}function F(t){return e.setSpaceAfter(t)}function H(t,n){return e.applyStyle(t,n)}var J=e.clearStyle();function N(t){return e.insertSectionBreak(t)}var O=e.removeSectionBreak();function M(t,n="left",r="none"){return e.addTabStop(t,n,r)}function j(t){return e.removeTabStop(t)}var q=e.setRtl(),w=e.setLtr(),z=e.generateTOC();export{j as A,q as B,w as C,z as D,g as a,l as b,u as c,x as d,C as e,f,S as g,L as h,b as i,y as j,v as k,A as l,I as m,h as n,R as o,T as p,P as q,B as r,k as s,E as t,F as u,H as v,J as w,N as x,O as y,M as z};
1
+ import {a}from'./chunk-4GFTMGSV.mjs';var e=a.getCommands();function g(t){return e.setAlignment(t)}var l=e.alignLeft(),u=e.alignCenter(),x=e.alignRight(),C=e.alignJustify();function f(t,n="auto"){return e.setLineSpacing(t,n)}var S=e.singleSpacing(),L=e.oneAndHalfSpacing(),b=e.doubleSpacing();function y(t=720){return e.increaseIndent(t)}function v(t=720){return e.decreaseIndent(t)}function A(t){return e.setIndentLeft(t)}function I(t){return e.setIndentRight(t)}function h(t,n){return e.setIndentFirstLine(t,n)}var R=e.toggleBulletList(),T=e.toggleNumberedList(),P=e.increaseListLevel(),B=e.decreaseListLevel(),k=e.removeList();function E(t){return e.setSpaceBefore(t)}function F(t){return e.setSpaceAfter(t)}function H(t,n){return e.applyStyle(t,n)}var J=e.clearStyle();function N(t){return e.insertSectionBreak(t)}var O=e.removeSectionBreak();function M(t,n="left",r="none"){return e.addTabStop(t,n,r)}function j(t){return e.removeTabStop(t)}var q=e.setRtl(),w=e.setLtr(),z=e.generateTOC();export{j as A,q as B,w as C,z as D,g as a,l as b,u as c,x as d,C as e,f,S as g,L as h,b as i,y as j,v as k,A as l,I as m,h as n,R as o,T as p,P as q,B as r,k as s,E as t,F as u,H as v,J as w,N as x,O as y,M as z};
@@ -0,0 +1,4 @@
1
+ 'use strict';var chunkSCK6ZM5V_js=require('./chunk-SCK6ZM5V.js'),chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js'),chunk3R7QHNI5_js=require('./chunk-3R7QHNI5.js');var He={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},J={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ge={name:"Office Theme",colorScheme:He,fontScheme:J},gt=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function ht(e){if(!e)return null;switch(chunk3R7QHNI5_js.d(e.name||"")){case "srgbClr":return chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val")??null;case "sysClr":{let n=chunk3R7QHNI5_js.j(e,"a","lastClr")??chunk3R7QHNI5_js.j(e,null,"lastClr");if(n)return n;switch(chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val");return null}default:return null}}function wt(e){let t={...He};if(!e)return t;for(let n of gt){let o=chunk3R7QHNI5_js.e(e,"a",n);if(o){let r=chunk3R7QHNI5_js.i(o);if(r.length>0){let a=ht(r[0]);a&&(t[n]=a);}}}return t}function Ne(e){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","latin");n&&(t.latin=chunk3R7QHNI5_js.j(n,"a","typeface")??chunk3R7QHNI5_js.j(n,null,"typeface")??"");let o=chunk3R7QHNI5_js.e(e,"a","ea");o&&(t.ea=chunk3R7QHNI5_js.j(o,"a","typeface")??chunk3R7QHNI5_js.j(o,null,"typeface")??"");let r=chunk3R7QHNI5_js.e(e,"a","cs");r&&(t.cs=chunk3R7QHNI5_js.j(r,"a","typeface")??chunk3R7QHNI5_js.j(r,null,"typeface")??"");let a=chunk3R7QHNI5_js.f(e,"a","font");for(let u of a){let l=chunk3R7QHNI5_js.j(u,"a","script")??chunk3R7QHNI5_js.j(u,null,"script"),f=chunk3R7QHNI5_js.j(u,"a","typeface")??chunk3R7QHNI5_js.j(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function yt(e){let t={...J};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","majorFont");n&&(t.majorFont=Ne(n));let o=chunk3R7QHNI5_js.e(e,"a","minorFont");return o&&(t.minorFont=Ne(o)),t}function In(e){if(!e)return {...ge};try{let t=chunk3R7QHNI5_js.c(e);if(!t)return {...ge};let n=chunk3R7QHNI5_js.j(t,"a","name")??chunk3R7QHNI5_js.j(t,null,"name")??"Office Theme",o=chunk3R7QHNI5_js.e(t,"a","themeElements"),r=chunk3R7QHNI5_js.e(o,"a","clrScheme"),a=wt(r),u=chunk3R7QHNI5_js.e(o,"a","fontScheme"),l=yt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...ge}}}function bt(e,t="latin"){if(!e?.fontScheme?.majorFont)return J.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function Ae(e,t="latin"){if(!e?.fontScheme?.minorFont)return J.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function $(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),o=t.toLowerCase().includes("minor"),r="latin",a=t.toLowerCase();return a.includes("eastasia")?r="ea":(a.includes("bidi")||a.includes("cs"))&&(r="cs"),n?bt(e,r):o?Ae(e,r):Ae(e,"latin")}function Ie(e){if(!e)return;let t=chunk3R7QHNI5_js.l(e,"w","w")??0,n=chunk3R7QHNI5_js.j(e,"w","type")??"dxa",o="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(o=n),{value:t,type:o}}function O(e){return Ie(e)}function V(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),r=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0}}function ee(e){return V(e)}function W(e){if(!e)return;let o={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunk3R7QHNI5_js.j(e,"w","color"),l=chunk3R7QHNI5_js.j(e,"w","themeColor"),f=chunk3R7QHNI5_js.j(e,"w","themeTint"),c=chunk3R7QHNI5_js.j(e,"w","themeShade");(u||l||f||c)&&(o.color={rgb:u??void 0,themeColor:l,themeTint:f??void 0,themeShade:c??void 0});let p=chunk3R7QHNI5_js.j(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let d=chunk3R7QHNI5_js.j(e,"w","frame");return (d==="1"||d==="true")&&(o.frame=true),o}function te(e){if(!e)return;let t={},n=W(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let o=W(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=W(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));r&&(t.left=r);let a=W(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));a&&(t.right=a);let u=W(chunk3R7QHNI5_js.e(e,"w","insideH"));u&&(t.insideH=u);let l=W(chunk3R7QHNI5_js.e(e,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function ne(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let o=O(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=O(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));r&&(t.left=r);let a=O(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function oe(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","themeFill");if(o){t.fill={themeColor:o};let u=chunk3R7QHNI5_js.j(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=chunk3R7QHNI5_js.j(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let r=chunk3R7QHNI5_js.j(e,"w","color");r&&r!=="auto"&&(t.color={rgb:r});let a=chunk3R7QHNI5_js.j(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function he(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunk3R7QHNI5_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunk3R7QHNI5_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunk3R7QHNI5_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunk3R7QHNI5_js.j(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=chunk3R7QHNI5_js.j(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=chunk3R7QHNI5_js.j(e,"w","val");if(f){let c=parseInt(f,16);isNaN(c)||(c&32&&(t.firstRow=true),c&64&&(t.lastRow=true),c&128&&(t.firstColumn=true),c&256&&(t.lastColumn=true),c&512&&(t.noHBand=true),c&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function we(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let o=chunk3R7QHNI5_js.j(e,"w","vertAnchor");(o==="margin"||o==="page"||o==="text")&&(t.vertAnchor=o);let r=chunk3R7QHNI5_js.l(e,"w","tblpX");r!==void 0&&(t.tblpX=r);let a=chunk3R7QHNI5_js.j(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=chunk3R7QHNI5_js.l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l=chunk3R7QHNI5_js.j(e,"w","tblpYSpec");l&&(t.tblpYSpec=l);let f=chunk3R7QHNI5_js.l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=chunk3R7QHNI5_js.l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let p=chunk3R7QHNI5_js.l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let d=chunk3R7QHNI5_js.l(e,"w","rightFromText");if(d!==void 0&&(t.rightFromText=d),Object.keys(t).length!==0)return t}function Tt(e){return e.columnWidths&&e.columnWidths.length>0?e.columnWidths.length:e.rows.length===0?0:e.rows[0].cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function Ct(e){return e.rows.length}function Ft(e){return e.formatting?.vMerge==="continue"}function xt(e){return e.formatting?.vMerge==="restart"}function kt(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var St={richText:"richText",text:"plainText",date:"date",dropDownList:"dropDownList",comboBox:"comboBox",picture:"picture",docPartObj:"buildingBlockGallery",docPartList:"buildingBlockGallery",group:"group",equation:"equation",citation:"citation",bibliography:"bibliography",checkbox:"checkbox"};function Mt(e){if(!e||!e.elements)return "richText";for(let t of e.elements){if(t.type!=="element"||!t.name)continue;let n=chunk3R7QHNI5_js.d(t.name),o=St[n];if(o)return o}return "richText"}function Rt(e){let t=[];for(let n of e.elements??[])n.type==="element"&&chunk3R7QHNI5_js.d(n.name||"")==="listItem"&&t.push({displayText:chunk3R7QHNI5_js.j(n,"w","displayText")||"",value:chunk3R7QHNI5_js.j(n,"w","value")||""});return t}function re(e,t){let n={sdtType:Mt(e)};if(e){n.rawPropertiesXml=chunk3R7QHNI5_js.b(e);for(let o of e.elements??[]){if(o.type!=="element"||!o.name)continue;switch(chunk3R7QHNI5_js.d(o.name)){case "id":{let a=chunk3R7QHNI5_js.j(o,"w","val");if(a!=null){let u=parseInt(a,10);Number.isNaN(u)||(n.id=u);}break}case "alias":n.alias=chunk3R7QHNI5_js.j(o,"w","val")??void 0;break;case "tag":n.tag=chunk3R7QHNI5_js.j(o,"w","val")??void 0;break;case "lock":n.lock=chunk3R7QHNI5_js.j(o,"w","val")??"unlocked";break;case "placeholder":{let a=chunk3R7QHNI5_js.e(o,"w","docPart");a&&(n.placeholder=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "showingPlcHdr":{let a=chunk3R7QHNI5_js.j(o,"w","val");n.showingPlaceholder=a==null||!/^(0|false|off)$/i.test(a);break}case "date":{let a=chunk3R7QHNI5_js.e(o,"w","dateFormat");a&&(n.dateFormat=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "dropDownList":case "comboBox":n.listItems=Rt(o);break;case "checkbox":{let a=chunk3R7QHNI5_js.e(o,"w14","checked")??chunk3R7QHNI5_js.e(o,"w","checked");n.checked=a?chunk3R7QHNI5_js.j(a,"w14","val")==="1"||chunk3R7QHNI5_js.j(a,"w","val")==="1":false;break}case "dataBinding":{let a={},u=chunk3R7QHNI5_js.j(o,"w","xpath"),l=chunk3R7QHNI5_js.j(o,"w","storeItemID"),f=chunk3R7QHNI5_js.j(o,"w","prefixMappings");u!=null&&(a.xpath=u),l!=null&&(a.storeItemID=l),f!=null&&(a.prefixMappings=f),n.dataBinding=a;break}}}}return t&&(n.rawEndPropertiesXml=chunk3R7QHNI5_js.b(t)),n}var Le={183:"\u2022",111:"\u25CB",167:"\u25A0",252:"\u2713",110:"\u25A0",113:"\u25CB",117:"\u25C6",118:"\u2756",168:"\u2713",251:"\u2713",254:"\u2713",61623:"\u2022",61550:"\u25A0",61551:"\u25CB",61607:"\u25A0",61692:"\u2713",8226:"\u2022",9679:"\u25CF",9675:"\u25CB",9632:"\u25A0",9633:"\u25A1",9670:"\u25C6",9671:"\u25C7",8211:"\u2013",8212:"\u2014",62:">",45:"-"};function Et(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Le[t]?Le[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Pt(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=Et(t.marker||""));}function Bt(e,t,n,o,r,a,u){if(e.content.length===0)return;let l=chunk3R7QHNI5_js.i(t),f=0;function c(p){if(!chunkSCK6ZM5V_js.h(p))return;let d=chunkSCK6ZM5V_js.j(p);if(!d)return;let w=chunk3R7QHNI5_js.n(p,"wps","wsp");if(w){let b=chunkSCK6ZM5V_js.k(w);b&&(d.content=chunkSCK6ZM5V_js.g(b,Y,null,n,o,r,a??void 0,u??void 0));}let C={type:"shape",shapeType:"rect",size:d.size,position:d.position,wrap:d.wrap,fill:d.fill,outline:d.outline,textBody:{content:d.content,margins:d.margins}};d.id&&(C.id=d.id);let y={type:"shape",shape:C},h=f;if(h>=e.content.length){h=-1;for(let b=e.content.length-1;b>=0;b--)if(e.content[b].type==="run"){h=b;break}}if(h>=0){let b=e.content[h];b.type==="run"&&b.content.push(y);}}for(let p of l){if(chunk3R7QHNI5_js.d(p.name??"")!=="r")continue;let d=chunk3R7QHNI5_js.i(p);for(let w of d){let C=chunk3R7QHNI5_js.d(w.name??"");if(C==="drawing")c(w);else if(C==="AlternateContent"){let y=chunk3R7QHNI5_js.i(w),b=y.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Choice")??y.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Fallback");if(b)for(let P of chunk3R7QHNI5_js.i(b))chunk3R7QHNI5_js.d(P.name??"")==="drawing"&&c(P);}}f++;}}function q(e,t,n,o,r,a,u){let l=[],f=chunk3R7QHNI5_js.i(e);for(let c of f){let p=c.name??"";if(p==="w:p"||p.endsWith(":p")){let d=Y(c,t,n,o,r,a,u);Bt(d,c,t,n,o,r,a),Pt(d),l.push(d);}else if(p==="w:tbl"||p.endsWith(":tbl")){let d=ye(c,t,n,o,r,a,u);l.push(d);}else (p==="w:sdt"||p.endsWith(":sdt"))&&l.push(vt(c,t,n,o,r,a,u));}return l}function vt(e,t,n,o,r,a,u){let l=chunk3R7QHNI5_js.e(e,"w","sdtPr"),f=chunk3R7QHNI5_js.e(e,"w","sdtEndPr"),c=chunk3R7QHNI5_js.e(e,"w","sdtContent"),p=re(l,f),d=c?q(c,t,n,o,r,a,u):[];return {type:"blockSdt",properties:p,content:d}}function Xe(e){let t={};if(!e)return t;for(let n of e.split(";")){let o=n.indexOf(":");if(o<0)continue;let r=n.slice(0,o).trim().toLowerCase(),a=n.slice(o+1).trim();r&&(t[r]=a);}return t}function Nt(e){if(!e)return "#C0C0C0";let t=e.trim();return t.startsWith("#")?t:/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:t}function Oe(e){if(!e)return;let t=e.match(/^(-?[0-9.]+)(pt|px|in|cm|mm)?$/);if(!t)return;let n=parseFloat(t[1]);if(!isNaN(n))switch(t[2]){case "in":return n*96;case "cm":return n/2.54*96;case "mm":return n/25.4*96;case "px":return n;default:return n*96/72}}var De=914400/96;function At(e,t,n){if(!e||!t)return {};let o=t.get(e);if(!o?.target)return {};let r=o.target,a=r.split("/").pop()??r,u=[r,r.replace(/^\/+/,""),`word/${r.replace(/^\/+/,"")}`,`word/media/${a}`,`media/${a}`];if(n)for(let l of u){let f=l.toLowerCase();for(let[c,p]of n.entries())if(c.toLowerCase()===f)return {dataUrl:p.dataUrl??p.base64,mediaPath:p.path,contentType:p.mimeType}}return {}}function Ht(e,t){return !!(t.includes("watermark")||(chunk3R7QHNI5_js.j(e,null,"type")??"").includes("_t136"))}function We(e,t=null,n=null){if(!e)return;let o=chunk3R7QHNI5_js.o(e,"v","shape");for(let r of o){let a=(chunk3R7QHNI5_js.j(r,null,"id")??"").toLowerCase(),u=chunk3R7QHNI5_js.i(r),l=u.find(w=>w.name==="v:textpath"||w.name?.endsWith(":textpath")),f=u.find(w=>w.name==="v:imagedata"||w.name?.endsWith(":imagedata"));if(!Ht(r,a)&&!l&&!f)continue;let c=Xe(chunk3R7QHNI5_js.j(r,null,"style")),p=parseFloat(c.rotation??"0")||0,d=Math.abs(p)>5;if(l){let w=chunk3R7QHNI5_js.j(l,null,"string")??"",h=(Xe(chunk3R7QHNI5_js.j(l,null,"style"))["font-family"]??"Calibri").replace(/["']/g,"").replace(/^&quot;|&quot;$/g,"").trim()||"Calibri",b=u.find(x=>x.name==="v:fill"||x.name?.endsWith(":fill")),P=b?chunk3R7QHNI5_js.j(b,null,"opacity"):null,S=P!=null&&parseFloat(P)<1;return {kind:"text",text:w,font:h,color:Nt(chunk3R7QHNI5_js.j(r,null,"fillcolor")),semitransparent:S,layout:d?"diagonal":"horizontal",fontSize:void 0}}if(f){let w=chunk3R7QHNI5_js.j(f,"r","id")??chunk3R7QHNI5_js.j(f,"r","embed")??chunk3R7QHNI5_js.j(f,null,"id")??"",{dataUrl:C,mediaPath:y,contentType:h}=At(w,t,n),b=chunk3R7QHNI5_js.j(f,null,"gain"),P=chunk3R7QHNI5_js.j(f,null,"blacklevel"),S=b!=null||P!=null,x=Oe(c.width),m=Oe(c.height);return {kind:"picture",relId:w||void 0,mediaPath:y,contentType:h,dataUrl:C,scale:1,washout:S,widthEmu:x!=null?Math.round(x*De):void 0,heightEmu:m!=null?Math.round(m*De):void 0}}}}function Ve(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function je(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:Ve(t),rId:n}}function Ue(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:Ve(t),rId:n}}function Jn(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=chunk3R7QHNI5_js.a(e);if(!f)return l;let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:hdr"||d.name?.endsWith(":hdr")));if(!c)return l;l.content=q(c,n,o,r,a,u,{inHeaderFooter:true});let p=We(c,a,u);return p&&(l.watermark=p),l}function eo(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=chunk3R7QHNI5_js.a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:ftr"||p.name?.endsWith(":ftr")));return c&&(l.content=q(c,n,o,r,a,u,{inHeaderFooter:true})),l}function ze(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function _e(e,t,n,o,r,a){let u=q(e,t,n,o,r,a),l=false;for(let f of chunk3R7QHNI5_js.i(e)){let c=f.name??"";if(c==="w:bookmarkStart"||c.endsWith(":bookmarkStart")||c==="w:bookmarkEnd"||c.endsWith(":bookmarkEnd")||c==="w:customXml"||c.endsWith(":customXml")){l=true;break}}return {blocks:u,hasUnmodeled:l}}function It(e,t,n,o,r,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=ze(l),{blocks:c,hasUnmodeled:p}=_e(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c,...p?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function ro(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ie(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return ie(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:footnotes"||d.name?.endsWith(":footnotes")));if(!c)return ie(u,l);let p=chunk3R7QHNI5_js.f(c,"w","footnote");for(let d of p){let w=It(d,t,n,o,r,a);u.set(w.id,w),l.push(w);}return ie(u,l)}function ie(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Lt(e,t,n,o,r,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=ze(l),{blocks:c,hasUnmodeled:p}=_e(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c,...p?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function io(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ae(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return ae(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:endnotes"||d.name?.endsWith(":endnotes")));if(!c)return ae(u,l);let p=chunk3R7QHNI5_js.f(c,"w","endnote");for(let d of p){let w=Lt(d,t,n,o,r,a);u.set(w.id,w),l.push(w);}return ae(u,l)}function ae(e,t){return {byId:e,endnotes:t,getEndnote(n){return e.get(n)},hasEndnote(n){return e.has(n)},getNormalEndnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function qe(e){return e?{decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",bullet:"bullet",chicago:"chicago",none:"none"}[e]:void 0}function Xt(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ot(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ge(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function $e(e){let t={};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"w","pos");if(n){let u=chunk3R7QHNI5_js.j(n,"w","val");t.position=Xt(u);}let o=chunk3R7QHNI5_js.e(e,"w","numFmt");if(o){let u=chunk3R7QHNI5_js.j(o,"w","val");t.numFmt=qe(u);}let r=chunk3R7QHNI5_js.e(e,"w","numStart");r&&(t.numStart=chunk3R7QHNI5_js.l(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=Ge(u);}return t}function Ye(e){let t={};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"w","pos");if(n){let u=chunk3R7QHNI5_js.j(n,"w","val");t.position=Ot(u);}let o=chunk3R7QHNI5_js.e(e,"w","numFmt");if(o){let u=chunk3R7QHNI5_js.j(o,"w","val");t.numFmt=qe(u);}let r=chunk3R7QHNI5_js.e(e,"w","numStart");r&&(t.numStart=chunk3R7QHNI5_js.l(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=Ge(u);}return t}function ao(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
2
+ `)}function lo(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
3
+ `)}function so(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function uo(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Dt(e,t,n,o){if(!e&&!t)return;let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),Object.keys(r).length>0?r:void 0}function le(e){if(!e)return;let o={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunk3R7QHNI5_js.j(e,"w","color"),l=chunk3R7QHNI5_js.j(e,"w","themeColor"),f=chunk3R7QHNI5_js.j(e,"w","themeTint"),c=chunk3R7QHNI5_js.j(e,"w","themeShade"),p=Dt(u,l,f,c);p&&(o.color=p);let d=chunk3R7QHNI5_js.j(e,"w","shadow");(d==="1"||d==="true")&&(o.shadow=true);let w=chunk3R7QHNI5_js.j(e,"w","frame");return (w==="1"||w==="true")&&(o.frame=true),o}function Wt(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function Vt(e){switch(e){case "continuous":return "continuous";case "nextPage":return "nextPage";case "oddPage":return "oddPage";case "evenPage":return "evenPage";case "nextColumn":return "nextColumn";default:return}}function jt(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function Ut(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function Ze(e,t){let n={};if(!e)return n;let o=chunk3R7QHNI5_js.e(e,"w","pgSz");if(o){let m=chunk3R7QHNI5_js.l(o,"w","w");m!==void 0&&(n.pageWidth=m);let F=chunk3R7QHNI5_js.l(o,"w","h");F!==void 0&&(n.pageHeight=F);let E=chunk3R7QHNI5_js.j(o,"w","orient"),T=Wt(E);T&&(n.orientation=T);}let r=chunk3R7QHNI5_js.e(e,"w","pgMar");if(r){let m=chunk3R7QHNI5_js.l(r,"w","top");m!==void 0&&(n.marginTop=m);let F=chunk3R7QHNI5_js.l(r,"w","bottom");F!==void 0&&(n.marginBottom=F);let E=chunk3R7QHNI5_js.l(r,"w","left");E!==void 0&&(n.marginLeft=E);let T=chunk3R7QHNI5_js.l(r,"w","right");T!==void 0&&(n.marginRight=T);let k=chunk3R7QHNI5_js.l(r,"w","header");k!==void 0&&(n.headerDistance=k);let B=chunk3R7QHNI5_js.l(r,"w","footer");B!==void 0&&(n.footerDistance=B);let v=chunk3R7QHNI5_js.l(r,"w","gutter");v!==void 0&&(n.gutter=v);}let a=chunk3R7QHNI5_js.e(e,"w","cols");if(a){let m=chunk3R7QHNI5_js.l(a,"w","num");m!==void 0&&(n.columnCount=m);let F=chunk3R7QHNI5_js.l(a,"w","space");F!==void 0&&(n.columnSpace=F);let E=chunk3R7QHNI5_js.j(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let T=chunk3R7QHNI5_js.j(a,"w","sep");(T==="1"||T==="true")&&(n.separator=true);let k=chunk3R7QHNI5_js.f(a,"w","col");if(k.length>0){n.columns=[];for(let B of k){let v={},I=chunk3R7QHNI5_js.l(B,"w","w");I!==void 0&&(v.width=I);let H=chunk3R7QHNI5_js.l(B,"w","space");H!==void 0&&(v.space=H),n.columns.push(v);}n.columnCount===void 0&&(n.columnCount=k.length);}}let u=chunk3R7QHNI5_js.e(e,"w","type");if(u){let m=chunk3R7QHNI5_js.j(u,"w","val"),F=Vt(m);F&&(n.sectionStart=F);}let l=chunk3R7QHNI5_js.e(e,"w","vAlign");if(l){let m=chunk3R7QHNI5_js.j(l,"w","val"),F=jt(m);F&&(n.verticalAlign=F);}let f=chunk3R7QHNI5_js.e(e,"w","bidi");f&&(n.bidi=chunk3R7QHNI5_js.m(f));let c=chunk3R7QHNI5_js.f(e,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>je(m)));let p=chunk3R7QHNI5_js.f(e,"w","footerReference");p.length>0&&(n.footerReferences=p.map(m=>Ue(m)));let d=chunk3R7QHNI5_js.e(e,"w","titlePg");d&&(n.titlePg=chunk3R7QHNI5_js.m(d));let w=chunk3R7QHNI5_js.e(e,"w","evenAndOddHeaders");w&&(n.evenAndOddHeaders=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","lnNumType");if(C){n.lineNumbers={};let m=chunk3R7QHNI5_js.l(C,"w","start");m!==void 0&&(n.lineNumbers.start=m);let F=chunk3R7QHNI5_js.l(C,"w","countBy");F!==void 0&&(n.lineNumbers.countBy=F);let E=chunk3R7QHNI5_js.l(C,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let T=chunk3R7QHNI5_js.j(C,"w","restart"),k=Ut(T);k&&(n.lineNumbers.restart=k);}let y=chunk3R7QHNI5_js.e(e,"w","pgBorders");if(y){n.pageBorders={};let m=le(chunk3R7QHNI5_js.e(y,"w","top"));m&&(n.pageBorders.top=m);let F=le(chunk3R7QHNI5_js.e(y,"w","bottom"));F&&(n.pageBorders.bottom=F);let E=le(chunk3R7QHNI5_js.e(y,"w","left"));E&&(n.pageBorders.left=E);let T=le(chunk3R7QHNI5_js.e(y,"w","right"));T&&(n.pageBorders.right=T);let k=chunk3R7QHNI5_js.j(y,"w","display");(k==="allPages"||k==="firstPage"||k==="notFirstPage")&&(n.pageBorders.display=k);let B=chunk3R7QHNI5_js.j(y,"w","offsetFrom");(B==="page"||B==="text")&&(n.pageBorders.offsetFrom=B);let v=chunk3R7QHNI5_js.j(y,"w","zOrder");(v==="front"||v==="back")&&(n.pageBorders.zOrder=v);}let h=chunk3R7QHNI5_js.e(e,"w","background");if(h){n.background={};let m=chunk3R7QHNI5_js.j(h,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let F=chunk3R7QHNI5_js.j(h,"w","themeColor");F&&(n.background.themeColor=F);let E=chunk3R7QHNI5_js.j(h,"w","themeTint");E&&(n.background.themeTint=E);let T=chunk3R7QHNI5_js.j(h,"w","themeShade");T&&(n.background.themeShade=T);}let b=chunk3R7QHNI5_js.e(e,"w","footnotePr");if(b){let m=$e(b);Object.keys(m).length>0&&(n.footnotePr=m);}let P=chunk3R7QHNI5_js.e(e,"w","endnotePr");if(P){let m=Ye(P);Object.keys(m).length>0&&(n.endnotePr=m);}let S=chunk3R7QHNI5_js.e(e,"w","docGrid");if(S){n.docGrid={};let m=chunk3R7QHNI5_js.j(S,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let F=chunk3R7QHNI5_js.l(S,"w","linePitch");F!==void 0&&(n.docGrid.linePitch=F);let E=chunk3R7QHNI5_js.l(S,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let x=chunk3R7QHNI5_js.e(e,"w","paperSrc");if(x){let m=chunk3R7QHNI5_js.l(x,"w","first");m!==void 0&&(n.paperSrcFirst=m);let F=chunk3R7QHNI5_js.l(x,"w","other");F!==void 0&&(n.paperSrcOther=F);}return n}function go(){return {pageWidth:12240,pageHeight:15840,orientation:"portrait",marginTop:1440,marginBottom:1440,marginLeft:1440,marginRight:1440,headerDistance:720,footerDistance:720,gutter:0,columnCount:1,columnSpace:720,equalWidth:true,sectionStart:"nextPage",verticalAlign:"top"}}function Ke(e,t){if(!t||t.length===0)return e;let n=new Set((e??[]).map(r=>r.type)),o=t.filter(r=>!n.has(r.type));return o.length===0?e:[...e??[],...o]}function ho(e){if(e.length<2)return e;let t=[e[0]];for(let n=1;n<e.length;n++){let o=t[n-1].properties,r=e[n].properties,a=Ke(r.headerReferences,o.headerReferences),u=Ke(r.footerReferences,o.footerReferences),l=r.titlePg!==void 0?r.titlePg:o.titlePg;if(a===r.headerReferences&&u===r.footerReferences&&l===r.titlePg){t.push(e[n]);continue}t.push({...e[n],properties:{...r,headerReferences:a,footerReferences:u,titlePg:l}});}return t}function zt(e,t){return !e&&!t?true:!(!e||!t||e.bold!==t.bold||e.boldCs!==t.boldCs||e.italic!==t.italic||e.italicCs!==t.italicCs||e.strike!==t.strike||e.doubleStrike!==t.doubleStrike||e.smallCaps!==t.smallCaps||e.allCaps!==t.allCaps||e.hidden!==t.hidden||e.emboss!==t.emboss||e.imprint!==t.imprint||e.outline!==t.outline||e.shadow!==t.shadow||e.rtl!==t.rtl||e.cs!==t.cs||e.fontSize!==t.fontSize||e.fontSizeCs!==t.fontSizeCs||e.spacing!==t.spacing||e.position!==t.position||e.scale!==t.scale||e.kerning!==t.kerning||e.vertAlign!==t.vertAlign||e.highlight!==t.highlight||e.effect!==t.effect||e.emphasisMark!==t.emphasisMark||e.styleId!==t.styleId||!_t(e.underline,t.underline)||!se(e.color,t.color)||!qt(e.shading,t.shading)||!Gt(e.fontFamily,t.fontFamily))}function _t(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:se(e.color,t.color)}function se(e,t){return !e&&!t?true:!e||!t?false:e.rgb===t.rgb&&e.auto===t.auto&&e.themeColor===t.themeColor&&e.themeTint===t.themeTint&&e.themeShade===t.themeShade}function qt(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!se(e.color,t.color)||!se(e.fill,t.fill))}function Gt(e,t){return !e&&!t?true:!e||!t?false:e.ascii===t.ascii&&e.hAnsi===t.hAnsi&&e.eastAsia===t.eastAsia&&e.cs===t.cs&&e.asciiTheme===t.asciiTheme&&e.hAnsiTheme===t.hAnsiTheme&&e.eastAsiaTheme===t.eastAsiaTheme&&e.csTheme===t.csTheme}function $t(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function Qe(e){return e.content.length===0?true:e.content.every($t)}function Yt(e,t){let n=[];for(let o of e)n.push(o);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let o=n[n.length-1],r=t[0];n[n.length-1]={type:"text",text:o.text+r.text,preserveSpace:o.preserveSpace||r.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let o of t)n.push(o);return n}function Kt(e){if(e.length<=1)return e;let t=[],n=null;for(let o of e)if(o.content.length!==0){if(n===null){n={...o,content:[...o.content]};continue}Qe(n)&&Qe(o)&&zt(n.formatting,o.formatting)?n={type:"run",formatting:n.formatting,content:Yt(n.content,o.content)}:(t.push(n),n={...o,content:[...o.content]});}return n!==null&&t.push(n),t}function be(e){if(e.length<=1)return e;let t=[],n=[];function o(){if(n.length>0){let r=Kt(n);t.push(...r),n.length=0;}}for(let r of e)if(r.type==="run")n.push(r);else if(o(),r.type==="hyperlink"){let a={...r,children:be(r.children)};t.push(a);}else t.push(r);return o(),t}function Je(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function Zt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunk3R7QHNI5_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunk3R7QHNI5_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunk3R7QHNI5_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function fe(e,t,n){if(!e)return;let o={},r=chunk3R7QHNI5_js.e(e,"w","b");r&&(o.bold=chunk3R7QHNI5_js.m(r));let a=chunk3R7QHNI5_js.e(e,"w","bCs");a&&(o.boldCs=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","i");u&&(o.italic=chunk3R7QHNI5_js.m(u));let l=chunk3R7QHNI5_js.e(e,"w","iCs");l&&(o.italicCs=chunk3R7QHNI5_js.m(l));let f=chunk3R7QHNI5_js.e(e,"w","u");if(f){let M=chunk3R7QHNI5_js.j(f,"w","val");if(M){o.underline={style:M};let U=chunk3R7QHNI5_js.j(f,"w","color"),z=chunk3R7QHNI5_js.j(f,"w","themeColor");(U||z)&&(o.underline.color=Je(U,z,chunk3R7QHNI5_js.j(f,"w","themeTint"),chunk3R7QHNI5_js.j(f,"w","themeShade")));}}let c=chunk3R7QHNI5_js.e(e,"w","strike");c&&(o.strike=chunk3R7QHNI5_js.m(c));let p=chunk3R7QHNI5_js.e(e,"w","dstrike");p&&(o.doubleStrike=chunk3R7QHNI5_js.m(p));let d=chunk3R7QHNI5_js.e(e,"w","vertAlign");if(d){let M=chunk3R7QHNI5_js.j(d,"w","val");(M==="superscript"||M==="subscript"||M==="baseline")&&(o.vertAlign=M);}let w=chunk3R7QHNI5_js.e(e,"w","smallCaps");w&&(o.smallCaps=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","caps");C&&(o.allCaps=chunk3R7QHNI5_js.m(C));let y=chunk3R7QHNI5_js.e(e,"w","vanish");y&&(o.hidden=chunk3R7QHNI5_js.m(y));let h=chunk3R7QHNI5_js.e(e,"w","color");h&&(o.color=Je(chunk3R7QHNI5_js.j(h,"w","val"),chunk3R7QHNI5_js.j(h,"w","themeColor"),chunk3R7QHNI5_js.j(h,"w","themeTint"),chunk3R7QHNI5_js.j(h,"w","themeShade")));let b=chunk3R7QHNI5_js.e(e,"w","highlight");if(b){let M=chunk3R7QHNI5_js.j(b,"w","val");M&&(o.highlight=M);}let P=chunk3R7QHNI5_js.e(e,"w","shd");P&&(o.shading=Zt(P));let S=chunk3R7QHNI5_js.e(e,"w","sz");if(S){let M=chunk3R7QHNI5_js.l(S,"w","val");M!==void 0&&(o.fontSize=M);}let x=chunk3R7QHNI5_js.e(e,"w","szCs");if(x){let M=chunk3R7QHNI5_js.l(x,"w","val");M!==void 0&&(o.fontSizeCs=M);}let m=chunk3R7QHNI5_js.e(e,"w","rFonts");if(m){o.fontFamily={ascii:chunk3R7QHNI5_js.j(m,"w","ascii")??void 0,hAnsi:chunk3R7QHNI5_js.j(m,"w","hAnsi")??void 0,eastAsia:chunk3R7QHNI5_js.j(m,"w","eastAsia")??void 0,cs:chunk3R7QHNI5_js.j(m,"w","cs")??void 0};let M=chunk3R7QHNI5_js.j(m,"w","asciiTheme");M&&(o.fontFamily.asciiTheme=M,t&&!o.fontFamily.ascii&&(o.fontFamily.ascii=$(t,M)));let U=chunk3R7QHNI5_js.j(m,"w","hAnsiTheme");U&&(o.fontFamily.hAnsiTheme=U,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=$(t,U)));let z=chunk3R7QHNI5_js.j(m,"w","eastAsiaTheme");z&&(o.fontFamily.eastAsiaTheme=z,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=$(t,z)));let pe=chunk3R7QHNI5_js.j(m,"w","cstheme");pe&&(o.fontFamily.csTheme=pe,t&&!o.fontFamily.cs&&(o.fontFamily.cs=$(t,pe)));}let F=chunk3R7QHNI5_js.e(e,"w","spacing");if(F){let M=chunk3R7QHNI5_js.l(F,"w","val");M!==void 0&&(o.spacing=M);}let E=chunk3R7QHNI5_js.e(e,"w","position");if(E){let M=chunk3R7QHNI5_js.l(E,"w","val");M!==void 0&&(o.position=M);}let T=chunk3R7QHNI5_js.e(e,"w","w");if(T){let M=chunk3R7QHNI5_js.l(T,"w","val");M!==void 0&&(o.scale=M);}let k=chunk3R7QHNI5_js.e(e,"w","kern");if(k){let M=chunk3R7QHNI5_js.l(k,"w","val");M!==void 0&&(o.kerning=M);}let B=chunk3R7QHNI5_js.e(e,"w","effect");if(B){let M=chunk3R7QHNI5_js.j(B,"w","val");M&&(o.effect=M);}let v=chunk3R7QHNI5_js.e(e,"w","em");if(v){let M=chunk3R7QHNI5_js.j(v,"w","val");M&&(o.emphasisMark=M);}let I=chunk3R7QHNI5_js.e(e,"w","emboss");I&&(o.emboss=chunk3R7QHNI5_js.m(I));let H=chunk3R7QHNI5_js.e(e,"w","imprint");H&&(o.imprint=chunk3R7QHNI5_js.m(H));let X=chunk3R7QHNI5_js.e(e,"w","outline");X&&(o.outline=chunk3R7QHNI5_js.m(X));let Te=chunk3R7QHNI5_js.e(e,"w","shadow");Te&&(o.shadow=chunk3R7QHNI5_js.m(Te));let Ce=chunk3R7QHNI5_js.e(e,"w","rtl");Ce&&(o.rtl=chunk3R7QHNI5_js.m(Ce));let Fe=chunk3R7QHNI5_js.e(e,"w","cs");Fe&&(o.cs=chunk3R7QHNI5_js.m(Fe));let xe=chunk3R7QHNI5_js.e(e,"w","rStyle");if(xe){let M=chunk3R7QHNI5_js.j(xe,"w","val");M&&(o.styleId=M);}return Object.keys(o).length>0?o:void 0}function Qt(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),r=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim(),a=(chunk3R7QHNI5_js.j(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0,rsid:a.length>0?a:void 0}}function Jt(e,t,n,o){if(!e)return;let r=chunk3R7QHNI5_js.f(e,"w","rPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","rPr");return {type:"runPropertyChange",info:Qt(a),previousFormatting:fe(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function en(e){let t=chunk3R7QHNI5_js.k(e),n=chunk3R7QHNI5_js.j(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function tn(){return {type:"tab"}}function nn(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"w","clear"),o={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(o.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(o.clear=n),o}function on(e){let t=chunk3R7QHNI5_js.j(e,"w","font")??"",n=chunk3R7QHNI5_js.j(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function rn(e){return {type:"footnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function an(e){return {type:"endnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function ln(e){let t=chunk3R7QHNI5_js.j(e,"w","fldCharType"),n=chunk3R7QHNI5_js.j(e,"w","fldLock")==="true"||chunk3R7QHNI5_js.j(e,"w","fldLock")==="1",o=chunk3R7QHNI5_js.j(e,"w","dirty")==="true"||chunk3R7QHNI5_js.j(e,"w","dirty")==="1",r="begin";return t==="separate"?r="separate":t==="end"&&(r="end"),{type:"fieldChar",charType:r,fldLock:n||void 0,dirty:o||void 0}}function sn(e){return {type:"instrText",text:chunk3R7QHNI5_js.k(e)}}function et(e,t,n){let o=chunkSCK6ZM5V_js.z(e,t??void 0,n??void 0);return o?{type:"drawing",image:o}:null}function ue(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function un(e,t,n){let o=[],r=chunk3R7QHNI5_js.i(e);for(let a of r)switch(ue(a.name)){case "t":o.push(en(a));break;case "tab":o.push(tn());break;case "br":o.push(nn(a));break;case "sym":o.push(on(a));break;case "footnoteReference":o.push(rn(a));break;case "endnoteReference":o.push(an(a));break;case "fldChar":o.push(ln(a));break;case "instrText":o.push(sn(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=et(a,t,n);l&&o.push(l);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":o.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=chunk3R7QHNI5_js.i(a).find(p=>ue(p.name)==="Choice")??chunk3R7QHNI5_js.i(a).find(p=>ue(p.name)==="Fallback");if(c){for(let p of chunk3R7QHNI5_js.i(c))if(ue(p.name)==="drawing"){let w=et(p,t,n);w?.image?.src&&o.push(w);}}break}case "footnoteRef":o.push({type:"footnoteRefMark"});break;case "endnoteRef":o.push({type:"endnoteRefMark"});break;case "separator":o.push({type:"separator"});break;case "continuationSeparator":o.push({type:"continuationSeparator"});break;}return o}function K(e,t,n,o=null,r=null){let a={type:"run",content:[]},u=chunk3R7QHNI5_js.e(e,"w","rPr");return u&&(a.formatting=fe(u,n),a.propertyChanges=Jt(u,n,t,a.formatting)),a.content=un(e,o,r),a}function fn(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function cn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunk3R7QHNI5_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunk3R7QHNI5_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunk3R7QHNI5_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function G(e){if(!e)return;let t=chunk3R7QHNI5_js.j(e,"w","val");if(!t)return;let n={style:t},o=chunk3R7QHNI5_js.j(e,"w","color"),r=chunk3R7QHNI5_js.j(e,"w","themeColor");(o||r)&&(n.color=fn(o,r,chunk3R7QHNI5_js.j(e,"w","themeTint"),chunk3R7QHNI5_js.j(e,"w","themeShade")));let a=chunk3R7QHNI5_js.l(e,"w","sz");a!==void 0&&(n.size=a);let u=chunk3R7QHNI5_js.l(e,"w","space");u!==void 0&&(n.space=u);let l=chunk3R7QHNI5_js.j(e,"w","shadow");l&&(n.shadow=l==="1"||l==="true");let f=chunk3R7QHNI5_js.j(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function pn(e){if(!e)return;let t=chunk3R7QHNI5_js.f(e,"w","tab");if(t.length===0)return;let n=[];for(let o of t){let r=chunk3R7QHNI5_js.l(o,"w","pos"),a=chunk3R7QHNI5_js.j(o,"w","val");if(r!==void 0&&a){let u={position:r,alignment:a},l=chunk3R7QHNI5_js.j(o,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function dn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.l(e,"w","w");n!==void 0&&(t.width=n);let o=chunk3R7QHNI5_js.l(e,"w","h");o!==void 0&&(t.height=o);let r=chunk3R7QHNI5_js.j(e,"w","hAnchor");(r==="text"||r==="margin"||r==="page")&&(t.hAnchor=r);let a=chunk3R7QHNI5_js.j(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=chunk3R7QHNI5_js.l(e,"w","x");u!==void 0&&(t.x=u);let l=chunk3R7QHNI5_js.l(e,"w","y");l!==void 0&&(t.y=l);let f=chunk3R7QHNI5_js.j(e,"w","xAlign");f&&(t.xAlign=f);let c=chunk3R7QHNI5_js.j(e,"w","yAlign");c&&(t.yAlign=c);let p=chunk3R7QHNI5_js.j(e,"w","wrap");return p&&(t.wrap=p),Object.keys(t).length>0?t:void 0}function ce(e,t,n){if(!e)return;let o={},r=chunk3R7QHNI5_js.e(e,"w","jc");if(r){let T=chunk3R7QHNI5_js.j(r,"w","val");T&&(o.alignment=T);}let a=chunk3R7QHNI5_js.e(e,"w","bidi");a&&(o.bidi=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","spacing");if(u){let T=chunk3R7QHNI5_js.l(u,"w","before");T!==void 0&&(o.spaceBefore=T);let k=chunk3R7QHNI5_js.l(u,"w","after");k!==void 0&&(o.spaceAfter=k);let B=chunk3R7QHNI5_js.l(u,"w","line");B!==void 0&&(o.lineSpacing=B);let v={};T!==void 0&&(v.before=true),k!==void 0&&(v.after=true),(v.before||v.after)&&(o.spacingExplicit=v);let I=chunk3R7QHNI5_js.j(u,"w","lineRule");I&&(o.lineSpacingRule=I);let H=chunk3R7QHNI5_js.j(u,"w","beforeAutospacing");H&&(o.beforeAutospacing=H==="1"||H==="true");let X=chunk3R7QHNI5_js.j(u,"w","afterAutospacing");X&&(o.afterAutospacing=X==="1"||X==="true");}let l=chunk3R7QHNI5_js.e(e,"w","ind");if(l){let T=chunk3R7QHNI5_js.l(l,"w","left");T!==void 0&&(o.indentLeft=T);let k=chunk3R7QHNI5_js.l(l,"w","right");k!==void 0&&(o.indentRight=k);let B=chunk3R7QHNI5_js.l(l,"w","firstLine");B!==void 0&&(o.indentFirstLine=B);let v=chunk3R7QHNI5_js.l(l,"w","hanging");v!==void 0&&(o.indentFirstLine=-v,o.hangingIndent=true);let I=chunk3R7QHNI5_js.l(l,"w","start");I!==void 0&&o.indentLeft===void 0&&(o.indentLeft=I);let H=chunk3R7QHNI5_js.l(l,"w","end");H!==void 0&&o.indentRight===void 0&&(o.indentRight=H);}let f=chunk3R7QHNI5_js.e(e,"w","pBdr");if(f){let T={},k=G(chunk3R7QHNI5_js.e(f,"w","top"));k&&(T.top=k);let B=G(chunk3R7QHNI5_js.e(f,"w","bottom"));B&&(T.bottom=B);let v=G(chunk3R7QHNI5_js.e(f,"w","left"));v&&(T.left=v);let I=G(chunk3R7QHNI5_js.e(f,"w","right"));I&&(T.right=I);let H=G(chunk3R7QHNI5_js.e(f,"w","between"));H&&(T.between=H);let X=G(chunk3R7QHNI5_js.e(f,"w","bar"));X&&(T.bar=X),Object.keys(T).length>0&&(o.borders=T);}let c=chunk3R7QHNI5_js.e(e,"w","shd");c&&(o.shading=cn(c));let p=chunk3R7QHNI5_js.e(e,"w","tabs");p&&(o.tabs=pn(p));let d=chunk3R7QHNI5_js.e(e,"w","keepNext");d&&(o.keepNext=chunk3R7QHNI5_js.m(d));let w=chunk3R7QHNI5_js.e(e,"w","keepLines");w&&(o.keepLines=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","widowControl");C&&(o.widowControl=chunk3R7QHNI5_js.m(C));let y=chunk3R7QHNI5_js.e(e,"w","pageBreakBefore");y&&(o.pageBreakBefore=chunk3R7QHNI5_js.m(y));let h=chunk3R7QHNI5_js.e(e,"w","contextualSpacing");h&&(o.contextualSpacing=chunk3R7QHNI5_js.m(h));let b=chunk3R7QHNI5_js.e(e,"w","numPr");if(b){let T=chunk3R7QHNI5_js.e(b,"w","numId"),k=chunk3R7QHNI5_js.e(b,"w","ilvl");if(T||k){if(o.numPr={},T){let B=chunk3R7QHNI5_js.l(T,"w","val");B!==void 0&&(o.numPr.numId=B);}if(k){let B=chunk3R7QHNI5_js.l(k,"w","val");B!==void 0&&(o.numPr.ilvl=B);}}}let P=chunk3R7QHNI5_js.e(e,"w","outlineLvl");if(P){let T=chunk3R7QHNI5_js.l(P,"w","val");T!==void 0&&(o.outlineLevel=T);}let S=chunk3R7QHNI5_js.e(e,"w","pStyle");if(S){let T=chunk3R7QHNI5_js.j(S,"w","val");T&&(o.styleId=T);}let x=chunk3R7QHNI5_js.e(e,"w","framePr");x&&(o.frame=dn(x));let m=chunk3R7QHNI5_js.e(e,"w","suppressLineNumbers");m&&(o.suppressLineNumbers=chunk3R7QHNI5_js.m(m));let F=chunk3R7QHNI5_js.e(e,"w","suppressAutoHyphens");F&&(o.suppressAutoHyphens=chunk3R7QHNI5_js.m(F));let E=chunk3R7QHNI5_js.e(e,"w","rPr");return E&&(o.runProperties=fe(E,t)),Object.keys(o).length>0?o:void 0}function mn(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function gn(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunk3R7QHNI5_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function hn(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function tt(e,t,n=null,o=null,r=null){let a={type:"hyperlink",children:[]},u=chunk3R7QHNI5_js.j(e,"r","id");if(u&&(a.rId=u,t)){let C=t.get(u);C&&(chunkZ3LGMBJC_js.c(C),a.href=C.target);}let l=chunk3R7QHNI5_js.j(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=chunk3R7QHNI5_js.j(e,"w","tooltip");f&&(a.tooltip=f);let c=chunk3R7QHNI5_js.j(e,"w","tgtFrame");c&&(a.target=c);let p=chunk3R7QHNI5_js.j(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let d=chunk3R7QHNI5_js.j(e,"w","docLocation");d&&(a.docLocation=d);let w=chunk3R7QHNI5_js.i(e);for(let C of w)switch(mn(C.name)){case "r":a.children.push(K(C,n,o,t,r));break;case "bookmarkStart":a.children.push(gn(C));break;case "bookmarkEnd":a.children.push(hn(C));break}return a}function Po(e){let t="";for(let n of e.children)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"&&(t+=" ");return t}function Bo(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function vo(e){return !!e.anchor}function No(e){return e.href}function Ao(e){return e.children.some(t=>t.type==="run")}function Ho(e){return e.children.filter(t=>t.type==="run")}function Io(e,t){if(e.rId){let n=t.get(e.rId);if(n)return chunkZ3LGMBJC_js.c(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function nt(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunk3R7QHNI5_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function ot(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function it(e){let t="";if(e.type==="text"&&typeof e.text=="string")return e.text;if(e.elements)for(let n of e.elements)if((n.name?.replace(/^.*:/,"")??"")==="t"&&n.elements)for(let r of n.elements)r.type==="text"&&typeof r.text=="string"&&(t+=r.text);else t+=it(n);return t}function Q(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function at(e){let t=new Set(["hyperlink","smartTag","sdt","sdtContent","fldSimple","customXml","ins","del","moveFrom","moveTo"]),n=new Set(["pPr","proofErr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","commentReference","permStart","permEnd","rsidR"]),o=new Set(["t","tab","br","cr","sym","drawing","pict","object","softHyphen","noBreakHyphen","fldChar","instrText","pgNum","separator","continuationSeparator","footnoteRef","endnoteRef","footnoteReference","endnoteReference","ptab","monthShort","monthLong","yearShort","yearLong","dayShort","dayLong"]),r=false;function a(l){for(let f of chunk3R7QHNI5_js.i(l)){let c=Q(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let p of chunk3R7QHNI5_js.i(f)){let d=Q(p.name);if(d!=="rPr"){if(d==="lastRenderedPageBreak"){r=true;continue}if(d==="br"&&chunk3R7QHNI5_js.j(p,"w","type")==="page")return "forced";if(o.has(d))return "visible"}}continue}if(t.has(c)){let p=a(f);if(p!=="continue")return p;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?r:false}function rt(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function lt(e){if(e.type!=="element")return e;let t=Q(e.name),n=e.name;return t==="delText"?n=rt(e.name,"t"):t==="delInstrText"&&(n=rt(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(lt)}}function Z(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=chunk3R7QHNI5_js.j(e,"w","author"),r=chunk3R7QHNI5_js.j(e,"w","date"),a=o?.trim()??"",u=r?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:u.length>0?u:void 0}}function wn(e){return Z(e)}function st(e,t,n,o){if(!e)return;let r=chunk3R7QHNI5_js.f(e,"w","pPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","pPr");return {type:"paragraphPropertyChange",info:wn(a),previousFormatting:ce(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function yn(e,t,n,o,r){return tt(e,t,n,o,r)}function bn(e){return nt(e)}function Tn(e){return ot(e)}function ut(e){let t=e.trim().match(/^\\?([A-Z]+)/i);if(!t)return "UNKNOWN";let n=t[1].toUpperCase();return ["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE","EDITTIME","REVNUM","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS"].includes(n)?n:"UNKNOWN"}function Cn(e,t,n,o,r){let a=chunk3R7QHNI5_js.j(e,"w","instr")??"",u=ut(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=chunk3R7QHNI5_js.j(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=chunk3R7QHNI5_js.j(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=chunk3R7QHNI5_js.i(e);for(let d of p)Q(d.name)==="r"&&l.content.push(K(d,t,n,o,r));return l}function j(e,t,n,o,r,a,u="default"){let l=[],f=chunk3R7QHNI5_js.i(e),c=false,p="",d=[],w=[],C=false,y=false,h=false;for(let b of f){let P=Q(b.name);switch(P){case "r":{let S=u==="deletion"?lt(b):b,x=K(S,t,n,r,a),m=false,F=false,E=false,T="";for(let k of x.content)k.type==="fieldChar"?k.charType==="begin"?(m=true,k.fldLock&&(y=true),k.dirty&&(h=true)):k.charType==="separate"?F=true:k.charType==="end"&&(E=true):k.type==="instrText"&&(T+=k.text);if(m&&(c=true,C=false,p="",d=[],w=[],y=false,h=false),c){if(T&&(p+=T),F&&(C=true),C&&!E?F||w.push(x):!C&&!m&&d.push(x),E){let k={type:"complexField",instruction:p.trim(),fieldType:ut(p),fieldCode:d,fieldResult:w};y&&(k.fldLock=true),h&&(k.dirty=true),l.push(k),c=false;}}else l.push(x);break}case "hyperlink":l.push(yn(b,r,t,n,a));break;case "bookmarkStart":l.push(bn(b));break;case "bookmarkEnd":l.push(Tn(b));break;case "fldSimple":l.push(Cn(b,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let S=(b.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),x=(b.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(x){let m=j(x,t,n,null,r,a,u),E={type:"inlineSdt",properties:re(S??null),content:m.filter(T=>T.type==="run"||T.type==="hyperlink"||T.type==="simpleField"||T.type==="complexField"||T.type==="inlineSdt"||T.type==="mathEquation")};l.push(E);}break}case "ins":{let S=Z(b),x=j(b,t,n,null,r,a),m={type:"insertion",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "del":{let S=Z(b),x=j(b,t,n,null,r,a,"deletion"),m={type:"deletion",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveFrom":{let S=Z(b),x=j(b,t,n,null,r,a,"deletion"),m={type:"moveFrom",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveTo":{let S=Z(b),x=j(b,t,n,null,r,a),m={type:"moveTo",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10),x=chunk3R7QHNI5_js.j(b,"w","name")??"";l.push({type:"moveFromRangeStart",id:S,name:x});break}case "moveFromRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:S});break}case "moveToRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10),x=chunk3R7QHNI5_js.j(b,"w","name")??"";l.push({type:"moveToRangeStart",id:S,name:x});break}case "moveToRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:S});break}case "commentRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"commentRangeStart",id:S});break}case "commentRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:S});break}case "oMath":case "oMathPara":{let S=P==="oMathPara",x=chunk3R7QHNI5_js.b(b),m=it(b),F={type:"mathEquation",display:S?"block":"inline",ommlXml:x,plainText:m||void 0};l.push(F);break}}}return l}function Fn(e){let t="";for(let n of e.content)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"?t+=" ":o.type==="break"&&(o.breakType==="page"?t+="\f":t+=`
4
+ `);else if(n.type==="hyperlink"){for(let o of n.children)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="simpleField"){for(let o of n.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="complexField")for(let o of n.fieldResult)for(let r of o.content)r.type==="text"&&(t+=r.text);return t}function ft(e){let t=chunk3R7QHNI5_js.j(e,"w","id");if(t==null)return null;let n=parseInt(t,10);if(Number.isNaN(n))return null;let o=chunk3R7QHNI5_js.j(e,"w","author")??"",r=chunk3R7QHNI5_js.j(e,"w","date")??void 0,a={id:n,author:o};return r&&(a.date=r),a}function Y(e,t,n,o,r=null,a=null,u){let l={type:"paragraph",content:[]},f=chunk3R7QHNI5_js.j(e,"w14","paraId")??chunk3R7QHNI5_js.j(e,"w","paraId");f&&(l.paraId=f);let c=chunk3R7QHNI5_js.j(e,"w14","textId")??chunk3R7QHNI5_js.j(e,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&at(e)&&(l.renderedPageBreakBefore=true);let p=chunk3R7QHNI5_js.e(e,"w","pPr");if(p){l.formatting=ce(p,n),l.propertyChanges=st(p,n,t,l.formatting);let C=chunk3R7QHNI5_js.e(p,"w","rPr");if(C){let h=chunk3R7QHNI5_js.e(C,"w","ins");if(h){let P=ft(h);P&&(l.pPrIns=P);}let b=chunk3R7QHNI5_js.e(C,"w","del");if(b){let P=ft(b);P&&(l.pPrDel=P);}}let y=chunk3R7QHNI5_js.e(p,"w","sectPr");y&&(l.sectionProperties=Ze(y));}let d=j(e,t,n,o,r,a);l.content=be(d);let w=l.formatting?.numPr;if(!w&&l.formatting?.styleId&&t){let C=t.get(l.formatting.styleId);C?.pPr?.numPr&&(w=C.pPr.numPr,l.formatting||(l.formatting={}),l.formatting.numPr=w);}if(w&&o){let{numId:C,ilvl:y=0}=w;if(C!==void 0&&C!==0){let h=o.getLevel(C,y);if(h){let b=[];for(let x=0;x<=y;x+=1){let m=o.getLevel(C,x);b.push(m?.numFmt??"decimal");}let P=o.getInstance(C),S=P?.levelOverrides?.find(x=>x.ilvl===y);if(l.listRendering={level:y,numId:C,marker:h.lvlText,isBullet:h.numFmt==="bullet",numFmt:h.numFmt,markerHidden:h.rPr?.hidden||void 0,markerFontFamily:h.rPr?.fontFamily?.ascii||h.rPr?.fontFamily?.hAnsi||void 0,markerFontSize:h.rPr?.fontSize?h.rPr.fontSize/2:void 0,markerSuffix:h.suffix,levelNumFmts:b,abstractNumId:P?.abstractNumId,startOverride:S?.startOverride},h.pPr){l.formatting||(l.formatting={});let x=p?chunk3R7QHNI5_js.e(p,"w","ind"):null,m=x!=null&&(chunk3R7QHNI5_js.j(x,"w","left")!==null||chunk3R7QHNI5_js.j(x,"w","start")!==null),F=T=>{let k=x?chunk3R7QHNI5_js.j(x,"w",T):null;if(k===null)return false;let B=parseInt(k,10);return Number.isNaN(B)||B!==0},E=x!=null&&(F("firstLine")||F("hanging"));!m&&h.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=h.pPr.indentLeft),E||(h.pPr.indentFirstLine!==void 0&&(l.formatting.indentFirstLine=h.pPr.indentFirstLine),h.pPr.hangingIndent!==void 0&&(l.formatting.hangingIndent=h.pPr.hangingIndent));}}}}return l}function ct(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","tblW"));n&&(t.width=n);let o=chunk3R7QHNI5_js.e(e,"w","jc");if(o){let h=chunk3R7QHNI5_js.j(o,"w","val");(h==="left"||h==="center"||h==="right"||h==="start")&&(t.justification=h==="start"?"left":h);}let r=O(chunk3R7QHNI5_js.e(e,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=O(chunk3R7QHNI5_js.e(e,"w","tblInd"));a&&(t.indent=a);let u=te(chunk3R7QHNI5_js.e(e,"w","tblBorders"));u&&(t.borders=u);let l=ne(chunk3R7QHNI5_js.e(e,"w","tblCellMar"));l&&(t.cellMargins=l);let f=chunk3R7QHNI5_js.e(e,"w","tblLayout");if(f){let h=chunk3R7QHNI5_js.j(f,"w","type");(h==="fixed"||h==="autofit")&&(t.layout=h);}let c=chunk3R7QHNI5_js.e(e,"w","tblStyle");if(c){let h=chunk3R7QHNI5_js.j(c,"w","val");h&&(t.styleId=h);}let p=he(chunk3R7QHNI5_js.e(e,"w","tblLook"));p&&(t.look=p);let d=oe(chunk3R7QHNI5_js.e(e,"w","shd"));d&&(t.shading=d);let w=chunk3R7QHNI5_js.e(e,"w","tblOverlap");if(w){let h=chunk3R7QHNI5_js.j(w,"w","val");(h==="never"||h==="overlap")&&(t.overlap=h);}let C=we(chunk3R7QHNI5_js.e(e,"w","tblpPr"));if(C&&(t.floating=C),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function xn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tblPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","tblPr");return {type:"tablePropertyChange",info:ee(o),previousFormatting:ct(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function kn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","trPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","trPr");return {type:"tableRowPropertyChange",info:ee(o),previousFormatting:pt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Sn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tcPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","tcPr");return {type:"tableCellPropertyChange",info:ee(o),previousFormatting:mt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Mn(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","ins");if(t)return {type:"tableRowInsertion",info:V(t)};let n=chunk3R7QHNI5_js.e(e,"w","del");if(n)return {type:"tableRowDeletion",info:V(n)}}function Rn(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:V(t)};let n=chunk3R7QHNI5_js.e(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:V(n)};let o=chunk3R7QHNI5_js.e(e,"w","cellMerge");if(o){let r=chunk3R7QHNI5_js.j(o,"w","vMerge"),a=chunk3R7QHNI5_js.j(o,"w","vMergeOrig"),u=l=>l==="rest"||l==="cont";return {type:"tableCellMerge",info:V(o),...u(r)?{vMerge:r}:{},...u(a)?{vMergeOrig:a}:{}}}}function pt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.e(e,"w","trHeight");if(n){let f=chunk3R7QHNI5_js.l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=chunk3R7QHNI5_js.j(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","tblHeader"))&&(t.header=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","cantSplit"))&&(t.cantSplit=true);let a=chunk3R7QHNI5_js.e(e,"w","jc");if(a){let f=chunk3R7QHNI5_js.j(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","hidden"))&&(t.hidden=true);let l=dt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(l&&(t.conditionalFormat=l),Object.keys(t).length!==0)return t}function dt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunk3R7QHNI5_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunk3R7QHNI5_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunk3R7QHNI5_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunk3R7QHNI5_js.j(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=chunk3R7QHNI5_js.j(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=chunk3R7QHNI5_js.j(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=chunk3R7QHNI5_js.j(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let p=chunk3R7QHNI5_js.j(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let d=chunk3R7QHNI5_js.j(e,"w","firstRowLastColumn");(d==="1"||d==="true")&&(t.neCell=true);let w=chunk3R7QHNI5_js.j(e,"w","lastRowFirstColumn");(w==="1"||w==="true")&&(t.swCell=true);let C=chunk3R7QHNI5_js.j(e,"w","lastRowLastColumn");(C==="1"||C==="true")&&(t.seCell=true);let y=chunk3R7QHNI5_js.j(e,"w","val");if(y&&y.length===12&&(y[0]==="1"&&(t.firstRow=true),y[1]==="1"&&(t.lastRow=true),y[2]==="1"&&(t.firstColumn=true),y[3]==="1"&&(t.lastColumn=true),y[4]==="1"&&(t.oddVBand=true),y[5]==="1"&&(t.evenVBand=true),y[6]==="1"&&(t.oddHBand=true),y[7]==="1"&&(t.evenHBand=true),y[8]==="1"&&(t.nwCell=true),y[9]==="1"&&(t.neCell=true),y[10]==="1"&&(t.swCell=true),y[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function mt(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","tcW"));n&&(t.width=n);let o=te(chunk3R7QHNI5_js.e(e,"w","tcBorders"));o&&(t.borders=o);let r=ne(chunk3R7QHNI5_js.e(e,"w","tcMar"));r&&(t.margins=r);let a=oe(chunk3R7QHNI5_js.e(e,"w","shd"));a&&(t.shading=a);let u=chunk3R7QHNI5_js.e(e,"w","vAlign");if(u){let y=chunk3R7QHNI5_js.j(u,"w","val");(y==="top"||y==="center"||y==="bottom")&&(t.verticalAlign=y);}let l=chunk3R7QHNI5_js.e(e,"w","textDirection");if(l){let y=chunk3R7QHNI5_js.j(l,"w","val");y&&(t.textDirection=y);}let f=chunk3R7QHNI5_js.e(e,"w","gridSpan");if(f){let y=chunk3R7QHNI5_js.l(f,"w","val");y!==void 0&&y>1&&(t.gridSpan=y);}let c=chunk3R7QHNI5_js.e(e,"w","vMerge");c&&(chunk3R7QHNI5_js.j(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","tcFitText"))&&(t.fitText=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","noWrap"))&&(t.noWrap=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","hideMark"))&&(t.hideMark=true);let C=dt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(C&&(t.conditionalFormat=C),Object.keys(t).length!==0)return t}function En(e,t,n,o,r,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let p=c.name.split(":").pop();if(p==="p"){let d=Y(c,t,n,o,r,a,u);l.push(d);}else if(p==="tbl"){let d=ye(c,t,n,o,r,a,u);l.push(d);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function Pn(e,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=chunk3R7QHNI5_js.e(e,"w","tcPr"),c=mt(f);return c&&(l.formatting=c),l.propertyChanges=Sn(f,c),l.structuralChange=Rn(f),l.content=En(e,t,n,o,r,a,u),l}function Bn(e,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f=chunk3R7QHNI5_js.e(e,"w","trPr"),c=pt(f);c&&(l.formatting=c),l.propertyChanges=kn(f,c),l.structuralChange=Mn(f);let p=chunk3R7QHNI5_js.f(e,"w","tc");for(let d of p){let w=Pn(d,t,n,o,r,a,u);l.cells.push(w);}return l}function vn(e){if(!e)return;let t=[],n=chunk3R7QHNI5_js.f(e,"w","gridCol");for(let o of n){let r=chunk3R7QHNI5_js.l(o,"w","w")??0;t.push(r);}if(!(t.length>0&&t.every(o=>o<=0)))return t.length>0?t:void 0}function Nn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function An(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Nn(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let o=n.cells[0];(o.formatting?.gridSpan??1)>=t||o.formatting?.vMerge||o.formatting?.gridSpan==null&&(o.formatting={...o.formatting??{},gridSpan:t});}}function ye(e,t,n,o,r,a,u){let l={type:"table",rows:[]},f=chunk3R7QHNI5_js.e(e,"w","tblPr"),c=ct(f);c&&(l.formatting=c),l.propertyChanges=xn(f,c);let p=vn(chunk3R7QHNI5_js.e(e,"w","tblGrid"));p&&(l.columnWidths=p);let d=chunk3R7QHNI5_js.f(e,"w","tr");for(let w of d){let C=Bn(w,t,n,o,r,a,u);l.rows.push(C);}return An(l),l}exports.A=uo;exports.B=Ze;exports.C=go;exports.D=ho;exports.E=K;exports.F=tt;exports.G=Po;exports.H=Bo;exports.I=vo;exports.J=No;exports.K=Ao;exports.L=Ho;exports.M=Io;exports.N=Fn;exports.O=Y;exports.a=In;exports.b=$;exports.c=Ie;exports.d=W;exports.e=te;exports.f=ne;exports.g=oe;exports.h=he;exports.i=we;exports.j=Tt;exports.k=Ct;exports.l=Ft;exports.m=xt;exports.n=kt;exports.o=ct;exports.p=Et;exports.q=q;exports.r=Jn;exports.s=eo;exports.t=ro;exports.u=io;exports.v=$e;exports.w=Ye;exports.x=ao;exports.y=lo;exports.z=so;
@@ -0,0 +1 @@
1
+ var M=".layout-page-content";function L(s){return Array.from(s.querySelectorAll(`${M} span[data-pm-start][data-pm-end]`))}function B(s){return Array.from(s.querySelectorAll(`${M} .layout-empty-run`))}function I(s){return Array.from(s.querySelectorAll(`${M} [data-pm-start]`))}function q(s,e){return Number.isFinite(e)?s.querySelector(`${M} [data-pm-start="${e}"]`):null}function _(s,e,r,p=1){let g=document.elementsFromPoint(e,r),d=g.find(t=>t.classList.contains("layout-page"));if(!d)return null;let a=g.find(t=>t.tagName==="SPAN"&&t.dataset.pmStart!==void 0&&t.dataset.pmEnd!==void 0);if(a)return S(a,e);let l=g.find(t=>t.classList.contains("layout-empty-run"));if(l){let t=l.closest(".layout-paragraph");if(t&&t.dataset.pmStart)return Number(t.dataset.pmStart)}let i=g.find(t=>t.classList.contains("layout-paragraph")&&t.dataset.pmStart!==void 0);if(i&&i.dataset.pmStart){let t=N(i,e,r);return t!==null?t:Number(i.dataset.pmStart)}let u=g.find(t=>t.classList.contains("layout-table-cell"));return u?N(u,e,r):C(s,d,e,r)}function S(s,e,r){let p=Number(s.dataset.pmStart),g=Number(s.dataset.pmEnd);if(s.classList.contains("layout-run-tab")){let n=s.getBoundingClientRect(),c=(n.left+n.right)/2;return e<c?p:g}let d=s.firstChild;if(!d||d.nodeType!==Node.TEXT_NODE)return p;let a=d,l=a.length;if(l===0)return p;let i=s.ownerDocument;if(!i)return p;let u=0,t=l;for(;u<t;){let n=Math.floor((u+t)/2),c=i.createRange();c.setStart(a,n),c.setEnd(a,n);let m=c.getBoundingClientRect().left;e<m?t=n:u=n+1;}if(u>0&&u<=l){let n=i.createRange();n.setStart(a,u-1),n.setEnd(a,u-1);let c=n.getBoundingClientRect();n.setStart(a,Math.min(u,l)),n.setEnd(a,Math.min(u,l));let o=n.getBoundingClientRect(),m=Math.abs(e-c.left),f=Math.abs(e-o.left);if(m<f)return p+(u-1)}return p+Math.min(u,g-p)}function N(s,e,r){let p=s.querySelector(".layout-empty-run");if(p){let n=p.closest(".layout-paragraph");if(n&&n.dataset.pmStart)return Number(n.dataset.pmStart)}let g=s.querySelectorAll(".layout-line"),d=null,a=1/0;for(let n of Array.from(g)){let c=n,o=c.getBoundingClientRect(),m=(o.top+o.bottom)/2,f=Math.abs(r-m);f<a&&(a=f,d=c);}if(!d){let n=s.querySelector(".layout-paragraph[data-pm-start]");return n?.dataset.pmStart?Number(n.dataset.pmStart):s.dataset.pmStart?Number(s.dataset.pmStart):null}let l=d.querySelectorAll("span[data-pm-start][data-pm-end]");if(l.length===0){let n=d.closest(".layout-paragraph");return n?.dataset.pmStart?Number(n.dataset.pmStart):null}let i=null,u=1/0;for(let n of Array.from(l)){let c=n,o=c.getBoundingClientRect();if(e>=o.left&&e<=o.right)return S(c,e);let m=e<o.left?o.left-e:e-o.right;m<u&&(u=m,i=c);}if(!i)return null;let t=i.getBoundingClientRect();return e<t.left?Number(i.dataset.pmStart):Number(i.dataset.pmEnd)}function C(s,e,r,p,g){if(e.querySelectorAll("span[data-pm-start][data-pm-end]").length===0){let o=e.querySelectorAll(".layout-paragraph");if(o.length>0){let m=o[0];return Number(m.dataset.pmStart)||0}return null}let a=e.querySelectorAll(".layout-line"),l=null,i=1/0;for(let o of Array.from(a)){let m=o,f=m.getBoundingClientRect(),h=(f.top+f.bottom)/2,b=Math.abs(p-h);b<i&&(i=b,l=m);}if(!l)return null;let u=l.querySelectorAll("span[data-pm-start][data-pm-end]");if(u.length===0){let o=l.closest(".layout-paragraph");return o?.dataset.pmStart?Number(o.dataset.pmStart):null}let t=null,n=1/0;for(let o of Array.from(u)){let m=o,f=m.getBoundingClientRect();if(r>=f.left&&r<=f.right)return S(m,r);let h=r<f.left?f.left-r:r-f.right;h<n&&(n=h,t=m);}if(!t)return null;let c=t.getBoundingClientRect();return r<c.left?Number(t.dataset.pmStart):Number(t.dataset.pmEnd)}var A=.5;function D(s,e){let r=s.closest(".layout-table:not(.layout-nested-table)");if(!r)return {left:e.left,top:e.top,right:e.right,bottom:e.bottom};let p=r.getBoundingClientRect(),g=Math.max(e.top,p.top),d=Math.min(e.bottom,p.bottom);return d-g<=A?null:{left:e.left,top:g,right:e.right,bottom:d}}function O(s,e,r,p){let g=[],d=L(s);for(let a of Array.from(d)){let l=a,i=Number(l.dataset.pmStart);if(Number(l.dataset.pmEnd)<=e||i>=r)continue;let t=l.firstChild;if(!t||t.nodeType!==Node.TEXT_NODE)continue;let n=t,c=l.ownerDocument;if(!c)continue;let o=Math.max(0,e-i),m=Math.min(n.length,r-i);if(o>=m)continue;let f=c.createRange();f.setStart(n,o),f.setEnd(n,m);let h=f.getClientRects(),b=l.closest(".layout-page"),T=b?Number(b.dataset.pageNumber||1)-1:0;for(let y of Array.from(h)){let E=D(l,y);E&&g.push({x:E.left-p.left,y:E.top-p.top,width:E.right-E.left,height:E.bottom-E.top,pageIndex:T});}}return g}function $(s,e,r){let p=L(s);for(let d of Array.from(p)){let a=d,l=Number(a.dataset.pmStart),i=Number(a.dataset.pmEnd);if(a.classList.contains("layout-run-tab")){if(e>=l&&e<i){let u=a.getBoundingClientRect(),t=a.closest(".layout-page"),n=t?Number(t.dataset.pageNumber||1)-1:0,c=a.closest(".layout-line"),o=c?c.offsetHeight:16;return {x:u.left-r.left,y:u.top-r.top,height:o,pageIndex:n}}continue}if(e>=l&&e<=i){let u=a.firstChild;if(!u||u.nodeType!==Node.TEXT_NODE){let y=a.getBoundingClientRect(),E=a.closest(".layout-page"),x=E?Number(E.dataset.pageNumber||1)-1:0,H=a.closest(".layout-line"),R=H?H.offsetHeight:16;return {x:y.left-r.left,y:y.top-r.top,height:R,pageIndex:x}}let t=u,n=Math.min(e-l,t.length),c=a.ownerDocument;if(!c)continue;let o=c.createRange();o.setStart(t,n),o.setEnd(t,n);let m=o.getBoundingClientRect(),f=a.closest(".layout-page"),h=f?Number(f.dataset.pageNumber||1)-1:0,b=a.closest(".layout-line"),T=b?b.offsetHeight:16;return {x:m.left-r.left,y:m.top-r.top,height:T,pageIndex:h}}}let g=s.querySelectorAll(".layout-paragraph");for(let d of Array.from(g)){let a=d,l=Number(a.dataset.pmStart),i=Number(a.dataset.pmEnd);if(e>=l&&e<=i){let t=a.querySelector(".layout-empty-run")||a,n=t.getBoundingClientRect(),c=a.closest(".layout-page"),o=c?Number(c.dataset.pageNumber||1)-1:0,f=(t.closest(".layout-line")||t).offsetHeight||16;return {x:n.left-r.left,y:n.top-r.top,height:f,pageIndex:o}}}return null}export{L as a,B as b,I as c,q as d,_ as e,D as f,O as g,$ as h};
@@ -1 +1 @@
1
- import {c,e,j}from'./chunk-WLHNIXWC.mjs';var l=720,s=31680;function p(e$1){let n=e$1?c(e$1):null,o=n?e(n,"w","defaultTabStop"):null,t=o?parseInt(j(o,"w","val")??"",10):NaN;return {defaultTabStop:Number.isFinite(t)&&t>0&&t<=s?t:l}}export{l as a,p as b};
1
+ import {c,e,j}from'./chunk-3ANZ3252.mjs';var l=720,s=31680;function p(e$1){let n=e$1?c(e$1):null,o=n?e(n,"w","defaultTabStop"):null,t=o?parseInt(j(o,"w","val")??"",10):NaN;return {defaultTabStop:Number.isFinite(t)&&t>0&&t<=s?t:l}}export{l as a,p as b};