@eigenpal/docx-editor-core 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.mts +7 -6
- package/dist/agent/index.d.ts +7 -6
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-2LVK7EF5.mjs +2 -0
- package/dist/chunk-3HENAL6V.mjs +2 -0
- package/dist/{chunk-BUEMXRXH.js → chunk-3SJQRYO7.js} +1 -1
- package/dist/chunk-4JPHW7ZI.js +2 -0
- package/dist/chunk-4RQAAKQI.mjs +1 -0
- package/dist/{chunk-OF373DBR.mjs → chunk-5HA66FH4.mjs} +1 -1
- package/dist/chunk-5WINQXA3.js +1 -0
- package/dist/{chunk-3QPKTG2Y.js → chunk-6KM4VW4L.js} +2 -2
- package/dist/chunk-AA6D2C6R.js +4 -0
- package/dist/{chunk-7CZEZ3UL.mjs → chunk-AMJNIGO2.mjs} +1 -1
- package/dist/chunk-BTSL4AYY.js +1 -0
- package/dist/{chunk-HPAUUQAX.mjs → chunk-CBKJOPOW.mjs} +1 -1
- package/dist/chunk-CDBKFBC2.mjs +15 -0
- package/dist/chunk-COV4LHQ7.js +1 -0
- package/dist/chunk-DZ3FN3JI.js +2 -0
- package/dist/chunk-ENIWJBS7.mjs +2 -0
- package/dist/{chunk-55XWETY4.mjs → chunk-EZNVVB63.mjs} +1 -1
- package/dist/{chunk-CHN26LLL.mjs → chunk-F24WZXN4.mjs} +1 -1
- package/dist/{chunk-ZBCFIW2V.js → chunk-GB7RICH6.js} +1 -1
- package/dist/{chunk-CZSAC65M.js → chunk-GFM6PERG.js} +1 -1
- package/dist/chunk-GKAXYZCE.mjs +1 -0
- package/dist/chunk-H57LNDBH.js +1 -0
- package/dist/chunk-IGYHDSM7.mjs +1 -0
- package/dist/{chunk-BH3ACQ3M.js → chunk-JQUIUKRO.js} +3 -3
- package/dist/chunk-L6ZRNW7Y.mjs +1 -0
- package/dist/{chunk-Q4IEATDJ.js → chunk-LJ2TB6CY.js} +1 -1
- package/dist/{chunk-DFUWJHKF.mjs → chunk-M3UL6EUU.mjs} +3 -3
- package/dist/chunk-M7KTKPGO.mjs +1 -0
- package/dist/chunk-MA3HLGFO.js +1 -0
- package/dist/chunk-ND33YQGU.js +1 -0
- package/dist/{chunk-KXVCCT2A.js → chunk-NPFFCPZ6.js} +1 -1
- package/dist/chunk-NTBZRITU.mjs +1 -0
- package/dist/{chunk-SCK6ZM5V.js → chunk-O2643IUW.js} +1 -1
- package/dist/chunk-P7HWOJC5.js +2 -0
- package/dist/{chunk-YNUPP7UG.mjs → chunk-PYDX4MOT.mjs} +2 -2
- package/dist/{chunk-CHTIWTHQ.mjs → chunk-QUM4DFRE.mjs} +1 -1
- package/dist/chunk-QVRMX2AC.js +15 -0
- package/dist/chunk-QXSDGNJ4.js +1 -0
- package/dist/{chunk-FYRJTDC4.mjs → chunk-QZPVZY6S.mjs} +1 -1
- package/dist/chunk-RT52EYG3.mjs +4 -0
- package/dist/chunk-SHYNWAW6.mjs +1 -0
- package/dist/chunk-SKBHY5MK.mjs +1 -0
- package/dist/chunk-SNTAAXXA.mjs +1 -0
- package/dist/chunk-T4O4PFJD.mjs +1 -0
- package/dist/chunk-TAQTZAVZ.js +1 -0
- package/dist/{chunk-2SGJZYQF.js → chunk-TDYWEVAE.js} +1 -1
- package/dist/{chunk-6IZOFIQH.js → chunk-TV6JLFY5.js} +1 -1
- package/dist/chunk-UKMKGIME.js +1 -0
- package/dist/chunk-UXPY65AC.js +1 -0
- package/dist/chunk-VDKSZ5BQ.mjs +1 -0
- package/dist/chunk-VJFIAFZ5.mjs +1 -0
- package/dist/chunk-WQRWRWSK.js +1 -0
- package/dist/chunk-WWVIVYX6.mjs +1 -0
- package/dist/chunk-WXSGCEBZ.js +1 -0
- package/dist/{chunk-GGUHM74A.mjs → chunk-WYFK4QOF.mjs} +1 -1
- package/dist/chunk-X6AICTHN.js +1 -0
- package/dist/chunk-YHXVNJK5.mjs +1 -0
- package/dist/{chunk-J3YFJDZD.js → chunk-ZETEPB7I.js} +1 -1
- package/dist/{colorResolver-8A-qj-LP.d.ts → colorResolver-C696sd9x.d.ts} +1 -1
- package/dist/{colorResolver-BCvxTlLF.d.mts → colorResolver-DCBfI4ld.d.mts} +1 -1
- package/dist/{content-3xF4WDE8.d.mts → content-BlWiORm-.d.mts} +3 -147
- package/dist/{content-C8fc_tL6.d.ts → content-eG_Rtl0l.d.ts} +3 -147
- package/dist/{contentControlValues-DGDKD589.d.ts → contentControlValues-CO7pUqOf.d.ts} +1 -1
- package/dist/{contentControlValues-DjWvoJQ-.d.mts → contentControlValues-DfYN9BZ8.d.mts} +1 -1
- package/dist/core-plugins.d.mts +4 -3
- package/dist/core-plugins.d.ts +4 -3
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +11 -10
- package/dist/core.d.ts +11 -10
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentStyles-qR0VR2s0.d.mts → documentStyles-1G0xTl1v.d.mts} +1 -1
- package/dist/{documentStyles-C7k_8Sye.d.ts → documentStyles-Bw98BwEy.d.ts} +1 -1
- package/dist/docx/index.d.mts +7 -67
- package/dist/docx/index.d.ts +7 -67
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +4 -3
- package/dist/docx/parser.d.ts +4 -3
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +4 -3
- package/dist/docx/rezip.d.ts +4 -3
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +5 -4
- package/dist/docx/serializer/index.d.ts +5 -4
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/editor/index.d.mts +4 -3
- package/dist/editor/index.d.ts +4 -3
- package/dist/editor/index.js +1 -1
- package/dist/editor/index.mjs +1 -1
- package/dist/{fontLoader-CUS1BPv7.d.mts → fontLoader-3MFD_Hj2.d.mts} +48 -5
- package/dist/{fontLoader-Dl9SEKex.d.ts → fontLoader-C6VvBUVB.d.ts} +48 -5
- package/dist/{formatting-BH4hcZiq.d.mts → formatting-DFtuRFQY.d.mts} +13 -0
- package/dist/{formatting-_OXU8gLB.d.ts → formatting-JhqWT_XM.d.ts} +13 -0
- package/dist/{headerFooterLayout-CU6hvszp.d.mts → headerFooterLayout-DJb-dV7X.d.mts} +2 -2
- package/dist/{headerFooterLayout-AtAOhM8E.d.ts → headerFooterLayout-bdHWlU6g.d.ts} +2 -2
- package/dist/headless.d.mts +9 -8
- package/dist/headless.d.ts +9 -8
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/clickToPositionDom.js +1 -1
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +5 -4
- package/dist/layout-bridge/index.d.ts +5 -4
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +3 -2
- package/dist/layout-bridge/measuring/index.d.ts +3 -2
- package/dist/layout-bridge/measuring/index.js +1 -1
- package/dist/layout-bridge/measuring/index.mjs +1 -1
- package/dist/layout-bridge/tableInsertHover.js +1 -1
- package/dist/layout-bridge/tableInsertHover.mjs +1 -1
- package/dist/layout-bridge/toFlowBlocks.d.mts +4 -3
- package/dist/layout-bridge/toFlowBlocks.d.ts +4 -3
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +4 -3
- package/dist/layout-engine/index.d.ts +4 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +21 -9
- package/dist/layout-engine/types.d.ts +21 -9
- package/dist/layout-painter/index.d.mts +5 -4
- package/dist/layout-painter/index.d.ts +5 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +5 -4
- package/dist/layout-painter/renderPage.d.ts +5 -4
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/lists-Bn29SzeS.d.ts +148 -0
- package/dist/lists-CyGxd5Y2.d.mts +148 -0
- package/dist/managers/AutoSaveManager.d.mts +4 -3
- package/dist/managers/AutoSaveManager.d.ts +4 -3
- package/dist/managers/TableSelectionManager.d.mts +4 -3
- package/dist/managers/TableSelectionManager.d.ts +4 -3
- package/dist/managers/types.d.mts +4 -3
- package/dist/managers/types.d.ts +4 -3
- package/dist/{marks-BY573yZn.d.mts → marks-CzrbFi4o.d.mts} +1 -1
- package/dist/{marks-CjC9tF5k.d.ts → marks-Dq1QsxKA.d.ts} +1 -1
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +4 -3
- package/dist/mcp.d.ts +4 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +7 -7
- package/dist/{nodes-75Q9GBxV.d.ts → nodes-BJef4KFW.d.ts} +17 -2
- package/dist/{nodes-cEI7hVY2.d.mts → nodes-RfTS-NSv.d.mts} +17 -2
- package/dist/numberingParser-ZSQ3SDCV.d.ts +81 -0
- package/dist/numberingParser-nSPZlzKr.d.mts +81 -0
- package/dist/prosemirror/applyFormatting.d.mts +5 -2
- package/dist/prosemirror/applyFormatting.d.ts +5 -2
- package/dist/prosemirror/applyFormatting.js +1 -1
- package/dist/prosemirror/applyFormatting.mjs +1 -1
- package/dist/prosemirror/cellDragSelection.d.mts +46 -0
- package/dist/prosemirror/cellDragSelection.d.ts +46 -0
- package/dist/prosemirror/cellDragSelection.js +1 -0
- package/dist/prosemirror/cellDragSelection.mjs +1 -0
- package/dist/prosemirror/commands/formatting.d.mts +2 -2
- package/dist/prosemirror/commands/formatting.d.ts +2 -2
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +32 -3
- package/dist/prosemirror/commands/index.d.ts +32 -3
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.d.mts +11 -1
- package/dist/prosemirror/commands/paragraph.d.ts +11 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/commentIdAllocator.d.mts +3 -2
- package/dist/prosemirror/commentIdAllocator.d.ts +3 -2
- package/dist/prosemirror/commentOps.d.mts +3 -2
- package/dist/prosemirror/commentOps.d.ts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +4 -3
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +4 -3
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +4 -3
- package/dist/prosemirror/conversion/index.d.ts +4 -3
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +13 -0
- package/dist/prosemirror/extensions/index.d.mts +1 -1
- package/dist/prosemirror/extensions/index.d.ts +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
- package/dist/prosemirror/index.d.mts +20 -10
- package/dist/prosemirror/index.d.ts +20 -10
- package/dist/prosemirror/index.js +3 -3
- package/dist/prosemirror/index.mjs +3 -3
- package/dist/prosemirror/plugins/index.d.mts +5 -4
- package/dist/prosemirror/plugins/index.d.ts +5 -4
- package/dist/prosemirror/plugins/index.js +1 -1
- package/dist/prosemirror/plugins/index.mjs +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
- package/dist/prosemirror/queries.d.mts +45 -3
- package/dist/prosemirror/queries.d.ts +45 -3
- package/dist/prosemirror/queries.js +2 -2
- package/dist/prosemirror/queries.mjs +2 -2
- package/dist/prosemirror/schema/index.d.mts +5 -4
- package/dist/prosemirror/schema/index.d.ts +5 -4
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +2 -2
- package/dist/prosemirror/styles/index.d.ts +2 -2
- package/dist/prosemirror/tableResize.js +1 -1
- package/dist/prosemirror/tableResize.mjs +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +3 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +3 -2
- package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
- package/dist/{sectionPropertiesSerializer-D86QlzlT.d.mts → sectionPropertiesSerializer-C8XCmzE4.d.mts} +1 -1
- package/dist/{sectionPropertiesSerializer-uXyGONxu.d.ts → sectionPropertiesSerializer-S8J1V9mb.d.ts} +1 -1
- package/dist/{selectionContext-BPAqgNgk.d.ts → selectionContext-BJZZW1JA.d.ts} +1 -1
- package/dist/{selectionContext-CoZat7QZ.d.mts → selectionContext-BjMyVQZO.d.mts} +1 -1
- package/dist/{styles-BOJ93SAm.d.mts → styles-Dqec8Aw6.d.mts} +1 -1
- package/dist/{styles-BWqX2AS-.d.ts → styles-gEujs7j6.d.ts} +1 -1
- package/dist/types/agentApi.d.mts +1 -1
- package/dist/types/agentApi.d.ts +1 -1
- package/dist/types/content.d.mts +3 -2
- package/dist/types/content.d.ts +3 -2
- package/dist/types/document.d.mts +7 -5
- package/dist/types/document.d.ts +7 -5
- package/dist/utils/comments.d.mts +3 -2
- package/dist/utils/comments.d.ts +3 -2
- package/dist/utils/index.d.mts +6 -5
- package/dist/utils/index.d.ts +6 -5
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.mjs +3 -3
- package/dist/{variableDetector-CaY-sDau.d.mts → variableDetector-CN9_pUR_.d.mts} +1 -1
- package/dist/{variableDetector-1mxzPfs2.d.ts → variableDetector-o4Rb2Csy.d.ts} +1 -1
- package/package.json +9 -1
- package/dist/chunk-2WGTGBBS.js +0 -2
- package/dist/chunk-3G44SFHX.mjs +0 -4
- package/dist/chunk-77GRQUSK.js +0 -1
- package/dist/chunk-7LRR7RKE.mjs +0 -15
- package/dist/chunk-CRMZH7U7.mjs +0 -2
- package/dist/chunk-D3PRIF3Y.mjs +0 -1
- package/dist/chunk-EM33RGHT.mjs +0 -1
- package/dist/chunk-ESCPS4AO.mjs +0 -1
- package/dist/chunk-EUZLYQRB.mjs +0 -1
- package/dist/chunk-EV4LVK4X.js +0 -1
- package/dist/chunk-FW23IMBF.mjs +0 -1
- package/dist/chunk-HKN2NKOG.mjs +0 -1
- package/dist/chunk-INDYZOOS.js +0 -1
- package/dist/chunk-IUJCUITW.mjs +0 -1
- package/dist/chunk-IYKBX24M.js +0 -1
- package/dist/chunk-JHTURDPX.mjs +0 -1
- package/dist/chunk-KAOLVBLH.js +0 -1
- package/dist/chunk-L5NPEM7C.js +0 -1
- package/dist/chunk-LERLET2D.js +0 -4
- package/dist/chunk-MNOHUTKE.js +0 -15
- package/dist/chunk-NAFMAKLK.js +0 -2
- package/dist/chunk-OEC6SBDV.mjs +0 -1
- package/dist/chunk-OTHV7YV2.js +0 -2
- package/dist/chunk-QAJSNLJR.mjs +0 -1
- package/dist/chunk-RSU4HTC6.js +0 -1
- package/dist/chunk-TUIEV7Q7.js +0 -1
- package/dist/chunk-U67MWOPZ.mjs +0 -1
- package/dist/chunk-UE2ZKRYB.mjs +0 -2
- package/dist/chunk-WVERBZZU.js +0 -1
- package/dist/chunk-WWNOXNEX.mjs +0 -2
- package/dist/chunk-XLB6AC5Q.js +0 -1
- package/dist/chunk-YPQACU4A.js +0 -1
- package/dist/chunk-ZX26QZJ5.mjs +0 -1
package/dist/chunk-LERLET2D.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkSCK6ZM5V_js=require('./chunk-SCK6ZM5V.js'),chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js'),chunk3R7QHNI5_js=require('./chunk-3R7QHNI5.js');var He={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},J={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ge={name:"Office Theme",colorScheme:He,fontScheme:J},gt=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function ht(e){if(!e)return null;switch(chunk3R7QHNI5_js.d(e.name||"")){case "srgbClr":return chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val")??null;case "sysClr":{let n=chunk3R7QHNI5_js.j(e,"a","lastClr")??chunk3R7QHNI5_js.j(e,null,"lastClr");if(n)return n;switch(chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val");return null}default:return null}}function wt(e){let t={...He};if(!e)return t;for(let n of gt){let o=chunk3R7QHNI5_js.e(e,"a",n);if(o){let r=chunk3R7QHNI5_js.i(o);if(r.length>0){let a=ht(r[0]);a&&(t[n]=a);}}}return t}function Ne(e){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","latin");n&&(t.latin=chunk3R7QHNI5_js.j(n,"a","typeface")??chunk3R7QHNI5_js.j(n,null,"typeface")??"");let o=chunk3R7QHNI5_js.e(e,"a","ea");o&&(t.ea=chunk3R7QHNI5_js.j(o,"a","typeface")??chunk3R7QHNI5_js.j(o,null,"typeface")??"");let r=chunk3R7QHNI5_js.e(e,"a","cs");r&&(t.cs=chunk3R7QHNI5_js.j(r,"a","typeface")??chunk3R7QHNI5_js.j(r,null,"typeface")??"");let a=chunk3R7QHNI5_js.f(e,"a","font");for(let u of a){let l=chunk3R7QHNI5_js.j(u,"a","script")??chunk3R7QHNI5_js.j(u,null,"script"),f=chunk3R7QHNI5_js.j(u,"a","typeface")??chunk3R7QHNI5_js.j(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function yt(e){let t={...J};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","majorFont");n&&(t.majorFont=Ne(n));let o=chunk3R7QHNI5_js.e(e,"a","minorFont");return o&&(t.minorFont=Ne(o)),t}function In(e){if(!e)return {...ge};try{let t=chunk3R7QHNI5_js.c(e);if(!t)return {...ge};let n=chunk3R7QHNI5_js.j(t,"a","name")??chunk3R7QHNI5_js.j(t,null,"name")??"Office Theme",o=chunk3R7QHNI5_js.e(t,"a","themeElements"),r=chunk3R7QHNI5_js.e(o,"a","clrScheme"),a=wt(r),u=chunk3R7QHNI5_js.e(o,"a","fontScheme"),l=yt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...ge}}}function bt(e,t="latin"){if(!e?.fontScheme?.majorFont)return J.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function Ae(e,t="latin"){if(!e?.fontScheme?.minorFont)return J.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function $(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),o=t.toLowerCase().includes("minor"),r="latin",a=t.toLowerCase();return a.includes("eastasia")?r="ea":(a.includes("bidi")||a.includes("cs"))&&(r="cs"),n?bt(e,r):o?Ae(e,r):Ae(e,"latin")}function Ie(e){if(!e)return;let t=chunk3R7QHNI5_js.l(e,"w","w")??0,n=chunk3R7QHNI5_js.j(e,"w","type")??"dxa",o="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(o=n),{value:t,type:o}}function O(e){return Ie(e)}function V(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),r=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0}}function ee(e){return V(e)}function W(e){if(!e)return;let o={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunk3R7QHNI5_js.j(e,"w","color"),l=chunk3R7QHNI5_js.j(e,"w","themeColor"),f=chunk3R7QHNI5_js.j(e,"w","themeTint"),c=chunk3R7QHNI5_js.j(e,"w","themeShade");(u||l||f||c)&&(o.color={rgb:u??void 0,themeColor:l,themeTint:f??void 0,themeShade:c??void 0});let p=chunk3R7QHNI5_js.j(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let d=chunk3R7QHNI5_js.j(e,"w","frame");return (d==="1"||d==="true")&&(o.frame=true),o}function te(e){if(!e)return;let t={},n=W(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let o=W(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=W(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));r&&(t.left=r);let a=W(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));a&&(t.right=a);let u=W(chunk3R7QHNI5_js.e(e,"w","insideH"));u&&(t.insideH=u);let l=W(chunk3R7QHNI5_js.e(e,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function ne(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let o=O(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=O(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));r&&(t.left=r);let a=O(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function oe(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","themeFill");if(o){t.fill={themeColor:o};let u=chunk3R7QHNI5_js.j(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=chunk3R7QHNI5_js.j(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let r=chunk3R7QHNI5_js.j(e,"w","color");r&&r!=="auto"&&(t.color={rgb:r});let a=chunk3R7QHNI5_js.j(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function he(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunk3R7QHNI5_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunk3R7QHNI5_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunk3R7QHNI5_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunk3R7QHNI5_js.j(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=chunk3R7QHNI5_js.j(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=chunk3R7QHNI5_js.j(e,"w","val");if(f){let c=parseInt(f,16);isNaN(c)||(c&32&&(t.firstRow=true),c&64&&(t.lastRow=true),c&128&&(t.firstColumn=true),c&256&&(t.lastColumn=true),c&512&&(t.noHBand=true),c&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function we(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let o=chunk3R7QHNI5_js.j(e,"w","vertAnchor");(o==="margin"||o==="page"||o==="text")&&(t.vertAnchor=o);let r=chunk3R7QHNI5_js.l(e,"w","tblpX");r!==void 0&&(t.tblpX=r);let a=chunk3R7QHNI5_js.j(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=chunk3R7QHNI5_js.l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l=chunk3R7QHNI5_js.j(e,"w","tblpYSpec");l&&(t.tblpYSpec=l);let f=chunk3R7QHNI5_js.l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=chunk3R7QHNI5_js.l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let p=chunk3R7QHNI5_js.l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let d=chunk3R7QHNI5_js.l(e,"w","rightFromText");if(d!==void 0&&(t.rightFromText=d),Object.keys(t).length!==0)return t}function Tt(e){return e.columnWidths&&e.columnWidths.length>0?e.columnWidths.length:e.rows.length===0?0:e.rows[0].cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function Ct(e){return e.rows.length}function Ft(e){return e.formatting?.vMerge==="continue"}function xt(e){return e.formatting?.vMerge==="restart"}function kt(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var St={richText:"richText",text:"plainText",date:"date",dropDownList:"dropDownList",comboBox:"comboBox",picture:"picture",docPartObj:"buildingBlockGallery",docPartList:"buildingBlockGallery",group:"group",equation:"equation",citation:"citation",bibliography:"bibliography",checkbox:"checkbox"};function Mt(e){if(!e||!e.elements)return "richText";for(let t of e.elements){if(t.type!=="element"||!t.name)continue;let n=chunk3R7QHNI5_js.d(t.name),o=St[n];if(o)return o}return "richText"}function Rt(e){let t=[];for(let n of e.elements??[])n.type==="element"&&chunk3R7QHNI5_js.d(n.name||"")==="listItem"&&t.push({displayText:chunk3R7QHNI5_js.j(n,"w","displayText")||"",value:chunk3R7QHNI5_js.j(n,"w","value")||""});return t}function re(e,t){let n={sdtType:Mt(e)};if(e){n.rawPropertiesXml=chunk3R7QHNI5_js.b(e);for(let o of e.elements??[]){if(o.type!=="element"||!o.name)continue;switch(chunk3R7QHNI5_js.d(o.name)){case "id":{let a=chunk3R7QHNI5_js.j(o,"w","val");if(a!=null){let u=parseInt(a,10);Number.isNaN(u)||(n.id=u);}break}case "alias":n.alias=chunk3R7QHNI5_js.j(o,"w","val")??void 0;break;case "tag":n.tag=chunk3R7QHNI5_js.j(o,"w","val")??void 0;break;case "lock":n.lock=chunk3R7QHNI5_js.j(o,"w","val")??"unlocked";break;case "placeholder":{let a=chunk3R7QHNI5_js.e(o,"w","docPart");a&&(n.placeholder=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "showingPlcHdr":{let a=chunk3R7QHNI5_js.j(o,"w","val");n.showingPlaceholder=a==null||!/^(0|false|off)$/i.test(a);break}case "date":{let a=chunk3R7QHNI5_js.e(o,"w","dateFormat");a&&(n.dateFormat=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "dropDownList":case "comboBox":n.listItems=Rt(o);break;case "checkbox":{let a=chunk3R7QHNI5_js.e(o,"w14","checked")??chunk3R7QHNI5_js.e(o,"w","checked");n.checked=a?chunk3R7QHNI5_js.j(a,"w14","val")==="1"||chunk3R7QHNI5_js.j(a,"w","val")==="1":false;break}case "dataBinding":{let a={},u=chunk3R7QHNI5_js.j(o,"w","xpath"),l=chunk3R7QHNI5_js.j(o,"w","storeItemID"),f=chunk3R7QHNI5_js.j(o,"w","prefixMappings");u!=null&&(a.xpath=u),l!=null&&(a.storeItemID=l),f!=null&&(a.prefixMappings=f),n.dataBinding=a;break}}}}return t&&(n.rawEndPropertiesXml=chunk3R7QHNI5_js.b(t)),n}var Le={183:"\u2022",111:"\u25CB",167:"\u25A0",252:"\u2713",110:"\u25A0",113:"\u25CB",117:"\u25C6",118:"\u2756",168:"\u2713",251:"\u2713",254:"\u2713",61623:"\u2022",61550:"\u25A0",61551:"\u25CB",61607:"\u25A0",61692:"\u2713",8226:"\u2022",9679:"\u25CF",9675:"\u25CB",9632:"\u25A0",9633:"\u25A1",9670:"\u25C6",9671:"\u25C7",8211:"\u2013",8212:"\u2014",62:">",45:"-"};function Et(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Le[t]?Le[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Pt(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=Et(t.marker||""));}function Bt(e,t,n,o,r,a,u){if(e.content.length===0)return;let l=chunk3R7QHNI5_js.i(t),f=0;function c(p){if(!chunkSCK6ZM5V_js.h(p))return;let d=chunkSCK6ZM5V_js.j(p);if(!d)return;let w=chunk3R7QHNI5_js.n(p,"wps","wsp");if(w){let b=chunkSCK6ZM5V_js.k(w);b&&(d.content=chunkSCK6ZM5V_js.g(b,Y,null,n,o,r,a??void 0,u??void 0));}let C={type:"shape",shapeType:"rect",size:d.size,position:d.position,wrap:d.wrap,fill:d.fill,outline:d.outline,textBody:{content:d.content,margins:d.margins}};d.id&&(C.id=d.id);let y={type:"shape",shape:C},h=f;if(h>=e.content.length){h=-1;for(let b=e.content.length-1;b>=0;b--)if(e.content[b].type==="run"){h=b;break}}if(h>=0){let b=e.content[h];b.type==="run"&&b.content.push(y);}}for(let p of l){if(chunk3R7QHNI5_js.d(p.name??"")!=="r")continue;let d=chunk3R7QHNI5_js.i(p);for(let w of d){let C=chunk3R7QHNI5_js.d(w.name??"");if(C==="drawing")c(w);else if(C==="AlternateContent"){let y=chunk3R7QHNI5_js.i(w),b=y.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Choice")??y.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Fallback");if(b)for(let P of chunk3R7QHNI5_js.i(b))chunk3R7QHNI5_js.d(P.name??"")==="drawing"&&c(P);}}f++;}}function q(e,t,n,o,r,a,u){let l=[],f=chunk3R7QHNI5_js.i(e);for(let c of f){let p=c.name??"";if(p==="w:p"||p.endsWith(":p")){let d=Y(c,t,n,o,r,a,u);Bt(d,c,t,n,o,r,a),Pt(d),l.push(d);}else if(p==="w:tbl"||p.endsWith(":tbl")){let d=ye(c,t,n,o,r,a,u);l.push(d);}else (p==="w:sdt"||p.endsWith(":sdt"))&&l.push(vt(c,t,n,o,r,a,u));}return l}function vt(e,t,n,o,r,a,u){let l=chunk3R7QHNI5_js.e(e,"w","sdtPr"),f=chunk3R7QHNI5_js.e(e,"w","sdtEndPr"),c=chunk3R7QHNI5_js.e(e,"w","sdtContent"),p=re(l,f),d=c?q(c,t,n,o,r,a,u):[];return {type:"blockSdt",properties:p,content:d}}function Xe(e){let t={};if(!e)return t;for(let n of e.split(";")){let o=n.indexOf(":");if(o<0)continue;let r=n.slice(0,o).trim().toLowerCase(),a=n.slice(o+1).trim();r&&(t[r]=a);}return t}function Nt(e){if(!e)return "#C0C0C0";let t=e.trim();return t.startsWith("#")?t:/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:t}function Oe(e){if(!e)return;let t=e.match(/^(-?[0-9.]+)(pt|px|in|cm|mm)?$/);if(!t)return;let n=parseFloat(t[1]);if(!isNaN(n))switch(t[2]){case "in":return n*96;case "cm":return n/2.54*96;case "mm":return n/25.4*96;case "px":return n;default:return n*96/72}}var De=914400/96;function At(e,t,n){if(!e||!t)return {};let o=t.get(e);if(!o?.target)return {};let r=o.target,a=r.split("/").pop()??r,u=[r,r.replace(/^\/+/,""),`word/${r.replace(/^\/+/,"")}`,`word/media/${a}`,`media/${a}`];if(n)for(let l of u){let f=l.toLowerCase();for(let[c,p]of n.entries())if(c.toLowerCase()===f)return {dataUrl:p.dataUrl??p.base64,mediaPath:p.path,contentType:p.mimeType}}return {}}function Ht(e,t){return !!(t.includes("watermark")||(chunk3R7QHNI5_js.j(e,null,"type")??"").includes("_t136"))}function We(e,t=null,n=null){if(!e)return;let o=chunk3R7QHNI5_js.o(e,"v","shape");for(let r of o){let a=(chunk3R7QHNI5_js.j(r,null,"id")??"").toLowerCase(),u=chunk3R7QHNI5_js.i(r),l=u.find(w=>w.name==="v:textpath"||w.name?.endsWith(":textpath")),f=u.find(w=>w.name==="v:imagedata"||w.name?.endsWith(":imagedata"));if(!Ht(r,a)&&!l&&!f)continue;let c=Xe(chunk3R7QHNI5_js.j(r,null,"style")),p=parseFloat(c.rotation??"0")||0,d=Math.abs(p)>5;if(l){let w=chunk3R7QHNI5_js.j(l,null,"string")??"",h=(Xe(chunk3R7QHNI5_js.j(l,null,"style"))["font-family"]??"Calibri").replace(/["']/g,"").replace(/^"|"$/g,"").trim()||"Calibri",b=u.find(x=>x.name==="v:fill"||x.name?.endsWith(":fill")),P=b?chunk3R7QHNI5_js.j(b,null,"opacity"):null,S=P!=null&&parseFloat(P)<1;return {kind:"text",text:w,font:h,color:Nt(chunk3R7QHNI5_js.j(r,null,"fillcolor")),semitransparent:S,layout:d?"diagonal":"horizontal",fontSize:void 0}}if(f){let w=chunk3R7QHNI5_js.j(f,"r","id")??chunk3R7QHNI5_js.j(f,"r","embed")??chunk3R7QHNI5_js.j(f,null,"id")??"",{dataUrl:C,mediaPath:y,contentType:h}=At(w,t,n),b=chunk3R7QHNI5_js.j(f,null,"gain"),P=chunk3R7QHNI5_js.j(f,null,"blacklevel"),S=b!=null||P!=null,x=Oe(c.width),m=Oe(c.height);return {kind:"picture",relId:w||void 0,mediaPath:y,contentType:h,dataUrl:C,scale:1,washout:S,widthEmu:x!=null?Math.round(x*De):void 0,heightEmu:m!=null?Math.round(m*De):void 0}}}}function Ve(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function je(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:Ve(t),rId:n}}function Ue(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:Ve(t),rId:n}}function Jn(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=chunk3R7QHNI5_js.a(e);if(!f)return l;let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:hdr"||d.name?.endsWith(":hdr")));if(!c)return l;l.content=q(c,n,o,r,a,u,{inHeaderFooter:true});let p=We(c,a,u);return p&&(l.watermark=p),l}function eo(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=chunk3R7QHNI5_js.a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:ftr"||p.name?.endsWith(":ftr")));return c&&(l.content=q(c,n,o,r,a,u,{inHeaderFooter:true})),l}function ze(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function _e(e,t,n,o,r,a){let u=q(e,t,n,o,r,a),l=false;for(let f of chunk3R7QHNI5_js.i(e)){let c=f.name??"";if(c==="w:bookmarkStart"||c.endsWith(":bookmarkStart")||c==="w:bookmarkEnd"||c.endsWith(":bookmarkEnd")||c==="w:customXml"||c.endsWith(":customXml")){l=true;break}}return {blocks:u,hasUnmodeled:l}}function It(e,t,n,o,r,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=ze(l),{blocks:c,hasUnmodeled:p}=_e(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c,...p?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function ro(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ie(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return ie(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:footnotes"||d.name?.endsWith(":footnotes")));if(!c)return ie(u,l);let p=chunk3R7QHNI5_js.f(c,"w","footnote");for(let d of p){let w=It(d,t,n,o,r,a);u.set(w.id,w),l.push(w);}return ie(u,l)}function ie(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Lt(e,t,n,o,r,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=ze(l),{blocks:c,hasUnmodeled:p}=_e(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c,...p?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function io(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ae(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return ae(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:endnotes"||d.name?.endsWith(":endnotes")));if(!c)return ae(u,l);let p=chunk3R7QHNI5_js.f(c,"w","endnote");for(let d of p){let w=Lt(d,t,n,o,r,a);u.set(w.id,w),l.push(w);}return ae(u,l)}function ae(e,t){return {byId:e,endnotes:t,getEndnote(n){return e.get(n)},hasEndnote(n){return e.has(n)},getNormalEndnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function qe(e){return e?{decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",bullet:"bullet",chicago:"chicago",none:"none"}[e]:void 0}function Xt(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ot(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ge(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function $e(e){let t={};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"w","pos");if(n){let u=chunk3R7QHNI5_js.j(n,"w","val");t.position=Xt(u);}let o=chunk3R7QHNI5_js.e(e,"w","numFmt");if(o){let u=chunk3R7QHNI5_js.j(o,"w","val");t.numFmt=qe(u);}let r=chunk3R7QHNI5_js.e(e,"w","numStart");r&&(t.numStart=chunk3R7QHNI5_js.l(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=Ge(u);}return t}function Ye(e){let t={};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"w","pos");if(n){let u=chunk3R7QHNI5_js.j(n,"w","val");t.position=Ot(u);}let o=chunk3R7QHNI5_js.e(e,"w","numFmt");if(o){let u=chunk3R7QHNI5_js.j(o,"w","val");t.numFmt=qe(u);}let r=chunk3R7QHNI5_js.e(e,"w","numStart");r&&(t.numStart=chunk3R7QHNI5_js.l(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=Ge(u);}return t}function ao(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
|
|
2
|
-
`)}function lo(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
|
|
3
|
-
`)}function so(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function uo(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Dt(e,t,n,o){if(!e&&!t)return;let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),Object.keys(r).length>0?r:void 0}function le(e){if(!e)return;let o={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunk3R7QHNI5_js.j(e,"w","color"),l=chunk3R7QHNI5_js.j(e,"w","themeColor"),f=chunk3R7QHNI5_js.j(e,"w","themeTint"),c=chunk3R7QHNI5_js.j(e,"w","themeShade"),p=Dt(u,l,f,c);p&&(o.color=p);let d=chunk3R7QHNI5_js.j(e,"w","shadow");(d==="1"||d==="true")&&(o.shadow=true);let w=chunk3R7QHNI5_js.j(e,"w","frame");return (w==="1"||w==="true")&&(o.frame=true),o}function Wt(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function Vt(e){switch(e){case "continuous":return "continuous";case "nextPage":return "nextPage";case "oddPage":return "oddPage";case "evenPage":return "evenPage";case "nextColumn":return "nextColumn";default:return}}function jt(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function Ut(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function Ze(e,t){let n={};if(!e)return n;let o=chunk3R7QHNI5_js.e(e,"w","pgSz");if(o){let m=chunk3R7QHNI5_js.l(o,"w","w");m!==void 0&&(n.pageWidth=m);let F=chunk3R7QHNI5_js.l(o,"w","h");F!==void 0&&(n.pageHeight=F);let E=chunk3R7QHNI5_js.j(o,"w","orient"),T=Wt(E);T&&(n.orientation=T);}let r=chunk3R7QHNI5_js.e(e,"w","pgMar");if(r){let m=chunk3R7QHNI5_js.l(r,"w","top");m!==void 0&&(n.marginTop=m);let F=chunk3R7QHNI5_js.l(r,"w","bottom");F!==void 0&&(n.marginBottom=F);let E=chunk3R7QHNI5_js.l(r,"w","left");E!==void 0&&(n.marginLeft=E);let T=chunk3R7QHNI5_js.l(r,"w","right");T!==void 0&&(n.marginRight=T);let k=chunk3R7QHNI5_js.l(r,"w","header");k!==void 0&&(n.headerDistance=k);let B=chunk3R7QHNI5_js.l(r,"w","footer");B!==void 0&&(n.footerDistance=B);let v=chunk3R7QHNI5_js.l(r,"w","gutter");v!==void 0&&(n.gutter=v);}let a=chunk3R7QHNI5_js.e(e,"w","cols");if(a){let m=chunk3R7QHNI5_js.l(a,"w","num");m!==void 0&&(n.columnCount=m);let F=chunk3R7QHNI5_js.l(a,"w","space");F!==void 0&&(n.columnSpace=F);let E=chunk3R7QHNI5_js.j(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let T=chunk3R7QHNI5_js.j(a,"w","sep");(T==="1"||T==="true")&&(n.separator=true);let k=chunk3R7QHNI5_js.f(a,"w","col");if(k.length>0){n.columns=[];for(let B of k){let v={},I=chunk3R7QHNI5_js.l(B,"w","w");I!==void 0&&(v.width=I);let H=chunk3R7QHNI5_js.l(B,"w","space");H!==void 0&&(v.space=H),n.columns.push(v);}n.columnCount===void 0&&(n.columnCount=k.length);}}let u=chunk3R7QHNI5_js.e(e,"w","type");if(u){let m=chunk3R7QHNI5_js.j(u,"w","val"),F=Vt(m);F&&(n.sectionStart=F);}let l=chunk3R7QHNI5_js.e(e,"w","vAlign");if(l){let m=chunk3R7QHNI5_js.j(l,"w","val"),F=jt(m);F&&(n.verticalAlign=F);}let f=chunk3R7QHNI5_js.e(e,"w","bidi");f&&(n.bidi=chunk3R7QHNI5_js.m(f));let c=chunk3R7QHNI5_js.f(e,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>je(m)));let p=chunk3R7QHNI5_js.f(e,"w","footerReference");p.length>0&&(n.footerReferences=p.map(m=>Ue(m)));let d=chunk3R7QHNI5_js.e(e,"w","titlePg");d&&(n.titlePg=chunk3R7QHNI5_js.m(d));let w=chunk3R7QHNI5_js.e(e,"w","evenAndOddHeaders");w&&(n.evenAndOddHeaders=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","lnNumType");if(C){n.lineNumbers={};let m=chunk3R7QHNI5_js.l(C,"w","start");m!==void 0&&(n.lineNumbers.start=m);let F=chunk3R7QHNI5_js.l(C,"w","countBy");F!==void 0&&(n.lineNumbers.countBy=F);let E=chunk3R7QHNI5_js.l(C,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let T=chunk3R7QHNI5_js.j(C,"w","restart"),k=Ut(T);k&&(n.lineNumbers.restart=k);}let y=chunk3R7QHNI5_js.e(e,"w","pgBorders");if(y){n.pageBorders={};let m=le(chunk3R7QHNI5_js.e(y,"w","top"));m&&(n.pageBorders.top=m);let F=le(chunk3R7QHNI5_js.e(y,"w","bottom"));F&&(n.pageBorders.bottom=F);let E=le(chunk3R7QHNI5_js.e(y,"w","left"));E&&(n.pageBorders.left=E);let T=le(chunk3R7QHNI5_js.e(y,"w","right"));T&&(n.pageBorders.right=T);let k=chunk3R7QHNI5_js.j(y,"w","display");(k==="allPages"||k==="firstPage"||k==="notFirstPage")&&(n.pageBorders.display=k);let B=chunk3R7QHNI5_js.j(y,"w","offsetFrom");(B==="page"||B==="text")&&(n.pageBorders.offsetFrom=B);let v=chunk3R7QHNI5_js.j(y,"w","zOrder");(v==="front"||v==="back")&&(n.pageBorders.zOrder=v);}let h=chunk3R7QHNI5_js.e(e,"w","background");if(h){n.background={};let m=chunk3R7QHNI5_js.j(h,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let F=chunk3R7QHNI5_js.j(h,"w","themeColor");F&&(n.background.themeColor=F);let E=chunk3R7QHNI5_js.j(h,"w","themeTint");E&&(n.background.themeTint=E);let T=chunk3R7QHNI5_js.j(h,"w","themeShade");T&&(n.background.themeShade=T);}let b=chunk3R7QHNI5_js.e(e,"w","footnotePr");if(b){let m=$e(b);Object.keys(m).length>0&&(n.footnotePr=m);}let P=chunk3R7QHNI5_js.e(e,"w","endnotePr");if(P){let m=Ye(P);Object.keys(m).length>0&&(n.endnotePr=m);}let S=chunk3R7QHNI5_js.e(e,"w","docGrid");if(S){n.docGrid={};let m=chunk3R7QHNI5_js.j(S,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let F=chunk3R7QHNI5_js.l(S,"w","linePitch");F!==void 0&&(n.docGrid.linePitch=F);let E=chunk3R7QHNI5_js.l(S,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let x=chunk3R7QHNI5_js.e(e,"w","paperSrc");if(x){let m=chunk3R7QHNI5_js.l(x,"w","first");m!==void 0&&(n.paperSrcFirst=m);let F=chunk3R7QHNI5_js.l(x,"w","other");F!==void 0&&(n.paperSrcOther=F);}return n}function go(){return {pageWidth:12240,pageHeight:15840,orientation:"portrait",marginTop:1440,marginBottom:1440,marginLeft:1440,marginRight:1440,headerDistance:720,footerDistance:720,gutter:0,columnCount:1,columnSpace:720,equalWidth:true,sectionStart:"nextPage",verticalAlign:"top"}}function Ke(e,t){if(!t||t.length===0)return e;let n=new Set((e??[]).map(r=>r.type)),o=t.filter(r=>!n.has(r.type));return o.length===0?e:[...e??[],...o]}function ho(e){if(e.length<2)return e;let t=[e[0]];for(let n=1;n<e.length;n++){let o=t[n-1].properties,r=e[n].properties,a=Ke(r.headerReferences,o.headerReferences),u=Ke(r.footerReferences,o.footerReferences),l=r.titlePg!==void 0?r.titlePg:o.titlePg;if(a===r.headerReferences&&u===r.footerReferences&&l===r.titlePg){t.push(e[n]);continue}t.push({...e[n],properties:{...r,headerReferences:a,footerReferences:u,titlePg:l}});}return t}function zt(e,t){return !e&&!t?true:!(!e||!t||e.bold!==t.bold||e.boldCs!==t.boldCs||e.italic!==t.italic||e.italicCs!==t.italicCs||e.strike!==t.strike||e.doubleStrike!==t.doubleStrike||e.smallCaps!==t.smallCaps||e.allCaps!==t.allCaps||e.hidden!==t.hidden||e.emboss!==t.emboss||e.imprint!==t.imprint||e.outline!==t.outline||e.shadow!==t.shadow||e.rtl!==t.rtl||e.cs!==t.cs||e.fontSize!==t.fontSize||e.fontSizeCs!==t.fontSizeCs||e.spacing!==t.spacing||e.position!==t.position||e.scale!==t.scale||e.kerning!==t.kerning||e.vertAlign!==t.vertAlign||e.highlight!==t.highlight||e.effect!==t.effect||e.emphasisMark!==t.emphasisMark||e.styleId!==t.styleId||!_t(e.underline,t.underline)||!se(e.color,t.color)||!qt(e.shading,t.shading)||!Gt(e.fontFamily,t.fontFamily))}function _t(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:se(e.color,t.color)}function se(e,t){return !e&&!t?true:!e||!t?false:e.rgb===t.rgb&&e.auto===t.auto&&e.themeColor===t.themeColor&&e.themeTint===t.themeTint&&e.themeShade===t.themeShade}function qt(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!se(e.color,t.color)||!se(e.fill,t.fill))}function Gt(e,t){return !e&&!t?true:!e||!t?false:e.ascii===t.ascii&&e.hAnsi===t.hAnsi&&e.eastAsia===t.eastAsia&&e.cs===t.cs&&e.asciiTheme===t.asciiTheme&&e.hAnsiTheme===t.hAnsiTheme&&e.eastAsiaTheme===t.eastAsiaTheme&&e.csTheme===t.csTheme}function $t(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function Qe(e){return e.content.length===0?true:e.content.every($t)}function Yt(e,t){let n=[];for(let o of e)n.push(o);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let o=n[n.length-1],r=t[0];n[n.length-1]={type:"text",text:o.text+r.text,preserveSpace:o.preserveSpace||r.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let o of t)n.push(o);return n}function Kt(e){if(e.length<=1)return e;let t=[],n=null;for(let o of e)if(o.content.length!==0){if(n===null){n={...o,content:[...o.content]};continue}Qe(n)&&Qe(o)&&zt(n.formatting,o.formatting)?n={type:"run",formatting:n.formatting,content:Yt(n.content,o.content)}:(t.push(n),n={...o,content:[...o.content]});}return n!==null&&t.push(n),t}function be(e){if(e.length<=1)return e;let t=[],n=[];function o(){if(n.length>0){let r=Kt(n);t.push(...r),n.length=0;}}for(let r of e)if(r.type==="run")n.push(r);else if(o(),r.type==="hyperlink"){let a={...r,children:be(r.children)};t.push(a);}else t.push(r);return o(),t}function Je(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function Zt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunk3R7QHNI5_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunk3R7QHNI5_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunk3R7QHNI5_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function fe(e,t,n){if(!e)return;let o={},r=chunk3R7QHNI5_js.e(e,"w","b");r&&(o.bold=chunk3R7QHNI5_js.m(r));let a=chunk3R7QHNI5_js.e(e,"w","bCs");a&&(o.boldCs=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","i");u&&(o.italic=chunk3R7QHNI5_js.m(u));let l=chunk3R7QHNI5_js.e(e,"w","iCs");l&&(o.italicCs=chunk3R7QHNI5_js.m(l));let f=chunk3R7QHNI5_js.e(e,"w","u");if(f){let M=chunk3R7QHNI5_js.j(f,"w","val");if(M){o.underline={style:M};let U=chunk3R7QHNI5_js.j(f,"w","color"),z=chunk3R7QHNI5_js.j(f,"w","themeColor");(U||z)&&(o.underline.color=Je(U,z,chunk3R7QHNI5_js.j(f,"w","themeTint"),chunk3R7QHNI5_js.j(f,"w","themeShade")));}}let c=chunk3R7QHNI5_js.e(e,"w","strike");c&&(o.strike=chunk3R7QHNI5_js.m(c));let p=chunk3R7QHNI5_js.e(e,"w","dstrike");p&&(o.doubleStrike=chunk3R7QHNI5_js.m(p));let d=chunk3R7QHNI5_js.e(e,"w","vertAlign");if(d){let M=chunk3R7QHNI5_js.j(d,"w","val");(M==="superscript"||M==="subscript"||M==="baseline")&&(o.vertAlign=M);}let w=chunk3R7QHNI5_js.e(e,"w","smallCaps");w&&(o.smallCaps=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","caps");C&&(o.allCaps=chunk3R7QHNI5_js.m(C));let y=chunk3R7QHNI5_js.e(e,"w","vanish");y&&(o.hidden=chunk3R7QHNI5_js.m(y));let h=chunk3R7QHNI5_js.e(e,"w","color");h&&(o.color=Je(chunk3R7QHNI5_js.j(h,"w","val"),chunk3R7QHNI5_js.j(h,"w","themeColor"),chunk3R7QHNI5_js.j(h,"w","themeTint"),chunk3R7QHNI5_js.j(h,"w","themeShade")));let b=chunk3R7QHNI5_js.e(e,"w","highlight");if(b){let M=chunk3R7QHNI5_js.j(b,"w","val");M&&(o.highlight=M);}let P=chunk3R7QHNI5_js.e(e,"w","shd");P&&(o.shading=Zt(P));let S=chunk3R7QHNI5_js.e(e,"w","sz");if(S){let M=chunk3R7QHNI5_js.l(S,"w","val");M!==void 0&&(o.fontSize=M);}let x=chunk3R7QHNI5_js.e(e,"w","szCs");if(x){let M=chunk3R7QHNI5_js.l(x,"w","val");M!==void 0&&(o.fontSizeCs=M);}let m=chunk3R7QHNI5_js.e(e,"w","rFonts");if(m){o.fontFamily={ascii:chunk3R7QHNI5_js.j(m,"w","ascii")??void 0,hAnsi:chunk3R7QHNI5_js.j(m,"w","hAnsi")??void 0,eastAsia:chunk3R7QHNI5_js.j(m,"w","eastAsia")??void 0,cs:chunk3R7QHNI5_js.j(m,"w","cs")??void 0};let M=chunk3R7QHNI5_js.j(m,"w","asciiTheme");M&&(o.fontFamily.asciiTheme=M,t&&!o.fontFamily.ascii&&(o.fontFamily.ascii=$(t,M)));let U=chunk3R7QHNI5_js.j(m,"w","hAnsiTheme");U&&(o.fontFamily.hAnsiTheme=U,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=$(t,U)));let z=chunk3R7QHNI5_js.j(m,"w","eastAsiaTheme");z&&(o.fontFamily.eastAsiaTheme=z,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=$(t,z)));let pe=chunk3R7QHNI5_js.j(m,"w","cstheme");pe&&(o.fontFamily.csTheme=pe,t&&!o.fontFamily.cs&&(o.fontFamily.cs=$(t,pe)));}let F=chunk3R7QHNI5_js.e(e,"w","spacing");if(F){let M=chunk3R7QHNI5_js.l(F,"w","val");M!==void 0&&(o.spacing=M);}let E=chunk3R7QHNI5_js.e(e,"w","position");if(E){let M=chunk3R7QHNI5_js.l(E,"w","val");M!==void 0&&(o.position=M);}let T=chunk3R7QHNI5_js.e(e,"w","w");if(T){let M=chunk3R7QHNI5_js.l(T,"w","val");M!==void 0&&(o.scale=M);}let k=chunk3R7QHNI5_js.e(e,"w","kern");if(k){let M=chunk3R7QHNI5_js.l(k,"w","val");M!==void 0&&(o.kerning=M);}let B=chunk3R7QHNI5_js.e(e,"w","effect");if(B){let M=chunk3R7QHNI5_js.j(B,"w","val");M&&(o.effect=M);}let v=chunk3R7QHNI5_js.e(e,"w","em");if(v){let M=chunk3R7QHNI5_js.j(v,"w","val");M&&(o.emphasisMark=M);}let I=chunk3R7QHNI5_js.e(e,"w","emboss");I&&(o.emboss=chunk3R7QHNI5_js.m(I));let H=chunk3R7QHNI5_js.e(e,"w","imprint");H&&(o.imprint=chunk3R7QHNI5_js.m(H));let X=chunk3R7QHNI5_js.e(e,"w","outline");X&&(o.outline=chunk3R7QHNI5_js.m(X));let Te=chunk3R7QHNI5_js.e(e,"w","shadow");Te&&(o.shadow=chunk3R7QHNI5_js.m(Te));let Ce=chunk3R7QHNI5_js.e(e,"w","rtl");Ce&&(o.rtl=chunk3R7QHNI5_js.m(Ce));let Fe=chunk3R7QHNI5_js.e(e,"w","cs");Fe&&(o.cs=chunk3R7QHNI5_js.m(Fe));let xe=chunk3R7QHNI5_js.e(e,"w","rStyle");if(xe){let M=chunk3R7QHNI5_js.j(xe,"w","val");M&&(o.styleId=M);}return Object.keys(o).length>0?o:void 0}function Qt(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),r=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim(),a=(chunk3R7QHNI5_js.j(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0,rsid:a.length>0?a:void 0}}function Jt(e,t,n,o){if(!e)return;let r=chunk3R7QHNI5_js.f(e,"w","rPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","rPr");return {type:"runPropertyChange",info:Qt(a),previousFormatting:fe(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function en(e){let t=chunk3R7QHNI5_js.k(e),n=chunk3R7QHNI5_js.j(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function tn(){return {type:"tab"}}function nn(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"w","clear"),o={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(o.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(o.clear=n),o}function on(e){let t=chunk3R7QHNI5_js.j(e,"w","font")??"",n=chunk3R7QHNI5_js.j(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function rn(e){return {type:"footnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function an(e){return {type:"endnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function ln(e){let t=chunk3R7QHNI5_js.j(e,"w","fldCharType"),n=chunk3R7QHNI5_js.j(e,"w","fldLock")==="true"||chunk3R7QHNI5_js.j(e,"w","fldLock")==="1",o=chunk3R7QHNI5_js.j(e,"w","dirty")==="true"||chunk3R7QHNI5_js.j(e,"w","dirty")==="1",r="begin";return t==="separate"?r="separate":t==="end"&&(r="end"),{type:"fieldChar",charType:r,fldLock:n||void 0,dirty:o||void 0}}function sn(e){return {type:"instrText",text:chunk3R7QHNI5_js.k(e)}}function et(e,t,n){let o=chunkSCK6ZM5V_js.z(e,t??void 0,n??void 0);return o?{type:"drawing",image:o}:null}function ue(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function un(e,t,n){let o=[],r=chunk3R7QHNI5_js.i(e);for(let a of r)switch(ue(a.name)){case "t":o.push(en(a));break;case "tab":o.push(tn());break;case "br":o.push(nn(a));break;case "sym":o.push(on(a));break;case "footnoteReference":o.push(rn(a));break;case "endnoteReference":o.push(an(a));break;case "fldChar":o.push(ln(a));break;case "instrText":o.push(sn(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=et(a,t,n);l&&o.push(l);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":o.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=chunk3R7QHNI5_js.i(a).find(p=>ue(p.name)==="Choice")??chunk3R7QHNI5_js.i(a).find(p=>ue(p.name)==="Fallback");if(c){for(let p of chunk3R7QHNI5_js.i(c))if(ue(p.name)==="drawing"){let w=et(p,t,n);w?.image?.src&&o.push(w);}}break}case "footnoteRef":o.push({type:"footnoteRefMark"});break;case "endnoteRef":o.push({type:"endnoteRefMark"});break;case "separator":o.push({type:"separator"});break;case "continuationSeparator":o.push({type:"continuationSeparator"});break;}return o}function K(e,t,n,o=null,r=null){let a={type:"run",content:[]},u=chunk3R7QHNI5_js.e(e,"w","rPr");return u&&(a.formatting=fe(u,n),a.propertyChanges=Jt(u,n,t,a.formatting)),a.content=un(e,o,r),a}function fn(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function cn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunk3R7QHNI5_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunk3R7QHNI5_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunk3R7QHNI5_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function G(e){if(!e)return;let t=chunk3R7QHNI5_js.j(e,"w","val");if(!t)return;let n={style:t},o=chunk3R7QHNI5_js.j(e,"w","color"),r=chunk3R7QHNI5_js.j(e,"w","themeColor");(o||r)&&(n.color=fn(o,r,chunk3R7QHNI5_js.j(e,"w","themeTint"),chunk3R7QHNI5_js.j(e,"w","themeShade")));let a=chunk3R7QHNI5_js.l(e,"w","sz");a!==void 0&&(n.size=a);let u=chunk3R7QHNI5_js.l(e,"w","space");u!==void 0&&(n.space=u);let l=chunk3R7QHNI5_js.j(e,"w","shadow");l&&(n.shadow=l==="1"||l==="true");let f=chunk3R7QHNI5_js.j(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function pn(e){if(!e)return;let t=chunk3R7QHNI5_js.f(e,"w","tab");if(t.length===0)return;let n=[];for(let o of t){let r=chunk3R7QHNI5_js.l(o,"w","pos"),a=chunk3R7QHNI5_js.j(o,"w","val");if(r!==void 0&&a){let u={position:r,alignment:a},l=chunk3R7QHNI5_js.j(o,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function dn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.l(e,"w","w");n!==void 0&&(t.width=n);let o=chunk3R7QHNI5_js.l(e,"w","h");o!==void 0&&(t.height=o);let r=chunk3R7QHNI5_js.j(e,"w","hAnchor");(r==="text"||r==="margin"||r==="page")&&(t.hAnchor=r);let a=chunk3R7QHNI5_js.j(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=chunk3R7QHNI5_js.l(e,"w","x");u!==void 0&&(t.x=u);let l=chunk3R7QHNI5_js.l(e,"w","y");l!==void 0&&(t.y=l);let f=chunk3R7QHNI5_js.j(e,"w","xAlign");f&&(t.xAlign=f);let c=chunk3R7QHNI5_js.j(e,"w","yAlign");c&&(t.yAlign=c);let p=chunk3R7QHNI5_js.j(e,"w","wrap");return p&&(t.wrap=p),Object.keys(t).length>0?t:void 0}function ce(e,t,n){if(!e)return;let o={},r=chunk3R7QHNI5_js.e(e,"w","jc");if(r){let T=chunk3R7QHNI5_js.j(r,"w","val");T&&(o.alignment=T);}let a=chunk3R7QHNI5_js.e(e,"w","bidi");a&&(o.bidi=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","spacing");if(u){let T=chunk3R7QHNI5_js.l(u,"w","before");T!==void 0&&(o.spaceBefore=T);let k=chunk3R7QHNI5_js.l(u,"w","after");k!==void 0&&(o.spaceAfter=k);let B=chunk3R7QHNI5_js.l(u,"w","line");B!==void 0&&(o.lineSpacing=B);let v={};T!==void 0&&(v.before=true),k!==void 0&&(v.after=true),(v.before||v.after)&&(o.spacingExplicit=v);let I=chunk3R7QHNI5_js.j(u,"w","lineRule");I&&(o.lineSpacingRule=I);let H=chunk3R7QHNI5_js.j(u,"w","beforeAutospacing");H&&(o.beforeAutospacing=H==="1"||H==="true");let X=chunk3R7QHNI5_js.j(u,"w","afterAutospacing");X&&(o.afterAutospacing=X==="1"||X==="true");}let l=chunk3R7QHNI5_js.e(e,"w","ind");if(l){let T=chunk3R7QHNI5_js.l(l,"w","left");T!==void 0&&(o.indentLeft=T);let k=chunk3R7QHNI5_js.l(l,"w","right");k!==void 0&&(o.indentRight=k);let B=chunk3R7QHNI5_js.l(l,"w","firstLine");B!==void 0&&(o.indentFirstLine=B);let v=chunk3R7QHNI5_js.l(l,"w","hanging");v!==void 0&&(o.indentFirstLine=-v,o.hangingIndent=true);let I=chunk3R7QHNI5_js.l(l,"w","start");I!==void 0&&o.indentLeft===void 0&&(o.indentLeft=I);let H=chunk3R7QHNI5_js.l(l,"w","end");H!==void 0&&o.indentRight===void 0&&(o.indentRight=H);}let f=chunk3R7QHNI5_js.e(e,"w","pBdr");if(f){let T={},k=G(chunk3R7QHNI5_js.e(f,"w","top"));k&&(T.top=k);let B=G(chunk3R7QHNI5_js.e(f,"w","bottom"));B&&(T.bottom=B);let v=G(chunk3R7QHNI5_js.e(f,"w","left"));v&&(T.left=v);let I=G(chunk3R7QHNI5_js.e(f,"w","right"));I&&(T.right=I);let H=G(chunk3R7QHNI5_js.e(f,"w","between"));H&&(T.between=H);let X=G(chunk3R7QHNI5_js.e(f,"w","bar"));X&&(T.bar=X),Object.keys(T).length>0&&(o.borders=T);}let c=chunk3R7QHNI5_js.e(e,"w","shd");c&&(o.shading=cn(c));let p=chunk3R7QHNI5_js.e(e,"w","tabs");p&&(o.tabs=pn(p));let d=chunk3R7QHNI5_js.e(e,"w","keepNext");d&&(o.keepNext=chunk3R7QHNI5_js.m(d));let w=chunk3R7QHNI5_js.e(e,"w","keepLines");w&&(o.keepLines=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","widowControl");C&&(o.widowControl=chunk3R7QHNI5_js.m(C));let y=chunk3R7QHNI5_js.e(e,"w","pageBreakBefore");y&&(o.pageBreakBefore=chunk3R7QHNI5_js.m(y));let h=chunk3R7QHNI5_js.e(e,"w","contextualSpacing");h&&(o.contextualSpacing=chunk3R7QHNI5_js.m(h));let b=chunk3R7QHNI5_js.e(e,"w","numPr");if(b){let T=chunk3R7QHNI5_js.e(b,"w","numId"),k=chunk3R7QHNI5_js.e(b,"w","ilvl");if(T||k){if(o.numPr={},T){let B=chunk3R7QHNI5_js.l(T,"w","val");B!==void 0&&(o.numPr.numId=B);}if(k){let B=chunk3R7QHNI5_js.l(k,"w","val");B!==void 0&&(o.numPr.ilvl=B);}}}let P=chunk3R7QHNI5_js.e(e,"w","outlineLvl");if(P){let T=chunk3R7QHNI5_js.l(P,"w","val");T!==void 0&&(o.outlineLevel=T);}let S=chunk3R7QHNI5_js.e(e,"w","pStyle");if(S){let T=chunk3R7QHNI5_js.j(S,"w","val");T&&(o.styleId=T);}let x=chunk3R7QHNI5_js.e(e,"w","framePr");x&&(o.frame=dn(x));let m=chunk3R7QHNI5_js.e(e,"w","suppressLineNumbers");m&&(o.suppressLineNumbers=chunk3R7QHNI5_js.m(m));let F=chunk3R7QHNI5_js.e(e,"w","suppressAutoHyphens");F&&(o.suppressAutoHyphens=chunk3R7QHNI5_js.m(F));let E=chunk3R7QHNI5_js.e(e,"w","rPr");return E&&(o.runProperties=fe(E,t)),Object.keys(o).length>0?o:void 0}function mn(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function gn(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunk3R7QHNI5_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function hn(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function tt(e,t,n=null,o=null,r=null){let a={type:"hyperlink",children:[]},u=chunk3R7QHNI5_js.j(e,"r","id");if(u&&(a.rId=u,t)){let C=t.get(u);C&&(chunkZ3LGMBJC_js.c(C),a.href=C.target);}let l=chunk3R7QHNI5_js.j(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=chunk3R7QHNI5_js.j(e,"w","tooltip");f&&(a.tooltip=f);let c=chunk3R7QHNI5_js.j(e,"w","tgtFrame");c&&(a.target=c);let p=chunk3R7QHNI5_js.j(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let d=chunk3R7QHNI5_js.j(e,"w","docLocation");d&&(a.docLocation=d);let w=chunk3R7QHNI5_js.i(e);for(let C of w)switch(mn(C.name)){case "r":a.children.push(K(C,n,o,t,r));break;case "bookmarkStart":a.children.push(gn(C));break;case "bookmarkEnd":a.children.push(hn(C));break}return a}function Po(e){let t="";for(let n of e.children)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"&&(t+=" ");return t}function Bo(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function vo(e){return !!e.anchor}function No(e){return e.href}function Ao(e){return e.children.some(t=>t.type==="run")}function Ho(e){return e.children.filter(t=>t.type==="run")}function Io(e,t){if(e.rId){let n=t.get(e.rId);if(n)return chunkZ3LGMBJC_js.c(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function nt(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunk3R7QHNI5_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function ot(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function it(e){let t="";if(e.type==="text"&&typeof e.text=="string")return e.text;if(e.elements)for(let n of e.elements)if((n.name?.replace(/^.*:/,"")??"")==="t"&&n.elements)for(let r of n.elements)r.type==="text"&&typeof r.text=="string"&&(t+=r.text);else t+=it(n);return t}function Q(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function at(e){let t=new Set(["hyperlink","smartTag","sdt","sdtContent","fldSimple","customXml","ins","del","moveFrom","moveTo"]),n=new Set(["pPr","proofErr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","commentReference","permStart","permEnd","rsidR"]),o=new Set(["t","tab","br","cr","sym","drawing","pict","object","softHyphen","noBreakHyphen","fldChar","instrText","pgNum","separator","continuationSeparator","footnoteRef","endnoteRef","footnoteReference","endnoteReference","ptab","monthShort","monthLong","yearShort","yearLong","dayShort","dayLong"]),r=false;function a(l){for(let f of chunk3R7QHNI5_js.i(l)){let c=Q(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let p of chunk3R7QHNI5_js.i(f)){let d=Q(p.name);if(d!=="rPr"){if(d==="lastRenderedPageBreak"){r=true;continue}if(d==="br"&&chunk3R7QHNI5_js.j(p,"w","type")==="page")return "forced";if(o.has(d))return "visible"}}continue}if(t.has(c)){let p=a(f);if(p!=="continue")return p;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?r:false}function rt(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function lt(e){if(e.type!=="element")return e;let t=Q(e.name),n=e.name;return t==="delText"?n=rt(e.name,"t"):t==="delInstrText"&&(n=rt(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(lt)}}function Z(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=chunk3R7QHNI5_js.j(e,"w","author"),r=chunk3R7QHNI5_js.j(e,"w","date"),a=o?.trim()??"",u=r?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:u.length>0?u:void 0}}function wn(e){return Z(e)}function st(e,t,n,o){if(!e)return;let r=chunk3R7QHNI5_js.f(e,"w","pPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","pPr");return {type:"paragraphPropertyChange",info:wn(a),previousFormatting:ce(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function yn(e,t,n,o,r){return tt(e,t,n,o,r)}function bn(e){return nt(e)}function Tn(e){return ot(e)}function ut(e){let t=e.trim().match(/^\\?([A-Z]+)/i);if(!t)return "UNKNOWN";let n=t[1].toUpperCase();return ["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE","EDITTIME","REVNUM","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS"].includes(n)?n:"UNKNOWN"}function Cn(e,t,n,o,r){let a=chunk3R7QHNI5_js.j(e,"w","instr")??"",u=ut(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=chunk3R7QHNI5_js.j(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=chunk3R7QHNI5_js.j(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=chunk3R7QHNI5_js.i(e);for(let d of p)Q(d.name)==="r"&&l.content.push(K(d,t,n,o,r));return l}function j(e,t,n,o,r,a,u="default"){let l=[],f=chunk3R7QHNI5_js.i(e),c=false,p="",d=[],w=[],C=false,y=false,h=false;for(let b of f){let P=Q(b.name);switch(P){case "r":{let S=u==="deletion"?lt(b):b,x=K(S,t,n,r,a),m=false,F=false,E=false,T="";for(let k of x.content)k.type==="fieldChar"?k.charType==="begin"?(m=true,k.fldLock&&(y=true),k.dirty&&(h=true)):k.charType==="separate"?F=true:k.charType==="end"&&(E=true):k.type==="instrText"&&(T+=k.text);if(m&&(c=true,C=false,p="",d=[],w=[],y=false,h=false),c){if(T&&(p+=T),F&&(C=true),C&&!E?F||w.push(x):!C&&!m&&d.push(x),E){let k={type:"complexField",instruction:p.trim(),fieldType:ut(p),fieldCode:d,fieldResult:w};y&&(k.fldLock=true),h&&(k.dirty=true),l.push(k),c=false;}}else l.push(x);break}case "hyperlink":l.push(yn(b,r,t,n,a));break;case "bookmarkStart":l.push(bn(b));break;case "bookmarkEnd":l.push(Tn(b));break;case "fldSimple":l.push(Cn(b,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let S=(b.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),x=(b.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(x){let m=j(x,t,n,null,r,a,u),E={type:"inlineSdt",properties:re(S??null),content:m.filter(T=>T.type==="run"||T.type==="hyperlink"||T.type==="simpleField"||T.type==="complexField"||T.type==="inlineSdt"||T.type==="mathEquation")};l.push(E);}break}case "ins":{let S=Z(b),x=j(b,t,n,null,r,a),m={type:"insertion",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "del":{let S=Z(b),x=j(b,t,n,null,r,a,"deletion"),m={type:"deletion",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveFrom":{let S=Z(b),x=j(b,t,n,null,r,a,"deletion"),m={type:"moveFrom",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveTo":{let S=Z(b),x=j(b,t,n,null,r,a),m={type:"moveTo",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10),x=chunk3R7QHNI5_js.j(b,"w","name")??"";l.push({type:"moveFromRangeStart",id:S,name:x});break}case "moveFromRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:S});break}case "moveToRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10),x=chunk3R7QHNI5_js.j(b,"w","name")??"";l.push({type:"moveToRangeStart",id:S,name:x});break}case "moveToRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:S});break}case "commentRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"commentRangeStart",id:S});break}case "commentRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:S});break}case "oMath":case "oMathPara":{let S=P==="oMathPara",x=chunk3R7QHNI5_js.b(b),m=it(b),F={type:"mathEquation",display:S?"block":"inline",ommlXml:x,plainText:m||void 0};l.push(F);break}}}return l}function Fn(e){let t="";for(let n of e.content)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"?t+=" ":o.type==="break"&&(o.breakType==="page"?t+="\f":t+=`
|
|
4
|
-
`);else if(n.type==="hyperlink"){for(let o of n.children)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="simpleField"){for(let o of n.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="complexField")for(let o of n.fieldResult)for(let r of o.content)r.type==="text"&&(t+=r.text);return t}function ft(e){let t=chunk3R7QHNI5_js.j(e,"w","id");if(t==null)return null;let n=parseInt(t,10);if(Number.isNaN(n))return null;let o=chunk3R7QHNI5_js.j(e,"w","author")??"",r=chunk3R7QHNI5_js.j(e,"w","date")??void 0,a={id:n,author:o};return r&&(a.date=r),a}function Y(e,t,n,o,r=null,a=null,u){let l={type:"paragraph",content:[]},f=chunk3R7QHNI5_js.j(e,"w14","paraId")??chunk3R7QHNI5_js.j(e,"w","paraId");f&&(l.paraId=f);let c=chunk3R7QHNI5_js.j(e,"w14","textId")??chunk3R7QHNI5_js.j(e,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&at(e)&&(l.renderedPageBreakBefore=true);let p=chunk3R7QHNI5_js.e(e,"w","pPr");if(p){l.formatting=ce(p,n),l.propertyChanges=st(p,n,t,l.formatting);let C=chunk3R7QHNI5_js.e(p,"w","rPr");if(C){let h=chunk3R7QHNI5_js.e(C,"w","ins");if(h){let P=ft(h);P&&(l.pPrIns=P);}let b=chunk3R7QHNI5_js.e(C,"w","del");if(b){let P=ft(b);P&&(l.pPrDel=P);}}let y=chunk3R7QHNI5_js.e(p,"w","sectPr");y&&(l.sectionProperties=Ze(y));}let d=j(e,t,n,o,r,a);l.content=be(d);let w=l.formatting?.numPr;if(!w&&l.formatting?.styleId&&t){let C=t.get(l.formatting.styleId);C?.pPr?.numPr&&(w=C.pPr.numPr,l.formatting||(l.formatting={}),l.formatting.numPr=w);}if(w&&o){let{numId:C,ilvl:y=0}=w;if(C!==void 0&&C!==0){let h=o.getLevel(C,y);if(h){let b=[];for(let x=0;x<=y;x+=1){let m=o.getLevel(C,x);b.push(m?.numFmt??"decimal");}let P=o.getInstance(C),S=P?.levelOverrides?.find(x=>x.ilvl===y);if(l.listRendering={level:y,numId:C,marker:h.lvlText,isBullet:h.numFmt==="bullet",numFmt:h.numFmt,markerHidden:h.rPr?.hidden||void 0,markerFontFamily:h.rPr?.fontFamily?.ascii||h.rPr?.fontFamily?.hAnsi||void 0,markerFontSize:h.rPr?.fontSize?h.rPr.fontSize/2:void 0,markerSuffix:h.suffix,levelNumFmts:b,abstractNumId:P?.abstractNumId,startOverride:S?.startOverride},h.pPr){l.formatting||(l.formatting={});let x=p?chunk3R7QHNI5_js.e(p,"w","ind"):null,m=x!=null&&(chunk3R7QHNI5_js.j(x,"w","left")!==null||chunk3R7QHNI5_js.j(x,"w","start")!==null),F=T=>{let k=x?chunk3R7QHNI5_js.j(x,"w",T):null;if(k===null)return false;let B=parseInt(k,10);return Number.isNaN(B)||B!==0},E=x!=null&&(F("firstLine")||F("hanging"));!m&&h.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=h.pPr.indentLeft),E||(h.pPr.indentFirstLine!==void 0&&(l.formatting.indentFirstLine=h.pPr.indentFirstLine),h.pPr.hangingIndent!==void 0&&(l.formatting.hangingIndent=h.pPr.hangingIndent));}}}}return l}function ct(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","tblW"));n&&(t.width=n);let o=chunk3R7QHNI5_js.e(e,"w","jc");if(o){let h=chunk3R7QHNI5_js.j(o,"w","val");(h==="left"||h==="center"||h==="right"||h==="start")&&(t.justification=h==="start"?"left":h);}let r=O(chunk3R7QHNI5_js.e(e,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=O(chunk3R7QHNI5_js.e(e,"w","tblInd"));a&&(t.indent=a);let u=te(chunk3R7QHNI5_js.e(e,"w","tblBorders"));u&&(t.borders=u);let l=ne(chunk3R7QHNI5_js.e(e,"w","tblCellMar"));l&&(t.cellMargins=l);let f=chunk3R7QHNI5_js.e(e,"w","tblLayout");if(f){let h=chunk3R7QHNI5_js.j(f,"w","type");(h==="fixed"||h==="autofit")&&(t.layout=h);}let c=chunk3R7QHNI5_js.e(e,"w","tblStyle");if(c){let h=chunk3R7QHNI5_js.j(c,"w","val");h&&(t.styleId=h);}let p=he(chunk3R7QHNI5_js.e(e,"w","tblLook"));p&&(t.look=p);let d=oe(chunk3R7QHNI5_js.e(e,"w","shd"));d&&(t.shading=d);let w=chunk3R7QHNI5_js.e(e,"w","tblOverlap");if(w){let h=chunk3R7QHNI5_js.j(w,"w","val");(h==="never"||h==="overlap")&&(t.overlap=h);}let C=we(chunk3R7QHNI5_js.e(e,"w","tblpPr"));if(C&&(t.floating=C),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function xn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tblPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","tblPr");return {type:"tablePropertyChange",info:ee(o),previousFormatting:ct(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function kn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","trPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","trPr");return {type:"tableRowPropertyChange",info:ee(o),previousFormatting:pt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Sn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tcPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","tcPr");return {type:"tableCellPropertyChange",info:ee(o),previousFormatting:mt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Mn(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","ins");if(t)return {type:"tableRowInsertion",info:V(t)};let n=chunk3R7QHNI5_js.e(e,"w","del");if(n)return {type:"tableRowDeletion",info:V(n)}}function Rn(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:V(t)};let n=chunk3R7QHNI5_js.e(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:V(n)};let o=chunk3R7QHNI5_js.e(e,"w","cellMerge");if(o){let r=chunk3R7QHNI5_js.j(o,"w","vMerge"),a=chunk3R7QHNI5_js.j(o,"w","vMergeOrig"),u=l=>l==="rest"||l==="cont";return {type:"tableCellMerge",info:V(o),...u(r)?{vMerge:r}:{},...u(a)?{vMergeOrig:a}:{}}}}function pt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.e(e,"w","trHeight");if(n){let f=chunk3R7QHNI5_js.l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=chunk3R7QHNI5_js.j(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","tblHeader"))&&(t.header=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","cantSplit"))&&(t.cantSplit=true);let a=chunk3R7QHNI5_js.e(e,"w","jc");if(a){let f=chunk3R7QHNI5_js.j(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","hidden"))&&(t.hidden=true);let l=dt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(l&&(t.conditionalFormat=l),Object.keys(t).length!==0)return t}function dt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunk3R7QHNI5_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunk3R7QHNI5_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunk3R7QHNI5_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunk3R7QHNI5_js.j(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=chunk3R7QHNI5_js.j(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=chunk3R7QHNI5_js.j(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=chunk3R7QHNI5_js.j(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let p=chunk3R7QHNI5_js.j(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let d=chunk3R7QHNI5_js.j(e,"w","firstRowLastColumn");(d==="1"||d==="true")&&(t.neCell=true);let w=chunk3R7QHNI5_js.j(e,"w","lastRowFirstColumn");(w==="1"||w==="true")&&(t.swCell=true);let C=chunk3R7QHNI5_js.j(e,"w","lastRowLastColumn");(C==="1"||C==="true")&&(t.seCell=true);let y=chunk3R7QHNI5_js.j(e,"w","val");if(y&&y.length===12&&(y[0]==="1"&&(t.firstRow=true),y[1]==="1"&&(t.lastRow=true),y[2]==="1"&&(t.firstColumn=true),y[3]==="1"&&(t.lastColumn=true),y[4]==="1"&&(t.oddVBand=true),y[5]==="1"&&(t.evenVBand=true),y[6]==="1"&&(t.oddHBand=true),y[7]==="1"&&(t.evenHBand=true),y[8]==="1"&&(t.nwCell=true),y[9]==="1"&&(t.neCell=true),y[10]==="1"&&(t.swCell=true),y[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function mt(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","tcW"));n&&(t.width=n);let o=te(chunk3R7QHNI5_js.e(e,"w","tcBorders"));o&&(t.borders=o);let r=ne(chunk3R7QHNI5_js.e(e,"w","tcMar"));r&&(t.margins=r);let a=oe(chunk3R7QHNI5_js.e(e,"w","shd"));a&&(t.shading=a);let u=chunk3R7QHNI5_js.e(e,"w","vAlign");if(u){let y=chunk3R7QHNI5_js.j(u,"w","val");(y==="top"||y==="center"||y==="bottom")&&(t.verticalAlign=y);}let l=chunk3R7QHNI5_js.e(e,"w","textDirection");if(l){let y=chunk3R7QHNI5_js.j(l,"w","val");y&&(t.textDirection=y);}let f=chunk3R7QHNI5_js.e(e,"w","gridSpan");if(f){let y=chunk3R7QHNI5_js.l(f,"w","val");y!==void 0&&y>1&&(t.gridSpan=y);}let c=chunk3R7QHNI5_js.e(e,"w","vMerge");c&&(chunk3R7QHNI5_js.j(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","tcFitText"))&&(t.fitText=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","noWrap"))&&(t.noWrap=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","hideMark"))&&(t.hideMark=true);let C=dt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(C&&(t.conditionalFormat=C),Object.keys(t).length!==0)return t}function En(e,t,n,o,r,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let p=c.name.split(":").pop();if(p==="p"){let d=Y(c,t,n,o,r,a,u);l.push(d);}else if(p==="tbl"){let d=ye(c,t,n,o,r,a,u);l.push(d);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function Pn(e,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=chunk3R7QHNI5_js.e(e,"w","tcPr"),c=mt(f);return c&&(l.formatting=c),l.propertyChanges=Sn(f,c),l.structuralChange=Rn(f),l.content=En(e,t,n,o,r,a,u),l}function Bn(e,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f=chunk3R7QHNI5_js.e(e,"w","trPr"),c=pt(f);c&&(l.formatting=c),l.propertyChanges=kn(f,c),l.structuralChange=Mn(f);let p=chunk3R7QHNI5_js.f(e,"w","tc");for(let d of p){let w=Pn(d,t,n,o,r,a,u);l.cells.push(w);}return l}function vn(e){if(!e)return;let t=[],n=chunk3R7QHNI5_js.f(e,"w","gridCol");for(let o of n){let r=chunk3R7QHNI5_js.l(o,"w","w")??0;t.push(r);}if(!(t.length>0&&t.every(o=>o<=0)))return t.length>0?t:void 0}function Nn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function An(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Nn(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let o=n.cells[0];(o.formatting?.gridSpan??1)>=t||o.formatting?.vMerge||o.formatting?.gridSpan==null&&(o.formatting={...o.formatting??{},gridSpan:t});}}function ye(e,t,n,o,r,a,u){let l={type:"table",rows:[]},f=chunk3R7QHNI5_js.e(e,"w","tblPr"),c=ct(f);c&&(l.formatting=c),l.propertyChanges=xn(f,c);let p=vn(chunk3R7QHNI5_js.e(e,"w","tblGrid"));p&&(l.columnWidths=p);let d=chunk3R7QHNI5_js.f(e,"w","tr");for(let w of d){let C=Bn(w,t,n,o,r,a,u);l.rows.push(C);}return An(l),l}exports.A=uo;exports.B=Ze;exports.C=go;exports.D=ho;exports.E=K;exports.F=tt;exports.G=Po;exports.H=Bo;exports.I=vo;exports.J=No;exports.K=Ao;exports.L=Ho;exports.M=Io;exports.N=Fn;exports.O=Y;exports.a=In;exports.b=$;exports.c=Ie;exports.d=W;exports.e=te;exports.f=ne;exports.g=oe;exports.h=he;exports.i=we;exports.j=Tt;exports.k=Ct;exports.l=Ft;exports.m=xt;exports.n=kt;exports.o=ct;exports.p=Et;exports.q=q;exports.r=Jn;exports.s=eo;exports.t=ro;exports.u=io;exports.v=$e;exports.w=Ye;exports.x=ao;exports.y=lo;exports.z=so;
|
package/dist/chunk-MNOHUTKE.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';var l=new Set,d=new Map,y=new Set,f=new Map,w=new Set,p=new Set,u=false;function m(t,n){let e=t instanceof Error?t.message:String(t),o=new Error(`[font] ${n}: ${e}`,{cause:t});if(p.size>0)for(let i of p)try{i(o);}catch(a){console.error("Font error subscriber threw:",a);}else console.warn(o.message);}function x(t,n="normal"){return `${t.trim()}|${n}`}function P(t,n=[400,700],e=["normal","italic"]){let o=encodeURIComponent(t),i=[];for(let s of e){let r=s==="italic"?1:0;for(let c of n)i.push(`${r},${c}`);}i.sort();let a=i.join(";");return `https://fonts.googleapis.com/css2?family=${o}:ital,wght@${a}&display=swap`}async function h(t,n){if(typeof document>"u")return false;let e=t.trim();if(l.has(e))return true;let o=d.get(e);if(o)return o;let i=(async()=>{u=true;try{let a=P(e,n?.weights,n?.styles),s=document.createElement("link");return s.rel="stylesheet",s.href=a,await new Promise(c=>{s.onload=()=>c(!0),s.onerror=()=>c(!1),document.head.appendChild(s),setTimeout(()=>c(!1),5e3);})?(await b(e,3e3),l.add(e),F([e]),!0):!1}catch(a){return m(a,`failed to load "${e}"`),false}finally{d.delete(e),d.size===0&&f.size===0&&(u=false);}})();return d.set(e,i),i}async function A(t,n){let e=t.filter(o=>!l.has(o.trim()));e.length!==0&&await Promise.all(e.map(o=>h(o,n)));}function T(t){return l.has(t.trim())}function z(){return u}function G(){return Array.from(l)}function U(t){return w.add(t),()=>{w.delete(t);}}function F(t){for(let n of w)try{n(t);}catch(e){m(e,"load callback threw");}}function I(t){return p.add(t),()=>{p.delete(t);}}async function b(t,n){if("fonts"in document)try{let e=`400 16px "${t}"`;return await Promise.race([document.fonts.load(e),new Promise(o=>setTimeout(o,n))]),document.fonts.check(e)}catch{}return await new Promise(e=>setTimeout(e,100)),true}function M(t,n="sans-serif"){if(typeof document>"u")return false;let e=(i,a)=>{let r=document.createElement("canvas").getContext("2d");if(!r)return false;r.textBaseline="top";let c="abcdefghijklmnopqrstuvwxyz0123456789";r.font=`72px ${a}`;let g=r.measureText(c).width;return r.font=`72px "${i}", ${a}`,r.measureText(c).width!==g};return e(t,n)?true:e(t,n==="sans-serif"?"serif":"sans-serif")}async function R(t,n,e){if(typeof document>"u")return false;let o=t.trim(),i=x(o,e?.weight);if(y.has(i))return true;let a=f.get(i);if(a)return a;let s=(async()=>{u=true;try{let r=new Blob([n],{type:"font/ttf"}),c=URL.createObjectURL(r),g=document.createElement("style");return g.textContent=`
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: "${o}";
|
|
4
|
-
src: url(${c}) format('truetype');
|
|
5
|
-
font-weight: ${e?.weight??"normal"};
|
|
6
|
-
font-display: swap;
|
|
7
|
-
}
|
|
8
|
-
`,document.head.appendChild(g),await b(o,3e3),y.add(i),l.add(o),F([o]),!0}catch(r){return m(r,`failed to load "${o}" from buffer`),false}finally{f.delete(i),d.size===0&&f.size===0&&(u=false);}})();return f.set(i,s),s}function C(t){let n=t.split("?")[0].split("#")[0].toLowerCase();return n.endsWith(".woff2")?"woff2":n.endsWith(".woff")?"woff":n.endsWith(".otf")?"opentype":"truetype"}async function $(t,n,e){if(typeof document>"u")return false;if(/[<>]/.test(n))return m(new Error(`invalid src URL for "${t}": contains '<' or '>'`),"rejected src"),false;let o=t.trim(),i=x(o,e?.weight);if(y.has(i))return true;let a=f.get(i);if(a)return a;let s=(async()=>{u=true;try{let r=document.createElement("style");return r.textContent=`
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: "${o}";
|
|
11
|
-
src: url(${JSON.stringify(n)}) format('${C(n)}');
|
|
12
|
-
font-weight: ${e?.weight??"normal"};
|
|
13
|
-
font-display: swap;
|
|
14
|
-
}
|
|
15
|
-
`,document.head.appendChild(r),await b(o,3e3),y.add(i),l.add(o),F([o]),!0}catch(r){return m(r,`failed to load "${o}" from ${n}`),false}finally{f.delete(i),d.size===0&&f.size===0&&(u=false);}})();return f.set(i,s),s}async function D(t){!t||t.length===0||await Promise.all(t.map(n=>$(n.family,n.src,{weight:n.weight})));}var k={Calibri:"Carlito",Cambria:"Caladea",Arial:"Arimo","Times New Roman":"Tinos","Courier New":"Cousine",Garamond:"EB Garamond","Book Antiqua":"EB Garamond",Georgia:"Tinos",Verdana:"Open Sans",Tahoma:"Open Sans","Trebuchet MS":"Source Sans Pro","Century Gothic":"Poppins","Franklin Gothic":"Libre Franklin",Palatino:"EB Garamond","Palatino Linotype":"EB Garamond","Lucida Sans":"Open Sans","Segoe UI":"Open Sans",Impact:"Anton","Comic Sans MS":"Comic Neue",Consolas:"Inconsolata","Lucida Console":"Inconsolata",Monaco:"Fira Code"};function S(t){let n=t.trim();return k[n]||n}async function E(t){let n=t.trim(),e=S(n);if(e!==n){let o=await h(e);return o&&l.add(n),o}return h(e)}async function v(t){let n=[...new Set(t.map(e=>e.trim()))];await Promise.all(n.map(e=>E(e)));}async function W(){await A(["Carlito","Caladea","Arimo","Tinos","Cousine","EB Garamond"]);}function B(t){let n=new Set,e=t;if(!e?.package)return n;let o=e.package?.document?.content;if(Array.isArray(o)){for(let a of o)if(a?.type==="paragraph"&&Array.isArray(a.content)){for(let s of a.content)if(s?.type==="run"&&s.formatting?.fontFamily){let{ascii:r,hAnsi:c}=s.formatting.fontFamily;r&&n.add(r),c&&c!==r&&n.add(c);}}}let i=e.package?.styles?.styles;if(Array.isArray(i)){for(let a of i)if(a?.runProperties?.fontFamily){let{ascii:s,hAnsi:r}=a.runProperties.fontFamily;s&&n.add(s),r&&r!==s&&n.add(r);}}return n}async function O(t){let n=B(t);n.size!==0&&await v(Array.from(n));}async function j(t){if(t instanceof ArrayBuffer)return t;if(t instanceof Uint8Array){let n=new ArrayBuffer(t.byteLength);return new Uint8Array(n).set(t),n}if(t instanceof Blob)return t.arrayBuffer();throw new TypeError(`Unsupported DocxInput type: ${typeof t}`)}exports.a=h;exports.b=A;exports.c=T;exports.d=z;exports.e=G;exports.f=U;exports.g=I;exports.h=M;exports.i=R;exports.j=$;exports.k=D;exports.l=k;exports.m=S;exports.n=E;exports.o=v;exports.p=W;exports.q=B;exports.r=O;exports.s=j;
|
package/dist/chunk-NAFMAKLK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkC2BAPYGJ_js=require('./chunk-C2BAPYGJ.js');function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e){return e==null||!Number.isFinite(e)?"0":String(Math.round(e))}var x='xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16sdtfl="http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"',y='mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14"';function R(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}function ze(e){return `<w:headerReference ${[`w:type="${e.type}"`,`r:id="${e.rId}"`].join(" ")}/>`}function ke(e){return `<w:footerReference ${[`w:type="${e.type}"`,`r:id="${e.rId}"`].join(" ")}/>`}function Re(e){if(!e)return "";let t=[];return e.position&&t.push(`<w:pos w:val="${e.position}"/>`),e.numFmt&&t.push(`<w:numFmt w:val="${e.numFmt}"/>`),e.numStart!==void 0&&t.push(`<w:numStart w:val="${e.numStart}"/>`),e.numRestart&&t.push(`<w:numRestart w:val="${e.numRestart}"/>`),t.length===0?"":`<w:footnotePr>${t.join("")}</w:footnotePr>`}function Ie(e){if(!e)return "";let t=[];return e.position&&t.push(`<w:pos w:val="${e.position}"/>`),e.numFmt&&t.push(`<w:numFmt w:val="${e.numFmt}"/>`),e.numStart!==void 0&&t.push(`<w:numStart w:val="${e.numStart}"/>`),e.numRestart&&t.push(`<w:numRestart w:val="${e.numRestart}"/>`),t.length===0?"":`<w:endnotePr>${t.join("")}</w:endnotePr>`}function je(e){let t=[];return e.pageWidth!==void 0&&t.push(`w:w="${s(e.pageWidth)}"`),e.pageHeight!==void 0&&t.push(`w:h="${s(e.pageHeight)}"`),e.orientation==="landscape"&&t.push('w:orient="landscape"'),t.length===0?"":`<w:pgSz ${t.join(" ")}/>`}function Be(e){let t=[];return e.marginTop!==void 0&&t.push(`w:top="${s(e.marginTop)}"`),e.marginRight!==void 0&&t.push(`w:right="${s(e.marginRight)}"`),e.marginBottom!==void 0&&t.push(`w:bottom="${s(e.marginBottom)}"`),e.marginLeft!==void 0&&t.push(`w:left="${s(e.marginLeft)}"`),e.headerDistance!==void 0&&t.push(`w:header="${s(e.headerDistance)}"`),e.footerDistance!==void 0&&t.push(`w:footer="${s(e.footerDistance)}"`),e.gutter!==void 0&&t.push(`w:gutter="${s(e.gutter)}"`),t.length===0?"":`<w:pgMar ${t.join(" ")}/>`}function Ae(e){if(!e.columnCount&&!e.columns?.length)return "";let t=[];e.columnCount!==void 0&&e.columnCount>1&&t.push(`w:num="${s(e.columnCount)}"`),e.columnSpace!==void 0&&t.push(`w:space="${s(e.columnSpace)}"`),e.equalWidth!==void 0&&t.push(`w:equalWidth="${e.equalWidth?"1":"0"}"`),e.separator&&t.push('w:sep="1"');let n="";return e.columns&&e.columns.length>0&&(n=e.columns.map(i=>{let o=[];return i.width!==void 0&&o.push(`w:w="${s(i.width)}"`),i.space!==void 0&&o.push(`w:space="${s(i.space)}"`),`<w:col ${o.join(" ")}/>`}).join("")),t.length===0&&!n?"":`<w:cols${t.length>0?" "+t.join(" "):""}>${n}</w:cols>`}function Ee(e){if(!e.lineNumbers)return "";let t=e.lineNumbers,n=[];return t.countBy!==void 0&&n.push(`w:countBy="${s(t.countBy)}"`),t.start!==void 0&&n.push(`w:start="${s(t.start)}"`),t.distance!==void 0&&n.push(`w:distance="${s(t.distance)}"`),t.restart&&n.push(`w:restart="${t.restart}"`),n.length===0?"":`<w:lnNumType ${n.join(" ")}/>`}function De(e){if(!e.pageBorders)return "";let t=e.pageBorders,n=[],r=[];if(t.display&&n.push(`w:display="${t.display}"`),t.offsetFrom&&n.push(`w:offsetFrom="${t.offsetFrom}"`),t.zOrder&&n.push(`w:zOrder="${t.zOrder}"`),t.top){let o=R(t.top,"top");o&&r.push(o);}if(t.left){let o=R(t.left,"left");o&&r.push(o);}if(t.bottom){let o=R(t.bottom,"bottom");o&&r.push(o);}if(t.right){let o=R(t.right,"right");o&&r.push(o);}return r.length===0?"":`<w:pgBorders${n.length>0?" "+n.join(" "):""}>${r.join("")}</w:pgBorders>`}function Xe(e){if(!e.docGrid)return "";let t=e.docGrid,n=[];return t.type&&n.push(`w:type="${t.type}"`),t.linePitch!==void 0&&n.push(`w:linePitch="${t.linePitch}"`),t.charSpace!==void 0&&n.push(`w:charSpace="${t.charSpace}"`),n.length===0?"":`<w:docGrid ${n.join(" ")}/>`}function I(e){if(!e)return "";let t=[];if(e.headerReferences)for(let p of e.headerReferences)t.push(ze(p));if(e.footerReferences)for(let p of e.footerReferences)t.push(ke(p));let n=Re(e.footnotePr);n&&t.push(n);let r=Ie(e.endnotePr);r&&t.push(r),e.sectionStart&&t.push(`<w:type w:val="${e.sectionStart}"/>`);let i=je(e);i&&t.push(i);let o=Be(e);if(o&&t.push(o),e.paperSrcFirst!==void 0||e.paperSrcOther!==void 0){let p=[];e.paperSrcFirst!==void 0&&p.push(`w:first="${e.paperSrcFirst}"`),e.paperSrcOther!==void 0&&p.push(`w:other="${e.paperSrcOther}"`),t.push(`<w:paperSrc ${p.join(" ")}/>`);}let c=De(e);c&&t.push(c);let l=Ee(e);l&&t.push(l);let u=Ae(e);u&&t.push(u),e.verticalAlign&&t.push(`<w:vAlign w:val="${e.verticalAlign}"/>`),e.titlePg&&t.push("<w:titlePg/>"),e.bidi&&t.push("<w:bidi/>");let f=Xe(e);return f&&t.push(f),e.evenAndOddHeaders&&t.push("<w:evenAndOddHeaders/>"),t.length===0?"":`<w:sectPr>${t.join("")}</w:sectPr>`}function Me(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}var Le=["top","left","bottom","right","between","bar"];function q(e){if(!e)return "";let t=[];for(let n of Le){let r=Me(e[n],n);r&&t.push(r);}return t.length===0?"":`<w:pBdr>${t.join("")}</w:pBdr>`}function G(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function _(e){return !e||e.length===0?"":`<w:tabs>${e.map(n=>{let r=[`w:val="${n.alignment}"`,`w:pos="${s(n.position)}"`];return n.leader&&n.leader!=="none"&&r.push(`w:leader="${n.leader}"`),`<w:tab ${r.join(" ")}/>`}).join("")}</w:tabs>`}function V(e){let t=[];return e.spaceBefore!==void 0&&t.push(`w:before="${s(e.spaceBefore)}"`),e.spaceAfter!==void 0&&t.push(`w:after="${s(e.spaceAfter)}"`),e.lineSpacing!==void 0&&t.push(`w:line="${s(e.lineSpacing)}"`),e.lineSpacingRule&&t.push(`w:lineRule="${e.lineSpacingRule}"`),e.beforeAutospacing&&t.push('w:beforeAutospacing="1"'),e.afterAutospacing&&t.push('w:afterAutospacing="1"'),t.length===0?"":`<w:spacing ${t.join(" ")}/>`}function U(e){let t=[];return e.indentLeft!==void 0&&t.push(`w:left="${s(e.indentLeft)}"`),e.indentRight!==void 0&&t.push(`w:right="${s(e.indentRight)}"`),e.indentFirstLine!==void 0&&(e.hangingIndent?t.push(`w:hanging="${s(Math.abs(e.indentFirstLine))}"`):e.indentFirstLine!==0&&t.push(`w:firstLine="${s(e.indentFirstLine)}"`)),t.length===0?"":`<w:ind ${t.join(" ")}/>`}function Y(e){if(!e)return "";let t=[];return e.ilvl!==void 0&&t.push(`<w:ilvl w:val="${s(e.ilvl)}"/>`),e.numId!==void 0&&t.push(`<w:numId w:val="${s(e.numId)}"/>`),t.length===0?"":`<w:numPr>${t.join("")}</w:numPr>`}function Z(e){if(!e)return "";let t=[];return e.width!==void 0&&t.push(`w:w="${s(e.width)}"`),e.height!==void 0&&t.push(`w:h="${s(e.height)}"`),e.hAnchor&&t.push(`w:hAnchor="${e.hAnchor}"`),e.vAnchor&&t.push(`w:vAnchor="${e.vAnchor}"`),e.x!==void 0&&t.push(`w:x="${s(e.x)}"`),e.y!==void 0&&t.push(`w:y="${s(e.y)}"`),e.xAlign&&t.push(`w:xAlign="${e.xAlign}"`),e.yAlign&&t.push(`w:yAlign="${e.yAlign}"`),e.wrap&&t.push(`w:wrap="${e.wrap}"`),t.length===0?"":`<w:framePr ${t.join(" ")}/>`}function K(e){let t=[`w:id="${e.id}"`,`w:name="${a(e.name)}"`];return e.colFirst!==void 0&&t.push(`w:colFirst="${e.colFirst}"`),e.colLast!==void 0&&t.push(`w:colLast="${e.colLast}"`),`<w:bookmarkStart ${t.join(" ")}/>`}function Q(e){return `<w:bookmarkEnd w:id="${e.id}"/>`}function W(e){let t=[];e.rId&&t.push(`r:id="${e.rId}"`),e.anchor&&t.push(`w:anchor="${a(e.anchor)}"`),e.tooltip&&t.push(`w:tooltip="${a(e.tooltip)}"`),e.target&&t.push(`w:tgtFrame="${a(e.target)}"`),e.history===false&&t.push('w:history="0"'),e.docLocation&&t.push(`w:docLocation="${a(e.docLocation)}"`);let n=e.children.map(i=>i.type==="run"?P(i):i.type==="bookmarkStart"?K(i):i.type==="bookmarkEnd"?Q(i):"").join("");return `<w:hyperlink${t.length>0?" "+t.join(" "):""}>${n}</w:hyperlink>`}function ee(e){let t=[],n=e.content.find(l=>l.type==="run"),r=n?.formatting?T(n.formatting):"",i=['w:fldCharType="begin"'];e.fldLock&&i.push('w:fldLock="true"'),t.push(`<w:r>${r}<w:fldChar ${i.join(" ")}/></w:r>`);let c=e.instruction.startsWith(" ")||e.instruction.endsWith(" ")||e.instruction.includes(" ")?' xml:space="preserve"':"";t.push(`<w:r>${r}<w:instrText${c}>${a(e.instruction)}</w:instrText></w:r>`),t.push(`<w:r>${r}<w:fldChar w:fldCharType="separate"/></w:r>`);for(let l of e.content)l.type==="run"&&t.push(P(l));return t.push(`<w:r>${r}<w:fldChar w:fldCharType="end"/></w:r>`),t.join("")}function te(e){let t=[],n=e.fieldResult?.[0]?.formatting,r=n?T(n):"",i=['w:fldCharType="begin"'];if(e.fldLock&&i.push('w:fldLock="true"'),t.push(`<w:r>${r}<w:fldChar ${i.join(" ")}/></w:r>`),e.fieldCode.length>0)t.push(...e.fieldCode.map(o=>P(o)));else {let c=e.instruction.startsWith(" ")||e.instruction.endsWith(" ")||e.instruction.includes(" ")?' xml:space="preserve"':"";t.push(`<w:r>${r}<w:instrText${c}>${a(e.instruction)}</w:instrText></w:r>`);}return t.push(`<w:r>${r}<w:fldChar w:fldCharType="separate"/></w:r>`),t.push(...e.fieldResult.map(o=>P(o))),t.push(`<w:r>${r}<w:fldChar w:fldCharType="end"/></w:r>`),t.join("")}function ne(e){let t=e.properties,n=[];switch(t.alias&&n.push(`<w:alias w:val="${a(t.alias)}"/>`),t.tag&&n.push(`<w:tag w:val="${a(t.tag)}"/>`),t.lock&&t.lock!=="unlocked"&&n.push(`<w:lock w:val="${t.lock}"/>`),t.showingPlaceholder&&n.push("<w:showingPlcHdr/>"),t.sdtType){case "plainText":n.push("<w:text/>");break;case "date":t.dateFormat?n.push(`<w:date w:fullDate="${a(t.dateFormat)}"/>`):n.push("<w:date/>");break;case "dropDownList":{let i=(t.listItems??[]).map(o=>`<w:listItem w:displayText="${a(o.displayText)}" w:value="${a(o.value)}"/>`).join("");n.push(`<w:dropDownList>${i}</w:dropDownList>`);break}case "comboBox":{let i=(t.listItems??[]).map(o=>`<w:listItem w:displayText="${a(o.displayText)}" w:value="${a(o.value)}"/>`).join("");n.push(`<w:comboBox>${i}</w:comboBox>`);break}case "checkbox":n.push(`<w14:checkbox><w14:checked w14:val="${t.checked?"1":"0"}"/></w14:checkbox>`);break;case "picture":n.push("<w:picture/>");break}let r=e.content.map(i=>{switch(i.type){case "run":return P(i);case "hyperlink":return W(i);case "simpleField":return ee(i);case "complexField":return te(i);case "inlineSdt":return ne(i);case "mathEquation":return i.ommlXml||"";default:return i}}).join("");return `<w:sdt><w:sdtPr>${n.join("")}</w:sdtPr><w:sdtContent>${r}</w:sdtContent></w:sdt>`}function J(e,t){let n=[`w:id="${t.id}"`,`w:name="${a(t.name)}"`];return `<w:${e} ${n.join(" ")}/>`}function j(e,t){let n=t.info,r=Number.isInteger(n.id)&&n.id>=0?n.id:0,i=typeof n.author=="string"?n.author.trim():"",o=i.length>0?i:"Unknown",c=typeof n.date=="string"?n.date.trim():void 0,l=[`w:id="${r}"`,`w:author="${a(o)}"`];c&&l.push(`w:date="${a(c)}"`);let u=t.content.map(f=>{if(f.type==="run"){let p=P(f),w=f.content.some(m=>m.type==="drawing");return (e==="del"||e==="moveFrom")&&!w?p.replace(/<w:t\b/g,"<w:delText").replace(/<\/w:t>/g,"</w:delText>").replace(/<w:instrText\b/g,"<w:delInstrText").replace(/<\/w:instrText>/g,"</w:delInstrText>"):p}return f.type==="hyperlink"?W(f):""}).join("");return `<w:${e} ${l.join(" ")}>${u}</w:${e}>`}function re(e){switch(e.type){case "run":return P(e);case "hyperlink":return W(e);case "bookmarkStart":return K(e);case "bookmarkEnd":return Q(e);case "simpleField":return ee(e);case "complexField":return te(e);case "inlineSdt":return ne(e);case "commentRangeStart":return `<w:commentRangeStart w:id="${e.id}"/>`;case "commentRangeEnd":return `<w:commentRangeEnd w:id="${e.id}"/><w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:commentReference w:id="${e.id}"/></w:r>`;case "insertion":return j("ins",e);case "deletion":return j("del",e);case "moveFrom":return j("moveFrom",e);case "moveTo":return j("moveTo",e);case "moveFromRangeStart":return J("moveFromRangeStart",e);case "moveFromRangeEnd":return `<w:moveFromRangeEnd w:id="${e.id}"/>`;case "moveToRangeStart":return J("moveToRangeStart",e);case "moveToRangeEnd":return `<w:moveToRangeEnd w:id="${e.id}"/>`;case "mathEquation":return e.ommlXml||"";default:return ""}}function ie(e){let t=Number.isInteger(e.id)&&e.id>=0?e.id:0,n=typeof e.author=="string"&&e.author.length>0?e.author:"Unknown",r=[`w:id="${t}"`,`w:author="${a(n)}"`],i=typeof e.date=="string"&&e.date.length>0?e.date:void 0;return i&&r.push(`w:date="${a(i)}"`),r.join(" ")}function We(e,t,n){let r=[];if(t&&r.push(`<w:ins ${ie(t)}/>`),n&&r.push(`<w:del ${ie(n)}/>`),e?.runProperties){let i=T(e.runProperties);if(i)if(i.startsWith("<w:rPr>")&&i.endsWith("</w:rPr>")){let o=i.slice(7,-8);o.length>0&&r.push(o);}else i.startsWith("<w:rPr/>")||r.push(i);}return r.length===0?"":`<w:rPr>${r.join("")}</w:rPr>`}function oe(e,t,n,r,i){let o=[];if(e){e.styleId&&o.push(`<w:pStyle w:val="${a(e.styleId)}"/>`),e.keepNext===true?o.push("<w:keepNext/>"):e.keepNext===false&&o.push('<w:keepNext w:val="0"/>'),e.keepLines===true?o.push("<w:keepLines/>"):e.keepLines===false&&o.push('<w:keepLines w:val="0"/>'),e.contextualSpacing===true?o.push("<w:contextualSpacing/>"):e.contextualSpacing===false&&o.push('<w:contextualSpacing w:val="0"/>'),e.pageBreakBefore===true?o.push("<w:pageBreakBefore/>"):e.pageBreakBefore===false&&o.push('<w:pageBreakBefore w:val="0"/>');let c=Z(e.frame);c&&o.push(c),e.widowControl===false?o.push('<w:widowControl w:val="0"/>'):e.widowControl===true&&o.push("<w:widowControl/>");let l=Y(e.numPr);l&&o.push(l);let u=q(e.borders);u&&o.push(u);let f=G(e.shading);f&&o.push(f);let p=_(e.tabs);p&&o.push(p),e.suppressLineNumbers===true?o.push("<w:suppressLineNumbers/>"):e.suppressLineNumbers===false&&o.push('<w:suppressLineNumbers w:val="0"/>'),e.suppressAutoHyphens===true?o.push("<w:suppressAutoHyphens/>"):e.suppressAutoHyphens===false&&o.push('<w:suppressAutoHyphens w:val="0"/>');let w=V(e);w&&o.push(w);let m=U(e);m&&o.push(m),e.bidi===true?o.push("<w:bidi/>"):e.bidi===false&&o.push('<w:bidi w:val="0"/>'),e.alignment&&o.push(`<w:jc w:val="${e.alignment}"/>`),e.outlineLevel!==void 0&&o.push(`<w:outlineLvl w:val="${e.outlineLevel}"/>`);}if(!i?.baseOnly){let c=We(e,n??void 0,r??void 0);if(c&&o.push(c),i?.sectionProperties){let l=I(i.sectionProperties);l&&o.push(l);}t&&t.length>0&&o.push(Oe(t[0]));}return o.length===0?"":`<w:pPr>${o.join("")}</w:pPr>`}function He(e){return !e.startsWith("<w:pPr>")||!e.endsWith("</w:pPr>")?"":e.slice(7,-8)}function Oe(e){let t=Number.isInteger(e.info.id)&&e.info.id>=0?e.info.id:0,n=typeof e.info.author=="string"?e.info.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.info.date=="string"?e.info.date.trim():void 0,o=[`w:id="${t}"`,`w:author="${a(r)}"`];i&&o.push(`w:date="${a(i)}"`);let c=oe(e.previousFormatting,void 0,void 0,void 0,{baseOnly:true})||"<w:pPr/>",l=He(c),u=l.length>0?`<w:pPr>${l}</w:pPr>`:"<w:pPr/>";return `<w:pPrChange ${o.join(" ")}>${u}</w:pPrChange>`}function v(e){let t=[],n=[];e.paraId&&n.push(`w14:paraId="${e.paraId}"`),e.textId&&n.push(`w14:textId="${e.textId}"`);let r=n.length>0?" "+n.join(" "):"",i=oe(e.formatting,e.propertyChanges,e.pPrIns,e.pPrDel,e.sectionProperties?{sectionProperties:e.sectionProperties}:void 0);i&&t.push(i);let o=!!e.renderedPageBreakBefore;for(let c of e.content){let l=re(c);if(l){if(o){let u=Ne(l);u&&(l=u,o=false);}t.push(l);}}return `<w:p${r}>${t.join("")}</w:p>`}function Ne(e){let t=/<w:r(?=[\s>/])[^>]*>/;return t.test(e)?e.replace(t,n=>`${n}<w:lastRenderedPageBreak/>`):null}var se=1e5;function O(){se=1e5;}function ae(e){return e!=null&&e!==""&&e!==0?String(e):String(se++)}function H(e){if(!e)return "";if(e.rgb)return `<a:srgbClr val="${e.rgb.replace("#","")}"/>`;if(e.themeColor){let t=`<a:schemeClr val="${e.themeColor}"`;return e.themeTint?t+=`><a:tint val="${e.themeTint}"/></a:schemeClr>`:e.themeShade?t+=`><a:shade val="${e.themeShade}"/></a:schemeClr>`:t+="/>",t}return ""}function qe(e){if(!e||e.type==="none")return "<a:noFill/>";if(e.type==="solid"&&e.color)return `<a:solidFill>${H(e.color)}</a:solidFill>`;if(e.type==="gradient"&&e.gradient){let t=e.gradient,n=t.stops.map(i=>`<a:gs pos="${i.position}">${H(i.color)}</a:gs>`).join(""),r=t.type==="linear"?`<a:lin ang="${(t.angle||0)*6e4}" scaled="1"/>`:"";return `<a:gradFill><a:gsLst>${n}</a:gsLst>${r}</a:gradFill>`}return ""}function le(e){if(!e)return "";let t=[];e.width!=null&&t.push(`w="${e.width}"`),e.cap&&t.push(`cap="${e.cap}"`);let n=[];return e.color&&n.push(`<a:solidFill>${H(e.color)}</a:solidFill>`),e.style&&e.style!=="solid"&&n.push(`<a:prstDash val="${e.style}"/>`),e.headEnd&&n.push(`<a:headEnd type="${e.headEnd.type}"${e.headEnd.width?` w="${e.headEnd.width}"`:""}${e.headEnd.length?` len="${e.headEnd.length}"`:""}/>`),e.tailEnd&&n.push(`<a:tailEnd type="${e.tailEnd.type}"${e.tailEnd.width?` w="${e.tailEnd.width}"`:""}${e.tailEnd.length?` len="${e.tailEnd.length}"`:""}/>`),n.length===0&&t.length===0?"":`<a:ln${t.length?" "+t.join(" "):""}>${n.join("")}</a:ln>`}function ce(e){let t=[],n=e.horizontal;t.push(`<wp:positionH relativeFrom="${n.relativeTo}">`),n.alignment?t.push(`<wp:align>${n.alignment}</wp:align>`):t.push(`<wp:posOffset>${s(n.posOffset)}</wp:posOffset>`),t.push("</wp:positionH>");let r=e.vertical;return t.push(`<wp:positionV relativeFrom="${r.relativeTo}">`),r.alignment?t.push(`<wp:align>${r.alignment}</wp:align>`):t.push(`<wp:posOffset>${s(r.posOffset)}</wp:posOffset>`),t.push("</wp:positionV>"),t.join("")}function pe(e){let t=e.wrapText?` wrapText="${e.wrapText}"`:' wrapText="bothSides"';switch(e.type){case "square":return `<wp:wrapSquare${t}/>`;case "tight":return `<wp:wrapTight${t}><wp:wrapPolygon edited="0"><wp:start x="0" y="0"/><wp:lineTo x="0" y="21600"/><wp:lineTo x="21600" y="21600"/><wp:lineTo x="21600" y="0"/><wp:lineTo x="0" y="0"/></wp:wrapPolygon></wp:wrapTight>`;case "through":return `<wp:wrapThrough${t}><wp:wrapPolygon edited="0"><wp:start x="0" y="0"/><wp:lineTo x="0" y="21600"/><wp:lineTo x="21600" y="21600"/><wp:lineTo x="21600" y="0"/><wp:lineTo x="0" y="0"/></wp:wrapPolygon></wp:wrapThrough>`;case "topAndBottom":return "<wp:wrapTopAndBottom/>";case "behind":case "inFront":return "<wp:wrapNone/>";default:return "<wp:wrapNone/>"}}function Ge(e,t){let n=e.size.width,r=e.size.height,i=e.rId||"rId1",o=t,c=e.filename||`image${o}`,l="";e.transform?.rotation&&(l+=` rot="${Math.round(e.transform.rotation*6e4)}"`),e.transform?.flipH&&(l+=' flipH="1"'),e.transform?.flipV&&(l+=' flipV="1"');let u=e.opacity!==void 0&&e.opacity<1?`<a:alphaModFix amt="${Math.round(Math.max(0,Math.min(1,e.opacity))*1e5)}"/>`:"",f=u?`<a:blip r:embed="${i}">${u}</a:blip>`:`<a:blip r:embed="${i}"/>`,p=[];e.crop?.left&&p.push(`l="${Math.round(e.crop.left*1e5)}"`),e.crop?.top&&p.push(`t="${Math.round(e.crop.top*1e5)}"`),e.crop?.right&&p.push(`r="${Math.round(e.crop.right*1e5)}"`),e.crop?.bottom&&p.push(`b="${Math.round(e.crop.bottom*1e5)}"`);let w=p.length>0?`<a:srcRect ${p.join(" ")}/>`:"";return ['<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">','<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">','<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">',"<pic:nvPicPr>",`<pic:cNvPr id="${o}" name="${a(c)}"${e.alt?` descr="${a(e.alt)}"`:""}/>`,"<pic:cNvPicPr/>","</pic:nvPicPr>","<pic:blipFill>",f,w,"<a:stretch><a:fillRect/></a:stretch>","</pic:blipFill>","<pic:spPr>",`<a:xfrm${l}>`,'<a:off x="0" y="0"/>',`<a:ext cx="${s(n)}" cy="${s(r)}"/>`,"</a:xfrm>",'<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',e.outline?le(e.outline):"","</pic:spPr>","</pic:pic>","</a:graphicData>","</a:graphic>"].join("")}function ue(e){let t=e.image,n=t.wrap.type!=="inline",r=t.size.width,i=t.size.height,o=t.wrap.distT??0,c=t.wrap.distB??0,l=t.wrap.distL??0,u=t.wrap.distR??0,f=t.padding?.left??0,p=t.padding?.top??0,w=t.padding?.right??0,m=t.padding?.bottom??0,k=`<wp:effectExtent l="${s(f)}" t="${s(p)}" r="${s(w)}" b="${s(m)}"/>`,g=ae(t.id),E=t.title||t.filename||`Picture ${g}`,F=Ge(t,g);if(!n)return ["<w:drawing>",`<wp:inline distT="${s(o)}" distB="${s(c)}" distL="${s(l)}" distR="${s(u)}">`,`<wp:extent cx="${s(r)}" cy="${s(i)}"/>`,k,`<wp:docPr id="${g}" name="${a(E)}"${t.alt?` descr="${a(t.alt)}"`:""}${t.decorative?' hidden="1"':""}/>`,'<wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr>',F,"</wp:inline>","</w:drawing>"].join("");let D=t.wrap.type==="behind"?"1":"0",X=t.position?ce(t.position):'<wp:positionH relativeFrom="column"><wp:posOffset>0</wp:posOffset></wp:positionH><wp:positionV relativeFrom="paragraph"><wp:posOffset>0</wp:posOffset></wp:positionV>',M=pe(t.wrap);return ["<w:drawing>",`<wp:anchor distT="${s(o)}" distB="${s(c)}" distL="${s(l)}" distR="${s(u)}" simplePos="0" relativeHeight="251658240" behindDoc="${D}" locked="0" layoutInCell="${t.layoutInCell===false?"0":"1"}" allowOverlap="${t.allowOverlap===false?"0":"1"}">`,'<wp:simplePos x="0" y="0"/>',X,`<wp:extent cx="${s(r)}" cy="${s(i)}"/>`,k,M,`<wp:docPr id="${g}" name="${a(E)}"${t.alt?` descr="${a(t.alt)}"`:""}/>`,'<wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr>',F,"</wp:anchor>","</w:drawing>"].join("")}function _e(e){return e.map(t=>v(t)).join("")}function fe(e){let t=e.shape,n=t.size.width,r=t.size.height,i=t.shapeType==="textBox",o=t.wrap&&t.wrap.type!=="inline",c=t.wrap?.distT??0,l=t.wrap?.distB??0,u=t.wrap?.distL??0,f=t.wrap?.distR??0,p=ae(t.id),w=t.name||(i?`TextBox ${p}`:`Shape ${p}`),m="";t.transform?.rotation&&(m+=` rot="${Math.round(t.transform.rotation*6e4)}"`),t.transform?.flipH&&(m+=' flipH="1"'),t.transform?.flipV&&(m+=' flipV="1"');let k=["<wps:spPr>",`<a:xfrm${m}>`,'<a:off x="0" y="0"/>',`<a:ext cx="${s(n)}" cy="${s(r)}"/>`,"</a:xfrm>",`<a:prstGeom prst="${t.shapeType==="textBox"?"rect":t.shapeType}"><a:avLst/></a:prstGeom>`,qe(t.fill),le(t.outline),"</wps:spPr>"].join(""),g="";if(t.textBody){let d=t.textBody,$=['rot="0"','vert="horz"'];d.anchor&&$.push(`anchor="${d.anchor==="middle"?"ctr":d.anchor}"`),d.anchorCenter&&$.push('anchorCtr="1"'),d.margins&&(d.margins.left!=null&&$.push(`lIns="${s(d.margins.left)}"`),d.margins.top!=null&&$.push(`tIns="${s(d.margins.top)}"`),d.margins.right!=null&&$.push(`rIns="${s(d.margins.right)}"`),d.margins.bottom!=null&&$.push(`bIns="${s(d.margins.bottom)}"`)),i?g=["<wps:txbx><w:txbxContent>",_e(d.content),"</w:txbxContent></wps:txbx>",`<wps:bodyPr ${$.join(" ")}/>`].join(""):g=[`<wps:bodyPr ${$.join(" ")}/>`].join("");}let F=['<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">','<a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">',["<wps:wsp>",`<wps:cNvSpPr${i?' txBox="1"':""}/>`,k,g,"</wps:wsp>"].join(""),"</a:graphicData>","</a:graphic>"].join("");if(!o)return ["<w:drawing>",`<wp:inline distT="${s(c)}" distB="${s(l)}" distL="${s(u)}" distR="${s(f)}">`,`<wp:extent cx="${s(n)}" cy="${s(r)}"/>`,'<wp:effectExtent l="0" t="0" r="0" b="0"/>',`<wp:docPr id="${p}" name="${a(w)}"/>`,"<wp:cNvGraphicFramePr/>",F,"</wp:inline>","</w:drawing>"].join("");let D=t.wrap?.type==="behind"?"1":"0",X=t.position?ce(t.position):'<wp:positionH relativeFrom="column"><wp:posOffset>0</wp:posOffset></wp:positionH><wp:positionV relativeFrom="paragraph"><wp:posOffset>0</wp:posOffset></wp:positionV>',M=pe(t.wrap);return ["<w:drawing>",`<wp:anchor distT="${s(c)}" distB="${s(l)}" distL="${s(u)}" distR="${s(f)}" simplePos="0" relativeHeight="251658240" behindDoc="${D}" locked="0" layoutInCell="1" allowOverlap="1">`,'<wp:simplePos x="0" y="0"/>',X,`<wp:extent cx="${s(n)}" cy="${s(r)}"/>`,'<wp:effectExtent l="0" t="0" r="0" b="0"/>',M,`<wp:docPr id="${p}" name="${a(w)}"/>`,"<wp:cNvGraphicFramePr/>",F,"</wp:anchor>","</w:drawing>"].join("")}var Ve=new Set(["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","red","white","yellow"]);function Ue(e){if(!e)return "";let t=[];return e.auto?t.push('w:val="auto"'):e.rgb&&t.push(`w:val="${e.rgb}"`),e.themeColor&&t.push(`w:themeColor="${e.themeColor}"`),e.themeTint&&t.push(`w:themeTint="${e.themeTint}"`),e.themeShade&&t.push(`w:themeShade="${e.themeShade}"`),t.length===0?"":`<w:color ${t.join(" ")}/>`}function Ye(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function T(e){if(!e)return "";let t=[];if(e.styleId&&t.push(`<w:rStyle w:val="${a(e.styleId)}"/>`),e.fontFamily){let i=[];e.fontFamily.ascii&&i.push(`w:ascii="${a(e.fontFamily.ascii)}"`),e.fontFamily.hAnsi&&i.push(`w:hAnsi="${a(e.fontFamily.hAnsi)}"`),e.fontFamily.eastAsia&&i.push(`w:eastAsia="${a(e.fontFamily.eastAsia)}"`),e.fontFamily.cs&&i.push(`w:cs="${a(e.fontFamily.cs)}"`),e.fontFamily.asciiTheme&&i.push(`w:asciiTheme="${e.fontFamily.asciiTheme}"`),e.fontFamily.hAnsiTheme&&i.push(`w:hAnsiTheme="${e.fontFamily.hAnsiTheme}"`),e.fontFamily.eastAsiaTheme&&i.push(`w:eastAsiaTheme="${e.fontFamily.eastAsiaTheme}"`),e.fontFamily.csTheme&&i.push(`w:csTheme="${e.fontFamily.csTheme}"`),i.length>0&&t.push(`<w:rFonts ${i.join(" ")}/>`);}e.bold===true?t.push("<w:b/>"):e.bold===false&&t.push('<w:b w:val="0"/>'),e.boldCs===true?t.push("<w:bCs/>"):e.boldCs===false&&t.push('<w:bCs w:val="0"/>'),e.italic===true?t.push("<w:i/>"):e.italic===false&&t.push('<w:i w:val="0"/>'),e.italicCs===true?t.push("<w:iCs/>"):e.italicCs===false&&t.push('<w:iCs w:val="0"/>'),e.allCaps===true?t.push("<w:caps/>"):e.allCaps===false&&t.push('<w:caps w:val="0"/>'),e.smallCaps===true?t.push("<w:smallCaps/>"):e.smallCaps===false&&t.push('<w:smallCaps w:val="0"/>'),e.strike===true?t.push("<w:strike/>"):e.strike===false&&t.push('<w:strike w:val="0"/>'),e.doubleStrike===true?t.push("<w:dstrike/>"):e.doubleStrike===false&&t.push('<w:dstrike w:val="0"/>'),e.outline===true?t.push("<w:outline/>"):e.outline===false&&t.push('<w:outline w:val="0"/>'),e.shadow===true?t.push("<w:shadow/>"):e.shadow===false&&t.push('<w:shadow w:val="0"/>'),e.emboss===true?t.push("<w:emboss/>"):e.emboss===false&&t.push('<w:emboss w:val="0"/>'),e.imprint===true?t.push("<w:imprint/>"):e.imprint===false&&t.push('<w:imprint w:val="0"/>'),e.hidden===true?t.push("<w:vanish/>"):e.hidden===false&&t.push('<w:vanish w:val="0"/>');let n=Ue(e.color);if(n&&t.push(n),e.spacing!==void 0&&t.push(`<w:spacing w:val="${s(e.spacing)}"/>`),e.scale!==void 0&&t.push(`<w:w w:val="${s(e.scale)}"/>`),e.kerning!==void 0&&t.push(`<w:kern w:val="${s(e.kerning)}"/>`),e.position!==void 0&&t.push(`<w:position w:val="${s(e.position)}"/>`),e.fontSize!==void 0&&t.push(`<w:sz w:val="${s(e.fontSize)}"/>`),e.fontSizeCs!==void 0&&t.push(`<w:szCs w:val="${s(e.fontSizeCs)}"/>`),e.highlight&&e.highlight!=="none"){if(Ve.has(e.highlight))t.push(`<w:highlight w:val="${e.highlight}"/>`);else if(!e.shading){let i=e.highlight.replace(/^#/,"");/^[0-9a-fA-F]{6}$/.test(i)&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${i}"/>`);}}if(e.underline){let i=[`w:val="${e.underline.style}"`];e.underline.color&&(e.underline.color.rgb&&i.push(`w:color="${e.underline.color.rgb}"`),e.underline.color.themeColor&&i.push(`w:themeColor="${e.underline.color.themeColor}"`),e.underline.color.themeTint&&i.push(`w:themeTint="${e.underline.color.themeTint}"`),e.underline.color.themeShade&&i.push(`w:themeShade="${e.underline.color.themeShade}"`)),t.push(`<w:u ${i.join(" ")}/>`);}e.effect&&e.effect!=="none"&&t.push(`<w:effect w:val="${e.effect}"/>`),e.emphasisMark&&e.emphasisMark!=="none"&&t.push(`<w:em w:val="${e.emphasisMark}"/>`);let r=Ye(e.shading);return r&&t.push(r),e.vertAlign&&e.vertAlign!=="baseline"&&t.push(`<w:vertAlign w:val="${e.vertAlign}"/>`),e.rtl===true?t.push("<w:rtl/>"):e.rtl===false&&t.push('<w:rtl w:val="0"/>'),e.cs===true?t.push("<w:cs/>"):e.cs===false&&t.push('<w:cs w:val="0"/>'),t.length===0?"":`<w:rPr>${t.join("")}</w:rPr>`}function Ze(e){return !e.startsWith("<w:rPr>")||!e.endsWith("</w:rPr>")?"":e.slice(7,-8)}function Je(e){let t=Number.isInteger(e.info.id)&&e.info.id>=0?e.info.id:0,n=typeof e.info.author=="string"?e.info.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.info.date=="string"?e.info.date.trim():void 0,o=[`w:id="${t}"`,`w:author="${a(r)}"`];i&&o.push(`w:date="${a(i)}"`);let c=T(e.previousFormatting)||"<w:rPr/>";return `<w:rPrChange ${o.join(" ")}>${c}</w:rPrChange>`}function Ke(e,t){let n=T(e),r=n?Ze(n):"",i=(t??[]).map(Je).join(""),o=`${r}${i}`;return o?`<w:rPr>${o}</w:rPr>`:""}function Qe(e){return `<w:t${e.preserveSpace||e.text.startsWith(" ")||e.text.endsWith(" ")||e.text.includes(" ")?' xml:space="preserve"':""}>${a(e.text)}</w:t>`}function et(e){return "<w:tab/>"}function tt(e){let t=[];return e.breakType==="page"?t.push('w:type="page"'):e.breakType==="column"?t.push('w:type="column"'):e.breakType==="textWrapping"&&(t.push('w:type="textWrapping"'),e.clear&&e.clear!=="none"&&t.push(`w:clear="${e.clear}"`)),t.length===0?"<w:br/>":`<w:br ${t.join(" ")}/>`}function nt(e){return `<w:sym w:font="${a(e.font)}" w:char="${a(e.char)}"/>`}function rt(e){return e.type==="footnoteRef"?`<w:footnoteReference w:id="${e.id}"/>`:`<w:endnoteReference w:id="${e.id}"/>`}function it(e){let t=[`w:fldCharType="${e.charType}"`];return e.fldLock&&t.push('w:fldLock="true"'),e.dirty&&t.push('w:dirty="true"'),`<w:fldChar ${t.join(" ")}/>`}function ot(e){return `<w:instrText${e.text.startsWith(" ")||e.text.endsWith(" ")||e.text.includes(" ")?' xml:space="preserve"':""}>${a(e.text)}</w:instrText>`}function st(e){return "<w:softHyphen/>"}function at(e){return "<w:noBreakHyphen/>"}function lt(e){switch(e.type){case "text":return Qe(e);case "tab":return et();case "break":return tt(e);case "symbol":return nt(e);case "footnoteRef":case "endnoteRef":return rt(e);case "footnoteRefMark":return "<w:footnoteRef/>";case "endnoteRefMark":return "<w:endnoteRef/>";case "separator":return "<w:separator/>";case "continuationSeparator":return "<w:continuationSeparator/>";case "fieldChar":return it(e);case "instrText":return ot(e);case "softHyphen":return st();case "noBreakHyphen":return at();case "drawing":return ue(e);case "shape":return fe(e);default:return ""}}function P(e){let t=[],n=Ke(e.formatting,e.propertyChanges);n&&t.push(n);for(let r of e.content){let i=lt(r);i&&t.push(i);}return `<w:r>${t.join("")}</w:r>`}function N(e){if(!e)return "";let n=[e.firstRow?"1":"0",e.lastRow?"1":"0",e.firstColumn?"1":"0",e.lastColumn?"1":"0",e.oddVBand?"1":"0",e.evenVBand?"1":"0",e.oddHBand?"1":"0",e.evenHBand?"1":"0",e.nwCell?"1":"0",e.neCell?"1":"0",e.swCell?"1":"0",e.seCell?"1":"0"].join("");return n==="000000000000"?"":`<w:cnfStyle w:val="${n}"/>`}function ct(e){let t=Number.isInteger(e.id)&&e.id>=0?e.id:0,n=typeof e.author=="string"?e.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.date=="string"?e.date.trim():void 0;return {id:t,author:r,date:i}}function C(e){let t=ct(e),n=[`w:id="${t.id}"`,`w:author="${a(t.author)}"`];return t.date&&n.push(`w:date="${a(t.date)}"`),n.join(" ")}function b(e,t){if(!e)return "";let n=[`w:w="${s(e.value)}"`,`w:type="${e.type}"`];return `<w:${t} ${n.join(" ")}/>`}function S(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}function he(e,t){if(!e)return "";let n=[];if(e.top){let r=S(e.top,"top");r&&n.push(r);}if(e.left){let r=S(e.left,"left");r&&n.push(r);}if(e.bottom){let r=S(e.bottom,"bottom");r&&n.push(r);}if(e.right){let r=S(e.right,"right");r&&n.push(r);}if(e.insideH){let r=S(e.insideH,"insideH");r&&n.push(r);}if(e.insideV){let r=S(e.insideV,"insideV");r&&n.push(r);}return n.length===0?"":`<w:${t}>${n.join("")}</w:${t}>`}function de(e,t){if(!e)return "";let n=[];return e.top&&n.push(b(e.top,"top")),e.left&&n.push(b(e.left,"left")),e.bottom&&n.push(b(e.bottom,"bottom")),e.right&&n.push(b(e.right,"right")),n.length===0?"":`<w:${t}>${n.join("")}</w:${t}>`}function we(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function pt(e){if(!e)return "";let t=[];return e.firstRow&&t.push('w:firstRow="1"'),e.lastRow&&t.push('w:lastRow="1"'),e.firstColumn&&t.push('w:firstColumn="1"'),e.lastColumn&&t.push('w:lastColumn="1"'),e.noHBand&&t.push('w:noHBand="1"'),e.noVBand&&t.push('w:noVBand="1"'),t.length===0?"":`<w:tblLook ${t.join(" ")}/>`}function ut(e){if(!e)return "";let t=[];return e.horzAnchor&&t.push(`w:horzAnchor="${e.horzAnchor}"`),e.vertAnchor&&t.push(`w:vertAnchor="${e.vertAnchor}"`),e.tblpX!==void 0&&t.push(`w:tblpX="${s(e.tblpX)}"`),e.tblpXSpec&&t.push(`w:tblpXSpec="${e.tblpXSpec}"`),e.tblpY!==void 0&&t.push(`w:tblpY="${s(e.tblpY)}"`),e.tblpYSpec&&t.push(`w:tblpYSpec="${e.tblpYSpec}"`),e.topFromText!==void 0&&t.push(`w:topFromText="${s(e.topFromText)}"`),e.bottomFromText!==void 0&&t.push(`w:bottomFromText="${s(e.bottomFromText)}"`),e.leftFromText!==void 0&&t.push(`w:leftFromText="${s(e.leftFromText)}"`),e.rightFromText!==void 0&&t.push(`w:rightFromText="${s(e.rightFromText)}"`),t.length===0?"":`<w:tblpPr ${t.join(" ")}/>`}function me(e,t){let n=[];if(e){e.styleId&&n.push(`<w:tblStyle w:val="${a(e.styleId)}"/>`);let r=ut(e.floating);r&&n.push(r),e.bidi&&n.push("<w:bidiVisual/>");let i=b(e.width,"tblW");i&&n.push(i),e.justification&&n.push(`<w:jc w:val="${e.justification}"/>`);let o=b(e.cellSpacing,"tblCellSpacing");o&&n.push(o);let c=b(e.indent,"tblInd");c&&n.push(c);let l=he(e.borders,"tblBorders");l&&n.push(l);let u=de(e.cellMargins,"tblCellMar");u&&n.push(u),e.layout&&n.push(`<w:tblLayout w:type="${e.layout}"/>`);let f=we(e.shading);f&&n.push(f);let p=pt(e.look);p&&n.push(p),e.overlap&&n.push(`<w:tblOverlap w:val="${e.overlap}"/>`);}return t&&t.length>0&&n.push(ht(t[0])),n.length===0?"":`<w:tblPr>${n.join("")}</w:tblPr>`}function ft(e){return !e.startsWith("<w:tblPr>")||!e.endsWith("</w:tblPr>")?"":e.slice(9,-10)}function ht(e){let t=C(e.info),n=me(e.previousFormatting)||"<w:tblPr/>",r=ft(n),i=r.length>0?`<w:tblPr>${r}</w:tblPr>`:"<w:tblPr/>";return `<w:tblPrChange ${t}>${i}</w:tblPrChange>`}function ge(e,t,n){let r=[];if(e){let i=N(e.conditionalFormat);if(i&&r.push(i),e.cantSplit&&r.push("<w:cantSplit/>"),e.header&&r.push("<w:tblHeader/>"),e.height){let o=[`w:val="${s(e.height.value)}"`];e.heightRule&&o.push(`w:hRule="${e.heightRule}"`),r.push(`<w:trHeight ${o.join(" ")}/>`);}e.justification&&r.push(`<w:jc w:val="${e.justification}"/>`),e.hidden&&r.push("<w:hidden/>");}return n&&(n.type==="tableRowInsertion"?r.push(`<w:ins ${C(n.info)}/>`):n.type==="tableRowDeletion"&&r.push(`<w:del ${C(n.info)}/>`)),t&&t.length>0&&r.push(wt(t[0])),r.length===0?"":`<w:trPr>${r.join("")}</w:trPr>`}function dt(e){return !e.startsWith("<w:trPr>")||!e.endsWith("</w:trPr>")?"":e.slice(8,-9)}function wt(e){let t=C(e.info),n=ge(e.previousFormatting)||"<w:trPr/>",r=dt(n),i=r.length>0?`<w:trPr>${r}</w:trPr>`:"<w:trPr/>";return `<w:trPrChange ${t}>${i}</w:trPrChange>`}function $e(e,t,n){let r=[];if(e){let i=N(e.conditionalFormat);i&&r.push(i);let o=b(e.width,"tcW");o&&r.push(o),e.gridSpan&&e.gridSpan>1&&r.push(`<w:gridSpan w:val="${s(e.gridSpan)}"/>`),e.vMerge&&(e.vMerge==="restart"?r.push('<w:vMerge w:val="restart"/>'):r.push("<w:vMerge/>"));let c=he(e.borders,"tcBorders");c&&r.push(c);let l=we(e.shading);l&&r.push(l),e.noWrap&&r.push("<w:noWrap/>");let u=de(e.margins,"tcMar");u&&r.push(u),e.textDirection&&r.push(`<w:textDirection w:val="${e.textDirection}"/>`),e.fitText&&r.push("<w:tcFitText/>"),e.verticalAlign&&r.push(`<w:vAlign w:val="${e.verticalAlign}"/>`),e.hideMark&&r.push("<w:hideMark/>");}if(n){if(n.type==="tableCellInsertion")r.push(`<w:cellIns ${C(n.info)}/>`);else if(n.type==="tableCellDeletion")r.push(`<w:cellDel ${C(n.info)}/>`);else if(n.type==="tableCellMerge"){let i=n.vMerge?` w:vMerge="${n.vMerge}"`:"",o=n.vMergeOrig?` w:vMergeOrig="${n.vMergeOrig}"`:"";r.push(`<w:cellMerge ${C(n.info)}${i}${o}/>`);}}return t&&t.length>0&&r.push(gt(t[0])),r.length===0?"":`<w:tcPr>${r.join("")}</w:tcPr>`}function mt(e){return !e.startsWith("<w:tcPr>")||!e.endsWith("</w:tcPr>")?"":e.slice(8,-9)}function gt(e){let t=C(e.info),n=$e(e.previousFormatting)||"<w:tcPr/>",r=mt(n),i=r.length>0?`<w:tcPr>${r}</w:tcPr>`:"<w:tcPr/>";return `<w:tcPrChange ${t}>${i}</w:tcPrChange>`}function $t(e){return !e||e.length===0?"":`<w:tblGrid>${e.map(n=>`<w:gridCol w:w="${s(n)}"/>`).join("")}</w:tblGrid>`}function xt(e){let t=[];for(let n of e)n.type==="paragraph"?t.push(v(n)):n.type==="table"&&t.push(z(n));return t.length===0&&t.push("<w:p/>"),t.join("")}function yt(e){let t=[],n=$e(e.formatting,e.propertyChanges,e.structuralChange);return n&&t.push(n),t.push(xt(e.content)),`<w:tc>${t.join("")}</w:tc>`}function Pt(e){let t=[],n=ge(e.formatting,e.propertyChanges,e.structuralChange);n&&t.push(n);for(let r of e.cells)t.push(yt(r));return `<w:tr>${t.join("")}</w:tr>`}function z(e){let t=[],n=me(e.formatting,e.propertyChanges);n&&t.push(n);let r=$t(e.columnWidths);r&&t.push(r);for(let i of e.rows)t.push(Pt(i));return `<w:tbl>${t.join("")}</w:tbl>`}function B(e,t){let n=e.content.map(t).join(""),r=e.properties.rawPropertiesXml??"",i=e.properties.rawEndPropertiesXml??"";return `<w:sdt>${r}${i}<w:sdtContent>${n}</w:sdtContent></w:sdt>`}var h={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"};function vt(){let e={wpc:h.wpc,mc:h.mc,o:h.o,r:h.r,m:h.m,v:h.v,wp14:h.wp14,wp:h.wp,w10:h.w10,w:h.w,w14:h.w14,w15:h.w15,w16se:h.w16se,w16cid:h.w16cid,w16:h.w16,w16cex:h.w16cex,w16sdtdh:h.w16sdtdh,wne:h.wne,wpg:h.wpg,wps:h.wps};return Object.entries(e).map(([t,n])=>`xmlns:${t}="${n}"`).join(" ")}function A(e){return e.type==="paragraph"?v(e):e.type==="table"?z(e):e.type==="blockSdt"?B(e,A):""}function bt(e){return e.map(t=>A(t)).join("")}function Ct(e){let t=[];return t.push(bt(e.content)),e.finalSectionProperties&&t.push(I(e.finalSectionProperties)),t.join("")}function hn(e){O();let t=[];t.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');let n=vt();return t.push(`<w:document ${n} mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14">`),t.push("<w:body>"),t.push(Ct(e.package.document)),t.push("</w:body>"),t.push("</w:document>"),t.join("")}var Tt='<v:shapetype id="_x0000_t136" coordsize="21600,21600" o:spt="136" adj="10800" path="m@7,l@8,m@5,21600l@6,21600e"><v:formulas><v:f eqn="sum #0 0 10800"/><v:f eqn="prod #0 2 1"/><v:f eqn="sum 21600 0 @1"/><v:f eqn="sum 0 0 @2"/><v:f eqn="sum 21600 0 @3"/><v:f eqn="if @0 @3 0"/><v:f eqn="if @0 21600 @1"/><v:f eqn="if @0 0 @2"/><v:f eqn="if @0 @4 21600"/><v:f eqn="mid @5 @6"/><v:f eqn="mid @8 @5"/><v:f eqn="mid @7 @8"/><v:f eqn="mid @6 @7"/><v:f eqn="sum @6 0 @5"/></v:formulas><v:path textpathok="t" o:connecttype="custom" o:connectlocs="@9,0;@10,10800;@9,21600;@11,10800" o:connectangles="270,180,90,0"/><v:textpath on="t" fitshape="t"/><v:handles><v:h position="#0,bottomRight" xrange="6629,14971"/></v:handles><o:lock v:ext="edit" text="t" shapetype="t"/></v:shapetype>',St='<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"/><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"/><v:f eqn="sum @0 1 0"/><v:f eqn="sum 0 0 @1"/><v:f eqn="prod @2 1 2"/><v:f eqn="prod @3 21600 pixelWidth"/><v:f eqn="prod @3 21600 pixelHeight"/><v:f eqn="sum @0 0 1"/><v:f eqn="prod @6 1 2"/><v:f eqn="prod @7 21600 pixelWidth"/><v:f eqn="sum @8 21600 0"/><v:f eqn="prod @7 21600 pixelHeight"/><v:f eqn="sum @10 21600 0"/></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/><o:lock v:ext="edit" aspectratio="t"/></v:shapetype>';function Ft(e){let t=Math.max(e.text.trim().length,1),n=Math.min(Math.max(t*26,120),468);return {width:n,height:n/2}}var xe=12700;function zt(e){let t=e.widthEmu!==void 0?e.widthEmu/xe:311.4,n=e.heightEmu!==void 0?e.heightEmu/xe:t;return {width:t*(e.scale||1),height:n*(e.scale||1)}}function kt(e){let{width:t,height:n}=Ft(e),r=e.layout==="diagonal"?";rotation:315":"",i=`position:absolute;margin-left:0;margin-top:0;width:${t}pt;height:${n}pt${r};z-index:-251658240;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin`,o=e.semitransparent?'<v:fill opacity=".5"/>':"",c=e.fontSize!==void 0?e.fontSize:1,l=`font-family:"${a(e.font)}";font-size:${c}pt`;return "<w:p><w:r><w:rPr><w:noProof/></w:rPr><w:pict>"+Tt+`<v:shape id="PowerPlusWaterMarkObject1" o:spid="_x0000_s2049" type="#_x0000_t136" style="${i}" o:allowincell="f" fillcolor="${a(e.color)}" stroked="f">`+o+`<v:textpath style="${l}" string="${a(e.text)}"/></v:shape></w:pict></w:r></w:p>`}function Rt(e){if(!e.relId)return "";let{width:t,height:n}=zt(e),r=`position:absolute;margin-left:0;margin-top:0;width:${t}pt;height:${n}pt;z-index:-251657216;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin`,i=e.washout?' gain="19661f" blacklevel="22938f"':"";return "<w:p><w:r><w:rPr><w:noProof/></w:rPr><w:pict>"+St+`<v:shape id="WordPictureWatermark1" o:spid="_x0000_s2050" type="#_x0000_t75" style="${r}" o:allowincell="f"><v:imagedata r:id="${a(e.relId)}" o:title="watermark"${i}/></v:shape></w:pict></w:r></w:p>`}function ye(e){return e.kind==="text"?kt(e):Rt(e)}var It={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"};function jt(){return Object.entries(It).map(([e,t])=>`xmlns:${e}="${t}"`).join(" ")}function Pe(e){return e.type==="paragraph"?v(e):e.type==="table"?z(e):e.type==="blockSdt"?B(e,Pe):""}function Pn(e){let t=e.type==="header"?"w:hdr":"w:ftr",n=jt(),r=e.content.map(i=>Pe(i)).join("");return e.watermark&&(r=ye(e.watermark)+r),r||(r="<w:p><w:pPr/></w:p>"),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
-
<${t} ${n}>${r}</${t}>`}function Te(e){let t="<w:r>",n=[];e.formatting?.bold&&n.push("<w:b/>"),e.formatting?.italic&&n.push("<w:i/>"),n.length>0&&(t+=`<w:rPr>${n.join("")}</w:rPr>`);for(let r of e.content)if(r.type==="text"){let i=r.text!==r.text.trim()||r.text.includes(" ");t+=i?`<w:t xml:space="preserve">${a(r.text)}</w:t>`:`<w:t>${a(r.text)}</w:t>`;}else r.type==="break"&&(t+="<w:br/>");return t+="</w:r>",t}function ve(e,t){let n=t?`<w:p w14:paraId="${t}">`:"<w:p>";for(let r of e.content)r.type==="run"&&(n+=Te(r));return n+="</w:p>",n}function be(e,t){let n=t?`<w:p w14:paraId="${t}">`:"<w:p>";n+='<w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r>';for(let r of e.content)r.type==="run"&&(n+=Te(r));return n+="</w:p>",n}function Ce(e,t){let n=chunkC2BAPYGJ_js.a(),r=[`w:id="${e.id}"`];if(e.author&&r.push(`w:author="${a(e.author)}"`),e.initials?r.push(`w:initials="${a(e.initials)}"`):r.push('w:initials=""'),e.date){let o=e.date.replace(/\.\d{3}Z$/,"Z");r.push(`w:date="${a(o)}"`);}let i=`<w:comment ${r.join(" ")}>`;if(e.content&&e.content.length>0)if(e.content.length===1)i+=be(e.content[0],n);else {i+=be(e.content[0]);for(let o=1;o<e.content.length-1;o++)i+=ve(e.content[o]);i+=ve(e.content[e.content.length-1],n);}else i+=`<w:p w14:paraId="${n}"><w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r></w:p>`;return i+="</w:comment>",t.push({commentId:e.id,lastParaId:n,durableId:chunkC2BAPYGJ_js.a(),parentId:e.parentId,done:e.done}),i}function Bt(e){if(!e||e.length===0)return {xml:"",paraInfos:[]};let t=[],n=[];for(let o of e)(o.parentId==null?t:n).push(o);let r=[],i=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${x} ${y}>`;for(let o of t)i+=Ce(o,r);for(let o of n)i+=Ce(o,r);return i+="</w:comments>",{xml:i,paraInfos:r}}function Tn(e){return Bt(e).xml}function Sn(e){if(e.length===0)return "";let t=new Map;for(let r of e)t.set(r.commentId,r.lastParaId);let n=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${x} ${y}>`;for(let r of e){let i=`w15:paraId="${r.lastParaId}" w15:done="${r.done?"1":"0"}"`;if(r.parentId!=null){let o=t.get(r.parentId);o&&(i+=` w15:paraIdParent="${o}"`);}n+=`<w15:commentEx ${i} />`;}return n+="</w15:commentsEx>",n}function Fn(e){if(e.length===0)return "";let t=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w16cid:commentsIds ${x} ${y}>`;for(let n of e)t+=`<w16cid:commentId w16cid:paraId="${n.lastParaId}" w16cid:durableId="${n.durableId}" />`;return t+="</w16cid:commentsIds>",t}function zn(e,t){if(e.length===0)return "";let n=new Map;for(let i of t)n.set(i.id,i);let r=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w16cex:commentsExtensible ${x} ${y}>`;for(let i of e){let o=n.get(i.commentId);if(!o?.date)continue;let c=i.durableId,l=(o.date.endsWith("Z")?o.date:o.date+"Z").replace(/\.\d{3}Z$/,"Z");r+=`<w16cex:commentExtensible w16cex:durableId="${c}" w16cex:dateUtc="${l}"/>`;}return r+="</w16cex:commentsExtensible>",r}var Se='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';function Fe(e,t){if(t.verbatimXml)return t.verbatimXml;let n=[];t.noteType&&t.noteType!=="normal"&&n.push(`w:type="${t.noteType}"`),n.push(`w:id="${t.id}"`);let r=t.content.map(i=>A(i)).join("");return `<w:${e} ${n.join(" ")}>${r}</w:${e}>`}function jn(e){let t=e.map(n=>Fe("footnote",n)).join("");return `${Se}<w:footnotes ${x} ${y}>${t}</w:footnotes>`}function Bn(e){let t=e.map(n=>Fe("endnote",n)).join("");return `${Se}<w:endnotes ${x} ${y}>${t}</w:endnotes>`}exports.a=a;exports.b=P;exports.c=I;exports.d=v;exports.e=z;exports.f=A;exports.g=Ct;exports.h=hn;exports.i=Pn;exports.j=Bt;exports.k=Tn;exports.l=Sn;exports.m=Fn;exports.n=zn;exports.o=jn;exports.p=Bn;
|
package/dist/chunk-OEC6SBDV.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {c as c$2}from'./chunk-HKN2NKOG.mjs';import {c,f,a as a$2,g,b,e as e$1}from'./chunk-55XWETY4.mjs';import {v,w,x,U as U$1,I,J as J$1,K,t,z as z$1,b as b$1}from'./chunk-JHTURDPX.mjs';import {a as a$1,c as c$3}from'./chunk-7E5VBRDL.mjs';import {x as x$1}from'./chunk-3G44SFHX.mjs';import {c as c$1}from'./chunk-IUJCUITW.mjs';import {c as c$4}from'./chunk-MOKKS75W.mjs';import {a}from'./chunk-AMENZY5F.mjs';import {e,i}from'./chunk-VW22RZ6C.mjs';function tt(e,t,n,o,r){let a=new Map,i=[];for(let m of e.fragments){let s=o(m);if(s.length===0||!("height"in m))continue;let b=m.y-e.margins.top,g=b+m.height;s.forEach((u,E)=>{let y=`${E}:${u.id}`,p=a.get(y);p?(p.top=Math.min(p.top,b),p.bottom=Math.max(p.bottom,g)):(a.set(y,{group:u,depth:E,top:b,bottom:g}),i.push(y));});}let d=2,l=[];for(let m of i){let{group:s,depth:b,top:g,bottom:u}=a.get(m),E=b*(d+1),y=r.createElement("div");y.className="layout-block-sdt-box",y.dataset.sdtGroupId=s.id,y.dataset.sdtType=s.sdtType,y.dataset.sdtDepth=String(b+1),s.tag!=null&&(y.dataset.sdtTag=s.tag),s.alias!=null&&(y.dataset.sdtAlias=s.alias),s.lock!=null&&(y.dataset.sdtLock=s.lock),y.style.position="absolute",y.style.left=`${E}px`,y.style.top=`${g-d}px`,y.style.width=`${n-E*2}px`,y.style.height=`${u-g+d*2}px`;let p=s.alias||s.tag||s.sdtType;if(p){let I=r.createElement("span");I.className="layout-block-sdt-label",I.textContent=p,y.appendChild(I);}let w=wt(s.sdtType);if(w&&s.tag!=null&&!s.bound&&s.lock!=="contentLocked"&&s.lock!=="sdtContentLocked"){let I=r.createElement("button");I.type="button",I.className="layout-sdt-widget",I.dataset.sdtWidget=w,I.dataset.sdtTag=s.tag,I.dataset.sdtGroupId=s.id,I.setAttribute("aria-label",`${w} control ${s.alias||s.tag}`),w==="dropdown"?I.setAttribute("aria-haspopup","listbox"):w==="date"&&I.setAttribute("aria-haspopup","dialog"),I.textContent=w==="dropdown"?"\u25BE":w==="date"?"\u{1F4C5}":s.checked?"\u2612":"\u2610",y.appendChild(I);}if(s.repeatingItem&&!s.bound){let I=r.createElement("div");I.className="layout-sdt-repeat-controls";for(let c of ["add","remove"]){let x=r.createElement("button");x.type="button",x.className="layout-sdt-repeat-btn",x.dataset.sdtRepeat=c,x.dataset.sdtGroupId=s.id,x.setAttribute("aria-label",c==="add"?"Add item":"Remove item"),x.textContent=c==="add"?"\uFF0B":"\u2715",I.appendChild(x);}y.appendChild(I);}t.appendChild(y),l.push(y);}Tt(t,l);}function wt(e){return e==="checkbox"?"checkbox":e==="dropDownList"||e==="comboBox"?"dropdown":e==="date"?"date":null}function Tt(e,t){if(t.length===0||typeof e.addEventListener!="function")return;let n=(d,l)=>{for(let m of t){let s=m.getBoundingClientRect(),b=d>=s.left&&d<=s.right&&l>=s.top&&l<=s.bottom;b!==m.classList.contains("is-active")&&m.classList.toggle("is-active",b);}},o=typeof requestAnimationFrame=="function"?requestAnimationFrame:d=>d(),r=false,a=0,i=0;e.addEventListener("mousemove",d=>{a=d.clientX,i=d.clientY,!r&&(r=true,o(()=>{r=false,n(a,i);}));}),e.addEventListener("mouseleave",()=>{for(let d of t)d.classList.remove("is-active");});}function wn(e,t,n){let o=new Set,r=e.content.size,a=i=>{let d=e.resolve(Math.max(0,Math.min(i,r)));for(let l=1;l<=d.depth;l++)d.node(l).type.name==="blockSdt"&&o.add(`sdt@${d.before(l)}`);};return a(t),n!==t&&a(n),o}function Tn(e,t){let n=e.querySelectorAll(".layout-block-sdt-box");for(let o of n){let r=o.dataset.sdtGroupId,a=r!=null&&t.has(r);a!==o.classList.contains("is-focused")&&o.classList.toggle("is-focused",a);}}var U={fragment:"layout-fragment",paragraph:"layout-fragment-paragraph",table:"layout-fragment-table",image:"layout-fragment-image",line:"layout-line",run:"layout-run"};function Ft(e){return e.kind==="paragraph"}function It(e){return e.kind==="table"}function Ct(e){return e.kind==="image"}function fe(e){e.style.position="absolute",e.style.overflow="hidden";}function Rt(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.paragraph}`,fe(o),o.dataset.blockId=String(e.blockId),o.dataset.fromLine=String(e.fromLine),o.dataset.toLine=String(e.toLine),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.continuesFromPrev&&(o.dataset.continuesFromPrev="true"),e.continuesOnNext&&(o.dataset.continuesOnNext="true"),o}function Et(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.table}`,fe(o),o.dataset.blockId=String(e.blockId),o.dataset.fromRow=String(e.fromRow),o.dataset.toRow=String(e.toRow),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),o}function Lt(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.image}`,fe(o),o.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.isAnchored&&(o.dataset.anchored="true"),e.zIndex!==void 0&&(o.style.zIndex=String(e.zIndex)),o}function Fe(e,t,n={}){let o=n.document??document;if(Ft(e))return Rt(e,t,o);if(It(e))return Et(e,t,o);if(Ct(e))return Lt(e,t,o);let r=o.createElement("div");r.className=U.fragment,fe(r);let a=e;return a.blockId!==void 0&&(r.dataset.blockId=String(a.blockId)),a.kind&&(r.dataset.kind=a.kind),r}var P={fragment:"layout-paragraph",line:"layout-line",run:"layout-run",text:"layout-run-text",tab:"layout-run-tab",image:"layout-run-image",lineBreak:"layout-run-linebreak"};function A(e){return e.kind==="text"}function N(e){return e.kind==="tab"}function j(e){return e.kind==="image"}function W(e){return e.kind==="lineBreak"}function X(e){return e.kind==="field"}var nt={image:"layout-image",imageAnchored:"layout-image-anchored"};function oe(e){return !!(e.cropTop||e.cropRight||e.cropBottom||e.cropLeft||e.opacity!=null&&e.opacity<1)}function re(e,t){let n=t.cropTop??0,o=t.cropRight??0,r=t.cropBottom??0,a=t.cropLeft??0;(n||o||r||a)&&(e.style.clipPath=`inset(${n*100}% ${o*100}% ${r*100}% ${a*100}%)`),t.opacity!=null&&t.opacity<1&&(e.style.opacity=String(Math.max(0,t.opacity)));}function Z(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=nt.image,e.isAnchored&&i.classList.add(nt.imageAnchored),i.style.position="absolute",i.style.width=`${e.width}px`,i.style.height=`${e.height}px`,i.style.overflow="hidden",e.zIndex!==void 0&&(i.style.zIndex=String(e.zIndex)),t.anchor?.behindDoc&&(i.style.zIndex="-1"),i.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let d=a.createElement("img");if(d.src=t.src,d.alt=t.alt??"",d.style.width="100%",d.style.height="100%",d.style.objectFit="contain",d.style.display="block",t.transform&&(d.style.transform=t.transform),d.draggable=false,t.hlinkHref){let l=a.createElement("a");l.href=t.hlinkHref,l.target="_blank",l.rel="noopener noreferrer",l.style.display="block",l.style.width="100%",l.style.height="100%",l.appendChild(d),i.appendChild(l);}else i.appendChild(d);return i}function vt(e,t,n){if(t.fontFamily&&(e.style.fontFamily=a(t.fontFamily).cssFallback),t.fontSize){let r=t.fontSize*96/72;e.style.fontSize=`${r}px`;}if(t.bold&&(e.style.fontWeight="bold"),t.italic&&(e.style.fontStyle="italic"),t.color&&(e.style.color=t.color),t.letterSpacing&&(e.style.letterSpacing=`${t.letterSpacing}px`),t.allCaps&&(e.style.textTransform="uppercase"),t.smallCaps&&(e.style.fontVariant="small-caps"),t.positionPx&&(e.style.verticalAlign=`${t.positionPx}px`),t.horizontalScale&&t.horizontalScale!==100&&(e.style.display="inline-block",e.style.transform=`scaleX(${t.horizontalScale/100})`,e.style.transformOrigin="left center"),t.kerningMinPt&&t.kerningMinPt>0&&(t.fontSize??11)>=t.kerningMinPt&&(e.style.fontKerning="normal"),t.emboss&&(e.style.textShadow="1px 1px 1px rgba(255,255,255,0.5), -1px -1px 1px rgba(0,0,0,0.3)"),t.imprint&&(e.style.textShadow="-1px -1px 1px rgba(255,255,255,0.5), 1px 1px 1px rgba(0,0,0,0.3)"),t.textShadow&&!t.emboss&&!t.imprint&&(e.style.textShadow="1px 1px 2px rgba(0,0,0,0.3)"),t.textOutline&&(e.style.webkitTextStroke="1px currentColor",e.style.webkitTextFillColor="transparent"),t.emphasisMark){let r=t.emphasisMark==="comma"?"filled sesame":t.emphasisMark==="circle"?"filled circle":"filled dot",a=t.emphasisMark==="underDot"?"under right":"over right";e.style.textEmphasis=`${r}`,e.style.textEmphasisPosition=a,e.style.webkitTextEmphasis=r,e.style.webkitTextEmphasisPosition=a;}t.highlight&&(e.style.backgroundColor=t.highlight);let o=[];if(t.underline&&(o.push("underline"),typeof t.underline=="object"&&(t.underline.style&&(e.style.textDecorationStyle=t.underline.style),t.underline.color&&(e.style.textDecorationColor=t.underline.color))),t.strike&&o.push("line-through"),t.commentIds&&t.commentIds.length>0){let r=t.commentIds.find(a=>!n||!n.has(a));r!=null&&(e.style.backgroundColor="rgba(255, 212, 0, 0.15)",e.style.borderBottom="1px solid rgba(255, 212, 0, 0.4)",e.dataset.commentId=String(r));}t.isInsertion&&(e.style.backgroundColor="rgba(52, 168, 83, 0.08)",e.style.borderBottom="2px dashed #2e7d32",e.style.paddingBottom="1px",e.classList.add("docx-insertion"),t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId))),t.isDeletion&&(e.style.backgroundColor="rgba(211, 47, 47, 0.08)",e.style.color="#c62828",o.includes("line-through")||o.push("line-through"),e.style.textDecorationColor="#c62828",e.classList.add("docx-deletion"),t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId))),o.length>0&&(e.style.textDecorationLine=o.join(" ")),t.superscript&&(e.style.verticalAlign="super",e.style.fontSize="0.75em"),t.subscript&&(e.style.verticalAlign="sub",e.style.fontSize="0.75em"),t.hidden&&(e.classList.add("docx-hidden"),e.style.opacity="0.4",e.style.textDecoration="underline dotted"),t.rtl&&e.setAttribute("dir","rtl"),t.textEffect&&(e.classList.add("docx-text-effect",`docx-text-effect-${t.textEffect}`),e.dataset.effect=t.textEffect);}function z(e,t,n){t!==void 0&&(e.dataset.pmStart=String(t)),n!==void 0&&(e.dataset.pmEnd=String(n));}function ie(e,t,n){let o=t.createElement("span");if(o.className=`${P.run} ${P.text}`,vt(o,e,n),z(o,e.pmStart,e.pmEnd),e.hyperlink){let r=t.createElement("a");r.href=e.hyperlink.href,e.hyperlink.href.startsWith("#")||(r.target="_blank",r.rel="noopener noreferrer"),e.hyperlink.tooltip&&(r.title=e.hyperlink.tooltip),r.textContent=e.text,r.style.color="inherit",r.style.textDecoration="inherit",e.hyperlink.noDefaultStyle||(e.color||(r.style.color="#0563c1",o.style.color="#0563c1"),e.underline||(r.style.textDecoration="underline")),o.appendChild(r);}else o.textContent=e.text;return o}var Pt=1e3;function ge(e,t,n,o){let r=t.createElement("span");r.className=`${P.run} ${P.tab}`,r.style.display="inline-block",r.style.width=`${n}px`,z(r,e.pmStart,e.pmEnd);let a=o&&o!=="none"?Bt(o):null;if(a){r.style.position="relative",r.textContent="\u200B";let i=t.createElement("span");i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.textContent=a.repeat(Pt),r.appendChild(i);}else r.textContent="\xA0";return r}function Bt(e){switch(e){case "dot":return ".";case "hyphen":return "-";case "underscore":return "_";case "middleDot":return "\xB7";case "heavy":return "_";default:return null}}function it(e){if(!e)return 0;let t=e.match(/rotate\(([-\d.]+)deg\)/);return t?(parseFloat(t[1])%360+360)%360:0}function at(e,t,n){if(n===0||n===180)return {w:e,h:t};if(n===90||n===270)return {w:t,h:e};let o=n*Math.PI/180,r=Math.abs(Math.sin(o)),a=Math.abs(Math.cos(o));return {w:e*a+t*r,h:e*r+t*a}}function ot(e,t){t.distTop&&(e.style.marginTop=`${t.distTop}px`),t.distBottom&&(e.style.marginBottom=`${t.distBottom}px`);}function Mt(e,t){let n=t.createElement("img");n.className=`${P.run} ${P.image}`,n.src=e.src,n.width=e.width,n.height=e.height,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,e.alt&&(n.alt=e.alt),e.transform&&(n.style.transform=e.transform,n.style.transformOrigin="center center"),oe(e)&&re(n,e);let o=it(e.transform);if(o!==0){let r=at(e.width,e.height,o),a=t.createElement("span");return a.style.display="inline-block",a.style.position="relative",a.style.width=`${r.w}px`,a.style.height=`${r.h}px`,a.style.verticalAlign="middle",n.style.position="absolute",n.style.left=`${(r.w-e.width)/2}px`,n.style.top=`${(r.h-e.height)/2}px`,ot(a,e),z(a,e.pmStart,e.pmEnd),a.appendChild(n),a}return n.style.display="inline-block",n.style.verticalAlign="middle",e.width>0&&e.height>0&&(n.style.height="auto",n.style.aspectRatio=`${e.width} / ${e.height}`,n.style.maxWidth="100%"),ot(n,e),z(n,e.pmStart,e.pmEnd),n}function rt(e,t){let n=t.createElement("div");n.className="layout-block-image",n.style.display="block",n.style.textAlign="center",n.style.marginTop=`${e.distTop??6}px`,n.style.marginBottom=`${e.distBottom??6}px`;let o=t.createElement("img");o.src=e.src,o.width=e.width,o.height=e.height,o.style.marginLeft="auto",o.style.marginRight="auto",e.alt&&(o.alt=e.alt),e.transform&&(o.style.transform=e.transform,o.style.transformOrigin="center center"),oe(e)&&re(o,e);let r=it(e.transform);if(r!==0){let a=at(e.width,e.height,r);n.style.height=`${a.h}px`,n.style.position="relative",o.style.position="absolute",o.style.left="50%",o.style.top="50%",o.style.marginLeft=`${-e.width/2}px`,o.style.marginRight="0",o.style.marginTop=`${-e.height/2}px`;}return z(n,e.pmStart,e.pmEnd),n.appendChild(o),n}function me(e,t){let n;return c(e)||e.displayMode==="block"||e.wrapType==="topAndBottom"?n=rt(e,t):n=Mt(e,t),$t(n,e),n}function $t(e,t){if(t.isInsertion)e.style.outline="2px solid #2e7d32",e.style.outlineOffset="1px",e.classList.add("docx-insertion");else if(t.isDeletion)e.style.outline="2px solid #c62828",e.style.outlineOffset="1px",e.style.opacity="0.6",e.classList.add("docx-deletion");else return;t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId));}function Ie(e,t){let n=t.createElement("br");return n.className=`${P.run} ${P.lineBreak}`,z(n,e.pmStart,e.pmEnd),n}function ue(e,t,n){let o=e.fallback??"";switch(e.fieldType){case "PAGE":o=String(n.pageNumber);break;case "NUMPAGES":o=String(n.totalPages);break;case "DATE":o=new Date().toLocaleDateString();break;case "TIME":o=new Date().toLocaleTimeString();break}let r={...e,text:o};return ie(r,t,n?.resolvedCommentIds)}function Ce(e,t,n){if(A(e))return ie(e,t,n?.resolvedCommentIds);if(N(e))return ge(e,t,48,void 0);if(j(e))return me(e,t);if(W(e))return Ie(e,t);if(X(e)&&n)return ue(e,t,n);let o=t.createElement("span");return o.className=P.run,o}function dt(e,t){let n=[],o=e.runs;for(let r=t.fromRun;r<=t.toRun;r++){let a=o[r];if(a)if(A(a)){let i=r===t.fromRun?t.fromChar:0,d=r===t.toRun?t.toChar:a.text.length;if(i>0||d<a.text.length){let l=a.text.slice(i,d);n.push({...a,text:l,pmStart:a.pmStart!==void 0?a.pmStart+i:void 0,pmEnd:a.pmStart!==void 0?a.pmStart+d:void 0});}else n.push(a);}else n.push(a);}return n}function st(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function lt(e){return [e.pmStart??"no-start",e.pmEnd??"no-end",e.src,e.width,e.height,e.displayMode??"inline",e.wrapType??"none"].join("|")}function Ht(e){return {val:e.val,pos:e.pos,leader:e.leader}}function At(e,t,n){let o="";for(let r=t+1;r<e.length;r++){let a=e[r];if(A(a))o+=a.text;else if(X(a))a.fieldType==="PAGE"&&n?o+=String(n.pageNumber):a.fieldType==="NUMPAGES"&&n?o+=String(n.totalPages):o+=a.fallback??"";else if(N(a)||W(a))break}return o}var Ot=.5;function zt(e,t,n,o){let r=0;for(let a=t+1;a<e.length;a++){let i=e[a];if(N(i)||W(i))break;if(A(i))r+=n(i.text||"",i.fontSize,i.fontFamily,i.bold,i.italic);else if(X(i)){let d;i.fieldType==="PAGE"&&o?d=String(o.pageNumber):i.fieldType==="NUMPAGES"&&o?d=String(o.totalPages):d=i.fallback??"",r+=n(d,i.fontSize,i.fontFamily,i.bold,i.italic);}else j(i)&&!c(i)&&(r+=i.width||0);}return r}function Dt(e){let n=e.createElement("canvas").getContext("2d");return (o,r=11,a$1="Calibri",i=false,d=false)=>{if(!n)return o.length*7;let l=a(a$1).cssFallback,m=r*96/72,s=[];return d&&s.push("italic"),i&&s.push("bold"),s.push(`${m}px`,l),n.font=s.join(" "),n.measureText(o).width}}function he(e,t,n,o,r){let a=o.createElement("div");a.className=P.line,a.style.height=`${t.lineHeight}px`,a.style.lineHeight=`${t.lineHeight}px`;let i=dt(e,t);if(i.length===1&&j(i[0])){let w=i[0].position?.horizontal?.align??n;a.style.display="flex",a.style.alignItems="center",a.style.justifyContent=st(w),a.dataset.flexLine="true";}else i.some(j)&&(a.style.display="flex",a.style.alignItems="baseline",a.style.justifyContent=st(n),a.style.lineHeight="normal",a.dataset.flexLine="true");if(i.length===0){let y=o.createElement("span");return y.className=`${P.run} layout-empty-run`,y.innerHTML=" ",a.appendChild(y),a}let d=n==="justify",l=false;d&&r&&(l=!r.isLastLine||r.paragraphEndsWithLineBreak,l&&(a.style.textAlign="justify",a.style.textAlignLast="justify",a.style.width=`${r.availableWidth}px`)),a.style.whiteSpace="pre";let m=i.some(y=>A(y)&&y.highlight);a.style.overflow=m?"hidden":"visible";let s=i.some(N),b,g=Dt(o);if(s){let y=r?.tabStops?.map(Ht),p=r?.leftIndentPx?Math.round(r.leftIndentPx*15):0;b={explicitStops:y,leftIndent:p};}let u=0,E=r?.leftIndentPx??0;if(r?.isFirstLine){let y=r?.firstLineIndentPx??0;u=E+y;}else u=E;for(let y=0;y<i.length;y++){let p=i[y];if(N(p)&&b){let w=zt(i,y,g,r?.context),I=At(i,y,r?.context),c$1=I.indexOf("."),x=c$1>=0?g(I.slice(0,c$1)):0,T=v(u,b,{followingWidth:w,decimalPrefixWidth:x}),S=r?.lineRightEdgePx,k=w,f=false;for(let F=y+1;F<i.length&&!W(i[F]);F++)if(N(i[F])){f=true;break}if(S!==void 0&&T.alignment==="end"&&!f&&u+T.width+k>=S-Ot){a.style.display="flex",a.style.alignItems="baseline",a.style.whiteSpace="nowrap",a.style.textIndent="0",a.dataset.flexLine="true",r?.isFirstLine&&r.firstLineIndentPx&&r.firstLineIndentPx<0&&a.firstElementChild instanceof HTMLElement&&(a.firstElementChild.style.marginLeft=`${r.firstLineIndentPx}px`);let F=ge(p,o,0,T.leader);F.style.flex="1 1 0",F.style.minWidth="0",F.style.width="auto",a.appendChild(F);for(let v=y+1;v<i.length;v++){let L=i[v];if(N(L)||W(L))break;if(A(L))a.appendChild(ie(L,o,r?.context?.resolvedCommentIds));else if(X(L)&&r?.context)a.appendChild(ue(L,o,r.context));else if(j(L)){if(c(L))continue;let B=lt(L);r?.renderedInlineImageKeys?.has(B)||(r?.renderedInlineImageKeys?.add(B),a.appendChild(me(L,o)));}else a.appendChild(Ce(L,o,r?.context));}break}let R=T.width;S!==void 0&&u+R+k>S&&(R=Math.max(1,S-u-k));let C=ge(p,o,R,T.leader);a.appendChild(C),u+=R;}else if(A(p)){let w=ie(p,o,r?.context?.resolvedCommentIds);if(p.highlight){let T=(p.fontSize?p.fontSize*96/72:14.67)*1.2,S=Math.max(0,t.lineHeight-T);if(S>0){let k=S/2;w.style.paddingTop=`${k}px`,w.style.paddingBottom=`${k}px`;}}a.appendChild(w);let I=p.fontSize||11,c=p.fontFamily||"Calibri";u+=g(p.text,I,c,p.bold,p.italic);}else if(j(p)){if(c(p))continue;let w=lt(p);if(r?.renderedInlineImageKeys?.has(w))continue;r?.renderedInlineImageKeys?.add(w);let I=me(p,o);a.appendChild(I),p.displayMode!=="block"&&p.wrapType!=="topAndBottom"&&(u+=p.width);}else if(W(p)){let w=Ie(p,o);a.appendChild(w);}else if(X(p)&&r?.context){let w=ue(p,o,r.context);a.appendChild(w);let I=p.fallback??"";p.fieldType==="PAGE"?I=String(r.context.pageNumber):p.fieldType==="NUMPAGES"&&(I=String(r.context.totalPages));let c=p.fontSize||11,x=p.fontFamily||"Calibri";u+=g(I,c,x,p.bold,p.italic);}else {let w=Ce(p,o,r?.context);a.appendChild(w);}}if(!a.querySelector("span[data-pm-start][data-pm-end]")){let y=i.find(W);if(y?.pmStart!==void 0){let p=o.createElement("span");p.className=P.run,z(p,y.pmStart,y.pmStart),p.textContent="\u200B",a.insertBefore(p,a.firstChild);}}return a}function ae(e,t){return !e&&!t?true:!e||!t?false:e.style===t.style&&e.width===t.width&&e.color===t.color}function ct(e,t){return !e&&!t||!e||!t?false:ae(e.top,t.top)&&ae(e.bottom,t.bottom)&&ae(e.left,t.left)&&ae(e.right,t.right)&&ae(e.between,t.between)}var Nt=/[\u0590-\u085F\u08A0-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,Wt=/[\u0041-\u005A\u0061-\u007A\u00C0-\u02B8\u0370-\u0589\u10A0-\u10FF\u1E00-\u1FFF]/;function _t(e){let t=(e.runs??[]).filter(A);if(!t.some(n=>n.rtl))return false;for(let n of t)for(let o of n.text){if(Nt.test(o))return true;if(Wt.test(o))return false}return true}function D(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=P.fragment,i.style.position=o.positioning==="absolute"?"absolute":"relative",i.dataset.blockId=String(e.blockId),i.dataset.fromLine=String(e.fromLine),i.dataset.toLine=String(e.toLine),z(i,e.pmStart,e.pmEnd),e.continuesFromPrev&&(i.dataset.continuesFromPrev="true"),e.continuesOnNext&&(i.dataset.continuesOnNext="true");let d=t.attrs?.pPrIns,l=t.attrs?.pPrDel;if(d||l){let S=d??l;i.classList.add("layout-revision-pmark"),i.classList.add(d?"layout-revision-ins":"layout-revision-del"),i.dataset.revisionId=String(S.revisionId),i.dataset.revisionAuthor=S.author,S.date&&(i.dataset.revisionDate=S.date);}let m=n.lines.slice(e.fromLine,e.toLine),s=t.attrs?.alignment;t.attrs?.styleId&&(i.dataset.styleId=t.attrs.styleId);let b=!!t.attrs?.bidi||_t(t);b&&(i.dir="rtl"),s?s==="center"?i.style.textAlign="center":s==="right"?i.style.textAlign="right":s==="left"?i.style.textAlign="left":i.style.textAlign=b?"right":"left":b&&(i.style.textAlign="right");let g=t.attrs?.indent,u=0,E=0;g&&(b?(g.left&&g.left>0&&(E=g.left),g.right&&g.right>0&&(u=g.right)):(g.left&&g.left>0&&(u=g.left),g.right&&g.right>0&&(E=g.right)));let y=t.attrs?.borders;if(y){let S=L=>{switch(L){case "single":return "solid";case "double":return "double";case "dotted":return "dotted";case "dashed":return "dashed";case "thick":return "solid";case "wave":return "wavy";case "dashSmallGap":return "dashed";case "nil":case "none":return "none";default:return "solid"}};i.style.boxSizing="border-box";let k=L=>`${L.width}px ${S(L.style)} ${L.color}`,f=ct(r.prevBorders,y),h=ct(y,r.nextBorders),R=f?y.between:y.top,C=h?void 0:y.bottom,F=a.createElement("div");if(F.className="layout-paragraph-border",F.style.position="absolute",F.style.pointerEvents="none",F.style.boxSizing="border-box",F.style.left=`${u-(y.left?.space??0)}px`,F.style.right=`${E-(y.right?.space??0)}px`,F.style.top=`${-(R?.space??0)}px`,F.style.bottom=`${-(C?.space??0)}px`,R&&(F.style.borderTop=k(R)),C&&(F.style.borderBottom=k(C)),y.left&&(F.style.borderLeft=k(y.left)),y.right&&(F.style.borderRight=k(y.right)),(R||C||y.left||y.right)&&i.appendChild(F),y.bar){let L=a.createElement("div");L.style.position="absolute",L.style.left="-8px",L.style.top="0",L.style.bottom="0",L.style.borderLeft=k(y.bar),i.style.position="relative",i.appendChild(L);}}t.attrs?.shading&&(i.style.backgroundColor=t.attrs.shading);let p=e.width-u-E,I=t.runs[t.runs.length-1]?.kind==="lineBreak",c=n.lines.length,x$1=0;g?.hanging&&g.hanging>0?x$1=-g.hanging:g?.firstLine&&g.firstLine>0&&(x$1=g.firstLine);let T=r.renderedInlineImageKeys??new Set;for(let S=0;S<m.length;S++){let k=m[S],f=e.fromLine+S,h=f===c-1,R=f===0&&!e.continuesFromPrev,C=k.leftOffset??0,F=k.rightOffset??0,v=p;if(R){let M=g?.hanging&&g.hanging>0,$=g?.firstLine&&g.firstLine>0;M&&g?.hanging?v=p+g.hanging:$&&g?.firstLine&&(v=p-g.firstLine);}if(Gt(k,t)){let M=a.createElement("div");M.className=`${P.line} layout-line-split`,M.style.position="relative",M.style.height=`${k.lineHeight}px`,M.style.lineHeight=`${k.lineHeight}px`;for(let $ of k.segments){let te={fromRun:$.fromRun,fromChar:$.fromChar,toRun:$.toRun,toChar:$.toChar,width:$.width,ascent:k.ascent,descent:k.descent,lineHeight:k.lineHeight},Y=he(t,te,s,a,{availableWidth:$.availableWidth,isLastLine:h,isFirstLine:R,paragraphEndsWithLineBreak:I,tabStops:t.attrs?.tabs,leftIndentPx:u,firstLineIndentPx:R?x$1:0,context:o,renderedInlineImageKeys:T});Y.className+=" layout-line-segment",Y.style.position="absolute",Y.style.left=`${$.leftOffset}px`,Y.style.top="0",Y.style.width=`${$.availableWidth}px`,M.appendChild(Y);}i.appendChild(M);continue}let L=he(t,k,s,a,{availableWidth:v-C-F,isLastLine:h,isFirstLine:R,paragraphEndsWithLineBreak:I,tabStops:t.attrs?.tabs,leftIndentPx:u,firstLineIndentPx:R?x$1:0,context:o,renderedInlineImageKeys:T,lineRightEdgePx:e.width-E-F});if(C>0||F>0){C>0&&(L.style.marginLeft=`${C}px`),F>0&&(L.style.marginRight=`${F}px`);let M=v-C-F;M>0&&(L.style.width=`${M}px`);}k.floatSkipBefore&&k.floatSkipBefore>0&&(L.style.marginTop=`${k.floatSkipBefore}px`);let B=g?.hanging&&g.hanging>0,Oe=g?.firstLine&&g.firstLine>0,St=L.dataset.flexLine==="true";if(R?u>0&&B?(L.style.paddingLeft=`${u}px`,St||(L.style.textIndent=`-${g.hanging}px`)):u>0&&Oe?(L.style.paddingLeft=`${u}px`,L.style.textIndent=`${g.firstLine}px`):u>0?L.style.paddingLeft=`${u}px`:Oe&&(L.style.textIndent=`${g.firstLine}px`):u>0?L.style.paddingLeft=`${u}px`:B&&(L.style.paddingLeft=`${g.hanging}px`),E>0&&(L.style.paddingRight=`${E}px`),R&&t.attrs?.listMarker&&!t.attrs?.listMarkerHidden){let M=g?.hanging??0,$=g?.firstLine??0,te=M>0?u-M:u+$;L.style.paddingLeft=`${Math.max(0,te)}px`,L.style.textIndent="0";let{fontFamily:Y,fontSize:kt}=w(t),ze=Yt(t.attrs.listMarker,x(t),a,Y,kt,t.attrs.listMarkerRevision);te<0&&u>0&&(ze.style.marginLeft=`${te}px`),L.insertBefore(ze,L.firstChild);}i.appendChild(L);}if((d||l)&&!e.continuesOnNext){let S=i.lastElementChild;if(S){let k=a.createElement("span");k.className="layout-revision-pmark-glyph",d?k.classList.add("layout-revision-ins"):k.classList.add("layout-revision-del"),k.textContent="\xB6",k.setAttribute("aria-hidden","true"),S.appendChild(k);}}return i}function Gt(e,t){return (e.segments?.length??0)>1&&!t.attrs?.listMarker}function Yt(e,t,n,o,r,a$1){let i=n.createElement("span");return i.className="layout-list-marker",i.style.fontFamily=a(o).cssFallback,i.style.fontSize=`${r*96/72}px`,i.style.textAlign="left",i.style.boxSizing="border-box",i.style.display="inline-block",i.style.minWidth=`${t}px`,i.textContent=e,a$1==="ins"?i.style.color="#2e7d32":a$1==="del"&&(i.style.color="#c62828",i.style.textDecoration="line-through"),i}function q(e,t,n){let o=t.createElement("div");o.className=n.layerClass,o.style.position="absolute",o.style.top="0",o.style.left="0",n.sizing==="inset0"?(o.style.right="0",o.style.bottom="0"):(o.style.width="100%",o.style.height="100%",o.style.overflow="hidden"),o.style.pointerEvents="none",n.layerMode==="front"&&(o.style.zIndex="10");for(let r of e){let a=t.createElement("div");a.className=n.itemClass,a.style.position="absolute",a.style.pointerEvents="auto",a.style.top=`${r.y}px`,a.style.left=`${r.x}px`,r.pmStart!==void 0&&(a.dataset.pmStart=String(r.pmStart)),r.pmEnd!==void 0&&(a.dataset.pmEnd=String(r.pmEnd));let i=t.createElement("img");i.src=r.src,i.style.width=`${r.width}px`,i.style.height=`${r.height}px`,i.style.display="block",i.style.maxWidth="none",i.style.maxHeight="none",r.alt&&(i.alt=r.alt),r.transform&&(i.style.transform=r.transform,i.style.transformOrigin="center center"),oe(r)&&re(i,r),a.appendChild(i),o.appendChild(a);}return o}function pt(e$2,t,n){let o=[],r=0;for(let a=0;a<e$2.blocks.length;a++){let i=e$2.blocks[a];if(i?.kind!=="paragraph"){let m=t.blocks[a];m&&m.kind==="table"&&(r+=m.totalHeight??0);continue}let d=i;for(let m of d.runs){if(m.kind!=="image")continue;let s=m;if(!c(s))continue;let b=s.position,g=s.distTop??0,u=s.distBottom??0,E=s.distLeft??12,y=s.distRight??12,p="left",w=0;if(b?.horizontal){let c=b.horizontal;c.align==="right"?(p="right",w=n-s.width):c.align==="left"?w=0:c.align==="center"?w=(n-s.width)/2:c.posOffset!==void 0&&(w=e(c.posOffset),p=w>n/2?"right":"left");}else s.cssFloat==="right"&&(p="right",w=n-s.width);let I=r;if(b?.vertical){let c=b.vertical;c.posOffset!==void 0?I=r+e(c.posOffset):c.align==="top"&&(I=0);}w=Math.max(0,Math.min(w,n-s.width)),o.push({src:s.src,width:s.width,height:s.height,alt:s.alt,transform:s.transform,x:w,y:I,side:p,distTop:g,distBottom:u,distLeft:E,distRight:y,wrapText:e$1(s.cssFloat),wrapType:s.wrapType,pmStart:s.pmStart,pmEnd:s.pmEnd});}let l=t.blocks[a];l&&l.kind==="paragraph"&&(r+=l.totalHeight);}return o}function Re(e){return !!e&&e.style!=="none"&&e.style!=="nil"&&e.width!==0}function J(e,t,n){let o=`border${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!Re(n))e.style[o]="none";else {let r=n.width??1,a=n.color??"#000000",i=n.style??"solid";e.style[o]=`${r}px ${i} ${a}`;}}function Ee(e){let t=[],n=0;for(let o of e)t.push(Math.round(n)),n+=o?.height??0;return t.push(Math.round(n)),t}function ft(e,t){let n=e.createElement("div");n.className="layout-table-cut-border",n.style.position="absolute",n.style.left=`${t.x}px`,n.style.width=`${t.width}px`;let o=t.border.width??1;return n.style.top=`${t.edge==="bottom"?t.topY-o:t.topY}px`,J(n,"top",t.border),n}function Le(e,t,n,o){e.classList.add(`ep-revision-${t}`,`ep-revision-${n}`),e.dataset.revisionId=String(o.revisionId),e.dataset.revisionAuthor=o.author,o.date&&(e.dataset.revisionDate=o.date);}var _={table:"layout-table",row:"layout-table-row",cell:"layout-table-cell",cellContent:"layout-table-cell-content",resizeHandle:"layout-table-resize-handle",rowResizeHandle:"layout-table-row-resize-handle",tableEdgeHandleBottom:"layout-table-edge-handle-bottom",tableEdgeHandleRight:"layout-table-edge-handle-right"};function jt(e,t,n,o){let r=o.createElement("div");r.className=_.cellContent,r.style.position="relative";let a=e.padding?.left??7,i=e.padding?.right??7,d=Math.max(0,t.width-a-i);r.style.width=`${d}px`;let l=pt(e,t,d),m;if(l.length>0){m=l.filter(a$2).map(E=>{let y=E.x+E.width+E.distRight,p=E.y-E.distTop,w=E.y+E.height+E.distBottom,I=0,c=0,x=E.wrapText??"bothSides";return x==="right"?I=y:x==="left"?c=d-(E.x-E.distLeft):E.side==="left"?I=y:c=d-(E.x-E.distLeft),{leftMargin:I,rightMargin:c,topY:p,bottomY:w}});let u=l.filter(b);u.length>0&&r.appendChild(q(u,o,{layerClass:"layout-cell-floating-images-layer",itemClass:"layout-cell-floating-image",sizing:"fullSize",layerMode:"behind"}));}let s=0,b$1=0;for(let u=0;u<e.blocks.length;u++){let E=e.blocks[u],y=t.blocks[u];if(E?.kind==="paragraph"&&y?.kind==="paragraph"){let p=E,w=y,I=p.attrs?.spacing,c=Math.max(b$1,I?.before??0);s+=c,m&&m.length>0&&(w=z$1(p,d,{floatingZones:m,paragraphYOffset:s}));let x={blockId:p.id,width:d,height:w.totalHeight,fromLine:0,toLine:w.lines.length,pmStart:p.pmStart,pmEnd:p.pmEnd},T={...n,insideTableCell:true},S=D(x,p,w,T,{document:o});S.style.position="relative",c>0&&(S.style.marginTop=`${c}px`),r.appendChild(S),s+=w.totalHeight,b$1=I?.after??0;}else if(E?.kind==="table"&&y?.kind==="table"){let p=E,w=y,I=b$1,c=Kt(p,w,n,o);c.style.position="relative",I>0&&(c.style.marginTop=`${I}px`),r.appendChild(c),s+=I+(y.totalHeight??0),b$1=0;}}b$1>0&&(r.style.paddingBottom=`${b$1}px`);let g=l.filter(u=>!b(u));return g.length>0&&r.appendChild(q(g,o,{layerClass:"layout-cell-floating-images-layer",itemClass:"layout-cell-floating-image",sizing:"fullSize",layerMode:"front"})),r}function Kt(e,t,n,o){let r=o.createElement("div");r.className=`${_.table} layout-nested-table`,r.style.position="relative",r.style.width=`${t.totalWidth}px`,r.style.display="block",e.justification==="center"?(r.style.marginLeft="auto",r.style.marginRight="auto"):e.justification==="right"?r.style.marginLeft="auto":e.indent&&(r.style.marginLeft=`${e.indent}px`),r.dataset.blockId=String(e.id),e.pmStart!==void 0&&(r.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(r.dataset.pmEnd=String(e.pmEnd));let a=e.rows[0],i=a?.trackedIns,d=a?.trackedDel,l=(g,u)=>!!g&&!!u&&(g.author??"")===(u.author??"")&&(g.date??null)===(u.date??null),m=e.rows.length>0&&e.rows.every(g=>i?l(g.trackedIns,i):d?l(g.trackedDel,d):false);if(m){let g=i??d,u=i?"ins":"del";r.classList.add("ep-revision-table",`ep-revision-${u}`),r.dataset.revisionId=String(g.revisionId),r.dataset.revisionAuthor=g.author,g.date&&(r.dataset.revisionDate=g.date);}let s=Ee(t.rows),b=new Map;for(let g=0;g<e.rows.length;g++){let u=e.rows[g],E=t.rows[g];if(!u||!E)continue;let y=ve(u,E,g,s[g]??0,t.columnWidths,e.rows.length,n,o,b,s,void 0,m);r.appendChild(y);}return r.style.height=`${s[e.rows.length]??0}px`,r}function gt(e,t,n,o,r,a,i,d){let l=i.createElement("div");l.className=_.cell,e.trackedMarker&&e.trackedMarker.info.revisionId!==d&&Le(l,"cell",e.trackedMarker.kind,e.trackedMarker.info),l.style.position="absolute",l.style.left=`${n}px`,l.style.top="0",l.style.width=`${t.width}px`,l.style.height=`${o}px`,l.style.overflow="hidden",l.style.boxSizing="border-box";let m=e.padding?.top??1,s=e.padding?.right??7,b=e.padding?.bottom??1,g=e.padding?.left??7;l.style.padding=`${m}px ${s}px ${b}px ${g}px`,e.borders&&(r.isFirstRow&&J(l,"top",e.borders.top),J(l,"right",e.borders.right),J(l,"bottom",e.borders.bottom),r.isFirstCol&&J(l,"left",e.borders.left)),e.background&&(l.style.backgroundColor=e.background),e.noWrap&&(l.style.whiteSpace="nowrap");let u=(t.height??0)>=o-.5;if(e.verticalAlign&&!u)switch(l.style.display="flex",l.style.flexDirection="column",e.verticalAlign){case "top":l.style.justifyContent="flex-start";break;case "center":l.style.justifyContent="center";break;case "bottom":l.style.justifyContent="flex-end";break}let E=jt(e,t,a,i);if(l.appendChild(E),e.blocks.length>0){let y=e.blocks[0],p=e.blocks[e.blocks.length-1];y&&"pmStart"in y&&y.pmStart!==void 0&&(l.dataset.pmStart=String(y.pmStart)),p&&"pmEnd"in p&&p.pmEnd!==void 0&&(l.dataset.pmEnd=String(p.pmEnd));}return l}function Vt(e,t){return b$1(e).map(n=>{let o=0;for(let r=0;r<n.columnIndex;r++)o+=t[r]??0;return {rowIndex:n.rowIndex,cellIndex:n.cellIndex,columnIndex:n.columnIndex,x:o,colSpan:n.colSpan,rowSpan:n.rowSpan,cell:e.rows[n.rowIndex].cells[n.cellIndex]}})}function ve(e,t,n,o,r,a,i,d,l,m,s,b){let g=d.createElement("div");g.className=_.row,b||(e.trackedDel?Le(g,"row","del",e.trackedDel):e.trackedIns&&Le(g,"row","ins",e.trackedIns));let u=m&&m.length>n+1?(m[n+1]??0)-(m[n]??0):t.height;g.style.position="absolute",g.style.left="0",g.style.top=`${o}px`,g.style.width="100%",g.style.height=`${u}px`,g.dataset.rowIndex=String(n);let E=new Set;if(l){for(let[,w]of l)if(w.startRow<n&&w.startRow+w.rowSpan>n)for(let I=0;I<w.colSpan;I++)E.add(w.columnIndex+I);}let y=0,p=0;for(;E.has(p);)y+=r[p]??0,p++;for(let w=0;w<e.cells.length;w++){let I=e.cells[w],c=t.cells[w];if(!I||!c)continue;let x=I.colSpan??1,T=I.rowSpan??1,S=u;if(T>1&&m){S=0;for(let F=n;F<n+T&&F<m.length-1;F++)S+=(m[F+1]??0)-(m[F]??0);S===0&&(S=t.height*T);}let k=n===0||s===true,h=p===0;p+x>=r.length;let C=gt(I,c,y,S,{isFirstRow:k,isFirstCol:h},i,d,e.trackedIns?.revisionId??e.trackedDel?.revisionId);if(C.dataset.cellIndex=String(w),C.dataset.columnIndex=String(p),T>1&&(C.dataset.rowSpan=String(T)),g.appendChild(C),T>1&&l){let F=`${n}-${p}`;l.set(F,{cell:I,cellMeasure:c,columnIndex:p,startRow:n,rowSpan:T,colSpan:x,x:y,totalHeight:S});}for(let F=0;F<x&&p+F<r.length;F++)y+=r[p+F]??0;for(p+=x;E.has(p);)y+=r[p]??0,p++;}return g}function Q(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=_.table,i.style.position=o.positioning==="flow"?"relative":"absolute",i.style.width=`${e.width}px`,i.style.overflow="hidden",i.dataset.blockId=String(e.blockId),i.dataset.fromRow=String(e.fromRow),i.dataset.toRow=String(e.toRow),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let d=t.rows[0],l=d?.trackedIns,m=d?.trackedDel,s=(f,h)=>!!f&&!!h&&(f.author??"")===(h.author??"")&&(f.date??null)===(h.date??null),b=t.rows.length>0&&t.rows.every(f=>l?s(f.trackedIns,l):m?s(f.trackedDel,m):false);if(b){let f=l??m,h=l?"ins":"del";i.classList.add("ep-revision-table",`ep-revision-${h}`),i.dataset.revisionId=String(f.revisionId),i.dataset.revisionAuthor=f.author,f.date&&(i.dataset.revisionDate=f.date),i.style.overflowX="visible",i.style.overflowY="hidden";}let g=0;for(let f=0;f<n.columnWidths.length-1;f++){g+=n.columnWidths[f]??0;let h=a.createElement("div");h.className=_.resizeHandle,h.style.position="absolute",h.style.left=`${g-3}px`,h.style.top="0",h.style.width="6px",h.style.height="100%",h.style.cursor="col-resize",h.style.zIndex="10",h.dataset.columnIndex=String(f),h.dataset.tableBlockId=String(e.blockId),e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),i.appendChild(h);}let u=Ee(n.rows),E=Vt(t,n.columnWidths),y=e.headerRowCount??0,p=0;if(y>0&&e.continuesFromPrev){let f=new Map;for(let h=0;h<y;h++){let R=t.rows[h],C=n.rows[h];if(!R||!C)continue;let F=ve(R,C,h,p,n.columnWidths,t.rows.length,o,a,f,u,h===0,b);F.dataset.repeatedHeader="true",i.appendChild(F),p+=C.height;}}let w=(u[e.fromRow]??0)+(e.topClip??0),I=f=>p+(f-w),c=e.bottomClip!==void 0?Math.round(e.height):I(u[e.toRow]??0);i.style.height=`${c}px`;let x=new Map,T=y>0&&e.continuesFromPrev;for(let f of E){if(f.rowSpan<=1||f.rowIndex>=e.fromRow||f.rowIndex+f.rowSpan<=e.fromRow||T&&f.rowIndex<y)continue;let h=n.rows[f.rowIndex]?.cells?.[f.cellIndex];if(!h)continue;let R=0;for(let B=f.rowIndex;B<f.rowIndex+f.rowSpan&&B<u.length-1;B++)R+=(u[B+1]??0)-(u[B]??0);x.set(`${f.rowIndex}-${f.columnIndex}`,{cell:f.cell,cellMeasure:h,columnIndex:f.columnIndex,startRow:f.rowIndex,rowSpan:f.rowSpan,colSpan:f.colSpan,x:f.x,totalHeight:R});f.rowIndex+f.rowSpan>=t.rows.length;let F=f.columnIndex===0;f.columnIndex+f.colSpan>=n.columnWidths.length;let L=gt(f.cell,h,f.x,R,{isFirstRow:false,isFirstCol:F},o,a);L.style.top=`${I(u[f.rowIndex]??0)}px`,L.dataset.columnIndex=String(f.columnIndex),L.dataset.vmergeContinuation="true",delete L.dataset.pmStart,delete L.dataset.pmEnd,i.appendChild(L);}for(let f=e.fromRow;f<e.toRow;f++){let h=t.rows[f],R=n.rows[f];if(!h||!R)continue;let C=y>0&&e.continuesFromPrev?false:e.continuesFromPrev&&f===e.fromRow&&!e.topClip,F=ve(h,R,f,I(u[f]??0),n.columnWidths,t.rows.length,o,a,x,u,C,b);i.appendChild(F);}let S=(f,h,R,C)=>{for(let F of E){if(F.rowIndex>f||F.rowIndex+F.rowSpan-1<f||C&&!(h==="bottom"?F.rowIndex+F.rowSpan-1>f:F.rowIndex<f))continue;let v=F.cell.borders?.[h];if(!Re(v))continue;let L=0;for(let B=0;B<F.colSpan;B++)L+=n.columnWidths[F.columnIndex+B]??0;i.appendChild(ft(a,{x:F.x,topY:R,width:L,edge:h,border:v}));}};e.topClip?S(e.fromRow,"top",p,false):e.continuesFromPrev&&S(e.fromRow,"top",p,true),e.bottomClip!==void 0?S(e.toRow-1,"bottom",c,false):e.continuesOnNext&&S(e.toRow-1,"bottom",c,true);for(let f=e.fromRow;f<e.toRow-1;f++){let h=I(u[f+1]??0);if(h<=p||h>=e.height)continue;let R=a.createElement("div");R.className=_.rowResizeHandle,R.style.position="absolute",R.style.left="0",R.style.top=`${h-3}px`,R.style.width="100%",R.style.height="6px",R.style.cursor="row-resize",R.style.zIndex="10",R.dataset.rowIndex=String(f),R.dataset.tableBlockId=String(e.blockId),e.pmStart!==void 0&&(R.dataset.tablePmStart=String(e.pmStart)),i.appendChild(R);}let k=e.toRow===t.rows.length&&e.bottomClip===void 0;if(k){let f=a.createElement("div");f.className=_.tableEdgeHandleBottom,f.style.position="absolute",f.style.left="0",f.style.top=`${I(u[e.toRow]??0)-3}px`,f.style.width="100%",f.style.height="6px",f.style.cursor="row-resize",f.style.zIndex="10",f.dataset.rowIndex=String(t.rows.length-1),f.dataset.tableBlockId=String(e.blockId),f.dataset.isEdge="bottom",e.pmStart!==void 0&&(f.dataset.tablePmStart=String(e.pmStart)),i.appendChild(f);}if(k){let f=n.columnWidths.reduce((R,C)=>R+C,0),h=a.createElement("div");h.className=_.tableEdgeHandleRight,h.style.position="absolute",h.style.left=`${f-3}px`,h.style.top="0",h.style.width="6px",h.style.height="100%",h.style.cursor="col-resize",h.style.zIndex="10",h.dataset.columnIndex=String(n.columnWidths.length-1),h.dataset.tableBlockId=String(e.blockId),h.dataset.isEdge="right",e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),i.appendChild(h);}return i}var Ut={textBox:"layout-textbox"};function ee(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");if(i.className=Ut.textBox,i.style.position="absolute",i.style.width=`${e.width}px`,i.style.height=`${e.height}px`,i.style.overflow="hidden",i.style.boxSizing="border-box",Xt(i,e),t.fillColor&&(i.style.backgroundColor=t.fillColor),t.outlineWidth&&t.outlineWidth>0){let s=t.outlineStyle||"solid",b=t.outlineColor||"#000000";i.style.border=`${t.outlineWidth}px ${s} ${b}`;}let d=t.margins??a$1;i.style.padding=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`,i.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let l=e.width-d.left-d.right,m=0;for(let s=0;s<t.content.length;s++){let b=t.content[s],g=n.innerMeasures[s];if(!g)continue;let u={blockId:b.id,width:l,height:g.totalHeight,pmStart:b.pmStart,pmEnd:b.pmEnd,fromLine:0,toLine:g.lines.length},E=D(u,b,g,{...o,positioning:"flow"},{document:a});i.appendChild(E),m+=g.totalHeight;}return i}function Xt(e,t){!t.isFloating&&t.zIndex===void 0||(e.style.zIndex=String(t.zIndex??10));}var qt="layout-watermark-layer";function Zt(e,t){let n=Math.max(e.trim().length,1),o=t/(n*.62);return Math.max(24,Math.min(o,180))}function Jt(e,t,n){let o=n.createElement("div");o.style.position="absolute",o.style.top="50%",o.style.left="50%",o.style.whiteSpace="nowrap",o.style.fontWeight="bold",o.style.color=e.color,o.style.fontFamily=a(e.font).cssFallback,o.style.userSelect="none";let r=t.size.w-t.margins.left-t.margins.right,a$1=e.layout==="diagonal"?r*1.3:r,i=e.fontSize!==void 0?e.fontSize*96/72:Zt(e.text,a$1);o.style.fontSize=`${i}px`,o.style.lineHeight="1",o.style.opacity=e.semitransparent?"0.5":"0.85";let d=e.layout==="diagonal"?-45:0;return o.style.transform=`translate(-50%, -50%) rotate(${d}deg)`,o.style.transformOrigin="center center",o.textContent=e.text,o}function Qt(e,t,n){if(!e.dataUrl)return null;let o=n.createElement("img");o.src=e.dataUrl,o.alt="",o.style.position="absolute",o.style.top="50%",o.style.left="50%",o.style.transform="translate(-50%, -50%)";let r=t.size.w-t.margins.left-t.margins.right,a=e.widthEmu!==void 0?e.widthEmu/(914400/96):r*.75;return o.style.width=`${a*(e.scale||1)}px`,o.style.height="auto",e.washout&&(o.style.opacity="0.5",o.style.filter="brightness(1.4) contrast(0.4)"),o}function mt(e,t,n=document){let o=e.kind==="text"?Jt(e,t,n):Qt(e,t,n);if(!o)return null;let r=n.createElement("div");return r.className=qt,r.setAttribute("aria-hidden","true"),r.style.position="absolute",r.style.inset="0",r.style.overflow="hidden",r.style.pointerEvents="none",r.style.zIndex="0",r.appendChild(o),r}function ut(e){return e?.align??e?.alignment}function en(e$1,t){let n=e$1.position.vertical;if(!n)return e$1.paragraphY;let o=ut(n),r=n.posOffset!==void 0?e(n.posOffset):void 0;if(n.relativeTo==="page"){if(r!==void 0)return r-t.flowTop;if(o==="top")return -t.flowTop;if(o==="bottom")return t.pageHeight-e$1.height-t.flowTop;if(o==="center")return (t.pageHeight-e$1.height)/2-t.flowTop}if(n.relativeTo==="margin"){let a=t.margins.top,i=t.pageHeight-t.margins.top-t.margins.bottom;if(r!==void 0)return a+r-t.flowTop;if(o==="top")return a-t.flowTop;if(o==="bottom")return a+i-e$1.height-t.flowTop;if(o==="center")return a+(i-e$1.height)/2-t.flowTop}return r!==void 0?e$1.paragraphY+r:e$1.paragraphY}function Pe(e$1,t,n){if(!t)return "0";let o=ut(t);if(t.relativeTo==="page"){if(t.posOffset!==void 0)return `${e(t.posOffset)-n.flowLeft}px`;if(o==="right")return `${n.pageWidth-e$1-n.flowLeft}px`;if(o==="center")return `${(n.pageWidth-e$1)/2-n.flowLeft}px`;if(o==="left")return `${-n.flowLeft}px`}return t.posOffset!==void 0?`${e(t.posOffset)}px`:o==="right"?`${n.contentWidth-e$1}px`:o==="center"?`${(n.contentWidth-e$1)/2}px`:"0"}function tn(e,t,n){e.style.left=Pe(t.width,t.position.horizontal,n);}function ht(e,t){let n=e.tblpY??0;e.vertAnchor==="page"?n-=t.flowTop:e.vertAnchor==="margin"&&(n+=t.margins.top-t.flowTop);let o=e.tblpX??0;return e.horzAnchor==="page"?o-=t.flowLeft:e.horzAnchor==="margin"&&(o+=t.margins.left-t.flowLeft),{left:o,top:n}}function Be(e,t,n,o){let r=n.document??document,a=r.createElement("div");a.style.position="relative";let i=t.contentWidth??600,d=[],l=0;for(let m=0;m<e.blocks.length;m++){let s=e.blocks[m],b=e.measures[m];if(!(!s||!b))if(s.kind==="paragraph"){if(b.kind!=="paragraph")continue;let g=s,u=b,E=g.attrs?.spacing?.before??0,y=l,p=[];for(let x of g.runs)if(x.kind==="image"&&"position"in x&&x.position){let T=x;d.push({src:T.src,width:T.width,height:T.height,alt:T.alt,paragraphY:y,position:T.position});}else p.push(x);let w={...g,runs:p},I={blockId:g.id,width:i,height:u.totalHeight,fromLine:0,toLine:u.lines.length,pmStart:g.pmStart,pmEnd:g.pmEnd},c=D(I,w,u,{...t,positioning:"absolute"},{document:r});c.style.top=`${l+E}px`,c.style.left="0",c.style.width=`${i}px`,a.appendChild(c),l+=u.totalHeight;}else if(s.kind==="table"){if(b.kind!=="table")continue;let g={blockId:s.id,width:b.totalWidth,height:b.totalHeight,fromRow:0,toRow:b.rows.length,pmStart:s.pmStart,pmEnd:s.pmEnd},u=Q(g,s,b,{...t,positioning:"absolute"},{document:r});if(s.floating){let{left:E,top:y}=ht(s.floating,o);u.style.top=`${y}px`,u.style.left=`${E}px`,a.appendChild(u);}else u.style.top=`${l}px`,u.style.left="0",a.appendChild(u),l+=b.totalHeight;}else if(s.kind==="image"){if(b.kind!=="image")continue;let g={blockId:s.id,width:b.width,height:b.height,pmStart:s.pmStart,pmEnd:s.pmEnd},u=Z(g,s,b,{...t},{document:r});u.style.top=`${l}px`,u.style.left="0",a.appendChild(u),l+=b.height;}else if(s.kind==="textBox"){if(b.kind!=="textBox")continue;let g={blockId:s.id,width:b.width,height:b.height,pmStart:s.pmStart,pmEnd:s.pmEnd},u=ee(g,s,b,{...t,positioning:"absolute"},{document:r});u.style.top=`${l}px`,u.style.left=Pe(b.width,s.position?.horizontal,o),a.appendChild(u),s.displayMode!=="float"&&(l+=b.height);}else s.kind==="sectionBreak"||s.kind==="pageBreak"||s.kind==="columnBreak"||c$3(s,"renderHeaderFooterContent");}for(let m of d){let s=r.createElement("img");s.src=m.src,s.width=m.width,s.height=m.height,m.alt&&(s.alt=m.alt),s.style.position="absolute",s.style.display="block",s.style.width=`${m.width}px`,s.style.height=`${m.height}px`,s.style.maxWidth="none",s.style.maxHeight="none",tn(s,m,o),s.style.top=`${en(m,o)}px`,a.appendChild(s);}return a}var be=12,Me=6;function nn(e,t){if(e.size!==t.size)return false;for(let[n,o]of e)if(t.get(n)!==o)return false;return true}function on(e,t){for(let[n,o]of t)if((e.get(n)??0)<o)return false;return true}function rn(e,t){let n=new Map(e);for(let[o,r]of t)n.set(o,Math.max(n.get(o)??0,r));return n}var $e=8;function To(e){let t=[],n=o=>{for(let r of o)if(r.kind==="paragraph")for(let a of r.runs)a.kind==="text"&&a.footnoteRefId!=null&&t.push({footnoteId:a.footnoteRefId,pmPos:a.pmStart??0});else if(r.kind==="table")for(let a of r.rows)for(let i of a.cells)n(i.blocks);else r.kind==="textBox"&&n(r.content);};return n(e),t}function ye(e,t){let n=new Map;if(t.length===0)return n;for(let o of t)for(let r of e){let a=false;for(let i of r.fragments){let d=i.pmStart??-1,l=i.pmEnd??-1;if(d>=0&&l>=0&&o.pmPos>=d&&o.pmPos<l){let m=n.get(r.number)??[];m.includes(o.footnoteId)||m.push(o.footnoteId),n.set(r.number,m),a=true;break}}if(a)break}return n}function an(e,t){if(e.length===0)return [{kind:"paragraph",id:`fn-empty-${t}`,runs:[{kind:"text",text:`${t} `,fontSize:$e,superscript:true}]}];let n=e.map(r=>{if(r.kind!=="paragraph")return r;let a=r;return {...a,runs:a.runs.map(i=>(i.kind==="text"||i.kind==="tab")&&i.fontSize==null?{...i,fontSize:$e}:i)}}),o=n[0];if(o.kind==="paragraph"){let r={kind:"text",text:`${t} `,fontSize:$e,superscript:true};n[0]={...o,runs:[r,...o.runs]};}return n}function sn(e,t,n,o){let r=c$1(e.content,{styles:o.styles??void 0,theme:o.theme??null,defaultTabStopTwips:o.defaultTabStopTwips??null}),a=c$2(r,{theme:o.theme??void 0}),i=an(a,t),d=o.measureBlocks(i,n),l=d.reduce((m,s)=>s.kind==="paragraph"||s.kind==="table"?m+s.totalHeight:s.kind==="image"||s.kind==="textBox"?m+s.height:m,0);return {id:e.id,displayNumber:t,blocks:i,measures:d,height:l}}function Fo(e,t,n,o){let r=new Map,a=new Map;for(let l of e)(l.noteType==="normal"||l.noteType==null)&&a.set(l.id,l);let i=1,d=new Set;for(let l of t){if(d.has(l.footnoteId))continue;d.add(l.footnoteId);let m=a.get(l.footnoteId);m&&(r.set(l.footnoteId,sn(m,i,n,o)),i++);}return r}function He(e,t){let n=new Map;for(let[o,r]of e){let a=0;for(let i of r){let d=t.get(i);d&&(a+=d.height);}a>0&&(a+=be,n.set(o,a));}return n}function Io(e){let{blocks:t,measures:n,layoutOpts:o,footnoteRefs:r,footnoteContentMap:a,initialLayout:i}=e,d=ye(i.pages,r),l=He(d,a);if(l.size===0)return {layout:i,pageFootnoteMap:d,converged:true};let m=i,s=false;for(let b=0;b<Me;b++){m=U$1(t,n,{...o,footnoteReservedHeights:l});let g=ye(m.pages,r),u=He(g,a);if(d=g,nn(l,u)){l=u,s=true;break}l=u;}if(!s){let b=l,g=false;for(let u=0;u<Me;u++){m=U$1(t,n,{...o,footnoteReservedHeights:b}),d=ye(m.pages,r);let E=He(d,a);if(on(b,E)){g=true;break}b=rn(b,E);}g||(m=U$1(t,n,{...o,footnoteReservedHeights:b}),d=ye(m.pages,r)),console.warn(`[docx-editor] footnote layout did not stabilize within ${Me} passes; settling with conservative page reservations. If footnotes appear misplaced, please file a bug with the document.`);}for(let[b,g]of d){let u=m.pages.find(E=>E.number===b);u&&(u.footnoteIds=g);}return {layout:m,pageFootnoteMap:d,converged:s}}function Co(e,t,n){let o=new Map;if(!n?.package?.footnotes)return o;let r=new Map;for(let a of n.package.footnotes)a.noteType&&a.noteType!=="normal"||r.set(a.id,a);for(let[a,i]of e){let d=[];for(let l of i){let m=r.get(l);if(!m)continue;let s=t.get(l),b=s?.displayNumber??0;d.push({displayNumber:String(b),text:x$1(m),content:s});}d.length>0&&o.set(a,d);}return o}function ln(e,t,n,o){let r=o.createElement("div");r.className="layout-footnote-content",r.style.position="relative",r.style.width=`${t}px`,r.style.height=`${e.height}px`;let a=0;for(let i=0;i<e.blocks.length;i++){let d=e.blocks[i],l=e.measures[i];if(!(!d||!l)){if(d.kind==="paragraph"&&l.kind==="paragraph"){let m=d.attrs?.spacing?.before??0,s={blockId:d.id,width:t,height:l.totalHeight,pmStart:d.pmStart,pmEnd:d.pmEnd,fromLine:0,toLine:l.lines.length},b=D(s,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});b.style.top=`${a+m}px`,b.style.left="0",b.style.width=`${t}px`,b.style.height=`${l.totalHeight}px`,r.appendChild(b),a+=l.totalHeight;}else if(d.kind==="table"&&l.kind==="table"){let m={blockId:d.id,width:l.totalWidth,height:l.totalHeight,pmStart:d.pmStart,pmEnd:d.pmEnd,fromRow:0,toRow:l.rows.length},s=Q(m,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.totalHeight;}else if(d.kind==="image"&&l.kind==="image"){let m={blockId:d.id,width:l.width,height:l.height,pmStart:d.pmStart,pmEnd:d.pmEnd},s=Z(m,d,l,{...n},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.height;}else if(d.kind==="textBox"&&l.kind==="textBox"){let m={blockId:d.id,width:l.width,height:l.height,pmStart:d.pmStart,pmEnd:d.pmEnd},s=ee(m,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.height;}}}return r}function dn(e,t){let n=t.createElement("div");n.style.fontSize="10px",n.style.lineHeight="1.3",n.style.marginBottom="4px",n.style.color="#000";let o=t.createElement("sup");o.textContent=e.displayNumber,o.style.fontSize="7px",o.style.marginRight="2px",n.appendChild(o);let r=t.createTextNode(" "+e.text);return n.appendChild(r),n}function yt(e){let t=be;for(let n of e)n.content&&(t+=n.content.height);return t}function bt(e,t,n,o){let r=o.createElement("div");r.className="layout-footnote-area",r.style.width=`${t}px`;let a=o.createElement("div"),i=.5,d=(be-i)/2;a.style.width="33%",a.style.height=`${i}px`,a.style.backgroundColor="#000",a.style.marginBottom=`${d}px`,a.style.marginTop=`${d}px`,r.appendChild(a);for(let l of e)r.appendChild(l.content?ln(l.content,t,n,o):dn(l,o));return r}function Ae(e,t,n){let o={pageNumber:e.number,totalPages:t,section:"body",resolvedCommentIds:n.resolvedCommentIds},r={...n};if(n.titlePg&&e.number===1&&(r.headerContent=n.firstPageHeaderContent,r.footerContent=n.firstPageFooterContent),n.footnotesByPage){let a=n.footnotesByPage.get(e.number);a&&a.length>0&&(r.footnoteArea=a);}return {context:o,pageOptions:r}}function xt(e){let t=[];t.push(`s:${e.size.w},${e.size.h}`),t.push(`m:${e.margins.top},${e.margins.right},${e.margins.bottom},${e.margins.left}`),t.push(`n:${e.number}`),e.footnoteReservedHeight&&t.push(`fn:${e.footnoteReservedHeight}`);for(let n of e.fragments){let o=`${n.kind}:${n.blockId},${n.x},${n.y},${n.width},${n.height}`;n.pmStart!==void 0&&(o+=`,ps:${n.pmStart}`),n.pmEnd!==void 0&&(o+=`,pe:${n.pmEnd}`),n.kind==="paragraph"?o+=`,fl:${n.fromLine},tl:${n.toLine}`:n.kind==="table"&&(o+=`,fr:${n.fromRow},tr:${n.toRow}`),t.push(o);}return t.join("|")}function cn(e){let t=[];return e.headerContent&&t.push(`hdr:${e.headerContent.blocks.length},${e.headerContent.height},${e.headerContent.visualTop??0},${e.headerContent.visualBottom??e.headerContent.height}`),e.footerContent&&t.push(`ftr:${e.footerContent.blocks.length},${e.footerContent.height},${e.footerContent.visualTop??0},${e.footerContent.visualBottom??e.footerContent.height}`),e.firstPageHeaderContent&&t.push(`fp-hdr:${e.firstPageHeaderContent.blocks.length},${e.firstPageHeaderContent.height}`),e.firstPageFooterContent&&t.push(`fp-ftr:${e.firstPageFooterContent.blocks.length},${e.firstPageFooterContent.height}`),e.titlePg&&t.push("titlePg"),e.theme&&t.push(`thm:${e.theme.name??"default"}`),e.pageBorders&&t.push(`pb:${JSON.stringify(e.pageBorders)}`),e.headerDistance!==void 0&&t.push(`hd:${e.headerDistance}`),e.footerDistance!==void 0&&t.push(`fd:${e.footerDistance}`),t.join("|")}function pn(e,t){e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap=`${t}px`,e.style.padding=`${t}px`,e.style.backgroundColor="var(--doc-bg, #f8f9fa)";}var xe=2,fn=8;function gn(e,t,n={}){let o=e.length,r=n.pageGap??24,a=t,i=a.__pageRenderState,d=cn(n),l=o>=fn;if(i&&i.optionsHash===d&&l){let p=i.pageStates,w=i.pageDataMap,I=a.__pageObserver,c=[];for(let S of e)c.push(xt(S));let x=i.totalPages!==o,T=Math.min(p.length,e.length);for(let S=0;S<T;S++){let k=p[S],f=c[S];if(k.fingerprint===f&&!x){let C=w.get(k.element);C&&(C.page=e[S]);continue}let h=k.element,R=w.get(h);R&&(R.page=e[S],R.rendered&&mn(h,w,o,n)),k.fingerprint=f,le(h,e[S].size.w,e[S].size.h,n),h.dataset.pageNumber=String(e[S].number);}if(e.length>p.length){let S=n.document??document;for(let k=p.length;k<e.length;k++){let f=e[k],h=S.createElement("div");h.className=n.pageClassName??G.page,h.dataset.pageNumber=String(f.number),h.dataset.pageIndex=String(k),le(h,f.size.w,f.size.h,n),t.appendChild(h),p.push({element:h,fingerprint:c[k]}),w.set(h,{page:f,index:k,rendered:false}),I&&I.observe(h);}}if(e.length<p.length){for(let S=p.length-1;S>=e.length;S--){let k=p[S].element;I&&I.unobserve(k),w.delete(k),t.removeChild(k);}p.length=e.length;}for(let S=0;S<p.length;S++){let k=w.get(p[S].element);k&&(k.index=S);}return i.totalPages=o,i.currentOptions=n,"incremental"}let s=a.__pageObserver;s&&(s.disconnect(),a.__pageObserver=void 0),t.innerHTML="",a.__pageRenderState=void 0,pn(t,r);let b=[],g=[];for(let p=0;p<e.length;p++){let w=e[p];if(g.push(xt(w)),l){let c=(n.document??document).createElement("div");c.className=n.pageClassName??G.page,c.dataset.pageNumber=String(w.number),c.dataset.pageIndex=String(p),le(c,w.size.w,w.size.h,n),t.appendChild(c),b.push(c);}else {let{context:I,pageOptions:c}=Ae(w,o,n),x=Se(w,I,c);t.appendChild(x),b.push(x);}}if(!l)return "full";let u=new Map;for(let p=0;p<e.length;p++)u.set(b[p],{page:e[p],index:p,rendered:false});let E=new IntersectionObserver(p=>{let w=a.__pageRenderState;if(!w)return;let{currentOptions:I,totalPages:c,pageDataMap:x}=w;for(let f of p){let h=f.target,R=x.get(h);if(R&&f.isIntersecting){se(h,x,c,I);for(let C=-xe;C<=xe;C++){let F=R.index+C;F>=0&&F<w.pageStates.length&&F!==R.index&&se(w.pageStates[F].element,x,c,I);}}}let T=window.innerHeight,S=T*3,k=new Set;for(let[f,h]of x){if(!h.rendered)continue;let R=f.getBoundingClientRect();R.bottom>-S&&R.top<T+S&&k.add(h.index);}for(let[f,h]of x){if(!h.rendered)continue;let R=false;for(let C of k)if(Math.abs(h.index-C)<=xe+1){R=true;break}!R&&k.size>0&&un(f,x);}},{root:null,rootMargin:"1500px 0px 1500px 0px"});for(let p of b)E.observe(p);a.__pageObserver=E,a.__pageRenderState={pageStates:b.map((p,w)=>({element:p,fingerprint:g[w]})),totalPages:o,optionsHash:d,pageDataMap:u,currentOptions:n};let y=Math.min(e.length,xe+3);for(let p=0;p<y;p++)se(b[p],u,o,n);return "full"}function se(e,t,n,o){let r=t.get(e);if(!r||r.rendered)return;let{context:a,pageOptions:i}=Ae(r.page,n,o),d=Se(r.page,a,i);for(;d.firstChild;)e.appendChild(d.firstChild);r.rendered=true;}function mn(e,t,n,o){let r=t.get(e);if(!r)return;let{context:a,pageOptions:i}=Ae(r.page,n,o),l=Se(r.page,a,i).querySelector(`.${G.content}`),m=e.querySelector(`.${G.content}`);l&&m?e.replaceChild(l,m):(e.innerHTML="",r.rendered=false,se(e,t,n,o));}function un(e,t){let n=t.get(e);!n||!n.rendered||(e.innerHTML="",n.rendered=false);}function hn(e){let n=e.__pageRenderState;if(!n)return 0;let{pageStates:o,totalPages:r,currentOptions:a,pageDataMap:i}=n,d=0;for(let{element:l}of o){let m=i.get(l);!m||m.rendered||(se(l,i,r,a),d++);}return d}var G={page:"layout-page",content:"layout-page-content",header:"layout-page-header",footer:"layout-page-footer"};function le(e,t,n,o){e.style.position="relative",e.style.width=`${t}px`,e.style.height=`${n}px`,e.style.backgroundColor=o.backgroundColor??"#ffffff",e.style.overflow="hidden",e.style.fontFamily=a("Calibri").cssFallback,e.style.fontSize=`${1056/72}px`,e.style.color="#000000",o.showBorders&&(e.style.border="1px solid #ccc"),o.showShadow&&(e.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");}function yn(e,t){switch(t??"allPages"){case "firstPage":return e===1;case "notFirstPage":return e!==1;default:return true}}function ke(e){return e?.space!==void 0?i(e.space):0}function we(e,t,n,o){if(!t||t.style==="none"||t.style==="nil")return;let r=c$4(t,n,o);for(let[l,m]of Object.entries(r))e.style[l]=String(m);let a=`border${n}Style`,i=`border${n}Width`;if(e.style[a]==="double"){let l=parseFloat(e.style[i]);(!Number.isFinite(l)||l<3)&&(e.style[i]="3px");}}function bn(e,t,n){let o=t.pageBorders;if(!o||!yn(e.number,o.display)||![o.top,o.bottom,o.left,o.right].some(b=>b&&b.style!=="none"&&b.style!=="nil"))return null;let a=o.offsetFrom??"text",i=ke(o.top),d=ke(o.right),l=ke(o.bottom),m=ke(o.left),s=n.createElement("div");return s.className="layout-page-border",s.style.position="absolute",s.style.pointerEvents="none",s.style.boxSizing="border-box",s.style.zIndex=o.zOrder==="back"?"0":"20",a==="page"?(s.style.top=`${i}px`,s.style.right=`${d}px`,s.style.bottom=`${l}px`,s.style.left=`${m}px`):(s.style.top=`${Math.max(0,e.margins.top-i)}px`,s.style.right=`${Math.max(0,e.margins.right-d)}px`,s.style.bottom=`${Math.max(0,e.margins.bottom-l)}px`,s.style.left=`${Math.max(0,e.margins.left-m)}px`),we(s,o.top,"Top",t.theme),we(s,o.bottom,"Bottom",t.theme),we(s,o.left,"Left",t.theme),we(s,o.right,"Right",t.theme),s}function xn(e,t){let n=t.margins;e.style.position="absolute",e.style.top=`${n.top}px`,e.style.left=`${n.left}px`,e.style.right=`${n.right}px`,e.style.bottom=`${n.bottom}px`,e.style.overflow="visible";}function Sn(e,t,n){e.style.position="absolute",e.style.left=`${t.x-n.left}px`;let o=t.y-n.top;e.style.top=`${t.kind==="table"?Math.round(o):o}px`,e.style.width=`${t.width}px`,"height"in t&&t.kind!=="table"&&(e.style.height=`${t.height}px`);}function kn(e,t,n,o){let r=[];for(let a of e.runs){if(a.kind!=="image")continue;let i=a;if(!c(i))continue;let d=i.distTop??0,l=i.distBottom??0,m=i.distLeft??12,s=i.distRight??12,{x:b,y:g$1,side:u}=g(i,t,n,o);r.push({src:i.src,width:i.width,height:i.height,alt:i.alt,transform:i.transform,side:u,x:b,y:g$1,distTop:d,distBottom:l,distLeft:m,distRight:s,pmStart:i.pmStart,pmEnd:i.pmEnd,wrapText:e$1(i.cssFloat),wrapType:i.wrapType,cropTop:i.cropTop,cropRight:i.cropRight,cropBottom:i.cropBottom,cropLeft:i.cropLeft,opacity:i.opacity});}return r}function Se(e,t$1,n={}){let o=n.document??document,r=o.createElement("div");if(r.className=n.pageClassName??G.page,r.dataset.pageNumber=String(e.number),le(r,e.size.w,e.size.h,n),n.watermark){let c=mt(n.watermark,e,o);c&&r.appendChild(c);}let a=bn(e,n,o);a&&n.pageBorders?.zOrder==="back"&&r.appendChild(a);let i=o.createElement("div");i.className=G.content,xn(i,e);let d=f(e),l=d.contentWidth,m=[],s=[];for(let c of e.fragments)if(c.kind==="paragraph"&&n.blockLookup){let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind==="paragraph"){let T=x.block,S=c.y-e.margins.top,k=kn(T,S,l,d);m.push(...k);}}for(let c of m)a$2(c)&&s.push({side:c.side,x:c.x,y:c.y,width:c.width,height:c.height,distTop:c.distTop,distBottom:c.distBottom,distLeft:c.distLeft,distRight:c.distRight,wrapText:c.wrapText,wrapType:c.wrapType});if(n.blockLookup)for(let c of e.fragments){if(c.kind!=="table")continue;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind!=="table")continue;let S=x.block.floating;if(!S)continue;let k=c.x-e.margins.left,f=c.y-e.margins.top,h=S.topFromText??0,R=S.bottomFromText??0,C=S.leftFromText??12,F=S.rightFromText??12,v=k<l/2?"left":"right";s.push({side:v,x:k,y:f,width:c.width,height:c.height,distTop:h,distBottom:R,distLeft:C,distRight:F});}if(n.blockLookup)for(let c of e.fragments){if(c.kind!=="textBox")continue;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind!=="textBox")continue;let T=x.block;if(!I(T))continue;let S=c.y-e.margins.top,k=g({width:c.width,height:c.height,position:T.position,cssFloat:T.cssFloat},S,l,d);c.x=e.margins.left+k.x,c.y=e.margins.top+k.y,!(!J$1(T)&&!K(T))&&s.push({side:k.side,x:k.x,y:k.y,width:c.width,height:c.height,distTop:T.distTop??0,distBottom:T.distBottom??0,distLeft:T.distLeft??12,distRight:T.distRight??12,wrapText:T.wrapText,wrapType:T.wrapType});}let b$1=s.length>0?t(s,l):[],g$1=m.filter(b),u=m.filter(c=>!b(c));if(g$1.length>0){let c=q(g$1,o,{layerClass:"layout-floating-images-layer",itemClass:"layout-page-floating-image",sizing:"inset0",layerMode:"behind"});i.appendChild(c);}let E=c=>{if(c.kind!=="paragraph"||!n.blockLookup||!c.blockId)return;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind==="paragraph")return x.block.attrs?.borders},y,p=new Map,w=c=>!n.blockLookup||!c.blockId?[]:n.blockLookup.get(String(c.blockId))?.block.sdtGroups??[],I$1=(c,x)=>{if(x.length===0)return;let T=x[x.length-1];c.classList.add("layout-block-sdt"),c.dataset.sdtGroupId=T.id,c.dataset.sdtType=T.sdtType,c.dataset.sdtDepth=String(x.length),T.tag!=null&&(c.dataset.sdtTag=T.tag),T.alias!=null&&(c.dataset.sdtAlias=T.alias),T.lock!=null&&(c.dataset.sdtLock=T.lock);};for(let c=0;c<e.fragments.length;c++){let x=e.fragments[c],T,S={...t$1,section:"body",contentWidth:l},k=x.y-e.margins.top;if(n.blockLookup&&x.blockId){let f=n.blockLookup.get(String(x.blockId));if(x.kind==="paragraph"&&f?.block.kind==="paragraph"&&f?.measure.kind==="paragraph"){let h=f.block,R=c+1<e.fragments.length?E(e.fragments[c+1]):void 0,C=String(x.blockId),F=p.get(C);F||(F=new Set,p.set(C,F));let v=f.measure;b$1.length>0&&(v=z$1(h,l,{floatingZones:b$1,paragraphYOffset:k})),T=D(x,h,v,S,{document:o,prevBorders:y,nextBorders:R,renderedInlineImageKeys:F}),y=h.attrs?.borders;}else x.kind==="table"&&f?.block.kind==="table"&&f?.measure.kind==="table"?(T=Q(x,f.block,f.measure,S,{document:o}),y=void 0):x.kind==="image"&&f?.block.kind==="image"&&f?.measure.kind==="image"?(T=Z(x,f.block,f.measure,S,{document:o}),y=void 0):x.kind==="textBox"&&f?.block.kind==="textBox"&&f?.measure.kind==="textBox"?(T=ee(x,f.block,f.measure,S,{document:o}),y=void 0):(T=Fe(x,S,{document:o}),y=void 0);}else T=Fe(x,S,{document:o}),y=void 0;Sn(T,x,{left:e.margins.left,top:e.margins.top}),I$1(T,w(x)),i.appendChild(T);}if(tt(e,i,l,w,o),u.length>0){let c=q(u,o,{layerClass:"layout-floating-images-layer",itemClass:"layout-page-floating-image",sizing:"inset0",layerMode:"front"});i.appendChild(c);}if(e.columns&&e.columns.separator&&e.columns.count>1){let c=e.columns.count,x=e.columns.gap,T=(l-(c-1)*x)/c,S=e.size.h-e.margins.top-e.margins.bottom;for(let k=0;k<c-1;k++){let f=(k+1)*T+k*x+x/2,h=o.createElement("div");h.style.position="absolute",h.style.left=`${f}px`,h.style.top="0",h.style.height=`${S}px`,h.style.width="0.5px",h.style.backgroundColor="#000",h.style.pointerEvents="none",i.appendChild(h);}}if(n.footnoteArea&&n.footnoteArea.length>0){let c=bt(n.footnoteArea,l,t$1,o);c.style.position="absolute";let x=Math.max(e.footnoteReservedHeight??0,yt(n.footnoteArea)),T=e.size.h-e.margins.bottom-e.margins.top;c.style.top=`${Math.max(-e.margins.top,T-x)}px`,c.style.left="0",c.style.right="0",i.appendChild(c);}r.appendChild(i);{let x=n.headerDistance??e.margins.header??48,T=e.size.w-e.margins.left-e.margins.right,S=Math.max(e.margins.top-x,48),k=n.headerContent?.visualTop??0,f=n.headerContent?.visualBottom??n.headerContent?.height??0,h=Math.max(f-k,24),R=f>S,C=o.createElement("div");C.className=G.header,C.style.position="absolute",C.style.top=`${x+k}px`,C.style.left=`${e.margins.left}px`,C.style.right=`${e.margins.right}px`,C.style.width=`${T}px`,C.style.height=`${h}px`,C.style.minHeight=`${h}px`;let F=!R;if(n.headerContent&&n.headerContent.blocks.length>0){let v={flowTop:x,flowLeft:e.margins.left,contentWidth:T,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},L=Be(n.headerContent,{...t$1,section:"header",contentWidth:T},n,v);L.style.top=`${-k}px`,L.querySelector("img")&&(F=false),C.appendChild(L);}F&&(C.style.maxHeight=`${S}px`,C.style.overflow="hidden"),r.appendChild(C);}{let x=n.footerDistance??e.margins.footer??48,T=e.size.w-e.margins.left-e.margins.right,S=Math.max(e.margins.bottom-x,48),k=n.footerContent?.visualTop??0,f=n.footerContent?.visualBottom??n.footerContent?.height??0,h=Math.max(f-k,24),R=h>S,C=o.createElement("div");C.className=G.footer,C.style.position="absolute",C.style.top=`${e.size.h-x-h}px`,C.style.left=`${e.margins.left}px`,C.style.right=`${e.margins.right}px`,C.style.width=`${T}px`,C.style.height=`${h}px`,C.style.minHeight=`${h}px`;let F=!R;if(n.footerContent&&n.footerContent.blocks.length>0){let v={flowTop:e.size.h-x-(n.footerContent?.height??0),flowLeft:e.margins.left,contentWidth:T,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},L=Be(n.footerContent,{...t$1,section:"footer",contentWidth:T},n,v);L.style.top=`${-k}px`,L.querySelector("img")&&(F=false),C.appendChild(L);}F&&(C.style.maxHeight=`${S}px`,C.style.overflow="hidden"),r.appendChild(C);}return a&&n.pageBorders?.zOrder!=="back"&&r.appendChild(a),r}export{ht as A,gn as B,hn as C,G as D,le as E,Se as F,be as a,Me as b,nn as c,To as d,ye as e,an as f,sn as g,Fo as h,He as i,Io as j,Co as k,wn as l,Tn as m,U as n,Fe as o,nt as p,Z as q,dt as r,he as s,D as t,q as u,_ as v,Q as w,Ut as x,ee as y,Pe as z};
|