@eigenpal/docx-editor-core 1.5.0 → 1.6.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 (251) hide show
  1. package/dist/agent/index.d.mts +4 -4
  2. package/dist/agent/index.d.ts +4 -4
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/index.mjs +1 -1
  5. package/dist/chunk-2KPOGFFR.js +1 -0
  6. package/dist/{chunk-NPFFCPZ6.js → chunk-2KUOYHXX.js} +1 -1
  7. package/dist/{chunk-WXSGCEBZ.js → chunk-2ZTKTE7P.js} +1 -1
  8. package/dist/{chunk-C45EFOVP.js → chunk-34DJT72K.js} +1 -1
  9. package/dist/chunk-3HLRRK6N.mjs +2 -0
  10. package/dist/{chunk-COV4LHQ7.js → chunk-4272FQ2E.js} +1 -1
  11. package/dist/chunk-4DCTKHS5.js +1 -0
  12. package/dist/chunk-4QJEMD23.mjs +4 -0
  13. package/dist/chunk-4QSFBX26.mjs +1 -0
  14. package/dist/chunk-4SZAFWLV.mjs +1 -0
  15. package/dist/{chunk-WYFK4QOF.mjs → chunk-5JULVEYK.mjs} +1 -1
  16. package/dist/chunk-6AGU57TL.mjs +1 -0
  17. package/dist/{chunk-T4O4PFJD.mjs → chunk-6ENZQGYR.mjs} +1 -1
  18. package/dist/chunk-6KYOT4E7.js +4 -0
  19. package/dist/chunk-77X765ZO.js +1 -0
  20. package/dist/chunk-7UMOUKSF.js +1 -0
  21. package/dist/chunk-AXVWVIIN.js +1 -0
  22. package/dist/chunk-B6FA4MJ5.mjs +1 -0
  23. package/dist/chunk-BBJMUBTD.mjs +1 -0
  24. package/dist/chunk-BJSG6TEG.js +1 -0
  25. package/dist/chunk-BKP5QMTS.js +1 -0
  26. package/dist/{chunk-3HENAL6V.mjs → chunk-C57BOE7B.mjs} +1 -1
  27. package/dist/{chunk-3SJQRYO7.js → chunk-CDGV7CLS.js} +1 -1
  28. package/dist/{chunk-TV6JLFY5.js → chunk-CWPIXUU2.js} +1 -1
  29. package/dist/chunk-DX5XU6JN.js +1 -0
  30. package/dist/chunk-E7UN3PVC.mjs +1 -0
  31. package/dist/chunk-EJ2JAYRI.js +1 -0
  32. package/dist/{chunk-TDYWEVAE.js → chunk-F44XU6G5.js} +1 -1
  33. package/dist/{chunk-TE2AF7FM.js → chunk-FETIBXTH.js} +1 -1
  34. package/dist/chunk-GLPOVLZD.mjs +1 -0
  35. package/dist/{chunk-M7KTKPGO.mjs → chunk-HEJJXAXN.mjs} +1 -1
  36. package/dist/{chunk-5WINQXA3.js → chunk-ILPNMG7Q.js} +1 -1
  37. package/dist/chunk-IM56AITE.mjs +1 -0
  38. package/dist/chunk-KK673XRZ.mjs +1 -0
  39. package/dist/chunk-KNY7SXPJ.mjs +1 -0
  40. package/dist/{chunk-M3UL6EUU.mjs → chunk-KSW6W2EK.mjs} +2 -2
  41. package/dist/chunk-LVUL7O27.js +1 -0
  42. package/dist/{chunk-O2643IUW.js → chunk-LW5OFHSW.js} +2 -2
  43. package/dist/chunk-M65C4SQJ.mjs +2 -0
  44. package/dist/chunk-MWOHCSZE.js +1 -0
  45. package/dist/chunk-NO6PIL32.mjs +1 -0
  46. package/dist/chunk-NTYJIOUE.js +2 -0
  47. package/dist/{chunk-WWVIVYX6.mjs → chunk-NY36MZ55.mjs} +1 -1
  48. package/dist/chunk-PJEB3ZWG.mjs +3 -0
  49. package/dist/chunk-Q2VALXEU.js +3 -0
  50. package/dist/{chunk-6KM4VW4L.js → chunk-RGHRXIIZ.js} +3 -3
  51. package/dist/chunk-RRJKF2XI.mjs +1 -0
  52. package/dist/{chunk-GB7RICH6.js → chunk-T3UP6LF5.js} +1 -1
  53. package/dist/chunk-UC7JW66O.mjs +1 -0
  54. package/dist/{chunk-P7HWOJC5.js → chunk-V3NE7Q22.js} +1 -1
  55. package/dist/chunk-WCB25ESG.mjs +1 -0
  56. package/dist/{chunk-SKBHY5MK.mjs → chunk-WEQA5PPW.mjs} +1 -1
  57. package/dist/{chunk-CBKJOPOW.mjs → chunk-WQJWT4RB.mjs} +1 -1
  58. package/dist/chunk-WWG6PUWU.js +1 -0
  59. package/dist/{chunk-PYDX4MOT.mjs → chunk-XTPT4TNP.mjs} +1 -1
  60. package/dist/{chunk-QUM4DFRE.mjs → chunk-YMXWLXVF.mjs} +1 -1
  61. package/dist/{content-eG_Rtl0l.d.ts → content-BebvPfXc.d.ts} +1 -1
  62. package/dist/{content-BlWiORm-.d.mts → content-CbBCrsr0.d.mts} +1 -1
  63. package/dist/{contentControlValues-CO7pUqOf.d.ts → contentControlValues-Com1GnZS.d.ts} +1 -1
  64. package/dist/{contentControlValues-DfYN9BZ8.d.mts → contentControlValues-DVJyudKU.d.mts} +1 -1
  65. package/dist/core-plugins.d.mts +2 -2
  66. package/dist/core-plugins.d.ts +2 -2
  67. package/dist/core-plugins.js +1 -1
  68. package/dist/core-plugins.mjs +1 -1
  69. package/dist/core.d.mts +7 -7
  70. package/dist/core.d.ts +7 -7
  71. package/dist/core.js +1 -1
  72. package/dist/core.mjs +1 -1
  73. package/dist/docx/index.d.mts +2 -2
  74. package/dist/docx/index.d.ts +2 -2
  75. package/dist/docx/index.js +1 -1
  76. package/dist/docx/index.mjs +1 -1
  77. package/dist/docx/parser.d.mts +2 -2
  78. package/dist/docx/parser.d.ts +2 -2
  79. package/dist/docx/parser.js +1 -1
  80. package/dist/docx/parser.mjs +1 -1
  81. package/dist/docx/rezip.d.mts +2 -2
  82. package/dist/docx/rezip.d.ts +2 -2
  83. package/dist/docx/serializer/index.d.mts +3 -3
  84. package/dist/docx/serializer/index.d.ts +3 -3
  85. package/dist/editor/index.d.mts +2 -2
  86. package/dist/editor/index.d.ts +2 -2
  87. package/dist/editor/index.js +1 -1
  88. package/dist/editor/index.mjs +1 -1
  89. package/dist/executor-FHL5D4CB.js +1 -0
  90. package/dist/executor-FL6XGVP3.mjs +1 -0
  91. package/dist/{fontLoader-3MFD_Hj2.d.mts → fontLoader-B4uFKpAy.d.mts} +1 -1
  92. package/dist/{fontLoader-C6VvBUVB.d.ts → fontLoader-D9SBYuZZ.d.ts} +1 -1
  93. package/dist/{headerFooterLayout-bdHWlU6g.d.ts → headerFooterLayout-CtVsfqxQ.d.ts} +1 -1
  94. package/dist/{headerFooterLayout-DJb-dV7X.d.mts → headerFooterLayout-D2LZLkDC.d.mts} +1 -1
  95. package/dist/headless.d.mts +5 -5
  96. package/dist/headless.d.ts +5 -5
  97. package/dist/headless.js +1 -1
  98. package/dist/headless.mjs +1 -1
  99. package/dist/layout-bridge/clickToPositionDom.js +1 -1
  100. package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
  101. package/dist/layout-bridge/index.d.mts +67 -5
  102. package/dist/layout-bridge/index.d.ts +67 -5
  103. package/dist/layout-bridge/index.js +1 -1
  104. package/dist/layout-bridge/index.mjs +1 -1
  105. package/dist/layout-bridge/measuring/index.d.mts +2 -2
  106. package/dist/layout-bridge/measuring/index.d.ts +2 -2
  107. package/dist/layout-bridge/measuring/index.js +1 -1
  108. package/dist/layout-bridge/measuring/index.mjs +1 -1
  109. package/dist/layout-bridge/tableInsertHover.js +1 -1
  110. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  111. package/dist/layout-bridge/toFlowBlocks.d.mts +2 -2
  112. package/dist/layout-bridge/toFlowBlocks.d.ts +2 -2
  113. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  114. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  115. package/dist/layout-engine/index.d.mts +2 -2
  116. package/dist/layout-engine/index.d.ts +2 -2
  117. package/dist/layout-engine/index.js +1 -1
  118. package/dist/layout-engine/index.mjs +1 -1
  119. package/dist/layout-engine/types.d.mts +2 -2
  120. package/dist/layout-engine/types.d.ts +2 -2
  121. package/dist/layout-painter/index.d.mts +3 -3
  122. package/dist/layout-painter/index.d.ts +3 -3
  123. package/dist/layout-painter/index.js +1 -1
  124. package/dist/layout-painter/index.mjs +1 -1
  125. package/dist/layout-painter/renderPage.d.mts +3 -3
  126. package/dist/layout-painter/renderPage.d.ts +3 -3
  127. package/dist/layout-painter/renderPage.js +1 -1
  128. package/dist/layout-painter/renderPage.mjs +1 -1
  129. package/dist/managers/AutoSaveManager.d.mts +2 -2
  130. package/dist/managers/AutoSaveManager.d.ts +2 -2
  131. package/dist/managers/TableSelectionManager.d.mts +2 -2
  132. package/dist/managers/TableSelectionManager.d.ts +2 -2
  133. package/dist/managers/types.d.mts +2 -2
  134. package/dist/managers/types.d.ts +2 -2
  135. package/dist/mcp-cli.mjs +23 -23
  136. package/dist/mcp.d.mts +2 -2
  137. package/dist/mcp.d.ts +2 -2
  138. package/dist/mcp.js +7 -7
  139. package/dist/mcp.mjs +1 -1
  140. package/dist/{nodes-BJef4KFW.d.ts → nodes-Bd6tTkp0.d.ts} +1 -1
  141. package/dist/{nodes-RfTS-NSv.d.mts → nodes-BvO8GGD4.d.mts} +1 -1
  142. package/dist/prosemirror/applyFormatting.d.mts +34 -4
  143. package/dist/prosemirror/applyFormatting.d.ts +34 -4
  144. package/dist/prosemirror/applyFormatting.js +1 -1
  145. package/dist/prosemirror/applyFormatting.mjs +1 -1
  146. package/dist/prosemirror/commands/formatting.js +1 -1
  147. package/dist/prosemirror/commands/formatting.mjs +1 -1
  148. package/dist/prosemirror/commands/index.d.mts +2 -1
  149. package/dist/prosemirror/commands/index.d.ts +2 -1
  150. package/dist/prosemirror/commands/index.js +1 -1
  151. package/dist/prosemirror/commands/index.mjs +1 -1
  152. package/dist/prosemirror/commands/paragraph.js +1 -1
  153. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  154. package/dist/prosemirror/commands/sectionBreak.d.mts +25 -0
  155. package/dist/prosemirror/commands/sectionBreak.d.ts +25 -0
  156. package/dist/prosemirror/commands/sectionBreak.js +1 -0
  157. package/dist/prosemirror/commands/sectionBreak.mjs +1 -0
  158. package/dist/prosemirror/commentIdAllocator.d.mts +2 -2
  159. package/dist/prosemirror/commentIdAllocator.d.ts +2 -2
  160. package/dist/prosemirror/commentOps.d.mts +2 -2
  161. package/dist/prosemirror/commentOps.d.ts +2 -2
  162. package/dist/prosemirror/conversion/fromProseDoc.d.mts +2 -2
  163. package/dist/prosemirror/conversion/fromProseDoc.d.ts +2 -2
  164. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  165. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  166. package/dist/prosemirror/conversion/index.d.mts +2 -2
  167. package/dist/prosemirror/conversion/index.d.ts +2 -2
  168. package/dist/prosemirror/conversion/index.js +1 -1
  169. package/dist/prosemirror/conversion/index.mjs +1 -1
  170. package/dist/prosemirror/extensions/index.js +1 -1
  171. package/dist/prosemirror/extensions/index.mjs +1 -1
  172. package/dist/prosemirror/index.d.mts +4 -4
  173. package/dist/prosemirror/index.d.ts +4 -4
  174. package/dist/prosemirror/index.js +2 -2
  175. package/dist/prosemirror/index.mjs +1 -1
  176. package/dist/prosemirror/plugins/index.d.mts +2 -2
  177. package/dist/prosemirror/plugins/index.d.ts +2 -2
  178. package/dist/prosemirror/plugins/index.js +1 -1
  179. package/dist/prosemirror/plugins/index.mjs +1 -1
  180. package/dist/prosemirror/queries.d.mts +2 -2
  181. package/dist/prosemirror/queries.d.ts +2 -2
  182. package/dist/prosemirror/schema/index.d.mts +3 -3
  183. package/dist/prosemirror/schema/index.d.ts +3 -3
  184. package/dist/prosemirror/schema/index.js +1 -1
  185. package/dist/prosemirror/schema/index.mjs +1 -1
  186. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -2
  187. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -2
  188. package/dist/{sectionPropertiesSerializer-S8J1V9mb.d.ts → sectionPropertiesSerializer-CzgskSoA.d.ts} +1 -1
  189. package/dist/{sectionPropertiesSerializer-C8XCmzE4.d.mts → sectionPropertiesSerializer-D3yI82iZ.d.mts} +1 -1
  190. package/dist/types/content.d.mts +2 -2
  191. package/dist/types/content.d.ts +2 -2
  192. package/dist/types/content.js +1 -1
  193. package/dist/types/content.mjs +1 -1
  194. package/dist/types/document.d.mts +3 -3
  195. package/dist/types/document.d.ts +3 -3
  196. package/dist/types/document.js +1 -1
  197. package/dist/types/document.mjs +1 -1
  198. package/dist/utils/cardStyles.js +1 -1
  199. package/dist/utils/cardStyles.mjs +1 -1
  200. package/dist/utils/comments.d.mts +2 -2
  201. package/dist/utils/comments.d.ts +2 -2
  202. package/dist/utils/index.d.mts +37 -4
  203. package/dist/utils/index.d.ts +37 -4
  204. package/dist/utils/index.js +3 -3
  205. package/dist/utils/index.mjs +3 -3
  206. package/dist/utils/stylePreview.d.mts +83 -0
  207. package/dist/utils/stylePreview.d.ts +83 -0
  208. package/dist/utils/stylePreview.js +1 -0
  209. package/dist/utils/stylePreview.mjs +1 -0
  210. package/dist/utils/units.d.mts +7 -1
  211. package/dist/utils/units.d.ts +7 -1
  212. package/dist/utils/units.js +1 -1
  213. package/dist/utils/units.mjs +1 -1
  214. package/dist/{variableDetector-CN9_pUR_.d.mts → variableDetector-D2-xDa2O.d.mts} +1 -1
  215. package/dist/{variableDetector-o4Rb2Csy.d.ts → variableDetector-d-PpDlNV.d.ts} +1 -1
  216. package/dist/{watermark-DAcnAs_J.d.mts → watermark-D90356ZM.d.mts} +7 -1
  217. package/dist/{watermark-DAcnAs_J.d.ts → watermark-D90356ZM.d.ts} +7 -1
  218. package/package.json +17 -1
  219. package/dist/chunk-4Q2IP5FW.js +0 -1
  220. package/dist/chunk-4RQAAKQI.mjs +0 -1
  221. package/dist/chunk-5HA66FH4.mjs +0 -1
  222. package/dist/chunk-7OW3VCZE.mjs +0 -1
  223. package/dist/chunk-AA6D2C6R.js +0 -4
  224. package/dist/chunk-AMJNIGO2.mjs +0 -2
  225. package/dist/chunk-BHBOAP6Z.js +0 -3
  226. package/dist/chunk-BTSL4AYY.js +0 -1
  227. package/dist/chunk-CUY2THAO.mjs +0 -1
  228. package/dist/chunk-DKKTY56Q.js +0 -1
  229. package/dist/chunk-DZ3FN3JI.js +0 -2
  230. package/dist/chunk-ENIWJBS7.mjs +0 -2
  231. package/dist/chunk-EZNVVB63.mjs +0 -1
  232. package/dist/chunk-GKAXYZCE.mjs +0 -1
  233. package/dist/chunk-IGYHDSM7.mjs +0 -1
  234. package/dist/chunk-L6ZRNW7Y.mjs +0 -1
  235. package/dist/chunk-LJ2TB6CY.js +0 -1
  236. package/dist/chunk-MOKKS75W.mjs +0 -3
  237. package/dist/chunk-ND33YQGU.js +0 -1
  238. package/dist/chunk-QXSDGNJ4.js +0 -1
  239. package/dist/chunk-RT52EYG3.mjs +0 -4
  240. package/dist/chunk-SHYNWAW6.mjs +0 -1
  241. package/dist/chunk-SNTAAXXA.mjs +0 -1
  242. package/dist/chunk-TAQTZAVZ.js +0 -1
  243. package/dist/chunk-UKMKGIME.js +0 -1
  244. package/dist/chunk-UXPY65AC.js +0 -1
  245. package/dist/chunk-VOCHZNOF.mjs +0 -1
  246. package/dist/chunk-VW22RZ6C.mjs +0 -1
  247. package/dist/chunk-WQRWRWSK.js +0 -1
  248. package/dist/chunk-YHXVNJK5.mjs +0 -1
  249. package/dist/chunk-ZETEPB7I.js +0 -1
  250. package/dist/executor-DZAMMQ35.js +0 -1
  251. package/dist/executor-ZCJRLT3Z.mjs +0 -1
@@ -0,0 +1 @@
1
+ import {c as c$2}from'./chunk-4SZAFWLV.mjs';import {c,f as f$1,a as a$2,g,b,e}from'./chunk-6AGU57TL.mjs';import {v,w,x,X as X$1,L,M,N as N$1,C,z as z$1,b as b$1}from'./chunk-BBJMUBTD.mjs';import {a as a$1,c as c$3}from'./chunk-7E5VBRDL.mjs';import {x as x$1}from'./chunk-4QJEMD23.mjs';import {c as c$1}from'./chunk-KK673XRZ.mjs';import {c as c$4}from'./chunk-PJEB3ZWG.mjs';import {a}from'./chunk-AMENZY5F.mjs';import {f,j as j$1}from'./chunk-KNY7SXPJ.mjs';function tt(e,t,n,o,r){let a=new Map,i=[];for(let m of e.fragments){let s=o(m);if(s.length===0||!("height"in m))continue;let b=m.y-e.margins.top,g=b+m.height;s.forEach((u,E)=>{let y=`${E}:${u.id}`,p=a.get(y);p?(p.top=Math.min(p.top,b),p.bottom=Math.max(p.bottom,g)):(a.set(y,{group:u,depth:E,top:b,bottom:g}),i.push(y));});}let d=2,l=[];for(let m of i){let{group:s,depth:b,top:g,bottom:u}=a.get(m),E=b*(d+1),y=r.createElement("div");y.className="layout-block-sdt-box",y.dataset.sdtGroupId=s.id,y.dataset.sdtType=s.sdtType,y.dataset.sdtDepth=String(b+1),s.tag!=null&&(y.dataset.sdtTag=s.tag),s.alias!=null&&(y.dataset.sdtAlias=s.alias),s.lock!=null&&(y.dataset.sdtLock=s.lock),y.style.position="absolute",y.style.left=`${E}px`,y.style.top=`${g-d}px`,y.style.width=`${n-E*2}px`,y.style.height=`${u-g+d*2}px`;let p=s.alias||s.tag||s.sdtType;if(p){let F=r.createElement("span");F.className="layout-block-sdt-label",F.textContent=p,y.appendChild(F);}let w=wt(s.sdtType);if(w&&s.tag!=null&&!s.bound&&s.lock!=="contentLocked"&&s.lock!=="sdtContentLocked"){let F=r.createElement("button");F.type="button",F.className="layout-sdt-widget",F.dataset.sdtWidget=w,F.dataset.sdtTag=s.tag,F.dataset.sdtGroupId=s.id,F.setAttribute("aria-label",`${w} control ${s.alias||s.tag}`),w==="dropdown"?F.setAttribute("aria-haspopup","listbox"):w==="date"&&F.setAttribute("aria-haspopup","dialog"),F.textContent=w==="dropdown"?"\u25BE":w==="date"?"\u{1F4C5}":s.checked?"\u2612":"\u2610",y.appendChild(F);}if(s.repeatingItem&&!s.bound){let F=r.createElement("div");F.className="layout-sdt-repeat-controls";for(let c of ["add","remove"]){let x=r.createElement("button");x.type="button",x.className="layout-sdt-repeat-btn",x.dataset.sdtRepeat=c,x.dataset.sdtGroupId=s.id,x.setAttribute("aria-label",c==="add"?"Add item":"Remove item"),x.textContent=c==="add"?"\uFF0B":"\u2715",F.appendChild(x);}y.appendChild(F);}t.appendChild(y),l.push(y);}Tt(t,l);}function wt(e){return e==="checkbox"?"checkbox":e==="dropDownList"||e==="comboBox"?"dropdown":e==="date"?"date":null}function Tt(e,t){if(t.length===0||typeof e.addEventListener!="function")return;let n=(d,l)=>{for(let m of t){let s=m.getBoundingClientRect(),b=d>=s.left&&d<=s.right&&l>=s.top&&l<=s.bottom;b!==m.classList.contains("is-active")&&m.classList.toggle("is-active",b);}},o=typeof requestAnimationFrame=="function"?requestAnimationFrame:d=>d(),r=false,a=0,i=0;e.addEventListener("mousemove",d=>{a=d.clientX,i=d.clientY,!r&&(r=true,o(()=>{r=false,n(a,i);}));}),e.addEventListener("mouseleave",()=>{for(let d of t)d.classList.remove("is-active");});}function Fn(e,t,n){let o=new Set,r=e.content.size,a=i=>{let d=e.resolve(Math.max(0,Math.min(i,r)));for(let l=1;l<=d.depth;l++)d.node(l).type.name==="blockSdt"&&o.add(`sdt@${d.before(l)}`);};return a(t),n!==t&&a(n),o}function Cn(e,t){let n=e.querySelectorAll(".layout-block-sdt-box");for(let o of n){let r=o.dataset.sdtGroupId,a=r!=null&&t.has(r);a!==o.classList.contains("is-focused")&&o.classList.toggle("is-focused",a);}}var U={fragment:"layout-fragment",paragraph:"layout-fragment-paragraph",table:"layout-fragment-table",image:"layout-fragment-image",line:"layout-line",run:"layout-run"};function It(e){return e.kind==="paragraph"}function Ft(e){return e.kind==="table"}function Ct(e){return e.kind==="image"}function fe(e){e.style.position="absolute",e.style.overflow="hidden";}function Rt(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.paragraph}`,fe(o),o.dataset.blockId=String(e.blockId),o.dataset.fromLine=String(e.fromLine),o.dataset.toLine=String(e.toLine),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.continuesFromPrev&&(o.dataset.continuesFromPrev="true"),e.continuesOnNext&&(o.dataset.continuesOnNext="true"),o}function Et(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.table}`,fe(o),o.dataset.blockId=String(e.blockId),o.dataset.fromRow=String(e.fromRow),o.dataset.toRow=String(e.toRow),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),o}function Lt(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.image}`,fe(o),o.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.isAnchored&&(o.dataset.anchored="true"),e.zIndex!==void 0&&(o.style.zIndex=String(e.zIndex)),o}function Ie(e,t,n={}){let o=n.document??document;if(It(e))return Rt(e,t,o);if(Ft(e))return Et(e,t,o);if(Ct(e))return Lt(e,t,o);let r=o.createElement("div");r.className=U.fragment,fe(r);let a=e;return a.blockId!==void 0&&(r.dataset.blockId=String(a.blockId)),a.kind&&(r.dataset.kind=a.kind),r}var P={fragment:"layout-paragraph",line:"layout-line",run:"layout-run",text:"layout-run-text",tab:"layout-run-tab",image:"layout-run-image",lineBreak:"layout-run-linebreak"};function A(e){return e.kind==="text"}function N(e){return e.kind==="tab"}function j(e){return e.kind==="image"}function W(e){return e.kind==="lineBreak"}function X(e){return e.kind==="field"}var nt={image:"layout-image",imageAnchored:"layout-image-anchored"};function oe(e){return !!(e.cropTop||e.cropRight||e.cropBottom||e.cropLeft||e.opacity!=null&&e.opacity<1)}function re(e,t){t.opacity!=null&&t.opacity<1&&(e.style.opacity=String(Math.max(0,t.opacity))),vt(e,t);}function vt(e,t){let n=t.cropTop??0,o=t.cropRight??0,r=t.cropBottom??0,a=t.cropLeft??0;if(!(n||o||r||a))return;let i=a+o>0?a/(a+o)*100:50,d=n+r>0?n/(n+r)*100:50;e.style.objectFit="cover",e.style.objectPosition=`${i}% ${d}%`;}function Z(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=nt.image,e.isAnchored&&i.classList.add(nt.imageAnchored),i.style.position="absolute",i.style.width=`${e.width}px`,i.style.height=`${e.height}px`,i.style.overflow="hidden",e.zIndex!==void 0&&(i.style.zIndex=String(e.zIndex)),t.anchor?.behindDoc&&(i.style.zIndex="-1"),i.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let d=a.createElement("img");if(d.src=t.src,d.alt=t.alt??"",d.style.width="100%",d.style.height="100%",d.style.objectFit="contain",d.style.display="block",t.transform&&(d.style.transform=t.transform),d.draggable=false,t.hlinkHref){let l=a.createElement("a");l.href=t.hlinkHref,l.target="_blank",l.rel="noopener noreferrer",l.style.display="block",l.style.width="100%",l.style.height="100%",l.appendChild(d),i.appendChild(l);}else i.appendChild(d);return i}function Pt(e,t,n){if(t.fontFamily&&(e.style.fontFamily=a(t.fontFamily).cssFallback),t.fontSize){let r=t.fontSize*96/72;e.style.fontSize=`${r}px`;}if(t.bold&&(e.style.fontWeight="bold"),t.italic&&(e.style.fontStyle="italic"),t.color&&(e.style.color=t.color),t.letterSpacing&&(e.style.letterSpacing=`${t.letterSpacing}px`),t.allCaps&&(e.style.textTransform="uppercase"),t.smallCaps&&(e.style.fontVariant="small-caps"),t.positionPx&&(e.style.verticalAlign=`${t.positionPx}px`),t.horizontalScale&&t.horizontalScale!==100&&(e.style.display="inline-block",e.style.transform=`scaleX(${t.horizontalScale/100})`,e.style.transformOrigin="left center"),t.kerningMinPt&&t.kerningMinPt>0&&(t.fontSize??11)>=t.kerningMinPt&&(e.style.fontKerning="normal"),t.emboss&&(e.style.textShadow="1px 1px 1px rgba(255,255,255,0.5), -1px -1px 1px rgba(0,0,0,0.3)"),t.imprint&&(e.style.textShadow="-1px -1px 1px rgba(255,255,255,0.5), 1px 1px 1px rgba(0,0,0,0.3)"),t.textShadow&&!t.emboss&&!t.imprint&&(e.style.textShadow="1px 1px 2px rgba(0,0,0,0.3)"),t.textOutline&&(e.style.webkitTextStroke="1px currentColor",e.style.webkitTextFillColor="transparent"),t.emphasisMark){let r=t.emphasisMark==="comma"?"filled sesame":t.emphasisMark==="circle"?"filled circle":"filled dot",a=t.emphasisMark==="underDot"?"under right":"over right";e.style.textEmphasis=`${r}`,e.style.textEmphasisPosition=a,e.style.webkitTextEmphasis=r,e.style.webkitTextEmphasisPosition=a;}t.highlight&&(e.style.backgroundColor=t.highlight);let o=[];if(t.underline&&(o.push("underline"),typeof t.underline=="object"&&(t.underline.style&&(e.style.textDecorationStyle=t.underline.style),t.underline.color&&(e.style.textDecorationColor=t.underline.color))),t.strike&&o.push("line-through"),t.commentIds&&t.commentIds.length>0){let r=t.commentIds.find(a=>!n||!n.has(a));r!=null&&(e.style.backgroundColor="rgba(255, 212, 0, 0.15)",e.style.borderBottom="1px solid rgba(255, 212, 0, 0.4)",e.style.cursor="pointer",e.style.transition="background-color 0.15s ease",e.dataset.commentId=String(r));}t.isInsertion&&(e.style.backgroundColor="rgba(52, 168, 83, 0.08)",e.style.borderBottom="2px dashed #2e7d32",e.style.paddingBottom="1px",e.classList.add("docx-insertion"),t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId))),t.isDeletion&&(e.style.backgroundColor="rgba(211, 47, 47, 0.08)",e.style.color="#c62828",o.includes("line-through")||o.push("line-through"),e.style.textDecorationColor="#c62828",e.classList.add("docx-deletion"),t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId))),o.length>0&&(e.style.textDecorationLine=o.join(" ")),t.superscript&&(e.style.verticalAlign="super",e.style.fontSize="0.75em"),t.subscript&&(e.style.verticalAlign="sub",e.style.fontSize="0.75em"),t.hidden&&(e.classList.add("docx-hidden"),e.style.opacity="0.4",e.style.textDecoration="underline dotted"),t.rtl&&e.setAttribute("dir","rtl"),t.textEffect&&(e.classList.add("docx-text-effect",`docx-text-effect-${t.textEffect}`),e.dataset.effect=t.textEffect);}function z(e,t,n){t!==void 0&&(e.dataset.pmStart=String(t)),n!==void 0&&(e.dataset.pmEnd=String(n));}function Bt(e,t){let n=t.inlineSdtWidget;n&&(e.classList.add("layout-inline-sdt-widget"),e.dataset.sdtWidget=n.kind,e.dataset.sdtGroupId=n.groupId,e.dataset.sdtPos=String(n.pos),n.tag&&(e.dataset.sdtTag=n.tag),n.alias&&(e.dataset.sdtAlias=n.alias),typeof n.checked=="boolean"&&(e.dataset.sdtChecked=String(n.checked),e.setAttribute("aria-checked",String(n.checked))),e.setAttribute("role","checkbox"),e.setAttribute("tabindex","0"),e.setAttribute("aria-label",n.alias||n.tag||"Checkbox content control"));}function ie(e,t,n){let o=t.createElement("span");if(o.className=`${P.run} ${P.text}`,Pt(o,e,n),z(o,e.pmStart,e.pmEnd),Bt(o,e),e.hyperlink){let r=t.createElement("a");r.href=e.hyperlink.href,e.hyperlink.href.startsWith("#")||(r.target="_blank",r.rel="noopener noreferrer"),e.hyperlink.tooltip&&(r.title=e.hyperlink.tooltip),r.textContent=e.text,r.style.color="inherit",r.style.textDecoration="inherit",e.hyperlink.noDefaultStyle||(e.color||(r.style.color="#0563c1",o.style.color="#0563c1"),e.underline||(r.style.textDecoration="underline")),o.appendChild(r);}else o.textContent=e.text;return o}var Mt=1e3;function ge(e,t,n,o){let r=t.createElement("span");r.className=`${P.run} ${P.tab}`,r.style.display="inline-block",r.style.width=`${n}px`,z(r,e.pmStart,e.pmEnd);let a=o&&o!=="none"?$t(o):null;if(a){r.style.position="relative",r.textContent="\u200B";let i=t.createElement("span");i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.textContent=a.repeat(Mt),r.appendChild(i);}else r.textContent="\xA0";return r}function $t(e){switch(e){case "dot":return ".";case "hyphen":return "-";case "underscore":return "_";case "middleDot":return "\xB7";case "heavy":return "_";default:return null}}function it(e){if(!e)return 0;let t=e.match(/rotate\(([-\d.]+)deg\)/);return t?(parseFloat(t[1])%360+360)%360:0}function at(e,t,n){if(n===0||n===180)return {w:e,h:t};if(n===90||n===270)return {w:t,h:e};let o=n*Math.PI/180,r=Math.abs(Math.sin(o)),a=Math.abs(Math.cos(o));return {w:e*a+t*r,h:e*r+t*a}}function ot(e,t){t.distTop&&(e.style.marginTop=`${t.distTop}px`),t.distBottom&&(e.style.marginBottom=`${t.distBottom}px`);}function Ht(e,t){let n=t.createElement("img");n.className=`${P.run} ${P.image}`,n.src=e.src,n.width=e.width,n.height=e.height,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,e.alt&&(n.alt=e.alt),e.transform&&(n.style.transform=e.transform,n.style.transformOrigin="center center"),oe(e)&&re(n,e);let o=it(e.transform);if(o!==0){let r=at(e.width,e.height,o),a=t.createElement("span");return a.style.display="inline-block",a.style.position="relative",a.style.width=`${r.w}px`,a.style.height=`${r.h}px`,a.style.verticalAlign="middle",n.style.position="absolute",n.style.left=`${(r.w-e.width)/2}px`,n.style.top=`${(r.h-e.height)/2}px`,ot(a,e),z(a,e.pmStart,e.pmEnd),a.appendChild(n),a}return n.style.display="inline-block",n.style.verticalAlign="middle",e.width>0&&e.height>0&&(n.style.height="auto",n.style.aspectRatio=`${e.width} / ${e.height}`,n.style.maxWidth="100%"),ot(n,e),z(n,e.pmStart,e.pmEnd),n}function rt(e,t){let n=t.createElement("div");n.className="layout-block-image",n.style.display="block",n.style.textAlign="center",n.style.marginTop=`${e.distTop??6}px`,n.style.marginBottom=`${e.distBottom??6}px`;let o=t.createElement("img");o.src=e.src,o.width=e.width,o.height=e.height,o.style.marginLeft="auto",o.style.marginRight="auto",e.alt&&(o.alt=e.alt),e.transform&&(o.style.transform=e.transform,o.style.transformOrigin="center center"),oe(e)&&re(o,e);let r=it(e.transform);if(r!==0){let a=at(e.width,e.height,r);n.style.height=`${a.h}px`,n.style.position="relative",o.style.position="absolute",o.style.left="50%",o.style.top="50%",o.style.marginLeft=`${-e.width/2}px`,o.style.marginRight="0",o.style.marginTop=`${-e.height/2}px`;}return z(n,e.pmStart,e.pmEnd),n.appendChild(o),n}function me(e,t){let n;return c(e)||e.displayMode==="block"||e.wrapType==="topAndBottom"?n=rt(e,t):n=Ht(e,t),At(n,e),n}function At(e,t){if(t.isInsertion)e.style.outline="2px solid #2e7d32",e.style.outlineOffset="1px",e.classList.add("docx-insertion");else if(t.isDeletion)e.style.outline="2px solid #c62828",e.style.outlineOffset="1px",e.style.opacity="0.6",e.classList.add("docx-deletion");else return;t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId));}function Fe(e,t){let n=t.createElement("br");return n.className=`${P.run} ${P.lineBreak}`,z(n,e.pmStart,e.pmEnd),n}function ue(e,t,n){let o=e.fallback??"";switch(e.fieldType){case "PAGE":o=String(n.pageNumber);break;case "NUMPAGES":o=String(n.totalPages);break;case "DATE":o=new Date().toLocaleDateString();break;case "TIME":o=new Date().toLocaleTimeString();break}let r={...e,text:o};return ie(r,t,n?.resolvedCommentIds)}function Ce(e,t,n){if(A(e))return ie(e,t,n?.resolvedCommentIds);if(N(e))return ge(e,t,48,void 0);if(j(e))return me(e,t);if(W(e))return Fe(e,t);if(X(e)&&n)return ue(e,t,n);let o=t.createElement("span");return o.className=P.run,o}function dt(e,t){let n=[],o=e.runs;for(let r=t.fromRun;r<=t.toRun;r++){let a=o[r];if(a)if(A(a)){let i=r===t.fromRun?t.fromChar:0,d=r===t.toRun?t.toChar:a.text.length;if(i>0||d<a.text.length){let l=a.text.slice(i,d);n.push({...a,text:l,pmStart:a.pmStart!==void 0?a.pmStart+i:void 0,pmEnd:a.pmStart!==void 0?a.pmStart+d:void 0});}else n.push(a);}else n.push(a);}return n}function st(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Ot(e,t){let n=e.position?.horizontal;return n?n.align??"left":t}function lt(e){return [e.pmStart??"no-start",e.pmEnd??"no-end",e.src,e.width,e.height,e.displayMode??"inline",e.wrapType??"none"].join("|")}function zt(e){return {val:e.val,pos:e.pos,leader:e.leader}}function Dt(e,t,n){let o="";for(let r=t+1;r<e.length;r++){let a=e[r];if(A(a))o+=a.text;else if(X(a))a.fieldType==="PAGE"&&n?o+=String(n.pageNumber):a.fieldType==="NUMPAGES"&&n?o+=String(n.totalPages):o+=a.fallback??"";else if(N(a)||W(a))break}return o}var Nt=.5;function Wt(e,t,n,o){let r=0;for(let a=t+1;a<e.length;a++){let i=e[a];if(N(i)||W(i))break;if(A(i))r+=n(i.text||"",i.fontSize,i.fontFamily,i.bold,i.italic);else if(X(i)){let d;i.fieldType==="PAGE"&&o?d=String(o.pageNumber):i.fieldType==="NUMPAGES"&&o?d=String(o.totalPages):d=i.fallback??"",r+=n(d,i.fontSize,i.fontFamily,i.bold,i.italic);}else j(i)&&!c(i)&&(r+=i.width||0);}return r}function _t(e){let n=e.createElement("canvas").getContext("2d");return (o,r=11,a$1="Calibri",i=false,d=false)=>{if(!n)return o.length*7;let l=a(a$1).cssFallback,m=r*96/72,s=[];return d&&s.push("italic"),i&&s.push("bold"),s.push(`${m}px`,l),n.font=s.join(" "),n.measureText(o).width}}function he(e,t,n,o,r){let a=o.createElement("div");a.className=P.line,a.style.height=`${t.lineHeight}px`,a.style.lineHeight=`${t.lineHeight}px`;let i=dt(e,t);if(i.length===1&&j(i[0])){let y=i[0],p=Ot(y,n);a.style.display="flex",a.style.alignItems="center",a.style.justifyContent=st(p),a.dataset.flexLine="true";}else i.some(j)&&(a.style.display="flex",a.style.alignItems="baseline",a.style.justifyContent=st(n),a.style.lineHeight="normal",a.dataset.flexLine="true");if(i.length===0){let y=o.createElement("span");return y.className=`${P.run} layout-empty-run`,y.innerHTML="&nbsp;",a.appendChild(y),a}let d=n==="justify",l=false;d&&r&&(l=!r.isLastLine||r.paragraphEndsWithLineBreak,l&&(a.style.textAlign="justify",a.style.textAlignLast="justify",a.style.width=`${r.availableWidth}px`)),a.style.whiteSpace="pre";let m=i.some(y=>A(y)&&y.highlight);a.style.overflow=m?"hidden":"visible";let s=i.some(N),b,g=_t(o);if(s){let y=r?.tabStops?.map(zt),p=r?.leftIndentPx?Math.round(r.leftIndentPx*15):0;b={explicitStops:y,leftIndent:p};}let u=0,E=r?.leftIndentPx??0;if(r?.isFirstLine){let y=r?.firstLineIndentPx??0;u=E+y;}else u=E;for(let y=0;y<i.length;y++){let p=i[y];if(N(p)&&b){let w=Wt(i,y,g,r?.context),F=Dt(i,y,r?.context),c$1=F.indexOf("."),x=c$1>=0?g(F.slice(0,c$1)):0,T=v(u,b,{followingWidth:w,decimalPrefixWidth:x}),S=r?.lineRightEdgePx,k=w,f=false;for(let I=y+1;I<i.length&&!W(i[I]);I++)if(N(i[I])){f=true;break}if(S!==void 0&&T.alignment==="end"&&!f&&u+T.width+k>=S-Nt){a.style.display="flex",a.style.alignItems="baseline",a.style.whiteSpace="nowrap",a.style.textIndent="0",a.dataset.flexLine="true",r?.isFirstLine&&r.firstLineIndentPx&&r.firstLineIndentPx<0&&a.firstElementChild instanceof HTMLElement&&(a.firstElementChild.style.marginLeft=`${r.firstLineIndentPx}px`);let I=ge(p,o,0,T.leader);I.style.flex="1 1 0",I.style.minWidth="0",I.style.width="auto",a.appendChild(I);for(let v=y+1;v<i.length;v++){let L=i[v];if(N(L)||W(L))break;if(A(L))a.appendChild(ie(L,o,r?.context?.resolvedCommentIds));else if(X(L)&&r?.context)a.appendChild(ue(L,o,r.context));else if(j(L)){if(c(L))continue;let B=lt(L);r?.renderedInlineImageKeys?.has(B)||(r?.renderedInlineImageKeys?.add(B),a.appendChild(me(L,o)));}else a.appendChild(Ce(L,o,r?.context));}break}let R=T.width;S!==void 0&&u+R+k>S&&(R=Math.max(1,S-u-k));let C=ge(p,o,R,T.leader);a.appendChild(C),u+=R;}else if(A(p)){let w=ie(p,o,r?.context?.resolvedCommentIds);if(p.highlight){let T=(p.fontSize?p.fontSize*96/72:14.67)*1.2,S=Math.max(0,t.lineHeight-T);if(S>0){let k=S/2;w.style.paddingTop=`${k}px`,w.style.paddingBottom=`${k}px`;}}a.appendChild(w);let F=p.fontSize||11,c=p.fontFamily||"Calibri";u+=g(p.text,F,c,p.bold,p.italic);}else if(j(p)){if(c(p))continue;let w=lt(p);if(r?.renderedInlineImageKeys?.has(w))continue;r?.renderedInlineImageKeys?.add(w);let F=me(p,o);a.appendChild(F),p.displayMode!=="block"&&p.wrapType!=="topAndBottom"&&(u+=p.width);}else if(W(p)){let w=Fe(p,o);a.appendChild(w);}else if(X(p)&&r?.context){let w=ue(p,o,r.context);a.appendChild(w);let F=p.fallback??"";p.fieldType==="PAGE"?F=String(r.context.pageNumber):p.fieldType==="NUMPAGES"&&(F=String(r.context.totalPages));let c=p.fontSize||11,x=p.fontFamily||"Calibri";u+=g(F,c,x,p.bold,p.italic);}else {let w=Ce(p,o,r?.context);a.appendChild(w);}}if(!a.querySelector("span[data-pm-start][data-pm-end]")){let y=i.find(W);if(y?.pmStart!==void 0){let p=o.createElement("span");p.className=P.run,z(p,y.pmStart,y.pmStart),p.textContent="\u200B",a.insertBefore(p,a.firstChild);}}return a}function ae(e,t){return !e&&!t?true:!e||!t?false:e.style===t.style&&e.width===t.width&&e.color===t.color}function ct(e,t){return !e&&!t||!e||!t?false:ae(e.top,t.top)&&ae(e.bottom,t.bottom)&&ae(e.left,t.left)&&ae(e.right,t.right)&&ae(e.between,t.between)}var Gt=/[\u0590-\u085F\u08A0-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,Yt=/[\u0041-\u005A\u0061-\u007A\u00C0-\u02B8\u0370-\u0589\u10A0-\u10FF\u1E00-\u1FFF]/;function jt(e){let t=(e.runs??[]).filter(A);if(!t.some(n=>n.rtl))return false;for(let n of t)for(let o of n.text){if(Gt.test(o))return true;if(Yt.test(o))return false}return true}function D(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=P.fragment,i.style.position=o.positioning==="absolute"?"absolute":"relative",i.dataset.blockId=String(e.blockId),i.dataset.fromLine=String(e.fromLine),i.dataset.toLine=String(e.toLine),z(i,e.pmStart,e.pmEnd),e.continuesFromPrev&&(i.dataset.continuesFromPrev="true"),e.continuesOnNext&&(i.dataset.continuesOnNext="true");let d=t.attrs?.pPrIns,l=t.attrs?.pPrDel;if(d||l){let S=d??l;i.classList.add("layout-revision-pmark"),i.classList.add(d?"layout-revision-ins":"layout-revision-del"),i.dataset.revisionId=String(S.revisionId),i.dataset.revisionAuthor=S.author,S.date&&(i.dataset.revisionDate=S.date);}let m=n.lines.slice(e.fromLine,e.toLine),s=t.attrs?.alignment;t.attrs?.styleId&&(i.dataset.styleId=t.attrs.styleId);let b=!!t.attrs?.bidi||jt(t);b&&(i.dir="rtl"),s?s==="center"?i.style.textAlign="center":s==="right"?i.style.textAlign="right":s==="left"?i.style.textAlign="left":i.style.textAlign=b?"right":"left":b&&(i.style.textAlign="right");let g=t.attrs?.indent,u=0,E=0;g&&(b?(g.left&&g.left>0&&(E=g.left),g.right&&g.right>0&&(u=g.right)):(g.left&&g.left>0&&(u=g.left),g.right&&g.right>0&&(E=g.right)));let y=t.attrs?.borders;if(y){let S=L=>{switch(L){case "single":return "solid";case "double":return "double";case "dotted":return "dotted";case "dashed":return "dashed";case "thick":return "solid";case "wave":return "wavy";case "dashSmallGap":return "dashed";case "nil":case "none":return "none";default:return "solid"}};i.style.boxSizing="border-box";let k=L=>`${L.width}px ${S(L.style)} ${L.color}`,f=ct(r.prevBorders,y),h=ct(y,r.nextBorders),R=f?y.between:y.top,C=h?void 0:y.bottom,I=a.createElement("div");if(I.className="layout-paragraph-border",I.style.position="absolute",I.style.pointerEvents="none",I.style.boxSizing="border-box",I.style.left=`${u-(y.left?.space??0)}px`,I.style.right=`${E-(y.right?.space??0)}px`,I.style.top=`${-(R?.space??0)}px`,I.style.bottom=`${-(C?.space??0)}px`,R&&(I.style.borderTop=k(R)),C&&(I.style.borderBottom=k(C)),y.left&&(I.style.borderLeft=k(y.left)),y.right&&(I.style.borderRight=k(y.right)),(R||C||y.left||y.right)&&i.appendChild(I),y.bar){let L=a.createElement("div");L.style.position="absolute",L.style.left="-8px",L.style.top="0",L.style.bottom="0",L.style.borderLeft=k(y.bar),i.style.position="relative",i.appendChild(L);}}t.attrs?.shading&&(i.style.backgroundColor=t.attrs.shading);let p=e.width-u-E,F=t.runs[t.runs.length-1]?.kind==="lineBreak",c=n.lines.length,x$1=0;g?.hanging&&g.hanging>0?x$1=-g.hanging:g?.firstLine&&g.firstLine>0&&(x$1=g.firstLine);let T=r.renderedInlineImageKeys??new Set;for(let S=0;S<m.length;S++){let k=m[S],f=e.fromLine+S,h=f===c-1,R=f===0&&!e.continuesFromPrev,C=k.leftOffset??0,I=k.rightOffset??0,v=p;if(R){let M=g?.hanging&&g.hanging>0,$=g?.firstLine&&g.firstLine>0;M&&g?.hanging?v=p+g.hanging:$&&g?.firstLine&&(v=p-g.firstLine);}if(Vt(k,t)){let M=a.createElement("div");M.className=`${P.line} layout-line-split`,M.style.position="relative",M.style.height=`${k.lineHeight}px`,M.style.lineHeight=`${k.lineHeight}px`;for(let $ of k.segments){let te={fromRun:$.fromRun,fromChar:$.fromChar,toRun:$.toRun,toChar:$.toChar,width:$.width,ascent:k.ascent,descent:k.descent,lineHeight:k.lineHeight},Y=he(t,te,s,a,{availableWidth:$.availableWidth,isLastLine:h,isFirstLine:R,paragraphEndsWithLineBreak:F,tabStops:t.attrs?.tabs,leftIndentPx:u,firstLineIndentPx:R?x$1:0,context:o,renderedInlineImageKeys:T});Y.className+=" layout-line-segment",Y.style.position="absolute",Y.style.left=`${$.leftOffset}px`,Y.style.top="0",Y.style.width=`${$.availableWidth}px`,M.appendChild(Y);}i.appendChild(M);continue}let L=he(t,k,s,a,{availableWidth:v-C-I,isLastLine:h,isFirstLine:R,paragraphEndsWithLineBreak:F,tabStops:t.attrs?.tabs,leftIndentPx:u,firstLineIndentPx:R?x$1:0,context:o,renderedInlineImageKeys:T,lineRightEdgePx:e.width-E-I});if(C>0||I>0){C>0&&(L.style.marginLeft=`${C}px`),I>0&&(L.style.marginRight=`${I}px`);let M=v-C-I;M>0&&(L.style.width=`${M}px`);}k.floatSkipBefore&&k.floatSkipBefore>0&&(L.style.marginTop=`${k.floatSkipBefore}px`);let B=g?.hanging&&g.hanging>0,Oe=g?.firstLine&&g.firstLine>0,St=L.dataset.flexLine==="true";if(R?u>0&&B?(L.style.paddingLeft=`${u}px`,St||(L.style.textIndent=`-${g.hanging}px`)):u>0&&Oe?(L.style.paddingLeft=`${u}px`,L.style.textIndent=`${g.firstLine}px`):u>0?L.style.paddingLeft=`${u}px`:Oe&&(L.style.textIndent=`${g.firstLine}px`):u>0?L.style.paddingLeft=`${u}px`:B&&(L.style.paddingLeft=`${g.hanging}px`),E>0&&(L.style.paddingRight=`${E}px`),R&&t.attrs?.listMarker&&!t.attrs?.listMarkerHidden){let M=g?.hanging??0,$=g?.firstLine??0,te=M>0?u-M:u+$;L.style.paddingLeft=`${Math.max(0,te)}px`,L.style.textIndent="0";let{fontFamily:Y,fontSize:kt}=w(t),ze=Kt(t.attrs.listMarker,x(t),a,Y,kt,t.attrs.listMarkerRevision);te<0&&u>0&&(ze.style.marginLeft=`${te}px`),L.insertBefore(ze,L.firstChild);}i.appendChild(L);}if((d||l)&&!e.continuesOnNext){let S=i.lastElementChild;if(S){let k=a.createElement("span");k.className="layout-revision-pmark-glyph",d?k.classList.add("layout-revision-ins"):k.classList.add("layout-revision-del"),k.textContent="\xB6",k.setAttribute("aria-hidden","true"),S.appendChild(k);}}return i}function Vt(e,t){return (e.segments?.length??0)>1&&!t.attrs?.listMarker}function Kt(e,t,n,o,r,a$1){let i=n.createElement("span");return i.className="layout-list-marker",i.style.fontFamily=a(o).cssFallback,i.style.fontSize=`${r*96/72}px`,i.style.textAlign="left",i.style.boxSizing="border-box",i.style.display="inline-block",i.style.minWidth=`${t}px`,i.textContent=e,a$1==="ins"?i.style.color="#2e7d32":a$1==="del"&&(i.style.color="#c62828",i.style.textDecoration="line-through"),i}function q(e,t,n){let o=t.createElement("div");o.className=n.layerClass,o.style.position="absolute",o.style.top="0",o.style.left="0",n.sizing==="inset0"?(o.style.right="0",o.style.bottom="0"):(o.style.width="100%",o.style.height="100%",o.style.overflow="hidden"),o.style.pointerEvents="none",n.layerMode==="front"&&(o.style.zIndex="10");for(let r of e){let a=t.createElement("div");a.className=n.itemClass,a.style.position="absolute",a.style.pointerEvents="auto",a.style.top=`${r.y}px`,a.style.left=`${r.x}px`,r.pmStart!==void 0&&(a.dataset.pmStart=String(r.pmStart)),r.pmEnd!==void 0&&(a.dataset.pmEnd=String(r.pmEnd));let i=t.createElement("img");i.src=r.src,i.style.width=`${r.width}px`,i.style.height=`${r.height}px`,i.style.display="block",i.style.maxWidth="none",i.style.maxHeight="none",r.alt&&(i.alt=r.alt),r.transform&&(i.style.transform=r.transform,i.style.transformOrigin="center center"),oe(r)&&re(i,r),a.appendChild(i),o.appendChild(a);}return o}function pt(e$1,t,n){let o=[],r=0;for(let a=0;a<e$1.blocks.length;a++){let i=e$1.blocks[a];if(i?.kind!=="paragraph"){let m=t.blocks[a];m&&m.kind==="table"&&(r+=m.totalHeight??0);continue}let d=i;for(let m of d.runs){if(m.kind!=="image")continue;let s=m;if(!c(s))continue;let b=s.position,g=s.distTop??0,u=s.distBottom??0,E=s.distLeft??12,y=s.distRight??12,p="left",w=0;if(b?.horizontal){let c=b.horizontal;c.align==="right"?(p="right",w=n-s.width):c.align==="left"?w=0:c.align==="center"?w=(n-s.width)/2:c.posOffset!==void 0&&(w=f(c.posOffset),p=w>n/2?"right":"left");}else s.cssFloat==="right"&&(p="right",w=n-s.width);let F=r;if(b?.vertical){let c=b.vertical;c.posOffset!==void 0?F=r+f(c.posOffset):c.align==="top"&&(F=0);}w=Math.max(0,Math.min(w,n-s.width)),o.push({src:s.src,width:s.width,height:s.height,alt:s.alt,transform:s.transform,x:w,y:F,side:p,distTop:g,distBottom:u,distLeft:E,distRight:y,wrapText:e(s.cssFloat),wrapType:s.wrapType,pmStart:s.pmStart,pmEnd:s.pmEnd});}let l=t.blocks[a];l&&l.kind==="paragraph"&&(r+=l.totalHeight);}return o}function Re(e){return !!e&&e.style!=="none"&&e.style!=="nil"&&e.width!==0}function J(e,t,n){let o=`border${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!Re(n))e.style[o]="none";else {let r=n.width??1,a=n.color??"#000000",i=n.style??"solid";e.style[o]=`${r}px ${i} ${a}`;}}function Ee(e){let t=[],n=0;for(let o of e)t.push(Math.round(n)),n+=o?.height??0;return t.push(Math.round(n)),t}function ft(e,t){let n=e.createElement("div");n.className="layout-table-cut-border",n.style.position="absolute",n.style.left=`${t.x}px`,n.style.width=`${t.width}px`;let o=t.border.width??1;return n.style.top=`${t.edge==="bottom"?t.topY-o:t.topY}px`,J(n,"top",t.border),n}function Le(e,t,n,o){e.classList.add(`ep-revision-${t}`,`ep-revision-${n}`),e.dataset.revisionId=String(o.revisionId),e.dataset.revisionAuthor=o.author,o.date&&(e.dataset.revisionDate=o.date);}var _={table:"layout-table",row:"layout-table-row",cell:"layout-table-cell",cellContent:"layout-table-cell-content",resizeHandle:"layout-table-resize-handle",rowResizeHandle:"layout-table-row-resize-handle",tableEdgeHandleBottom:"layout-table-edge-handle-bottom",tableEdgeHandleRight:"layout-table-edge-handle-right"};function Ut(e,t,n,o){let r=o.createElement("div");r.className=_.cellContent,r.style.position="relative";let a=e.padding?.left??7,i=e.padding?.right??7,d=Math.max(0,t.width-a-i);r.style.width=`${d}px`;let l=pt(e,t,d),m;if(l.length>0){m=l.filter(a$2).map(E=>{let y=E.x+E.width+E.distRight,p=E.y-E.distTop,w=E.y+E.height+E.distBottom,F=0,c=0,x=E.wrapText??"bothSides";return x==="right"?F=y:x==="left"?c=d-(E.x-E.distLeft):E.side==="left"?F=y:c=d-(E.x-E.distLeft),{leftMargin:F,rightMargin:c,topY:p,bottomY:w}});let u=l.filter(b);u.length>0&&r.appendChild(q(u,o,{layerClass:"layout-cell-floating-images-layer",itemClass:"layout-cell-floating-image",sizing:"fullSize",layerMode:"behind"}));}let s=0,b$1=0;for(let u=0;u<e.blocks.length;u++){let E=e.blocks[u],y=t.blocks[u];if(E?.kind==="paragraph"&&y?.kind==="paragraph"){let p=E,w=y,F=p.attrs?.spacing,c=Math.max(b$1,F?.before??0);s+=c,m&&m.length>0&&(w=z$1(p,d,{floatingZones:m,paragraphYOffset:s}));let x={blockId:p.id,width:d,height:w.totalHeight,fromLine:0,toLine:w.lines.length,pmStart:p.pmStart,pmEnd:p.pmEnd},T={...n,insideTableCell:true},S=D(x,p,w,T,{document:o});S.style.position="relative",c>0&&(S.style.marginTop=`${c}px`),r.appendChild(S),s+=w.totalHeight,b$1=F?.after??0;}else if(E?.kind==="table"&&y?.kind==="table"){let p=E,w=y,F=b$1,c=Xt(p,w,n,o);c.style.position="relative",F>0&&(c.style.marginTop=`${F}px`),r.appendChild(c),s+=F+(y.totalHeight??0),b$1=0;}}b$1>0&&(r.style.paddingBottom=`${b$1}px`);let g=l.filter(u=>!b(u));return g.length>0&&r.appendChild(q(g,o,{layerClass:"layout-cell-floating-images-layer",itemClass:"layout-cell-floating-image",sizing:"fullSize",layerMode:"front"})),r}function Xt(e,t,n,o){let r=o.createElement("div");r.className=`${_.table} layout-nested-table`,r.style.position="relative",r.style.width=`${t.totalWidth}px`,r.style.display="block",e.justification==="center"?(r.style.marginLeft="auto",r.style.marginRight="auto"):e.justification==="right"?r.style.marginLeft="auto":e.indent&&(r.style.marginLeft=`${e.indent}px`),r.dataset.blockId=String(e.id),e.pmStart!==void 0&&(r.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(r.dataset.pmEnd=String(e.pmEnd));let a=e.rows[0],i=a?.trackedIns,d=a?.trackedDel,l=(g,u)=>!!g&&!!u&&(g.author??"")===(u.author??"")&&(g.date??null)===(u.date??null),m=e.rows.length>0&&e.rows.every(g=>i?l(g.trackedIns,i):d?l(g.trackedDel,d):false);if(m){let g=i??d,u=i?"ins":"del";r.classList.add("ep-revision-table",`ep-revision-${u}`),r.dataset.revisionId=String(g.revisionId),r.dataset.revisionAuthor=g.author,g.date&&(r.dataset.revisionDate=g.date);}let s=Ee(t.rows),b=new Map;for(let g=0;g<e.rows.length;g++){let u=e.rows[g],E=t.rows[g];if(!u||!E)continue;let y=ve(u,E,g,s[g]??0,t.columnWidths,e.rows.length,n,o,b,s,void 0,m);r.appendChild(y);}return r.style.height=`${s[e.rows.length]??0}px`,r}function gt(e,t,n,o,r,a,i,d){let l=i.createElement("div");l.className=_.cell,e.trackedMarker&&e.trackedMarker.info.revisionId!==d&&Le(l,"cell",e.trackedMarker.kind,e.trackedMarker.info),l.style.position="absolute",l.style.left=`${n}px`,l.style.top="0",l.style.width=`${t.width}px`,l.style.height=`${o}px`,l.style.overflow="hidden",l.style.boxSizing="border-box";let m=e.padding?.top??1,s=e.padding?.right??7,b=e.padding?.bottom??1,g=e.padding?.left??7;l.style.padding=`${m}px ${s}px ${b}px ${g}px`,e.borders&&(r.isFirstRow&&J(l,"top",e.borders.top),J(l,"right",e.borders.right),J(l,"bottom",e.borders.bottom),r.isFirstCol&&J(l,"left",e.borders.left)),e.background&&(l.style.backgroundColor=e.background),e.noWrap&&(l.style.whiteSpace="nowrap");let u=(t.height??0)>=o-.5;if(e.verticalAlign&&!u)switch(l.style.display="flex",l.style.flexDirection="column",e.verticalAlign){case "top":l.style.justifyContent="flex-start";break;case "center":l.style.justifyContent="center";break;case "bottom":l.style.justifyContent="flex-end";break}let E=Ut(e,t,a,i);if(l.appendChild(E),e.blocks.length>0){let y=e.blocks[0],p=e.blocks[e.blocks.length-1];y&&"pmStart"in y&&y.pmStart!==void 0&&(l.dataset.pmStart=String(y.pmStart)),p&&"pmEnd"in p&&p.pmEnd!==void 0&&(l.dataset.pmEnd=String(p.pmEnd));}return l}function qt(e,t){return b$1(e).map(n=>{let o=0;for(let r=0;r<n.columnIndex;r++)o+=t[r]??0;return {rowIndex:n.rowIndex,cellIndex:n.cellIndex,columnIndex:n.columnIndex,x:o,colSpan:n.colSpan,rowSpan:n.rowSpan,cell:e.rows[n.rowIndex].cells[n.cellIndex]}})}function ve(e,t,n,o,r,a,i,d,l,m,s,b){let g=d.createElement("div");g.className=_.row,b||(e.trackedDel?Le(g,"row","del",e.trackedDel):e.trackedIns&&Le(g,"row","ins",e.trackedIns));let u=m&&m.length>n+1?(m[n+1]??0)-(m[n]??0):t.height;g.style.position="absolute",g.style.left="0",g.style.top=`${o}px`,g.style.width="100%",g.style.height=`${u}px`,g.dataset.rowIndex=String(n);let E=new Set;if(l){for(let[,w]of l)if(w.startRow<n&&w.startRow+w.rowSpan>n)for(let F=0;F<w.colSpan;F++)E.add(w.columnIndex+F);}let y=0,p=0;for(;E.has(p);)y+=r[p]??0,p++;for(let w=0;w<e.cells.length;w++){let F=e.cells[w],c=t.cells[w];if(!F||!c)continue;let x=F.colSpan??1,T=F.rowSpan??1,S=u;if(T>1&&m){S=0;for(let I=n;I<n+T&&I<m.length-1;I++)S+=(m[I+1]??0)-(m[I]??0);S===0&&(S=t.height*T);}let k=n===0||s===true,h=p===0;p+x>=r.length;let C=gt(F,c,y,S,{isFirstRow:k,isFirstCol:h},i,d,e.trackedIns?.revisionId??e.trackedDel?.revisionId);if(C.dataset.cellIndex=String(w),C.dataset.columnIndex=String(p),T>1&&(C.dataset.rowSpan=String(T)),g.appendChild(C),T>1&&l){let I=`${n}-${p}`;l.set(I,{cell:F,cellMeasure:c,columnIndex:p,startRow:n,rowSpan:T,colSpan:x,x:y,totalHeight:S});}for(let I=0;I<x&&p+I<r.length;I++)y+=r[p+I]??0;for(p+=x;E.has(p);)y+=r[p]??0,p++;}return g}function Q(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=_.table,i.style.position=o.positioning==="flow"?"relative":"absolute",i.style.width=`${e.width}px`,i.style.overflow="hidden",i.dataset.blockId=String(e.blockId),i.dataset.fromRow=String(e.fromRow),i.dataset.toRow=String(e.toRow),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let d=t.rows[0],l=d?.trackedIns,m=d?.trackedDel,s=(f,h)=>!!f&&!!h&&(f.author??"")===(h.author??"")&&(f.date??null)===(h.date??null),b=t.rows.length>0&&t.rows.every(f=>l?s(f.trackedIns,l):m?s(f.trackedDel,m):false);if(b){let f=l??m,h=l?"ins":"del";i.classList.add("ep-revision-table",`ep-revision-${h}`),i.dataset.revisionId=String(f.revisionId),i.dataset.revisionAuthor=f.author,f.date&&(i.dataset.revisionDate=f.date),i.style.overflowX="visible",i.style.overflowY="hidden";}let g=0;for(let f=0;f<n.columnWidths.length-1;f++){g+=n.columnWidths[f]??0;let h=a.createElement("div");h.className=_.resizeHandle,h.style.position="absolute",h.style.left=`${g-3}px`,h.style.top="0",h.style.width="6px",h.style.height="100%",h.style.cursor="col-resize",h.style.zIndex="10",h.dataset.columnIndex=String(f),h.dataset.tableBlockId=String(e.blockId),e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),i.appendChild(h);}let u=Ee(n.rows),E=qt(t,n.columnWidths),y=e.headerRowCount??0,p=0;if(y>0&&e.continuesFromPrev){let f=new Map;for(let h=0;h<y;h++){let R=t.rows[h],C=n.rows[h];if(!R||!C)continue;let I=ve(R,C,h,p,n.columnWidths,t.rows.length,o,a,f,u,h===0,b);I.dataset.repeatedHeader="true",i.appendChild(I),p+=C.height;}}let w=(u[e.fromRow]??0)+(e.topClip??0),F=f=>p+(f-w),c=e.bottomClip!==void 0?Math.round(e.height):F(u[e.toRow]??0);i.style.height=`${c}px`;let x=new Map,T=y>0&&e.continuesFromPrev;for(let f of E){if(f.rowSpan<=1||f.rowIndex>=e.fromRow||f.rowIndex+f.rowSpan<=e.fromRow||T&&f.rowIndex<y)continue;let h=n.rows[f.rowIndex]?.cells?.[f.cellIndex];if(!h)continue;let R=0;for(let B=f.rowIndex;B<f.rowIndex+f.rowSpan&&B<u.length-1;B++)R+=(u[B+1]??0)-(u[B]??0);x.set(`${f.rowIndex}-${f.columnIndex}`,{cell:f.cell,cellMeasure:h,columnIndex:f.columnIndex,startRow:f.rowIndex,rowSpan:f.rowSpan,colSpan:f.colSpan,x:f.x,totalHeight:R});f.rowIndex+f.rowSpan>=t.rows.length;let I=f.columnIndex===0;f.columnIndex+f.colSpan>=n.columnWidths.length;let L=gt(f.cell,h,f.x,R,{isFirstRow:false,isFirstCol:I},o,a);L.style.top=`${F(u[f.rowIndex]??0)}px`,L.dataset.columnIndex=String(f.columnIndex),L.dataset.vmergeContinuation="true",delete L.dataset.pmStart,delete L.dataset.pmEnd,i.appendChild(L);}for(let f=e.fromRow;f<e.toRow;f++){let h=t.rows[f],R=n.rows[f];if(!h||!R)continue;let C=y>0&&e.continuesFromPrev?false:e.continuesFromPrev&&f===e.fromRow&&!e.topClip,I=ve(h,R,f,F(u[f]??0),n.columnWidths,t.rows.length,o,a,x,u,C,b);i.appendChild(I);}let S=(f,h,R,C)=>{for(let I of E){if(I.rowIndex>f||I.rowIndex+I.rowSpan-1<f||C&&!(h==="bottom"?I.rowIndex+I.rowSpan-1>f:I.rowIndex<f))continue;let v=I.cell.borders?.[h];if(!Re(v))continue;let L=0;for(let B=0;B<I.colSpan;B++)L+=n.columnWidths[I.columnIndex+B]??0;i.appendChild(ft(a,{x:I.x,topY:R,width:L,edge:h,border:v}));}};e.topClip?S(e.fromRow,"top",p,false):e.continuesFromPrev&&S(e.fromRow,"top",p,true),e.bottomClip!==void 0?S(e.toRow-1,"bottom",c,false):e.continuesOnNext&&S(e.toRow-1,"bottom",c,true);for(let f=e.fromRow;f<e.toRow-1;f++){let h=F(u[f+1]??0);if(h<=p||h>=e.height)continue;let R=a.createElement("div");R.className=_.rowResizeHandle,R.style.position="absolute",R.style.left="0",R.style.top=`${h-3}px`,R.style.width="100%",R.style.height="6px",R.style.cursor="row-resize",R.style.zIndex="10",R.dataset.rowIndex=String(f),R.dataset.tableBlockId=String(e.blockId),e.pmStart!==void 0&&(R.dataset.tablePmStart=String(e.pmStart)),i.appendChild(R);}let k=e.toRow===t.rows.length&&e.bottomClip===void 0;if(k){let f=a.createElement("div");f.className=_.tableEdgeHandleBottom,f.style.position="absolute",f.style.left="0",f.style.top=`${F(u[e.toRow]??0)-3}px`,f.style.width="100%",f.style.height="6px",f.style.cursor="row-resize",f.style.zIndex="10",f.dataset.rowIndex=String(t.rows.length-1),f.dataset.tableBlockId=String(e.blockId),f.dataset.isEdge="bottom",e.pmStart!==void 0&&(f.dataset.tablePmStart=String(e.pmStart)),i.appendChild(f);}if(k){let f=n.columnWidths.reduce((R,C)=>R+C,0),h=a.createElement("div");h.className=_.tableEdgeHandleRight,h.style.position="absolute",h.style.left=`${f-3}px`,h.style.top="0",h.style.width="6px",h.style.height="100%",h.style.cursor="col-resize",h.style.zIndex="10",h.dataset.columnIndex=String(n.columnWidths.length-1),h.dataset.tableBlockId=String(e.blockId),h.dataset.isEdge="right",e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),i.appendChild(h);}return i}var Zt={textBox:"layout-textbox"};function ee(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");if(i.className=Zt.textBox,i.style.position="absolute",i.style.width=`${e.width}px`,i.style.height=`${e.height}px`,i.style.overflow="hidden",i.style.boxSizing="border-box",Jt(i,e),t.fillColor&&(i.style.backgroundColor=t.fillColor),t.outlineWidth&&t.outlineWidth>0){let s=t.outlineStyle||"solid",b=t.outlineColor||"#000000";i.style.border=`${t.outlineWidth}px ${s} ${b}`;}let d=t.margins??a$1;i.style.padding=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`,i.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let l=e.width-d.left-d.right,m=0;for(let s=0;s<t.content.length;s++){let b=t.content[s],g=n.innerMeasures[s];if(!g)continue;let u={blockId:b.id,width:l,height:g.totalHeight,pmStart:b.pmStart,pmEnd:b.pmEnd,fromLine:0,toLine:g.lines.length},E=D(u,b,g,{...o,positioning:"flow"},{document:a});i.appendChild(E),m+=g.totalHeight;}return i}function Jt(e,t){!t.isFloating&&t.zIndex===void 0||(e.style.zIndex=String(t.zIndex??10));}var Qt="layout-watermark-layer";function en(e,t){let n=Math.max(e.trim().length,1),o=t/(n*.62);return Math.max(24,Math.min(o,180))}function tn(e,t,n){let o=n.createElement("div");o.style.position="absolute",o.style.top="50%",o.style.left="50%",o.style.whiteSpace="nowrap",o.style.fontWeight="bold",o.style.color=e.color,o.style.fontFamily=a(e.font).cssFallback,o.style.userSelect="none";let r=t.size.w-t.margins.left-t.margins.right,a$1=e.layout==="diagonal"?r*1.3:r,i=e.fontSize!==void 0?e.fontSize*96/72:en(e.text,a$1);o.style.fontSize=`${i}px`,o.style.lineHeight="1",o.style.opacity=e.semitransparent?"0.5":"0.85";let d=e.layout==="diagonal"?-45:0;return o.style.transform=`translate(-50%, -50%) rotate(${d}deg)`,o.style.transformOrigin="center center",o.textContent=e.text,o}function nn(e,t,n){if(!e.dataUrl)return null;let o=n.createElement("img");o.src=e.dataUrl,o.alt="",o.style.position="absolute",o.style.top="50%",o.style.left="50%",o.style.transform="translate(-50%, -50%)";let r=t.size.w-t.margins.left-t.margins.right,a=e.widthEmu!==void 0?e.widthEmu/(914400/96):r*.75;return o.style.width=`${a*(e.scale||1)}px`,o.style.height="auto",e.washout&&(o.style.opacity="0.5",o.style.filter="brightness(1.4) contrast(0.4)"),o}function mt(e,t,n=document){let o=e.kind==="text"?tn(e,t,n):nn(e,t,n);if(!o)return null;let r=n.createElement("div");return r.className=Qt,r.setAttribute("aria-hidden","true"),r.style.position="absolute",r.style.inset="0",r.style.overflow="hidden",r.style.pointerEvents="none",r.style.zIndex="0",r.appendChild(o),r}function ut(e){return e?.align??e?.alignment}function on(e,t){let n=e.position.vertical;if(!n)return e.paragraphY;let o=ut(n),r=n.posOffset!==void 0?f(n.posOffset):void 0;if(n.relativeTo==="page"){if(r!==void 0)return r-t.flowTop;if(o==="top")return -t.flowTop;if(o==="bottom")return t.pageHeight-e.height-t.flowTop;if(o==="center")return (t.pageHeight-e.height)/2-t.flowTop}if(n.relativeTo==="margin"){let a=t.margins.top,i=t.pageHeight-t.margins.top-t.margins.bottom;if(r!==void 0)return a+r-t.flowTop;if(o==="top")return a-t.flowTop;if(o==="bottom")return a+i-e.height-t.flowTop;if(o==="center")return a+(i-e.height)/2-t.flowTop}return r!==void 0?e.paragraphY+r:e.paragraphY}function Pe(e,t,n){if(!t)return "0";let o=ut(t);if(t.relativeTo==="page"){if(t.posOffset!==void 0)return `${f(t.posOffset)-n.flowLeft}px`;if(o==="right")return `${n.pageWidth-e-n.flowLeft}px`;if(o==="center")return `${(n.pageWidth-e)/2-n.flowLeft}px`;if(o==="left")return `${-n.flowLeft}px`}return t.posOffset!==void 0?`${f(t.posOffset)}px`:o==="right"?`${n.contentWidth-e}px`:o==="center"?`${(n.contentWidth-e)/2}px`:"0"}function rn(e,t,n){e.style.left=Pe(t.width,t.position.horizontal,n);}function ht(e,t){let n=e.tblpY??0;e.vertAnchor==="page"?n-=t.flowTop:e.vertAnchor==="margin"&&(n+=t.margins.top-t.flowTop);let o=e.tblpX??0;return e.horzAnchor==="page"?o-=t.flowLeft:e.horzAnchor==="margin"&&(o+=t.margins.left-t.flowLeft),{left:o,top:n}}function Be(e,t,n,o){let r=n.document??document,a=r.createElement("div");a.style.position="relative";let i=t.contentWidth??600,d=[],l=0;for(let m=0;m<e.blocks.length;m++){let s=e.blocks[m],b=e.measures[m];if(!(!s||!b))if(s.kind==="paragraph"){if(b.kind!=="paragraph")continue;let g=s,u=b,E=g.attrs?.spacing?.before??0,y=l,p=[];for(let x of g.runs)if(x.kind==="image"&&"position"in x&&x.position){let T=x;d.push({src:T.src,width:T.width,height:T.height,alt:T.alt,paragraphY:y,position:T.position});}else p.push(x);let w={...g,runs:p},F={blockId:g.id,width:i,height:u.totalHeight,fromLine:0,toLine:u.lines.length,pmStart:g.pmStart,pmEnd:g.pmEnd},c=D(F,w,u,{...t,positioning:"absolute"},{document:r});c.style.top=`${l+E}px`,c.style.left="0",c.style.width=`${i}px`,a.appendChild(c),l+=u.totalHeight;}else if(s.kind==="table"){if(b.kind!=="table")continue;let g={blockId:s.id,width:b.totalWidth,height:b.totalHeight,fromRow:0,toRow:b.rows.length,pmStart:s.pmStart,pmEnd:s.pmEnd},u=Q(g,s,b,{...t,positioning:"absolute"},{document:r});if(s.floating){let{left:E,top:y}=ht(s.floating,o);u.style.top=`${y}px`,u.style.left=`${E}px`,a.appendChild(u);}else u.style.top=`${l}px`,u.style.left="0",a.appendChild(u),l+=b.totalHeight;}else if(s.kind==="image"){if(b.kind!=="image")continue;let g={blockId:s.id,width:b.width,height:b.height,pmStart:s.pmStart,pmEnd:s.pmEnd},u=Z(g,s,b,{...t},{document:r});u.style.top=`${l}px`,u.style.left="0",a.appendChild(u),l+=b.height;}else if(s.kind==="textBox"){if(b.kind!=="textBox")continue;let g={blockId:s.id,width:b.width,height:b.height,pmStart:s.pmStart,pmEnd:s.pmEnd},u=ee(g,s,b,{...t,positioning:"absolute"},{document:r});u.style.top=`${l}px`,u.style.left=Pe(b.width,s.position?.horizontal,o),a.appendChild(u),s.displayMode!=="float"&&(l+=b.height);}else s.kind==="sectionBreak"||s.kind==="pageBreak"||s.kind==="columnBreak"||c$3(s,"renderHeaderFooterContent");}for(let m of d){let s=r.createElement("img");s.src=m.src,s.width=m.width,s.height=m.height,m.alt&&(s.alt=m.alt),s.style.position="absolute",s.style.display="block",s.style.width=`${m.width}px`,s.style.height=`${m.height}px`,s.style.maxWidth="none",s.style.maxHeight="none",rn(s,m,o),s.style.top=`${on(m,o)}px`,a.appendChild(s);}return a}var be=12,Me=6;function an(e,t){if(e.size!==t.size)return false;for(let[n,o]of e)if(t.get(n)!==o)return false;return true}function sn(e,t){for(let[n,o]of t)if((e.get(n)??0)<o)return false;return true}function ln(e,t){let n=new Map(e);for(let[o,r]of t)n.set(o,Math.max(n.get(o)??0,r));return n}var $e=8;function Co(e){let t=[],n=o=>{for(let r of o)if(r.kind==="paragraph")for(let a of r.runs)a.kind==="text"&&a.footnoteRefId!=null&&t.push({footnoteId:a.footnoteRefId,pmPos:a.pmStart??0});else if(r.kind==="table")for(let a of r.rows)for(let i of a.cells)n(i.blocks);else r.kind==="textBox"&&n(r.content);};return n(e),t}function ye(e,t){let n=new Map;if(t.length===0)return n;for(let o of t)for(let r of e){let a=false;for(let i of r.fragments){let d=i.pmStart??-1,l=i.pmEnd??-1;if(d>=0&&l>=0&&o.pmPos>=d&&o.pmPos<l){let m=n.get(r.number)??[];m.includes(o.footnoteId)||m.push(o.footnoteId),n.set(r.number,m),a=true;break}}if(a)break}return n}function dn(e,t){if(e.length===0)return [{kind:"paragraph",id:`fn-empty-${t}`,runs:[{kind:"text",text:`${t} `,fontSize:$e,superscript:true}]}];let n=e.map(r=>{if(r.kind!=="paragraph")return r;let a=r;return {...a,runs:a.runs.map(i=>(i.kind==="text"||i.kind==="tab")&&i.fontSize==null?{...i,fontSize:$e}:i)}}),o=n[0];if(o.kind==="paragraph"){let r={kind:"text",text:`${t} `,fontSize:$e,superscript:true};n[0]={...o,runs:[r,...o.runs]};}return n}function cn(e,t,n,o){let r=c$1(e.content,{styles:o.styles??void 0,theme:o.theme??null,defaultTabStopTwips:o.defaultTabStopTwips??null}),a=c$2(r,{theme:o.theme??void 0}),i=dn(a,t),d=o.measureBlocks(i,n),l=d.reduce((m,s)=>s.kind==="paragraph"||s.kind==="table"?m+s.totalHeight:s.kind==="image"||s.kind==="textBox"?m+s.height:m,0);return {id:e.id,displayNumber:t,blocks:i,measures:d,height:l}}function Ro(e,t,n,o){let r=new Map,a=new Map;for(let l of e)(l.noteType==="normal"||l.noteType==null)&&a.set(l.id,l);let i=1,d=new Set;for(let l of t){if(d.has(l.footnoteId))continue;d.add(l.footnoteId);let m=a.get(l.footnoteId);m&&(r.set(l.footnoteId,cn(m,i,n,o)),i++);}return r}function He(e,t){let n=new Map;for(let[o,r]of e){let a=0;for(let i of r){let d=t.get(i);d&&(a+=d.height);}a>0&&(a+=be,n.set(o,a));}return n}function Eo(e){let{blocks:t,measures:n,layoutOpts:o,footnoteRefs:r,footnoteContentMap:a,initialLayout:i}=e,d=ye(i.pages,r),l=He(d,a);if(l.size===0)return {layout:i,pageFootnoteMap:d,converged:true};let m=i,s=false;for(let b=0;b<Me;b++){m=X$1(t,n,{...o,footnoteReservedHeights:l});let g=ye(m.pages,r),u=He(g,a);if(d=g,an(l,u)){l=u,s=true;break}l=u;}if(!s){let b=l,g=false;for(let u=0;u<Me;u++){m=X$1(t,n,{...o,footnoteReservedHeights:b}),d=ye(m.pages,r);let E=He(d,a);if(sn(b,E)){g=true;break}b=ln(b,E);}g||(m=X$1(t,n,{...o,footnoteReservedHeights:b}),d=ye(m.pages,r)),console.warn(`[docx-editor] footnote layout did not stabilize within ${Me} passes; settling with conservative page reservations. If footnotes appear misplaced, please file a bug with the document.`);}for(let[b,g]of d){let u=m.pages.find(E=>E.number===b);u&&(u.footnoteIds=g);}return {layout:m,pageFootnoteMap:d,converged:s}}function Lo(e,t,n){let o=new Map;if(!n?.package?.footnotes)return o;let r=new Map;for(let a of n.package.footnotes)a.noteType&&a.noteType!=="normal"||r.set(a.id,a);for(let[a,i]of e){let d=[];for(let l of i){let m=r.get(l);if(!m)continue;let s=t.get(l),b=s?.displayNumber??0;d.push({displayNumber:String(b),text:x$1(m),content:s});}d.length>0&&o.set(a,d);}return o}function pn(e,t,n,o){let r=o.createElement("div");r.className="layout-footnote-content",r.style.position="relative",r.style.width=`${t}px`,r.style.height=`${e.height}px`;let a=0;for(let i=0;i<e.blocks.length;i++){let d=e.blocks[i],l=e.measures[i];if(!(!d||!l)){if(d.kind==="paragraph"&&l.kind==="paragraph"){let m=d.attrs?.spacing?.before??0,s={blockId:d.id,width:t,height:l.totalHeight,pmStart:d.pmStart,pmEnd:d.pmEnd,fromLine:0,toLine:l.lines.length},b=D(s,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});b.style.top=`${a+m}px`,b.style.left="0",b.style.width=`${t}px`,b.style.height=`${l.totalHeight}px`,r.appendChild(b),a+=l.totalHeight;}else if(d.kind==="table"&&l.kind==="table"){let m={blockId:d.id,width:l.totalWidth,height:l.totalHeight,pmStart:d.pmStart,pmEnd:d.pmEnd,fromRow:0,toRow:l.rows.length},s=Q(m,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.totalHeight;}else if(d.kind==="image"&&l.kind==="image"){let m={blockId:d.id,width:l.width,height:l.height,pmStart:d.pmStart,pmEnd:d.pmEnd},s=Z(m,d,l,{...n},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.height;}else if(d.kind==="textBox"&&l.kind==="textBox"){let m={blockId:d.id,width:l.width,height:l.height,pmStart:d.pmStart,pmEnd:d.pmEnd},s=ee(m,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.height;}}}return r}function fn(e,t){let n=t.createElement("div");n.style.fontSize="10px",n.style.lineHeight="1.3",n.style.marginBottom="4px",n.style.color="#000";let o=t.createElement("sup");o.textContent=e.displayNumber,o.style.fontSize="7px",o.style.marginRight="2px",n.appendChild(o);let r=t.createTextNode(" "+e.text);return n.appendChild(r),n}function yt(e){let t=be;for(let n of e)n.content&&(t+=n.content.height);return t}function bt(e,t,n,o){let r=o.createElement("div");r.className="layout-footnote-area",r.style.width=`${t}px`;let a=o.createElement("div"),i=.5,d=(be-i)/2;a.style.width="33%",a.style.height=`${i}px`,a.style.backgroundColor="#000",a.style.marginBottom=`${d}px`,a.style.marginTop=`${d}px`,r.appendChild(a);for(let l of e)r.appendChild(l.content?pn(l.content,t,n,o):fn(l,o));return r}function Ae(e,t,n){let o={pageNumber:e.number,totalPages:t,section:"body",resolvedCommentIds:n.resolvedCommentIds},r={...n};if(n.titlePg&&e.number===1&&(r.headerContent=n.firstPageHeaderContent,r.footerContent=n.firstPageFooterContent),n.footnotesByPage){let a=n.footnotesByPage.get(e.number);a&&a.length>0&&(r.footnoteArea=a);}return {context:o,pageOptions:r}}function xt(e){let t=[];t.push(`s:${e.size.w},${e.size.h}`),t.push(`m:${e.margins.top},${e.margins.right},${e.margins.bottom},${e.margins.left}`),t.push(`n:${e.number}`),e.footnoteReservedHeight&&t.push(`fn:${e.footnoteReservedHeight}`);for(let n of e.fragments){let o=`${n.kind}:${n.blockId},${n.x},${n.y},${n.width},${n.height}`;n.pmStart!==void 0&&(o+=`,ps:${n.pmStart}`),n.pmEnd!==void 0&&(o+=`,pe:${n.pmEnd}`),n.kind==="paragraph"?o+=`,fl:${n.fromLine},tl:${n.toLine}`:n.kind==="table"&&(o+=`,fr:${n.fromRow},tr:${n.toRow}`),t.push(o);}return t.join("|")}function gn(e){let t=[];return e.headerContent&&t.push(`hdr:${e.headerContent.blocks.length},${e.headerContent.height},${e.headerContent.visualTop??0},${e.headerContent.visualBottom??e.headerContent.height}`),e.footerContent&&t.push(`ftr:${e.footerContent.blocks.length},${e.footerContent.height},${e.footerContent.visualTop??0},${e.footerContent.visualBottom??e.footerContent.height}`),e.firstPageHeaderContent&&t.push(`fp-hdr:${e.firstPageHeaderContent.blocks.length},${e.firstPageHeaderContent.height}`),e.firstPageFooterContent&&t.push(`fp-ftr:${e.firstPageFooterContent.blocks.length},${e.firstPageFooterContent.height}`),e.titlePg&&t.push("titlePg"),e.theme&&t.push(`thm:${e.theme.name??"default"}`),e.pageBorders&&t.push(`pb:${JSON.stringify(e.pageBorders)}`),e.headerDistance!==void 0&&t.push(`hd:${e.headerDistance}`),e.footerDistance!==void 0&&t.push(`fd:${e.footerDistance}`),t.join("|")}function mn(e,t){e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap=`${t}px`,e.style.padding=`${t}px`,e.style.backgroundColor="var(--doc-bg, #f8f9fa)";}var xe=2,un=8;function hn(e,t,n={}){let o=e.length,r=n.pageGap??24,a=t,i=a.__pageRenderState,d=gn(n),l=o>=un;if(i&&i.optionsHash===d&&l){let p=i.pageStates,w=i.pageDataMap,F=a.__pageObserver,c=[];for(let S of e)c.push(xt(S));let x=i.totalPages!==o,T=Math.min(p.length,e.length);for(let S=0;S<T;S++){let k=p[S],f=c[S];if(k.fingerprint===f&&!x){let C=w.get(k.element);C&&(C.page=e[S]);continue}let h=k.element,R=w.get(h);R&&(R.page=e[S],R.rendered&&yn(h,w,o,n)),k.fingerprint=f,le(h,e[S].size.w,e[S].size.h,n),h.dataset.pageNumber=String(e[S].number);}if(e.length>p.length){let S=n.document??document;for(let k=p.length;k<e.length;k++){let f=e[k],h=S.createElement("div");h.className=n.pageClassName??G.page,h.dataset.pageNumber=String(f.number),h.dataset.pageIndex=String(k),le(h,f.size.w,f.size.h,n),t.appendChild(h),p.push({element:h,fingerprint:c[k]}),w.set(h,{page:f,index:k,rendered:false}),F&&F.observe(h);}}if(e.length<p.length){for(let S=p.length-1;S>=e.length;S--){let k=p[S].element;F&&F.unobserve(k),w.delete(k),t.removeChild(k);}p.length=e.length;}for(let S=0;S<p.length;S++){let k=w.get(p[S].element);k&&(k.index=S);}return i.totalPages=o,i.currentOptions=n,"incremental"}let s=a.__pageObserver;s&&(s.disconnect(),a.__pageObserver=void 0),t.innerHTML="",a.__pageRenderState=void 0,mn(t,r);let b=[],g=[];for(let p=0;p<e.length;p++){let w=e[p];if(g.push(xt(w)),l){let c=(n.document??document).createElement("div");c.className=n.pageClassName??G.page,c.dataset.pageNumber=String(w.number),c.dataset.pageIndex=String(p),le(c,w.size.w,w.size.h,n),t.appendChild(c),b.push(c);}else {let{context:F,pageOptions:c}=Ae(w,o,n),x=Se(w,F,c);t.appendChild(x),b.push(x);}}if(!l)return "full";let u=new Map;for(let p=0;p<e.length;p++)u.set(b[p],{page:e[p],index:p,rendered:false});let E=new IntersectionObserver(p=>{let w=a.__pageRenderState;if(!w)return;let{currentOptions:F,totalPages:c,pageDataMap:x}=w;for(let f of p){let h=f.target,R=x.get(h);if(R&&f.isIntersecting){se(h,x,c,F);for(let C=-xe;C<=xe;C++){let I=R.index+C;I>=0&&I<w.pageStates.length&&I!==R.index&&se(w.pageStates[I].element,x,c,F);}}}let T=window.innerHeight,S=T*3,k=new Set;for(let[f,h]of x){if(!h.rendered)continue;let R=f.getBoundingClientRect();R.bottom>-S&&R.top<T+S&&k.add(h.index);}for(let[f,h]of x){if(!h.rendered)continue;let R=false;for(let C of k)if(Math.abs(h.index-C)<=xe+1){R=true;break}!R&&k.size>0&&bn(f,x);}},{root:null,rootMargin:"1500px 0px 1500px 0px"});for(let p of b)E.observe(p);a.__pageObserver=E,a.__pageRenderState={pageStates:b.map((p,w)=>({element:p,fingerprint:g[w]})),totalPages:o,optionsHash:d,pageDataMap:u,currentOptions:n};let y=Math.min(e.length,xe+3);for(let p=0;p<y;p++)se(b[p],u,o,n);return "full"}function se(e,t,n,o){let r=t.get(e);if(!r||r.rendered)return;let{context:a,pageOptions:i}=Ae(r.page,n,o),d=Se(r.page,a,i);for(;d.firstChild;)e.appendChild(d.firstChild);r.rendered=true;}function yn(e,t,n,o){let r=t.get(e);if(!r)return;let{context:a,pageOptions:i}=Ae(r.page,n,o),l=Se(r.page,a,i).querySelector(`.${G.content}`),m=e.querySelector(`.${G.content}`);l&&m?e.replaceChild(l,m):(e.innerHTML="",r.rendered=false,se(e,t,n,o));}function bn(e,t){let n=t.get(e);!n||!n.rendered||(e.innerHTML="",n.rendered=false);}function xn(e){let n=e.__pageRenderState;if(!n)return 0;let{pageStates:o,totalPages:r,currentOptions:a,pageDataMap:i}=n,d=0;for(let{element:l}of o){let m=i.get(l);!m||m.rendered||(se(l,i,r,a),d++);}return d}var G={page:"layout-page",content:"layout-page-content",header:"layout-page-header",footer:"layout-page-footer"};function le(e,t,n,o){e.style.position="relative",e.style.width=`${t}px`,e.style.height=`${n}px`,e.style.backgroundColor=o.backgroundColor??"var(--doc-page-bg, #ffffff)",e.style.overflow="hidden",e.style.fontFamily=a("Calibri").cssFallback,e.style.fontSize=`${1056/72}px`,e.style.color="var(--doc-page-text, #000000)",o.showBorders&&(e.style.border="1px solid #ccc"),o.showShadow&&(e.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");}function Sn(e,t){switch(t??"allPages"){case "firstPage":return e===1;case "notFirstPage":return e!==1;default:return true}}function ke(e){return e?.space!==void 0?j$1(e.space):0}function we(e,t,n,o){if(!t||t.style==="none"||t.style==="nil")return;let r=c$4(t,n,o);for(let[l,m]of Object.entries(r))e.style[l]=String(m);let a=`border${n}Style`,i=`border${n}Width`;if(e.style[a]==="double"){let l=parseFloat(e.style[i]);(!Number.isFinite(l)||l<3)&&(e.style[i]="3px");}}function kn(e,t,n){let o=t.pageBorders;if(!o||!Sn(e.number,o.display)||![o.top,o.bottom,o.left,o.right].some(b=>b&&b.style!=="none"&&b.style!=="nil"))return null;let a=o.offsetFrom??"text",i=ke(o.top),d=ke(o.right),l=ke(o.bottom),m=ke(o.left),s=n.createElement("div");return s.className="layout-page-border",s.style.position="absolute",s.style.pointerEvents="none",s.style.boxSizing="border-box",s.style.zIndex=o.zOrder==="back"?"0":"20",a==="page"?(s.style.top=`${i}px`,s.style.right=`${d}px`,s.style.bottom=`${l}px`,s.style.left=`${m}px`):(s.style.top=`${Math.max(0,e.margins.top-i)}px`,s.style.right=`${Math.max(0,e.margins.right-d)}px`,s.style.bottom=`${Math.max(0,e.margins.bottom-l)}px`,s.style.left=`${Math.max(0,e.margins.left-m)}px`),we(s,o.top,"Top",t.theme),we(s,o.bottom,"Bottom",t.theme),we(s,o.left,"Left",t.theme),we(s,o.right,"Right",t.theme),s}function wn(e,t){let n=t.margins;e.style.position="absolute",e.style.top=`${n.top}px`,e.style.left=`${n.left}px`,e.style.right=`${n.right}px`,e.style.bottom=`${n.bottom}px`,e.style.overflow="visible";}function Tn(e,t,n){e.style.position="absolute",e.style.left=`${t.x-n.left}px`;let o=t.y-n.top;e.style.top=`${t.kind==="table"?Math.round(o):o}px`,e.style.width=`${t.width}px`,"height"in t&&t.kind!=="table"&&(e.style.height=`${t.height}px`);}function In(e$1,t,n,o){let r=[];for(let a of e$1.runs){if(a.kind!=="image")continue;let i=a;if(!c(i))continue;let d=i.distTop??0,l=i.distBottom??0,m=i.distLeft??12,s=i.distRight??12,{x:b,y:g$1,side:u}=g(i,t,n,o);r.push({src:i.src,width:i.width,height:i.height,alt:i.alt,transform:i.transform,side:u,x:b,y:g$1,distTop:d,distBottom:l,distLeft:m,distRight:s,pmStart:i.pmStart,pmEnd:i.pmEnd,wrapText:e(i.cssFloat),wrapType:i.wrapType,cropTop:i.cropTop,cropRight:i.cropRight,cropBottom:i.cropBottom,cropLeft:i.cropLeft,opacity:i.opacity});}return r}function Se(e,t,n={}){let o=n.document??document,r=o.createElement("div");if(r.className=n.pageClassName??G.page,r.dataset.pageNumber=String(e.number),le(r,e.size.w,e.size.h,n),n.watermark){let c=mt(n.watermark,e,o);c&&r.appendChild(c);}let a=kn(e,n,o);a&&n.pageBorders?.zOrder==="back"&&r.appendChild(a);let i=o.createElement("div");i.className=G.content,wn(i,e);let d=f$1(e),l=d.contentWidth,m=[],s=[];for(let c of e.fragments)if(c.kind==="paragraph"&&n.blockLookup){let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind==="paragraph"){let T=x.block,S=c.y-e.margins.top,k=In(T,S,l,d);m.push(...k);}}for(let c of m)a$2(c)&&s.push({side:c.side,x:c.x,y:c.y,width:c.width,height:c.height,distTop:c.distTop,distBottom:c.distBottom,distLeft:c.distLeft,distRight:c.distRight,wrapText:c.wrapText,wrapType:c.wrapType});if(n.blockLookup)for(let c of e.fragments){if(c.kind!=="table")continue;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind!=="table")continue;let S=x.block.floating;if(!S)continue;let k=c.x-e.margins.left,f=c.y-e.margins.top,h=S.topFromText??0,R=S.bottomFromText??0,C=S.leftFromText??12,I=S.rightFromText??12,v=k<l/2?"left":"right";s.push({side:v,x:k,y:f,width:c.width,height:c.height,distTop:h,distBottom:R,distLeft:C,distRight:I});}if(n.blockLookup)for(let c of e.fragments){if(c.kind!=="textBox")continue;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind!=="textBox")continue;let T=x.block;if(!L(T))continue;let S=c.y-e.margins.top,k=g({width:c.width,height:c.height,position:T.position,cssFloat:T.cssFloat},S,l,d);c.x=e.margins.left+k.x,c.y=e.margins.top+k.y,!(!M(T)&&!N$1(T))&&s.push({side:k.side,x:k.x,y:k.y,width:c.width,height:c.height,distTop:T.distTop??0,distBottom:T.distBottom??0,distLeft:T.distLeft??12,distRight:T.distRight??12,wrapText:T.wrapText,wrapType:T.wrapType});}let b$1=s.length>0?C(s,l):[],g$1=m.filter(b),u=m.filter(c=>!b(c));if(g$1.length>0){let c=q(g$1,o,{layerClass:"layout-floating-images-layer",itemClass:"layout-page-floating-image",sizing:"inset0",layerMode:"behind"});i.appendChild(c);}let E=c=>{if(c.kind!=="paragraph"||!n.blockLookup||!c.blockId)return;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind==="paragraph")return x.block.attrs?.borders},y,p=new Map,w=c=>!n.blockLookup||!c.blockId?[]:n.blockLookup.get(String(c.blockId))?.block.sdtGroups??[],F=(c,x)=>{if(x.length===0)return;let T=x[x.length-1];c.classList.add("layout-block-sdt"),c.dataset.sdtGroupId=T.id,c.dataset.sdtType=T.sdtType,c.dataset.sdtDepth=String(x.length),T.tag!=null&&(c.dataset.sdtTag=T.tag),T.alias!=null&&(c.dataset.sdtAlias=T.alias),T.lock!=null&&(c.dataset.sdtLock=T.lock);};for(let c=0;c<e.fragments.length;c++){let x=e.fragments[c],T,S={...t,section:"body",contentWidth:l},k=x.y-e.margins.top;if(n.blockLookup&&x.blockId){let f=n.blockLookup.get(String(x.blockId));if(x.kind==="paragraph"&&f?.block.kind==="paragraph"&&f?.measure.kind==="paragraph"){let h=f.block,R=c+1<e.fragments.length?E(e.fragments[c+1]):void 0,C=String(x.blockId),I=p.get(C);I||(I=new Set,p.set(C,I));let v=f.measure;b$1.length>0&&(v=z$1(h,l,{floatingZones:b$1,paragraphYOffset:k})),T=D(x,h,v,S,{document:o,prevBorders:y,nextBorders:R,renderedInlineImageKeys:I}),y=h.attrs?.borders;}else x.kind==="table"&&f?.block.kind==="table"&&f?.measure.kind==="table"?(T=Q(x,f.block,f.measure,S,{document:o}),y=void 0):x.kind==="image"&&f?.block.kind==="image"&&f?.measure.kind==="image"?(T=Z(x,f.block,f.measure,S,{document:o}),y=void 0):x.kind==="textBox"&&f?.block.kind==="textBox"&&f?.measure.kind==="textBox"?(T=ee(x,f.block,f.measure,S,{document:o}),y=void 0):(T=Ie(x,S,{document:o}),y=void 0);}else T=Ie(x,S,{document:o}),y=void 0;Tn(T,x,{left:e.margins.left,top:e.margins.top}),F(T,w(x)),i.appendChild(T);}if(tt(e,i,l,w,o),u.length>0){let c=q(u,o,{layerClass:"layout-floating-images-layer",itemClass:"layout-page-floating-image",sizing:"inset0",layerMode:"front"});i.appendChild(c);}if(e.columns&&e.columns.separator&&e.columns.count>1){let c=e.columns.count,x=e.columns.gap,T=(l-(c-1)*x)/c,S=e.size.h-e.margins.top-e.margins.bottom;for(let k=0;k<c-1;k++){let f=(k+1)*T+k*x+x/2,h=o.createElement("div");h.style.position="absolute",h.style.left=`${f}px`,h.style.top="0",h.style.height=`${S}px`,h.style.width="0.5px",h.style.backgroundColor="#000",h.style.pointerEvents="none",i.appendChild(h);}}if(n.footnoteArea&&n.footnoteArea.length>0){let c=bt(n.footnoteArea,l,t,o);c.style.position="absolute";let x=Math.max(e.footnoteReservedHeight??0,yt(n.footnoteArea)),T=e.size.h-e.margins.bottom-e.margins.top;c.style.top=`${Math.max(-e.margins.top,T-x)}px`,c.style.left="0",c.style.right="0",i.appendChild(c);}r.appendChild(i);{let x=n.headerDistance??e.margins.header??48,T=e.size.w-e.margins.left-e.margins.right,S=Math.max(e.margins.top-x,48),k=n.headerContent?.visualTop??0,f=n.headerContent?.visualBottom??n.headerContent?.height??0,h=Math.max(f-k,24),R=f>S,C=o.createElement("div");C.className=G.header,C.style.position="absolute",C.style.top=`${x+k}px`,C.style.left=`${e.margins.left}px`,C.style.right=`${e.margins.right}px`,C.style.width=`${T}px`,C.style.height=`${h}px`,C.style.minHeight=`${h}px`;let I=!R;if(n.headerContent&&n.headerContent.blocks.length>0){let v={flowTop:x,flowLeft:e.margins.left,contentWidth:T,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},L=Be(n.headerContent,{...t,section:"header",contentWidth:T},n,v);L.style.top=`${-k}px`,L.querySelector("img")&&(I=false),C.appendChild(L);}I&&(C.style.maxHeight=`${S}px`,C.style.overflow="hidden"),r.appendChild(C);}{let x=n.footerDistance??e.margins.footer??48,T=e.size.w-e.margins.left-e.margins.right,S=Math.max(e.margins.bottom-x,48),k=n.footerContent?.visualTop??0,f=n.footerContent?.visualBottom??n.footerContent?.height??0,h=Math.max(f-k,24),R=h>S,C=o.createElement("div");C.className=G.footer,C.style.position="absolute",C.style.top=`${e.size.h-x-h}px`,C.style.left=`${e.margins.left}px`,C.style.right=`${e.margins.right}px`,C.style.width=`${T}px`,C.style.height=`${h}px`,C.style.minHeight=`${h}px`;let I=!R;if(n.footerContent&&n.footerContent.blocks.length>0){let v={flowTop:e.size.h-x-(n.footerContent?.height??0),flowLeft:e.margins.left,contentWidth:T,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},L=Be(n.footerContent,{...t,section:"footer",contentWidth:T},n,v);L.style.top=`${-k}px`,L.querySelector("img")&&(I=false),C.appendChild(L);}I&&(C.style.maxHeight=`${S}px`,C.style.overflow="hidden"),r.appendChild(C);}return a&&n.pageBorders?.zOrder!=="back"&&r.appendChild(a),r}export{ht as A,hn as B,xn as C,G as D,le as E,Se as F,be as a,Me as b,an as c,Co as d,ye as e,dn as f,cn as g,Ro as h,He as i,Eo as j,Lo as k,Fn as l,Cn as m,U as n,Ie as o,nt as p,Z as q,dt as r,he as s,D as t,q as u,_ as v,Q as w,Zt as x,ee as y,Pe as z};
@@ -0,0 +1 @@
1
+ import {c,a as a$1,b as b$1}from'./chunk-FCJWLEKT.mjs';import {a as a$2,b}from'./chunk-7E5VBRDL.mjs';import {p}from'./chunk-4QJEMD23.mjs';import {a,b as b$2,o}from'./chunk-67LVRQIR.mjs';import {j as j$1,k,l}from'./chunk-KNY7SXPJ.mjs';import {f}from'./chunk-VJFIAFZ5.mjs';function B(e,s){let r={};for(let t of e)switch(t.type.name){case "bold":r.bold=true;break;case "italic":r.italic=true;break;case "underline":{let n=t.attrs;if(n.style||n.color){let i=n.color?a(n.color,s):void 0;r.underline={style:n.style,color:i};}else r.underline=true;break}case "strike":r.strike=true;break;case "textColor":{let n=t.attrs;(n.themeColor||n.rgb)&&(r.color=a({rgb:n.rgb,themeColor:n.themeColor,themeTint:n.themeTint,themeShade:n.themeShade},s));break}case "highlight":r.highlight=o(t.attrs.color);break;case "fontSize":{let n=t.attrs;r.fontSize=n.size/2;break}case "fontFamily":{let n=t.attrs;r.fontFamily=n.ascii||n.hAnsi;break}case "characterSpacing":{let n=t.attrs;n.spacing!=null&&n.spacing!==0&&(r.letterSpacing=a$1(n.spacing)),n.position!=null&&n.position!==0&&(r.positionPx=k(n.position)),n.scale!=null&&n.scale!==100&&(r.horizontalScale=n.scale),n.kerning!=null&&n.kerning>0&&(r.kerningMinPt=l(n.kerning));break}case "allCaps":r.allCaps=true;break;case "smallCaps":r.smallCaps=true;break;case "emboss":r.emboss=true;break;case "imprint":r.imprint=true;break;case "textShadow":r.textShadow=true;break;case "textOutline":r.textOutline=true;break;case "hidden":r.hidden=true;break;case "rtl":r.rtl=true;break;case "textEffect":{let n=t.attrs.effect;(n==="blinkBackground"||n==="lights"||n==="antsBlack"||n==="antsRed"||n==="shimmer"||n==="sparkle")&&(r.textEffect=n);break}case "emphasisMark":{let n=t.attrs.type;n==="dot"||n==="comma"||n==="circle"||n==="underDot"?r.emphasisMark=n:r.emphasisMark="dot";break}case "superscript":r.superscript=true;break;case "subscript":r.subscript=true;break;case "hyperlink":{let n=t.attrs;r.hyperlink={href:n.href,tooltip:n.tooltip};break}case "footnoteRef":{let n=t.attrs,i=typeof n.id=="string"?parseInt(n.id,10):n.id;n.noteType==="endnote"?r.endnoteRefId=i:r.footnoteRefId=i;break}case "comment":{let n=t.attrs.commentId;n&&(r.commentIds||(r.commentIds=[]),r.commentIds.push(n));break}case "insertion":r.isInsertion=true,r.changeAuthor=t.attrs.author,r.changeDate=t.attrs.date,r.changeRevisionId=t.attrs.revisionId;break;case "deletion":r.isDeletion=true,r.changeAuthor=t.attrs.author,r.changeDate=t.attrs.date,r.changeRevisionId=t.attrs.revisionId;break}return r}function G(e){let s=e.defaultTextFormatting;if(!s)return {};let r={};if(s.fontFamily){let t=s.fontFamily.ascii||s.fontFamily.hAnsi;t&&(r.fontFamily=t);}return s.fontSize!=null&&(r.fontSize=s.fontSize/2),r}function D(e){e.hyperlink&&(e.hyperlink={...e.hyperlink,noDefaultStyle:true},delete e.color,delete e.underline);}function $(e){return e==="contentLocked"||e==="sdtContentLocked"}function Y(e,s){let r=e.attrs;if(r.sdtType==="checkbox"&&!($(r.lock)||r.dataBinding!=null))return {kind:"checkbox",groupId:`sdt@${s}`,pos:s,tag:r.tag!=null?String(r.tag):void 0,alias:r.alias!=null?String(r.alias):void 0,checked:typeof r.checked=="boolean"?r.checked:void 0}}function N(e,s,r){let t=[],n=s+1,i=r.theme,l=G(e.attrs),b=e.attrs.styleId,d=typeof b=="string"&&/^TOC\d*$/i.test(b);function f(u,m,p){if(u.isText&&u.text){let a=B(u.marks,i);d&&D(a);let o={kind:"text",text:u.text,...l,...a,pmStart:m,pmEnd:m+u.nodeSize,inlineSdtWidget:p};t.push(o);}else if(u.type.name==="hardBreak")t.push({kind:"lineBreak",pmStart:m,pmEnd:m+u.nodeSize});else if(u.type.name==="tab"){let a=B(u.marks,i),o={kind:"tab",...l,...a,pmStart:m,pmEnd:m+u.nodeSize};t.push(o);}else if(u.type.name==="image"){let a=u.attrs,o=b$1(a.width||100,a.height||100,r.pageContentHeight),c=B(u.marks,i),h={kind:"image",src:a.src,width:o.width,height:o.height,alt:a.alt,transform:a.transform,wrapType:a.wrapType,displayMode:a.displayMode,cssFloat:a.cssFloat,distTop:a.distTop,distBottom:a.distBottom,distLeft:a.distLeft,distRight:a.distRight,position:a.position,cropTop:a.cropTop,cropRight:a.cropRight,cropBottom:a.cropBottom,cropLeft:a.cropLeft,opacity:a.opacity,isInsertion:c.isInsertion,isDeletion:c.isDeletion,changeAuthor:c.changeAuthor,changeDate:c.changeDate,changeRevisionId:c.changeRevisionId,pmStart:m,pmEnd:m+u.nodeSize};t.push(h);}else if(u.type.name==="field"){let a=u.attrs.fieldType,o=a==="PAGE"?"PAGE":a==="NUMPAGES"?"NUMPAGES":a==="DATE"?"DATE":a==="TIME"?"TIME":"OTHER",c=B(u.marks,i);d&&D(c),t.push({kind:"field",fieldType:o,fallback:u.attrs.displayText||"",...l,...c,pmStart:m,pmEnd:m+u.nodeSize});}else if(u.type.name==="math"){let a=u.attrs.plainText||"[equation]";t.push({kind:"text",text:a,italic:true,fontFamily:"Cambria Math",pmStart:m,pmEnd:m+u.nodeSize});}else if(u.type.name==="sdt"){let a=Y(u,m)??p,o=m+1;u.forEach((c,h)=>{f(c,o+h,a);});}}return e.forEach((u,m)=>{f(u,n+m);}),t}function j(e){return Math.max(1,Math.round(e/8*1.333))}var Z={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 w(e,s){if(!e||!e.style||e.style==="none"||e.style==="nil")return;let r={style:Z[e.style]||"solid",width:j(e.size??0),color:e.color?a(e.color,s):"#000000"};return e.space!==void 0&&(r.space=j$1(e.space)),r}function O(e,s){let r=e.borders;if(!r)return;let t={},n=["top","bottom","left","right"];for(let i of n){let l=r[i],b=l?w(l,s):void 0;t[i]=b??{width:0,style:"none"};}return Object.keys(t).length>0?t:void 0}function V(e,s){let r=[];for(let t=0;t<=s;t+=1){let n=e[t]??0;if(n<=0)break;r.push(n);}return r.length===0?"1.":`${r.join(".")}.`}var q=[[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 W(e,s){if(e<=0)return "";let r=e,t="";for(let[n,i]of q)for(;r>=n;)t+=i,r-=n;return s?t:t.toLowerCase()}function H(e,s){if(e<=0)return "";let r=e,t="";for(;r>0;){let n=(r-1)%26;t=String.fromCharCode(65+n)+t,r=Math.floor((r-1)/26);}return s?t:t.toLowerCase()}function K(e,s){if(e<=0)return "";switch(s){case "upperRoman":return W(e,true);case "lowerRoman":return W(e,false);case "upperLetter":return H(e,true);case "lowerLetter":return H(e,false);case "decimalZero":return f(e,2);case "decimalZero3":return f(e,3);case "decimalZero4":return f(e,4);case "decimalZero5":return f(e,5);case "none":return "";default:return String(e)}}function X(e,s,r){return e.replace(/%(\d)([.):\]])?/g,(t,n,i="")=>{let l=parseInt(n,10)-1;if(l<0)return "";let b=s[l]??0,d=r?.[l]??"decimal",f=K(b,d);return f?f+i:""})}function _(e,s,r){let t=e.numPr;if(!t)return null;let n=t.numId;if(n==null||n===0)return null;if(e.listIsBullet)return p(e.listMarker||"");let i=t.ilvl??0;if((e.listLevelNumFmts?.[i]??e.listNumFmt)==="none")return e.listMarker?e.listMarker:null;let b=e.listAbstractNumId??n,d=s.get(b)??new Array(9).fill(0),f=`${n}:${i}`;r.has(f)||(r.add(f),e.listStartOverride!=null&&(d[i]=e.listStartOverride-1)),d[i]=(d[i]??0)+1;for(let u=i+1;u<d.length;u+=1)d[u]=0;return s.set(b,d),e.listMarker&&e.listMarker.includes("%")?X(e.listMarker,d,e.listLevelNumFmts??void 0):e.listMarker?e.listMarker:V(d,i)}var J="Calibri",Q=11;function A(e,s,r,t,n){let i={};if(e.alignment){let o=e.alignment;o==="both"||o==="distribute"?i.alignment="justify":o==="left"?i.alignment="left":o==="center"?i.alignment="center":o==="right"&&(i.alignment="right");}let l=e._originalFormatting?.beforeAutospacing,b=e._originalFormatting?.afterAutospacing;(l||b||e.spaceBefore!=null||e.spaceAfter!=null||e.lineSpacing!=null)&&(i.spacing={},l?i.spacing.before=14:e.spaceBefore!=null&&(i.spacing.before=a$1(e.spaceBefore)),b?i.spacing.after=14:e.spaceAfter!=null&&(i.spacing.after=a$1(e.spaceAfter)),e.lineSpacing!=null&&(e.lineSpacingRule==="exact"||e.lineSpacingRule==="atLeast"?(i.spacing.line=a$1(e.lineSpacing),i.spacing.lineUnit="px",i.spacing.lineRule=e.lineSpacingRule):(i.spacing.line=e.lineSpacing/240,i.spacing.lineUnit="multiplier",i.spacing.lineRule="auto"))),e.spacingExplicit&&(i.spacingExplicit=e.spacingExplicit);let d=e.indentLeft,f=e.indentFirstLine,u=e.hangingIndent;if(e.numPr?.numId&&d==null&&(d=((e.numPr.ilvl??0)+1)*720,f==null&&(f=-360,u=true)),(d!=null||e.indentRight!=null||f!=null)&&(i.indent={},d!=null&&(i.indent.left=a$1(d)),e.indentRight!=null&&(i.indent.right=a$1(e.indentRight)),f!=null&&(u?i.indent.hanging=Math.abs(a$1(f)):i.indent.firstLine=a$1(f))),e.styleId&&(i.styleId=e.styleId),e.borders){let o=e.borders;i.borders={};let c=h=>h?w(h,s):void 0;o.top&&(i.borders.top=c(o.top)),o.bottom&&(i.borders.bottom=c(o.bottom)),o.left&&(i.borders.left=c(o.left)),o.right&&(i.borders.right=c(o.right)),o.between&&(i.borders.between=c(o.between)),o.bar&&(i.borders.bar=c(o.bar)),!i.borders.top&&!i.borders.bottom&&!i.borders.left&&!i.borders.right&&!i.borders.between&&!i.borders.bar&&delete i.borders;}let m=b$2(e.shading?.fill,s);m&&(i.shading=`#${m}`),e.tabs&&e.tabs.length>0&&(i.tabs=e.tabs.map(o=>({val:ee(o.alignment),pos:o.position,leader:o.leader}))),e.pageBreakBefore&&(i.pageBreakBefore=true),e.keepNext&&(i.keepNext=true),e.keepLines&&(i.keepLines=true),e.contextualSpacing&&(i.contextualSpacing=true),e.bidi&&(i.bidi=true),e.styleId&&(i.styleId=e.styleId),e.numPr&&(i.numPr={numId:e.numPr.numId,ilvl:e.numPr.ilvl});let p=r&&t?_(e,r,t):null;p!=null?i.listMarker=p:e.listMarker&&(i.listMarker=e.listMarker),e.listIsBullet!=null&&(i.listIsBullet=e.listIsBullet),e.listMarkerHidden&&(i.listMarkerHidden=true),e.listMarkerFontFamily&&(i.listMarkerFontFamily=e.listMarkerFontFamily),e.listMarkerFontSize&&(i.listMarkerFontSize=e.listMarkerFontSize),e.listMarkerSuffix&&(i.listMarkerSuffix=e.listMarkerSuffix),n!==void 0&&(i.defaultTabStopTwips=n);let a=e.defaultTextFormatting;if(a&&(a.fontSize!=null&&(i.defaultFontSize=a.fontSize/2),a.fontFamily&&(i.defaultFontFamily=a.fontFamily.ascii||a.fontFamily.hAnsi)),e.pPrIns&&(i.pPrIns=e.pPrIns),e.pPrDel&&(i.pPrDel=e.pPrDel),e.numPr){let o=e.pPrChange,c=Array.isArray(o)&&o.some(h=>!h?.previousFormatting?.numPr);e.pPrDel?i.listMarkerRevision="del":(e.pPrIns||c)&&(i.listMarkerRevision="ins");}return i}function ee(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 M(e,s,r){let t=e.attrs,n=N(e,s,r),i=A(t,r.theme,r.listCounters,r.listSeenNumIds,r.defaultTabStopTwips);return {kind:"paragraph",id:c(),runs:n,attrs:i,pmStart:s,pmEnd:s+e.nodeSize}}function te(e,s,r,t){let n=[],i=s+1;e.forEach(o=>{o.type.name==="paragraph"?n.push(M(o,i,r)):o.type.name==="table"&&n.push(U(o,i,r)),i+=o.nodeSize;});let l=e.attrs,b=l.width,d=l.widthType,f=b&&(!d||d==="dxa"||d==="auto")?a$1(b):void 0,u=l.margins,m=(o,c)=>{if(o!=null){let h=a$1(o);if(h>0)return h}if(c!=null){let h=a$1(c);if(h>=0)return h}return 0},p={top:m(u?.top,t?.top),right:m(u?.right,t?.right),bottom:m(u?.bottom,t?.bottom),left:m(u?.left,t?.left)},a=l.cellMarker;return {id:c(),blocks:n,colSpan:l.colspan,rowSpan:l.rowspan,width:f,widthValue:b,widthType:d,verticalAlign:l.verticalAlign,background:l.backgroundColor?`#${l.backgroundColor}`:void 0,borders:O(l,r.theme),padding:p,noWrap:l.noWrap||void 0,trackedMarker:a??void 0}}function ne(e,s,r,t){let n=[],i=s+1;e.forEach(d=>{(d.type.name==="tableCell"||d.type.name==="tableHeader")&&n.push(te(d,i,r,t)),i+=d.nodeSize;});let l=e.attrs,b=l._originalFormatting;return {id:c(),cells:n,height:l.height?a$1(l.height):void 0,heightRule:l.heightRule??void 0,isHeader:l.isHeader,cantSplit:b?.cantSplit||void 0,trackedIns:l.trIns??void 0,trackedDel:l.trDel??void 0}}function U(e,s,r){let t=[],n=s+1,i=e.attrs.cellMargins;e.forEach(c=>{c.type.name==="tableRow"&&t.push(ne(c,n,r,i)),n+=c.nodeSize;});let b=e.attrs.columnWidths?.map(a$1),d=e.attrs.width,f=e.attrs.widthType;if(!b&&t.length>0){let h=t[0].cells.map(k=>k.width);h.every(k=>k!==void 0&&k>0)&&(b=h);}let u=e.attrs.justification,m=e.attrs._originalFormatting,p=m?.indent?.value&&m.indent.type==="dxa"?a$1(m.indent.value):void 0,a=e.attrs.floating,o=a?{horzAnchor:a.horzAnchor,vertAnchor:a.vertAnchor,tblpX:a.tblpX!==void 0?a$1(a.tblpX):void 0,tblpXSpec:a.tblpXSpec,tblpY:a.tblpY!==void 0?a$1(a.tblpY):void 0,tblpYSpec:a.tblpYSpec,topFromText:a.topFromText!==void 0?a$1(a.topFromText):void 0,bottomFromText:a.bottomFromText!==void 0?a$1(a.bottomFromText):void 0,leftFromText:a.leftFromText!==void 0?a$1(a.leftFromText):void 0,rightFromText:a.rightFromText!==void 0?a$1(a.rightFromText):void 0}:void 0;return {kind:"table",id:c(),rows:t,columnWidths:b,width:d,widthType:f,justification:u,indent:p,floating:o,pmStart:s,pmEnd:s+e.nodeSize}}function re(e,s,r){let t=e.attrs,n=t.wrapType,i=n==="behind"||n==="inFront",l=b$1(t.width||100,t.height||100,r);return {kind:"image",id:c(),src:t.src,width:l.width,height:l.height,alt:t.alt,transform:t.transform,anchor:i?{isAnchored:true,offsetH:t.distLeft,offsetV:t.distTop,behindDoc:n==="behind"}:void 0,hlinkHref:t.hlinkHref,pmStart:s,pmEnd:s+e.nodeSize}}function ie(e,s,r){let t=e.attrs,n=[];return e.forEach((i,l)=>{if(i.type.name==="paragraph"){let b=M(i,s+1+l,r);n.push(b);}}),{kind:"textBox",id:c(),width:t.width??b,height:t.height??void 0,fillColor:t.fillColor,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor,outlineStyle:t.outlineStyle,margins:{top:t.marginTop??a$2.top,bottom:t.marginBottom??a$2.bottom,left:t.marginLeft??a$2.left,right:t.marginRight??a$2.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:s,pmEnd:s+e.nodeSize}}function xe(e,s={}){let r=e.attrs?.defaultTabStopTwips,t={...s,defaultFont:s.defaultFont??J,defaultSize:s.defaultSize??Q,defaultTabStopTwips:s.defaultTabStopTwips??r},n=[],i=0,l={top:1440,bottom:1440,left:1440,right:1440};t.listCounters||(t.listCounters=new Map),t.listSeenNumIds||(t.listSeenNumIds=new Set);let b=(d,f,u)=>{if(d.type.name==="blockSdt"){let p=d.attrs,a={id:`sdt@${f}`,sdtType:typeof p.sdtType=="string"?p.sdtType:"richText",tag:p.tag!=null?String(p.tag):void 0,alias:p.alias!=null?String(p.alias):void 0,lock:p.lock!=null?String(p.lock):void 0,checked:typeof p.checked=="boolean"?p.checked:void 0,bound:p.dataBinding!=null?true:void 0,repeatingItem:/<w15:repeatingSectionItem[\s/>]/.test(String(p.rawPropertiesXml??""))?true:void 0},o=[...u,a];d.forEach((c,h)=>{b(c,f+1+h,o);});return}let m=n.length;switch(d.type.name){case "paragraph":{let p=M(d,f,t),a=d.attrs;n.push(p);let o=a._sectionProperties;if(o||a.sectionBreakType){let c$1={kind:"sectionBreak",id:c(),type:o?.sectionStart??a.sectionBreakType};if(o){if((o.pageWidth!==void 0||o.pageHeight!==void 0)&&(c$1.pageSize={w:a$1(o.pageWidth??12240),h:a$1(o.pageHeight??15840)}),o.marginTop!==void 0||o.marginBottom!==void 0||o.marginLeft!==void 0||o.marginRight!==void 0){let k={top:o.marginTop??l.top,bottom:o.marginBottom??l.bottom,left:o.marginLeft??l.left,right:o.marginRight??l.right};c$1.margins={top:a$1(k.top),bottom:a$1(k.bottom),left:a$1(k.left),right:a$1(k.right)},l=k;}let h=o.columnCount??1;if(h>1){let k={count:h,gap:a$1(o.columnSpace??720),equalWidth:o.equalWidth??true,separator:o.separator};c$1.columns=k;}}n.push(c$1);}}break;case "table":n.push(U(d,f,t));break;case "image":n.push(re(d,f,t.pageContentHeight));break;case "textBox":n.push(ie(d,f,t));break;case "horizontalRule":case "pageBreak":{let p={kind:"pageBreak",id:c(),pmStart:f,pmEnd:f+d.nodeSize};n.push(p);break}}if(u.length>0)for(let p=m;p<n.length;p++)n[p].sdtGroups=u;};return e.forEach((d,f)=>{b(d,i+f,[]);}),n}export{w as a,X as b,xe as c};
@@ -1 +1 @@
1
- import {v,D}from'./chunk-YHXVNJK5.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
+ import {v,D}from'./chunk-4QSFBX26.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};
@@ -0,0 +1 @@
1
+ import {a as a$1,e,b as b$1,y,L}from'./chunk-BBJMUBTD.mjs';import {b,a,c}from'./chunk-QPFJJPIC.mjs';import {f}from'./chunk-KNY7SXPJ.mjs';function Ge(e){return !b(e.wrapType)&&e.wrapType!=="topAndBottom"}function _e(e){return e.wrapType==="behind"}function De(e){return a(e.wrapType)?true:e.displayMode==="float"}function X(e){return b(e.wrapType)||e.wrapType==="topAndBottom"?false:c(e.wrapType)?true:e.displayMode==="float"&&e.cssFloat!=="none"}function Xe(e){return e==="left"?"right":e==="right"?"left":"bothSides"}function Ve(e){return {pageWidth:e.size.w,pageHeight:e.size.h,marginLeft:e.margins.left,marginTop:e.margins.top,contentWidth:e.size.w-e.margins.left-e.margins.right,contentHeight:e.size.h-e.margins.top-e.margins.bottom}}function Ue(e,n,t,i){let{x:r,side:o}=be(e,t,i),g=j(e,n,i);return {x:r,y:g,side:o}}function N(e,n,t){return j(e,n,t)}function be(e,n,t){let i=e.position?.horizontal;if(!i)return e.cssFloat==="right"?{x:n-e.width,side:"right"}:{x:0,side:"left"};let r=xe(i.relativeTo,n,t);if(i.align==="right")return {x:r.size?r.base+r.size-e.width:0,side:"right"};if(i.align==="left")return {x:r.base,side:"left"};if(i.align==="center")return {x:r.size?r.base+(r.size-e.width)/2:0,side:"left"};if(i.posOffset!==void 0){let o=r.base+f(i.posOffset);return {x:o,side:o>n/2?"right":"left"}}return {x:r.base,side:"left"}}function xe(e,n,t){let i=t?.pageWidth??0,r=t?.marginLeft??0;switch(e){case "page":return {base:-r,size:i};case "leftMargin":return {base:-r,size:r};case "rightMargin":return {base:n,size:r};case "character":return {base:0,size:0};default:return {base:0,size:n}}}function j(e,n,t){let i=e.position?.vertical;if(!i)return n;let r=Te(i.relativeTo,n,t);return i.align==="top"?r.base:i.align==="center"?r.size?r.base+(r.size-e.height)/2:n:i.align==="bottom"?r.size?r.base+r.size-e.height:n:i.posOffset!==void 0?r.base+f(i.posOffset):i.relativeTo==="paragraph"||i.relativeTo==="line"?n:r.base}function Te(e,n,t){let i=t?.pageHeight??0,r=t?.marginTop??0,o=t?.contentHeight??0;switch(e){case "paragraph":case "line":return {base:n,size:0};case "page":return {base:-r,size:i};case "topMargin":return {base:-r,size:r};case "bottomMargin":return {base:o,size:r};default:return {base:0,size:o}}}var V=7,U=0;function ye(e,n){if(e.kind!=="paragraph"||n.kind!=="paragraph")return "totalHeight"in n?n.totalHeight:"height"in n?n.height:0;let t=e.runs.filter(c=>c.kind!=="text"||c.text.length>0);if(!(n.lines.length===1&&t.length>0&&t.every(c=>c.kind==="image")))return n.totalHeight;let r=t.reduce((c,p)=>p.kind==="image"?Math.max(c,p.height):c,0),o=e.attrs?.spacing?.before??0,g=e.attrs?.spacing?.after??0;return o+r+g}function K(e){let n=e?.borders?.top?.width??0,t=e?.borders?.bottom?.width??0;return n+t}function q(e$1,n,t){let i=a$1(e$1.width,e$1.widthType,n),r=i??n,o=e(e$1,n),g=new Map;for(let l of b$1(e$1))g.set(`${l.rowIndex}-${l.cellIndex}`,l.columnIndex);let c=e$1.rows.map((l,s)=>({cells:l.cells.map((u,a)=>{let h=u.colSpan??1,m=g.get(`${s}-${a}`)??0,d=0;for(let b=0;b<h&&m+b<o.length;b++)d+=o[m+b]??0;d===0&&(d=(u.width&&u.width>0?u.width:a$1(u.widthValue,u.widthType,r))??100);let F=u.padding?.left??V,M=u.padding?.right??V,T=Math.max(1,d-F-M);return {blocks:u.blocks.map(b=>t(b,T)),width:d,height:0,colSpan:u.colSpan,rowSpan:u.rowSpan}}),height:0})),p=[];for(let l=0;l<c.length;l++){let s=c[l],u=e$1.rows[l]?.cells,a=0,h=0;for(let M=0;M<s.cells.length;M++){let T=s.cells[M],b=u?.[M],B=0,R=0;for(let I=0;I<T.blocks.length;I++){let z=b?.blocks[I],H=T.blocks[I];if(!z||!H)continue;let me=ye(z,H),Z=z.kind==="paragraph"?z.attrs?.spacing:void 0,E=Z?.before??0,O=Z?.after??0;B+=Math.max(R,E)+(me-E-O),R=O;}B+=R,T.height=B;let fe=b?.padding?.top??U,de=b?.padding?.bottom??U;T.height+=fe+de,(T.rowSpan??1)<=1&&(a=Math.max(a,T.height)),h=Math.max(h,K(b));}let m=e$1.rows[l],d=m?.height,F=m?.heightRule;p[l]=F==="exact"&&!!d,d&&F==="exact"?s.height=d:d?s.height=Math.max(a+h,d):s.height=a+h;}let y=c.map(l=>l.height);for(let l=0;l<c.length;l++){let s=e$1.rows[l]?.cells,u=c[l]?.cells;if(!(!s||!u))for(let a=0;a<s.length;a++){let h=s[a]?.rowSpan??1;if(h<=1)continue;let m=Math.min(l+h-1,c.length-1),d=(u[a]?.height??0)+K(s[a]),F=0;for(let b=l;b<=m;b++)F+=y[b]??0;let M=d-F;if(M<=0)continue;let T=m;for(;T>l&&p[T];)T--;p[T]||(c[T].height+=M);}}let x=c.reduce((l,s)=>l+s.height,0),f=o.reduce((l,s)=>l+s,0)||i||n;return {kind:"table",rows:c,columnWidths:o,totalWidth:f,totalHeight:x}}var Fe=4;function Me(e,n,t,i){let r=Array.isArray(n)?n[0]??0:n,o=Pe(e,r,t,i),g=o.filter(a=>a.isMarginRelative),c=o.filter(a=>!a.isMarginRelative),p=new Map;for(let a of g){let h=p.get(a.topY)??[];h.push(a),p.set(a.topY,h);}let y=Ae(c,Fe),x=[];J(y,x),J(Array.from(p.values()),x);let f=new Map;for(let a of x){let h=a.fullWidthBlock&&a.isMarginRelative?0:a.anchorBlockIndex,m=f.get(h)??[],{anchorBlockIndex:d,isMarginRelative:F,...M}=a;m.push(M),f.set(h,m);}let l=new Set(f.keys()),s=0,u=[];return e.map((a,h)=>{l.has(h)&&(s=0,u=f.get(h)??[]);let m=u.length>0?u:void 0,d=Array.isArray(n)?n[h]??r:n,F=t(a,d,m,s);return "totalHeight"in F&&(a.kind==="table"&&a.floating||(s+=F.totalHeight)),F})}function Pe(e,n,t,i){let r=[];for(let o=0;o<e.length;o++){let g=e[o];switch(g.kind){case "paragraph":we(g,o,n,r);break;case "table":ve(g,o,n,t,r);break;case "textBox":Ce(g,o,n,r,i);break}}return r}function Q(e,n,t,i,r,o){let g=0,c=0,p=e?.horizontal;if(p?.align==="left")g=t+r;else if(p?.align==="right")c=t+i;else if(p?.posOffset!==void 0){let y=f(p.posOffset);y<o/2?g=y+t+r:c=o-y+i;}else n==="left"?g=t+r:n==="right"&&(c=t+i);return y(g,c,o)}function W(e){let n=e?.vertical?.relativeTo;return n==="margin"||n==="page"}function we(e,n,t,i){for(let r of e.runs){if(r.kind!=="image")continue;let o=r;if(!X(o))continue;let g=o.distTop??0,c=o.distBottom??0,p=o.distLeft??12,y=o.distRight??12,x=0,f$1=o.position?.vertical;f$1?.align==="top"&&f$1.relativeTo==="margin"?x=0:f$1?.posOffset!==void 0&&(x=f(f$1.posOffset));let l=x+o.height,{leftMargin:s,rightMargin:u}=Q(o.position,o.cssFloat,o.width,p,y,t);(s>0||u>0)&&i.push({leftMargin:s,rightMargin:u,topY:x-g,bottomY:l+c,anchorBlockIndex:n,isMarginRelative:W(o.position)});}}function ve(e,n,t,i,r){let o=e.floating;if(!o)return;let g=q(e,t,i),c=g.totalWidth,p=g.totalHeight,y$1=o.leftFromText??12,x=o.rightFromText??12,f=o.topFromText??0,l=o.bottomFromText??0,s=0;o.tblpX!==void 0?s=o.tblpX:o.tblpXSpec?o.tblpXSpec==="left"||o.tblpXSpec==="inside"?s=0:o.tblpXSpec==="right"||o.tblpXSpec==="outside"?s=t-c:o.tblpXSpec==="center"&&(s=(t-c)/2):e.justification==="center"?s=(t-c)/2:e.justification==="right"&&(s=t-c);let u=0,a=0;s<t/2?u=s+c+x:a=t-s+y$1,{leftMargin:u,rightMargin:a}=y(u,a,t);let h=o.tblpY??0,m=h+p;r.push({leftMargin:u,rightMargin:a,topY:h-f,bottomY:m+l,anchorBlockIndex:n});}function Ce(e,n,t,i,r){if(!L(e)||b(e.wrapType))return;let o=e.width??0,g=e.height??0;if(o<=0||g<=0)return;let c=e.distTop??0,p=e.distBottom??0,y=e.distLeft??12,x=e.distRight??12;if(e.wrapType==="topAndBottom"){let a=N({height:g,position:e.position},0,r),h=a+g+p;if(h<=0)return;i.push({leftMargin:0,rightMargin:0,topY:Math.max(0,a-c),bottomY:h,anchorBlockIndex:n,isMarginRelative:W(e.position),fullWidthBlock:true});return}let f$1=0;e.position?.vertical?.posOffset!==void 0&&(f$1=f(e.position.vertical.posOffset));let l=f$1+g,{leftMargin:s,rightMargin:u}=Q(e.position,e.cssFloat,o,y,x,t);s<=0&&u<=0||i.push({leftMargin:s,rightMargin:u,topY:f$1-c,bottomY:l+p,anchorBlockIndex:n,isMarginRelative:W(e.position)});}function Ae(e,n){let t=[];for(let i of e){let r=t.find(o=>o.some(g=>Math.abs(g.anchorBlockIndex-i.anchorBlockIndex)<=n&&i.topY<g.bottomY&&i.bottomY>g.topY));r?r.push(i):t.push([i]);}return t}function J(e,n){for(let t of e){let i=Math.min(...t.map(r=>r.anchorBlockIndex));for(let r of t)n.push({...r,anchorBlockIndex:i});}}var ee=2e4,P=new Map;function te(e,n,t){return `${e}|${n}|${t||0}`}function ne(){for(;P.size>ee;){let e=P.keys().next().value;if(e===void 0)break;P.delete(e);}}function Ie(e,n,t=0){let i=te(e,n,t),r=P.get(i);if(r!==void 0)return P.delete(i),P.set(i,r),r.width}function ze(e,n,t,i){let r=te(e,n,t);P.set(r,{width:i}),ne();}function ie(){P.clear();}function ke(e){!Number.isFinite(e)||e<=0||(ee=e,ne());}function re(){return P.size}var Be=1e3,oe=Be,w=new Map;function ae(e,n,t=false,i=false){return `${e}|${n}|${t}|${i}`}function se(){for(;w.size>oe;){let e=w.keys().next().value;if(e===void 0)break;w.delete(e);}}function Re(e,n,t=false,i=false){let r=ae(e,n,t,i),o=w.get(r);if(o!==void 0)return w.delete(r),w.set(r,o),o}function Se(e,n,t,i,r){let o=ae(e,n,t,i);w.set(o,r),se();}function ce(){w.clear();}function We(e){!Number.isFinite(e)||e<=0||(oe=e,se());}function le(){return w.size}var $e=5e3,ge=$e,v=new Map;function $(e){let n=[];for(let i of e.runs)i.kind==="text"?n.push(`t:${i.text}|${i.fontFamily}|${i.fontSize}|${i.bold}|${i.italic}`):i.kind==="tab"?n.push(`tab:${i.width}`):i.kind==="image"?n.push(`img:${i.width}x${i.height}`):i.kind==="lineBreak"&&n.push("br");let t=e.attrs;if(t){t.alignment&&n.push(`align:${t.alignment}`),t.indent&&n.push(`indent:${t.indent.left}|${t.indent.right}|${t.indent.firstLine}|${t.indent.hanging}`),t.spacing&&n.push(`spacing:${t.spacing.before}|${t.spacing.after}|${t.spacing.line}|${t.spacing.lineRule}`),t.defaultFontSize!=null&&n.push(`dfs:${t.defaultFontSize}`),t.defaultFontFamily!=null&&n.push(`dff:${t.defaultFontFamily}`);let i=t.borders;if(i){let r=o=>o?`${o.width??""},${o.style??""},${o.color??""}`:"";n.push(`bdr:${r(i.top)}|${r(i.bottom)}|${r(i.left)}|${r(i.right)}`);}t.suppressEmptyParagraphHeight&&n.push("sup"),t.pPrIns&&n.push(`pins:${t.pPrIns.revisionId}`),t.pPrDel&&n.push(`pdel:${t.pPrDel.revisionId}`);}return n.join("||")}function ue(){for(;v.size>ge;){let e=v.keys().next().value;if(e===void 0)break;v.delete(e);}}function He(e,n){let t=$(e),i=v.get(t);if(i!==void 0&&i.maxWidth===n)return v.delete(t),v.set(t,i),i.measure}function Ze(e,n,t){let i=$(e);v.set(i,{measure:t,maxWidth:n}),ue();}function he(){v.clear();}function Ee(e){!Number.isFinite(e)||e<=0||(ge=e,ue());}function pe(){return v.size}function Oe(){ie(),ce(),he();}function Ye(){return re()+le()+pe()}export{pe as A,Oe as B,Ye as C,Ge as a,_e as b,De as c,X as d,Xe as e,Ve as f,Ue as g,N as h,ye as i,q as j,Me as k,Ie as l,ze as m,ie as n,ke as o,re as p,Re as q,Se as r,ce as s,We as t,le as u,$ as v,He as w,Ze as x,he as y,Ee as z};
@@ -1 +1 @@
1
- import {n,o,m}from'./chunk-M7KTKPGO.mjs';import {e,f,g,h}from'./chunk-MJ6XZFVD.mjs';import {isHistoryTransaction}from'prosemirror-history';import {Plugin,TextSelection}from'prosemirror-state';function C(t,u){let e$1=e.getState(t);if(!e$1)return false;if(u){let r=t.tr.setMeta(e,{active:!e$1.active});u(r);}return true}function Y(t,u,e$1,r){if(e$1){let i={active:t};r!==void 0&&(i.author=r);let n=u.tr.setMeta(e,i);e$1(n);}return true}function F(t){return e.getState(t)?.active??false}function S(t,u){return {revisionId:h(),author:t.author,date:u??new Date().toISOString()}}function T(t){return {revisionId:t.revisionId,author:t.author,date:t.date}}function E(t,u,e){let r=null;return t.descendants(i=>{if(r)return false;if(!i.isText)return true;let n=i.marks.find(o=>o.type.name===u&&o.attrs.author===e);return n?(r=T(n.attrs),false):true}),r}function A(t,u,e,r){let i=n=>{if(!n?.isText)return null;let o=n.marks.find(c=>c.type.name===e&&c.attrs.author===r);return o?T(o.attrs):null};try{let n=t.resolve(u);for(let o of [n.nodeBefore,n.nodeAfter]){let c=i(o);if(c)return c}if(n.parentOffset===0&&n.depth>0){let o=n.before(n.depth);if(o>0){let c=t.resolve(o).nodeBefore;if(c){let s=E(c,e,r);if(s)return s}}}if(n.parentOffset===n.parent.content.size&&n.depth>0){let o=n.after(n.depth),c=t.resolve(o).nodeAfter;if(c){let s=E(c,e,r);if(s)return s}}if(e==="insertion"||e==="deletion"){let o=e==="insertion"?"ins":"del";for(let c=n.depth;c>0;c--){let s=n.node(c);if(!(s.type.name==="tableCell"||s.type.name==="tableHeader"))continue;let a=s.attrs.cellMarker;if(a&&a.kind===o&&a.info&&a.info.author===r)return T(a.info);break}}}catch{}return null}function P(t,u,e,r,i){return A(t,u,r,i)??A(t,e,r,i)}function I(t,u,e,r){let i=e==="pPrIns"?"insertion":"deletion";try{let n=t.resolve(u);for(let s of [n.nodeBefore,n.nodeAfter]){if(s?.type.name!=="paragraph")continue;let f=s.attrs[e];if(f&&f.author===r)return f}let o=n.nodeBefore;if(o?.type.name==="paragraph"){let s=E(o,i,r);if(s)return s}let c=n.nodeAfter;if(c?.type.name==="paragraph"){let s=E(c,i,r);if(s)return s}}catch{}return null}function y(t,u,e,r,i,n,o,c){let s=[];if(u.nodesBetween(e,r,(a,p)=>{if(!a.isText&&!(a.isInline&&a.type.allowsMarkType(n)))return;let l=Math.max(p,e),g=Math.min(p+a.nodeSize,r);if(l>=g)return;let d=a.marks.some(h=>h.type===i&&h.attrs.author===o.author);s.push({from:l,to:g,isOwnInsert:d});}),s.length===0)return;let f=P(u,e,r,"deletion",o.author)??S(o,c);for(let a=s.length-1;a>=0;a--){let p=s[a];p.isOwnInsert?t.delete(p.from,p.to):t.addMark(p.from,p.to,n.create(f));}}function D(t,u,e$1){let r=e.getState(t);if(!r?.active)return false;let{$from:i,$to:n,empty:o}=t.selection,c=t.schema.marks.insertion,s=t.schema.marks.deletion;if(!c||!s)return false;if(!u)return true;let f$1=t.tr;if(f$1.setMeta(f,true),!o){y(f$1,t.doc,i.pos,n.pos,c,s,r);let k=f$1.mapping.map(n.pos);return f$1.setSelection(TextSelection.near(f$1.doc.resolve(k))),u(f$1.scrollIntoView()),true}let a=e$1==="backward",p=a?i.pos-1:i.pos,l=a?i.pos:i.pos+1;if(p<0||l>t.doc.content.size)return true;let d=t.doc.resolve(p).nodeAfter;if(!d||!(d.isText||d.isInline&&d.type.allowsMarkType(s)))return false;let h=d.marks.some(k=>k.type===c&&k.attrs.author===r.author);if(d.marks.some(k=>k.type===s)){let k=a?p:l;f$1.setSelection(TextSelection.near(f$1.doc.resolve(k)));}else if(h)f$1.delete(p,l);else {let k=P(t.doc,p,l,"deletion",r.author)||S(r);f$1.addMark(p,l,s.create(k));let U=a?p:l;f$1.setSelection(TextSelection.near(f$1.doc.resolve(U)));}return u(f$1.scrollIntoView()),true}function b(t,u,e,r,i,n,o){u.nodesBetween(e,r,(c,s)=>{if(!c.isText&&!(c.isInline&&c.type.allowsMarkType(i))||c.marks.some(l=>l.type===i||n&&l.type===n))return;let a=Math.max(s,e),p=Math.min(s+c.nodeSize,r);a>=p||t.addMark(a,p,i.create(o));});}function N(t,u,e,r,i){let n=t.state.schema.marks.insertion;if(!n)return false;let o=t.state.tr;o.setMeta(f,true);let c=A(t.state.doc,u,"insertion",i.author)||S(i);if(u!==e){let a=t.state.schema.marks.deletion;a&&y(o,t.state.doc,u,e,n,a,i,c.date);}let s=o.mapping.map(e);o.insertText(r,s,s);let f$1=t.state.schema.marks.deletion;return f$1&&o.removeMark(s,s+r.length,f$1),o.addMark(s,s+r.length,n.create(c)),t.dispatch(o.scrollIntoView()),true}function j(t,u,e){let r=t.state.schema.marks.insertion,i=t.state.schema.marks.deletion;if(!r||!i)return false;let{selection:n}=t.state;if(!(n instanceof TextSelection)||n.empty)return false;let{from:o,to:c}=n,s=t.state.tr;s.setMeta(f,true);let f$1=A(t.state.doc,o,"insertion",e.author)||S(e);y(s,t.state.doc,o,c,r,i,e,f$1.date);let a=s.mapping.map(c);s.setSelection(TextSelection.near(s.doc.resolve(a))),s.replaceSelection(u);let p=s.selection.from;return p>a&&b(s,s.doc,a,p,r,i,f$1),t.dispatch(s.scrollIntoView()),true}function w(t,u){let e$1=e.getState(t);if(!e$1?.active)return false;let{$from:r,$to:i}=t.selection;if(r.parent.type.name!=="paragraph"||i.parent.type.name!=="paragraph")return false;if(!u)return true;let n$1=t.schema.marks.insertion,o$1=t.schema.marks.deletion;if(!n$1||!o$1)return false;let c=r.parent,f$1=(t.storedMarks??r.marks()).filter(d=>n.has(d.type.name)),a=t.tr;if(a.setMeta(f,true),!t.selection.empty){y(a,t.doc,r.pos,i.pos,n$1,o$1,e$1);let d=a.mapping.map(r.pos);a.setSelection(TextSelection.near(a.doc.resolve(d)));}let p=a.selection.$from,l=p.before(p.depth);a.split(a.selection.from,1);let g=a.doc.nodeAt(l);if(g&&g.type.name==="paragraph"){let d=I(a.doc,l,"pPrIns",e$1.author)??S(e$1);a.setNodeMarkup(l,void 0,{...g.attrs,pPrIns:d});}return o(a,c,f$1,t.schema,m(t)),u(a.scrollIntoView()),true}function K(t,u){let e$1=e.getState(t);if(!e$1?.active)return false;let{$from:r,empty:i}=t.selection;if(!i||r.parentOffset!==0||r.parent.type.name!=="paragraph")return false;let n=r.before(r.depth);if(n<=0)return false;let o=t.doc.resolve(n).nodeBefore;if(!o||o.type.name!=="paragraph")return false;let c=o.attrs.pPrIns;if(c&&c.author===e$1.author){if(!u)return true;let l=n-o.nodeSize,g=r.parent,d=t.tr.setNodeMarkup(l,void 0,g.attrs);return d.join(n),d.setMeta(f,true),u(d.scrollIntoView()),true}if(o.attrs.pPrDel){if(u){let l=n-1,g=t.tr.setSelection(TextSelection.near(t.doc.resolve(l)));u(g);}return true}if(!u)return true;let s=n-o.nodeSize,f$1=I(t.doc,s,"pPrDel",e$1.author)??S(e$1),a=t.tr.setNodeMarkup(s,void 0,{...o.attrs,pPrDel:f$1});a.setMeta(f,true);let p=n-1;return a.setSelection(TextSelection.near(a.doc.resolve(p))),u(a.scrollIntoView()),true}function z(t,u){let e$1=e.getState(t);if(!e$1?.active)return false;let{$from:r,empty:i}=t.selection;if(!i||r.parent.type.name!=="paragraph"||r.parentOffset!==r.parent.content.size)return false;let n=r.parent,o=r.before(r.depth),c=o+n.nodeSize;if(c>=t.doc.content.size)return false;let f$1=t.doc.resolve(c).nodeAfter;if(!f$1||f$1.type.name!=="paragraph")return false;let a=n.attrs.pPrIns;if(a&&a.author===e$1.author){if(!u)return true;let g=t.tr.setNodeMarkup(o,void 0,f$1.attrs);return g.join(c),g.setMeta(f,true),u(g.scrollIntoView()),true}if(n.attrs.pPrDel||!u)return true;let p=I(t.doc,o,"pPrDel",e$1.author)??S(e$1),l=t.tr.setNodeMarkup(o,void 0,{...n.attrs,pPrDel:p});return l.setMeta(f,true),u(l.scrollIntoView()),true}function Bt(t=false,u="User"){return new Plugin({key:e,state:{init(){return {active:t,author:u}},apply(e$1,r){let i=e$1.getMeta(e);return i?{...r,...i}:r}},props:{handleDOMEvents:{beforeinput(e$1,r){let i=e.getState(e$1.state);if(!i?.active)return false;if(r.inputType==="insertText"&&r.data){r.preventDefault();let{from:n,to:o}=e$1.state.selection;return N(e$1,n,o,r.data,i)}return false}},handlePaste(e$1,r,i){let n=e.getState(e$1.state);return n?.active?j(e$1,i,n):false},handleKeyDown(e$1,r){return e.getState(e$1.state)?.active?r.key==="Enter"&&!r.shiftKey?w(e$1.state,e$1.dispatch):r.key==="Backspace"?K(e$1.state,e$1.dispatch)?true:D(e$1.state,e$1.dispatch,"backward"):r.key==="Delete"?z(e$1.state,e$1.dispatch)?true:D(e$1.state,e$1.dispatch,"forward"):false:false},handleTextInput(e$1,r,i,n){let o=e.getState(e$1.state);return o?.active?N(e$1,r,i,n,o):false}},appendTransaction(e$1,r,i){let n=e.getState(i);if(!n?.active)return null;let o=e$1.find(a=>a.docChanged&&!a.getMeta(f)&&!a.getMeta(g)&&!isHistoryTransaction(a));if(!o)return null;let c=i.schema.marks.insertion;if(!c)return null;let s=i.tr;s.setMeta(f,true);let f$1=i.schema.marks.deletion;return o.steps.forEach(a=>{a.getMap().forEach((l,g,d,h)=>{if(h>d){let O=P(i.doc,d,h,"insertion",n.author)??S(n);b(s,i.doc,d,h,c,f$1,O);}});}),s.steps.length>0?s:null}})}export{C as a,Y as b,F as c,Bt as d};
1
+ import {n,o,m}from'./chunk-HEJJXAXN.mjs';import {e,f,g,h}from'./chunk-MJ6XZFVD.mjs';import {isHistoryTransaction}from'prosemirror-history';import {Plugin,TextSelection}from'prosemirror-state';function C(t,u){let e$1=e.getState(t);if(!e$1)return false;if(u){let r=t.tr.setMeta(e,{active:!e$1.active});u(r);}return true}function Y(t,u,e$1,r){if(e$1){let i={active:t};r!==void 0&&(i.author=r);let n=u.tr.setMeta(e,i);e$1(n);}return true}function F(t){return e.getState(t)?.active??false}function S(t,u){return {revisionId:h(),author:t.author,date:u??new Date().toISOString()}}function T(t){return {revisionId:t.revisionId,author:t.author,date:t.date}}function E(t,u,e){let r=null;return t.descendants(i=>{if(r)return false;if(!i.isText)return true;let n=i.marks.find(o=>o.type.name===u&&o.attrs.author===e);return n?(r=T(n.attrs),false):true}),r}function A(t,u,e,r){let i=n=>{if(!n?.isText)return null;let o=n.marks.find(c=>c.type.name===e&&c.attrs.author===r);return o?T(o.attrs):null};try{let n=t.resolve(u);for(let o of [n.nodeBefore,n.nodeAfter]){let c=i(o);if(c)return c}if(n.parentOffset===0&&n.depth>0){let o=n.before(n.depth);if(o>0){let c=t.resolve(o).nodeBefore;if(c){let s=E(c,e,r);if(s)return s}}}if(n.parentOffset===n.parent.content.size&&n.depth>0){let o=n.after(n.depth),c=t.resolve(o).nodeAfter;if(c){let s=E(c,e,r);if(s)return s}}if(e==="insertion"||e==="deletion"){let o=e==="insertion"?"ins":"del";for(let c=n.depth;c>0;c--){let s=n.node(c);if(!(s.type.name==="tableCell"||s.type.name==="tableHeader"))continue;let a=s.attrs.cellMarker;if(a&&a.kind===o&&a.info&&a.info.author===r)return T(a.info);break}}}catch{}return null}function P(t,u,e,r,i){return A(t,u,r,i)??A(t,e,r,i)}function I(t,u,e,r){let i=e==="pPrIns"?"insertion":"deletion";try{let n=t.resolve(u);for(let s of [n.nodeBefore,n.nodeAfter]){if(s?.type.name!=="paragraph")continue;let f=s.attrs[e];if(f&&f.author===r)return f}let o=n.nodeBefore;if(o?.type.name==="paragraph"){let s=E(o,i,r);if(s)return s}let c=n.nodeAfter;if(c?.type.name==="paragraph"){let s=E(c,i,r);if(s)return s}}catch{}return null}function y(t,u,e,r,i,n,o,c){let s=[];if(u.nodesBetween(e,r,(a,p)=>{if(!a.isText&&!(a.isInline&&a.type.allowsMarkType(n)))return;let l=Math.max(p,e),g=Math.min(p+a.nodeSize,r);if(l>=g)return;let d=a.marks.some(h=>h.type===i&&h.attrs.author===o.author);s.push({from:l,to:g,isOwnInsert:d});}),s.length===0)return;let f=P(u,e,r,"deletion",o.author)??S(o,c);for(let a=s.length-1;a>=0;a--){let p=s[a];p.isOwnInsert?t.delete(p.from,p.to):t.addMark(p.from,p.to,n.create(f));}}function D(t,u,e$1){let r=e.getState(t);if(!r?.active)return false;let{$from:i,$to:n,empty:o}=t.selection,c=t.schema.marks.insertion,s=t.schema.marks.deletion;if(!c||!s)return false;if(!u)return true;let f$1=t.tr;if(f$1.setMeta(f,true),!o){y(f$1,t.doc,i.pos,n.pos,c,s,r);let k=f$1.mapping.map(n.pos);return f$1.setSelection(TextSelection.near(f$1.doc.resolve(k))),u(f$1.scrollIntoView()),true}let a=e$1==="backward",p=a?i.pos-1:i.pos,l=a?i.pos:i.pos+1;if(p<0||l>t.doc.content.size)return true;let d=t.doc.resolve(p).nodeAfter;if(!d||!(d.isText||d.isInline&&d.type.allowsMarkType(s)))return false;let h=d.marks.some(k=>k.type===c&&k.attrs.author===r.author);if(d.marks.some(k=>k.type===s)){let k=a?p:l;f$1.setSelection(TextSelection.near(f$1.doc.resolve(k)));}else if(h)f$1.delete(p,l);else {let k=P(t.doc,p,l,"deletion",r.author)||S(r);f$1.addMark(p,l,s.create(k));let U=a?p:l;f$1.setSelection(TextSelection.near(f$1.doc.resolve(U)));}return u(f$1.scrollIntoView()),true}function b(t,u,e,r,i,n,o){u.nodesBetween(e,r,(c,s)=>{if(!c.isText&&!(c.isInline&&c.type.allowsMarkType(i))||c.marks.some(l=>l.type===i||n&&l.type===n))return;let a=Math.max(s,e),p=Math.min(s+c.nodeSize,r);a>=p||t.addMark(a,p,i.create(o));});}function N(t,u,e,r,i){let n=t.state.schema.marks.insertion;if(!n)return false;let o=t.state.tr;o.setMeta(f,true);let c=A(t.state.doc,u,"insertion",i.author)||S(i);if(u!==e){let a=t.state.schema.marks.deletion;a&&y(o,t.state.doc,u,e,n,a,i,c.date);}let s=o.mapping.map(e);o.insertText(r,s,s);let f$1=t.state.schema.marks.deletion;return f$1&&o.removeMark(s,s+r.length,f$1),o.addMark(s,s+r.length,n.create(c)),t.dispatch(o.scrollIntoView()),true}function j(t,u,e){let r=t.state.schema.marks.insertion,i=t.state.schema.marks.deletion;if(!r||!i)return false;let{selection:n}=t.state;if(!(n instanceof TextSelection)||n.empty)return false;let{from:o,to:c}=n,s=t.state.tr;s.setMeta(f,true);let f$1=A(t.state.doc,o,"insertion",e.author)||S(e);y(s,t.state.doc,o,c,r,i,e,f$1.date);let a=s.mapping.map(c);s.setSelection(TextSelection.near(s.doc.resolve(a))),s.replaceSelection(u);let p=s.selection.from;return p>a&&b(s,s.doc,a,p,r,i,f$1),t.dispatch(s.scrollIntoView()),true}function w(t,u){let e$1=e.getState(t);if(!e$1?.active)return false;let{$from:r,$to:i}=t.selection;if(r.parent.type.name!=="paragraph"||i.parent.type.name!=="paragraph")return false;if(!u)return true;let n$1=t.schema.marks.insertion,o$1=t.schema.marks.deletion;if(!n$1||!o$1)return false;let c=r.parent,f$1=(t.storedMarks??r.marks()).filter(d=>n.has(d.type.name)),a=t.tr;if(a.setMeta(f,true),!t.selection.empty){y(a,t.doc,r.pos,i.pos,n$1,o$1,e$1);let d=a.mapping.map(r.pos);a.setSelection(TextSelection.near(a.doc.resolve(d)));}let p=a.selection.$from,l=p.before(p.depth);a.split(a.selection.from,1);let g=a.doc.nodeAt(l);if(g&&g.type.name==="paragraph"){let d=I(a.doc,l,"pPrIns",e$1.author)??S(e$1);a.setNodeMarkup(l,void 0,{...g.attrs,pPrIns:d});}return o(a,c,f$1,t.schema,m(t)),u(a.scrollIntoView()),true}function K(t,u){let e$1=e.getState(t);if(!e$1?.active)return false;let{$from:r,empty:i}=t.selection;if(!i||r.parentOffset!==0||r.parent.type.name!=="paragraph")return false;let n=r.before(r.depth);if(n<=0)return false;let o=t.doc.resolve(n).nodeBefore;if(!o||o.type.name!=="paragraph")return false;let c=o.attrs.pPrIns;if(c&&c.author===e$1.author){if(!u)return true;let l=n-o.nodeSize,g=r.parent,d=t.tr.setNodeMarkup(l,void 0,g.attrs);return d.join(n),d.setMeta(f,true),u(d.scrollIntoView()),true}if(o.attrs.pPrDel){if(u){let l=n-1,g=t.tr.setSelection(TextSelection.near(t.doc.resolve(l)));u(g);}return true}if(!u)return true;let s=n-o.nodeSize,f$1=I(t.doc,s,"pPrDel",e$1.author)??S(e$1),a=t.tr.setNodeMarkup(s,void 0,{...o.attrs,pPrDel:f$1});a.setMeta(f,true);let p=n-1;return a.setSelection(TextSelection.near(a.doc.resolve(p))),u(a.scrollIntoView()),true}function z(t,u){let e$1=e.getState(t);if(!e$1?.active)return false;let{$from:r,empty:i}=t.selection;if(!i||r.parent.type.name!=="paragraph"||r.parentOffset!==r.parent.content.size)return false;let n=r.parent,o=r.before(r.depth),c=o+n.nodeSize;if(c>=t.doc.content.size)return false;let f$1=t.doc.resolve(c).nodeAfter;if(!f$1||f$1.type.name!=="paragraph")return false;let a=n.attrs.pPrIns;if(a&&a.author===e$1.author){if(!u)return true;let g=t.tr.setNodeMarkup(o,void 0,f$1.attrs);return g.join(c),g.setMeta(f,true),u(g.scrollIntoView()),true}if(n.attrs.pPrDel||!u)return true;let p=I(t.doc,o,"pPrDel",e$1.author)??S(e$1),l=t.tr.setNodeMarkup(o,void 0,{...n.attrs,pPrDel:p});return l.setMeta(f,true),u(l.scrollIntoView()),true}function Bt(t=false,u="User"){return new Plugin({key:e,state:{init(){return {active:t,author:u}},apply(e$1,r){let i=e$1.getMeta(e);return i?{...r,...i}:r}},props:{handleDOMEvents:{beforeinput(e$1,r){let i=e.getState(e$1.state);if(!i?.active)return false;if(r.inputType==="insertText"&&r.data){r.preventDefault();let{from:n,to:o}=e$1.state.selection;return N(e$1,n,o,r.data,i)}return false}},handlePaste(e$1,r,i){let n=e.getState(e$1.state);return n?.active?j(e$1,i,n):false},handleKeyDown(e$1,r){return e.getState(e$1.state)?.active?r.key==="Enter"&&!r.shiftKey?w(e$1.state,e$1.dispatch):r.key==="Backspace"?K(e$1.state,e$1.dispatch)?true:D(e$1.state,e$1.dispatch,"backward"):r.key==="Delete"?z(e$1.state,e$1.dispatch)?true:D(e$1.state,e$1.dispatch,"forward"):false:false},handleTextInput(e$1,r,i,n){let o=e.getState(e$1.state);return o?.active?N(e$1,r,i,n,o):false}},appendTransaction(e$1,r,i){let n=e.getState(i);if(!n?.active)return null;let o=e$1.find(a=>a.docChanged&&!a.getMeta(f)&&!a.getMeta(g)&&!isHistoryTransaction(a));if(!o)return null;let c=i.schema.marks.insertion;if(!c)return null;let s=i.tr;s.setMeta(f,true);let f$1=i.schema.marks.deletion;return o.steps.forEach(a=>{a.getMap().forEach((l,g,d,h)=>{if(h>d){let O=P(i.doc,d,h,"insertion",n.author)??S(n);b(s,i.doc,d,h,c,f$1,O);}});}),s.steps.length>0?s:null}})}export{C as a,Y as b,F as c,Bt as d};
@@ -0,0 +1,4 @@
1
+ 'use strict';var chunkLW5OFHSW_js=require('./chunk-LW5OFHSW.js'),chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js'),chunkBJSG6TEG_js=require('./chunk-BJSG6TEG.js'),chunkH57LNDBH_js=require('./chunk-H57LNDBH.js'),chunk3R7QHNI5_js=require('./chunk-3R7QHNI5.js');var Oe={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},ee={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ye={name:"Office Theme",colorScheme:Oe,fontScheme:ee},xt=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function Ct(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 Ft(e){let t={...Oe};if(!e)return t;for(let n of xt){let r=chunk3R7QHNI5_js.e(e,"a",n);if(r){let o=chunk3R7QHNI5_js.i(r);if(o.length>0){let a=Ct(o[0]);a&&(t[n]=a);}}}return t}function Xe(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 r=chunk3R7QHNI5_js.e(e,"a","ea");r&&(t.ea=chunk3R7QHNI5_js.j(r,"a","typeface")??chunk3R7QHNI5_js.j(r,null,"typeface")??"");let o=chunk3R7QHNI5_js.e(e,"a","cs");o&&(t.cs=chunk3R7QHNI5_js.j(o,"a","typeface")??chunk3R7QHNI5_js.j(o,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 kt(e){let t={...ee};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","majorFont");n&&(t.majorFont=Xe(n));let r=chunk3R7QHNI5_js.e(e,"a","minorFont");return r&&(t.minorFont=Xe(r)),t}function zn(e){if(!e)return {...ye};try{let t=chunk3R7QHNI5_js.c(e);if(!t)return {...ye};let n=chunk3R7QHNI5_js.j(t,"a","name")??chunk3R7QHNI5_js.j(t,null,"name")??"Office Theme",r=chunk3R7QHNI5_js.e(t,"a","themeElements"),o=chunk3R7QHNI5_js.e(r,"a","clrScheme"),a=Ft(o),u=chunk3R7QHNI5_js.e(r,"a","fontScheme"),l=kt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...ye}}}function St(e,t="latin"){if(!e?.fontScheme?.majorFont)return ee.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 De(e,t="latin"){if(!e?.fontScheme?.minorFont)return ee.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 Y(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),r=t.toLowerCase().includes("minor"),o="latin",a=t.toLowerCase();return a.includes("eastasia")?o="ea":(a.includes("bidi")||a.includes("cs"))&&(o="cs"),n?St(e,o):r?De(e,o):De(e,"latin")}function We(e){if(!e)return;let t=chunk3R7QHNI5_js.l(e,"w","w")??0,n=chunk3R7QHNI5_js.j(e,"w","type")??"dxa",r="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(r=n),{value:t,type:r}}function D(e){return We(e)}function j(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,r=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),o=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:r.length>0?r:"Unknown",date:o.length>0?o:void 0}}function te(e){return j(e)}function V(e){if(!e)return;let r={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},o=chunk3R7QHNI5_js.l(e,"w","sz");o!==void 0&&(r.size=o);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(r.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)&&(r.color={rgb:u??void 0,themeColor:l,themeTint:f??void 0,themeShade:c??void 0});let d=chunk3R7QHNI5_js.j(e,"w","shadow");(d==="1"||d==="true")&&(r.shadow=true);let p=chunk3R7QHNI5_js.j(e,"w","frame");return (p==="1"||p==="true")&&(r.frame=true),r}function ne(e){if(!e)return;let t={},n=V(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let r=V(chunk3R7QHNI5_js.e(e,"w","bottom"));r&&(t.bottom=r);let o=V(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));o&&(t.left=o);let a=V(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));a&&(t.right=a);let u=V(chunk3R7QHNI5_js.e(e,"w","insideH"));u&&(t.insideH=u);let l=V(chunk3R7QHNI5_js.e(e,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function re(e){if(!e)return;let t={},n=D(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let r=D(chunk3R7QHNI5_js.e(e,"w","bottom"));r&&(t.bottom=r);let o=D(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));o&&(t.left=o);let a=D(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 r=chunk3R7QHNI5_js.j(e,"w","themeFill");if(r){t.fill={themeColor:r};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 o=chunk3R7QHNI5_js.j(e,"w","color");o&&o!=="auto"&&(t.color={rgb:o});let a=chunk3R7QHNI5_js.j(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function be(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=chunk3R7QHNI5_js.j(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let o=chunk3R7QHNI5_js.j(e,"w","firstColumn");(o==="1"||o==="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 Te(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let r=chunk3R7QHNI5_js.j(e,"w","vertAnchor");(r==="margin"||r==="page"||r==="text")&&(t.vertAnchor=r);let o=chunk3R7QHNI5_js.l(e,"w","tblpX");o!==void 0&&(t.tblpX=o);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 d=chunk3R7QHNI5_js.l(e,"w","leftFromText");d!==void 0&&(t.leftFromText=d);let p=chunk3R7QHNI5_js.l(e,"w","rightFromText");if(p!==void 0&&(t.rightFromText=p),Object.keys(t).length!==0)return t}function Mt(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 Rt(e){return e.rows.length}function Et(e){return e.formatting?.vMerge==="continue"}function Pt(e){return e.formatting?.vMerge==="restart"}function Bt(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var vt={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 At(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),r=vt[n];if(r)return r}return "richText"}function Nt(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 ie(e,t){let n={sdtType:At(e)};if(e){n.rawPropertiesXml=chunk3R7QHNI5_js.b(e);for(let r of e.elements??[]){if(r.type!=="element"||!r.name)continue;switch(chunk3R7QHNI5_js.d(r.name)){case "id":{let a=chunk3R7QHNI5_js.j(r,"w","val");if(a!=null){let u=parseInt(a,10);Number.isNaN(u)||(n.id=u);}break}case "alias":n.alias=chunk3R7QHNI5_js.j(r,"w","val")??void 0;break;case "tag":n.tag=chunk3R7QHNI5_js.j(r,"w","val")??void 0;break;case "lock":n.lock=chunk3R7QHNI5_js.j(r,"w","val")??"unlocked";break;case "placeholder":{let a=chunk3R7QHNI5_js.e(r,"w","docPart");a&&(n.placeholder=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "showingPlcHdr":{let a=chunk3R7QHNI5_js.j(r,"w","val");n.showingPlaceholder=a==null||!/^(0|false|off)$/i.test(a);break}case "date":{let a=chunk3R7QHNI5_js.e(r,"w","dateFormat");a&&(n.dateFormat=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "dropDownList":case "comboBox":n.listItems=Nt(r);break;case "checkbox":{let a=chunk3R7QHNI5_js.e(r,"w14","checked")??chunk3R7QHNI5_js.e(r,"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(r,"w","xpath"),l=chunk3R7QHNI5_js.j(r,"w","storeItemID"),f=chunk3R7QHNI5_js.j(r,"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 Ve={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 It(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Ve[t]?Ve[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Ht(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=It(t.marker||""));}function Lt(e,t,n,r,o,a,u){if(e.content.length===0)return;let l=chunk3R7QHNI5_js.i(t),f=0;function c(d){if(!chunkLW5OFHSW_js.h(d))return;let p=chunkLW5OFHSW_js.j(d);if(!p)return;let w=chunk3R7QHNI5_js.n(d,"wps","wsp");if(w){let h=chunkLW5OFHSW_js.k(w);h&&(p.content=chunkLW5OFHSW_js.g(h,Z,null,n,r,o,a??void 0,u??void 0));}let T={type:"shape",shapeType:"rect",size:p.size,position:p.position,wrap:p.wrap,fill:p.fill,outline:p.outline,textBody:{content:p.content,margins:p.margins}};p.id&&(T.id=p.id);let y={type:"shape",shape:T},x=f;if(x>=e.content.length){x=-1;for(let h=e.content.length-1;h>=0;h--)if(e.content[h].type==="run"){x=h;break}}if(x>=0){let h=e.content[x];h.type==="run"&&h.content.push(y);}}for(let d of l){if(chunk3R7QHNI5_js.d(d.name??"")!=="r")continue;let p=chunk3R7QHNI5_js.i(d);for(let w of p){let T=chunk3R7QHNI5_js.d(w.name??"");if(T==="drawing")c(w);else if(T==="AlternateContent"){let y=chunk3R7QHNI5_js.i(w),h=y.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Choice")??y.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Fallback");if(h)for(let P of chunk3R7QHNI5_js.i(h))chunk3R7QHNI5_js.d(P.name??"")==="drawing"&&c(P);}}f++;}}function G(e,t,n,r,o,a,u){let l=[],f=chunk3R7QHNI5_js.i(e);for(let c of f){let d=c.name??"";if(d==="w:p"||d.endsWith(":p")){let p=Z(c,t,n,r,o,a,u);Lt(p,c,t,n,r,o,a),Ht(p),l.push(p);}else if(d==="w:tbl"||d.endsWith(":tbl")){let p=xe(c,t,n,r,o,a,u);l.push(p);}else (d==="w:sdt"||d.endsWith(":sdt"))&&l.push(Xt(c,t,n,r,o,a,u));}return l}function Xt(e,t,n,r,o,a,u){let l=chunk3R7QHNI5_js.e(e,"w","sdtPr"),f=chunk3R7QHNI5_js.e(e,"w","sdtEndPr"),c=chunk3R7QHNI5_js.e(e,"w","sdtContent"),d=ie(l,f),p=c?G(c,t,n,r,o,a,u):[];return {type:"blockSdt",properties:d,content:p}}function ae(e){let t={};if(!e)return t;for(let n of e.split(";")){let r=n.indexOf(":");if(r<0)continue;let o=n.slice(0,r).trim().toLowerCase(),a=n.slice(r+1).trim();o&&(t[o]=a);}return t}function Dt(e){if(!e)return "#C0C0C0";let t=e.trim();return t.startsWith("#")?t:/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:t}function je(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 Ue=914400/96;function Ot(e,t,n){if(!e||!t)return {};let r=t.get(e);if(!r?.target)return {};let o=r.target,a=o.split("/").pop()??o,u=[o,o.replace(/^\/+/,""),`word/${o.replace(/^\/+/,"")}`,`word/media/${a}`,`media/${a}`];if(n)for(let l of u){let f=l.toLowerCase();for(let[c,d]of n.entries())if(c.toLowerCase()===f)return {dataUrl:d.dataUrl??d.base64,mediaPath:d.path,contentType:d.mimeType}}return {}}function Ce(e,t){if(t.includes("watermark")||(chunk3R7QHNI5_js.j(e,null,"type")??"").includes("_t136"))return true;let r=chunk3R7QHNI5_js.i(e).find(o=>o.name==="v:imagedata"||o.name?.endsWith(":imagedata"));return !!(r&&(chunk3R7QHNI5_js.j(r,null,"gain")||chunk3R7QHNI5_js.j(r,"o","gain")||chunk3R7QHNI5_js.j(r,null,"blacklevel")))}function ze(e,t=null,n=null){if(!e)return;let r=chunk3R7QHNI5_js.o(e,"v","shape");for(let o of r){let a=(chunk3R7QHNI5_js.j(o,null,"id")??"").toLowerCase(),u=chunk3R7QHNI5_js.i(o),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(!Ce(o,a)&&!l)continue;let c=ae(chunk3R7QHNI5_js.j(o,null,"style")),d=parseFloat(c.rotation??"0")||0,p=Math.abs(d)>5;if(l){let w=chunk3R7QHNI5_js.j(l,null,"string")??"",x=(ae(chunk3R7QHNI5_js.j(l,null,"style"))["font-family"]??"Calibri").replace(/["']/g,"").replace(/^&quot;|&quot;$/g,"").trim()||"Calibri",h=u.find(M=>M.name==="v:fill"||M.name?.endsWith(":fill")),P=h?chunk3R7QHNI5_js.j(h,null,"opacity"):null,F=P!=null&&parseFloat(P)<1;return {kind:"text",text:w,font:x,color:Dt(chunk3R7QHNI5_js.j(o,null,"fillcolor")),semitransparent:F,layout:p?"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:T,mediaPath:y,contentType:x}=Ot(w,t,n),h=chunk3R7QHNI5_js.j(f,null,"gain"),P=chunk3R7QHNI5_js.j(f,null,"blacklevel"),F=h!=null||P!=null,M=je(c.width),m=je(c.height);return {kind:"picture",relId:w||void 0,mediaPath:y,contentType:x,dataUrl:T,scale:1,washout:F,widthEmu:M!=null?Math.round(M*Ue):void 0,heightEmu:m!=null?Math.round(m*Ue):void 0}}}}function _e(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function qe(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:_e(t),rId:n}}function Ge(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:_e(t),rId:n}}function sr(e,t="default",n=null,r=null,o=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(p=>p.type==="element"&&(p.name==="w:hdr"||p.name?.endsWith(":hdr")));if(!c)return l;l.content=G(c,n,r,o,a,u,{inHeaderFooter:true});let d=ze(c,a,u);return d&&(l.watermark=d),l}function ur(e,t="default",n=null,r=null,o=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(d=>d.type==="element"&&(d.name==="w:ftr"||d.name?.endsWith(":ftr")));return c&&(l.content=G(c,n,r,o,a,u,{inHeaderFooter:true})),l}function $e(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function Ye(e,t,n,r,o,a){let u=G(e,t,n,r,o,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 Wt(e,t,n,r,o,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=$e(l),{blocks:c,hasUnmodeled:d}=Ye(e,t,n,r,o,a);return {type:"footnote",id:u,noteType:f,content:c,...d?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function pr(e,t=null,n=null,r=null,o=null,a=null){let u=new Map,l=[];if(!e)return le(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return le(u,l);let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:footnotes"||p.name?.endsWith(":footnotes")));if(!c)return le(u,l);let d=chunk3R7QHNI5_js.f(c,"w","footnote");for(let p of d){let w=Wt(p,t,n,r,o,a);u.set(w.id,w),l.push(w);}return le(u,l)}function le(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 Vt(e,t,n,r,o,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=$e(l),{blocks:c,hasUnmodeled:d}=Ye(e,t,n,r,o,a);return {type:"endnote",id:u,noteType:f,content:c,...d?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function mr(e,t=null,n=null,r=null,o=null,a=null){let u=new Map,l=[];if(!e)return se(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return se(u,l);let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:endnotes"||p.name?.endsWith(":endnotes")));if(!c)return se(u,l);let d=chunk3R7QHNI5_js.f(c,"w","endnote");for(let p of d){let w=Vt(p,t,n,r,o,a);u.set(w.id,w),l.push(w);}return se(u,l)}function se(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 Ze(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 jt(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ut(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ke(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function Qe(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=jt(u);}let r=chunk3R7QHNI5_js.e(e,"w","numFmt");if(r){let u=chunk3R7QHNI5_js.j(r,"w","val");t.numFmt=Ze(u);}let o=chunk3R7QHNI5_js.e(e,"w","numStart");o&&(t.numStart=chunk3R7QHNI5_js.l(o,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=Ke(u);}return t}function Je(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=Ut(u);}let r=chunk3R7QHNI5_js.e(e,"w","numFmt");if(r){let u=chunk3R7QHNI5_js.j(r,"w","val");t.numFmt=Ze(u);}let o=chunk3R7QHNI5_js.e(e,"w","numStart");o&&(t.numStart=chunk3R7QHNI5_js.l(o,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=Ke(u);}return t}function gr(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let r=[];for(let o of n.content)if(o.type==="run")for(let a of o.content)a.type==="text"&&r.push(a.text);t.push(r.join(""));}return t.join(`
2
+ `)}function hr(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let r=[];for(let o of n.content)if(o.type==="run")for(let a of o.content)a.type==="text"&&r.push(a.text);t.push(r.join(""));}return t.join(`
3
+ `)}function wr(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function yr(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function zt(e,t,n,r){if(!e&&!t)return;let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),Object.keys(o).length>0?o:void 0}function ue(e){if(!e)return;let r={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},o=chunk3R7QHNI5_js.l(e,"w","sz");o!==void 0&&(r.size=o);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(r.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"),d=zt(u,l,f,c);d&&(r.color=d);let p=chunk3R7QHNI5_js.j(e,"w","shadow");(p==="1"||p==="true")&&(r.shadow=true);let w=chunk3R7QHNI5_js.j(e,"w","frame");return (w==="1"||w==="true")&&(r.frame=true),r}function _t(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function qt(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 Gt(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function $t(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function tt(e,t){let n={};if(!e)return n;let r=chunk3R7QHNI5_js.e(e,"w","pgSz");if(r){let m=chunk3R7QHNI5_js.l(r,"w","w");m!==void 0&&(n.pageWidth=m);let C=chunk3R7QHNI5_js.l(r,"w","h");C!==void 0&&(n.pageHeight=C);let E=chunk3R7QHNI5_js.j(r,"w","orient"),b=_t(E);b&&(n.orientation=b);}let o=chunk3R7QHNI5_js.e(e,"w","pgMar");if(o){let m=chunk3R7QHNI5_js.l(o,"w","top");m!==void 0&&(n.marginTop=m);let C=chunk3R7QHNI5_js.l(o,"w","bottom");C!==void 0&&(n.marginBottom=C);let E=chunk3R7QHNI5_js.l(o,"w","left");E!==void 0&&(n.marginLeft=E);let b=chunk3R7QHNI5_js.l(o,"w","right");b!==void 0&&(n.marginRight=b);let k=chunk3R7QHNI5_js.l(o,"w","header");k!==void 0&&(n.headerDistance=k);let B=chunk3R7QHNI5_js.l(o,"w","footer");B!==void 0&&(n.footerDistance=B);let A=chunk3R7QHNI5_js.l(o,"w","gutter");A!==void 0&&(n.gutter=A);}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 C=chunk3R7QHNI5_js.l(a,"w","space");C!==void 0&&(n.columnSpace=C);let E=chunk3R7QHNI5_js.j(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let b=chunk3R7QHNI5_js.j(a,"w","sep");(b==="1"||b==="true")&&(n.separator=true);let k=chunk3R7QHNI5_js.f(a,"w","col");if(k.length>0){n.columns=[];for(let B of k){let A={},H=chunk3R7QHNI5_js.l(B,"w","w");H!==void 0&&(A.width=H);let I=chunk3R7QHNI5_js.l(B,"w","space");I!==void 0&&(A.space=I),n.columns.push(A);}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"),C=qt(m);C&&(n.sectionStart=C);}let l=chunk3R7QHNI5_js.e(e,"w","vAlign");if(l){let m=chunk3R7QHNI5_js.j(l,"w","val"),C=Gt(m);C&&(n.verticalAlign=C);}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=>qe(m)));let d=chunk3R7QHNI5_js.f(e,"w","footerReference");d.length>0&&(n.footerReferences=d.map(m=>Ge(m)));let p=chunk3R7QHNI5_js.e(e,"w","titlePg");p&&(n.titlePg=chunk3R7QHNI5_js.m(p));let w=chunk3R7QHNI5_js.e(e,"w","evenAndOddHeaders");w&&(n.evenAndOddHeaders=chunk3R7QHNI5_js.m(w));let T=chunk3R7QHNI5_js.e(e,"w","lnNumType");if(T){n.lineNumbers={};let m=chunk3R7QHNI5_js.l(T,"w","start");m!==void 0&&(n.lineNumbers.start=m);let C=chunk3R7QHNI5_js.l(T,"w","countBy");C!==void 0&&(n.lineNumbers.countBy=C);let E=chunk3R7QHNI5_js.l(T,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let b=chunk3R7QHNI5_js.j(T,"w","restart"),k=$t(b);k&&(n.lineNumbers.restart=k);}let y=chunk3R7QHNI5_js.e(e,"w","pgBorders");if(y){n.pageBorders={};let m=ue(chunk3R7QHNI5_js.e(y,"w","top"));m&&(n.pageBorders.top=m);let C=ue(chunk3R7QHNI5_js.e(y,"w","bottom"));C&&(n.pageBorders.bottom=C);let E=ue(chunk3R7QHNI5_js.e(y,"w","left"));E&&(n.pageBorders.left=E);let b=ue(chunk3R7QHNI5_js.e(y,"w","right"));b&&(n.pageBorders.right=b);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 A=chunk3R7QHNI5_js.j(y,"w","zOrder");(A==="front"||A==="back")&&(n.pageBorders.zOrder=A);}let x=chunk3R7QHNI5_js.e(e,"w","background");if(x){n.background={};let m=chunk3R7QHNI5_js.j(x,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let C=chunk3R7QHNI5_js.j(x,"w","themeColor");C&&(n.background.themeColor=C);let E=chunk3R7QHNI5_js.j(x,"w","themeTint");E&&(n.background.themeTint=E);let b=chunk3R7QHNI5_js.j(x,"w","themeShade");b&&(n.background.themeShade=b);}let h=chunk3R7QHNI5_js.e(e,"w","footnotePr");if(h){let m=Qe(h);Object.keys(m).length>0&&(n.footnotePr=m);}let P=chunk3R7QHNI5_js.e(e,"w","endnotePr");if(P){let m=Je(P);Object.keys(m).length>0&&(n.endnotePr=m);}let F=chunk3R7QHNI5_js.e(e,"w","docGrid");if(F){n.docGrid={};let m=chunk3R7QHNI5_js.j(F,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let C=chunk3R7QHNI5_js.l(F,"w","linePitch");C!==void 0&&(n.docGrid.linePitch=C);let E=chunk3R7QHNI5_js.l(F,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let M=chunk3R7QHNI5_js.e(e,"w","paperSrc");if(M){let m=chunk3R7QHNI5_js.l(M,"w","first");m!==void 0&&(n.paperSrcFirst=m);let C=chunk3R7QHNI5_js.l(M,"w","other");C!==void 0&&(n.paperSrcOther=C);}return n}function Fr(){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 et(e,t){if(!t||t.length===0)return e;let n=new Set((e??[]).map(o=>o.type)),r=t.filter(o=>!n.has(o.type));return r.length===0?e:[...e??[],...r]}function kr(e){if(e.length<2)return e;let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[n-1].properties,o=e[n].properties,a=et(o.headerReferences,r.headerReferences),u=et(o.footerReferences,r.footerReferences),l=o.titlePg!==void 0?o.titlePg:r.titlePg;if(a===o.headerReferences&&u===o.footerReferences&&l===o.titlePg){t.push(e[n]);continue}t.push({...e[n],properties:{...o,headerReferences:a,footerReferences:u,titlePg:l}});}return t}function Yt(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||!Zt(e.underline,t.underline)||!fe(e.color,t.color)||!Kt(e.shading,t.shading)||!Qt(e.fontFamily,t.fontFamily))}function Zt(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:fe(e.color,t.color)}function fe(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 Kt(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!fe(e.color,t.color)||!fe(e.fill,t.fill))}function Qt(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 Jt(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function nt(e){return e.content.length===0?true:e.content.every(Jt)}function en(e,t){let n=[];for(let r of e)n.push(r);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let r=n[n.length-1],o=t[0];n[n.length-1]={type:"text",text:r.text+o.text,preserveSpace:r.preserveSpace||o.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let r of t)n.push(r);return n}function tn(e){if(e.length<=1)return e;let t=[],n=null;for(let r of e)if(r.content.length!==0){if(n===null){n={...r,content:[...r.content]};continue}nt(n)&&nt(r)&&Yt(n.formatting,r.formatting)?n={type:"run",formatting:n.formatting,content:en(n.content,r.content)}:(t.push(n),n={...r,content:[...r.content]});}return n!==null&&t.push(n),t}function Fe(e){if(e.length<=1)return e;let t=[],n=[];function r(){if(n.length>0){let o=tn(n);t.push(...o),n.length=0;}}for(let o of e)if(o.type==="run")n.push(o);else if(r(),o.type==="hyperlink"){let a={...o,children:Fe(o.children)};t.push(a);}else t.push(o);return r(),t}function rt(e){if(!e)return;let t=/^(-?[\d.]+)\s*(pt|in|px|cm|mm|pc)?$/.exec(e.trim());if(!t)return;let n=parseFloat(t[1]);if(!isNaN(n))switch(t[2]){case "pt":return n/72*96;case "in":return n*96;case "cm":return n/2.54*96;case "mm":return n/25.4*96;case "pc":return n/6*96;case "px":case void 0:return n;default:return}}function nn(e){return chunk3R7QHNI5_js.j(e,"r","id")??chunk3R7QHNI5_js.j(e,"r","embed")??chunk3R7QHNI5_js.j(e,null,"id")??""}function rn(e){if(!e)return null;let t;if(e.startsWith("data:")){let n=e.indexOf(",");if(n<0)return null;t=e.slice(n+1);}else if(/^[A-Za-z0-9+/]/.test(e)&&!e.includes(":"))t=e;else return null;try{let n=typeof atob=="function"?atob(t):globalThis.Buffer?.from(t,"base64").toString("binary");if(typeof n!="string")return null;let r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}catch{return null}}function on(e){if(!e||e.length<24)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71)return {width:t.getUint32(16),height:t.getUint32(20)};if(e[0]===71&&e[1]===73&&e[2]===70)return {width:e[6]|e[7]<<8,height:e[8]|e[9]<<8};if(e[0]===66&&e[1]===77&&e.length>=26)return {width:t.getInt32(18,true),height:Math.abs(t.getInt32(22,true))};if(e[0]===255&&e[1]===216){let n=2;for(;n+9<e.length;){if(e[n]!==255){n++;continue}let r=e[n+1];if(r>=192&&r<=207&&r!==196&&r!==200&&r!==204)return {height:e[n+5]<<8|e[n+6],width:e[n+7]<<8|e[n+8]};let o=e[n+2]<<8|e[n+3];if(o<2)break;n+=2+o;}}return null}function ot(e,t,n){let r=[...chunk3R7QHNI5_js.o(e,"v","shape"),...chunk3R7QHNI5_js.o(e,"v","rect"),...chunk3R7QHNI5_js.o(e,"v","roundrect"),...chunk3R7QHNI5_js.o(e,"v","oval")];for(let o of r){let a=chunk3R7QHNI5_js.i(o).find(h=>h.name==="v:imagedata"||h.name?.endsWith(":imagedata"));if(!a)continue;let u=nn(a);if(!u)continue;let l=(chunk3R7QHNI5_js.j(o,null,"id")??"").toLowerCase();if(Ce(o,l))continue;let{src:f,mimeType:c,filename:d}=chunkLW5OFHSW_js.y(u,t??void 0,n??void 0),p=ae(chunk3R7QHNI5_js.j(o,null,"style")),w=rt(p.width),T=rt(p.height);if(w==null||T==null){let h=on(rn(f));h&&h.width>0&&h.height>0&&(w==null&&T==null?(w=h.width,T=h.height):w==null?w=T*(h.width/h.height):T=w*(h.height/h.width));}let y={type:"image",rId:u,size:{width:w!=null?chunkBJSG6TEG_js.g(w):0,height:T!=null?chunkBJSG6TEG_js.g(T):0},wrap:{type:"inline"}};f&&(y.src=f),c&&(y.mimeType=c),d&&(y.filename=d);let x=chunk3R7QHNI5_js.j(a,"o","title")??void 0;return x&&(y.title=x),{type:"drawing",image:y}}return null}function it(e,t,n,r){let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),o}function an(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=chunk3R7QHNI5_js.j(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let o=chunk3R7QHNI5_js.j(e,"w","themeFill");o&&(t.fill=t.fill||{},t.fill.themeColor=o);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 de(e,t,n){if(!e)return;let r={},o=chunk3R7QHNI5_js.e(e,"w","b");o&&(r.bold=chunk3R7QHNI5_js.m(o));let a=chunk3R7QHNI5_js.e(e,"w","bCs");a&&(r.boldCs=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","i");u&&(r.italic=chunk3R7QHNI5_js.m(u));let l=chunk3R7QHNI5_js.e(e,"w","iCs");l&&(r.italicCs=chunk3R7QHNI5_js.m(l));let f=chunk3R7QHNI5_js.e(e,"w","u");if(f){let S=chunk3R7QHNI5_js.j(f,"w","val");if(S){r.underline={style:S};let z=chunk3R7QHNI5_js.j(f,"w","color"),_=chunk3R7QHNI5_js.j(f,"w","themeColor");(z||_)&&(r.underline.color=it(z,_,chunk3R7QHNI5_js.j(f,"w","themeTint"),chunk3R7QHNI5_js.j(f,"w","themeShade")));}}let c=chunk3R7QHNI5_js.e(e,"w","strike");c&&(r.strike=chunk3R7QHNI5_js.m(c));let d=chunk3R7QHNI5_js.e(e,"w","dstrike");d&&(r.doubleStrike=chunk3R7QHNI5_js.m(d));let p=chunk3R7QHNI5_js.e(e,"w","vertAlign");if(p){let S=chunk3R7QHNI5_js.j(p,"w","val");(S==="superscript"||S==="subscript"||S==="baseline")&&(r.vertAlign=S);}let w=chunk3R7QHNI5_js.e(e,"w","smallCaps");w&&(r.smallCaps=chunk3R7QHNI5_js.m(w));let T=chunk3R7QHNI5_js.e(e,"w","caps");T&&(r.allCaps=chunk3R7QHNI5_js.m(T));let y=chunk3R7QHNI5_js.e(e,"w","vanish");y&&(r.hidden=chunk3R7QHNI5_js.m(y));let x=chunk3R7QHNI5_js.e(e,"w","color");x&&(r.color=it(chunk3R7QHNI5_js.j(x,"w","val"),chunk3R7QHNI5_js.j(x,"w","themeColor"),chunk3R7QHNI5_js.j(x,"w","themeTint"),chunk3R7QHNI5_js.j(x,"w","themeShade")));let h=chunk3R7QHNI5_js.e(e,"w","highlight");if(h){let S=chunk3R7QHNI5_js.j(h,"w","val");S&&(r.highlight=S);}let P=chunk3R7QHNI5_js.e(e,"w","shd");P&&(r.shading=an(P));let F=chunk3R7QHNI5_js.e(e,"w","sz");if(F){let S=chunk3R7QHNI5_js.l(F,"w","val");S!==void 0&&(r.fontSize=S);}let M=chunk3R7QHNI5_js.e(e,"w","szCs");if(M){let S=chunk3R7QHNI5_js.l(M,"w","val");S!==void 0&&(r.fontSizeCs=S);}let m=chunk3R7QHNI5_js.e(e,"w","rFonts");if(m){r.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 S=chunk3R7QHNI5_js.j(m,"w","asciiTheme");S&&(r.fontFamily.asciiTheme=S,t&&!r.fontFamily.ascii&&(r.fontFamily.ascii=Y(t,S)));let z=chunk3R7QHNI5_js.j(m,"w","hAnsiTheme");z&&(r.fontFamily.hAnsiTheme=z,t&&!r.fontFamily.hAnsi&&(r.fontFamily.hAnsi=Y(t,z)));let _=chunk3R7QHNI5_js.j(m,"w","eastAsiaTheme");_&&(r.fontFamily.eastAsiaTheme=_,t&&!r.fontFamily.eastAsia&&(r.fontFamily.eastAsia=Y(t,_)));let me=chunk3R7QHNI5_js.j(m,"w","cstheme");me&&(r.fontFamily.csTheme=me,t&&!r.fontFamily.cs&&(r.fontFamily.cs=Y(t,me)));}let C=chunk3R7QHNI5_js.e(e,"w","spacing");if(C){let S=chunk3R7QHNI5_js.l(C,"w","val");S!==void 0&&(r.spacing=S);}let E=chunk3R7QHNI5_js.e(e,"w","position");if(E){let S=chunk3R7QHNI5_js.l(E,"w","val");S!==void 0&&(r.position=S);}let b=chunk3R7QHNI5_js.e(e,"w","w");if(b){let S=chunk3R7QHNI5_js.l(b,"w","val");S!==void 0&&(r.scale=S);}let k=chunk3R7QHNI5_js.e(e,"w","kern");if(k){let S=chunk3R7QHNI5_js.l(k,"w","val");S!==void 0&&(r.kerning=S);}let B=chunk3R7QHNI5_js.e(e,"w","effect");if(B){let S=chunk3R7QHNI5_js.j(B,"w","val");S&&(r.effect=S);}let A=chunk3R7QHNI5_js.e(e,"w","em");if(A){let S=chunk3R7QHNI5_js.j(A,"w","val");S&&(r.emphasisMark=S);}let H=chunk3R7QHNI5_js.e(e,"w","emboss");H&&(r.emboss=chunk3R7QHNI5_js.m(H));let I=chunk3R7QHNI5_js.e(e,"w","imprint");I&&(r.imprint=chunk3R7QHNI5_js.m(I));let X=chunk3R7QHNI5_js.e(e,"w","outline");X&&(r.outline=chunk3R7QHNI5_js.m(X));let ke=chunk3R7QHNI5_js.e(e,"w","shadow");ke&&(r.shadow=chunk3R7QHNI5_js.m(ke));let Se=chunk3R7QHNI5_js.e(e,"w","rtl");Se&&(r.rtl=chunk3R7QHNI5_js.m(Se));let Me=chunk3R7QHNI5_js.e(e,"w","cs");Me&&(r.cs=chunk3R7QHNI5_js.m(Me));let Re=chunk3R7QHNI5_js.e(e,"w","rStyle");if(Re){let S=chunk3R7QHNI5_js.j(Re,"w","val");S&&(r.styleId=S);}return Object.keys(r).length>0?r:void 0}function ln(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,r=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),o=(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:r.length>0?r:"Unknown",date:o.length>0?o:void 0,rsid:a.length>0?a:void 0}}function sn(e,t,n,r){if(!e)return;let o=chunk3R7QHNI5_js.f(e,"w","rPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","rPr");return {type:"runPropertyChange",info:ln(a),previousFormatting:de(u,t),currentFormatting:r}}).filter(a=>a.previousFormatting||a.currentFormatting);return o.length>0?o:void 0}function un(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 fn(){return {type:"tab"}}function cn(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"w","clear"),r={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(r.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(r.clear=n),r}function dn(e){let t=chunk3R7QHNI5_js.j(e,"w","font")??"",n=chunk3R7QHNI5_js.j(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function pn(e){return {type:"footnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function mn(e){return {type:"endnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function gn(e){let t=chunk3R7QHNI5_js.j(e,"w","fldCharType"),n=chunk3R7QHNI5_js.j(e,"w","fldLock")==="true"||chunk3R7QHNI5_js.j(e,"w","fldLock")==="1",r=chunk3R7QHNI5_js.j(e,"w","dirty")==="true"||chunk3R7QHNI5_js.j(e,"w","dirty")==="1",o="begin";return t==="separate"?o="separate":t==="end"&&(o="end"),{type:"fieldChar",charType:o,fldLock:n||void 0,dirty:r||void 0}}function hn(e){return {type:"instrText",text:chunk3R7QHNI5_js.k(e)}}function at(e,t,n){let r=chunkLW5OFHSW_js.A(e,t??void 0,n??void 0);return r?{type:"drawing",image:r}:null}function ce(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function wn(e,t,n){let r=[],o=chunk3R7QHNI5_js.i(e);for(let a of o)switch(ce(a.name)){case "t":r.push(un(a));break;case "tab":r.push(fn());break;case "br":r.push(cn(a));break;case "sym":r.push(dn(a));break;case "footnoteReference":r.push(pn(a));break;case "endnoteReference":r.push(mn(a));break;case "fldChar":r.push(gn(a));break;case "instrText":r.push(hn(a));break;case "softHyphen":r.push({type:"softHyphen"});break;case "noBreakHyphen":r.push({type:"noBreakHyphen"});break;case "drawing":let l=at(a,t,n);l&&r.push(l);break;case "pict":case "object":{let f=ot(a,t,n);f&&r.push(f);break}case "rPr":break;case "lastRenderedPageBreak":break;case "cr":r.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=chunk3R7QHNI5_js.i(a).find(d=>ce(d.name)==="Choice")??chunk3R7QHNI5_js.i(a).find(d=>ce(d.name)==="Fallback");if(c){for(let d of chunk3R7QHNI5_js.i(c))if(ce(d.name)==="drawing"){let w=at(d,t,n);w?.image?.src&&r.push(w);}}break}case "footnoteRef":r.push({type:"footnoteRefMark"});break;case "endnoteRef":r.push({type:"endnoteRefMark"});break;case "separator":r.push({type:"separator"});break;case "continuationSeparator":r.push({type:"continuationSeparator"});break;}return r}function K(e,t,n,r=null,o=null){let a={type:"run",content:[]},u=chunk3R7QHNI5_js.e(e,"w","rPr");return u&&(a.formatting=de(u,n),a.propertyChanges=sn(u,n,t,a.formatting)),a.content=wn(e,r,o),a}function yn(e,t,n,r){let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),o}function bn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=chunk3R7QHNI5_js.j(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let o=chunk3R7QHNI5_js.j(e,"w","themeFill");o&&(t.fill=t.fill||{},t.fill.themeColor=o);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 $(e){if(!e)return;let t=chunk3R7QHNI5_js.j(e,"w","val");if(!t)return;let n={style:t},r=chunk3R7QHNI5_js.j(e,"w","color"),o=chunk3R7QHNI5_js.j(e,"w","themeColor");(r||o)&&(n.color=yn(r,o,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 Tn(e){if(!e)return;let t=chunk3R7QHNI5_js.f(e,"w","tab");if(t.length===0)return;let n=[];for(let r of t){let o=chunk3R7QHNI5_js.l(r,"w","pos"),a=chunk3R7QHNI5_js.j(r,"w","val");if(o!==void 0&&a){let u={position:o,alignment:a},l=chunk3R7QHNI5_js.j(r,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function xn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.l(e,"w","w");n!==void 0&&(t.width=n);let r=chunk3R7QHNI5_js.l(e,"w","h");r!==void 0&&(t.height=r);let o=chunk3R7QHNI5_js.j(e,"w","hAnchor");(o==="text"||o==="margin"||o==="page")&&(t.hAnchor=o);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 d=chunk3R7QHNI5_js.j(e,"w","wrap");return d&&(t.wrap=d),Object.keys(t).length>0?t:void 0}function pe(e,t,n){if(!e)return;let r={},o=chunk3R7QHNI5_js.e(e,"w","jc");if(o){let b=chunk3R7QHNI5_js.j(o,"w","val");b&&(r.alignment=b);}let a=chunk3R7QHNI5_js.e(e,"w","bidi");a&&(r.bidi=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","spacing");if(u){let b=chunk3R7QHNI5_js.l(u,"w","before");b!==void 0&&(r.spaceBefore=b);let k=chunk3R7QHNI5_js.l(u,"w","after");k!==void 0&&(r.spaceAfter=k);let B=chunk3R7QHNI5_js.l(u,"w","line");B!==void 0&&(r.lineSpacing=B);let A={};b!==void 0&&(A.before=true),k!==void 0&&(A.after=true),(A.before||A.after)&&(r.spacingExplicit=A);let H=chunk3R7QHNI5_js.j(u,"w","lineRule");H&&(r.lineSpacingRule=H);let I=chunk3R7QHNI5_js.j(u,"w","beforeAutospacing");I&&(r.beforeAutospacing=I==="1"||I==="true");let X=chunk3R7QHNI5_js.j(u,"w","afterAutospacing");X&&(r.afterAutospacing=X==="1"||X==="true");}let l=chunk3R7QHNI5_js.e(e,"w","ind");if(l){let b=chunk3R7QHNI5_js.l(l,"w","left");b!==void 0&&(r.indentLeft=b);let k=chunk3R7QHNI5_js.l(l,"w","right");k!==void 0&&(r.indentRight=k);let B=chunk3R7QHNI5_js.l(l,"w","firstLine");B!==void 0&&(r.indentFirstLine=B);let A=chunk3R7QHNI5_js.l(l,"w","hanging");A!==void 0&&(r.indentFirstLine=-A,r.hangingIndent=true);let H=chunk3R7QHNI5_js.l(l,"w","start");H!==void 0&&r.indentLeft===void 0&&(r.indentLeft=H);let I=chunk3R7QHNI5_js.l(l,"w","end");I!==void 0&&r.indentRight===void 0&&(r.indentRight=I);}let f=chunk3R7QHNI5_js.e(e,"w","pBdr");if(f){let b={},k=$(chunk3R7QHNI5_js.e(f,"w","top"));k&&(b.top=k);let B=$(chunk3R7QHNI5_js.e(f,"w","bottom"));B&&(b.bottom=B);let A=$(chunk3R7QHNI5_js.e(f,"w","left"));A&&(b.left=A);let H=$(chunk3R7QHNI5_js.e(f,"w","right"));H&&(b.right=H);let I=$(chunk3R7QHNI5_js.e(f,"w","between"));I&&(b.between=I);let X=$(chunk3R7QHNI5_js.e(f,"w","bar"));X&&(b.bar=X),Object.keys(b).length>0&&(r.borders=b);}let c=chunk3R7QHNI5_js.e(e,"w","shd");c&&(r.shading=bn(c));let d=chunk3R7QHNI5_js.e(e,"w","tabs");d&&(r.tabs=Tn(d));let p=chunk3R7QHNI5_js.e(e,"w","keepNext");p&&(r.keepNext=chunk3R7QHNI5_js.m(p));let w=chunk3R7QHNI5_js.e(e,"w","keepLines");w&&(r.keepLines=chunk3R7QHNI5_js.m(w));let T=chunk3R7QHNI5_js.e(e,"w","widowControl");T&&(r.widowControl=chunk3R7QHNI5_js.m(T));let y=chunk3R7QHNI5_js.e(e,"w","pageBreakBefore");y&&(r.pageBreakBefore=chunk3R7QHNI5_js.m(y));let x=chunk3R7QHNI5_js.e(e,"w","contextualSpacing");x&&(r.contextualSpacing=chunk3R7QHNI5_js.m(x));let h=chunk3R7QHNI5_js.e(e,"w","numPr");if(h){let b=chunk3R7QHNI5_js.e(h,"w","numId"),k=chunk3R7QHNI5_js.e(h,"w","ilvl");if(b||k){if(r.numPr={},b){let B=chunk3R7QHNI5_js.l(b,"w","val");B!==void 0&&(r.numPr.numId=B);}if(k){let B=chunk3R7QHNI5_js.l(k,"w","val");B!==void 0&&(r.numPr.ilvl=B);}}}let P=chunk3R7QHNI5_js.e(e,"w","outlineLvl");if(P){let b=chunk3R7QHNI5_js.l(P,"w","val");b!==void 0&&(r.outlineLevel=b);}let F=chunk3R7QHNI5_js.e(e,"w","pStyle");if(F){let b=chunk3R7QHNI5_js.j(F,"w","val");b&&(r.styleId=b);}let M=chunk3R7QHNI5_js.e(e,"w","framePr");M&&(r.frame=xn(M));let m=chunk3R7QHNI5_js.e(e,"w","suppressLineNumbers");m&&(r.suppressLineNumbers=chunk3R7QHNI5_js.m(m));let C=chunk3R7QHNI5_js.e(e,"w","suppressAutoHyphens");C&&(r.suppressAutoHyphens=chunk3R7QHNI5_js.m(C));let E=chunk3R7QHNI5_js.e(e,"w","rPr");return E&&(r.runProperties=de(E,t)),Object.keys(r).length>0?r:void 0}function Cn(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function Fn(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},o=chunk3R7QHNI5_js.l(e,"w","colFirst");o!==void 0&&(r.colFirst=o);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function kn(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function lt(e,t,n=null,r=null,o=null){let a={type:"hyperlink",children:[]},u=chunk3R7QHNI5_js.j(e,"r","id");if(u&&(a.rId=u,t)){let T=t.get(u);T&&(chunkZ3LGMBJC_js.c(T),a.href=T.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 d=chunk3R7QHNI5_js.j(e,"w","history");(d==="1"||d==="true")&&(a.history=true);let p=chunk3R7QHNI5_js.j(e,"w","docLocation");p&&(a.docLocation=p);let w=chunk3R7QHNI5_js.i(e);for(let T of w)switch(Cn(T.name)){case "r":a.children.push(K(T,n,r,t,o));break;case "bookmarkStart":a.children.push(Fn(T));break;case "bookmarkEnd":a.children.push(kn(T));break}return a}function Ur(e){let t="";for(let n of e.children)if(n.type==="run")for(let r of n.content)r.type==="text"?t+=r.text:r.type==="tab"&&(t+=" ");return t}function zr(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function _r(e){return !!e.anchor}function qr(e){return e.href}function Gr(e){return e.children.some(t=>t.type==="run")}function $r(e){return e.children.filter(t=>t.type==="run")}function Yr(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 st(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},o=chunk3R7QHNI5_js.l(e,"w","colFirst");o!==void 0&&(r.colFirst=o);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function ut(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function ct(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 o of n.elements)o.type==="text"&&typeof o.text=="string"&&(t+=o.text);else t+=ct(n);return t}function J(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function dt(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"]),r=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"]),o=false;function a(l){for(let f of chunk3R7QHNI5_js.i(l)){let c=J(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){o=true;continue}if(c==="r"){for(let d of chunk3R7QHNI5_js.i(f)){let p=J(d.name);if(p!=="rPr"){if(p==="lastRenderedPageBreak"){o=true;continue}if(p==="br"&&chunk3R7QHNI5_js.j(d,"w","type")==="page")return "forced";if(r.has(p))return "visible"}}continue}if(t.has(c)){let d=a(f);if(d!=="continue")return d;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?o:false}function ft(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function pt(e){if(e.type!=="element")return e;let t=J(e.name),n=e.name;return t==="delText"?n=ft(e.name,"t"):t==="delInstrText"&&(n=ft(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(pt)}}function Q(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,r=chunk3R7QHNI5_js.j(e,"w","author"),o=chunk3R7QHNI5_js.j(e,"w","date"),a=r?.trim()??"",u=o?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:u.length>0?u:void 0}}function Sn(e){return Q(e)}function mt(e,t,n,r){if(!e)return;let o=chunk3R7QHNI5_js.f(e,"w","pPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","pPr");return {type:"paragraphPropertyChange",info:Sn(a),previousFormatting:pe(u,t),currentFormatting:r}}).filter(a=>a.previousFormatting||a.currentFormatting);return o.length>0?o:void 0}function Mn(e,t,n,r,o){return lt(e,t,n,r,o)}function Rn(e){return st(e)}function En(e){return ut(e)}function gt(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 Pn(e,t,n,r,o){let a=chunk3R7QHNI5_js.j(e,"w","instr")??"",u=gt(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 d=chunk3R7QHNI5_js.i(e);for(let p of d)J(p.name)==="r"&&l.content.push(K(p,t,n,r,o));return l}function U(e,t,n,r,o,a,u="default"){let l=[],f=chunk3R7QHNI5_js.i(e),c=false,d="",p=[],w=[],T=false,y=false,x=false;for(let h of f){let P=J(h.name);switch(P){case "r":{let F=u==="deletion"?pt(h):h,M=K(F,t,n,o,a),m=false,C=false,E=false,b="";for(let k of M.content)k.type==="fieldChar"?k.charType==="begin"?(m=true,k.fldLock&&(y=true),k.dirty&&(x=true)):k.charType==="separate"?C=true:k.charType==="end"&&(E=true):k.type==="instrText"&&(b+=k.text);if(m&&(c=true,T=false,d="",p=[],w=[],y=false,x=false),c){if(b&&(d+=b),C&&(T=true),T&&!E?C||w.push(M):!T&&!m&&p.push(M),E){let k={type:"complexField",instruction:d.trim(),fieldType:gt(d),fieldCode:p,fieldResult:w};y&&(k.fldLock=true),x&&(k.dirty=true),l.push(k),c=false;}}else l.push(M);break}case "hyperlink":l.push(Mn(h,o,t,n,a));break;case "bookmarkStart":l.push(Rn(h));break;case "bookmarkEnd":l.push(En(h));break;case "fldSimple":l.push(Pn(h,t,n,o,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let F=(h.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),M=(h.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(M){let m=U(M,t,n,null,o,a,u),E={type:"inlineSdt",properties:ie(F??null),content:m.filter(b=>b.type==="run"||b.type==="hyperlink"||b.type==="simpleField"||b.type==="complexField"||b.type==="inlineSdt"||b.type==="mathEquation")};l.push(E);}break}case "ins":{let F=Q(h),M=U(h,t,n,null,o,a),m={type:"insertion",info:F,content:M.filter(C=>C.type==="run"||C.type==="hyperlink")};l.push(m);break}case "del":{let F=Q(h),M=U(h,t,n,null,o,a,"deletion"),m={type:"deletion",info:F,content:M.filter(C=>C.type==="run"||C.type==="hyperlink")};l.push(m);break}case "moveFrom":{let F=Q(h),M=U(h,t,n,null,o,a,"deletion"),m={type:"moveFrom",info:F,content:M.filter(C=>C.type==="run"||C.type==="hyperlink")};l.push(m);break}case "moveTo":{let F=Q(h),M=U(h,t,n,null,o,a),m={type:"moveTo",info:F,content:M.filter(C=>C.type==="run"||C.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let F=parseInt(chunk3R7QHNI5_js.j(h,"w","id")??"0",10),M=chunk3R7QHNI5_js.j(h,"w","name")??"";l.push({type:"moveFromRangeStart",id:F,name:M});break}case "moveFromRangeEnd":{let F=parseInt(chunk3R7QHNI5_js.j(h,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:F});break}case "moveToRangeStart":{let F=parseInt(chunk3R7QHNI5_js.j(h,"w","id")??"0",10),M=chunk3R7QHNI5_js.j(h,"w","name")??"";l.push({type:"moveToRangeStart",id:F,name:M});break}case "moveToRangeEnd":{let F=parseInt(chunk3R7QHNI5_js.j(h,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:F});break}case "commentRangeStart":{let F=parseInt(chunk3R7QHNI5_js.j(h,"w","id")??"0",10);l.push({type:"commentRangeStart",id:F});break}case "commentRangeEnd":{let F=parseInt(chunk3R7QHNI5_js.j(h,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:F});break}case "oMath":case "oMathPara":{let F=P==="oMathPara",M=chunk3R7QHNI5_js.b(h),m=ct(h),C={type:"mathEquation",display:F?"block":"inline",ommlXml:M,plainText:m||void 0};l.push(C);break}}}return l}function Bn(e){let t="";for(let n of e.content)if(n.type==="run")for(let r of n.content)r.type==="text"?t+=r.text:r.type==="tab"?t+=" ":r.type==="break"&&(r.breakType==="page"?t+="\f":t+=`
4
+ `);else if(n.type==="hyperlink"){for(let r of n.children)if(r.type==="run")for(let o of r.content)o.type==="text"&&(t+=o.text);}else if(n.type==="simpleField"){for(let r of n.content)if(r.type==="run")for(let o of r.content)o.type==="text"&&(t+=o.text);}else if(n.type==="complexField")for(let r of n.fieldResult)for(let o of r.content)o.type==="text"&&(t+=o.text);return t}function ht(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 r=chunk3R7QHNI5_js.j(e,"w","author")??"",o=chunk3R7QHNI5_js.j(e,"w","date")??void 0,a={id:n,author:r};return o&&(a.date=o),a}function Z(e,t,n,r,o=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&&dt(e)&&(l.renderedPageBreakBefore=true);let d=chunk3R7QHNI5_js.e(e,"w","pPr");if(d){l.formatting=pe(d,n),l.propertyChanges=mt(d,n,t,l.formatting);let y=chunk3R7QHNI5_js.e(d,"w","rPr");if(y){let h=chunk3R7QHNI5_js.e(y,"w","ins");if(h){let F=ht(h);F&&(l.pPrIns=F);}let P=chunk3R7QHNI5_js.e(y,"w","del");if(P){let F=ht(P);F&&(l.pPrDel=F);}}let x=chunk3R7QHNI5_js.e(d,"w","sectPr");x&&(l.sectionProperties=tt(x));}let p=U(e,t,n,r,o,a);l.content=Fe(p);let w=l.formatting?.numPr,T=false;if(!w&&l.formatting?.styleId&&t){let y=t.get(l.formatting.styleId);y?.pPr?.numPr&&(w=y.pPr.numPr,T=true,l.formatting||(l.formatting={}),l.formatting.numPr=w,l.formatting.numPrFromStyle=w);}if(w&&r){let y=chunkH57LNDBH_js.d(w,r);if(y){l.listRendering=y;let x=T?vn(l.formatting?.styleId,t):{left:false,firstLine:false},h=r.getLevel(y.numId,y.level);if(h?.pPr){l.formatting||(l.formatting={});let P=d?chunk3R7QHNI5_js.e(d,"w","ind"):null,F=P!=null&&(chunk3R7QHNI5_js.j(P,"w","left")!==null||chunk3R7QHNI5_js.j(P,"w","start")!==null),M=C=>{let E=P?chunk3R7QHNI5_js.j(P,"w",C):null;if(E===null)return false;let b=parseInt(E,10);return Number.isNaN(b)||b!==0},m=P!=null&&(M("firstLine")||M("hanging"));!F&&!x.left&&h.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=h.pPr.indentLeft),!m&&!x.firstLine&&(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 vn(e,t){let n={left:false,firstLine:false};if(!e||!t)return n;let r=new Set,o=e;for(;o&&!r.has(o);){r.add(o);let a=t.get(o);if(!a)break;let u=a.pPr;if(u&&(n.left||(n.left=u.indentLeft!==void 0),n.firstLine||(n.firstLine=u.indentFirstLine!==void 0||u.hangingIndent!==void 0)),n.left&&n.firstLine)break;o=a.basedOn;}return n}function wt(e){if(!e)return;let t={},n=D(chunk3R7QHNI5_js.e(e,"w","tblW"));n&&(t.width=n);let r=chunk3R7QHNI5_js.e(e,"w","jc");if(r){let x=chunk3R7QHNI5_js.j(r,"w","val");(x==="left"||x==="center"||x==="right"||x==="start")&&(t.justification=x==="start"?"left":x);}let o=D(chunk3R7QHNI5_js.e(e,"w","tblCellSpacing"));o&&(t.cellSpacing=o);let a=D(chunk3R7QHNI5_js.e(e,"w","tblInd"));a&&(t.indent=a);let u=ne(chunk3R7QHNI5_js.e(e,"w","tblBorders"));u&&(t.borders=u);let l=re(chunk3R7QHNI5_js.e(e,"w","tblCellMar"));l&&(t.cellMargins=l);let f=chunk3R7QHNI5_js.e(e,"w","tblLayout");if(f){let x=chunk3R7QHNI5_js.j(f,"w","type");(x==="fixed"||x==="autofit")&&(t.layout=x);}let c=chunk3R7QHNI5_js.e(e,"w","tblStyle");if(c){let x=chunk3R7QHNI5_js.j(c,"w","val");x&&(t.styleId=x);}let d=be(chunk3R7QHNI5_js.e(e,"w","tblLook"));d&&(t.look=d);let p=oe(chunk3R7QHNI5_js.e(e,"w","shd"));p&&(t.shading=p);let w=chunk3R7QHNI5_js.e(e,"w","tblOverlap");if(w){let x=chunk3R7QHNI5_js.j(w,"w","val");(x==="never"||x==="overlap")&&(t.overlap=x);}let T=Te(chunk3R7QHNI5_js.e(e,"w","tblpPr"));if(T&&(t.floating=T),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function An(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tblPrChange").map(r=>{let o=chunk3R7QHNI5_js.e(r,"w","tblPr");return {type:"tablePropertyChange",info:te(r),previousFormatting:wt(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function Nn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","trPrChange").map(r=>{let o=chunk3R7QHNI5_js.e(r,"w","trPr");return {type:"tableRowPropertyChange",info:te(r),previousFormatting:yt(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function In(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tcPrChange").map(r=>{let o=chunk3R7QHNI5_js.e(r,"w","tcPr");return {type:"tableCellPropertyChange",info:te(r),previousFormatting:Tt(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function Hn(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","ins");if(t)return {type:"tableRowInsertion",info:j(t)};let n=chunk3R7QHNI5_js.e(e,"w","del");if(n)return {type:"tableRowDeletion",info:j(n)}}function Ln(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:j(t)};let n=chunk3R7QHNI5_js.e(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:j(n)};let r=chunk3R7QHNI5_js.e(e,"w","cellMerge");if(r){let o=chunk3R7QHNI5_js.j(r,"w","vMerge"),a=chunk3R7QHNI5_js.j(r,"w","vMergeOrig"),u=l=>l==="rest"||l==="cont";return {type:"tableCellMerge",info:j(r),...u(o)?{vMerge:o}:{},...u(a)?{vMergeOrig:a}:{}}}}function yt(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=bt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(l&&(t.conditionalFormat=l),Object.keys(t).length!==0)return t}function bt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=chunk3R7QHNI5_js.j(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let o=chunk3R7QHNI5_js.j(e,"w","firstColumn");(o==="1"||o==="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 d=chunk3R7QHNI5_js.j(e,"w","firstRowFirstColumn");(d==="1"||d==="true")&&(t.nwCell=true);let p=chunk3R7QHNI5_js.j(e,"w","firstRowLastColumn");(p==="1"||p==="true")&&(t.neCell=true);let w=chunk3R7QHNI5_js.j(e,"w","lastRowFirstColumn");(w==="1"||w==="true")&&(t.swCell=true);let T=chunk3R7QHNI5_js.j(e,"w","lastRowLastColumn");(T==="1"||T==="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 Tt(e){if(!e)return;let t={},n=D(chunk3R7QHNI5_js.e(e,"w","tcW"));n&&(t.width=n);let r=ne(chunk3R7QHNI5_js.e(e,"w","tcBorders"));r&&(t.borders=r);let o=re(chunk3R7QHNI5_js.e(e,"w","tcMar"));o&&(t.margins=o);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 T=bt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(T&&(t.conditionalFormat=T),Object.keys(t).length!==0)return t}function Xn(e,t,n,r,o,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let d=c.name.split(":").pop();if(d==="p"){let p=Z(c,t,n,r,o,a,u);l.push(p);}else if(d==="tbl"){let p=xe(c,t,n,r,o,a,u);l.push(p);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function Dn(e,t,n,r,o,a,u){let l={type:"tableCell",content:[]},f=chunk3R7QHNI5_js.e(e,"w","tcPr"),c=Tt(f);return c&&(l.formatting=c),l.propertyChanges=In(f,c),l.structuralChange=Ln(f),l.content=Xn(e,t,n,r,o,a,u),l}function On(e,t,n,r,o,a,u){let l={type:"tableRow",cells:[]},f=chunk3R7QHNI5_js.e(e,"w","trPr"),c=yt(f);c&&(l.formatting=c),l.propertyChanges=Nn(f,c),l.structuralChange=Hn(f);let d=chunk3R7QHNI5_js.f(e,"w","tc");for(let p of d){let w=Dn(p,t,n,r,o,a,u);l.cells.push(w);}return l}function Wn(e){if(!e)return;let t=[],n=chunk3R7QHNI5_js.f(e,"w","gridCol");for(let r of n){let o=chunk3R7QHNI5_js.l(r,"w","w")??0;t.push(o);}if(!(t.length>0&&t.every(r=>r<=0)))return t.length>0?t:void 0}function Vn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function jn(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Vn(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let r=n.cells[0];(r.formatting?.gridSpan??1)>=t||r.formatting?.vMerge||r.formatting?.gridSpan==null&&(r.formatting={...r.formatting??{},gridSpan:t});}}function xe(e,t,n,r,o,a,u){let l={type:"table",rows:[]},f=chunk3R7QHNI5_js.e(e,"w","tblPr"),c=wt(f);c&&(l.formatting=c),l.propertyChanges=An(f,c);let d=Wn(chunk3R7QHNI5_js.e(e,"w","tblGrid"));d&&(l.columnWidths=d);let p=chunk3R7QHNI5_js.f(e,"w","tr");for(let w of p){let T=On(w,t,n,r,o,a,u);l.rows.push(T);}return jn(l),l}exports.A=yr;exports.B=tt;exports.C=Fr;exports.D=kr;exports.E=K;exports.F=lt;exports.G=Ur;exports.H=zr;exports.I=_r;exports.J=qr;exports.K=Gr;exports.L=$r;exports.M=Yr;exports.N=Bn;exports.O=Z;exports.a=zn;exports.b=Y;exports.c=We;exports.d=V;exports.e=ne;exports.f=re;exports.g=oe;exports.h=be;exports.i=Te;exports.j=Mt;exports.k=Rt;exports.l=Et;exports.m=Pt;exports.n=Bt;exports.o=wt;exports.p=It;exports.q=G;exports.r=sr;exports.s=ur;exports.t=pr;exports.u=mr;exports.v=Qe;exports.w=Je;exports.x=gr;exports.y=hr;exports.z=wr;