@eigenpal/docx-editor-core 1.5.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) 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-3HLRRK6N.mjs +2 -0
  6. package/dist/{chunk-COV4LHQ7.js → chunk-4272FQ2E.js} +1 -1
  7. package/dist/chunk-47SKD7QB.mjs +4 -0
  8. package/dist/chunk-4DCTKHS5.js +1 -0
  9. package/dist/{chunk-3SJQRYO7.js → chunk-4HNEXEGS.js} +1 -1
  10. package/dist/chunk-4U2S3WV2.js +1 -0
  11. package/dist/{chunk-3HENAL6V.mjs → chunk-5EP47PMQ.mjs} +1 -1
  12. package/dist/{chunk-T4O4PFJD.mjs → chunk-6ENZQGYR.mjs} +1 -1
  13. package/dist/chunk-7EU6E64E.mjs +1 -0
  14. package/dist/chunk-A7C3DGQA.mjs +1 -0
  15. package/dist/chunk-B6FA4MJ5.mjs +1 -0
  16. package/dist/chunk-BJSG6TEG.js +1 -0
  17. package/dist/chunk-BMP2OSXE.js +1 -0
  18. package/dist/{chunk-NPFFCPZ6.js → chunk-DEQFU56O.js} +1 -1
  19. package/dist/chunk-DFDL337G.js +4 -0
  20. package/dist/chunk-DKUHG27E.js +1 -0
  21. package/dist/{chunk-WWVIVYX6.mjs → chunk-DU5TWD2W.mjs} +1 -1
  22. package/dist/chunk-DUVSDFRG.js +2 -0
  23. package/dist/{chunk-TV6JLFY5.js → chunk-DUXHJ6QP.js} +1 -1
  24. package/dist/{chunk-TE2AF7FM.js → chunk-FETIBXTH.js} +1 -1
  25. package/dist/chunk-GLPOVLZD.mjs +1 -0
  26. package/dist/{chunk-M7KTKPGO.mjs → chunk-HEJJXAXN.mjs} +1 -1
  27. package/dist/chunk-HQ76VZAN.mjs +1 -0
  28. package/dist/{chunk-WYFK4QOF.mjs → chunk-ICNIAAH7.mjs} +1 -1
  29. package/dist/{chunk-5WINQXA3.js → chunk-ILPNMG7Q.js} +1 -1
  30. package/dist/{chunk-TDYWEVAE.js → chunk-K7NSOCSY.js} +1 -1
  31. package/dist/{chunk-6KM4VW4L.js → chunk-KEDY4GFG.js} +3 -3
  32. package/dist/chunk-KNY7SXPJ.mjs +1 -0
  33. package/dist/{chunk-SKBHY5MK.mjs → chunk-KPWWI5UW.mjs} +1 -1
  34. package/dist/chunk-LVUL7O27.js +1 -0
  35. package/dist/{chunk-O2643IUW.js → chunk-LW5OFHSW.js} +2 -2
  36. package/dist/chunk-MWOHCSZE.js +1 -0
  37. package/dist/chunk-NKIDBERV.js +1 -0
  38. package/dist/chunk-NN2EJIO7.mjs +1 -0
  39. package/dist/{chunk-QUM4DFRE.mjs → chunk-O4RCQNUW.mjs} +1 -1
  40. package/dist/chunk-O5L4BZCZ.mjs +1 -0
  41. package/dist/chunk-OSTMAXZZ.mjs +1 -0
  42. package/dist/{chunk-PYDX4MOT.mjs → chunk-OWGY46IW.mjs} +1 -1
  43. package/dist/chunk-PGWY6UFK.js +1 -0
  44. package/dist/chunk-PJEB3ZWG.mjs +3 -0
  45. package/dist/{chunk-GB7RICH6.js → chunk-PM4KDJJ2.js} +1 -1
  46. package/dist/chunk-Q2VALXEU.js +3 -0
  47. package/dist/chunk-QCPISGPW.mjs +1 -0
  48. package/dist/{chunk-CBKJOPOW.mjs → chunk-QRBFMR7Z.mjs} +1 -1
  49. package/dist/chunk-RRJKF2XI.mjs +1 -0
  50. package/dist/chunk-SHZOAUHB.mjs +1 -0
  51. package/dist/chunk-TT3ILFZC.js +1 -0
  52. package/dist/chunk-TXAB4I4M.mjs +2 -0
  53. package/dist/chunk-UC7JW66O.mjs +1 -0
  54. package/dist/chunk-VMBCUUZM.mjs +1 -0
  55. package/dist/chunk-WTIN6QHX.js +1 -0
  56. package/dist/{chunk-P7HWOJC5.js → chunk-WVY2UXAK.js} +1 -1
  57. package/dist/chunk-XCTYXYEU.js +1 -0
  58. package/dist/{chunk-WXSGCEBZ.js → chunk-XCXQWCV2.js} +1 -1
  59. package/dist/{chunk-M3UL6EUU.mjs → chunk-YSBX4LFA.mjs} +2 -2
  60. package/dist/chunk-YUHOVME2.js +1 -0
  61. package/dist/{content-BlWiORm-.d.mts → content-BEFz1zcs.d.mts} +2 -2
  62. package/dist/{content-eG_Rtl0l.d.ts → content-DNcMlHU0.d.ts} +2 -2
  63. package/dist/{contentControlValues-CO7pUqOf.d.ts → contentControlValues-2pV4M4kG.d.ts} +1 -1
  64. package/dist/{contentControlValues-DfYN9BZ8.d.mts → contentControlValues-CKWIIkkr.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-C6VvBUVB.d.ts → fontLoader-CH12AtFF.d.ts} +1 -1
  92. package/dist/{fontLoader-3MFD_Hj2.d.mts → fontLoader-D3X2Qgb_.d.mts} +1 -1
  93. package/dist/{headerFooterLayout-bdHWlU6g.d.ts → headerFooterLayout-BdGTU0IA.d.ts} +31 -16
  94. package/dist/{headerFooterLayout-DJb-dV7X.d.mts → headerFooterLayout-D5-u-IsD.d.mts} +31 -16
  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 +22 -22
  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-RfTS-NSv.d.mts → nodes-5w_QaI3g.d.mts} +13 -1
  141. package/dist/{nodes-BJef4KFW.d.ts → nodes-qQdZtu3Z.d.ts} +13 -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 +2 -2
  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-BJSNK-Wl.d.ts} +1 -1
  189. package/dist/{sectionPropertiesSerializer-C8XCmzE4.d.mts → sectionPropertiesSerializer-DI3OIQ1j.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-7xBsshP0.d.mts} +1 -1
  215. package/dist/{variableDetector-o4Rb2Csy.d.ts → variableDetector-Bv5Tm0D-.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-C45EFOVP.js +0 -1
  228. package/dist/chunk-CUY2THAO.mjs +0 -1
  229. package/dist/chunk-DKKTY56Q.js +0 -1
  230. package/dist/chunk-DZ3FN3JI.js +0 -2
  231. package/dist/chunk-ENIWJBS7.mjs +0 -2
  232. package/dist/chunk-EZNVVB63.mjs +0 -1
  233. package/dist/chunk-GKAXYZCE.mjs +0 -1
  234. package/dist/chunk-IGYHDSM7.mjs +0 -1
  235. package/dist/chunk-L6ZRNW7Y.mjs +0 -1
  236. package/dist/chunk-LJ2TB6CY.js +0 -1
  237. package/dist/chunk-MOKKS75W.mjs +0 -3
  238. package/dist/chunk-ND33YQGU.js +0 -1
  239. package/dist/chunk-QXSDGNJ4.js +0 -1
  240. package/dist/chunk-RT52EYG3.mjs +0 -4
  241. package/dist/chunk-SHYNWAW6.mjs +0 -1
  242. package/dist/chunk-SNTAAXXA.mjs +0 -1
  243. package/dist/chunk-TAQTZAVZ.js +0 -1
  244. package/dist/chunk-UKMKGIME.js +0 -1
  245. package/dist/chunk-UXPY65AC.js +0 -1
  246. package/dist/chunk-VOCHZNOF.mjs +0 -1
  247. package/dist/chunk-VW22RZ6C.mjs +0 -1
  248. package/dist/chunk-WQRWRWSK.js +0 -1
  249. package/dist/chunk-YHXVNJK5.mjs +0 -1
  250. package/dist/chunk-ZETEPB7I.js +0 -1
  251. package/dist/executor-DZAMMQ35.js +0 -1
  252. package/dist/executor-ZCJRLT3Z.mjs +0 -1
@@ -1,4 +0,0 @@
1
- 'use strict';var chunkO2643IUW_js=require('./chunk-O2643IUW.js'),chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js'),chunkH57LNDBH_js=require('./chunk-H57LNDBH.js'),chunk3R7QHNI5_js=require('./chunk-3R7QHNI5.js');var Ie={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},J={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ge={name:"Office Theme",colorScheme:Ie,fontScheme:J},ht=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function wt(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 yt(e){let t={...Ie};if(!e)return t;for(let n of ht){let o=chunk3R7QHNI5_js.e(e,"a",n);if(o){let r=chunk3R7QHNI5_js.i(o);if(r.length>0){let a=wt(r[0]);a&&(t[n]=a);}}}return t}function Ae(e){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","latin");n&&(t.latin=chunk3R7QHNI5_js.j(n,"a","typeface")??chunk3R7QHNI5_js.j(n,null,"typeface")??"");let o=chunk3R7QHNI5_js.e(e,"a","ea");o&&(t.ea=chunk3R7QHNI5_js.j(o,"a","typeface")??chunk3R7QHNI5_js.j(o,null,"typeface")??"");let r=chunk3R7QHNI5_js.e(e,"a","cs");r&&(t.cs=chunk3R7QHNI5_js.j(r,"a","typeface")??chunk3R7QHNI5_js.j(r,null,"typeface")??"");let a=chunk3R7QHNI5_js.f(e,"a","font");for(let u of a){let l=chunk3R7QHNI5_js.j(u,"a","script")??chunk3R7QHNI5_js.j(u,null,"script"),f=chunk3R7QHNI5_js.j(u,"a","typeface")??chunk3R7QHNI5_js.j(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function bt(e){let t={...J};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","majorFont");n&&(t.majorFont=Ae(n));let o=chunk3R7QHNI5_js.e(e,"a","minorFont");return o&&(t.minorFont=Ae(o)),t}function Xn(e){if(!e)return {...ge};try{let t=chunk3R7QHNI5_js.c(e);if(!t)return {...ge};let n=chunk3R7QHNI5_js.j(t,"a","name")??chunk3R7QHNI5_js.j(t,null,"name")??"Office Theme",o=chunk3R7QHNI5_js.e(t,"a","themeElements"),r=chunk3R7QHNI5_js.e(o,"a","clrScheme"),a=yt(r),u=chunk3R7QHNI5_js.e(o,"a","fontScheme"),l=bt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...ge}}}function Tt(e,t="latin"){if(!e?.fontScheme?.majorFont)return J.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function He(e,t="latin"){if(!e?.fontScheme?.minorFont)return J.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function $(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),o=t.toLowerCase().includes("minor"),r="latin",a=t.toLowerCase();return a.includes("eastasia")?r="ea":(a.includes("bidi")||a.includes("cs"))&&(r="cs"),n?Tt(e,r):o?He(e,r):He(e,"latin")}function Le(e){if(!e)return;let t=chunk3R7QHNI5_js.l(e,"w","w")??0,n=chunk3R7QHNI5_js.j(e,"w","type")??"dxa",o="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(o=n),{value:t,type:o}}function O(e){return Le(e)}function V(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),r=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0}}function ee(e){return V(e)}function W(e){if(!e)return;let o={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunk3R7QHNI5_js.j(e,"w","color"),l=chunk3R7QHNI5_js.j(e,"w","themeColor"),f=chunk3R7QHNI5_js.j(e,"w","themeTint"),c=chunk3R7QHNI5_js.j(e,"w","themeShade");(u||l||f||c)&&(o.color={rgb:u??void 0,themeColor:l,themeTint:f??void 0,themeShade:c??void 0});let p=chunk3R7QHNI5_js.j(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let d=chunk3R7QHNI5_js.j(e,"w","frame");return (d==="1"||d==="true")&&(o.frame=true),o}function te(e){if(!e)return;let t={},n=W(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let o=W(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=W(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));r&&(t.left=r);let a=W(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));a&&(t.right=a);let u=W(chunk3R7QHNI5_js.e(e,"w","insideH"));u&&(t.insideH=u);let l=W(chunk3R7QHNI5_js.e(e,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function ne(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let o=O(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=O(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));r&&(t.left=r);let a=O(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function oe(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","themeFill");if(o){t.fill={themeColor:o};let u=chunk3R7QHNI5_js.j(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=chunk3R7QHNI5_js.j(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let r=chunk3R7QHNI5_js.j(e,"w","color");r&&r!=="auto"&&(t.color={rgb:r});let a=chunk3R7QHNI5_js.j(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function he(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunk3R7QHNI5_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunk3R7QHNI5_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunk3R7QHNI5_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunk3R7QHNI5_js.j(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=chunk3R7QHNI5_js.j(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=chunk3R7QHNI5_js.j(e,"w","val");if(f){let c=parseInt(f,16);isNaN(c)||(c&32&&(t.firstRow=true),c&64&&(t.lastRow=true),c&128&&(t.firstColumn=true),c&256&&(t.lastColumn=true),c&512&&(t.noHBand=true),c&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function we(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let o=chunk3R7QHNI5_js.j(e,"w","vertAnchor");(o==="margin"||o==="page"||o==="text")&&(t.vertAnchor=o);let r=chunk3R7QHNI5_js.l(e,"w","tblpX");r!==void 0&&(t.tblpX=r);let a=chunk3R7QHNI5_js.j(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=chunk3R7QHNI5_js.l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l=chunk3R7QHNI5_js.j(e,"w","tblpYSpec");l&&(t.tblpYSpec=l);let f=chunk3R7QHNI5_js.l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=chunk3R7QHNI5_js.l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let p=chunk3R7QHNI5_js.l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let d=chunk3R7QHNI5_js.l(e,"w","rightFromText");if(d!==void 0&&(t.rightFromText=d),Object.keys(t).length!==0)return t}function Ct(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 Ft(e){return e.rows.length}function xt(e){return e.formatting?.vMerge==="continue"}function kt(e){return e.formatting?.vMerge==="restart"}function St(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var Mt={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 Rt(e){if(!e||!e.elements)return "richText";for(let t of e.elements){if(t.type!=="element"||!t.name)continue;let n=chunk3R7QHNI5_js.d(t.name),o=Mt[n];if(o)return o}return "richText"}function Et(e){let t=[];for(let n of e.elements??[])n.type==="element"&&chunk3R7QHNI5_js.d(n.name||"")==="listItem"&&t.push({displayText:chunk3R7QHNI5_js.j(n,"w","displayText")||"",value:chunk3R7QHNI5_js.j(n,"w","value")||""});return t}function re(e,t){let n={sdtType:Rt(e)};if(e){n.rawPropertiesXml=chunk3R7QHNI5_js.b(e);for(let o of e.elements??[]){if(o.type!=="element"||!o.name)continue;switch(chunk3R7QHNI5_js.d(o.name)){case "id":{let a=chunk3R7QHNI5_js.j(o,"w","val");if(a!=null){let u=parseInt(a,10);Number.isNaN(u)||(n.id=u);}break}case "alias":n.alias=chunk3R7QHNI5_js.j(o,"w","val")??void 0;break;case "tag":n.tag=chunk3R7QHNI5_js.j(o,"w","val")??void 0;break;case "lock":n.lock=chunk3R7QHNI5_js.j(o,"w","val")??"unlocked";break;case "placeholder":{let a=chunk3R7QHNI5_js.e(o,"w","docPart");a&&(n.placeholder=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "showingPlcHdr":{let a=chunk3R7QHNI5_js.j(o,"w","val");n.showingPlaceholder=a==null||!/^(0|false|off)$/i.test(a);break}case "date":{let a=chunk3R7QHNI5_js.e(o,"w","dateFormat");a&&(n.dateFormat=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "dropDownList":case "comboBox":n.listItems=Et(o);break;case "checkbox":{let a=chunk3R7QHNI5_js.e(o,"w14","checked")??chunk3R7QHNI5_js.e(o,"w","checked");n.checked=a?chunk3R7QHNI5_js.j(a,"w14","val")==="1"||chunk3R7QHNI5_js.j(a,"w","val")==="1":false;break}case "dataBinding":{let a={},u=chunk3R7QHNI5_js.j(o,"w","xpath"),l=chunk3R7QHNI5_js.j(o,"w","storeItemID"),f=chunk3R7QHNI5_js.j(o,"w","prefixMappings");u!=null&&(a.xpath=u),l!=null&&(a.storeItemID=l),f!=null&&(a.prefixMappings=f),n.dataBinding=a;break}}}}return t&&(n.rawEndPropertiesXml=chunk3R7QHNI5_js.b(t)),n}var Xe={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 Pt(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Xe[t]?Xe[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Bt(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=Pt(t.marker||""));}function vt(e,t,n,o,r,a,u){if(e.content.length===0)return;let l=chunk3R7QHNI5_js.i(t),f=0;function c(p){if(!chunkO2643IUW_js.h(p))return;let d=chunkO2643IUW_js.j(p);if(!d)return;let y=chunk3R7QHNI5_js.n(p,"wps","wsp");if(y){let w=chunkO2643IUW_js.k(y);w&&(d.content=chunkO2643IUW_js.g(w,Y,null,n,o,r,a??void 0,u??void 0));}let F={type:"shape",shapeType:"rect",size:d.size,position:d.position,wrap:d.wrap,fill:d.fill,outline:d.outline,textBody:{content:d.content,margins:d.margins}};d.id&&(F.id=d.id);let h={type:"shape",shape:F},C=f;if(C>=e.content.length){C=-1;for(let w=e.content.length-1;w>=0;w--)if(e.content[w].type==="run"){C=w;break}}if(C>=0){let w=e.content[C];w.type==="run"&&w.content.push(h);}}for(let p of l){if(chunk3R7QHNI5_js.d(p.name??"")!=="r")continue;let d=chunk3R7QHNI5_js.i(p);for(let y of d){let F=chunk3R7QHNI5_js.d(y.name??"");if(F==="drawing")c(y);else if(F==="AlternateContent"){let h=chunk3R7QHNI5_js.i(y),w=h.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Choice")??h.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Fallback");if(w)for(let P of chunk3R7QHNI5_js.i(w))chunk3R7QHNI5_js.d(P.name??"")==="drawing"&&c(P);}}f++;}}function q(e,t,n,o,r,a,u){let l=[],f=chunk3R7QHNI5_js.i(e);for(let c of f){let p=c.name??"";if(p==="w:p"||p.endsWith(":p")){let d=Y(c,t,n,o,r,a,u);vt(d,c,t,n,o,r,a),Bt(d),l.push(d);}else if(p==="w:tbl"||p.endsWith(":tbl")){let d=ye(c,t,n,o,r,a,u);l.push(d);}else (p==="w:sdt"||p.endsWith(":sdt"))&&l.push(Nt(c,t,n,o,r,a,u));}return l}function Nt(e,t,n,o,r,a,u){let l=chunk3R7QHNI5_js.e(e,"w","sdtPr"),f=chunk3R7QHNI5_js.e(e,"w","sdtEndPr"),c=chunk3R7QHNI5_js.e(e,"w","sdtContent"),p=re(l,f),d=c?q(c,t,n,o,r,a,u):[];return {type:"blockSdt",properties:p,content:d}}function Oe(e){let t={};if(!e)return t;for(let n of e.split(";")){let o=n.indexOf(":");if(o<0)continue;let r=n.slice(0,o).trim().toLowerCase(),a=n.slice(o+1).trim();r&&(t[r]=a);}return t}function At(e){if(!e)return "#C0C0C0";let t=e.trim();return t.startsWith("#")?t:/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:t}function De(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 We=914400/96;function Ht(e,t,n){if(!e||!t)return {};let o=t.get(e);if(!o?.target)return {};let r=o.target,a=r.split("/").pop()??r,u=[r,r.replace(/^\/+/,""),`word/${r.replace(/^\/+/,"")}`,`word/media/${a}`,`media/${a}`];if(n)for(let l of u){let f=l.toLowerCase();for(let[c,p]of n.entries())if(c.toLowerCase()===f)return {dataUrl:p.dataUrl??p.base64,mediaPath:p.path,contentType:p.mimeType}}return {}}function It(e,t){return !!(t.includes("watermark")||(chunk3R7QHNI5_js.j(e,null,"type")??"").includes("_t136"))}function Ve(e,t=null,n=null){if(!e)return;let o=chunk3R7QHNI5_js.o(e,"v","shape");for(let r of o){let a=(chunk3R7QHNI5_js.j(r,null,"id")??"").toLowerCase(),u=chunk3R7QHNI5_js.i(r),l=u.find(y=>y.name==="v:textpath"||y.name?.endsWith(":textpath")),f=u.find(y=>y.name==="v:imagedata"||y.name?.endsWith(":imagedata"));if(!It(r,a)&&!l&&!f)continue;let c=Oe(chunk3R7QHNI5_js.j(r,null,"style")),p=parseFloat(c.rotation??"0")||0,d=Math.abs(p)>5;if(l){let y=chunk3R7QHNI5_js.j(l,null,"string")??"",C=(Oe(chunk3R7QHNI5_js.j(l,null,"style"))["font-family"]??"Calibri").replace(/["']/g,"").replace(/^&quot;|&quot;$/g,"").trim()||"Calibri",w=u.find(M=>M.name==="v:fill"||M.name?.endsWith(":fill")),P=w?chunk3R7QHNI5_js.j(w,null,"opacity"):null,x=P!=null&&parseFloat(P)<1;return {kind:"text",text:y,font:C,color:At(chunk3R7QHNI5_js.j(r,null,"fillcolor")),semitransparent:x,layout:d?"diagonal":"horizontal",fontSize:void 0}}if(f){let y=chunk3R7QHNI5_js.j(f,"r","id")??chunk3R7QHNI5_js.j(f,"r","embed")??chunk3R7QHNI5_js.j(f,null,"id")??"",{dataUrl:F,mediaPath:h,contentType:C}=Ht(y,t,n),w=chunk3R7QHNI5_js.j(f,null,"gain"),P=chunk3R7QHNI5_js.j(f,null,"blacklevel"),x=w!=null||P!=null,M=De(c.width),m=De(c.height);return {kind:"picture",relId:y||void 0,mediaPath:h,contentType:C,dataUrl:F,scale:1,washout:x,widthEmu:M!=null?Math.round(M*We):void 0,heightEmu:m!=null?Math.round(m*We):void 0}}}}function je(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function Ue(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:je(t),rId:n}}function ze(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:je(t),rId:n}}function to(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=chunk3R7QHNI5_js.a(e);if(!f)return l;let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:hdr"||d.name?.endsWith(":hdr")));if(!c)return l;l.content=q(c,n,o,r,a,u,{inHeaderFooter:true});let p=Ve(c,a,u);return p&&(l.watermark=p),l}function no(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=chunk3R7QHNI5_js.a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:ftr"||p.name?.endsWith(":ftr")));return c&&(l.content=q(c,n,o,r,a,u,{inHeaderFooter:true})),l}function _e(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function qe(e,t,n,o,r,a){let u=q(e,t,n,o,r,a),l=false;for(let f of chunk3R7QHNI5_js.i(e)){let c=f.name??"";if(c==="w:bookmarkStart"||c.endsWith(":bookmarkStart")||c==="w:bookmarkEnd"||c.endsWith(":bookmarkEnd")||c==="w:customXml"||c.endsWith(":customXml")){l=true;break}}return {blocks:u,hasUnmodeled:l}}function Lt(e,t,n,o,r,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=_e(l),{blocks:c,hasUnmodeled:p}=qe(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c,...p?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function ao(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ie(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return ie(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:footnotes"||d.name?.endsWith(":footnotes")));if(!c)return ie(u,l);let p=chunk3R7QHNI5_js.f(c,"w","footnote");for(let d of p){let y=Lt(d,t,n,o,r,a);u.set(y.id,y),l.push(y);}return ie(u,l)}function ie(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Xt(e,t,n,o,r,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=_e(l),{blocks:c,hasUnmodeled:p}=qe(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c,...p?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function lo(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ae(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return ae(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:endnotes"||d.name?.endsWith(":endnotes")));if(!c)return ae(u,l);let p=chunk3R7QHNI5_js.f(c,"w","endnote");for(let d of p){let y=Xt(d,t,n,o,r,a);u.set(y.id,y),l.push(y);}return ae(u,l)}function ae(e,t){return {byId:e,endnotes:t,getEndnote(n){return e.get(n)},hasEndnote(n){return e.has(n)},getNormalEndnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Ge(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 Ot(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Dt(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function $e(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function Ye(e){let t={};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"w","pos");if(n){let u=chunk3R7QHNI5_js.j(n,"w","val");t.position=Ot(u);}let o=chunk3R7QHNI5_js.e(e,"w","numFmt");if(o){let u=chunk3R7QHNI5_js.j(o,"w","val");t.numFmt=Ge(u);}let r=chunk3R7QHNI5_js.e(e,"w","numStart");r&&(t.numStart=chunk3R7QHNI5_js.l(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=$e(u);}return t}function Ke(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=Dt(u);}let o=chunk3R7QHNI5_js.e(e,"w","numFmt");if(o){let u=chunk3R7QHNI5_js.j(o,"w","val");t.numFmt=Ge(u);}let r=chunk3R7QHNI5_js.e(e,"w","numStart");r&&(t.numStart=chunk3R7QHNI5_js.l(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=$e(u);}return t}function so(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
2
- `)}function uo(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
3
- `)}function fo(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function co(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Wt(e,t,n,o){if(!e&&!t)return;let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),Object.keys(r).length>0?r:void 0}function le(e){if(!e)return;let o={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunk3R7QHNI5_js.j(e,"w","color"),l=chunk3R7QHNI5_js.j(e,"w","themeColor"),f=chunk3R7QHNI5_js.j(e,"w","themeTint"),c=chunk3R7QHNI5_js.j(e,"w","themeShade"),p=Wt(u,l,f,c);p&&(o.color=p);let d=chunk3R7QHNI5_js.j(e,"w","shadow");(d==="1"||d==="true")&&(o.shadow=true);let y=chunk3R7QHNI5_js.j(e,"w","frame");return (y==="1"||y==="true")&&(o.frame=true),o}function Vt(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function jt(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 Ut(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function zt(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function Qe(e,t){let n={};if(!e)return n;let o=chunk3R7QHNI5_js.e(e,"w","pgSz");if(o){let m=chunk3R7QHNI5_js.l(o,"w","w");m!==void 0&&(n.pageWidth=m);let T=chunk3R7QHNI5_js.l(o,"w","h");T!==void 0&&(n.pageHeight=T);let E=chunk3R7QHNI5_js.j(o,"w","orient"),b=Vt(E);b&&(n.orientation=b);}let r=chunk3R7QHNI5_js.e(e,"w","pgMar");if(r){let m=chunk3R7QHNI5_js.l(r,"w","top");m!==void 0&&(n.marginTop=m);let T=chunk3R7QHNI5_js.l(r,"w","bottom");T!==void 0&&(n.marginBottom=T);let E=chunk3R7QHNI5_js.l(r,"w","left");E!==void 0&&(n.marginLeft=E);let b=chunk3R7QHNI5_js.l(r,"w","right");b!==void 0&&(n.marginRight=b);let k=chunk3R7QHNI5_js.l(r,"w","header");k!==void 0&&(n.headerDistance=k);let B=chunk3R7QHNI5_js.l(r,"w","footer");B!==void 0&&(n.footerDistance=B);let v=chunk3R7QHNI5_js.l(r,"w","gutter");v!==void 0&&(n.gutter=v);}let a=chunk3R7QHNI5_js.e(e,"w","cols");if(a){let m=chunk3R7QHNI5_js.l(a,"w","num");m!==void 0&&(n.columnCount=m);let T=chunk3R7QHNI5_js.l(a,"w","space");T!==void 0&&(n.columnSpace=T);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 v={},I=chunk3R7QHNI5_js.l(B,"w","w");I!==void 0&&(v.width=I);let H=chunk3R7QHNI5_js.l(B,"w","space");H!==void 0&&(v.space=H),n.columns.push(v);}n.columnCount===void 0&&(n.columnCount=k.length);}}let u=chunk3R7QHNI5_js.e(e,"w","type");if(u){let m=chunk3R7QHNI5_js.j(u,"w","val"),T=jt(m);T&&(n.sectionStart=T);}let l=chunk3R7QHNI5_js.e(e,"w","vAlign");if(l){let m=chunk3R7QHNI5_js.j(l,"w","val"),T=Ut(m);T&&(n.verticalAlign=T);}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=>Ue(m)));let p=chunk3R7QHNI5_js.f(e,"w","footerReference");p.length>0&&(n.footerReferences=p.map(m=>ze(m)));let d=chunk3R7QHNI5_js.e(e,"w","titlePg");d&&(n.titlePg=chunk3R7QHNI5_js.m(d));let y=chunk3R7QHNI5_js.e(e,"w","evenAndOddHeaders");y&&(n.evenAndOddHeaders=chunk3R7QHNI5_js.m(y));let F=chunk3R7QHNI5_js.e(e,"w","lnNumType");if(F){n.lineNumbers={};let m=chunk3R7QHNI5_js.l(F,"w","start");m!==void 0&&(n.lineNumbers.start=m);let T=chunk3R7QHNI5_js.l(F,"w","countBy");T!==void 0&&(n.lineNumbers.countBy=T);let E=chunk3R7QHNI5_js.l(F,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let b=chunk3R7QHNI5_js.j(F,"w","restart"),k=zt(b);k&&(n.lineNumbers.restart=k);}let h=chunk3R7QHNI5_js.e(e,"w","pgBorders");if(h){n.pageBorders={};let m=le(chunk3R7QHNI5_js.e(h,"w","top"));m&&(n.pageBorders.top=m);let T=le(chunk3R7QHNI5_js.e(h,"w","bottom"));T&&(n.pageBorders.bottom=T);let E=le(chunk3R7QHNI5_js.e(h,"w","left"));E&&(n.pageBorders.left=E);let b=le(chunk3R7QHNI5_js.e(h,"w","right"));b&&(n.pageBorders.right=b);let k=chunk3R7QHNI5_js.j(h,"w","display");(k==="allPages"||k==="firstPage"||k==="notFirstPage")&&(n.pageBorders.display=k);let B=chunk3R7QHNI5_js.j(h,"w","offsetFrom");(B==="page"||B==="text")&&(n.pageBorders.offsetFrom=B);let v=chunk3R7QHNI5_js.j(h,"w","zOrder");(v==="front"||v==="back")&&(n.pageBorders.zOrder=v);}let C=chunk3R7QHNI5_js.e(e,"w","background");if(C){n.background={};let m=chunk3R7QHNI5_js.j(C,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let T=chunk3R7QHNI5_js.j(C,"w","themeColor");T&&(n.background.themeColor=T);let E=chunk3R7QHNI5_js.j(C,"w","themeTint");E&&(n.background.themeTint=E);let b=chunk3R7QHNI5_js.j(C,"w","themeShade");b&&(n.background.themeShade=b);}let w=chunk3R7QHNI5_js.e(e,"w","footnotePr");if(w){let m=Ye(w);Object.keys(m).length>0&&(n.footnotePr=m);}let P=chunk3R7QHNI5_js.e(e,"w","endnotePr");if(P){let m=Ke(P);Object.keys(m).length>0&&(n.endnotePr=m);}let x=chunk3R7QHNI5_js.e(e,"w","docGrid");if(x){n.docGrid={};let m=chunk3R7QHNI5_js.j(x,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let T=chunk3R7QHNI5_js.l(x,"w","linePitch");T!==void 0&&(n.docGrid.linePitch=T);let E=chunk3R7QHNI5_js.l(x,"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 T=chunk3R7QHNI5_js.l(M,"w","other");T!==void 0&&(n.paperSrcOther=T);}return n}function wo(){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 Ze(e,t){if(!t||t.length===0)return e;let n=new Set((e??[]).map(r=>r.type)),o=t.filter(r=>!n.has(r.type));return o.length===0?e:[...e??[],...o]}function yo(e){if(e.length<2)return e;let t=[e[0]];for(let n=1;n<e.length;n++){let o=t[n-1].properties,r=e[n].properties,a=Ze(r.headerReferences,o.headerReferences),u=Ze(r.footerReferences,o.footerReferences),l=r.titlePg!==void 0?r.titlePg:o.titlePg;if(a===r.headerReferences&&u===r.footerReferences&&l===r.titlePg){t.push(e[n]);continue}t.push({...e[n],properties:{...r,headerReferences:a,footerReferences:u,titlePg:l}});}return t}function _t(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||!qt(e.underline,t.underline)||!se(e.color,t.color)||!Gt(e.shading,t.shading)||!$t(e.fontFamily,t.fontFamily))}function qt(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:se(e.color,t.color)}function se(e,t){return !e&&!t?true:!e||!t?false:e.rgb===t.rgb&&e.auto===t.auto&&e.themeColor===t.themeColor&&e.themeTint===t.themeTint&&e.themeShade===t.themeShade}function Gt(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!se(e.color,t.color)||!se(e.fill,t.fill))}function $t(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 Yt(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function Je(e){return e.content.length===0?true:e.content.every(Yt)}function Kt(e,t){let n=[];for(let o of e)n.push(o);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let o=n[n.length-1],r=t[0];n[n.length-1]={type:"text",text:o.text+r.text,preserveSpace:o.preserveSpace||r.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let o of t)n.push(o);return n}function Zt(e){if(e.length<=1)return e;let t=[],n=null;for(let o of e)if(o.content.length!==0){if(n===null){n={...o,content:[...o.content]};continue}Je(n)&&Je(o)&&_t(n.formatting,o.formatting)?n={type:"run",formatting:n.formatting,content:Kt(n.content,o.content)}:(t.push(n),n={...o,content:[...o.content]});}return n!==null&&t.push(n),t}function be(e){if(e.length<=1)return e;let t=[],n=[];function o(){if(n.length>0){let r=Zt(n);t.push(...r),n.length=0;}}for(let r of e)if(r.type==="run")n.push(r);else if(o(),r.type==="hyperlink"){let a={...r,children:be(r.children)};t.push(a);}else t.push(r);return o(),t}function et(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function Qt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunk3R7QHNI5_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunk3R7QHNI5_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunk3R7QHNI5_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function fe(e,t,n){if(!e)return;let o={},r=chunk3R7QHNI5_js.e(e,"w","b");r&&(o.bold=chunk3R7QHNI5_js.m(r));let a=chunk3R7QHNI5_js.e(e,"w","bCs");a&&(o.boldCs=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","i");u&&(o.italic=chunk3R7QHNI5_js.m(u));let l=chunk3R7QHNI5_js.e(e,"w","iCs");l&&(o.italicCs=chunk3R7QHNI5_js.m(l));let f=chunk3R7QHNI5_js.e(e,"w","u");if(f){let S=chunk3R7QHNI5_js.j(f,"w","val");if(S){o.underline={style:S};let U=chunk3R7QHNI5_js.j(f,"w","color"),z=chunk3R7QHNI5_js.j(f,"w","themeColor");(U||z)&&(o.underline.color=et(U,z,chunk3R7QHNI5_js.j(f,"w","themeTint"),chunk3R7QHNI5_js.j(f,"w","themeShade")));}}let c=chunk3R7QHNI5_js.e(e,"w","strike");c&&(o.strike=chunk3R7QHNI5_js.m(c));let p=chunk3R7QHNI5_js.e(e,"w","dstrike");p&&(o.doubleStrike=chunk3R7QHNI5_js.m(p));let d=chunk3R7QHNI5_js.e(e,"w","vertAlign");if(d){let S=chunk3R7QHNI5_js.j(d,"w","val");(S==="superscript"||S==="subscript"||S==="baseline")&&(o.vertAlign=S);}let y=chunk3R7QHNI5_js.e(e,"w","smallCaps");y&&(o.smallCaps=chunk3R7QHNI5_js.m(y));let F=chunk3R7QHNI5_js.e(e,"w","caps");F&&(o.allCaps=chunk3R7QHNI5_js.m(F));let h=chunk3R7QHNI5_js.e(e,"w","vanish");h&&(o.hidden=chunk3R7QHNI5_js.m(h));let C=chunk3R7QHNI5_js.e(e,"w","color");C&&(o.color=et(chunk3R7QHNI5_js.j(C,"w","val"),chunk3R7QHNI5_js.j(C,"w","themeColor"),chunk3R7QHNI5_js.j(C,"w","themeTint"),chunk3R7QHNI5_js.j(C,"w","themeShade")));let w=chunk3R7QHNI5_js.e(e,"w","highlight");if(w){let S=chunk3R7QHNI5_js.j(w,"w","val");S&&(o.highlight=S);}let P=chunk3R7QHNI5_js.e(e,"w","shd");P&&(o.shading=Qt(P));let x=chunk3R7QHNI5_js.e(e,"w","sz");if(x){let S=chunk3R7QHNI5_js.l(x,"w","val");S!==void 0&&(o.fontSize=S);}let M=chunk3R7QHNI5_js.e(e,"w","szCs");if(M){let S=chunk3R7QHNI5_js.l(M,"w","val");S!==void 0&&(o.fontSizeCs=S);}let m=chunk3R7QHNI5_js.e(e,"w","rFonts");if(m){o.fontFamily={ascii:chunk3R7QHNI5_js.j(m,"w","ascii")??void 0,hAnsi:chunk3R7QHNI5_js.j(m,"w","hAnsi")??void 0,eastAsia:chunk3R7QHNI5_js.j(m,"w","eastAsia")??void 0,cs:chunk3R7QHNI5_js.j(m,"w","cs")??void 0};let S=chunk3R7QHNI5_js.j(m,"w","asciiTheme");S&&(o.fontFamily.asciiTheme=S,t&&!o.fontFamily.ascii&&(o.fontFamily.ascii=$(t,S)));let U=chunk3R7QHNI5_js.j(m,"w","hAnsiTheme");U&&(o.fontFamily.hAnsiTheme=U,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=$(t,U)));let z=chunk3R7QHNI5_js.j(m,"w","eastAsiaTheme");z&&(o.fontFamily.eastAsiaTheme=z,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=$(t,z)));let pe=chunk3R7QHNI5_js.j(m,"w","cstheme");pe&&(o.fontFamily.csTheme=pe,t&&!o.fontFamily.cs&&(o.fontFamily.cs=$(t,pe)));}let T=chunk3R7QHNI5_js.e(e,"w","spacing");if(T){let S=chunk3R7QHNI5_js.l(T,"w","val");S!==void 0&&(o.spacing=S);}let E=chunk3R7QHNI5_js.e(e,"w","position");if(E){let S=chunk3R7QHNI5_js.l(E,"w","val");S!==void 0&&(o.position=S);}let b=chunk3R7QHNI5_js.e(e,"w","w");if(b){let S=chunk3R7QHNI5_js.l(b,"w","val");S!==void 0&&(o.scale=S);}let k=chunk3R7QHNI5_js.e(e,"w","kern");if(k){let S=chunk3R7QHNI5_js.l(k,"w","val");S!==void 0&&(o.kerning=S);}let B=chunk3R7QHNI5_js.e(e,"w","effect");if(B){let S=chunk3R7QHNI5_js.j(B,"w","val");S&&(o.effect=S);}let v=chunk3R7QHNI5_js.e(e,"w","em");if(v){let S=chunk3R7QHNI5_js.j(v,"w","val");S&&(o.emphasisMark=S);}let I=chunk3R7QHNI5_js.e(e,"w","emboss");I&&(o.emboss=chunk3R7QHNI5_js.m(I));let H=chunk3R7QHNI5_js.e(e,"w","imprint");H&&(o.imprint=chunk3R7QHNI5_js.m(H));let X=chunk3R7QHNI5_js.e(e,"w","outline");X&&(o.outline=chunk3R7QHNI5_js.m(X));let Te=chunk3R7QHNI5_js.e(e,"w","shadow");Te&&(o.shadow=chunk3R7QHNI5_js.m(Te));let Ce=chunk3R7QHNI5_js.e(e,"w","rtl");Ce&&(o.rtl=chunk3R7QHNI5_js.m(Ce));let Fe=chunk3R7QHNI5_js.e(e,"w","cs");Fe&&(o.cs=chunk3R7QHNI5_js.m(Fe));let xe=chunk3R7QHNI5_js.e(e,"w","rStyle");if(xe){let S=chunk3R7QHNI5_js.j(xe,"w","val");S&&(o.styleId=S);}return Object.keys(o).length>0?o:void 0}function Jt(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),r=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim(),a=(chunk3R7QHNI5_js.j(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0,rsid:a.length>0?a:void 0}}function en(e,t,n,o){if(!e)return;let r=chunk3R7QHNI5_js.f(e,"w","rPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","rPr");return {type:"runPropertyChange",info:Jt(a),previousFormatting:fe(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function tn(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 nn(){return {type:"tab"}}function on(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"w","clear"),o={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(o.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(o.clear=n),o}function rn(e){let t=chunk3R7QHNI5_js.j(e,"w","font")??"",n=chunk3R7QHNI5_js.j(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function an(e){return {type:"footnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function ln(e){return {type:"endnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function sn(e){let t=chunk3R7QHNI5_js.j(e,"w","fldCharType"),n=chunk3R7QHNI5_js.j(e,"w","fldLock")==="true"||chunk3R7QHNI5_js.j(e,"w","fldLock")==="1",o=chunk3R7QHNI5_js.j(e,"w","dirty")==="true"||chunk3R7QHNI5_js.j(e,"w","dirty")==="1",r="begin";return t==="separate"?r="separate":t==="end"&&(r="end"),{type:"fieldChar",charType:r,fldLock:n||void 0,dirty:o||void 0}}function un(e){return {type:"instrText",text:chunk3R7QHNI5_js.k(e)}}function tt(e,t,n){let o=chunkO2643IUW_js.z(e,t??void 0,n??void 0);return o?{type:"drawing",image:o}:null}function ue(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function fn(e,t,n){let o=[],r=chunk3R7QHNI5_js.i(e);for(let a of r)switch(ue(a.name)){case "t":o.push(tn(a));break;case "tab":o.push(nn());break;case "br":o.push(on(a));break;case "sym":o.push(rn(a));break;case "footnoteReference":o.push(an(a));break;case "endnoteReference":o.push(ln(a));break;case "fldChar":o.push(sn(a));break;case "instrText":o.push(un(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=tt(a,t,n);l&&o.push(l);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":o.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=chunk3R7QHNI5_js.i(a).find(p=>ue(p.name)==="Choice")??chunk3R7QHNI5_js.i(a).find(p=>ue(p.name)==="Fallback");if(c){for(let p of chunk3R7QHNI5_js.i(c))if(ue(p.name)==="drawing"){let y=tt(p,t,n);y?.image?.src&&o.push(y);}}break}case "footnoteRef":o.push({type:"footnoteRefMark"});break;case "endnoteRef":o.push({type:"endnoteRefMark"});break;case "separator":o.push({type:"separator"});break;case "continuationSeparator":o.push({type:"continuationSeparator"});break;}return o}function K(e,t,n,o=null,r=null){let a={type:"run",content:[]},u=chunk3R7QHNI5_js.e(e,"w","rPr");return u&&(a.formatting=fe(u,n),a.propertyChanges=en(u,n,t,a.formatting)),a.content=fn(e,o,r),a}function cn(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function pn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunk3R7QHNI5_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunk3R7QHNI5_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunk3R7QHNI5_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function G(e){if(!e)return;let t=chunk3R7QHNI5_js.j(e,"w","val");if(!t)return;let n={style:t},o=chunk3R7QHNI5_js.j(e,"w","color"),r=chunk3R7QHNI5_js.j(e,"w","themeColor");(o||r)&&(n.color=cn(o,r,chunk3R7QHNI5_js.j(e,"w","themeTint"),chunk3R7QHNI5_js.j(e,"w","themeShade")));let a=chunk3R7QHNI5_js.l(e,"w","sz");a!==void 0&&(n.size=a);let u=chunk3R7QHNI5_js.l(e,"w","space");u!==void 0&&(n.space=u);let l=chunk3R7QHNI5_js.j(e,"w","shadow");l&&(n.shadow=l==="1"||l==="true");let f=chunk3R7QHNI5_js.j(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function dn(e){if(!e)return;let t=chunk3R7QHNI5_js.f(e,"w","tab");if(t.length===0)return;let n=[];for(let o of t){let r=chunk3R7QHNI5_js.l(o,"w","pos"),a=chunk3R7QHNI5_js.j(o,"w","val");if(r!==void 0&&a){let u={position:r,alignment:a},l=chunk3R7QHNI5_js.j(o,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function mn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.l(e,"w","w");n!==void 0&&(t.width=n);let o=chunk3R7QHNI5_js.l(e,"w","h");o!==void 0&&(t.height=o);let r=chunk3R7QHNI5_js.j(e,"w","hAnchor");(r==="text"||r==="margin"||r==="page")&&(t.hAnchor=r);let a=chunk3R7QHNI5_js.j(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=chunk3R7QHNI5_js.l(e,"w","x");u!==void 0&&(t.x=u);let l=chunk3R7QHNI5_js.l(e,"w","y");l!==void 0&&(t.y=l);let f=chunk3R7QHNI5_js.j(e,"w","xAlign");f&&(t.xAlign=f);let c=chunk3R7QHNI5_js.j(e,"w","yAlign");c&&(t.yAlign=c);let p=chunk3R7QHNI5_js.j(e,"w","wrap");return p&&(t.wrap=p),Object.keys(t).length>0?t:void 0}function ce(e,t,n){if(!e)return;let o={},r=chunk3R7QHNI5_js.e(e,"w","jc");if(r){let b=chunk3R7QHNI5_js.j(r,"w","val");b&&(o.alignment=b);}let a=chunk3R7QHNI5_js.e(e,"w","bidi");a&&(o.bidi=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","spacing");if(u){let b=chunk3R7QHNI5_js.l(u,"w","before");b!==void 0&&(o.spaceBefore=b);let k=chunk3R7QHNI5_js.l(u,"w","after");k!==void 0&&(o.spaceAfter=k);let B=chunk3R7QHNI5_js.l(u,"w","line");B!==void 0&&(o.lineSpacing=B);let v={};b!==void 0&&(v.before=true),k!==void 0&&(v.after=true),(v.before||v.after)&&(o.spacingExplicit=v);let I=chunk3R7QHNI5_js.j(u,"w","lineRule");I&&(o.lineSpacingRule=I);let H=chunk3R7QHNI5_js.j(u,"w","beforeAutospacing");H&&(o.beforeAutospacing=H==="1"||H==="true");let X=chunk3R7QHNI5_js.j(u,"w","afterAutospacing");X&&(o.afterAutospacing=X==="1"||X==="true");}let l=chunk3R7QHNI5_js.e(e,"w","ind");if(l){let b=chunk3R7QHNI5_js.l(l,"w","left");b!==void 0&&(o.indentLeft=b);let k=chunk3R7QHNI5_js.l(l,"w","right");k!==void 0&&(o.indentRight=k);let B=chunk3R7QHNI5_js.l(l,"w","firstLine");B!==void 0&&(o.indentFirstLine=B);let v=chunk3R7QHNI5_js.l(l,"w","hanging");v!==void 0&&(o.indentFirstLine=-v,o.hangingIndent=true);let I=chunk3R7QHNI5_js.l(l,"w","start");I!==void 0&&o.indentLeft===void 0&&(o.indentLeft=I);let H=chunk3R7QHNI5_js.l(l,"w","end");H!==void 0&&o.indentRight===void 0&&(o.indentRight=H);}let f=chunk3R7QHNI5_js.e(e,"w","pBdr");if(f){let b={},k=G(chunk3R7QHNI5_js.e(f,"w","top"));k&&(b.top=k);let B=G(chunk3R7QHNI5_js.e(f,"w","bottom"));B&&(b.bottom=B);let v=G(chunk3R7QHNI5_js.e(f,"w","left"));v&&(b.left=v);let I=G(chunk3R7QHNI5_js.e(f,"w","right"));I&&(b.right=I);let H=G(chunk3R7QHNI5_js.e(f,"w","between"));H&&(b.between=H);let X=G(chunk3R7QHNI5_js.e(f,"w","bar"));X&&(b.bar=X),Object.keys(b).length>0&&(o.borders=b);}let c=chunk3R7QHNI5_js.e(e,"w","shd");c&&(o.shading=pn(c));let p=chunk3R7QHNI5_js.e(e,"w","tabs");p&&(o.tabs=dn(p));let d=chunk3R7QHNI5_js.e(e,"w","keepNext");d&&(o.keepNext=chunk3R7QHNI5_js.m(d));let y=chunk3R7QHNI5_js.e(e,"w","keepLines");y&&(o.keepLines=chunk3R7QHNI5_js.m(y));let F=chunk3R7QHNI5_js.e(e,"w","widowControl");F&&(o.widowControl=chunk3R7QHNI5_js.m(F));let h=chunk3R7QHNI5_js.e(e,"w","pageBreakBefore");h&&(o.pageBreakBefore=chunk3R7QHNI5_js.m(h));let C=chunk3R7QHNI5_js.e(e,"w","contextualSpacing");C&&(o.contextualSpacing=chunk3R7QHNI5_js.m(C));let w=chunk3R7QHNI5_js.e(e,"w","numPr");if(w){let b=chunk3R7QHNI5_js.e(w,"w","numId"),k=chunk3R7QHNI5_js.e(w,"w","ilvl");if(b||k){if(o.numPr={},b){let B=chunk3R7QHNI5_js.l(b,"w","val");B!==void 0&&(o.numPr.numId=B);}if(k){let B=chunk3R7QHNI5_js.l(k,"w","val");B!==void 0&&(o.numPr.ilvl=B);}}}let P=chunk3R7QHNI5_js.e(e,"w","outlineLvl");if(P){let b=chunk3R7QHNI5_js.l(P,"w","val");b!==void 0&&(o.outlineLevel=b);}let x=chunk3R7QHNI5_js.e(e,"w","pStyle");if(x){let b=chunk3R7QHNI5_js.j(x,"w","val");b&&(o.styleId=b);}let M=chunk3R7QHNI5_js.e(e,"w","framePr");M&&(o.frame=mn(M));let m=chunk3R7QHNI5_js.e(e,"w","suppressLineNumbers");m&&(o.suppressLineNumbers=chunk3R7QHNI5_js.m(m));let T=chunk3R7QHNI5_js.e(e,"w","suppressAutoHyphens");T&&(o.suppressAutoHyphens=chunk3R7QHNI5_js.m(T));let E=chunk3R7QHNI5_js.e(e,"w","rPr");return E&&(o.runProperties=fe(E,t)),Object.keys(o).length>0?o:void 0}function gn(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function hn(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunk3R7QHNI5_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function wn(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function nt(e,t,n=null,o=null,r=null){let a={type:"hyperlink",children:[]},u=chunk3R7QHNI5_js.j(e,"r","id");if(u&&(a.rId=u,t)){let F=t.get(u);F&&(chunkZ3LGMBJC_js.c(F),a.href=F.target);}let l=chunk3R7QHNI5_js.j(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=chunk3R7QHNI5_js.j(e,"w","tooltip");f&&(a.tooltip=f);let c=chunk3R7QHNI5_js.j(e,"w","tgtFrame");c&&(a.target=c);let p=chunk3R7QHNI5_js.j(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let d=chunk3R7QHNI5_js.j(e,"w","docLocation");d&&(a.docLocation=d);let y=chunk3R7QHNI5_js.i(e);for(let F of y)switch(gn(F.name)){case "r":a.children.push(K(F,n,o,t,r));break;case "bookmarkStart":a.children.push(hn(F));break;case "bookmarkEnd":a.children.push(wn(F));break}return a}function vo(e){let t="";for(let n of e.children)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"&&(t+=" ");return t}function No(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function Ao(e){return !!e.anchor}function Ho(e){return e.href}function Io(e){return e.children.some(t=>t.type==="run")}function Lo(e){return e.children.filter(t=>t.type==="run")}function Xo(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 ot(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunk3R7QHNI5_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function rt(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function at(e){let t="";if(e.type==="text"&&typeof e.text=="string")return e.text;if(e.elements)for(let n of e.elements)if((n.name?.replace(/^.*:/,"")??"")==="t"&&n.elements)for(let r of n.elements)r.type==="text"&&typeof r.text=="string"&&(t+=r.text);else t+=at(n);return t}function Q(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function lt(e){let t=new Set(["hyperlink","smartTag","sdt","sdtContent","fldSimple","customXml","ins","del","moveFrom","moveTo"]),n=new Set(["pPr","proofErr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","commentReference","permStart","permEnd","rsidR"]),o=new Set(["t","tab","br","cr","sym","drawing","pict","object","softHyphen","noBreakHyphen","fldChar","instrText","pgNum","separator","continuationSeparator","footnoteRef","endnoteRef","footnoteReference","endnoteReference","ptab","monthShort","monthLong","yearShort","yearLong","dayShort","dayLong"]),r=false;function a(l){for(let f of chunk3R7QHNI5_js.i(l)){let c=Q(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let p of chunk3R7QHNI5_js.i(f)){let d=Q(p.name);if(d!=="rPr"){if(d==="lastRenderedPageBreak"){r=true;continue}if(d==="br"&&chunk3R7QHNI5_js.j(p,"w","type")==="page")return "forced";if(o.has(d))return "visible"}}continue}if(t.has(c)){let p=a(f);if(p!=="continue")return p;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?r:false}function it(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function st(e){if(e.type!=="element")return e;let t=Q(e.name),n=e.name;return t==="delText"?n=it(e.name,"t"):t==="delInstrText"&&(n=it(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(st)}}function Z(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=chunk3R7QHNI5_js.j(e,"w","author"),r=chunk3R7QHNI5_js.j(e,"w","date"),a=o?.trim()??"",u=r?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:u.length>0?u:void 0}}function yn(e){return Z(e)}function ut(e,t,n,o){if(!e)return;let r=chunk3R7QHNI5_js.f(e,"w","pPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","pPr");return {type:"paragraphPropertyChange",info:yn(a),previousFormatting:ce(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function bn(e,t,n,o,r){return nt(e,t,n,o,r)}function Tn(e){return ot(e)}function Cn(e){return rt(e)}function ft(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 Fn(e,t,n,o,r){let a=chunk3R7QHNI5_js.j(e,"w","instr")??"",u=ft(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=chunk3R7QHNI5_js.j(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=chunk3R7QHNI5_js.j(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=chunk3R7QHNI5_js.i(e);for(let d of p)Q(d.name)==="r"&&l.content.push(K(d,t,n,o,r));return l}function j(e,t,n,o,r,a,u="default"){let l=[],f=chunk3R7QHNI5_js.i(e),c=false,p="",d=[],y=[],F=false,h=false,C=false;for(let w of f){let P=Q(w.name);switch(P){case "r":{let x=u==="deletion"?st(w):w,M=K(x,t,n,r,a),m=false,T=false,E=false,b="";for(let k of M.content)k.type==="fieldChar"?k.charType==="begin"?(m=true,k.fldLock&&(h=true),k.dirty&&(C=true)):k.charType==="separate"?T=true:k.charType==="end"&&(E=true):k.type==="instrText"&&(b+=k.text);if(m&&(c=true,F=false,p="",d=[],y=[],h=false,C=false),c){if(b&&(p+=b),T&&(F=true),F&&!E?T||y.push(M):!F&&!m&&d.push(M),E){let k={type:"complexField",instruction:p.trim(),fieldType:ft(p),fieldCode:d,fieldResult:y};h&&(k.fldLock=true),C&&(k.dirty=true),l.push(k),c=false;}}else l.push(M);break}case "hyperlink":l.push(bn(w,r,t,n,a));break;case "bookmarkStart":l.push(Tn(w));break;case "bookmarkEnd":l.push(Cn(w));break;case "fldSimple":l.push(Fn(w,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let x=(w.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),M=(w.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(M){let m=j(M,t,n,null,r,a,u),E={type:"inlineSdt",properties:re(x??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 x=Z(w),M=j(w,t,n,null,r,a),m={type:"insertion",info:x,content:M.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "del":{let x=Z(w),M=j(w,t,n,null,r,a,"deletion"),m={type:"deletion",info:x,content:M.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "moveFrom":{let x=Z(w),M=j(w,t,n,null,r,a,"deletion"),m={type:"moveFrom",info:x,content:M.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "moveTo":{let x=Z(w),M=j(w,t,n,null,r,a),m={type:"moveTo",info:x,content:M.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let x=parseInt(chunk3R7QHNI5_js.j(w,"w","id")??"0",10),M=chunk3R7QHNI5_js.j(w,"w","name")??"";l.push({type:"moveFromRangeStart",id:x,name:M});break}case "moveFromRangeEnd":{let x=parseInt(chunk3R7QHNI5_js.j(w,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:x});break}case "moveToRangeStart":{let x=parseInt(chunk3R7QHNI5_js.j(w,"w","id")??"0",10),M=chunk3R7QHNI5_js.j(w,"w","name")??"";l.push({type:"moveToRangeStart",id:x,name:M});break}case "moveToRangeEnd":{let x=parseInt(chunk3R7QHNI5_js.j(w,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:x});break}case "commentRangeStart":{let x=parseInt(chunk3R7QHNI5_js.j(w,"w","id")??"0",10);l.push({type:"commentRangeStart",id:x});break}case "commentRangeEnd":{let x=parseInt(chunk3R7QHNI5_js.j(w,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:x});break}case "oMath":case "oMathPara":{let x=P==="oMathPara",M=chunk3R7QHNI5_js.b(w),m=at(w),T={type:"mathEquation",display:x?"block":"inline",ommlXml:M,plainText:m||void 0};l.push(T);break}}}return l}function xn(e){let t="";for(let n of e.content)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"?t+=" ":o.type==="break"&&(o.breakType==="page"?t+="\f":t+=`
4
- `);else if(n.type==="hyperlink"){for(let o of n.children)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="simpleField"){for(let o of n.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="complexField")for(let o of n.fieldResult)for(let r of o.content)r.type==="text"&&(t+=r.text);return t}function ct(e){let t=chunk3R7QHNI5_js.j(e,"w","id");if(t==null)return null;let n=parseInt(t,10);if(Number.isNaN(n))return null;let o=chunk3R7QHNI5_js.j(e,"w","author")??"",r=chunk3R7QHNI5_js.j(e,"w","date")??void 0,a={id:n,author:o};return r&&(a.date=r),a}function Y(e,t,n,o,r=null,a=null,u){let l={type:"paragraph",content:[]},f=chunk3R7QHNI5_js.j(e,"w14","paraId")??chunk3R7QHNI5_js.j(e,"w","paraId");f&&(l.paraId=f);let c=chunk3R7QHNI5_js.j(e,"w14","textId")??chunk3R7QHNI5_js.j(e,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&lt(e)&&(l.renderedPageBreakBefore=true);let p=chunk3R7QHNI5_js.e(e,"w","pPr");if(p){l.formatting=ce(p,n),l.propertyChanges=ut(p,n,t,l.formatting);let h=chunk3R7QHNI5_js.e(p,"w","rPr");if(h){let w=chunk3R7QHNI5_js.e(h,"w","ins");if(w){let x=ct(w);x&&(l.pPrIns=x);}let P=chunk3R7QHNI5_js.e(h,"w","del");if(P){let x=ct(P);x&&(l.pPrDel=x);}}let C=chunk3R7QHNI5_js.e(p,"w","sectPr");C&&(l.sectionProperties=Qe(C));}let d=j(e,t,n,o,r,a);l.content=be(d);let y=l.formatting?.numPr,F=false;if(!y&&l.formatting?.styleId&&t){let h=t.get(l.formatting.styleId);h?.pPr?.numPr&&(y=h.pPr.numPr,F=true,l.formatting||(l.formatting={}),l.formatting.numPr=y,l.formatting.numPrFromStyle=y);}if(y&&o){let h=chunkH57LNDBH_js.d(y,o);if(h){l.listRendering=h;let C=F?kn(l.formatting?.styleId,t):{left:false,firstLine:false},w=o.getLevel(h.numId,h.level);if(w?.pPr){l.formatting||(l.formatting={});let P=p?chunk3R7QHNI5_js.e(p,"w","ind"):null,x=P!=null&&(chunk3R7QHNI5_js.j(P,"w","left")!==null||chunk3R7QHNI5_js.j(P,"w","start")!==null),M=T=>{let E=P?chunk3R7QHNI5_js.j(P,"w",T):null;if(E===null)return false;let b=parseInt(E,10);return Number.isNaN(b)||b!==0},m=P!=null&&(M("firstLine")||M("hanging"));!x&&!C.left&&w.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=w.pPr.indentLeft),!m&&!C.firstLine&&(w.pPr.indentFirstLine!==void 0&&(l.formatting.indentFirstLine=w.pPr.indentFirstLine),w.pPr.hangingIndent!==void 0&&(l.formatting.hangingIndent=w.pPr.hangingIndent));}}}return l}function kn(e,t){let n={left:false,firstLine:false};if(!e||!t)return n;let o=new Set,r=e;for(;r&&!o.has(r);){o.add(r);let a=t.get(r);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;r=a.basedOn;}return n}function pt(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","tblW"));n&&(t.width=n);let o=chunk3R7QHNI5_js.e(e,"w","jc");if(o){let C=chunk3R7QHNI5_js.j(o,"w","val");(C==="left"||C==="center"||C==="right"||C==="start")&&(t.justification=C==="start"?"left":C);}let r=O(chunk3R7QHNI5_js.e(e,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=O(chunk3R7QHNI5_js.e(e,"w","tblInd"));a&&(t.indent=a);let u=te(chunk3R7QHNI5_js.e(e,"w","tblBorders"));u&&(t.borders=u);let l=ne(chunk3R7QHNI5_js.e(e,"w","tblCellMar"));l&&(t.cellMargins=l);let f=chunk3R7QHNI5_js.e(e,"w","tblLayout");if(f){let C=chunk3R7QHNI5_js.j(f,"w","type");(C==="fixed"||C==="autofit")&&(t.layout=C);}let c=chunk3R7QHNI5_js.e(e,"w","tblStyle");if(c){let C=chunk3R7QHNI5_js.j(c,"w","val");C&&(t.styleId=C);}let p=he(chunk3R7QHNI5_js.e(e,"w","tblLook"));p&&(t.look=p);let d=oe(chunk3R7QHNI5_js.e(e,"w","shd"));d&&(t.shading=d);let y=chunk3R7QHNI5_js.e(e,"w","tblOverlap");if(y){let C=chunk3R7QHNI5_js.j(y,"w","val");(C==="never"||C==="overlap")&&(t.overlap=C);}let F=we(chunk3R7QHNI5_js.e(e,"w","tblpPr"));if(F&&(t.floating=F),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function Sn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tblPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","tblPr");return {type:"tablePropertyChange",info:ee(o),previousFormatting:pt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Mn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","trPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","trPr");return {type:"tableRowPropertyChange",info:ee(o),previousFormatting:dt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Rn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tcPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","tcPr");return {type:"tableCellPropertyChange",info:ee(o),previousFormatting:gt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function En(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","ins");if(t)return {type:"tableRowInsertion",info:V(t)};let n=chunk3R7QHNI5_js.e(e,"w","del");if(n)return {type:"tableRowDeletion",info:V(n)}}function Pn(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:V(t)};let n=chunk3R7QHNI5_js.e(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:V(n)};let o=chunk3R7QHNI5_js.e(e,"w","cellMerge");if(o){let r=chunk3R7QHNI5_js.j(o,"w","vMerge"),a=chunk3R7QHNI5_js.j(o,"w","vMergeOrig"),u=l=>l==="rest"||l==="cont";return {type:"tableCellMerge",info:V(o),...u(r)?{vMerge:r}:{},...u(a)?{vMergeOrig:a}:{}}}}function dt(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=mt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(l&&(t.conditionalFormat=l),Object.keys(t).length!==0)return t}function mt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunk3R7QHNI5_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunk3R7QHNI5_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunk3R7QHNI5_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunk3R7QHNI5_js.j(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=chunk3R7QHNI5_js.j(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=chunk3R7QHNI5_js.j(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=chunk3R7QHNI5_js.j(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let p=chunk3R7QHNI5_js.j(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let d=chunk3R7QHNI5_js.j(e,"w","firstRowLastColumn");(d==="1"||d==="true")&&(t.neCell=true);let y=chunk3R7QHNI5_js.j(e,"w","lastRowFirstColumn");(y==="1"||y==="true")&&(t.swCell=true);let F=chunk3R7QHNI5_js.j(e,"w","lastRowLastColumn");(F==="1"||F==="true")&&(t.seCell=true);let h=chunk3R7QHNI5_js.j(e,"w","val");if(h&&h.length===12&&(h[0]==="1"&&(t.firstRow=true),h[1]==="1"&&(t.lastRow=true),h[2]==="1"&&(t.firstColumn=true),h[3]==="1"&&(t.lastColumn=true),h[4]==="1"&&(t.oddVBand=true),h[5]==="1"&&(t.evenVBand=true),h[6]==="1"&&(t.oddHBand=true),h[7]==="1"&&(t.evenHBand=true),h[8]==="1"&&(t.nwCell=true),h[9]==="1"&&(t.neCell=true),h[10]==="1"&&(t.swCell=true),h[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function gt(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","tcW"));n&&(t.width=n);let o=te(chunk3R7QHNI5_js.e(e,"w","tcBorders"));o&&(t.borders=o);let r=ne(chunk3R7QHNI5_js.e(e,"w","tcMar"));r&&(t.margins=r);let a=oe(chunk3R7QHNI5_js.e(e,"w","shd"));a&&(t.shading=a);let u=chunk3R7QHNI5_js.e(e,"w","vAlign");if(u){let h=chunk3R7QHNI5_js.j(u,"w","val");(h==="top"||h==="center"||h==="bottom")&&(t.verticalAlign=h);}let l=chunk3R7QHNI5_js.e(e,"w","textDirection");if(l){let h=chunk3R7QHNI5_js.j(l,"w","val");h&&(t.textDirection=h);}let f=chunk3R7QHNI5_js.e(e,"w","gridSpan");if(f){let h=chunk3R7QHNI5_js.l(f,"w","val");h!==void 0&&h>1&&(t.gridSpan=h);}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 F=mt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(F&&(t.conditionalFormat=F),Object.keys(t).length!==0)return t}function Bn(e,t,n,o,r,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let p=c.name.split(":").pop();if(p==="p"){let d=Y(c,t,n,o,r,a,u);l.push(d);}else if(p==="tbl"){let d=ye(c,t,n,o,r,a,u);l.push(d);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function vn(e,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=chunk3R7QHNI5_js.e(e,"w","tcPr"),c=gt(f);return c&&(l.formatting=c),l.propertyChanges=Rn(f,c),l.structuralChange=Pn(f),l.content=Bn(e,t,n,o,r,a,u),l}function Nn(e,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f=chunk3R7QHNI5_js.e(e,"w","trPr"),c=dt(f);c&&(l.formatting=c),l.propertyChanges=Mn(f,c),l.structuralChange=En(f);let p=chunk3R7QHNI5_js.f(e,"w","tc");for(let d of p){let y=vn(d,t,n,o,r,a,u);l.cells.push(y);}return l}function An(e){if(!e)return;let t=[],n=chunk3R7QHNI5_js.f(e,"w","gridCol");for(let o of n){let r=chunk3R7QHNI5_js.l(o,"w","w")??0;t.push(r);}if(!(t.length>0&&t.every(o=>o<=0)))return t.length>0?t:void 0}function Hn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function In(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Hn(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let o=n.cells[0];(o.formatting?.gridSpan??1)>=t||o.formatting?.vMerge||o.formatting?.gridSpan==null&&(o.formatting={...o.formatting??{},gridSpan:t});}}function ye(e,t,n,o,r,a,u){let l={type:"table",rows:[]},f=chunk3R7QHNI5_js.e(e,"w","tblPr"),c=pt(f);c&&(l.formatting=c),l.propertyChanges=Sn(f,c);let p=An(chunk3R7QHNI5_js.e(e,"w","tblGrid"));p&&(l.columnWidths=p);let d=chunk3R7QHNI5_js.f(e,"w","tr");for(let y of d){let F=Nn(y,t,n,o,r,a,u);l.rows.push(F);}return In(l),l}exports.A=co;exports.B=Qe;exports.C=wo;exports.D=yo;exports.E=K;exports.F=nt;exports.G=vo;exports.H=No;exports.I=Ao;exports.J=Ho;exports.K=Io;exports.L=Lo;exports.M=Xo;exports.N=xn;exports.O=Y;exports.a=Xn;exports.b=$;exports.c=Le;exports.d=W;exports.e=te;exports.f=ne;exports.g=oe;exports.h=he;exports.i=we;exports.j=Ct;exports.k=Ft;exports.l=xt;exports.m=kt;exports.n=St;exports.o=pt;exports.p=Pt;exports.q=q;exports.r=to;exports.s=no;exports.t=ao;exports.u=lo;exports.v=Ye;exports.w=Ke;exports.x=so;exports.y=uo;exports.z=fo;
@@ -1,2 +0,0 @@
1
- import {d}from'./chunk-W77JXDEV.mjs';import {e}from'./chunk-VW22RZ6C.mjs';import {i,j,h,l,g,k as k$1,e as e$1}from'./chunk-3ANZ3252.mjs';var pe={accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",dk1:"dk1",lt1:"lt1",dk2:"dk2",lt2:"lt2",tx1:"text1",tx2:"text2",bg1:"background1",bg2:"background2",hlink:"hlink",folHlink:"folHlink"},G={black:"000000",white:"FFFFFF",red:"FF0000",green:"00FF00",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF"};function J(e,n){let t=i(n),i$1=t.find(r=>r.name==="a:shade");if(i$1){let r=j(i$1,null,"val");r&&(e.themeShade=Math.round(parseInt(r,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}let o=t.find(r=>r.name==="a:tint");if(o){let r=j(o,null,"val");r&&(e.themeTint=Math.round(parseInt(r,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}return e}function K(e){if(!e)return;let n=i(e),t=n.find(l=>l.name==="a:srgbClr");if(t){let l=j(t,null,"val");if(l)return J({rgb:l},t)}let i$1=n.find(l=>l.name==="a:schemeClr");if(i$1){let l=j(i$1,null,"val");if(l){let u={themeColor:pe[l]??"dk1"};return J(u,i$1)}}let o=n.find(l=>l.name==="a:sysClr");if(o)return {rgb:j(o,null,"lastClr")??"000000"};let r=n.find(l=>l.name==="a:prstClr");if(r){let l=j(r,null,"val");if(l&&G[l])return {rgb:G[l]}}}function N(e){if(!e)return;let n=i(e);if(n.find(i=>i.name==="a:noFill"))return {type:"none"};let t=n.find(i=>i.name==="a:solidFill");if(t)return {type:"solid",color:K(t)};if(n.find(i=>i.name==="a:gradFill"))return {type:"gradient"}}function S(e){let n=e?h(e,"a:ln"):null;if(!n)return;let t=i(n);if(t.find(u=>u.name==="a:noFill"))return;let i$1={},o=j(n,null,"w");o&&(i$1.width=parseInt(o,10));let r=t.find(u=>u.name==="a:solidFill");r&&(i$1.color=K(r));let l=t.find(u=>u.name==="a:prstDash");if(l){let u=j(l,null,"val");u&&(i$1.style=u);}return i$1}function L(e){if(!e)return;let n=j(e,null,"relativeFrom")??"column",t=h(e,"wp:align");if(t){let o=k$1(t);return {relativeTo:n,alignment:o}}let i=h(e,"wp:posOffset");if(i){let o=k$1(i),r=parseInt(o,10);return {relativeTo:n,posOffset:isNaN(r)?0:r}}return {relativeTo:n}}function z(e){if(!e)return;let n=j(e,null,"relativeFrom")??"paragraph",t=h(e,"wp:align");if(t){let o=k$1(t);return {relativeTo:n,alignment:o}}let i=h(e,"wp:posOffset");if(i){let o=k$1(i),r=parseInt(o,10);return {relativeTo:n,posOffset:isNaN(r)?0:r}}return {relativeTo:n}}function Q(e){let n=h(e,"wp:positionH"),t=h(e,"wp:positionV");if(!(!n&&!t))return {horizontal:L(n)??{relativeTo:"column"},vertical:z(t)??{relativeTo:"paragraph"}}}var W=["wp:wrapNone","wp:wrapSquare","wp:wrapTight","wp:wrapThrough","wp:wrapTopAndBottom"];function D(e,n,t){if(!e){let p={type:n?"behind":"inFront"};return t?.distT!==void 0&&(p.distT=t.distT),t?.distB!==void 0&&(p.distB=t.distB),t?.distL!==void 0&&(p.distL=t.distL),t?.distR!==void 0&&(p.distR=t.distR),p}let o=(e.name||"").replace("wp:",""),r;switch(o){case "wrapNone":r=n?"behind":"inFront";break;case "wrapSquare":r="square";break;case "wrapTight":r="tight";break;case "wrapThrough":r="through";break;case "wrapTopAndBottom":r="topAndBottom";break;default:r="square";}let l$1={type:r},u=j(e,null,"wrapText");u&&(l$1.wrapText=u);let s=l(e,null,"distT")??t?.distT,c=l(e,null,"distB")??t?.distB,m=l(e,null,"distL")??t?.distL,g=l(e,null,"distR")??t?.distR;return s!==void 0&&(l$1.distT=s),c!==void 0&&(l$1.distB=c),m!==void 0&&(l$1.distL=m),g!==void 0&&(l$1.distR=g),l$1}function Y(e){let n=i(e),t=j(e,null,"behindDoc")==="1",i$1=n.find(r=>W.includes(r.name??"")),o={distT:l(e,null,"distT")??void 0,distB:l(e,null,"distB")??void 0,distL:l(e,null,"distL")??void 0,distR:l(e,null,"distR")??void 0};return D(i$1??null,t,o)}var ce={accent1:"5B9BD5",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"4472C4",accent6:"70AD47",dk1:"000000",lt1:"FFFFFF",dk2:"1F497D",lt2:"EEECE1",text1:"000000",text2:"1F497D",background1:"FFFFFF",background2:"EEECE1",hlink:"0563C1",folHlink:"954F72"};function H(e){if(e){if(e.rgb)return `#${e.rgb}`;if(e.themeColor)return `#${ce[e.themeColor]??"000000"}`}}var k=91440;function Z(e){if(!e)return {};let n={},t=l(e,null,"lIns"),i=l(e,null,"rIns"),o=l(e,null,"tIns"),r=l(e,null,"bIns");return (t!==void 0||i!==void 0||o!==void 0||r!==void 0)&&(n.margins={left:t,right:i,top:o,bottom:r}),n}function ve(e){if(!e)return {paragraphElements:[],tableElements:[]};let n=g(e,"p"),t=g(e,"tbl");return {paragraphElements:n,tableElements:t}}function Be(e,n,t,i$1,o,r,l,u){if(!e)return [];let s=[],c=i(e);for(let m of c){let g=m.name||"",p=g.indexOf(":"),T=p>=0?g.substring(p+1):g;if(T==="p"){let b=n(m,i$1,o,r,l);s.push(b);}}return s}function ee(e){let t=i(e).find(u=>u.name==="wp:inline"||u.name==="wp:anchor");if(!t)return false;let i$1=h(t,"a:graphic");if(!i$1)return false;let o=h(i$1,"a:graphicData");if(!o)return false;let r=h(o,"wps:wsp");return r?h(r,"wps:txbx")!==null:false}function Ce(e){return h(e,"wps:txbx")!==null}function Me(e){let t=i(e).find(x=>x.name==="wp:inline"||x.name==="wp:anchor");if(!t)return null;let i$1=t.name==="wp:anchor",o=h(t,"a:graphic");if(!o)return null;let r=h(o,"a:graphicData");if(!r)return null;let l$1=h(r,"wps:wsp");if(!l$1||!h(l$1,"wps:txbx"))return null;let s=i(l$1),c=s.find(x=>x.name==="wps:spPr"),m=s.find(x=>x.name==="wps:bodyPr"),g=h(t,"wp:extent"),p=l(g,null,"cx")??0,T=l(g,null,"cy")??0,b={width:p,height:T},C=h(t,"wp:docPr"),P=C?j(C,null,"id")??void 0:void 0,v=N(c??null),B=S(c??null),E=Z(m??null),y={type:"textBox",size:b,content:[]};if(P&&(y.id=P),v&&(y.fill=v),B&&(y.outline=B),E.margins&&(y.margins=E.margins),i$1){let x=Q(t);x&&(y.position=x);let h=Y(t);h&&(y.wrap=h);}return y}function Re(e){let n=h(e,"wps:txbx");return n?h(n,"w:txbxContent"):null}function Xe(e,n,t,i$1){if(!h(e,"wps:txbx"))return null;let r=i(e),l=r.find(b=>b.name==="wps:spPr"),u=r.find(b=>b.name==="wps:bodyPr"),s=r.find(b=>b.name==="wps:cNvPr"),c=s?j(s,null,"id")??void 0:void 0,m=N(l??null),g=S(l??null),p=Z(u??null),T={type:"textBox",size:n,content:[]};return c&&(T.id=c),m&&(T.fill=m),g&&(T.outline=g),p.margins&&(T.margins=p.margins),t&&(T.position=t),i$1&&(T.wrap=i$1),T}function ke(e$1){return e(e$1.size.width)}function Ae(e$1){return e(e$1.size.height)}function Oe(e$1){return {width:e(e$1.size.width),height:e(e$1.size.height)}}function Ne(e$1){let n=e$1.margins;return {top:e(n?.top??k),bottom:e(n?.bottom??k),left:e(n?.left??k),right:e(n?.right??k)}}function Se(e){return e.position!==void 0||e.wrap!==void 0}function Le(e){return e.fill!==void 0&&e.fill.type!=="none"}function ze(e){return e.outline!==void 0}function We(e){return e.content.length>0}function De(e){let n=[];for(let t of e.content){let i=[];for(let o of t.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&i.push(r.text);n.push(i.join(""));}return n.join(`
2
- `)}function He(e){if(!(!e.fill||e.fill.type!=="solid"))return H(e.fill.color)}function Ve(e){if(e.outline?.color)return H(e.outline.color)}function _e(e$1){return e$1.outline?.width?e(e$1.outline.width):0}function me(e){if(!e)return;let n=parseInt(e,10);if(!isNaN(n))return n/6e4}function ge(e,n){let t=i(e);for(let i of t)if(n.includes(i.name||""))return i;return null}function ne(e){if(!e)return {width:0,height:0};let n=l(e,null,"cx")??0,t=l(e,null,"cy")??0;return {width:n,height:t}}function te(e){if(!e)return;let n=l(e,null,"l")??0,t=l(e,null,"t")??0,i=l(e,null,"r")??0,o=l(e,null,"b")??0;if(!(n===0&&t===0&&i===0&&o===0))return {left:n,top:t,right:i,bottom:o}}function ie(e){if(!e)return {};let n=j(e,null,"id")??void 0,t=j(e,null,"name")??void 0,i=j(e,null,"descr")??void 0,o=j(e,null,"title")??void 0,r=j(e,null,"decorative")==="1",l=e$1(e,"a","hlinkClick"),u=l?j(l,"r","id")??void 0:void 0;return {id:n,name:t,alt:i,title:o,decorative:r||void 0,hlinkRId:u}}function re(e){if(!e)return;let n=j(e,null,"rot"),t=j(e,null,"flipH")==="1",i=j(e,null,"flipV")==="1",o=me(n);if(o===void 0&&!t&&!i)return;let r={};return o!==void 0&&(r.rotation=o),t&&(r.flipH=true),i&&(r.flipV=true),r}function oe(e){let n=h(e,"a:graphic");if(!n)return {blipFill:null,blip:null};let t=h(n,"a:graphicData");if(!t)return {blipFill:null,blip:null};let i=h(t,"pic:pic");if(!i)return {blipFill:null,blip:null};let o=h(i,"pic:blipFill");return o?{blipFill:o,blip:h(o,"a:blip")}:{blipFill:null,blip:null}}function le(e){if(!e)return;let n=h(e,"a:srcRect");if(!n)return;let t=s=>{let c=l(n,null,s);if(!(c===void 0||c===0))return c/1e5},i=t("l"),o=t("t"),r=t("r"),l$1=t("b");if(i===void 0&&o===void 0&&r===void 0&&l$1===void 0)return;let u={};return i!==void 0&&(u.left=i),o!==void 0&&(u.top=o),r!==void 0&&(u.right=r),l$1!==void 0&&(u.bottom=l$1),u}function ae(e){if(!e)return;let n=h(e,"a:alphaModFix");if(!n)return;let t=l(n,null,"amt");if(!(t===void 0||t>=1e5))return Math.max(0,Math.min(1,t/1e5))}function se(e){if(!e)return "";let n=j(e,"r","embed");if(n)return n;let t=j(e,null,"embed");if(t)return t;let i=j(e,"r","link");return i||""}function ue(e){let n=h(e,"a:graphic");if(!n)return null;let t=h(n,"a:graphicData");if(!t)return null;let i=h(t,"pic:pic");if(!i)return null;let o=h(i,"pic:spPr");return o?h(o,"a:xfrm"):null}function xe(e){if(!e)return e;let n=e.replace(/^\/+/,"");return n.startsWith("media/")?n=`word/${n}`:n.startsWith("word/")||(n=`word/${n}`),n}function he(e){let n=e.split(".").pop()?.toLowerCase()??"";return {png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tiff:"image/tiff",tif:"image/tiff",webp:"image/webp",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"}[n]??"application/octet-stream"}function de(e,n,t){if(!e||!n)return {};let i=n.get(e);if(!i)return {};let o=i.target;if(!o)return {};let r=xe(o),l=o.split("/").pop(),u=(s,c)=>{let m=c.toLowerCase();for(let[g,p]of s.entries())if(g.toLowerCase()===m)return p};if(t){let s=u(t,r);if(s)return {src:s.dataUrl||s.base64,mimeType:s.mimeType,filename:l};let c=o.replace(/^\/+/,""),m=u(t,c);if(m)return {src:m.dataUrl||m.base64,mimeType:m.mimeType,filename:l};let g=`word/${c}`,p=u(t,g);if(p)return {src:p.dataUrl||p.base64,mimeType:p.mimeType,filename:l}}return {mimeType:he(o),filename:l}}function Te(e,n,t){let i=h(e,"wp:extent"),o=ne(i),r=h(e,"wp:effectExtent"),l$1=te(r),u=h(e,"wp:docPr"),s=ie(u),{blip:c,blipFill:m}=oe(e),g=se(c),p=le(m),T=ae(c),b=de(g,n,t),C=ue(e),P=re(C),v=l(e,null,"distT")??void 0,B=l(e,null,"distB")??void 0,E=l(e,null,"distL")??void 0,y=l(e,null,"distR")??void 0,x={type:"inline"};v!==void 0&&(x.distT=v),B!==void 0&&(x.distB=B),E!==void 0&&(x.distL=E),y!==void 0&&(x.distR=y);let h$1={type:"image",rId:g,size:o,wrap:x};if(s.id&&(h$1.id=s.id),s.alt&&(h$1.alt=s.alt),s.title&&(h$1.title=s.title),s.decorative&&(h$1.decorative=true),b.src&&(h$1.src=b.src),b.mimeType&&(h$1.mimeType=b.mimeType),b.filename&&(h$1.filename=b.filename),l$1&&(h$1.padding=l$1),P&&(h$1.transform=P),p&&(h$1.crop=p),T!==void 0&&(h$1.opacity=T),s.hlinkRId&&n){let X=d(n,s.hlinkRId);X&&(h$1.hlinkHref=X);}return h$1}function be(e,n,t){let i=h(e,"wp:extent"),o=ne(i),r=h(e,"wp:effectExtent"),l$1=te(r),u=h(e,"wp:docPr"),s=ie(u),c=j(e,null,"behindDoc")==="1",m=j(e,null,"layoutInCell"),g=m===null?void 0:m==="1",p=j(e,null,"allowOverlap"),T=p===null?void 0:p==="1",b={distT:l(e,null,"distT")??void 0,distB:l(e,null,"distB")??void 0,distL:l(e,null,"distL")??void 0,distR:l(e,null,"distR")??void 0},C=ge(e,W),P=D(C,c,b),v=h(e,"wp:positionH"),B=h(e,"wp:positionV"),E=L(v),y=z(B),x;(E||y)&&(x={horizontal:E??{relativeTo:"column"},vertical:y??{relativeTo:"paragraph"}});let{blip:h$1,blipFill:X}=oe(e),V=se(h$1),_=le(X),U=ae(h$1),M=de(V,n,t),fe=ue(e),j$1=re(fe),I={type:"image",rId:V,size:o,wrap:P};if(s.id&&(I.id=s.id),s.alt&&(I.alt=s.alt),s.title&&(I.title=s.title),s.decorative&&(I.decorative=true),M.src&&(I.src=M.src),M.mimeType&&(I.mimeType=M.mimeType),M.filename&&(I.filename=M.filename),x&&(I.position=x),l$1&&(I.padding=l$1),j$1&&(I.transform=j$1),_&&(I.crop=_),U!==void 0&&(I.opacity=U),g!==void 0&&(I.layoutInCell=g),T!==void 0&&(I.allowOverlap=T),s.hlinkRId&&n){let q=d(n,s.hlinkRId);q&&(I.hlinkHref=q);}return I}function we(e,n,t){if(ee(e))return null;let i$1=i(e);for(let o of i$1){let r=o.name||"";if(r==="wp:inline"||r==="wp:anchor")return r==="wp:inline"?Te(o,n,t):be(o,n,t)}return null}function Qe(e,n,t){return we(e,n,t)}function Ye(e){return e.wrap.type==="inline"}function Ze(e){return e.wrap.type!=="inline"}function en(e){return e.wrap.type==="behind"}function nn(e){return e.wrap.type==="inFront"}function tn(e$1){return e(e$1.size.width)}function rn(e$1){return e(e$1.size.height)}function on(e){return e.decorative===true}function ln(e$1){return {top:e(e$1.wrap.distT),bottom:e(e$1.wrap.distB),left:e(e$1.wrap.distL),right:e(e$1.wrap.distR)}}export{Ye as A,Ze as B,en as C,nn as D,tn as E,rn as F,on as G,ln as H,K as a,N as b,Q as c,Y as d,H as e,ve as f,Be as g,ee as h,Ce as i,Me as j,Re as k,Xe as l,ke as m,Ae as n,Oe as o,Ne as p,Se as q,Le as r,ze as s,We as t,De as u,He as v,Ve as w,_e as x,we as y,Qe as z};
@@ -1,3 +0,0 @@
1
- 'use strict';var chunkN3Y5BUKV_js=require('./chunk-N3Y5BUKV.js'),chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function re(e,n){if(!e)return {};let t={};if(e.fontFamily){let a=null;if(e.fontFamily.asciiTheme&&n?.fontScheme&&(a=chunkN3Y5BUKV_js.b(e.fontFamily.asciiTheme,n.fontScheme)),a||(a=e.fontFamily.ascii||e.fontFamily.hAnsi||e.fontFamily.eastAsia||e.fontFamily.cs||null),a){let d=chunkN3Y5BUKV_js.a(a);t.fontFamily=d.cssFallback;}}if(e.fontSize!==void 0&&(t.fontSize=`${chunk4Q2IP5FW_js.k(e.fontSize)}pt`),e.bold&&(t.fontWeight="bold"),e.italic&&(t.fontStyle="italic"),e.color&&(t.color=chunkMJ5FQX7Q_js.a(e.color,n)),e.highlight&&e.highlight!=="none"&&(t.backgroundColor=chunkMJ5FQX7Q_js.o(e.highlight)),e.shading){let a=T(e.shading,n);a&&!t.backgroundColor&&(t.backgroundColor=a);}let r=[],i=[],o=[];if(e.underline&&e.underline.style!=="none"){r.push("underline");let a=z(e.underline.style);a!=="solid"&&i.push(a),e.underline.color&&o.push(chunkMJ5FQX7Q_js.a(e.underline.color,n));}if(e.strike&&r.push("line-through"),e.doubleStrike&&r.push("line-through"),r.length>0&&(t.textDecoration=r.join(" "),i.length>0&&(t.textDecorationStyle=i[0]),o.length>0&&(t.textDecorationColor=o[0])),e.vertAlign)switch(e.vertAlign){case "superscript":t.verticalAlign="super",t.fontSize||(t.fontSize="0.83em");break;case "subscript":t.verticalAlign="sub",t.fontSize||(t.fontSize="0.83em");break}if(e.position&&e.position!==0){let a=chunk4Q2IP5FW_js.j(e.position);t.position="relative",t.top=chunk4Q2IP5FW_js.p(-a);}return e.allCaps?t.textTransform="uppercase":e.smallCaps&&(t.fontVariant="small-caps"),e.spacing!==void 0&&e.spacing!==0&&(t.letterSpacing=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.spacing))),e.scale!==void 0&&e.scale!==100&&(t.transform=`scaleX(${e.scale/100})`,t.display="inline-block"),e.hidden&&(t.display="none"),e.emboss&&(t.textShadow="1px 1px 1px rgba(255,255,255,0.5), -1px -1px 1px rgba(0,0,0,0.3)"),e.imprint&&(t.textShadow="-1px -1px 1px rgba(255,255,255,0.5), 1px 1px 1px rgba(0,0,0,0.3)"),e.outline&&(t.WebkitTextStroke="1px currentColor",t.WebkitTextFillColor="transparent"),e.shadow&&!e.emboss&&!e.imprint&&(t.textShadow="1px 1px 2px rgba(0,0,0,0.3)"),e.rtl&&(t.direction="rtl"),t}function ie(e,n){if(!e)return {};let t={};if(e.alignment&&(t.textAlign=j(e.alignment)),e.spaceBefore!==void 0&&(t.marginTop=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.spaceBefore))),e.spaceAfter!==void 0&&(t.marginBottom=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.spaceAfter))),e.lineSpacing!==void 0&&e.lineSpacing>0)switch(e.lineSpacingRule){case "exact":{let r=chunk4Q2IP5FW_js.c(e.lineSpacing);r>0&&(t.lineHeight=chunk4Q2IP5FW_js.p(r));break}case "atLeast":{let r=chunk4Q2IP5FW_js.c(e.lineSpacing);r>0&&(t.minHeight=chunk4Q2IP5FW_js.p(r),t.lineHeight=chunk4Q2IP5FW_js.p(r));break}default:{let r=e.lineSpacing/240;r>0&&(t.lineHeight=r.toString());break}}if(e.indentLeft!==void 0&&(t.marginLeft=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.indentLeft))),e.indentRight!==void 0&&(t.marginRight=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.indentRight))),e.indentFirstLine!==void 0&&(e.hangingIndent?t.textIndent=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.indentFirstLine)):t.textIndent=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.indentFirstLine))),e.borders&&(e.borders.top&&Object.assign(t,h(e.borders.top,"Top",n)),e.borders.bottom&&Object.assign(t,h(e.borders.bottom,"Bottom",n)),e.borders.left&&Object.assign(t,h(e.borders.left,"Left",n)),e.borders.right&&Object.assign(t,h(e.borders.right,"Right",n))),e.shading){let r=T(e.shading,n);r&&(t.backgroundColor=r);}return e.bidi&&(t.direction="rtl"),e.pageBreakBefore&&(t.pageBreakBefore="always"),e.keepNext&&(t.pageBreakAfter="avoid"),e.keepLines&&(t.pageBreakInside="avoid"),t}function h(e,n="",t){if(!e||e.style==="none"||e.style==="nil")return {};let r={},i=e.size?chunk4Q2IP5FW_js.m(e.size):1,o=e.color?chunkMJ5FQX7Q_js.a(e.color,t):"#000000",a=$(e.style),d=`border${n}Width`,g=`border${n}Style`,s=`border${n}Color`;return r[d]=chunk4Q2IP5FW_js.p(Math.max(1,i)),r[g]=a,r[s]=o,r}function T(e,n){return !e||e.pattern==="clear"||e.pattern==="nil"?"":e.fill?e.fill.auto||e.fill.rgb==="auto"||e.fill.rgb==="FFFFFF"?"":chunkMJ5FQX7Q_js.d(e.fill,n):e.pattern==="solid"&&e.color?chunkMJ5FQX7Q_js.d(e.color,n):e.pattern&&e.pattern.startsWith("pct")&&e.color?chunkMJ5FQX7Q_js.d(e.color,n):""}function z(e){switch(e){case "double":return "double";case "dotted":case "dottedHeavy":return "dotted";case "dash":case "dashedHeavy":case "dashLong":case "dashLongHeavy":case "dotDash":case "dashDotHeavy":case "dotDotDash":case "dashDotDotHeavy":return "dashed";case "wave":case "wavyHeavy":case "wavyDouble":return "wavy";default:return "solid"}}function j(e){switch(e){case "center":return "center";case "right":return "right";case "both":case "distribute":return "justify";default:return "left"}}function $(e){switch(e){case "none":case "nil":return "none";case "double":case "triple":return "double";case "dotted":return "dotted";case "dashed":case "dashSmallGap":return "dashed";case "threeDEmboss":return "ridge";case "threeDEngrave":return "groove";case "outset":return "outset";case "inset":return "inset";default:return "solid"}}function oe(...e){let n={};for(let t of e)t&&Object.assign(n,t);return n}function se(e,n){if(!e)return {};let t={};if(e.verticalAlign&&(t.verticalAlign=e.verticalAlign),e.textDirection&&(e.textDirection.includes("rl")||e.textDirection.includes("Rl"))&&(t.direction="rtl"),e.shading){let r=T(e.shading,n);r&&(t.backgroundColor=r);}return e.borders&&(e.borders.top&&Object.assign(t,h(e.borders.top,"Top",n)),e.borders.bottom&&Object.assign(t,h(e.borders.bottom,"Bottom",n)),e.borders.left&&Object.assign(t,h(e.borders.left,"Left",n)),e.borders.right&&Object.assign(t,h(e.borders.right,"Right",n))),e.margins&&(e.margins.top?.value&&(t.paddingTop=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.margins.top.value))),e.margins.bottom?.value&&(t.paddingBottom=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.margins.bottom.value))),e.margins.left?.value&&(t.paddingLeft=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.margins.left.value))),e.margins.right?.value&&(t.paddingRight=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.margins.right.value)))),t}function ae(e,n){if(!e)return {};let t={};if(e.pageWidth&&(t.width=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.pageWidth))),e.pageHeight&&(t.minHeight=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.pageHeight))),e.marginTop&&(t.paddingTop=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.marginTop))),e.marginBottom&&(t.paddingBottom=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.marginBottom))),e.marginLeft&&(t.paddingLeft=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.marginLeft))),e.marginRight&&(t.paddingRight=chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(e.marginRight))),e.background?.color){let r=chunkMJ5FQX7Q_js.a(e.background.color,n);r&&(t.backgroundColor=r);}return t}var ue="application/x-docx-editor",f={HTML:"text/html",PLAIN:"text/plain"};function pe(e){if(!e)return [];let n=()=>{if(!e.items||e.items.length===0)return [];let s=[];for(let l of Array.from(e.items)){if(l.kind!=="file"||!l.type.startsWith("image/"))continue;let c=l.getAsFile();c&&s.push(c);}return s},t=()=>!e.files||e.files.length===0?[]:Array.from(e.files).filter(s=>s.type.startsWith("image/")),r=n(),i=r.length?r:t();if(i.length<=1)return i;let o=["image/png","image/jpeg","image/webp","image/gif","image/svg+xml","image/bmp","image/tiff"],a=s=>{let l=s[0],c=o.indexOf(l.type);c<0&&(c=Number.MAX_SAFE_INTEGER);for(let y of s.slice(1)){let b=o.indexOf(y.type);if(b<0&&(b=Number.MAX_SAFE_INTEGER),b<c){l=y,c=b;continue}b===c&&y.size>l.size&&(l=y);}return l},d=new Map;for(let s of i){let l=s.name?.trim()??"",y=(l?l.replace(/\.[^/.]+$/,"").toLowerCase():"")||`size:${s.size}`,b=d.get(y);b?b.push(s):d.set(y,[s]);}let g=[];for(let s of d.values())g.push(a(s));return g}async function N(e,n={}){let{includeFormatting:t=true,onError:r,theme:i}=n;try{let o=v(e,t,i);return await S(o)}catch(o){return r?.(o),false}}async function de(e,n={}){let{includeFormatting:t=true,onError:r,theme:i}=n;try{let o=K(e,t,i);return await S(o)}catch(o){return r?.(o),false}}function v(e,n=true,t){let r=e.map(P).join(""),i=n?W(e,t):w(r),o=JSON.stringify(e);return {plainText:r,html:i,internal:o}}function K(e,n=true,t){let r=e.map(V).join(`
2
- `),i=n?Q(e,t):w(r),o=JSON.stringify(e);return {plainText:r,html:i,internal:o}}async function S(e){try{if(navigator.clipboard&&navigator.clipboard.write){let n=[new ClipboardItem({[f.PLAIN]:new Blob([e.plainText],{type:f.PLAIN}),[f.HTML]:new Blob([e.html],{type:f.HTML})})];return await navigator.clipboard.write(n),!0}return B(e)}catch{return B(e)}}function B(e){let n=document.createElement("div");n.innerHTML=e.html,n.style.position="fixed",n.style.left="-9999px",document.body.appendChild(n);try{let t=window.getSelection();if(!t)return !1;let r=document.createRange();r.selectNodeContents(n),t.removeAllRanges(),t.addRange(r);let i=document.execCommand("copy");return t.removeAllRanges(),i}finally{document.body.removeChild(n);}}async function fe(e={}){let{cleanWordFormatting:n=true,onError:t}=e;try{if(navigator.clipboard&&navigator.clipboard.read){let r=await navigator.clipboard.read();return await G(r,n)}return null}catch(r){return t?.(r),null}}async function G(e,n){let t="",r="";for(let i of e)i.types.includes(f.HTML)&&(t=await(await i.getType(f.HTML)).text()),i.types.includes(f.PLAIN)&&(r=await(await i.getType(f.PLAIN)).text());return O(t,r,n)}function _(e,n={}){let{cleanWordFormatting:t=true}=n,r=e.clipboardData;if(!r)return null;let i=r.getData(f.HTML),o=r.getData(f.PLAIN);return O(i,o,t)}function O(e,n,t=true){let r=U(e),i=X(e);if(i){let d=e.match(/data-docx-editor-content="([^"]+)"/);if(d)try{return {runs:JSON.parse(decodeURIComponent(d[1])),fromWord:!1,fromEditor:!0,plainText:n}}catch{}}let o=e;return r&&t&&(o=J(e)),{runs:Y(o,n),fromWord:r,fromEditor:i,plainText:n}}function U(e){return e.includes("urn:schemas-microsoft-com:office")||e.includes("mso-")||e.includes("MsoNormal")||e.includes('class="Mso')||e.includes("<!--[if gte mso")}function X(e){return e.includes("data-docx-editor")||e.includes("docx-run")||e.includes("docx-paragraph")}function J(e){let n=e;return n=n.replace(/<!--\[if[\s\S]*?<!\[endif\]-->/gi,""),n=n.replace(/<!--[\s\S]*?-->/g,""),n=n.replace(/<\?xml[^>]*>/gi,""),n=n.replace(/<o:[^>]*>[\s\S]*?<\/o:[^>]*>/gi,""),n=n.replace(/<o:[^>]*\/>/gi,""),n=n.replace(/<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi,""),n=n.replace(/<w:[^>]*\/>/gi,""),n=n.replace(/\s*mso-[^:;]+:[^;]+;?/gi,""),n=n.replace(/\s*style="\s*"/gi,""),n=n.replace(/\s*class="[^"]*Mso[^"]*"/gi,""),n=n.replace(/<span[^>]*>\s*<\/span>/gi,""),n=n.replace(/<\/?font[^>]*>/gi,""),n=n.replace(/\s+/g," ").trim(),n}function Y(e,n){if(!e||e.trim()==="")return n?[F(n)]:[];let t=document.createElement("div");t.innerHTML=e;let r=[];return k(t,r,{}),r.length===0&&n?[F(n)]:r}function k(e,n,t){if(e.nodeType===Node.TEXT_NODE){let a=e.textContent||"";(a.trim()||a.includes(" "))&&n.push(F(a,t));return}if(e.nodeType!==Node.ELEMENT_NODE)return;let r=e,i=r.tagName.toLowerCase(),o={...t,...q(r)};switch(i){case "br":n.push(M(o));return;case "p":case "div":for(let a of r.childNodes)k(a,n,o);r.nextSibling&&n.push(M(o));return;case "b":case "strong":o.bold=true;break;case "i":case "em":o.italic=true;break;case "u":o.underline={style:"single"};break;case "s":case "strike":case "del":o.strike=true;break;case "sup":o.vertAlign="superscript";break;case "sub":o.vertAlign="subscript";break;case "code":case "pre":o.fontFamily={ascii:"Courier New"};break}for(let a of r.childNodes)k(a,n,o);}function q(e){let n={},t=e.style;(t.fontWeight==="bold"||parseInt(t.fontWeight)>=700)&&(n.bold=true),t.fontStyle==="italic"&&(n.italic=true);let r=t.textDecoration||t.textDecorationLine;if(r&&(r.includes("underline")&&(n.underline={style:"single"}),r.includes("line-through")&&(n.strike=true)),t.fontSize){let i=parseFloat(t.fontSize);isNaN(i)||(n.fontSize=Math.round(i/1.333*2));}if(t.fontFamily){let i=t.fontFamily.replace(/["']/g,"").split(",")[0].trim();i&&(n.fontFamily={ascii:i});}if(t.color){let i=I(t.color);i&&(n.color={rgb:i});}if(t.backgroundColor&&t.backgroundColor!=="transparent"){let i=I(t.backgroundColor);i&&(n.shading={fill:{rgb:i}});}return n}function I(e){if(!e||e==="transparent"||e==="inherit")return null;if(e.startsWith("#"))return e.slice(1).toUpperCase();let n=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(n){let t=parseInt(n[1]).toString(16).padStart(2,"0"),r=parseInt(n[2]).toString(16).padStart(2,"0"),i=parseInt(n[3]).toString(16).padStart(2,"0");return (t+r+i).toUpperCase()}return null}function P(e){return e.content.map(n=>n.type==="text"?n.text:n.type==="tab"?" ":n.type==="break"&&n.breakType==="textWrapping"?`
3
- `:"").join("")}function V(e){return (e.content||[]).map(n=>n.type==="run"?P(n):"").join("")}function W(e,n){return e.map(t=>Z(t,n)).join("")}function Q(e,n){return e.map(t=>`<p>${W(t.content?.filter(r=>r.type==="run")||[],n)}</p>`).join("")}function Z(e,n){let t=P(e);if(!t)return "";let r=w(t),i=e.formatting;if(!i)return r;i.bold&&(r=`<strong>${r}</strong>`),i.italic&&(r=`<em>${r}</em>`),i.underline&&(r=`<u>${r}</u>`),i.strike&&(r=`<s>${r}</s>`),i.vertAlign==="superscript"&&(r=`<sup>${r}</sup>`),i.vertAlign==="subscript"&&(r=`<sub>${r}</sub>`);let o=[];if(i.fontSize){let g=i.fontSize/2;o.push(`font-size: ${g}pt`);}i.fontFamily?.ascii&&o.push(`font-family: "${i.fontFamily.ascii}"`);let a=chunkMJ5FQX7Q_js.b(i.color,n);a&&o.push(`color: #${a}`);let d=chunkMJ5FQX7Q_js.b(i.shading?.fill,n);return d&&o.push(`background-color: #${d}`),o.length>0&&(r=`<span style="${o.join("; ")}">${r}</span>`),r}function w(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function F(e,n){return {type:"run",formatting:n,content:[{type:"text",text:e}]}}function M(e){return {type:"run",formatting:e,content:[{type:"break",breakType:"textWrapping"}]}}function ge(e){let{onCopy:n,onCut:t,onPaste:r,clipboardOptions:i={}}=e;return {handleCopy:async s=>{if(!n)return;let l=n();if(!l)return;s.preventDefault();let c=v(l.runs);s.clipboardData?(s.clipboardData.setData(f.PLAIN,c.plainText),s.clipboardData.setData(f.HTML,c.html)):await S(c);},handleCut:async s=>{if(!t)return;let l=t();if(!l)return;s.preventDefault();let c=v(l.runs);s.clipboardData?(s.clipboardData.setData(f.PLAIN,c.plainText),s.clipboardData.setData(f.HTML,c.html)):await S(c);},handlePaste:s=>{if(!r)return;s.preventDefault();let l=_(s,i);l&&r(l);},handleKeyDown:async s=>{let l=s.ctrlKey||s.metaKey;if(l&&s.key==="c"&&!s.shiftKey&&n){let c=n();c&&await N(c.runs,i);}if(l&&s.key==="x"&&!s.shiftKey&&t){let c=t();c&&await N(c.runs,i);}}}}exports.a=re;exports.b=ie;exports.c=h;exports.d=T;exports.e=oe;exports.f=se;exports.g=ae;exports.h=ue;exports.i=f;exports.j=pe;exports.k=N;exports.l=de;exports.m=v;exports.n=K;exports.o=S;exports.p=fe;exports.q=_;exports.r=O;exports.s=U;exports.t=X;exports.u=J;exports.v=Y;exports.w=ge;
@@ -1 +0,0 @@
1
- 'use strict';var chunkIMKU4O3P_js=require('./chunk-IMKU4O3P.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkAA6D2C6R_js=require('./chunk-AA6D2C6R.js'),chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js'),chunkH57LNDBH_js=require('./chunk-H57LNDBH.js');function B(e,a){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?chunkMJ5FQX7Q_js.a(n.color,a):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=chunkMJ5FQX7Q_js.a({rgb:n.rgb,themeColor:n.themeColor,themeTint:n.themeTint,themeShade:n.themeShade},a));break}case "highlight":r.highlight=chunkMJ5FQX7Q_js.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=chunkIMKU4O3P_js.a(n.spacing)),n.position!=null&&n.position!==0&&(r.positionPx=chunk4Q2IP5FW_js.j(n.position)),n.scale!=null&&n.scale!==100&&(r.horizontalScale=n.scale),n.kerning!=null&&n.kerning>0&&(r.kerningMinPt=chunk4Q2IP5FW_js.k(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 U(e){let a=e.defaultTextFormatting;if(!a)return {};let r={};if(a.fontFamily){let t=a.fontFamily.ascii||a.fontFamily.hAnsi;t&&(r.fontFamily=t);}return a.fontSize!=null&&(r.fontSize=a.fontSize/2),r}function E(e){e.hyperlink&&(e.hyperlink={...e.hyperlink,noDefaultStyle:true},delete e.color,delete e.underline);}function G(e){return e==="contentLocked"||e==="sdtContentLocked"}function $(e,a){let r=e.attrs;if(r.sdtType==="checkbox"&&!(G(r.lock)||r.dataBinding!=null))return {kind:"checkbox",groupId:`sdt@${a}`,pos:a,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 D(e,a,r){let t=[],n=a+1,i=r.theme,l=U(e.attrs),m=e.attrs.styleId,c=typeof m=="string"&&/^TOC\d*$/i.test(m);function g(d,f,s){if(d.isText&&d.text){let o=B(d.marks,i);c&&E(o);let u={kind:"text",text:d.text,...l,...o,pmStart:f,pmEnd:f+d.nodeSize,inlineSdtWidget:s};t.push(u);}else if(d.type.name==="hardBreak")t.push({kind:"lineBreak",pmStart:f,pmEnd:f+d.nodeSize});else if(d.type.name==="tab"){let o=B(d.marks,i),u={kind:"tab",...l,...o,pmStart:f,pmEnd:f+d.nodeSize};t.push(u);}else if(d.type.name==="image"){let o=d.attrs,u=chunkIMKU4O3P_js.b(o.width||100,o.height||100,r.pageContentHeight),b=B(d.marks,i),h={kind:"image",src:o.src,width:u.width,height:u.height,alt:o.alt,transform:o.transform,wrapType:o.wrapType,displayMode:o.displayMode,cssFloat:o.cssFloat,distTop:o.distTop,distBottom:o.distBottom,distLeft:o.distLeft,distRight:o.distRight,position:o.position,cropTop:o.cropTop,cropRight:o.cropRight,cropBottom:o.cropBottom,cropLeft:o.cropLeft,opacity:o.opacity,isInsertion:b.isInsertion,isDeletion:b.isDeletion,changeAuthor:b.changeAuthor,changeDate:b.changeDate,changeRevisionId:b.changeRevisionId,pmStart:f,pmEnd:f+d.nodeSize};t.push(h);}else if(d.type.name==="field"){let o=d.attrs.fieldType,u=o==="PAGE"?"PAGE":o==="NUMPAGES"?"NUMPAGES":o==="DATE"?"DATE":o==="TIME"?"TIME":"OTHER",b=B(d.marks,i);c&&E(b),t.push({kind:"field",fieldType:u,fallback:d.attrs.displayText||"",...l,...b,pmStart:f,pmEnd:f+d.nodeSize});}else if(d.type.name==="math"){let o=d.attrs.plainText||"[equation]";t.push({kind:"text",text:o,italic:true,fontFamily:"Cambria Math",pmStart:f,pmEnd:f+d.nodeSize});}else if(d.type.name==="sdt"){let o=$(d,f)??s,u=f+1;d.forEach((b,h)=>{g(b,u+h,o);});}}return e.forEach((d,f)=>{g(d,n+f);}),t}function Y(e){return Math.max(1,Math.round(e/8*1.333))}var j={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,a){if(!e||!e.style||e.style==="none"||e.style==="nil")return;let r={style:j[e.style]||"solid",width:Y(e.size??0),color:e.color?chunkMJ5FQX7Q_js.a(e.color,a):"#000000"};return e.space!==void 0&&(r.space=chunk4Q2IP5FW_js.i(e.space)),r}function N(e,a){let r=e.borders;if(!r)return;let t={},n=["top","bottom","left","right"];for(let i of n){let l=r[i],m=l?w(l,a):void 0;t[i]=m??{width:0,style:"none"};}return Object.keys(t).length>0?t:void 0}function Z(e,a){let r=[];for(let t=0;t<=a;t+=1){let n=e[t]??0;if(n<=0)break;r.push(n);}return r.length===0?"1.":`${r.join(".")}.`}var V=[[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 O(e,a){if(e<=0)return "";let r=e,t="";for(let[n,i]of V)for(;r>=n;)t+=i,r-=n;return a?t:t.toLowerCase()}function W(e,a){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 a?t:t.toLowerCase()}function q(e,a){if(e<=0)return "";switch(a){case "upperRoman":return O(e,true);case "lowerRoman":return O(e,false);case "upperLetter":return W(e,true);case "lowerLetter":return W(e,false);case "decimalZero":return chunkH57LNDBH_js.f(e,2);case "decimalZero3":return chunkH57LNDBH_js.f(e,3);case "decimalZero4":return chunkH57LNDBH_js.f(e,4);case "decimalZero5":return chunkH57LNDBH_js.f(e,5);case "none":return "";default:return String(e)}}function H(e,a,r){return e.replace(/%(\d)([.):\]])?/g,(t,n,i="")=>{let l=parseInt(n,10)-1;if(l<0)return "";let m=a[l]??0,c=r?.[l]??"decimal",g=q(m,c);return g?g+i:""})}function X(e,a,r){let t=e.numPr;if(!t)return null;let n=t.numId;if(n==null||n===0)return null;if(e.listIsBullet)return chunkAA6D2C6R_js.p(e.listMarker||"");let i=t.ilvl??0;if((e.listLevelNumFmts?.[i]??e.listNumFmt)==="none")return e.listMarker?e.listMarker:null;let m=e.listAbstractNumId??n,c=a.get(m)??new Array(9).fill(0),g=`${n}:${i}`;r.has(g)||(r.add(g),e.listStartOverride!=null&&(c[i]=e.listStartOverride-1)),c[i]=(c[i]??0)+1;for(let d=i+1;d<c.length;d+=1)c[d]=0;return a.set(m,c),e.listMarker&&e.listMarker.includes("%")?H(e.listMarker,c,e.listLevelNumFmts??void 0):e.listMarker?e.listMarker:Z(c,i)}var K="Calibri",J=11;function Q(e,a,r,t,n){let i={};if(e.alignment){let s=e.alignment;s==="both"||s==="distribute"?i.alignment="justify":s==="left"?i.alignment="left":s==="center"?i.alignment="center":s==="right"&&(i.alignment="right");}(e.spaceBefore!=null||e.spaceAfter!=null||e.lineSpacing!=null)&&(i.spacing={},e.spaceBefore!=null&&(i.spacing.before=chunkIMKU4O3P_js.a(e.spaceBefore)),e.spaceAfter!=null&&(i.spacing.after=chunkIMKU4O3P_js.a(e.spaceAfter)),e.lineSpacing!=null&&(e.lineSpacingRule==="exact"||e.lineSpacingRule==="atLeast"?(i.spacing.line=chunkIMKU4O3P_js.a(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 l=e.indentLeft,m=e.indentFirstLine,c=e.hangingIndent;if(e.numPr?.numId&&l==null&&(l=((e.numPr.ilvl??0)+1)*720,m==null&&(m=-360,c=true)),(l!=null||e.indentRight!=null||m!=null)&&(i.indent={},l!=null&&(i.indent.left=chunkIMKU4O3P_js.a(l)),e.indentRight!=null&&(i.indent.right=chunkIMKU4O3P_js.a(e.indentRight)),m!=null&&(c?i.indent.hanging=Math.abs(chunkIMKU4O3P_js.a(m)):i.indent.firstLine=chunkIMKU4O3P_js.a(m))),e.styleId&&(i.styleId=e.styleId),e.borders){let s=e.borders;i.borders={};let o=u=>u?w(u,a):void 0;s.top&&(i.borders.top=o(s.top)),s.bottom&&(i.borders.bottom=o(s.bottom)),s.left&&(i.borders.left=o(s.left)),s.right&&(i.borders.right=o(s.right)),s.between&&(i.borders.between=o(s.between)),s.bar&&(i.borders.bar=o(s.bar)),!i.borders.top&&!i.borders.bottom&&!i.borders.left&&!i.borders.right&&!i.borders.between&&!i.borders.bar&&delete i.borders;}let g=chunkMJ5FQX7Q_js.b(e.shading?.fill,a);g&&(i.shading=`#${g}`),e.tabs&&e.tabs.length>0&&(i.tabs=e.tabs.map(s=>({val:A(s.alignment),pos:s.position,leader:s.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 d=r&&t?X(e,r,t):null;d!=null?i.listMarker=d: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 f=e.defaultTextFormatting;if(f&&(f.fontSize!=null&&(i.defaultFontSize=f.fontSize/2),f.fontFamily&&(i.defaultFontFamily=f.fontFamily.ascii||f.fontFamily.hAnsi)),e.pPrIns&&(i.pPrIns=e.pPrIns),e.pPrDel&&(i.pPrDel=e.pPrDel),e.numPr){let s=e.pPrChange,o=Array.isArray(s)&&s.some(u=>!u?.previousFormatting?.numPr);e.pPrDel?i.listMarkerRevision="del":(e.pPrIns||o)&&(i.listMarkerRevision="ins");}return i}function A(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,a,r){let t=e.attrs,n=D(e,a,r),i=Q(t,r.theme,r.listCounters,r.listSeenNumIds,r.defaultTabStopTwips);return {kind:"paragraph",id:chunkIMKU4O3P_js.c(),runs:n,attrs:i,pmStart:a,pmEnd:a+e.nodeSize}}function ee(e,a,r,t){let n=[],i=a+1;e.forEach(u=>{u.type.name==="paragraph"?n.push(M(u,i,r)):u.type.name==="table"&&n.push(_(u,i,r)),i+=u.nodeSize;});let l=e.attrs,m=l.width,c=l.widthType,g=m&&(!c||c==="dxa"||c==="auto")?chunkIMKU4O3P_js.a(m):void 0,d=l.margins,f=(u,b)=>{if(u!=null){let h=chunkIMKU4O3P_js.a(u);if(h>0)return h}if(b!=null){let h=chunkIMKU4O3P_js.a(b);if(h>=0)return h}return 0},s={top:f(d?.top,t?.top),right:f(d?.right,t?.right),bottom:f(d?.bottom,t?.bottom),left:f(d?.left,t?.left)},o=l.cellMarker;return {id:chunkIMKU4O3P_js.c(),blocks:n,colSpan:l.colspan,rowSpan:l.rowspan,width:g,widthValue:m,widthType:c,verticalAlign:l.verticalAlign,background:l.backgroundColor?`#${l.backgroundColor}`:void 0,borders:N(l,r.theme),padding:s,noWrap:l.noWrap||void 0,trackedMarker:o??void 0}}function te(e,a,r,t){let n=[],i=a+1;e.forEach(c=>{(c.type.name==="tableCell"||c.type.name==="tableHeader")&&n.push(ee(c,i,r,t)),i+=c.nodeSize;});let l=e.attrs,m=l._originalFormatting;return {id:chunkIMKU4O3P_js.c(),cells:n,height:l.height?chunkIMKU4O3P_js.a(l.height):void 0,heightRule:l.heightRule??void 0,isHeader:l.isHeader,cantSplit:m?.cantSplit||void 0,trackedIns:l.trIns??void 0,trackedDel:l.trDel??void 0}}function _(e,a,r){let t=[],n=a+1,i=e.attrs.cellMargins;e.forEach(b=>{b.type.name==="tableRow"&&t.push(te(b,n,r,i)),n+=b.nodeSize;});let m=e.attrs.columnWidths?.map(chunkIMKU4O3P_js.a),c=e.attrs.width,g=e.attrs.widthType;if(!m&&t.length>0){let h=t[0].cells.map(k=>k.width);h.every(k=>k!==void 0&&k>0)&&(m=h);}let d=e.attrs.justification,f=e.attrs._originalFormatting,s=f?.indent?.value&&f.indent.type==="dxa"?chunkIMKU4O3P_js.a(f.indent.value):void 0,o=e.attrs.floating,u=o?{horzAnchor:o.horzAnchor,vertAnchor:o.vertAnchor,tblpX:o.tblpX!==void 0?chunkIMKU4O3P_js.a(o.tblpX):void 0,tblpXSpec:o.tblpXSpec,tblpY:o.tblpY!==void 0?chunkIMKU4O3P_js.a(o.tblpY):void 0,tblpYSpec:o.tblpYSpec,topFromText:o.topFromText!==void 0?chunkIMKU4O3P_js.a(o.topFromText):void 0,bottomFromText:o.bottomFromText!==void 0?chunkIMKU4O3P_js.a(o.bottomFromText):void 0,leftFromText:o.leftFromText!==void 0?chunkIMKU4O3P_js.a(o.leftFromText):void 0,rightFromText:o.rightFromText!==void 0?chunkIMKU4O3P_js.a(o.rightFromText):void 0}:void 0;return {kind:"table",id:chunkIMKU4O3P_js.c(),rows:t,columnWidths:m,width:c,widthType:g,justification:d,indent:s,floating:u,pmStart:a,pmEnd:a+e.nodeSize}}function ne(e,a,r){let t=e.attrs,n=t.wrapType,i=n==="behind"||n==="inFront",l=chunkIMKU4O3P_js.b(t.width||100,t.height||100,r);return {kind:"image",id:chunkIMKU4O3P_js.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:a,pmEnd:a+e.nodeSize}}function re(e,a,r){let t=e.attrs,n=[];return e.forEach((i,l)=>{if(i.type.name==="paragraph"){let m=M(i,a+1+l,r);n.push(m);}}),{kind:"textBox",id:chunkIMKU4O3P_js.c(),width:t.width??chunkDROCYKAR_js.b,height:t.height??void 0,fillColor:t.fillColor,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor,outlineStyle:t.outlineStyle,margins:{top:t.marginTop??chunkDROCYKAR_js.a.top,bottom:t.marginBottom??chunkDROCYKAR_js.a.bottom,left:t.marginLeft??chunkDROCYKAR_js.a.left,right:t.marginRight??chunkDROCYKAR_js.a.right},content:n,displayMode:t.displayMode,cssFloat:t.cssFloat,wrapType:t.wrapType,wrapText:t.wrapText,anchorTarget:t.anchorTarget,position:t.position,distTop:t.distTop,distBottom:t.distBottom,distLeft:t.distLeft,distRight:t.distRight,pmStart:a,pmEnd:a+e.nodeSize}}function Se(e,a={}){let r=e.attrs?.defaultTabStopTwips,t={...a,defaultFont:a.defaultFont??K,defaultSize:a.defaultSize??J,defaultTabStopTwips:a.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 m=(c,g,d)=>{if(c.type.name==="blockSdt"){let s=c.attrs,o={id:`sdt@${g}`,sdtType:typeof s.sdtType=="string"?s.sdtType:"richText",tag:s.tag!=null?String(s.tag):void 0,alias:s.alias!=null?String(s.alias):void 0,lock:s.lock!=null?String(s.lock):void 0,checked:typeof s.checked=="boolean"?s.checked:void 0,bound:s.dataBinding!=null?true:void 0,repeatingItem:/<w15:repeatingSectionItem[\s/>]/.test(String(s.rawPropertiesXml??""))?true:void 0},u=[...d,o];c.forEach((b,h)=>{m(b,g+1+h,u);});return}let f=n.length;switch(c.type.name){case "paragraph":{let s=M(c,g,t),o=c.attrs;n.push(s);let u=o._sectionProperties;if(u||o.sectionBreakType){let b={kind:"sectionBreak",id:chunkIMKU4O3P_js.c(),type:u?.sectionStart??o.sectionBreakType};if(u){if((u.pageWidth!==void 0||u.pageHeight!==void 0)&&(b.pageSize={w:chunkIMKU4O3P_js.a(u.pageWidth??12240),h:chunkIMKU4O3P_js.a(u.pageHeight??15840)}),u.marginTop!==void 0||u.marginBottom!==void 0||u.marginLeft!==void 0||u.marginRight!==void 0){let k={top:u.marginTop??l.top,bottom:u.marginBottom??l.bottom,left:u.marginLeft??l.left,right:u.marginRight??l.right};b.margins={top:chunkIMKU4O3P_js.a(k.top),bottom:chunkIMKU4O3P_js.a(k.bottom),left:chunkIMKU4O3P_js.a(k.left),right:chunkIMKU4O3P_js.a(k.right)},l=k;}let h=u.columnCount??1;if(h>1){let k={count:h,gap:chunkIMKU4O3P_js.a(u.columnSpace??720),equalWidth:u.equalWidth??true,separator:u.separator};b.columns=k;}}n.push(b);}}break;case "table":n.push(_(c,g,t));break;case "image":n.push(ne(c,g,t.pageContentHeight));break;case "textBox":n.push(re(c,g,t));break;case "horizontalRule":case "pageBreak":{let s={kind:"pageBreak",id:chunkIMKU4O3P_js.c(),pmStart:g,pmEnd:g+c.nodeSize};n.push(s);break}}if(d.length>0)for(let s=f;s<n.length;s++)n[s].sdtGroups=d;};return e.forEach((c,g)=>{m(c,i+g,[]);}),n}exports.a=w;exports.b=H;exports.c=Se;
@@ -1 +0,0 @@
1
- 'use strict';var chunkJFZIXFRC_js=require('./chunk-JFZIXFRC.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function u(e){return {sdtType:e.sdtType,id:e.id??null,alias:e.alias??null,tag:e.tag??null,lock:e.lock??null,placeholder:e.placeholder??null,showingPlaceholder:e.showingPlaceholder??false,dateFormat:e.dateFormat??null,listItems:e.listItems?JSON.stringify(e.listItems):null,checked:e.checked??null,dataBinding:e.dataBinding?JSON.stringify(e.dataBinding):null,rawPropertiesXml:e.rawPropertiesXml??null,rawEndPropertiesXml:e.rawEndPropertiesXml??null}}function g(e){let i={sdtType:e.sdtType??"richText"};if(typeof e.id=="number"&&(i.id=e.id),e.alias!=null&&(i.alias=String(e.alias)),e.tag!=null&&(i.tag=String(e.tag)),e.lock!=null&&(i.lock=e.lock),e.placeholder!=null&&(i.placeholder=String(e.placeholder)),e.showingPlaceholder&&(i.showingPlaceholder=true),e.dateFormat!=null&&(i.dateFormat=String(e.dateFormat)),typeof e.listItems=="string"&&e.listItems)try{i.listItems=JSON.parse(e.listItems);}catch{}if(e.checked!=null&&(i.checked=e.checked),typeof e.dataBinding=="string"&&e.dataBinding)try{i.dataBinding=JSON.parse(e.dataBinding);}catch{}return e.rawPropertiesXml!=null&&(i.rawPropertiesXml=String(e.rawPropertiesXml)),e.rawEndPropertiesXml!=null&&(i.rawEndPropertiesXml=String(e.rawEndPropertiesXml)),i}function a(e){return !!e.wrap&&e.wrap.type!=="inline"}function w(e){let i=e.wrap?.type??"inline",t=e.wrap?.wrapText,l=e.position?.horizontal?.alignment;return {displayMode:d(i),cssFloat:p(i,t,l),wrapType:i,wrapText:t,anchorTarget:a(e)?"followingBlock":void 0,position:e.position?f(e.position):void 0,distTop:e.wrap?.distT!=null?chunk4Q2IP5FW_js.e(e.wrap.distT):void 0,distBottom:e.wrap?.distB!=null?chunk4Q2IP5FW_js.e(e.wrap.distB):void 0,distLeft:e.wrap?.distL!=null?chunk4Q2IP5FW_js.e(e.wrap.distL):void 0,distRight:e.wrap?.distR!=null?chunk4Q2IP5FW_js.e(e.wrap.distR):void 0}}function x(e){return e.anchorTarget==="followingBlock"||s(e)}function P(e){let i=e.position;if(!(!i?.horizontal&&!i?.vertical))return {horizontal:{relativeTo:i.horizontal?.relativeTo??"margin",alignment:i.horizontal?.align,posOffset:i.horizontal?.posOffset},vertical:{relativeTo:i.vertical?.relativeTo??"paragraph",alignment:i.vertical?.align,posOffset:i.vertical?.posOffset}}}function y(e){let i=e.wrapType??(e.displayMode==="float"?"square":"inline");if(!i||i==="inline")return;let t={type:i};return e.wrapText&&(t.wrapText=e.wrapText),e.distTop!=null&&(t.distT=chunk4Q2IP5FW_js.f(e.distTop)),e.distBottom!=null&&(t.distB=chunk4Q2IP5FW_js.f(e.distBottom)),e.distLeft!=null&&(t.distL=chunk4Q2IP5FW_js.f(e.distLeft)),e.distRight!=null&&(t.distR=chunk4Q2IP5FW_js.f(e.distRight)),t}function d(e){return e==="inline"?"inline":e==="topAndBottom"?"block":"float"}function s(e){return e.displayMode==="float"||chunkJFZIXFRC_js.a(e.wrapType)}function p(e,i,t){return e==="inline"||e==="topAndBottom"?"none":i==="left"?"right":i==="right"||t==="left"?"left":t==="right"?"right":"none"}function f(e){return {horizontal:e.horizontal?{relativeTo:e.horizontal.relativeTo,posOffset:e.horizontal.posOffset,align:e.horizontal.alignment}:void 0,vertical:e.vertical?{relativeTo:e.vertical.relativeTo,posOffset:e.vertical.posOffset,align:e.vertical.alignment}:void 0}}exports.a=u;exports.b=g;exports.c=a;exports.d=w;exports.e=x;exports.f=P;exports.g=y;
@@ -1 +0,0 @@
1
- import {b as b$1}from'./chunk-3NRMSZX2.mjs';import {f}from'./chunk-VW22RZ6C.mjs';function h(c){return JSON.parse(JSON.stringify(c))}function g(c,t){let a=0;for(let r=0;r<c.content.length;r++)if(c.content[r].type==="paragraph"){if(a===t)return r;a++;}return -1}function I(c){let t="";for(let a of c.content)if(a.type==="run")for(let r of a.content)r.type==="text"&&(t+=r.text);else if(a.type==="hyperlink"){for(let r of a.children)if(r.type==="run")for(let e of r.content)e.type==="text"&&(t+=e.text);}return t}function b(c,t){return {type:"run",formatting:t,content:[{type:"text",text:c}]}}function P(c,t,a,r){let e=[],o=0,p=false;for(let n of c.content)if(n.type==="run"){let s=n.content.filter(l=>l.type==="text").map(l=>l.text).join(""),i=o,u=o+s.length;if(!p&&t>=i&&t<=u){let l=t-i;l>0&&e.push({...n,content:[{type:"text",text:s.slice(0,l)}]}),e.push(b(a,r||n.formatting)),l<s.length&&e.push({...n,content:[{type:"text",text:s.slice(l)}]}),p=true;}else e.push(n);o=u;}else e.push(n);return p||e.push(b(a,r)),e}function m(c,t,a){let r=[],e=0;for(let o of c.content)if(o.type==="run"){let p=o.content.filter(i=>i.type==="text").map(i=>i.text).join(""),n=e,s=e+p.length;if(s<=t||n>=a)r.push(o);else {let i="";n<t&&(i+=p.slice(0,t-n)),s>a&&(i+=p.slice(a-n)),i.length>0&&r.push({...o,content:[{type:"text",text:i}]});}e=s;}else r.push(o);return r}function C(c,t,a,r){let e=[],o=0;for(let p of c.content)if(p.type==="run"){let n=p.content.filter(u=>u.type==="text").map(u=>u.text).join(""),s=o,i=o+n.length;if(i<=t||s>=a)e.push(p);else if(s>=t&&i<=a)e.push({...p,formatting:{...p.formatting,...r}});else {let u=Math.max(t,s),l=Math.min(a,i);s<u&&e.push({...p,content:[{type:"text",text:n.slice(0,u-s)}]}),e.push({...p,formatting:{...p.formatting,...r},content:[{type:"text",text:n.slice(u-s,l-s)}]}),i>l&&e.push({...p,content:[{type:"text",text:n.slice(l-s)}]});}o=i;}else e.push(p);return e}function v(c,t){let a=h(c),r=a.package.document,e=g(r,t.position.paragraphIndex);if(e===-1)throw new Error(`Paragraph index ${t.position.paragraphIndex} not found`);let o=r.content[e];return o.content=P(o,t.position.offset,t.text,t.formatting),a}function B(c,t){let a=h(c),r=a.package.document,{start:e,end:o}=t.range;if(e.paragraphIndex===o.paragraphIndex){let p=g(r,e.paragraphIndex);if(p===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let n=r.content[p];n.content=m(n,e.offset,o.offset),n.content=P(n,e.offset,t.text,t.formatting);}else {let p=g(r,e.paragraphIndex),n=r.content[p],s=I(n);n.content=m(n,e.offset,s.length),n.content=P(n,e.offset,t.text,t.formatting);let i=[];for(let u=e.paragraphIndex+1;u<=o.paragraphIndex;u++)i.push(g(r,u));for(let u=i.length-1;u>=0;u--)i[u]!==-1&&r.content.splice(i[u],1);}return a}function A(c,t){let a=h(c),r=a.package.document,{start:e,end:o}=t.range;if(e.paragraphIndex===o.paragraphIndex){let p=g(r,e.paragraphIndex);if(p===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let n=r.content[p];n.content=m(n,e.offset,o.offset);}else {let p=g(r,e.paragraphIndex),n=r.content[p],s=I(n);n.content=m(n,e.offset,s.length);let i=g(r,o.paragraphIndex),u=r.content[i];u.content=m(u,0,o.offset),n.content.push(...u.content);let l=[];for(let f=e.paragraphIndex+1;f<=o.paragraphIndex;f++)l.push(g(r,f));for(let f=l.length-1;f>=0;f--)l[f]!==-1&&r.content.splice(l[f],1);}return a}function E(c,t){let a=h(c),r=a.package.document,{start:e,end:o}=t.range;if(e.paragraphIndex===o.paragraphIndex){let p=g(r,e.paragraphIndex);if(p===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let n=r.content[p];n.content=C(n,e.offset,o.offset,t.formatting);}else for(let p=e.paragraphIndex;p<=o.paragraphIndex;p++){let n=g(r,p);if(n===-1)continue;let s=r.content[n],i=I(s),u=0,l=i.length;p===e.paragraphIndex&&(u=e.offset),p===o.paragraphIndex&&(l=o.offset),s.content=C(s,u,l,t.formatting);}return a}function S(c,t){let a=h(c),r=a.package.document,e=g(r,t.paragraphIndex);if(e===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let o=r.content[e];if(o.formatting={...o.formatting,...t.formatting},"numPr"in t.formatting){let p=t.formatting.numPr;if(p&&p.numId!==void 0&&p.numId!==0){let n=p.ilvl??0,s=p.numId===1,i=s?"\u2022":"1.";if(a.package.numbering){let u=a.package.numbering.nums.find(l=>l.numId===p.numId);if(u){let l=a.package.numbering.abstractNums.find(f=>f.abstractNumId===u.abstractNumId);if(l){let f=l.levels.find(x=>x.ilvl===n);f&&(i=f.lvlText||i);}}}o.listRendering={level:n,numId:p.numId,marker:i,isBullet:s};}else delete o.listRendering;}return a}function F(c,t){let a=h(c),r=a.package.document,e=g(r,t.paragraphIndex);if(e===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let o=r.content[e];return o.formatting={...o.formatting,styleId:t.styleId},a}function V(c,t){let a=h(c),r=a.package.document,e=[];for(let n=0;n<t.rows;n++){let s=[];for(let i=0;i<t.columns;i++){let u=t.data?.[n]?.[i]||"";s.push({type:"tableCell",content:[{type:"paragraph",content:u?[b(u)]:[]}]});}e.push({type:"tableRow",formatting:n===0&&t.hasHeader?{header:true}:void 0,cells:s});}let o={type:"table",rows:e},p=g(r,t.position.paragraphIndex);return p===-1?r.content.push(o):r.content.splice(p+1,0,o),a}function H(c,t){let a=h(c),r=a.package.document,e=g(r,t.position.paragraphIndex);if(e===-1)throw new Error(`Paragraph index ${t.position.paragraphIndex} not found`);let o=r.content[e],n={type:"run",content:[{type:"drawing",image:{type:"image",rId:`rId_img_${Date.now()}`,src:t.src,alt:t.alt,size:{width:f(t.width||100),height:f(t.height||100)},wrap:{type:"inline"}}}]},s=P(o,t.position.offset,"",void 0),i=false,u=0;for(let l=0;l<s.length;l++){let f=s[l];if(f.type==="run"){let x=f.content.filter(d=>d.type==="text").map(d=>d.text).join("");if(u+=x.length,!i&&u>=t.position.offset){s.splice(l+1,0,n),i=true;break}}}return i||s.push(n),o.content=s,a}function $(c,t){let a=h(c),r=a.package.document,{start:e,end:o}=t.range;if(e.paragraphIndex!==o.paragraphIndex)throw new Error("Hyperlinks cannot span multiple paragraphs");let p=g(r,e.paragraphIndex);if(p===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let n=r.content[p],s=I(n),i=t.displayText||s.slice(e.offset,o.offset);n.content=m(n,e.offset,o.offset);let u={type:"hyperlink",href:t.url,tooltip:t.tooltip,children:[b(i)]},l=false,f=0,x=[];for(let d of n.content)if(d.type==="run"){let T=d.content.filter(y=>y.type==="text").map(y=>y.text).join(""),w=f+T.length;if(!l&&f<=e.offset&&e.offset<=w){let y=e.offset-f;y>0&&x.push({...d,content:[{type:"text",text:T.slice(0,y)}]}),x.push(u),y<T.length&&x.push({...d,content:[{type:"text",text:T.slice(y)}]}),l=true;}else x.push(d);f=w;}else x.push(d);return l||x.push(u),n.content=x,a}function j(c,t){let a=h(c),r=a.package.document,{start:e}=t.range,o=g(r,e.paragraphIndex);if(o===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let p=r.content[o],n=[];for(let s of p.content)if(s.type==="hyperlink")for(let i of s.children)i.type==="run"&&n.push(i);else n.push(s);return p.content=n,a}function D(c,t){let a=h(c),r=a.package.document,e=g(r,t.position.paragraphIndex);if(e===-1)throw new Error(`Paragraph index ${t.position.paragraphIndex} not found`);let o=r.content[e],p=I(o),n=m({...o,content:[...o.content]},t.position.offset,p.length),s=m({...o,content:[...o.content]},0,t.position.offset);o.content=n;let i={type:"paragraph",formatting:o.formatting,content:s};return r.content.splice(e+1,0,i),a}function M(c,t){let a=h(c),r=a.package.document,e=g(r,t.paragraphIndex);if(e===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let o=r.content[e],p=[];for(let n=1;n<=t.count;n++){let s=g(r,t.paragraphIndex+n);if(s!==-1){let i=r.content[s];o.content.push(...i.content),p.push(s);}}for(let n=p.length-1;n>=0;n--)r.content.splice(p[n],1);return a}function N(c,t){return D(c,{position:t.position})}function O(c,t){let a=h(c);return a.templateVariables||(a.templateVariables=[]),a.templateVariables.includes(t.name)||a.templateVariables.push(t.name),a}function _(c,t){let a=h(c),r=a.package.document;function e(n){for(let s of n.content)if(s.type==="text")for(let[i,u]of Object.entries(t.values)){let l=new RegExp(`\\{${i}\\}`,"g");s.text=s.text.replace(l,u);}}function o(n){for(let s of n.content)if(s.type==="run")e(s);else if(s.type==="hyperlink")for(let i of s.children)i.type==="run"&&e(i);}function p(n){if(n.type==="paragraph")o(n);else if(n.type==="table")for(let s of n.rows)for(let i of s.cells)for(let u of i.content)p(u);}for(let n of r.content)p(n);return a}function J(c,t){let a=b$1.getCommandHandler(t.type);if(a)return a(c,t);switch(t.type){case "insertText":return v(c,t);case "replaceText":return B(c,t);case "deleteText":return A(c,t);case "formatText":return E(c,t);case "formatParagraph":return S(c,t);case "applyStyle":return F(c,t);case "insertTable":return V(c,t);case "insertImage":return H(c,t);case "insertHyperlink":return $(c,t);case "removeHyperlink":return j(c,t);case "insertParagraphBreak":return D(c,t);case "mergeParagraphs":return M(c,t);case "splitParagraph":return N(c,t);case "setVariable":return O(c,t);case "applyVariables":return _(c,t);default:{let r=t;throw new Error(`Unknown command type: ${r.type}`)}}}function at(c,t){return t.reduce((a,r)=>J(a,r),c)}export{J as a,at as b};
@@ -1 +0,0 @@
1
- 'use strict';function o(t,n){if(!(t>0)||!(n>0))return;let e=t/n;return e>=1?{widthEmu:3954780,heightEmu:Math.round(3954780/e)}:{widthEmu:Math.round(3954780*e),heightEmu:3954780}}exports.a=o;
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkBHBOAP6Z_js=require('./chunk-BHBOAP6Z.js'),chunkMZ7LW5CH_js=require('./chunk-MZ7LW5CH.js'),chunk5WINQXA3_js=require('./chunk-5WINQXA3.js'),chunk6LVPRTB6_js=require('./chunk-6LVPRTB6.js'),chunkX6AICTHN_js=require('./chunk-X6AICTHN.js'),chunk7HANRHHL_js=require('./chunk-7HANRHHL.js'),chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js'),chunkC2BAPYGJ_js=require('./chunk-C2BAPYGJ.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js'),chunkDC7S76ZX_js=require('./chunk-DC7S76ZX.js'),prosemirrorModel=require('prosemirror-model'),prosemirrorState=require('prosemirror-state'),prosemirrorTransform=require('prosemirror-transform'),prosemirrorHistory=require('prosemirror-history'),prosemirrorCommands=require('prosemirror-commands'),prosemirrorDropcursor=require('prosemirror-dropcursor'),prosemirrorKeymap=require('prosemirror-keymap');function ge(n){let t=n.indentLeft;n.numPr?.numId&&t==null&&(t=((n.numPr.ilvl??0)+1)*720);let e={alignment:n.alignment,spaceBefore:n.spaceBefore,spaceAfter:n.spaceAfter,lineSpacing:n.lineSpacing,lineSpacingRule:n.lineSpacingRule,indentLeft:t,indentRight:n.indentRight,indentFirstLine:n.indentFirstLine,hangingIndent:n.hangingIndent,borders:n.borders,shading:n.shading},r=chunkBHBOAP6Z_js.b(e);return r.marginTop&&(r["--docx-space-before"]=r.marginTop),r.marginBottom&&(r["--docx-space-after"]=r.marginBottom),Object.entries(r).map(([a,o])=>`${a.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o}`).join("; ")}function he(n){switch(n){case "upperRoman":return "docx-list-upper-roman";case "lowerRoman":return "docx-list-lower-roman";case "upperLetter":return "docx-list-upper-alpha";case "lowerLetter":return "docx-list-lower-alpha";default:return "docx-list-decimal"}}function xe(n,t,e){if(!n?.numId)return "";let r=n.ilvl??0;return t?`docx-list-bullet docx-list-level-${r}`:`docx-list-numbered ${he(e)} docx-list-level-${r}`}function M(n){if(!n)return;let t=n.trim(),e=parseFloat(t);if(!(isNaN(e)||e===0)){if(t.endsWith("pt"))return Math.round(e*20);if(t.endsWith("px"))return Math.round(e*15);if(t.endsWith("in"))return Math.round(e*1440);if(t.endsWith("mm"))return Math.round(e*(1440/25.4));if(t.endsWith("cm"))return Math.round(e*(1440/2.54));if(/^[\d.]+$/.test(t))return Math.round(e*15)}}function ye(n){switch(n.trim().toLowerCase()){case "left":case "start":return "left";case "center":return "center";case "right":case "end":return "right";case "justify":return "both";default:return}}function ke(n){if(!n||n==="normal")return;let t=n.trim();if(t.endsWith("%")){let r=parseFloat(t);return isNaN(r)||r===0?void 0:{lineSpacing:Math.round(240*(r/100)),lineSpacingRule:"auto"}}if(/[a-z]/i.test(t)){let r=M(t);return r==null?void 0:{lineSpacing:r,lineSpacingRule:"exact"}}let e=parseFloat(t);if(!(isNaN(e)||e===0))return {lineSpacing:Math.round(240*e),lineSpacingRule:"auto"}}function at(n){let t=n.style,e={};if(t.textAlign){let o=ye(t.textAlign);o&&(e.alignment=o);}let r=t.marginLeft||t.paddingLeft;if(r){let o=M(r);o!=null&&(e.indentLeft=o);}let a=t.marginRight||t.paddingRight;if(a){let o=M(a);o!=null&&(e.indentRight=o);}if(t.textIndent){let o=M(t.textIndent);o!=null&&(o<0?(e.indentFirstLine=Math.abs(o),e.hangingIndent=true):e.indentFirstLine=o);}if(t.lineHeight){let o=ke(t.lineHeight);o&&(e.lineSpacing=o.lineSpacing,e.lineSpacingRule=o.lineSpacingRule);}if(t.marginTop){let o=M(t.marginTop);o!=null&&(e.spaceBefore=o);}if(t.marginBottom){let o=M(t.marginBottom);o!=null&&(e.spaceAfter=o);}return e}var Se={content:"inline*",group:"block",attrs:{paraId:{default:null},textId:{default:null},alignment:{default:null},spaceBefore:{default:null},spaceAfter:{default:null},lineSpacing:{default:null},lineSpacingRule:{default:null},spacingExplicit:{default:null},indentLeft:{default:null},indentRight:{default:null},indentFirstLine:{default:null},hangingIndent:{default:false},numPr:{default:null},numPrFromStyle:{default:null},listNumFmt:{default:null},listIsBullet:{default:null},listMarker:{default:null},listMarkerHidden:{default:null},listMarkerFontFamily:{default:null},listMarkerFontSize:{default:null},listMarkerSuffix:{default:null},listLevelNumFmts:{default:null},listAbstractNumId:{default:null},listStartOverride:{default:null},styleId:{default:null},borders:{default:null},shading:{default:null},tabs:{default:null},pageBreakBefore:{default:null},renderedPageBreakBefore:{default:null},keepNext:{default:null},keepLines:{default:null},contextualSpacing:{default:null},defaultTextFormatting:{default:null},sectionBreakType:{default:null},bidi:{default:null},outlineLevel:{default:null},bookmarks:{default:null},_originalFormatting:{default:null},_sectionProperties:{default:null},pPrIns:{default:null},pPrDel:{default:null},pPrChange:{default:null}},parseDOM:[{tag:"p",getAttrs(n){let t=n,e={paraId:t.dataset.paraId||void 0,alignment:t.dataset.alignment,styleId:t.dataset.styleId||void 0,sectionBreakType:t.dataset.sectionBreak||void 0},r=at(t);return {...r,...e,alignment:e.alignment||r.alignment||void 0}}},...["h1","h2","h3","h4","h5","h6"].map(n=>({tag:n,getAttrs(t){let e=parseInt(n.charAt(1));return {...at(t),styleId:`Heading${e}`,outlineLevel:e-1}}}))],toDOM(n){let t=n.attrs,e=ge(t),r=xe(t.numPr,t.listIsBullet,t.listNumFmt),a={};if(e&&(a.style=e),r&&(a.class=r),t.paraId&&(a["data-para-id"]=t.paraId),t.alignment&&(a["data-alignment"]=t.alignment),t.styleId&&(a["data-style-id"]=t.styleId),t.listMarker&&(a["data-list-marker"]=t.listMarker),t.bidi&&(a.dir="rtl"),t.sectionBreakType&&(a["data-section-break"]=t.sectionBreakType,a.class=(a.class?a.class+" ":"")+"docx-section-break"),t.pPrIns||t.pPrDel){let o=t.pPrIns??t.pPrDel,s=t.pPrIns?"ep-revision-ins":"ep-revision-del";a.class=(a.class?a.class+" ":"")+"ep-revision-pmark "+s,a["data-revision-id"]=String(o.revisionId),a["data-revision-author"]=o.author,o.date&&(a["data-revision-date"]=o.date);}else if(Array.isArray(t.pPrChange)&&t.pPrChange.length>0){let o=t.pPrChange[0];a.class=(a.class?a.class+" ":"")+"ep-revision-prop-change",a["data-revision-id"]=String(o.info.id),a["data-revision-author"]=o.info.author,o.info.date&&(a["data-revision-date"]=o.info.date);}return ["p",a,0]}};function S(n,t){return (e,r)=>{let{$from:a,$to:o}=e.selection;if(!r)return true;let s=e.tr,i=new Set;return e.doc.nodesBetween(a.pos,o.pos,(l,d)=>{l.type.name==="paragraph"&&!i.has(d)&&(i.add(d),s=s.setNodeMarkup(d,void 0,{...l.attrs,[n]:t}));}),r(s.scrollIntoView()),true}}function ot(n){return (t,e)=>{let{$from:r,$to:a}=t.selection;if(!e)return true;let o=t.tr,s=new Set;return t.doc.nodesBetween(r.pos,a.pos,(i,l)=>{i.type.name==="paragraph"&&!s.has(l)&&(s.add(l),o=o.setNodeMarkup(l,void 0,{...i.attrs,...n}));}),e(o.scrollIntoView()),true}}function P(n){return (t,e)=>S("alignment",n)(t,e)}function I(n,t="auto"){return (e,r)=>ot({lineSpacing:n,lineSpacingRule:t})(e,r)}function be(n=720){return (t,e)=>{let{$from:r,$to:a}=t.selection;if(!e)return true;let o=t.tr,s=new Set;return t.doc.nodesBetween(r.pos,a.pos,(i,l)=>{if(i.type.name==="paragraph"&&!s.has(l)){s.add(l);let d=i.attrs.indentLeft||0;o=o.setNodeMarkup(l,void 0,{...i.attrs,indentLeft:d+n});}}),e(o.scrollIntoView()),true}}function Ee(n=720){return (t,e)=>{let{$from:r,$to:a}=t.selection;if(!e)return true;let o=t.tr,s=new Set;return t.doc.nodesBetween(r.pos,a.pos,(i,l)=>{if(i.type.name==="paragraph"&&!s.has(l)){s.add(l);let d=i.attrs.indentLeft||0,c=Math.max(0,d-n);o=o.setNodeMarkup(l,void 0,{...i.attrs,indentLeft:c>0?c:null});}}),e(o.scrollIntoView()),true}}function Te(n){return (t,e)=>(r,a)=>{let{$from:o,$to:s}=r.selection;if(!a)return true;let i=r.tr,l=new Set,d=[];if(e?.runFormatting){let u=e.runFormatting;u.bold&&d.push(n.marks.bold.create()),u.italic&&d.push(n.marks.italic.create()),u.fontSize&&d.push(n.marks.fontSize.create({size:u.fontSize})),u.fontFamily&&d.push(n.marks.fontFamily.create({ascii:u.fontFamily.ascii,hAnsi:u.fontFamily.hAnsi,asciiTheme:u.fontFamily.asciiTheme})),u.color&&!u.color.auto&&d.push(n.marks.textColor.create({rgb:u.color.rgb,themeColor:u.color.themeColor,themeTint:u.color.themeTint,themeShade:u.color.themeShade})),u.underline&&u.underline.style!=="none"&&d.push(n.marks.underline.create({style:u.underline.style,color:u.underline.color})),(u.strike||u.doubleStrike)&&d.push(n.marks.strike.create({double:u.doubleStrike||false}));}let c=[n.marks.bold,n.marks.italic,n.marks.fontSize,n.marks.fontFamily,n.marks.textColor,n.marks.underline,n.marks.strike].filter(Boolean);return r.doc.nodesBetween(o.pos,s.pos,(u,f)=>{if(u.type.name==="paragraph"&&!l.has(f)){l.add(f);let g={...u.attrs,styleId:t};if(e){Object.assign(g,chunk5WINQXA3_js.a(e));let m=chunk5WINQXA3_js.b(e,e.numbering);m&&Object.assign(g,m);}if(i=i.setNodeMarkup(f,void 0,g),e){let m=f+1,k=f+u.nodeSize-1;if(k>m){for(let y of c)i=i.removeMark(m,k,y);for(let y of d)i=i.addMark(m,k,y);}}}}),d.length>0&&(i=i.setStoredMarks(d)),a(i.scrollIntoView()),true}}function Rn(n){let{$from:t}=n.selection,e=t.parent;return e.type.name!=="paragraph"?null:e.attrs.alignment||null}function Nn(n){let{$from:t}=n.selection,e=t.parent;return e.type.name!=="paragraph"?null:e.attrs.tabs||null}function Fn(n){let{$from:t}=n.selection,e=t.parent;return e.type.name!=="paragraph"?null:e.attrs.styleId||null}function vn(n){let{$from:t}=n.selection,e=t.parent;return e.type.name!=="paragraph"?false:!!e.attrs.bidi}var st=chunk7HANRHHL_js.c({name:"paragraph",schemaNodeName:"paragraph",nodeSpec:Se,onSchemaReady(n){let t=Te(n.schema);return {commands:{setAlignment:e=>P(e),alignLeft:()=>P("left"),alignCenter:()=>P("center"),alignRight:()=>P("right"),alignJustify:()=>P("both"),setLineSpacing:(e,r)=>I(e,r),singleSpacing:()=>I(240),oneAndHalfSpacing:()=>I(360),doubleSpacing:()=>I(480),setSpaceBefore:e=>S("spaceBefore",e),setSpaceAfter:e=>S("spaceAfter",e),increaseIndent:e=>be(e),decreaseIndent:e=>Ee(e),setIndentLeft:e=>S("indentLeft",e>0?e:null),setIndentRight:e=>S("indentRight",e>0?e:null),setIndentFirstLine:(e,r)=>ot({indentFirstLine:e>0?e:null,hangingIndent:r??false}),applyStyle:(e,r)=>t(e,r),clearStyle:()=>S("styleId",null),insertSectionBreak:e=>S("sectionBreakType",e),removeSectionBreak:()=>S("sectionBreakType",null),generateTOC:()=>(e,r)=>{let a=chunkMZ7LW5CH_js.a(e.doc);if(a.length===0)return false;if(!r)return true;let{schema:o}=e,s=e.tr,i=[];for(let c of a){let u=`_Toc${Math.floor(1e8+Math.random()*9e8)}`;i.push({name:u,level:c.level,text:c.text});let f=s.mapping.map(c.pmPos),m=s.doc.resolve(f).nodeAfter;if(m&&m.type.name==="paragraph"){let R=[...(m.attrs.bookmarks||[]).filter(w=>!w.name.startsWith("_Toc")),{id:Math.floor(Math.random()*2147483647),name:u}];s.setNodeMarkup(f,void 0,{...m.attrs,bookmarks:R});}}let l=[];l.push(o.node("paragraph",{styleId:"TOCHeading",alignment:"center"},[o.text("Table of Contents",[o.marks.bold.create()])]));for(let c of i){let u=c.level*720,f=`TOC${c.level+1}`,g=o.marks.hyperlink.create({href:`#${c.name}`});l.push(o.node("paragraph",{styleId:f,indentLeft:u>0?u:null},[o.text(c.text,[g])]));}let d=s.mapping.map(e.selection.from);return s.insert(d,prosemirrorModel.Fragment.from(l)),r(s.scrollIntoView()),true},toggleBidi:()=>(e,r)=>{let{$from:a}=e.selection,o=a.parent;if(o.type.name!=="paragraph")return false;let s=o.attrs.bidi||false;return S("bidi",s?null:true)(e,r)},setRtl:()=>S("bidi",true),setLtr:()=>S("bidi",null),setTabs:e=>S("tabs",e.length>0?e:null),addTabStop:(e,r="left",a="none")=>(o,s)=>{let{$from:i}=o.selection,l=i.parent;if(l.type.name!=="paragraph")return false;let u=[...(l.attrs.tabs||[]).filter(f=>f.position!==e),{position:e,alignment:r,leader:a}].sort((f,g)=>f.position-g.position);return S("tabs",u)(o,s)},removeTabStop:e=>(r,a)=>{let{$from:o}=r.selection,s=o.parent;if(s.type.name!=="paragraph")return false;let l=(s.attrs.tabs||[]).filter(d=>d.position!==e);return S("tabs",l.length>0?l:null)(r,a)}}}}});function On(n){let t=n.schema.marks.hyperlink;return t?chunk5WINQXA3_js.e(n,t):false}function Dn(n){let t=n.schema.marks.hyperlink;if(!t)return null;let{empty:e,$from:r,from:a,to:o}=n.selection;if(e){let i=n.storedMarks||r.marks();for(let l of i)if(l.type===t)return {href:l.attrs.href,tooltip:l.attrs.tooltip};return null}let s=null;return n.doc.nodesBetween(a,o,i=>{if(i.isText&&s===null){let l=t.isInSet(i.marks);if(l)return s={href:l.attrs.href,tooltip:l.attrs.tooltip},false}return true}),s}function Hn(n){let{from:t,to:e,empty:r}=n.selection;return r?"":n.doc.textBetween(t,e,"")}function Wn(n,t){let e=n.schema.marks.hyperlink;if(!e)return null;let{$from:r}=n.selection,a=r.marks().find(d=>d.type===e);if(!a&&r.nodeAfter&&(a=r.nodeAfter.marks.find(d=>d.type===e)),!a&&r.nodeBefore&&(a=r.nodeBefore.marks.find(d=>d.type===e)),!a&&t&&r.parent.forEach(d=>{if(a||!d.isText)return;let c=d.marks.find(u=>u.type===e&&u.attrs.href===t);c&&(a=c);}),!a)return null;let o=r.start(),s=[],i=null;r.parent.forEach((d,c)=>{let u=o+c,f=u+d.nodeSize;d.isText&&d.marks.some(m=>m.type===e&&m.attrs.href===a.attrs.href)?i?i.end=f:i={start:u,end:f}:i&&(s.push(i),i=null);}),i&&s.push(i);let l=s.find(d=>d.start<=r.pos&&r.pos<=d.end);return l?{mark:a,start:l.start,end:l.end}:null}var it=chunk7HANRHHL_js.d({name:"hyperlink",schemaMarkName:"hyperlink",markSpec:{attrs:{href:{},tooltip:{default:null},rId:{default:null}},inclusive:false,parseDOM:[{tag:"a[href]",getAttrs:n=>{let t=n;return {href:t.getAttribute("href")||"",tooltip:t.getAttribute("title")||void 0}}}],toDOM(n){let t=n.attrs,e={href:t.href,target:"_blank",rel:"noopener noreferrer"};return t.tooltip&&(e.title=t.tooltip),["a",e,0]}},onSchemaReady(n){let t=n.schema.marks.hyperlink,e=(o,s)=>(i,l)=>{let{from:d,to:c,empty:u}=i.selection;if(u)return false;if(l){let f=t.create({href:o,tooltip:s||null}),g=i.tr.addMark(d,c,f),m=i.schema.marks.textColor;m&&(g=g.removeMark(d,c,m)),l(g.scrollIntoView());}return true},r=(o,s)=>{let{from:i,to:l,empty:d}=o.selection;if(d){let c=o.selection.$from;if(!c.marks().find(y=>y.type===t))return false;let g=c.pos,m=c.pos;return c.parent.forEach((y,R)=>{if(y.isText){let w=c.start()+R,H=w+y.nodeSize;w<=c.pos&&c.pos<=H&&y.marks.some(me=>me.type===t)&&(g=Math.min(g,w),m=Math.max(m,H));}}),s&&s(o.tr.removeMark(g,m,t).scrollIntoView()),true}return s&&s(o.tr.removeMark(i,l,t).scrollIntoView()),true};return {commands:{setHyperlink:e,removeHyperlink:()=>r,insertHyperlink:(o,s,i)=>(l,d)=>{if(d){let c=t.create({href:s,tooltip:i||null}),u=l.schema.text(o,[c]);d(l.tr.replaceSelectionWith(u,false).scrollIntoView());}return true}}}}});function v(...n){return (t,e,r)=>{for(let a of n)if(a(t,e,r))return true;return false}}function Me(n,t,e){let r=Array.isArray(n.pPrChange)?n.pPrChange:[];return {...n,pPrChange:[...r,{type:"paragraphPropertyChange",info:{id:e.revisionId,author:e.author,date:e.date??void 0},previousFormatting:t}]}}function lt(n){return (t,e)=>{let{$from:r,$to:a}=t.selection,o=r.parent;if(o.type.name!=="paragraph")return false;let i=o.attrs.numPr?.numId===n;if(!e)return true;let l=t.tr,d=new Set,c=chunk7HANRHHL_js.i(t);return t.doc.nodesBetween(r.pos,a.pos,(u,f)=>{if(u.type.name==="paragraph"&&!d.has(f)){d.add(f);let g=u.attrs.numPr,m;if(i)m={...u.attrs,numPr:null,listIsBullet:null,listNumFmt:null,listMarker:null};else {let k=n===1;m={...u.attrs,numPr:{numId:n,ilvl:u.attrs.numPr?.ilvl||0},listIsBullet:k,listNumFmt:k?null:"decimal",listMarker:null};}c&&(m=Me(m,{numPr:g??null},c)),l=l.setNodeMarkup(f,void 0,m);}}),c&&l.setMeta(chunk7HANRHHL_js.f,true),e(l.scrollIntoView()),true}}var we=(n,t)=>lt(1)(n,t),Ce=(n,t)=>lt(2)(n,t),Pe=(n,t)=>{let{$from:e}=n.selection,r=e.parent;if(r.type.name!=="paragraph"||!r.attrs.numPr)return false;let a=r.attrs.numPr.ilvl||0;if(a>=8)return false;if(!t)return true;let o=e.before(e.depth);return t(n.tr.setNodeMarkup(o,void 0,{...r.attrs,numPr:{...r.attrs.numPr,ilvl:a+1},indentLeft:null,indentFirstLine:null,hangingIndent:null}).scrollIntoView()),true},Ie=(n,t)=>{let{$from:e}=n.selection,r=e.parent;if(r.type.name!=="paragraph"||!r.attrs.numPr)return false;let a=r.attrs.numPr.ilvl||0;if(!t)return true;let o=e.before(e.depth);return a<=0?t(n.tr.setNodeMarkup(o,void 0,{...r.attrs,numPr:null,listIsBullet:null,listNumFmt:null,listMarker:null,indentLeft:null,indentFirstLine:null,hangingIndent:null}).scrollIntoView()):t(n.tr.setNodeMarkup(o,void 0,{...r.attrs,numPr:{...r.attrs.numPr,ilvl:a-1},indentLeft:null,indentFirstLine:null,hangingIndent:null}).scrollIntoView()),true},Ae=(n,t)=>{let{$from:e,$to:r}=n.selection;if(!t)return true;let a=n.tr,o=new Set;return n.doc.nodesBetween(e.pos,r.pos,(s,i)=>{s.type.name==="paragraph"&&s.attrs.numPr&&!o.has(i)&&(o.add(i),a=a.setNodeMarkup(i,void 0,{...s.attrs,numPr:null,listIsBullet:null,listNumFmt:null,listMarker:null}));}),t(a.scrollIntoView()),true};function _n(n){let{$from:t}=n.selection,e=t.parent;return e.type.name!=="paragraph"?false:!!e.attrs.numPr?.numId}function Gn(n){let{$from:t}=n.selection,e=t.parent;return e.type.name!=="paragraph"||!e.attrs.numPr?.numId?null:{numId:e.attrs.numPr.numId,ilvl:e.attrs.numPr.ilvl||0}}function Re(){return (n,t)=>{let{$from:e,empty:r}=n.selection;if(!r)return false;let a=e.parent;if(a.type.name!=="paragraph"||!a.attrs.numPr||a.textContent.length>0)return false;if(t){let s=n.tr.setNodeMarkup(e.before(),void 0,{...a.attrs,numPr:null,listIsBullet:null,listNumFmt:null,listMarker:null});t(s);}return true}}function Ne(){return (n,t)=>{let{$from:e,empty:r}=n.selection;if(!r)return false;let a=e.parent;if(a.type.name!=="paragraph"||!a.attrs.numPr)return false;if(t){let{tr:s}=n,i=e.pos;s.split(i,1,[{type:n.schema.nodes.paragraph,attrs:{...a.attrs}}]),t(s.scrollIntoView());}return true}}function Fe(){return (n,t)=>{let{$from:e,empty:r}=n.selection;if(!r||e.parentOffset!==0)return false;let a=e.parent;if(a.type.name!=="paragraph"||!a.attrs.numPr)return false;if(t){let s=n.tr.setNodeMarkup(e.before(),void 0,{...a.attrs,numPr:null,listIsBullet:null,listNumFmt:null,listMarker:null});t(s);}return true}}function ve(){return (n,t)=>{let{$from:e,$to:r}=n.selection,a=[];if(n.doc.nodesBetween(e.pos,r.pos,(o,s)=>{o.type.name==="paragraph"&&o.attrs.numPr&&(o.attrs.numPr.ilvl??0)<8&&a.push({pos:s,attrs:o.attrs});}),a.length===0)return false;if(t){let o=n.tr;for(let{pos:s,attrs:i}of a){let l=i.numPr;o=o.setNodeMarkup(s,void 0,{...i,numPr:{...l,ilvl:(l.ilvl??0)+1},indentLeft:null,indentFirstLine:null,hangingIndent:null});}t(o);}return true}}function $e(){return (n,t)=>{let{$from:e,$to:r}=n.selection,a=[];if(n.doc.nodesBetween(e.pos,r.pos,(o,s)=>{o.type.name==="paragraph"&&o.attrs.numPr&&a.push({pos:s,attrs:o.attrs});}),a.length===0)return false;if(t){let o=n.tr;for(let{pos:s,attrs:i}of a){let l=i.numPr,d=l.ilvl??0;d<=0?o=o.setNodeMarkup(s,void 0,{...i,numPr:null,listIsBullet:null,listNumFmt:null,listMarker:null,indentLeft:null,indentFirstLine:null,hangingIndent:null}):o=o.setNodeMarkup(s,void 0,{...i,numPr:{...l,ilvl:d-1},indentLeft:null,indentFirstLine:null,hangingIndent:null});}t(o);}return true}}function Le(){return (n,t)=>{let{schema:e}=n,r=e.nodes.tab;if(!r)return false;if(t){let a=n.tr.replaceSelectionWith(r.create());t(a.scrollIntoView());}return true}}var dt=chunk7HANRHHL_js.b({name:"list",priority:chunk7HANRHHL_js.a.High,onSchemaReady(){return {commands:{toggleBulletList:()=>we,toggleNumberedList:()=>Ce,increaseListLevel:()=>Pe,decreaseListLevel:()=>Ie,removeList:()=>Ae},keyboardShortcuts:{Tab:v(chunkX6AICTHN_js.c(),ve(),Le()),"Shift-Tab":v(chunkX6AICTHN_js.d(),$e()),"Shift-Enter":()=>false,Enter:v(Re(),Ne()),Backspace:Fe()}}}});var A=new prosemirrorState.PluginKey("paragraphChangeTracker");function ut(n){let t=0;return n.descendants(e=>{e.type.name==="paragraph"&&t++;}),t}function $(n,t,e){let r=new Set,a=false;return n.nodesBetween(t,e,o=>{if(o.type.name==="paragraph"){let s=o.attrs.paraId;s?r.add(s):a=true;}}),{ids:r,hasUntracked:a}}function Ue(n,t,e){let r=Math.min(t,e),a=Math.max(t,e),o=a>r?a:r+1,s=$(n,r,o);if(s.ids.size>0||s.hasUntracked)return s;try{let i=n.resolve(r);for(let l=i.depth;l>=0;l--){let d=i.node(l);if(d.type.name==="paragraph"){let c=d.attrs.paraId;return c?{ids:new Set([c]),hasUntracked:!1}:{ids:new Set,hasUntracked:!0}}}}catch{}return {ids:new Set,hasUntracked:false}}function Xe(){return new prosemirrorState.Plugin({key:A,state:{init(n,t){return {changedParaIds:new Set,structuralChange:false,hasUntrackedChanges:false,paragraphCount:ut(t.doc)}},apply(n,t){if(n.getMeta(A)==="clear")return {changedParaIds:new Set,structuralChange:false,hasUntrackedChanges:false,paragraphCount:t.paragraphCount};if(!n.docChanged)return t;let e=ut(n.doc),r={changedParaIds:new Set(t.changedParaIds),structuralChange:t.structuralChange,hasUntrackedChanges:t.hasUntrackedChanges,paragraphCount:e};t.paragraphCount!==e&&(r.structuralChange=true);for(let a=0;a<n.steps.length;a++){let o=n.steps[a],s=n.mapping.slice(a+1);if(o instanceof prosemirrorTransform.AddMarkStep||o instanceof prosemirrorTransform.RemoveMarkStep){let l=s.map(o.from,1),d=s.map(o.to,-1);if(d<=l)continue;let{ids:c,hasUntracked:u}=Ue(n.doc,l,d);for(let f of c)r.changedParaIds.add(f);u&&(r.hasUntrackedChanges=true);continue}if(o instanceof prosemirrorTransform.AddNodeMarkStep||o instanceof prosemirrorTransform.RemoveNodeMarkStep){let l=s.map(o.pos,1),d=n.doc.nodeAt(l);if(!d)continue;let c=l+d.nodeSize,{ids:u,hasUntracked:f}=$(n.doc,l,c);for(let g of u)r.changedParaIds.add(g);f&&(r.hasUntrackedChanges=true);continue}o.getMap().forEach((l,d,c,u)=>{let f=s.map(c,1),g=s.map(u,-1);if(g<f)return;let{ids:m,hasUntracked:k}=$(n.doc,f,g);for(let y of m)r.changedParaIds.add(y);k&&(r.hasUntrackedChanges=true);});}return r}}})}function L(n){return A.getState(n)}function Qn(n){return L(n)?.changedParaIds??new Set}function tr(n){return L(n)?.structuralChange??false}function er(n){return L(n)?.hasUntrackedChanges??false}function nr(n){return n.tr.setMeta(A,"clear")}var ct=chunk7HANRHHL_js.b({name:"paragraphChangeTracker",defaultOptions:{},onSchemaReady(){return {plugins:[Xe()]}}});var B=new prosemirrorState.PluginKey("paraIdAllocator");function pt(n){let t=new Set,e=[];return n.descendants((r,a)=>{if(r.type.name!=="paragraph")return;let o=r.attrs.paraId;if(!o||t.has(o)){let s=chunkC2BAPYGJ_js.a();for(;t.has(s);)s=chunkC2BAPYGJ_js.a();t.add(s),e.push({pos:a,attrs:{...r.attrs,paraId:s}});}else t.add(o);return false}),e}function ir(n){let t=pt(n.doc);if(t.length===0)return n;let e=n.tr;for(let r of t)e.setNodeMarkup(r.pos,void 0,r.attrs);return e.setMeta(B,"allocated"),e.setMeta("addToHistory",false),n.apply(e)}function _e(){return new prosemirrorState.Plugin({key:B,appendTransaction(n,t,e){if(!n.some(o=>o.docChanged))return null;let r=pt(e.doc);if(r.length===0)return null;let a=e.tr;for(let o of r)a.setNodeMarkup(o.pos,void 0,o.attrs);return a.setMeta(B,"allocated"),a.setMeta("addToHistory",false),a}})}var mt=chunk7HANRHHL_js.b({name:"paraIdAllocator",onSchemaReady(){return {plugins:[_e()]}}});var ft=chunk7HANRHHL_js.c({name:"doc",schemaNodeName:"doc",nodeSpec:{content:"(paragraph | horizontalRule | pageBreak | table | textBox | blockSdt)+",attrs:{defaultTabStopTwips:{default:null},watermark:{default:null}}}});var gt=chunk7HANRHHL_js.c({name:"text",schemaNodeName:"text",nodeSpec:{group:"inline"}});var xt=chunk7HANRHHL_js.b({name:"history",defaultOptions:{depth:100,newGroupDelay:500},onSchemaReady(n,t){return {plugins:[prosemirrorHistory.history({depth:t.depth,newGroupDelay:t.newGroupDelay})],commands:{undo:()=>prosemirrorHistory.undo,redo:()=>prosemirrorHistory.redo},keyboardShortcuts:{"Mod-z":prosemirrorHistory.undo,"Mod-y":prosemirrorHistory.redo,"Mod-Shift-z":prosemirrorHistory.redo}}}});var kt=chunk7HANRHHL_js.d({name:"bold",schemaMarkName:"bold",markSpec:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs(n){let t=n.style?.fontWeight;return t==="normal"||t==="400"?false:null}},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2})$/.test(n)?null:false}],toDOM(){return ["strong",0]}},onSchemaReady(n){return {commands:{toggleBold:()=>prosemirrorCommands.toggleMark(n.schema.marks.bold)},keyboardShortcuts:{"Mod-b":prosemirrorCommands.toggleMark(n.schema.marks.bold)}}}});var bt=chunk7HANRHHL_js.d({name:"italic",schemaMarkName:"italic",markSpec:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:n=>n==="italic"?null:false}],toDOM(){return ["em",0]}},onSchemaReady(n){return {commands:{toggleItalic:()=>prosemirrorCommands.toggleMark(n.schema.marks.italic)},keyboardShortcuts:{"Mod-i":prosemirrorCommands.toggleMark(n.schema.marks.italic)}}}});var Tt=chunk7HANRHHL_js.d({name:"underline",schemaMarkName:"underline",markSpec:{attrs:{style:{default:"single"},color:{default:null}},parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:n=>n.includes("underline")?{}:false}],toDOM(n){let t=n.attrs,e=["text-decoration: underline"];if(t.style&&t.style!=="single"){let a={double:"double",dotted:"dotted",dash:"dashed",wave:"wavy"}[t.style];a&&e.push(`text-decoration-style: ${a}`);}return t.color?.rgb&&e.push(`text-decoration-color: #${t.color.rgb}`),["span",{style:e.join("; ")},0]}},onSchemaReady(n){return {commands:{toggleUnderline:()=>prosemirrorCommands.toggleMark(n.schema.marks.underline),setUnderlineStyle:(t,e)=>chunk5WINQXA3_js.c(n.schema.marks.underline,{style:t,color:e})},keyboardShortcuts:{"Mod-u":prosemirrorCommands.toggleMark(n.schema.marks.underline)}}}});var Mt=chunk7HANRHHL_js.d({name:"strike",schemaMarkName:"strike",markSpec:{attrs:{double:{default:false}},parseDOM:[{tag:"s"},{tag:"strike"},{tag:"del"},{style:"text-decoration",getAttrs:n=>n.includes("line-through")?{}:false}],toDOM(){return ["s",0]}},onSchemaReady(n){return {commands:{toggleStrike:()=>prosemirrorCommands.toggleMark(n.schema.marks.strike)}}}});var wt=chunk7HANRHHL_js.d({name:"textColor",schemaMarkName:"textColor",markSpec:{attrs:{rgb:{default:null},themeColor:{default:null},themeTint:{default:null},themeShade:{default:null}},parseDOM:[{style:"color",getAttrs:n=>{let e=n.match(/#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})/);return e?{rgb:e[1].toUpperCase()}:false}}],toDOM(n){let t=n.attrs,e=chunkBHBOAP6Z_js.a({color:t});return ["span",{style:e.color?`color: ${e.color}`:""},0]}},onSchemaReady(n){return {commands:{setTextColor:t=>!t.rgb&&!t.themeColor?chunk5WINQXA3_js.d(n.schema.marks.textColor):chunk5WINQXA3_js.c(n.schema.marks.textColor,t),clearTextColor:()=>chunk5WINQXA3_js.d(n.schema.marks.textColor)}}}});var Ct=chunk7HANRHHL_js.d({name:"highlight",schemaMarkName:"highlight",markSpec:{attrs:{color:{default:"yellow"}},parseDOM:[{tag:"mark"},{style:"background-color",getAttrs:n=>n&&n!=="transparent"&&n!=="inherit"?{color:n}:false}],toDOM(n){let t=n.attrs.color;return ["mark",{style:`background-color: ${chunkMJ5FQX7Q_js.o(t)}`},0]}},onSchemaReady(n){return {commands:{setHighlight:t=>!t||t==="none"?chunk5WINQXA3_js.d(n.schema.marks.highlight):chunk5WINQXA3_js.c(n.schema.marks.highlight,{color:t}),clearHighlight:()=>chunk5WINQXA3_js.d(n.schema.marks.highlight)}}}});var Pt=chunk7HANRHHL_js.d({name:"fontSize",schemaMarkName:"fontSize",markSpec:{attrs:{size:{default:24}},parseDOM:[{style:"font-size",getAttrs:n=>{let t=n,e=t.match(/^([\d.]+)px$/);if(e){let o=parseFloat(e[1])*.75;return {size:Math.round(o*2)}}let r=t.match(/^([\d.]+)pt$/);return r?{size:Math.round(parseFloat(r[1])*2)}:false}}],toDOM(n){let e=n.attrs.size/2,r=(e*1.15).toFixed(2);return ["span",{style:`font-size: ${e}pt; line-height: ${r}pt`},0]}},onSchemaReady(n){return {commands:{setFontSize:t=>chunk5WINQXA3_js.c(n.schema.marks.fontSize,{size:t}),clearFontSize:()=>chunk5WINQXA3_js.d(n.schema.marks.fontSize)}}}});var It=chunk7HANRHHL_js.d({name:"fontFamily",schemaMarkName:"fontFamily",markSpec:{attrs:{ascii:{default:null},hAnsi:{default:null},eastAsia:{default:null},cs:{default:null},asciiTheme:{default:null},hAnsiTheme:{default:null},eastAsiaTheme:{default:null},csTheme:{default:null}},parseDOM:[{style:"font-family",getAttrs:n=>{let e=n.split(",")[0].trim().replace(/['"]/g,"");return e?{ascii:e}:false}}],toDOM(n){let t=n.attrs,e=t.ascii||t.hAnsi;return e?["span",{style:`font-family: ${e.includes(" ")?`"${e}"`:e}, sans-serif`},0]:["span",0]}},onSchemaReady(n){return {commands:{setFontFamily:t=>chunk5WINQXA3_js.c(n.schema.marks.fontFamily,{ascii:t,hAnsi:t}),clearFontFamily:()=>chunk5WINQXA3_js.d(n.schema.marks.fontFamily)}}}});var At=chunk7HANRHHL_js.d({name:"superscript",schemaMarkName:"superscript",markSpec:{excludes:"subscript",parseDOM:[{tag:"sup"}],toDOM(){return ["sup",0]}},onSchemaReady(n){return {commands:{toggleSuperscript:()=>prosemirrorCommands.toggleMark(n.schema.marks.superscript)}}}});var Rt=chunk7HANRHHL_js.d({name:"subscript",schemaMarkName:"subscript",markSpec:{excludes:"superscript",parseDOM:[{tag:"sub"}],toDOM(){return ["sub",0]}},onSchemaReady(n){return {commands:{toggleSubscript:()=>prosemirrorCommands.toggleMark(n.schema.marks.subscript)}}}});var Nt=chunk7HANRHHL_js.d({name:"allCaps",schemaMarkName:"allCaps",markSpec:{parseDOM:[{style:"text-transform",getAttrs:n=>n==="uppercase"?{}:false}],toDOM(){return ["span",{style:"text-transform: uppercase"},0]}}});var Ft=chunk7HANRHHL_js.d({name:"smallCaps",schemaMarkName:"smallCaps",markSpec:{parseDOM:[{style:"font-variant",getAttrs:n=>n==="small-caps"?{}:false}],toDOM(){return ["span",{style:"font-variant: small-caps"},0]}}});var vt=chunk7HANRHHL_js.d({name:"footnoteRef",schemaMarkName:"footnoteRef",markSpec:{attrs:{id:{},noteType:{default:"footnote"}},parseDOM:[{tag:"sup.docx-footnote-ref",getAttrs:n=>{let t=n;return {id:t.dataset.id||"",noteType:t.dataset.noteType||"footnote"}}}],toDOM(n){let t=n.attrs;return ["sup",{class:`docx-${t.noteType}-ref`,"data-id":t.id,"data-note-type":t.noteType},0]}},onSchemaReady(n){let{schema:t}=n;function e(a){return o=>(s,i)=>{if(!i)return true;let l=t.marks.footnoteRef.create({id:String(o),noteType:a}),d=t.text(String(o),[l]),c=s.tr.replaceSelectionWith(d,false);return i(c.scrollIntoView()),true}}let r=(a,o)=>{let{$from:s,$to:i}=a.selection;if(!o)return true;let l=a.tr,d=t.marks.footnoteRef;return l=l.removeMark(s.pos,i.pos,d),o(l.scrollIntoView()),true};return {commands:{insertFootnote:e("footnote"),insertEndnote:e("endnote"),deleteNoteRef:()=>r}}}});function Je(n){return n/2*(96/72)}var $t=chunk7HANRHHL_js.d({name:"characterSpacing",schemaMarkName:"characterSpacing",markSpec:{attrs:{spacing:{default:null},position:{default:null},scale:{default:null},kerning:{default:null}},parseDOM:[{tag:"span.docx-char-spacing",getAttrs:n=>{let t=n;return {spacing:t.dataset.spacing?Number(t.dataset.spacing):null,position:t.dataset.position?Number(t.dataset.position):null,scale:t.dataset.scale?Number(t.dataset.scale):null,kerning:t.dataset.kerning?Number(t.dataset.kerning):null}}}],toDOM(n){let t=n.attrs,e=[],r={class:"docx-char-spacing"};if(t.spacing!=null&&t.spacing!==0&&(e.push(`letter-spacing: ${chunk4Q2IP5FW_js.p(chunk4Q2IP5FW_js.c(t.spacing))}`),r["data-spacing"]=String(t.spacing)),t.position!=null&&t.position!==0){let a=Je(t.position);e.push(`vertical-align: ${chunk4Q2IP5FW_js.p(a)}`),r["data-position"]=String(t.position);}return t.scale!=null&&t.scale!==100&&(e.push(`transform: scaleX(${t.scale/100})`),e.push("display: inline-block"),r["data-scale"]=String(t.scale)),t.kerning!=null&&(r["data-kerning"]=String(t.kerning)),e.length>0&&(r.style=e.join("; ")),["span",r,0]}}});var Lt=chunk7HANRHHL_js.d({name:"comment",schemaMarkName:"comment",markSpec:{attrs:{commentId:{default:0}},inclusive:false,parseDOM:[{tag:"span.docx-comment",getAttrs(n){return {commentId:parseInt(n.dataset.commentId||"0",10)}}}],toDOM(n){return ["span",{class:"docx-comment","data-comment-id":String(n.attrs.commentId),style:"background-color: rgba(255, 212, 0, 0.25); border-bottom: 2px solid rgba(255, 212, 0, 0.6);"},0]}}});var Bt=chunk7HANRHHL_js.d({name:"insertion",schemaMarkName:"insertion",markSpec:{attrs:{revisionId:{default:0},author:{default:""},date:{default:null},isMovePair:{default:false}},inclusive:false,parseDOM:[{tag:"span.docx-insertion",getAttrs(n){let t=n;return {revisionId:parseInt(t.dataset.revisionId||"0",10),author:t.dataset.author||"",date:t.dataset.date||null,isMovePair:t.dataset.movePair==="true"}}}],toDOM(n){return ["span",{class:"docx-insertion","data-revision-id":String(n.attrs.revisionId),"data-author":n.attrs.author,...n.attrs.date?{"data-date":n.attrs.date}:{},...n.attrs.isMovePair?{"data-move-pair":"true"}:{},style:"color: #2e7d32;"},0]}}}),Ot=chunk7HANRHHL_js.d({name:"deletion",schemaMarkName:"deletion",markSpec:{attrs:{revisionId:{default:0},author:{default:""},date:{default:null},isMovePair:{default:false}},inclusive:false,parseDOM:[{tag:"span.docx-deletion",getAttrs(n){let t=n;return {revisionId:parseInt(t.dataset.revisionId||"0",10),author:t.dataset.author||"",date:t.dataset.date||null,isMovePair:t.dataset.movePair==="true"}}}],toDOM(n){return ["span",{class:"docx-deletion","data-revision-id":String(n.attrs.revisionId),"data-author":n.attrs.author,...n.attrs.date?{"data-date":n.attrs.date}:{},...n.attrs.isMovePair?{"data-move-pair":"true"}:{},style:"color: #c62828;"},0]}}});var Dt=chunk7HANRHHL_js.d({name:"emboss",schemaMarkName:"emboss",markSpec:{parseDOM:[{tag:"span.docx-emboss"}],toDOM(){return ["span",{class:"docx-emboss",style:"text-shadow: 1px 1px 1px rgba(255,255,255,0.5), -1px -1px 1px rgba(0,0,0,0.3)"},0]}}}),Ht=chunk7HANRHHL_js.d({name:"imprint",schemaMarkName:"imprint",markSpec:{parseDOM:[{tag:"span.docx-imprint"}],toDOM(){return ["span",{class:"docx-imprint",style:"-1px -1px 1px rgba(255,255,255,0.5), 1px 1px 1px rgba(0,0,0,0.3)"},0]}}}),Wt=chunk7HANRHHL_js.d({name:"textShadow",schemaMarkName:"textShadow",markSpec:{parseDOM:[{tag:"span.docx-text-shadow"}],toDOM(){return ["span",{class:"docx-text-shadow",style:"text-shadow: 1px 1px 2px rgba(0,0,0,0.3)"},0]}}}),zt=chunk7HANRHHL_js.d({name:"emphasisMark",schemaMarkName:"emphasisMark",markSpec:{attrs:{type:{default:"dot"}},parseDOM:[{tag:"span.docx-emphasis-mark",getAttrs:n=>({type:n.dataset.emType||"dot"})}],toDOM(n){let t=n.attrs.type,e="filled dot";switch(t){case "dot":e="filled dot";break;case "comma":e="filled sesame";break;case "circle":e="filled circle";break;case "underDot":e="filled dot";break}let r=t==="underDot"?"under right":"over right";return ["span",{class:"docx-emphasis-mark","data-em-type":t,style:`text-emphasis: ${e}; text-emphasis-position: ${r}; -webkit-text-emphasis: ${e}; -webkit-text-emphasis-position: ${r}`},0]}}}),Ut=chunk7HANRHHL_js.d({name:"textOutline",schemaMarkName:"textOutline",markSpec:{parseDOM:[{tag:"span.docx-text-outline"}],toDOM(){return ["span",{class:"docx-text-outline",style:"-webkit-text-stroke: 1px currentColor; -webkit-text-fill-color: transparent"},0]}}});var Xt=chunk7HANRHHL_js.d({name:"hidden",schemaMarkName:"hidden",markSpec:{parseDOM:[{tag:"span.docx-hidden"}],toDOM(){return ["span",{class:"docx-hidden",style:"opacity: 0.4; text-decoration: underline dotted"},0]}}}),Vt=chunk7HANRHHL_js.d({name:"rtl",schemaMarkName:"rtl",markSpec:{parseDOM:[{tag:"span[dir=rtl].docx-rtl"}],toDOM(){return ["span",{class:"docx-rtl",dir:"rtl"},0]}}}),Kt=chunk7HANRHHL_js.d({name:"textEffect",schemaMarkName:"textEffect",markSpec:{attrs:{effect:{default:"blinkBackground"}},parseDOM:[{tag:"span.docx-text-effect",getAttrs:n=>{let e=n.dataset.effect;return e==="blinkBackground"||e==="lights"||e==="antsBlack"||e==="antsRed"||e==="shimmer"||e==="sparkle"?{effect:e}:false}}],toDOM(n){let t=n.attrs.effect;return ["span",{class:`docx-text-effect docx-text-effect-${t}`,"data-effect":t},0]}}});var _t=chunk7HANRHHL_js.c({name:"hardBreak",schemaNodeName:"hardBreak",nodeSpec:{inline:true,group:"inline",selectable:false,parseDOM:[{tag:"br"}],toDOM(){return ["br"]}},onSchemaReady(n){let t=n.schema.nodes.hardBreak;return {keyboardShortcuts:{"Shift-Enter":(e,r)=>(r&&r(e.tr.replaceSelectionWith(t.create()).scrollIntoView()),true)}}}});var Gt=chunk7HANRHHL_js.c({name:"tab",schemaNodeName:"tab",nodeSpec:{inline:true,group:"inline",selectable:false,parseDOM:[{tag:"span.docx-tab"}],toDOM(){return ["span",{class:"docx-tab",style:"display: inline-block; min-width: 16px; white-space: pre;"}," "]}}});function Ze(n,t,e){let r=()=>t.position?.horizontal&&t.position?.vertical?t.position:e?.initialPositionEmu?{horizontal:{relativeTo:"column",posOffset:e.initialPositionEmu.horizontalEmu},vertical:{relativeTo:"paragraph",posOffset:e.initialPositionEmu.verticalEmu}}:{horizontal:{relativeTo:"column",posOffset:0},vertical:{relativeTo:"paragraph",posOffset:0}};switch(n){case "inline":return {wrapType:"inline",displayMode:"inline",cssFloat:"none",wrapText:void 0,position:void 0,distTop:void 0,distBottom:void 0,distLeft:void 0,distRight:void 0};case "squareLeft":case "squareRight":{let a=n==="squareLeft"?"left":"right",o=n==="squareLeft"?"right":"left";return {wrapType:t.wrapType==="tight"||t.wrapType==="through"?t.wrapType:"square",displayMode:"float",cssFloat:a,wrapText:o,position:r()}}case "square":case "tight":case "through":{let a=t.cssFloat==="left"||t.cssFloat==="right"?t.cssFloat:"left";return {wrapType:n,displayMode:"float",cssFloat:a,wrapText:a==="left"?"right":"left",position:r()}}case "topAndBottom":return {wrapType:"topAndBottom",displayMode:"block",cssFloat:"none",wrapText:"bothSides",position:r()};case "behind":case "inFront":return {wrapType:n,displayMode:"float",cssFloat:"none",wrapText:"bothSides",position:r()}}}var jt=chunk7HANRHHL_js.c({name:"image",schemaNodeName:"image",nodeSpec:{inline:true,group:"inline",marks:"_",draggable:true,attrs:{src:{},alt:{default:null},title:{default:null},width:{default:null},height:{default:null},rId:{default:null},wrapType:{default:"inline"},displayMode:{default:"inline"},cssFloat:{default:null},transform:{default:null},distTop:{default:null},distBottom:{default:null},distLeft:{default:null},distRight:{default:null},position:{default:null},borderWidth:{default:null},borderColor:{default:null},borderStyle:{default:null},wrapText:{default:null},hlinkHref:{default:null},cropTop:{default:null},cropRight:{default:null},cropBottom:{default:null},cropLeft:{default:null},opacity:{default:null},effectExtentTop:{default:null},effectExtentBottom:{default:null},effectExtentLeft:{default:null},effectExtentRight:{default:null},layoutInCell:{default:null},allowOverlap:{default:null}},parseDOM:[{tag:"img[src]",getAttrs(n){let t=n;return {src:t.getAttribute("src")||"",alt:t.getAttribute("alt")||void 0,title:t.getAttribute("title")||void 0,width:t.width||void 0,height:t.height||void 0,rId:t.dataset.rid||void 0,wrapType:t.dataset.wrapType||"inline",displayMode:t.dataset.displayMode||"inline",cssFloat:t.dataset.cssFloat||void 0,transform:t.dataset.transform||void 0,borderWidth:t.dataset.borderWidth?Number(t.dataset.borderWidth):void 0,borderColor:t.dataset.borderColor||void 0,borderStyle:t.dataset.borderStyle||void 0}}}],toDOM(n){let t=n.attrs,e={src:t.src,class:"docx-image"};t.alt&&(e.alt=t.alt),t.title&&(e.title=t.title),t.rId&&(e["data-rid"]=t.rId),t.wrapType&&(e["data-wrap-type"]=t.wrapType),t.displayMode&&(e["data-display-mode"]=t.displayMode),t.cssFloat&&(e["data-css-float"]=t.cssFloat),t.transform&&(e["data-transform"]=t.transform),t.borderWidth&&(e["data-border-width"]=String(t.borderWidth)),t.borderColor&&(e["data-border-color"]=t.borderColor),t.borderStyle&&(e["data-border-style"]=t.borderStyle);let r=[];if(t.width&&(e.width=String(t.width),r.push(`width: ${t.width}px`)),t.height&&(e.height=String(t.height),r.push(`height: ${t.height}px`)),r.push("max-width: 100%"),t.width&&t.height?r.push("object-fit: contain"):r.push("height: auto"),t.displayMode==="float"&&t.cssFloat&&t.cssFloat!=="none"){r.push(`float: ${t.cssFloat}`),e.class+=` docx-image-float docx-image-float-${t.cssFloat}`;let a=t.distTop??0,o=t.distBottom??0,s=t.distLeft??0,i=t.distRight??0;t.cssFloat==="left"?r.push(`margin: ${a}px ${i||12}px ${o}px ${s}px`):r.push(`margin: ${a}px ${i}px ${o}px ${s||12}px`);}else if(t.displayMode==="block"){r.push("display: block"),r.push("margin-left: auto"),r.push("margin-right: auto"),e.class+=" docx-image-block";let a=t.distTop??0,o=t.distBottom??0;a>0&&r.push(`margin-top: ${a}px`),o>0&&r.push(`margin-bottom: ${o}px`);}if(t.transform&&r.push(`transform: ${t.transform}`),t.borderWidth&&t.borderWidth>0){let a=t.borderStyle||"solid",o=t.borderColor||"#000000";r.push(`border: ${t.borderWidth}px ${a} ${o}`);}return e.style=r.join("; "),["img",e]}},onSchemaReady(n){let t=n.schema.nodes.image,e=(r,a,o)=>(s,i)=>{let l=s.doc.nodeAt(r);if(!l||l.type!==t)return false;let d=l.attrs,c=Ze(a,{wrapType:d.wrapType,cssFloat:d.cssFloat,position:d.position},o);return d.wrapType===c.wrapType&&d.displayMode===c.displayMode&&d.cssFloat===c.cssFloat&&d.wrapText===c.wrapText&&d.position===c.position||i&&i(s.tr.setNodeMarkup(r,void 0,{...d,...c})),true};return {commands:{setImageWrapType:(r,a,o)=>e(r,a,o)}}}});var qt=chunk7HANRHHL_js.c({name:"textBox",schemaNodeName:"textBox",nodeSpec:{group:"block",content:"(paragraph | table)+",isolating:true,draggable:true,attrs:{width:{default:200},height:{default:null},textBoxId:{default:null},fillColor:{default:null},outlineWidth:{default:null},outlineColor:{default:null},outlineStyle:{default:null},marginTop:{default:4},marginBottom:{default:4},marginLeft:{default:7},marginRight:{default:7},verticalAlign:{default:null},displayMode:{default:"inline"},cssFloat:{default:null},wrapType:{default:"inline"},wrapText:{default:null},anchorTarget:{default:null},position:{default:null},distTop:{default:null},distBottom:{default:null},distLeft:{default:null},distRight:{default:null}},parseDOM:[{tag:"div.docx-textbox",getAttrs(n){let t=n;return {width:t.dataset.width?Number(t.dataset.width):void 0,height:t.dataset.height?Number(t.dataset.height):void 0,textBoxId:t.dataset.textboxId||void 0,fillColor:t.dataset.fillColor||void 0,outlineWidth:t.dataset.outlineWidth?Number(t.dataset.outlineWidth):void 0,outlineColor:t.dataset.outlineColor||void 0,outlineStyle:t.dataset.outlineStyle||void 0,marginTop:t.dataset.marginTop?Number(t.dataset.marginTop):void 0,marginBottom:t.dataset.marginBottom?Number(t.dataset.marginBottom):void 0,marginLeft:t.dataset.marginLeft?Number(t.dataset.marginLeft):void 0,marginRight:t.dataset.marginRight?Number(t.dataset.marginRight):void 0,verticalAlign:t.dataset.verticalAlign||void 0,displayMode:t.dataset.displayMode||void 0,cssFloat:t.dataset.cssFloat||void 0,wrapType:t.dataset.wrapType||void 0,wrapText:t.dataset.wrapText||void 0,anchorTarget:t.dataset.anchorTarget||void 0,position:t.dataset.position?JSON.parse(t.dataset.position):void 0,distTop:t.dataset.distTop?Number(t.dataset.distTop):void 0,distBottom:t.dataset.distBottom?Number(t.dataset.distBottom):void 0,distLeft:t.dataset.distLeft?Number(t.dataset.distLeft):void 0,distRight:t.dataset.distRight?Number(t.dataset.distRight):void 0}}}],toDOM(n){let t=n.attrs,e={class:"docx-textbox"};t.width&&(e["data-width"]=String(t.width)),t.height&&(e["data-height"]=String(t.height)),t.textBoxId&&(e["data-textbox-id"]=t.textBoxId),t.fillColor&&(e["data-fill-color"]=t.fillColor),t.outlineWidth&&(e["data-outline-width"]=String(t.outlineWidth)),t.outlineColor&&(e["data-outline-color"]=t.outlineColor),t.outlineStyle&&(e["data-outline-style"]=t.outlineStyle),t.marginTop!=null&&(e["data-margin-top"]=String(t.marginTop)),t.marginBottom!=null&&(e["data-margin-bottom"]=String(t.marginBottom)),t.marginLeft!=null&&(e["data-margin-left"]=String(t.marginLeft)),t.marginRight!=null&&(e["data-margin-right"]=String(t.marginRight)),t.verticalAlign&&(e["data-vertical-align"]=t.verticalAlign),t.displayMode&&(e["data-display-mode"]=t.displayMode),t.cssFloat&&(e["data-css-float"]=t.cssFloat),t.wrapType&&(e["data-wrap-type"]=t.wrapType),t.wrapText&&(e["data-wrap-text"]=t.wrapText),t.anchorTarget&&(e["data-anchor-target"]=t.anchorTarget),t.position&&(e["data-position"]=JSON.stringify(t.position)),t.distTop!=null&&(e["data-dist-top"]=String(t.distTop)),t.distBottom!=null&&(e["data-dist-bottom"]=String(t.distBottom)),t.distLeft!=null&&(e["data-dist-left"]=String(t.distLeft)),t.distRight!=null&&(e["data-dist-right"]=String(t.distRight));let r=[];if(t.width&&r.push(`width: ${t.width}px`),t.height&&r.push(`min-height: ${t.height}px`),t.fillColor&&r.push(`background-color: ${t.fillColor}`),t.outlineWidth&&t.outlineWidth>0){let l=t.outlineStyle||"solid",d=t.outlineColor||"#000000";r.push(`border: ${t.outlineWidth}px ${l} ${d}`);}else r.push("border: 1px solid var(--doc-border, #d1d5db)");let a=t.marginTop??4,o=t.marginBottom??4,s=t.marginLeft??7,i=t.marginRight??7;return r.push(`padding: ${a}px ${i}px ${o}px ${s}px`),t.verticalAlign==="middle"||t.verticalAlign==="center"?(r.push("display: flex"),r.push("flex-direction: column"),r.push("justify-content: center")):t.verticalAlign==="bottom"&&(r.push("display: flex"),r.push("flex-direction: column"),r.push("justify-content: flex-end")),t.displayMode==="float"&&t.cssFloat&&t.cssFloat!=="none"?(r.push(`float: ${t.cssFloat}`),r.push("margin: 4px 8px")):t.displayMode==="block"&&(r.push("margin-left: auto"),r.push("margin-right: auto")),r.push("box-sizing: border-box"),r.push("overflow: hidden"),r.push("position: relative"),e.style=r.join("; "),["div",e,0]}}});function Qe(n,t,e){switch(n){case "ellipse":case "oval":return `<ellipse cx="${t/2}" cy="${e/2}" rx="${t/2}" ry="${e/2}" />`;case "roundRect":return `<rect x="0" y="0" width="${t}" height="${e}" rx="${Math.min(t,e)*.1}" />`;case "triangle":case "isosTriangle":return `<polygon points="${t/2},0 ${t},${e} 0,${e}" />`;case "diamond":return `<polygon points="${t/2},0 ${t},${e/2} ${t/2},${e} 0,${e/2}" />`;case "line":case "straightConnector1":return `<line x1="0" y1="${e/2}" x2="${t}" y2="${e/2}" />`;default:return `<rect x="0" y="0" width="${t}" height="${e}" />`}}function tn(n,t){let e="";try{e=JSON.parse(t.gradientStops||"[]").map(u=>`<stop offset="${Math.round(u.position/1e3)}%" stop-color="${u.color}" />`).join("");}catch{return ""}let r=t.gradientType||"linear";if(r==="radial"||r==="rectangular"||r==="path")return `<radialGradient id="${n}" cx="50%" cy="50%" r="50%">${e}</radialGradient>`;let o=((t.gradientAngle||0)-90)*Math.PI/180,s=Math.round(50+50*Math.cos(o+Math.PI)),i=Math.round(50+50*Math.sin(o+Math.PI)),l=Math.round(50+50*Math.cos(o)),d=Math.round(50+50*Math.sin(o));return `<linearGradient id="${n}" x1="${s}%" y1="${i}%" x2="${l}%" y2="${d}%">${e}</linearGradient>`}var Yt=chunk7HANRHHL_js.c({name:"shape",schemaNodeName:"shape",nodeSpec:{inline:true,group:"inline",marks:"_",draggable:true,atom:true,attrs:{shapeType:{default:"rect"},shapeId:{default:null},width:{default:100},height:{default:80},fillColor:{default:null},fillType:{default:"solid"},gradientType:{default:null},gradientAngle:{default:null},gradientStops:{default:null},outlineWidth:{default:1},outlineColor:{default:"#000000"},outlineStyle:{default:"solid"},transform:{default:null},displayMode:{default:"inline"},cssFloat:{default:null},wrapType:{default:"inline"},shadowColor:{default:null},shadowBlur:{default:null},shadowOffsetX:{default:null},shadowOffsetY:{default:null},glowColor:{default:null},glowRadius:{default:null}},parseDOM:[{tag:"span.docx-shape",getAttrs(n){let t=n;return {shapeType:t.dataset.shapeType||"rect",shapeId:t.dataset.shapeId||void 0,width:t.dataset.width?Number(t.dataset.width):void 0,height:t.dataset.height?Number(t.dataset.height):void 0,fillColor:t.dataset.fillColor||void 0,fillType:t.dataset.fillType||"solid",gradientType:t.dataset.gradientType||void 0,gradientAngle:t.dataset.gradientAngle?Number(t.dataset.gradientAngle):void 0,gradientStops:t.dataset.gradientStops||void 0,outlineWidth:t.dataset.outlineWidth?Number(t.dataset.outlineWidth):void 0,outlineColor:t.dataset.outlineColor||void 0,outlineStyle:t.dataset.outlineStyle||void 0,transform:t.dataset.transform||void 0,displayMode:t.dataset.displayMode||void 0,cssFloat:t.dataset.cssFloat||void 0,wrapType:t.dataset.wrapType||void 0,shadowColor:t.dataset.shadowColor||void 0,shadowBlur:t.dataset.shadowBlur?Number(t.dataset.shadowBlur):void 0,shadowOffsetX:t.dataset.shadowOffsetX?Number(t.dataset.shadowOffsetX):void 0,shadowOffsetY:t.dataset.shadowOffsetY?Number(t.dataset.shadowOffsetY):void 0,glowColor:t.dataset.glowColor||void 0,glowRadius:t.dataset.glowRadius?Number(t.dataset.glowRadius):void 0}}}],toDOM(n){let t=n.attrs,e=t.width||100,r=t.height||80,a={class:"docx-shape","data-shape-type":t.shapeType||"rect"};t.shapeId&&(a["data-shape-id"]=t.shapeId),a["data-width"]=String(e),a["data-height"]=String(r),t.fillColor&&(a["data-fill-color"]=t.fillColor),t.fillType&&(a["data-fill-type"]=t.fillType),t.gradientType&&(a["data-gradient-type"]=t.gradientType),t.gradientAngle!=null&&(a["data-gradient-angle"]=String(t.gradientAngle)),t.gradientStops&&(a["data-gradient-stops"]=t.gradientStops),t.outlineWidth&&(a["data-outline-width"]=String(t.outlineWidth)),t.outlineColor&&(a["data-outline-color"]=t.outlineColor),t.outlineStyle&&(a["data-outline-style"]=t.outlineStyle),t.transform&&(a["data-transform"]=t.transform),t.displayMode&&(a["data-display-mode"]=t.displayMode),t.cssFloat&&(a["data-css-float"]=t.cssFloat),t.wrapType&&(a["data-wrap-type"]=t.wrapType),t.shadowColor&&(a["data-shadow-color"]=t.shadowColor),t.shadowBlur!=null&&(a["data-shadow-blur"]=String(t.shadowBlur)),t.shadowOffsetX!=null&&(a["data-shadow-offset-x"]=String(t.shadowOffsetX)),t.shadowOffsetY!=null&&(a["data-shadow-offset-y"]=String(t.shadowOffsetY)),t.glowColor&&(a["data-glow-color"]=t.glowColor),t.glowRadius!=null&&(a["data-glow-radius"]=String(t.glowRadius));let o=["display: inline-block",`width: ${e}px`,`height: ${r}px`,"vertical-align: middle","line-height: 0"];if(t.transform&&o.push(`transform: ${t.transform}`),t.displayMode==="float"&&t.cssFloat&&t.cssFloat!=="none"?(o.push(`float: ${t.cssFloat}`),o.push("margin: 4px 8px")):t.displayMode==="block"&&(o.push("display: block"),o.push("margin: 4px auto")),t.shadowColor){let m=t.shadowOffsetX||2,k=t.shadowOffsetY||2,y=t.shadowBlur||4;o.push(`filter: drop-shadow(${m}px ${k}px ${y}px ${t.shadowColor})`);}if(t.glowColor&&t.glowRadius){let m=o.find(y=>y.startsWith("filter:")),k=`drop-shadow(0 0 ${t.glowRadius}px ${t.glowColor})`;if(m){let y=o.indexOf(m);o[y]=m+" "+k;}else o.push(`filter: ${k}`);}a.style=o.join("; ");let s="",i;if(t.fillType==="gradient"&&t.gradientStops){let m=`grad-${t.shapeId||Math.random().toString(36).slice(2,8)}`;i=`url(#${m})`,s=tn(m,t);}else i=t.fillType==="none"?"none":t.fillColor||"#ffffff";let l=t.outlineWidth||1,d=t.outlineColor||"#000000",c=t.outlineStyle==="dashed"?' stroke-dasharray="8 4"':t.outlineStyle==="dotted"?' stroke-dasharray="2 2"':"",u=Qe(t.shapeType||"rect",e,r),f=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${r}" viewBox="0 0 ${e} ${r}" style="fill:${i};stroke:${d};stroke-width:${l}${c}">`+(s?`<defs>${s}</defs>`:"")+u+"</svg>",g=document.createElement("span");return Object.entries(a).forEach(([m,k])=>{g.setAttribute(m,k);}),g.innerHTML=f,{dom:g}}}});var Jt=chunk7HANRHHL_js.c({name:"horizontalRule",schemaNodeName:"horizontalRule",nodeSpec:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return ["hr"]}}});var Zt=chunk7HANRHHL_js.c({name:"pageBreak",schemaNodeName:"pageBreak",nodeSpec:{group:"block",atom:true,selectable:true,parseDOM:[{tag:"div.docx-page-break"}],toDOM(){return ["div",{class:"docx-page-break"}]}}});var Qt=chunk7HANRHHL_js.c({name:"field",schemaNodeName:"field",nodeSpec:{inline:true,group:"inline",atom:true,selectable:true,attrs:{fieldType:{default:"UNKNOWN"},instruction:{default:""},displayText:{default:""},fieldKind:{default:"simple"},fldLock:{default:false},dirty:{default:false}},parseDOM:[{tag:"span.docx-field",getAttrs(n){let t=n;return {fieldType:t.dataset.fieldType||"UNKNOWN",instruction:t.dataset.instruction||"",displayText:t.textContent||"",fieldKind:t.dataset.fieldKind||"simple",fldLock:t.dataset.fldLock==="true",dirty:t.dataset.dirty==="true"}}}],toDOM(n){let{fieldType:t,instruction:e,displayText:r,fieldKind:a,fldLock:o,dirty:s}=n.attrs,i=r||"";if(!i)switch(t){case "PAGE":i="{page}";break;case "NUMPAGES":i="{pages}";break;case "DATE":case "TIME":case "CREATEDATE":case "SAVEDATE":i=new Date().toLocaleDateString();break;case "MERGEFIELD":i=`\xAB${e.replace(/^MERGEFIELD\s+/i,"").replace(/\s*\\.*$/,"")}\xBB`;break;default:i=`{${t}}`;}return ["span",{class:`docx-field docx-field-${t.toLowerCase()}`,"data-field-type":t,"data-instruction":e,"data-field-kind":a,...o?{"data-fld-lock":"true"}:{},...s?{"data-dirty":"true"}:{},style:"outline: 1px solid rgba(200,200,200,0.4); padding: 0 1px; border-radius: 2px;"},i]}}});var te=chunk7HANRHHL_js.c({name:"sdt",schemaNodeName:"sdt",nodeSpec:{inline:true,group:"inline",content:"inline*",attrs:{sdtType:{default:"richText"},id:{default:null},alias:{default:null},tag:{default:null},lock:{default:null},placeholder:{default:null},showingPlaceholder:{default:false},dateFormat:{default:null},listItems:{default:null},checked:{default:null},dataBinding:{default:null},rawPropertiesXml:{default:null},rawEndPropertiesXml:{default:null}},parseDOM:[{tag:"span.docx-sdt",getAttrs(n){let t=n,e=t.dataset.id,r=e!=null&&e!==""?parseInt(e,10):NaN;return {sdtType:t.dataset.sdtType||"richText",id:Number.isNaN(r)?null:r,alias:t.dataset.alias||null,tag:t.dataset.tag||null,lock:t.dataset.lock||null,placeholder:t.dataset.placeholder||null,showingPlaceholder:t.dataset.showingPlaceholder==="true",dateFormat:t.dataset.dateFormat||null,listItems:t.dataset.listItems||null,checked:t.dataset.checked==="true"?true:t.dataset.checked==="false"?false:null,dataBinding:t.dataset.dataBinding||null,rawPropertiesXml:t.dataset.rawPropertiesXml||null,rawEndPropertiesXml:t.dataset.rawEndPropertiesXml||null}}}],toDOM(n){let t=n.attrs,e={class:`docx-sdt docx-sdt-${t.sdtType}`,"data-sdt-type":String(t.sdtType)};return t.id!=null&&(e["data-id"]=String(t.id)),t.alias&&(e["data-alias"]=String(t.alias)),t.tag&&(e["data-tag"]=String(t.tag)),t.lock&&(e["data-lock"]=String(t.lock)),t.placeholder&&(e["data-placeholder"]=String(t.placeholder)),t.showingPlaceholder&&(e["data-showing-placeholder"]="true"),t.dateFormat&&(e["data-date-format"]=String(t.dateFormat)),t.listItems&&(e["data-list-items"]=String(t.listItems)),t.checked!=null&&(e["data-checked"]=String(t.checked)),t.dataBinding&&(e["data-data-binding"]=String(t.dataBinding)),t.rawPropertiesXml&&(e["data-raw-properties-xml"]=String(t.rawPropertiesXml)),t.rawEndPropertiesXml&&(e["data-raw-end-properties-xml"]=String(t.rawEndPropertiesXml)),t.sdtType==="checkbox"?e.style="border: 1px solid #ccc; border-radius: 3px; padding: 0 2px; display: inline;":e.style="border-bottom: 1px dashed #999; padding: 0 1px; display: inline;",["span",e,0]}}});var ee=chunk7HANRHHL_js.c({name:"blockSdt",schemaNodeName:"blockSdt",nodeSpec:{group:"block",content:"(paragraph | horizontalRule | pageBreak | table | textBox | blockSdt)+",isolating:true,defining:true,attrs:{sdtType:{default:"richText"},id:{default:null},alias:{default:null},tag:{default:null},lock:{default:null},placeholder:{default:null},showingPlaceholder:{default:false},dateFormat:{default:null},listItems:{default:null},checked:{default:null},dataBinding:{default:null},rawPropertiesXml:{default:null},rawEndPropertiesXml:{default:null}},parseDOM:[{tag:"div.docx-block-sdt",getAttrs(n){let t=n,e=t.dataset.id,r=e!=null&&e!==""?parseInt(e,10):NaN;return {sdtType:t.dataset.sdtType||"richText",id:Number.isNaN(r)?null:r,alias:t.dataset.alias||null,tag:t.dataset.tag||null,lock:t.dataset.lock||null,placeholder:t.dataset.placeholder||null,showingPlaceholder:t.dataset.showingPlaceholder==="true",dateFormat:t.dataset.dateFormat||null,listItems:t.dataset.listItems||null,checked:t.dataset.checked==="true"?true:t.dataset.checked==="false"?false:null,rawPropertiesXml:t.dataset.rawPropertiesXml||null,rawEndPropertiesXml:t.dataset.rawEndPropertiesXml||null}}}],toDOM(n){let t=n.attrs,e={class:`docx-block-sdt docx-block-sdt-${t.sdtType}`,"data-sdt-type":String(t.sdtType)};return t.id!=null&&(e["data-id"]=String(t.id)),t.alias&&(e["data-alias"]=String(t.alias)),t.tag&&(e["data-tag"]=String(t.tag)),t.lock&&(e["data-lock"]=String(t.lock)),t.placeholder&&(e["data-placeholder"]=String(t.placeholder)),t.showingPlaceholder&&(e["data-showing-placeholder"]="true"),t.dateFormat&&(e["data-date-format"]=String(t.dateFormat)),t.listItems&&(e["data-list-items"]=String(t.listItems)),t.checked!=null&&(e["data-checked"]=String(t.checked)),t.rawPropertiesXml&&(e["data-raw-properties-xml"]=String(t.rawPropertiesXml)),t.rawEndPropertiesXml&&(e["data-raw-end-properties-xml"]=String(t.rawEndPropertiesXml)),["div",e,0]}}});var ne=chunk7HANRHHL_js.c({name:"math",schemaNodeName:"math",nodeSpec:{inline:true,group:"inline",atom:true,selectable:true,attrs:{display:{default:"inline"},ommlXml:{default:""},plainText:{default:""}},parseDOM:[{tag:"span.docx-math",getAttrs(n){let t=n;return {display:t.dataset.display||"inline",ommlXml:t.dataset.ommlXml||"",plainText:t.textContent||""}}}],toDOM(n){let{display:t,ommlXml:e,plainText:r}=n.attrs,a=r||"[equation]";return ["span",{class:`docx-math docx-math-${t}`,"data-display":t,"data-omml-xml":e,style:'font-style: italic; font-family: "Cambria Math", "Latin Modern Math", serif; background: rgba(200,200,255,0.1); padding: 0 2px; border-radius: 2px;'},a]}}});var rn=new prosemirrorState.PluginKey("emptyParagraphFormat");function an(n){return !!(n.bold||n.italic||n.underline||n.strike||n.doubleStrike||n.color||n.highlight||n.vertAlign)}function on(n){return new prosemirrorState.Plugin({key:rn,appendTransaction(t,e,r){if(!t.some(d=>d.selectionSet||d.docChanged))return null;let{selection:a}=r;if(!a.empty||r.storedMarks!==null)return null;let o=a.$from.parent;if(o.type.name!=="paragraph"||o.content.size!==0)return null;let s=o.attrs.defaultTextFormatting;if(!s||!an(s))return null;let i=chunk5WINQXA3_js.g(s,n);if(i.length===0)return null;let l=r.tr.setStoredMarks(i);return l.setMeta("addToHistory",false),l}})}var re=chunk7HANRHHL_js.b({name:"emptyParagraphFormat",onSchemaReady(n){return {plugins:[on(n.schema)]}}});var ae=chunk7HANRHHL_js.b({name:"selectionTracker",defaultOptions:{},onSchemaReady(n,t){return {plugins:[chunk6LVPRTB6_js.c(t.onSelectionChange)],commands:{extractSelectionContext:()=>(e,r)=>(chunk6LVPRTB6_js.b(e),true)}}}});var dn=new prosemirrorState.PluginKey("imageDrag"),se=chunk7HANRHHL_js.b({name:"imageDrag",onSchemaReady(n){return {plugins:[new prosemirrorState.Plugin({key:dn,props:{handleDOMEvents:{dragstart(e,r){let{selection:a}=e.state;if(a instanceof prosemirrorState.NodeSelection&&a.node.type.name==="image"){e.dom.classList.add("pm-image-dragging");let o=r;if(o.dataTransfer){o.dataTransfer.effectAllowed="move";let s=document.createElement("div");s.style.cssText="position: fixed; left: -9999px; top: -9999px; opacity: 0.6; pointer-events: none; border: 2px dashed var(--doc-primary, #2563eb); border-radius: 4px; background: rgba(37, 99, 235, 0.08);",s.style.width=`${a.node.attrs.width||100}px`,s.style.height=`${a.node.attrs.height||100}px`,document.body.appendChild(s),o.dataTransfer.setDragImage(s,0,0),requestAnimationFrame(()=>{document.body.removeChild(s);});}}return false},dragend(e){return e.dom.classList.remove("pm-image-dragging"),e.dom.querySelectorAll(".pm-drop-indicator").forEach(a=>a.remove()),false},dragover(e,r){let{selection:a}=e.state;if(a instanceof prosemirrorState.NodeSelection&&a.node.type.name==="image"){let o=r;o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="move");}return false},drop(e){return e.dom.classList.remove("pm-image-dragging"),e.dom.querySelectorAll(".pm-drop-indicator").forEach(a=>a.remove()),false}}}})]}}});var D=612;async function pn(n){return await new Promise((t,e)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>e(r.error??new Error("Failed to read image file")),r.readAsDataURL(n);})}async function mn(n){return await new Promise((t,e)=>{let r=new Image;r.onload=()=>t({width:r.naturalWidth||1,height:r.naturalHeight||1}),r.onerror=()=>e(new Error("Failed to load pasted image")),r.src=n;})}async function fn(n,t){let e=n.state.schema.nodes.image;if(!e)return;let r=n.state.selection.from;for(let a of t){let o;try{o=await pn(a);}catch{continue}let s=1,i=1;try{({width:s,height:i}=await mn(o));}catch{s=1,i=1;}let l=s,d=i;if(l>D){let f=D/l;l=D,d=Math.max(1,Math.round(d*f));}let c=e.create({src:o,alt:a.name,width:l,height:d,rId:`rId_img_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,wrapType:"inline",displayMode:"inline"}),u=n.state.tr.insert(r,c);r+=c.nodeSize,u.setSelection(prosemirrorState.TextSelection.create(u.doc,r)),n.dispatch(u.scrollIntoView());}n.focus();}var ie=chunk7HANRHHL_js.b({name:"imagePaste",onSchemaReady(n){return {plugins:[new prosemirrorState.Plugin({props:{handleDOMEvents:{paste(e,r){let a=r,o=chunkBHBOAP6Z_js.j(a.clipboardData);return o.length===0||!e.state.schema.nodes.image?false:(a.preventDefault(),fn(e,o).catch(()=>{}),true)}}}})]}}});var le=chunk7HANRHHL_js.b({name:"dropCursor",onSchemaReady(){return {plugins:[prosemirrorDropcursor.dropCursor({color:"var(--doc-primary, #4285f4)",width:2})]}}});var de=chunk7HANRHHL_js.b({name:"bidiShortcut",priority:chunk7HANRHHL_js.a.High,onSchemaReady(n){let{manager:t}=n;return {plugins:[new prosemirrorState.Plugin({props:{handleKeyDown(e,r){if(r.key!=="Shift"||!(r.metaKey||r.ctrlKey))return false;let o=t.getCommands();return r.code==="ShiftLeft"?(r.preventDefault(),o.setLtr()(e.state,e.dispatch),true):r.code==="ShiftRight"?(r.preventDefault(),o.setRtl()(e.state,e.dispatch),true):false}}})]}}});function ue(n){let t={},e=n.split(";");for(let r of e){let a=r.trim();if(!a)continue;let o=a.indexOf(":");if(o<0)continue;let s=a.slice(0,o).trim(),i=a.slice(o+1).trim();s&&i&&(t[s]=i);}return t}function yn(n,t){let e=n.getAttribute("style")||"",r=ue(e);for(let[a,o]of Object.entries(t))a in r||n.style.setProperty(a,o);}function kn(n){let t=n.querySelectorAll("style");if(t.length===0)return;let e=[];for(let r of t){let a=r.textContent||"";if(a.trim())try{let o=n.createElement("style");o.textContent=a,n.head.appendChild(o);let s=o.sheet;if(s)for(let i=0;i<s.cssRules.length;i++){let l=s.cssRules[i];if(l instanceof CSSStyleRule){let d={},c=l.style;for(let u=0;u<c.length;u++){let f=c[u];d[f]=c.getPropertyValue(f);}Object.keys(d).length>0&&e.push({selector:l.selectorText,declarations:d});}}n.head.removeChild(o);}catch{let o=/([^{]+)\{([^}]+)\}/g,s;for(;(s=o.exec(a))!==null;){let i=s[1].trim(),l=ue(s[2]);Object.keys(l).length>0&&e.push({selector:i,declarations:l});}}}if(e.length!==0)for(let{selector:r,declarations:a}of e)try{let o=n.body.querySelectorAll(r);for(let s of o)yn(s,a);}catch{}}function Sn(n){let t=n.body.querySelectorAll('b[id^="docs-internal-guid-"]');for(let e of t){let r=e.parentNode;if(r){for(;e.firstChild;)r.insertBefore(e.firstChild,e);r.removeChild(e);}}}function bn(n){let t=n.includes("<style"),e=n.includes("docs-internal-guid-");if(!t&&!e)return n;try{let a=new DOMParser().parseFromString(n,"text/html");if(t){kn(a);let o=a.querySelectorAll("style");for(let s of o)s.remove();}return e&&Sn(a),a.body.innerHTML}catch{return n}}var ce=chunk7HANRHHL_js.b({name:"pasteStyleInliner",priority:chunk7HANRHHL_js.a.High,onSchemaReady(){return {plugins:[new prosemirrorState.Plugin({props:{transformPastedHTML(t){return bn(t)}}})]}}});function Qo(n={}){let t=new Set(n.disable||[]),e=[];function r(a,o){t.has(a)||e.push(o);}return r("doc",ft()),r("text",gt()),r("paragraph",st()),r("history",xt({depth:n.historyDepth,newGroupDelay:n.historyNewGroupDelay})),r("bold",kt()),r("italic",bt()),r("underline",Tt()),r("strike",Mt()),r("textColor",wt()),r("highlight",Ct()),r("fontSize",Pt()),r("fontFamily",It()),r("superscript",At()),r("subscript",Rt()),r("hyperlink",it()),r("allCaps",Nt()),r("smallCaps",Ft()),r("footnoteRef",vt()),r("characterSpacing",$t()),r("emboss",Dt()),r("imprint",Ht()),r("textShadow",Wt()),r("emphasisMark",zt()),r("textOutline",Ut()),r("hidden",Xt()),r("rtl",Vt()),r("textEffect",Kt()),r("comment",Lt()),r("insertion",Bt()),r("deletion",Ot()),r("hardBreak",_t()),r("tab",Gt()),r("image",jt()),r("textBox",qt()),r("shape",Yt()),r("imageDrag",se()),r("imagePaste",ie()),r("dropCursor",le()),r("horizontalRule",Jt()),r("pageBreak",Zt()),r("field",Qt()),r("sdt",te()),r("blockSdt",ee()),r("math",ne()),t.has("table")||e.push(...chunkX6AICTHN_js.j()),r("pasteStyleInliner",ce()),r("list",dt()),r("baseKeymap",chunk5WINQXA3_js.p()),r("emptyParagraphFormat",re()),r("selectionTracker",ae({onSelectionChange:n.onSelectionChange})),r("paragraphChangeTracker",ct()),r("paraIdAllocator",mt()),r("bidiShortcut",de()),e}var pe=class{constructor(t){chunkDC7S76ZX_js.a(this,"extensions");chunkDC7S76ZX_js.a(this,"schema",null);chunkDC7S76ZX_js.a(this,"plugins",[]);chunkDC7S76ZX_js.a(this,"commands",{});this.extensions=[...t].sort((e,r)=>e.config.priority-r.config.priority);}buildSchema(){let t={},e={};for(let r of this.extensions)r.type==="node"?t[r.config.schemaNodeName]=r.config.nodeSpec:r.type==="mark"&&(e[r.config.schemaMarkName]=r.config.markSpec);this.schema=new prosemirrorModel.Schema({nodes:t,marks:e});}initializeRuntime(){if(!this.schema)throw new Error("ExtensionManager: buildSchema() must be called before initializeRuntime()");let t={schema:this.schema,manager:this},e=[],r=[],a={};for(let o of this.extensions){let s=o.onSchemaReady(t);s.commands&&Object.assign(a,s.commands),s.keyboardShortcuts&&e.push(s.keyboardShortcuts),s.plugins&&r.push(...s.plugins);}this.plugins=[...r,...e.map(o=>prosemirrorKeymap.keymap(o))],this.commands=a;}getSchema(){if(!this.schema)throw new Error("ExtensionManager: buildSchema() must be called first");return this.schema}getPlugins(){return this.plugins}getCommands(){return this.commands}getCommand(t){return this.commands[t]}destroy(){this.plugins=[],this.commands={};}};
2
- exports.a=Rn;exports.b=Nn;exports.c=Fn;exports.d=vn;exports.e=On;exports.f=Dn;exports.g=Hn;exports.h=Wn;exports.i=_n;exports.j=Gn;exports.k=Qn;exports.l=tr;exports.m=er;exports.n=nr;exports.o=ct;exports.p=ir;exports.q=Qo;exports.r=pe;