@eigenpal/docx-editor-core 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.mts +5 -4
- package/dist/agent/index.d.ts +5 -4
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/anchoredObjectPosition-CS-8BfhO.d.ts +48 -0
- package/dist/anchoredObjectPosition-KJEyF-wr.d.mts +48 -0
- package/dist/{chunk-U4WUDHDK.js → chunk-2SGJZYQF.js} +1 -1
- package/dist/chunk-3ANZ3252.mjs +2 -0
- package/dist/chunk-3G44SFHX.mjs +4 -0
- package/dist/{chunk-4QEETB7U.js → chunk-3QPKTG2Y.js} +2 -2
- package/dist/chunk-3R7QHNI5.js +2 -0
- package/dist/chunk-4GFTMGSV.mjs +1 -0
- package/dist/chunk-4MYKVWNF.js +1 -0
- package/dist/chunk-4RTVLMRZ.js +2 -0
- package/dist/chunk-55XWETY4.mjs +1 -0
- package/dist/chunk-6QO4O52Y.mjs +1 -0
- package/dist/{chunk-THLJYXFB.js → chunk-6V3SFHEM.js} +1 -1
- package/dist/{chunk-6ZXL3EIP.mjs → chunk-7CZEZ3UL.mjs} +1 -1
- package/dist/{chunk-Z5MJYQSD.mjs → chunk-7UZJ5YDF.mjs} +1 -1
- package/dist/{chunk-BXWOLARZ.js → chunk-APNMO5JT.js} +1 -1
- package/dist/{chunk-KZXZWGFX.mjs → chunk-B46V5G46.mjs} +1 -1
- package/dist/chunk-BH3ACQ3M.js +59 -0
- package/dist/chunk-BUCOTKYY.js +1 -0
- package/dist/{chunk-5BLQHXWK.mjs → chunk-CDXCFHOY.mjs} +1 -1
- package/dist/chunk-CHN26LLL.mjs +59 -0
- package/dist/chunk-CZSAC65M.js +2 -0
- package/dist/chunk-D3PRIF3Y.mjs +1 -0
- package/dist/chunk-DE2V4X3B.mjs +1 -0
- package/dist/{chunk-7BVHKWEW.mjs → chunk-DFUWJHKF.mjs} +1 -1
- package/dist/{chunk-UGV4KRQB.js → chunk-DG2CMDSM.js} +1 -1
- package/dist/chunk-DKKTY56Q.js +1 -0
- package/dist/chunk-FIGLFSNR.js +1 -0
- package/dist/{chunk-AMB6Y77B.js → chunk-FQS436KN.js} +1 -1
- package/dist/chunk-FYRJTDC4.mjs +2 -0
- package/dist/chunk-GYWTUUXX.mjs +2 -0
- package/dist/chunk-HPJBZL37.mjs +1 -0
- package/dist/chunk-INDYZOOS.js +1 -0
- package/dist/chunk-IUVQJ6PX.mjs +1 -0
- package/dist/chunk-J3YFJDZD.js +1 -0
- package/dist/chunk-JHTURDPX.mjs +1 -0
- package/dist/{chunk-D62KS7QG.mjs → chunk-LAJPGQEE.mjs} +1 -1
- package/dist/chunk-LERLET2D.js +4 -0
- package/dist/chunk-LX35TFGF.mjs +1 -0
- package/dist/{chunk-BOOHU5EW.mjs → chunk-MOCGHQ4A.mjs} +1 -1
- package/dist/chunk-NAFMAKLK.js +2 -0
- package/dist/chunk-NRWQ65NX.js +1 -0
- package/dist/chunk-OTHV7YV2.js +2 -0
- package/dist/chunk-QLAIOTQB.js +1 -0
- package/dist/{chunk-U4XMGWF7.js → chunk-RAWVGULQ.js} +1 -1
- package/dist/chunk-RQVHKDXK.js +2 -0
- package/dist/chunk-RSU4HTC6.js +1 -0
- package/dist/{chunk-E4JMCA5X.js → chunk-SCK6ZM5V.js} +2 -2
- package/dist/chunk-SWBLJF6R.mjs +2 -0
- package/dist/chunk-UE2ZKRYB.mjs +2 -0
- package/dist/chunk-VOCHZNOF.mjs +1 -0
- package/dist/{chunk-OEXVWIHW.mjs → chunk-W77JXDEV.mjs} +1 -1
- package/dist/chunk-W7CQRQZ6.mjs +1 -0
- package/dist/chunk-WWBNJ7KF.js +1 -0
- package/dist/chunk-WWNOXNEX.mjs +2 -0
- package/dist/chunk-YGWUKRFD.mjs +1 -0
- package/dist/chunk-YM7SMTYY.js +1 -0
- package/dist/{chunk-QKLY4F2J.mjs → chunk-YNUPP7UG.mjs} +1 -1
- package/dist/chunk-YPKIQMPR.js +1 -0
- package/dist/{chunk-HQPWFUP5.js → chunk-Z3LGMBJC.js} +1 -1
- package/dist/{colorResolver-BZ_yScf4.d.ts → colorResolver-8A-qj-LP.d.ts} +1 -1
- package/dist/{colorResolver-C6DtsoFI.d.mts → colorResolver-BCvxTlLF.d.mts} +1 -1
- package/dist/{content-CE-ZdMwG.d.mts → content-3xF4WDE8.d.mts} +51 -7
- package/dist/{content-CYXJ2tfQ.d.ts → content-C8fc_tL6.d.ts} +51 -7
- package/dist/{contentControlValues-gyVPsi6m.d.ts → contentControlValues-DGDKD589.d.ts} +1 -1
- package/dist/{contentControlValues-DAwTWfgR.d.mts → contentControlValues-DjWvoJQ-.d.mts} +1 -1
- package/dist/core-plugins.d.mts +6 -5
- package/dist/core-plugins.d.ts +6 -5
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +12 -11
- package/dist/core.d.ts +12 -11
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentStyles-DToJv9co.d.ts → documentStyles-C7k_8Sye.d.ts} +1 -1
- package/dist/{documentStyles-D87dxl18.d.mts → documentStyles-qR0VR2s0.d.mts} +1 -1
- package/dist/docx/index.d.mts +3 -2
- package/dist/docx/index.d.ts +3 -2
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +3 -2
- package/dist/docx/parser.d.ts +3 -2
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +3 -2
- package/dist/docx/rezip.d.ts +3 -2
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +42 -4
- package/dist/docx/serializer/index.d.ts +42 -4
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/editor/index.d.mts +128 -0
- package/dist/editor/index.d.ts +128 -0
- package/dist/editor/index.js +1 -0
- package/dist/editor/index.mjs +1 -0
- package/dist/{fontLoader-Z7pqeNvZ.d.mts → fontLoader-CUS1BPv7.d.mts} +1 -1
- package/dist/{fontLoader-Cm02v7PO.d.ts → fontLoader-Dl9SEKex.d.ts} +1 -1
- package/dist/{footnotes-lCH_P3N3.d.mts → footnotes-BZ24OTAT.d.mts} +25 -2
- package/dist/{footnotes-skVvEHvZ.d.ts → footnotes-DMsicPGd.d.ts} +25 -2
- package/dist/{headerFooterLayout-Bd58Tum3.d.ts → headerFooterLayout-AtAOhM8E.d.ts} +22 -6
- package/dist/{headerFooterLayout-CuIJiIzi.d.mts → headerFooterLayout-CU6hvszp.d.mts} +22 -6
- package/dist/headless.d.mts +47 -11
- package/dist/headless.d.ts +47 -11
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/clickToPositionDom.d.mts +26 -1
- package/dist/layout-bridge/clickToPositionDom.d.ts +26 -1
- package/dist/layout-bridge/clickToPositionDom.js +1 -1
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +134 -8
- package/dist/layout-bridge/index.d.ts +134 -8
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +7 -75
- package/dist/layout-bridge/measuring/index.d.ts +7 -75
- 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 +3 -2
- package/dist/layout-bridge/toFlowBlocks.d.ts +3 -2
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +16 -3
- package/dist/layout-engine/index.d.ts +16 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +22 -1
- package/dist/layout-engine/types.d.ts +22 -1
- package/dist/layout-painter/index.d.mts +7 -5
- package/dist/layout-painter/index.d.ts +7 -5
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +15 -6
- package/dist/layout-painter/renderPage.d.ts +15 -6
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/managers/AutoSaveManager.d.mts +3 -2
- package/dist/managers/AutoSaveManager.d.ts +3 -2
- package/dist/managers/TableSelectionManager.d.mts +3 -2
- package/dist/managers/TableSelectionManager.d.ts +3 -2
- package/dist/managers/types.d.mts +3 -2
- package/dist/managers/types.d.ts +3 -2
- 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 +2 -2
- package/dist/measureBlocksPipeline-BMqbRFQB.d.mts +96 -0
- package/dist/measureBlocksPipeline-iYNzAH-o.d.ts +96 -0
- package/dist/{nodes-BNkRKBBX.d.ts → nodes-75Q9GBxV.d.ts} +1 -1
- package/dist/{nodes-Bz-UHhLE.d.mts → nodes-cEI7hVY2.d.mts} +1 -1
- package/dist/prosemirror/applyFormatting.d.mts +67 -0
- package/dist/prosemirror/applyFormatting.d.ts +67 -0
- package/dist/prosemirror/applyFormatting.js +1 -0
- package/dist/prosemirror/applyFormatting.mjs +1 -0
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +20 -1
- package/dist/prosemirror/commands/index.d.ts +20 -1
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/commentIdAllocator.d.mts +50 -0
- package/dist/prosemirror/commentIdAllocator.d.ts +50 -0
- package/dist/prosemirror/commentIdAllocator.js +1 -0
- package/dist/prosemirror/commentIdAllocator.mjs +1 -0
- package/dist/prosemirror/commentOps.d.mts +46 -0
- package/dist/prosemirror/commentOps.d.ts +46 -0
- package/dist/prosemirror/commentOps.js +1 -0
- package/dist/prosemirror/commentOps.mjs +1 -0
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +3 -2
- package/dist/prosemirror/conversion/index.d.ts +3 -2
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +12 -2
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/imageCommit.d.mts +35 -0
- package/dist/prosemirror/imageCommit.d.ts +35 -0
- package/dist/prosemirror/imageCommit.js +1 -0
- package/dist/prosemirror/imageCommit.mjs +1 -0
- package/dist/prosemirror/index.d.mts +6 -5
- package/dist/prosemirror/index.d.ts +6 -5
- package/dist/prosemirror/index.js +2 -2
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/paraText.d.mts +52 -0
- package/dist/prosemirror/paraText.d.ts +52 -0
- package/dist/prosemirror/paraText.js +1 -0
- package/dist/prosemirror/paraText.mjs +1 -0
- package/dist/prosemirror/plugins/index.d.mts +4 -3
- package/dist/prosemirror/plugins/index.d.ts +4 -3
- package/dist/prosemirror/queries.d.mts +65 -0
- package/dist/prosemirror/queries.d.ts +65 -0
- package/dist/prosemirror/queries.js +2 -0
- package/dist/prosemirror/queries.mjs +2 -0
- package/dist/prosemirror/schema/index.d.mts +3 -2
- package/dist/prosemirror/schema/index.d.ts +3 -2
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +1 -1
- package/dist/prosemirror/styles/index.d.ts +1 -1
- package/dist/prosemirror/tableResize.d.mts +58 -0
- package/dist/prosemirror/tableResize.d.ts +58 -0
- package/dist/prosemirror/tableResize.js +1 -0
- package/dist/prosemirror/tableResize.mjs +1 -0
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -1
- package/dist/{registry-Cpyybgij.d.mts → registry-NLnxX7pq.d.mts} +1 -1
- package/dist/{registry-E5pahPKL.d.ts → registry-egK81C_z.d.ts} +1 -1
- package/dist/sectionPropertiesSerializer-D86QlzlT.d.mts +59 -0
- package/dist/sectionPropertiesSerializer-uXyGONxu.d.ts +59 -0
- package/dist/{styles-EI2lxeEN.d.mts → styles-BOJ93SAm.d.mts} +1 -1
- package/dist/{styles-BBv7doYK.d.ts → styles-BWqX2AS-.d.ts} +1 -1
- package/dist/types/content.d.mts +2 -1
- package/dist/types/content.d.ts +2 -1
- package/dist/types/content.js +1 -1
- package/dist/types/content.mjs +1 -0
- package/dist/types/document.d.mts +17 -6
- package/dist/types/document.d.ts +17 -6
- package/dist/types/document.js +1 -1
- package/dist/types/document.mjs +1 -0
- package/dist/{types-DXG7vqe9.d.ts → types-DDQWU7-j.d.ts} +1 -1
- package/dist/{types-dYdjUZMo.d.mts → types-DTF0N7UE.d.mts} +1 -1
- package/dist/utils/autoScroll.d.mts +24 -0
- package/dist/utils/autoScroll.d.ts +24 -0
- package/dist/utils/autoScroll.js +1 -0
- package/dist/utils/autoScroll.mjs +1 -0
- package/dist/utils/comments.d.mts +2 -1
- package/dist/utils/comments.d.ts +2 -1
- package/dist/utils/index.d.mts +5 -4
- package/dist/utils/index.d.ts +5 -4
- package/dist/{variableDetector-HPZbJ_gw.d.ts → variableDetector-1mxzPfs2.d.ts} +1 -1
- package/dist/{variableDetector-C7BLz9sJ.d.mts → variableDetector-CaY-sDau.d.mts} +1 -1
- package/dist/watermark-DAcnAs_J.d.mts +77 -0
- package/dist/watermark-DAcnAs_J.d.ts +77 -0
- package/package.json +73 -1
- package/dist/chunk-2EQGBVPV.js +0 -2
- package/dist/chunk-44FHVKSI.js +0 -1
- package/dist/chunk-44JKHPGF.mjs +0 -2
- package/dist/chunk-5M7TI6TV.js +0 -1
- package/dist/chunk-6Y6LON6Y.mjs +0 -1
- package/dist/chunk-7RDCZLTU.js +0 -1
- package/dist/chunk-7ZN4WI5N.mjs +0 -4
- package/dist/chunk-CCPBNE2F.mjs +0 -2
- package/dist/chunk-DV6GWBUJ.js +0 -2
- package/dist/chunk-EQAORQC3.mjs +0 -1
- package/dist/chunk-FYKRDDKG.js +0 -1
- package/dist/chunk-GUQFNJHE.mjs +0 -1
- package/dist/chunk-ICE6NC3S.mjs +0 -1
- package/dist/chunk-IFUED5ZS.mjs +0 -1
- package/dist/chunk-KGTEBLB6.js +0 -1
- package/dist/chunk-KRN6YSR2.mjs +0 -1
- package/dist/chunk-L72YAV5N.js +0 -3
- package/dist/chunk-LTHT4A4S.js +0 -1
- package/dist/chunk-MERJFGEP.mjs +0 -59
- package/dist/chunk-MP4QSEO2.mjs +0 -1
- package/dist/chunk-PVAVS3IU.js +0 -1
- package/dist/chunk-QYF7BRG3.js +0 -2
- package/dist/chunk-RKDVY7I3.mjs +0 -1
- package/dist/chunk-ROG4MNOR.js +0 -4
- package/dist/chunk-SORYYVJ7.js +0 -1
- package/dist/chunk-SZIOF5SG.js +0 -59
- package/dist/chunk-VMRUBLPI.js +0 -1
- package/dist/chunk-WKUHYMDO.mjs +0 -1
- package/dist/chunk-WLDI6N3B.mjs +0 -3
- package/dist/chunk-WLHNIXWC.mjs +0 -2
- package/dist/chunk-YMZ3F2FZ.mjs +0 -1
- package/dist/chunk-ZBFNOJGY.js +0 -1
- package/dist/documentSerializer-Bghq9rFI.d.mts +0 -36
- package/dist/documentSerializer-C4lFC60P.d.ts +0 -36
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkLERLET2D_js=require('./chunk-LERLET2D.js'),chunkFIGLFSNR_js=require('./chunk-FIGLFSNR.js'),chunkMNOHUTKE_js=require('./chunk-MNOHUTKE.js'),chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js'),chunk3R7QHNI5_js=require('./chunk-3R7QHNI5.js'),chunkGSKMHXHG_js=require('./chunk-GSKMHXHG.js'),Ue=require('jszip');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Ue__default=/*#__PURE__*/_interopDefault(Ue);async function Y(e){let n=await Ue__default.default.loadAsync(e),t={documentXml:null,stylesXml:null,themeXml:null,numberingXml:null,fontTableXml:null,settingsXml:null,webSettingsXml:null,headers:new Map,footers:new Map,footnotesXml:null,endnotesXml:null,commentsXml:null,commentsExtensibleXml:null,commentsExtendedXml:null,documentRels:null,packageRels:null,contentTypesXml:null,corePropsXml:null,appPropsXml:null,customPropsXml:null,media:new Map,fonts:new Map,allXml:new Map,originalZip:n,originalBuffer:e};for(let[o,s]of Object.entries(n.files)){if(s.dir)continue;let r=o.toLowerCase();if(r.endsWith(".xml")||r.endsWith(".rels")){let a=await s.async("text");if(t.allXml.set(o,a),r==="word/document.xml")t.documentXml=a;else if(r==="word/styles.xml")t.stylesXml=a;else if(r==="word/theme/theme1.xml")t.themeXml=a;else if(r==="word/numbering.xml")t.numberingXml=a;else if(r==="word/fonttable.xml")t.fontTableXml=a;else if(r==="word/settings.xml")t.settingsXml=a;else if(r==="word/websettings.xml")t.webSettingsXml=a;else if(r==="word/footnotes.xml")t.footnotesXml=a;else if(r==="word/endnotes.xml")t.endnotesXml=a;else if(r==="word/comments.xml")t.commentsXml=a;else if(r==="word/commentsextensible.xml")t.commentsExtensibleXml=a;else if(r==="word/commentsextended.xml")t.commentsExtendedXml=a;else if(r==="word/_rels/document.xml.rels")t.documentRels=a;else if(r==="_rels/.rels")t.packageRels=a;else if(r==="[content_types].xml")t.contentTypesXml=a;else if(r==="docprops/core.xml")t.corePropsXml=a;else if(r==="docprops/app.xml")t.appPropsXml=a;else if(r==="docprops/custom.xml")t.customPropsXml=a;else if(r.match(/^word\/header\d+\.xml$/)){let c=o.split("/").pop()||o;t.headers.set(c,a);}else if(r.match(/^word\/footer\d+\.xml$/)){let c=o.split("/").pop()||o;t.footers.set(c,a);}}else if(r.startsWith("word/media/")){let a=await s.async("arraybuffer");t.media.set(o,a);}else if(r.startsWith("word/fonts/")){let a=await s.async("arraybuffer");t.fonts.set(o,a);}}return t}function Me(e){switch(e.toLowerCase().split(".").pop()){case "png":return "image/png";case "jpg":case "jpeg":return "image/jpeg";case "gif":return "image/gif";case "bmp":return "image/bmp";case "tif":case "tiff":return "image/tiff";case "wmf":return "image/x-wmf";case "emf":return "image/x-emf";case "svg":return "image/svg+xml";case "webp":return "image/webp";default:return "application/octet-stream"}}function K(e,n,t,o){let s={};return e&&e!=="auto"?s.rgb=e:e==="auto"&&(s.auto=true),n&&(s.themeColor=n),t&&(s.themeTint=t),o&&(s.themeShade=o),s}function $(e){if(!e)return;let n={},t=chunk3R7QHNI5_js.j(e,"w","color");t&&t!=="auto"&&(n.color={rgb:t});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(n.fill={rgb:o});let s=chunk3R7QHNI5_js.j(e,"w","themeFill");s&&(n.fill=n.fill||{},n.fill.themeColor=s);let r=chunk3R7QHNI5_js.j(e,"w","themeFillTint");r&&n.fill&&(n.fill.themeTint=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillShade");a&&n.fill&&(n.fill.themeShade=a);let c=chunk3R7QHNI5_js.j(e,"w","val");return c&&(n.pattern=c),Object.keys(n).length>0?n:void 0}function Z(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","b");o&&(t.bold=chunk3R7QHNI5_js.m(o));let s=chunk3R7QHNI5_js.e(e,"w","bCs");s&&(t.boldCs=chunk3R7QHNI5_js.m(s));let r=chunk3R7QHNI5_js.e(e,"w","i");r&&(t.italic=chunk3R7QHNI5_js.m(r));let a=chunk3R7QHNI5_js.e(e,"w","iCs");a&&(t.italicCs=chunk3R7QHNI5_js.m(a));let c=chunk3R7QHNI5_js.e(e,"w","u");if(c){let h=chunk3R7QHNI5_js.j(c,"w","val");if(h){t.underline={style:h};let T=chunk3R7QHNI5_js.j(c,"w","color"),L=chunk3R7QHNI5_js.j(c,"w","themeColor");(T||L)&&(t.underline.color=K(T,L,chunk3R7QHNI5_js.j(c,"w","themeTint"),chunk3R7QHNI5_js.j(c,"w","themeShade")));}}let d=chunk3R7QHNI5_js.e(e,"w","strike");d&&(t.strike=chunk3R7QHNI5_js.m(d));let u=chunk3R7QHNI5_js.e(e,"w","dstrike");u&&(t.doubleStrike=chunk3R7QHNI5_js.m(u));let m=chunk3R7QHNI5_js.e(e,"w","vertAlign");if(m){let h=chunk3R7QHNI5_js.j(m,"w","val");(h==="superscript"||h==="subscript"||h==="baseline")&&(t.vertAlign=h);}let g=chunk3R7QHNI5_js.e(e,"w","smallCaps");g&&(t.smallCaps=chunk3R7QHNI5_js.m(g));let p=chunk3R7QHNI5_js.e(e,"w","caps");p&&(t.allCaps=chunk3R7QHNI5_js.m(p));let S=chunk3R7QHNI5_js.e(e,"w","vanish");S&&(t.hidden=chunk3R7QHNI5_js.m(S));let f=chunk3R7QHNI5_js.e(e,"w","color");f&&(t.color=K(chunk3R7QHNI5_js.j(f,"w","val"),chunk3R7QHNI5_js.j(f,"w","themeColor"),chunk3R7QHNI5_js.j(f,"w","themeTint"),chunk3R7QHNI5_js.j(f,"w","themeShade")));let b=chunk3R7QHNI5_js.e(e,"w","highlight");if(b){let h=chunk3R7QHNI5_js.j(b,"w","val");h&&(t.highlight=h);}let C=chunk3R7QHNI5_js.e(e,"w","shd");C&&(t.shading=$(C));let D=chunk3R7QHNI5_js.e(e,"w","sz");if(D){let h=chunk3R7QHNI5_js.l(D,"w","val");h!==void 0&&(t.fontSize=h);}let I=chunk3R7QHNI5_js.e(e,"w","szCs");if(I){let h=chunk3R7QHNI5_js.l(I,"w","val");h!==void 0&&(t.fontSizeCs=h);}let P=chunk3R7QHNI5_js.e(e,"w","rFonts");if(P){t.fontFamily={ascii:chunk3R7QHNI5_js.j(P,"w","ascii")??void 0,hAnsi:chunk3R7QHNI5_js.j(P,"w","hAnsi")??void 0,eastAsia:chunk3R7QHNI5_js.j(P,"w","eastAsia")??void 0,cs:chunk3R7QHNI5_js.j(P,"w","cs")??void 0};let h=chunk3R7QHNI5_js.j(P,"w","asciiTheme");h&&(t.fontFamily.asciiTheme=h,n&&!t.fontFamily.ascii&&(t.fontFamily.ascii=chunkLERLET2D_js.b(n,h)));let T=chunk3R7QHNI5_js.j(P,"w","hAnsiTheme");T&&(t.fontFamily.hAnsiTheme=T,n&&!t.fontFamily.hAnsi&&(t.fontFamily.hAnsi=chunkLERLET2D_js.b(n,T)));let L=chunk3R7QHNI5_js.j(P,"w","eastAsiaTheme");L&&(t.fontFamily.eastAsiaTheme=L,n&&!t.fontFamily.eastAsia&&(t.fontFamily.eastAsia=chunkLERLET2D_js.b(n,L)));let U=chunk3R7QHNI5_js.j(P,"w","cstheme");U&&(t.fontFamily.csTheme=U,n&&!t.fontFamily.cs&&(t.fontFamily.cs=chunkLERLET2D_js.b(n,U)));}let N=chunk3R7QHNI5_js.e(e,"w","spacing");if(N){let h=chunk3R7QHNI5_js.l(N,"w","val");h!==void 0&&(t.spacing=h);}let y=chunk3R7QHNI5_js.e(e,"w","position");if(y){let h=chunk3R7QHNI5_js.l(y,"w","val");h!==void 0&&(t.position=h);}let x=chunk3R7QHNI5_js.e(e,"w","w");if(x){let h=chunk3R7QHNI5_js.l(x,"w","val");h!==void 0&&(t.scale=h);}let F=chunk3R7QHNI5_js.e(e,"w","kern");if(F){let h=chunk3R7QHNI5_js.l(F,"w","val");h!==void 0&&(t.kerning=h);}let X=chunk3R7QHNI5_js.e(e,"w","effect");if(X){let h=chunk3R7QHNI5_js.j(X,"w","val");h&&(t.effect=h);}let A=chunk3R7QHNI5_js.e(e,"w","em");if(A){let h=chunk3R7QHNI5_js.j(A,"w","val");h&&(t.emphasisMark=h);}let M=chunk3R7QHNI5_js.e(e,"w","emboss");M&&(t.emboss=chunk3R7QHNI5_js.m(M));let E=chunk3R7QHNI5_js.e(e,"w","imprint");E&&(t.imprint=chunk3R7QHNI5_js.m(E));let V=chunk3R7QHNI5_js.e(e,"w","outline");V&&(t.outline=chunk3R7QHNI5_js.m(V));let H=chunk3R7QHNI5_js.e(e,"w","shadow");H&&(t.shadow=chunk3R7QHNI5_js.m(H));let B=chunk3R7QHNI5_js.e(e,"w","rtl");B&&(t.rtl=chunk3R7QHNI5_js.m(B));let j=chunk3R7QHNI5_js.e(e,"w","cs");j&&(t.cs=chunk3R7QHNI5_js.m(j));let _=chunk3R7QHNI5_js.e(e,"w","rStyle");if(_){let h=chunk3R7QHNI5_js.j(_,"w","val");h&&(t.styleId=h);}return Object.keys(t).length>0?t:void 0}function k(e){if(!e)return;let n=chunk3R7QHNI5_js.j(e,"w","val");if(!n)return;let t={style:n},o=chunk3R7QHNI5_js.j(e,"w","color"),s=chunk3R7QHNI5_js.j(e,"w","themeColor");(o||s)&&(t.color=K(o,s,chunk3R7QHNI5_js.j(e,"w","themeTint"),chunk3R7QHNI5_js.j(e,"w","themeShade")));let r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(t.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(t.space=a);let c=chunk3R7QHNI5_js.j(e,"w","shadow");c&&(t.shadow=c==="1"||c==="true");let d=chunk3R7QHNI5_js.j(e,"w","frame");return d&&(t.frame=d==="1"||d==="true"),t}function We(e){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tab");if(n.length===0)return;let t=[];for(let o of n){let s=chunk3R7QHNI5_js.l(o,"w","pos"),r=chunk3R7QHNI5_js.j(o,"w","val");if(s!==void 0&&r){let a={position:s,alignment:r},c=chunk3R7QHNI5_js.j(o,"w","leader");c&&(a.leader=c),t.push(a);}}return t.length>0?t:void 0}function ee(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","jc");if(o){let y=chunk3R7QHNI5_js.j(o,"w","val");y&&(t.alignment=y);}let s=chunk3R7QHNI5_js.e(e,"w","bidi");s&&(t.bidi=chunk3R7QHNI5_js.m(s));let r=chunk3R7QHNI5_js.e(e,"w","spacing");if(r){let y=chunk3R7QHNI5_js.l(r,"w","before");y!==void 0&&(t.spaceBefore=y);let x=chunk3R7QHNI5_js.l(r,"w","after");x!==void 0&&(t.spaceAfter=x);let F=chunk3R7QHNI5_js.l(r,"w","line");F!==void 0&&(t.lineSpacing=F);let X=chunk3R7QHNI5_js.j(r,"w","lineRule");X&&(t.lineSpacingRule=X);let A=chunk3R7QHNI5_js.j(r,"w","beforeAutospacing");A&&(t.beforeAutospacing=A==="1"||A==="true");let M=chunk3R7QHNI5_js.j(r,"w","afterAutospacing");M&&(t.afterAutospacing=M==="1"||M==="true");}let a=chunk3R7QHNI5_js.e(e,"w","ind");if(a){let y=chunk3R7QHNI5_js.l(a,"w","left");y!==void 0&&(t.indentLeft=y);let x=chunk3R7QHNI5_js.l(a,"w","right");x!==void 0&&(t.indentRight=x);let F=chunk3R7QHNI5_js.l(a,"w","firstLine");F!==void 0&&(t.indentFirstLine=F);let X=chunk3R7QHNI5_js.l(a,"w","hanging");X!==void 0&&(t.indentFirstLine=-X,t.hangingIndent=true);}let c=chunk3R7QHNI5_js.e(e,"w","pBdr");if(c){let y={},x=k(chunk3R7QHNI5_js.e(c,"w","top"));x&&(y.top=x);let F=k(chunk3R7QHNI5_js.e(c,"w","bottom"));F&&(y.bottom=F);let X=k(chunk3R7QHNI5_js.e(c,"w","left"));X&&(y.left=X);let A=k(chunk3R7QHNI5_js.e(c,"w","right"));A&&(y.right=A);let M=k(chunk3R7QHNI5_js.e(c,"w","between"));M&&(y.between=M);let E=k(chunk3R7QHNI5_js.e(c,"w","bar"));E&&(y.bar=E),Object.keys(y).length>0&&(t.borders=y);}let d=chunk3R7QHNI5_js.e(e,"w","shd");d&&(t.shading=$(d));let u=chunk3R7QHNI5_js.e(e,"w","tabs");u&&(t.tabs=We(u));let m=chunk3R7QHNI5_js.e(e,"w","keepNext");m&&(t.keepNext=chunk3R7QHNI5_js.m(m));let g=chunk3R7QHNI5_js.e(e,"w","keepLines");g&&(t.keepLines=chunk3R7QHNI5_js.m(g));let p=chunk3R7QHNI5_js.e(e,"w","widowControl");p&&(t.widowControl=chunk3R7QHNI5_js.m(p));let S=chunk3R7QHNI5_js.e(e,"w","pageBreakBefore");S&&(t.pageBreakBefore=chunk3R7QHNI5_js.m(S));let f=chunk3R7QHNI5_js.e(e,"w","contextualSpacing");f&&(t.contextualSpacing=chunk3R7QHNI5_js.m(f));let b=chunk3R7QHNI5_js.e(e,"w","numPr");if(b){let y=chunk3R7QHNI5_js.e(b,"w","numId"),x=chunk3R7QHNI5_js.e(b,"w","ilvl");if(y||x){if(t.numPr={},y){let F=chunk3R7QHNI5_js.l(y,"w","val");F!==void 0&&(t.numPr.numId=F);}if(x){let F=chunk3R7QHNI5_js.l(x,"w","val");F!==void 0&&(t.numPr.ilvl=F);}}}let C=chunk3R7QHNI5_js.e(e,"w","outlineLvl");if(C){let y=chunk3R7QHNI5_js.l(C,"w","val");y!==void 0&&(t.outlineLevel=y);}let D=chunk3R7QHNI5_js.e(e,"w","pStyle");if(D){let y=chunk3R7QHNI5_js.j(D,"w","val");y&&(t.styleId=y);}let I=chunk3R7QHNI5_js.e(e,"w","suppressLineNumbers");I&&(t.suppressLineNumbers=chunk3R7QHNI5_js.m(I));let P=chunk3R7QHNI5_js.e(e,"w","suppressAutoHyphens");P&&(t.suppressAutoHyphens=chunk3R7QHNI5_js.m(P));let N=chunk3R7QHNI5_js.e(e,"w","rPr");return N&&(t.runProperties=Z(N,n)),Object.keys(t).length>0?t:void 0}function O(e){if(!e)return;let n=chunk3R7QHNI5_js.l(e,"w","w"),t=chunk3R7QHNI5_js.j(e,"w","type");if(n!==void 0&&t)return {value:n,type:t}}function De(e){if(!e)return;let n={},t=k(chunk3R7QHNI5_js.e(e,"w","top"));t&&(n.top=t);let o=k(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(n.bottom=o);let s=k(chunk3R7QHNI5_js.e(e,"w","left"));s&&(n.left=s);let r=k(chunk3R7QHNI5_js.e(e,"w","right"));r&&(n.right=r);let a=k(chunk3R7QHNI5_js.e(e,"w","insideH"));a&&(n.insideH=a);let c=k(chunk3R7QHNI5_js.e(e,"w","insideV"));return c&&(n.insideV=c),Object.keys(n).length>0?n:void 0}function Xe(e){if(!e)return;let n={},t=O(chunk3R7QHNI5_js.e(e,"w","top"));t&&(n.top=t);let o=O(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(n.bottom=o);let s=O(chunk3R7QHNI5_js.e(e,"w","left"));s&&(n.left=s);let r=O(chunk3R7QHNI5_js.e(e,"w","right"));return r&&(n.right=r),Object.keys(n).length>0?n:void 0}function ze(e){if(!e)return;let n={},t=chunk3R7QHNI5_js.j(e,"w","val");if(t){let u=parseInt(t,16);isNaN(u)||(n.firstRow=(u&32)!==0,n.lastRow=(u&64)!==0,n.firstColumn=(u&128)!==0,n.lastColumn=(u&256)!==0,n.noHBand=(u&512)!==0,n.noVBand=(u&1024)!==0);}let o=chunk3R7QHNI5_js.j(e,"w","firstColumn");o&&(n.firstColumn=o==="1");let s=chunk3R7QHNI5_js.j(e,"w","firstRow");s&&(n.firstRow=s==="1");let r=chunk3R7QHNI5_js.j(e,"w","lastColumn");r&&(n.lastColumn=r==="1");let a=chunk3R7QHNI5_js.j(e,"w","lastRow");a&&(n.lastRow=a==="1");let c=chunk3R7QHNI5_js.j(e,"w","noHBand");c&&(n.noHBand=c==="1");let d=chunk3R7QHNI5_js.j(e,"w","noVBand");return d&&(n.noVBand=d==="1"),Object.keys(n).length>0?n:void 0}function le(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","tblW");o&&(t.width=O(o));let s=chunk3R7QHNI5_js.e(e,"w","jc");if(s){let f=chunk3R7QHNI5_js.j(s,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}let r=chunk3R7QHNI5_js.e(e,"w","tblCellSpacing");r&&(t.cellSpacing=O(r));let a=chunk3R7QHNI5_js.e(e,"w","tblInd");a&&(t.indent=O(a));let c=chunk3R7QHNI5_js.e(e,"w","tblBorders");c&&(t.borders=De(c));let d=chunk3R7QHNI5_js.e(e,"w","tblCellMar");d&&(t.cellMargins=Xe(d));let u=chunk3R7QHNI5_js.e(e,"w","tblLayout");if(u){let f=chunk3R7QHNI5_js.j(u,"w","type");(f==="fixed"||f==="autofit")&&(t.layout=f);}let m=chunk3R7QHNI5_js.e(e,"w","tblStyle");if(m){let f=chunk3R7QHNI5_js.j(m,"w","val");f&&(t.styleId=f);}let g=chunk3R7QHNI5_js.e(e,"w","tblLook");g&&(t.look=ze(g));let p=chunk3R7QHNI5_js.e(e,"w","shd");p&&(t.shading=$(p));let S=chunk3R7QHNI5_js.e(e,"w","bidiVisual");return S&&(t.bidi=chunk3R7QHNI5_js.m(S)),Object.keys(t).length>0?t:void 0}function ce(e){if(!e)return;let n={},t=chunk3R7QHNI5_js.e(e,"w","trHeight");if(t){n.height=O(t);let c=chunk3R7QHNI5_js.j(t,"w","hRule");c&&(n.heightRule=c);}let o=chunk3R7QHNI5_js.e(e,"w","tblHeader");o&&(n.header=chunk3R7QHNI5_js.m(o));let s=chunk3R7QHNI5_js.e(e,"w","cantSplit");s&&(n.cantSplit=chunk3R7QHNI5_js.m(s));let r=chunk3R7QHNI5_js.e(e,"w","jc");if(r){let c=chunk3R7QHNI5_js.j(r,"w","val");(c==="left"||c==="center"||c==="right")&&(n.justification=c);}let a=chunk3R7QHNI5_js.e(e,"w","hidden");return a&&(n.hidden=chunk3R7QHNI5_js.m(a)),Object.keys(n).length>0?n:void 0}function fe(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","tcW");o&&(t.width=O(o));let s=chunk3R7QHNI5_js.e(e,"w","tcBorders");s&&(t.borders=De(s));let r=chunk3R7QHNI5_js.e(e,"w","tcMar");r&&(t.margins=Xe(r));let a=chunk3R7QHNI5_js.e(e,"w","shd");a&&(t.shading=$(a));let c=chunk3R7QHNI5_js.e(e,"w","vAlign");if(c){let f=chunk3R7QHNI5_js.j(c,"w","val");(f==="top"||f==="center"||f==="bottom")&&(t.verticalAlign=f);}let d=chunk3R7QHNI5_js.e(e,"w","textDirection");if(d){let f=chunk3R7QHNI5_js.j(d,"w","val");f&&(t.textDirection=f);}let u=chunk3R7QHNI5_js.e(e,"w","gridSpan");if(u){let f=chunk3R7QHNI5_js.l(u,"w","val");f!==void 0&&(t.gridSpan=f);}let m=chunk3R7QHNI5_js.e(e,"w","vMerge");if(m){let f=chunk3R7QHNI5_js.j(m,"w","val");t.vMerge=f==="restart"?"restart":"continue";}let g=chunk3R7QHNI5_js.e(e,"w","tcFitText");g&&(t.fitText=chunk3R7QHNI5_js.m(g));let p=chunk3R7QHNI5_js.e(e,"w","noWrap");p&&(t.noWrap=chunk3R7QHNI5_js.m(p));let S=chunk3R7QHNI5_js.e(e,"w","hideMark");return S&&(t.hideMark=chunk3R7QHNI5_js.m(S)),Object.keys(t).length>0?t:void 0}function $e(e,n){let t={styleId:chunk3R7QHNI5_js.j(e,"w","styleId")??"",type:chunk3R7QHNI5_js.j(e,"w","type")??"paragraph"},o=chunk3R7QHNI5_js.j(e,"w","default");o&&(t.default=o==="1"||o==="true");let s=chunk3R7QHNI5_js.e(e,"w","name");s&&(t.name=chunk3R7QHNI5_js.j(s,"w","val")??void 0);let r=chunk3R7QHNI5_js.e(e,"w","basedOn");r&&(t.basedOn=chunk3R7QHNI5_js.j(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","next");a&&(t.next=chunk3R7QHNI5_js.j(a,"w","val")??void 0);let c=chunk3R7QHNI5_js.e(e,"w","link");c&&(t.link=chunk3R7QHNI5_js.j(c,"w","val")??void 0);let d=chunk3R7QHNI5_js.e(e,"w","uiPriority");if(d){let N=chunk3R7QHNI5_js.l(d,"w","val");N!==void 0&&(t.uiPriority=N);}let u=chunk3R7QHNI5_js.e(e,"w","hidden");u&&(t.hidden=chunk3R7QHNI5_js.m(u));let m=chunk3R7QHNI5_js.e(e,"w","semiHidden");m&&(t.semiHidden=chunk3R7QHNI5_js.m(m));let g=chunk3R7QHNI5_js.e(e,"w","unhideWhenUsed");g&&(t.unhideWhenUsed=chunk3R7QHNI5_js.m(g));let p=chunk3R7QHNI5_js.e(e,"w","qFormat");p&&(t.qFormat=chunk3R7QHNI5_js.m(p));let S=chunk3R7QHNI5_js.e(e,"w","personal");S&&(t.personal=chunk3R7QHNI5_js.m(S));let f=chunk3R7QHNI5_js.e(e,"w","pPr");f&&(t.pPr=ee(f,n));let b=chunk3R7QHNI5_js.e(e,"w","rPr");b&&(t.rPr=Z(b,n));let C=chunk3R7QHNI5_js.e(e,"w","tblPr");C&&(t.tblPr=le(C));let D=chunk3R7QHNI5_js.e(e,"w","trPr");D&&(t.trPr=ce(D));let I=chunk3R7QHNI5_js.e(e,"w","tcPr");I&&(t.tcPr=fe(I));let P=chunk3R7QHNI5_js.f(e,"w","tblStylePr");if(P.length>0){t.tblStylePr=[];for(let N of P){let y=chunk3R7QHNI5_js.j(N,"w","type");if(y){let x={type:y},F=chunk3R7QHNI5_js.e(N,"w","pPr");F&&(x.pPr=ee(F,n));let X=chunk3R7QHNI5_js.e(N,"w","rPr");X&&(x.rPr=Z(X,n));let A=chunk3R7QHNI5_js.e(N,"w","tblPr");A&&(x.tblPr=le(A));let M=chunk3R7QHNI5_js.e(N,"w","trPr");M&&(x.trPr=ce(M));let E=chunk3R7QHNI5_js.e(N,"w","tcPr");E&&(x.tcPr=fe(E)),t.tblStylePr.push(x);}}}return t}function Ze(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","rPrDefault");if(o){let r=chunk3R7QHNI5_js.e(o,"w","rPr");r&&(t.rPr=Z(r,n));}let s=chunk3R7QHNI5_js.e(e,"w","pPrDefault");if(s){let r=chunk3R7QHNI5_js.e(s,"w","pPr");r&&(t.pPr=ee(r,n));}return t.rPr||t.pPr?t:void 0}function _e(e,n){if(!n)return e;if(!e)return n?{...n}:void 0;let t={...e};for(let o of Object.keys(n)){let s=n[o];if(s!==void 0)if(o==="runProperties")t.runProperties=chunkGSKMHXHG_js.b(t.runProperties,n.runProperties);else if(o==="borders"||o==="numPr"||o==="frame"){let r=t[o],a=s;t[o]={...r||{},...a||{}};}else o==="tabs"&&Array.isArray(s)?t.tabs=[...s]:t[o]=s;}return t}function Ie(e,n,t,o=new Set){if(o.has(e.styleId)||(o.add(e.styleId),!e.basedOn))return e;let s=n.get(e.basedOn);if(!s)return e;let r=Ie(s,n,t,o),a={...e,pPr:_e(r.pPr,e.pPr),rPr:chunkGSKMHXHG_js.b(r.rPr,e.rPr)};return e.type==="table"&&((r.tblPr||e.tblPr)&&(a.tblPr={...r.tblPr||{},...e.tblPr||{}}),(r.trPr||e.trPr)&&(a.trPr={...r.trPr||{},...e.trPr||{}}),(r.tcPr||e.tcPr)&&(a.tcPr={...r.tcPr||{},...e.tcPr||{}})),a}function ue(e,n){let t=new Map;try{let o=chunk3R7QHNI5_js.c(e);if(!o)return t;let s=chunk3R7QHNI5_js.f(o,"w","style");for(let r of s){let a=$e(r,n);a.styleId&&t.set(a.styleId,a);}for(let[r,a]of t){let c=Ie(a,t,n);t.set(r,c);}}catch(o){console.warn("Failed to parse styles:",o);}return t}function Ae(e,n){let t={styles:[]};try{let o=chunk3R7QHNI5_js.c(e);if(!o)return t;let s=chunk3R7QHNI5_js.e(o,"w","docDefaults");t.docDefaults=Ze(s,n);let r=chunk3R7QHNI5_js.e(o,"w","latentStyles");r&&(t.latentStyles={defLockedState:chunk3R7QHNI5_js.j(r,"w","defLockedState")==="1",defUIPriority:chunk3R7QHNI5_js.l(r,"w","defUIPriority"),defSemiHidden:chunk3R7QHNI5_js.j(r,"w","defSemiHidden")==="1",defUnhideWhenUsed:chunk3R7QHNI5_js.j(r,"w","defUnhideWhenUsed")==="1",defQFormat:chunk3R7QHNI5_js.j(r,"w","defQFormat")==="1",count:chunk3R7QHNI5_js.l(r,"w","count")});let a=ue(e,n);t.styles=Array.from(a.values());}catch(o){console.warn("Failed to parse style definitions:",o);}return t}function ke(e){let n={abstractNums:[],nums:[]};if(!e)return de(n);let t=chunk3R7QHNI5_js.c(e);if(!t)return de(n);let o=chunk3R7QHNI5_js.f(t,"w","abstractNum");for(let r of o){let a=Je(r);a&&n.abstractNums.push(a);}let s=chunk3R7QHNI5_js.f(t,"w","num");for(let r of s){let a=qe(r);a&&n.nums.push(a);}return de(n)}function Je(e){let n=chunk3R7QHNI5_js.j(e,"w","abstractNumId");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t))return null;let o={abstractNumId:t,levels:[]},s=chunk3R7QHNI5_js.e(e,"w","multiLevelType");if(s){let u=chunk3R7QHNI5_js.j(s,"w","val");(u==="hybridMultilevel"||u==="multilevel"||u==="singleLevel")&&(o.multiLevelType=u);}let r=chunk3R7QHNI5_js.e(e,"w","name");r&&(o.name=chunk3R7QHNI5_js.j(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numStyleLink");a&&(o.numStyleLink=chunk3R7QHNI5_js.j(a,"w","val")??void 0);let c=chunk3R7QHNI5_js.e(e,"w","styleLink");c&&(o.styleLink=chunk3R7QHNI5_js.j(c,"w","val")??void 0);let d=chunk3R7QHNI5_js.f(e,"w","lvl");for(let u of d){let m=Re(u);m&&o.levels.push(m);}return o.levels.sort((u,m)=>u.ilvl-m.ilvl),o}function qe(e){let n=chunk3R7QHNI5_js.j(e,"w","numId");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t))return null;let o=chunk3R7QHNI5_js.e(e,"w","abstractNumId");if(!o)return null;let s=chunk3R7QHNI5_js.j(o,"w","val");if(s===null)return null;let r=parseInt(s,10);if(isNaN(r))return null;let a={numId:t,abstractNumId:r},c=chunk3R7QHNI5_js.f(e,"w","lvlOverride");if(c.length>0){a.levelOverrides=[];for(let d of c){let u=chunk3R7QHNI5_js.j(d,"w","ilvl");if(u===null)continue;let m=parseInt(u,10);if(isNaN(m))continue;let g={ilvl:m},p=chunk3R7QHNI5_js.e(d,"w","startOverride");if(p){let f=chunk3R7QHNI5_js.j(p,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(g.startOverride=b);}}let S=chunk3R7QHNI5_js.e(d,"w","lvl");S&&(g.lvl=Re(S)??void 0),a.levelOverrides.push(g);}}return a}function Re(e){let n=chunk3R7QHNI5_js.j(e,"w","ilvl");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t)||t<0||t>8)return null;let o={ilvl:t,numFmt:"decimal",lvlText:""},s=chunk3R7QHNI5_js.e(e,"w","start");if(s){let f=chunk3R7QHNI5_js.j(s,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(o.start=b);}}let r=chunk3R7QHNI5_js.e(e,"w","numFmt");if(r){let f=chunk3R7QHNI5_js.j(r,"w","val");f&&(o.numFmt=Qe(f));}let a=chunk3R7QHNI5_js.e(e,"w","lvlText");a&&(o.lvlText=chunk3R7QHNI5_js.j(a,"w","val")??"");let c=chunk3R7QHNI5_js.e(e,"w","lvlJc");if(c){let f=chunk3R7QHNI5_js.j(c,"w","val");(f==="left"||f==="center"||f==="right")&&(o.lvlJc=f);}let d=chunk3R7QHNI5_js.e(e,"w","suff");if(d){let f=chunk3R7QHNI5_js.j(d,"w","val");(f==="tab"||f==="space"||f==="nothing")&&(o.suffix=f);}let u=chunk3R7QHNI5_js.e(e,"w","isLgl");u&&(o.isLgl=chunk3R7QHNI5_js.m(u));let m=chunk3R7QHNI5_js.e(e,"w","lvlRestart");if(m){let f=chunk3R7QHNI5_js.j(m,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(o.lvlRestart=b);}}let g=chunk3R7QHNI5_js.e(e,"w","legacy");g&&(o.legacy={legacy:chunk3R7QHNI5_js.m(g),legacySpace:chunk3R7QHNI5_js.l(g,"w","legacySpace"),legacyIndent:chunk3R7QHNI5_js.l(g,"w","legacyIndent")});let p=chunk3R7QHNI5_js.e(e,"w","pPr");p&&(o.pPr=Ge(p));let S=chunk3R7QHNI5_js.e(e,"w","rPr");return S&&(o.rPr=et(S)),o}function Qe(e){return {decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",hex:"hex",chicago:"chicago",bullet:"bullet",none:"none",decimalZero:"decimalZero",ganada:"ganada",chosung:"chosung",ideographDigital:"ideographDigital",japaneseCounting:"japaneseCounting",aiueo:"aiueo",iroha:"iroha",decimalFullWidth:"decimalFullWidth",decimalHalfWidth:"decimalHalfWidth",japaneseLegal:"japaneseLegal",japaneseDigitalTenThousand:"japaneseDigitalTenThousand",decimalEnclosedCircle:"decimalEnclosedCircle",decimalFullWidth2:"decimalFullWidth2",aiueoFullWidth:"aiueoFullWidth",irohaFullWidth:"irohaFullWidth",decimalEnclosedFullstop:"decimalEnclosedFullstop",decimalEnclosedParen:"decimalEnclosedParen",decimalEnclosedCircleChinese:"decimalEnclosedCircleChinese",ideographEnclosedCircle:"ideographEnclosedCircle",ideographTraditional:"ideographTraditional",ideographZodiac:"ideographZodiac",ideographZodiacTraditional:"ideographZodiacTraditional",taiwaneseCounting:"taiwaneseCounting",ideographLegalTraditional:"ideographLegalTraditional",taiwaneseCountingThousand:"taiwaneseCountingThousand",taiwaneseDigital:"taiwaneseDigital",chineseCounting:"chineseCounting",chineseLegalSimplified:"chineseLegalSimplified",chineseCountingThousand:"chineseCountingThousand",koreanDigital:"koreanDigital",koreanCounting:"koreanCounting",koreanLegal:"koreanLegal",koreanDigital2:"koreanDigital2",vietnameseCounting:"vietnameseCounting",russianLower:"russianLower",russianUpper:"russianUpper",numberInDash:"numberInDash",hebrew1:"hebrew1",hebrew2:"hebrew2",arabicAlpha:"arabicAlpha",arabicAbjad:"arabicAbjad",hindiVowels:"hindiVowels",hindiConsonants:"hindiConsonants",hindiNumbers:"hindiNumbers",hindiCounting:"hindiCounting",thaiLetters:"thaiLetters",thaiNumbers:"thaiNumbers",thaiCounting:"thaiCounting"}[e]??"decimal"}function Ge(e){let n={},t=chunk3R7QHNI5_js.e(e,"w","ind");if(t){let s=chunk3R7QHNI5_js.l(t,"w","left"),r=chunk3R7QHNI5_js.l(t,"w","right"),a=chunk3R7QHNI5_js.l(t,"w","start"),c=chunk3R7QHNI5_js.l(t,"w","end"),d=chunk3R7QHNI5_js.l(t,"w","firstLine"),u=chunk3R7QHNI5_js.l(t,"w","hanging"),m=s??a,g=r??c;m!==void 0&&(n.indentLeft=m),g!==void 0&&(n.indentRight=g),u!==void 0?(n.indentFirstLine=-u,n.hangingIndent=true):d!==void 0&&(n.indentFirstLine=d);}let o=chunk3R7QHNI5_js.e(e,"w","tabs");if(o){n.tabs=[];let s=chunk3R7QHNI5_js.f(o,"w","tab");for(let r of s){let a=chunk3R7QHNI5_js.l(r,"w","pos"),c=chunk3R7QHNI5_js.j(r,"w","val"),d=chunk3R7QHNI5_js.j(r,"w","leader");a!==void 0&&c&&n.tabs.push({position:a,alignment:Ye(c),leader:Ke(d)});}}return n}function Ye(e){switch(e){case "left":return "left";case "center":return "center";case "right":return "right";case "decimal":return "decimal";case "bar":return "bar";case "clear":return "clear";case "num":return "num";default:return "left"}}function Ke(e){if(e)switch(e){case "none":return "none";case "dot":return "dot";case "hyphen":return "hyphen";case "underscore":return "underscore";case "heavy":return "heavy";case "middleDot":return "middleDot";default:return}}function et(e){let n={},t=chunk3R7QHNI5_js.e(e,"w","rFonts");t&&(n.fontFamily={ascii:chunk3R7QHNI5_js.j(t,"w","ascii")??void 0,hAnsi:chunk3R7QHNI5_js.j(t,"w","hAnsi")??void 0,eastAsia:chunk3R7QHNI5_js.j(t,"w","eastAsia")??void 0,cs:chunk3R7QHNI5_js.j(t,"w","cs")??void 0});let o=chunk3R7QHNI5_js.e(e,"w","sz");if(o){let d=chunk3R7QHNI5_js.l(o,"w","val");d!==void 0&&(n.fontSize=d);}let s=chunk3R7QHNI5_js.e(e,"w","color");if(s){let d=chunk3R7QHNI5_js.j(s,"w","val"),u=chunk3R7QHNI5_js.j(s,"w","themeColor");d==="auto"?n.color={auto:true}:u?n.color={themeColor:u,themeTint:chunk3R7QHNI5_js.j(s,"w","themeTint")??void 0,themeShade:chunk3R7QHNI5_js.j(s,"w","themeShade")??void 0}:d&&(n.color={rgb:d});}let r=chunk3R7QHNI5_js.e(e,"w","b");r&&(n.bold=chunk3R7QHNI5_js.m(r));let a=chunk3R7QHNI5_js.e(e,"w","i");a&&(n.italic=chunk3R7QHNI5_js.m(a));let c=chunk3R7QHNI5_js.e(e,"w","vanish");return c&&(n.hidden=chunk3R7QHNI5_js.m(c)),n}function de(e){let n=new Map;for(let o of e.abstractNums)n.set(o.abstractNumId,o);let t=new Map;for(let o of e.nums)t.set(o.numId,o);return {definitions:e,getLevel(o,s){let r=t.get(o);if(!r)return null;if(r.levelOverrides){let c=r.levelOverrides.find(d=>d.ilvl===s);if(c){if(c.lvl)return c.lvl;let d=n.get(r.abstractNumId);if(d){let u=d.levels.find(m=>m.ilvl===s);if(u&&c.startOverride!==void 0)return {...u,start:c.startOverride}}}}let a=n.get(r.abstractNumId);if(!a)return null;if(a.numStyleLink&&a.levels.length===0){for(let c of n.values())if(c.styleLink===a.numStyleLink&&c.levels.length>0){a=c;break}}return a.levels.find(c=>c.ilvl===s)??null},getAbstract(o){return n.get(o)??null},getInstance(o){return t.get(o)??null},hasNumbering(o){return t.has(o)}}}function tt(e,n){switch(n){case "decimal":case "decimalZero":return e.toString();case "upperRoman":return Le(e).toUpperCase();case "lowerRoman":return Le(e).toLowerCase();case "upperLetter":return Ee(e).toUpperCase();case "lowerLetter":return Ee(e).toLowerCase();case "ordinal":return nt(e);case "bullet":return "\u2022";case "none":return "";case "decimalEnclosedParen":return `(${e})`;case "numberInDash":return `-${e}-`;default:return e.toString()}}function Le(e){if(e<=0||e>3999)return e.toString();let n=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],t="",o=e;for(let[s,r]of n)for(;o>=s;)t+=r,o-=s;return t}function Ee(e){if(e<=0)return "";let n="",t=e;for(;t>0;)t--,n=String.fromCharCode(97+t%26)+n,t=Math.floor(t/26);return n}function nt(e){let n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function Dt(e,n,t){let o=e;for(let s=1;s<=9;s++){let r=`%${s}`;if(o.includes(r)){let a=s-1,c=n[a]??1,d=t[a]??"decimal",u=tt(c,d);o=o.replace(r,u);}}return o}function Xt(e){if(e.lvlText)return e.lvlText;let n=e.rPr?.fontFamily?.ascii||e.rPr?.fontFamily?.hAnsi;if(n){let t=n.toLowerCase();if(t==="symbol")return "\u2022";if(t.includes("wingding"))return "\u2751"}return "\u2022"}function It(e){return e.numFmt==="bullet"||e.numFmt==="none"}var Be=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g;function Ve(e){let n=[],t;for(Be.lastIndex=0;(t=Be.exec(e))!==null;){let o=t[1].trim();o&&!n.includes(o)&&n.push(o);}return n}function te(e){let n=[];for(let t of e)if(t.type==="paragraph"){let o=chunkLERLET2D_js.N(t),s=Ve(o);for(let r of s)n.includes(r)||n.push(r);}else if(t.type==="table"){let o=je(t);for(let s of o)n.includes(s)||n.push(s);}return n}function je(e){let n=[];for(let t of e.rows)for(let o of t.cells)for(let s of o.content)if(s.type==="paragraph"){let r=chunkLERLET2D_js.N(s),a=Ve(r);for(let c of a)n.includes(c)||n.push(c);}else if(s.type==="table"){let r=je(s);for(let a of r)n.includes(a)||n.push(a);}return n}function ot(e,n){let t=[],o=[];for(let s of e)o.push(s),s.type==="paragraph"&&s.sectionProperties&&(t.push({properties:s.sectionProperties,content:o}),o=[]);return (o.length>0||t.length===0)&&t.push({properties:n??chunkLERLET2D_js.C(),content:o}),t}function ne(e,n=null,t=null,o=null,s=null,r=null){let a={content:[]};if(!e)return a;let c=chunk3R7QHNI5_js.a(e);if(!c)return a;let d=(c.elements??[]).find(p=>p.type==="element"&&(p.name==="w:document"||p.name?.endsWith(":document")));if(!d)return a;let u=chunk3R7QHNI5_js.e(d,"w","body");if(!u)return a;a.content=chunkLERLET2D_js.q(u,n,t,o,s,r);let m=chunk3R7QHNI5_js.e(u,"w","sectPr");m&&(a.finalSectionProperties=chunkLERLET2D_js.B(m,s));let g=ot(a.content,a.finalSectionProperties);return a.sections=chunkLERLET2D_js.D(g),a.finalSectionProperties&&a.sections.length>0&&(a.finalSectionProperties=a.sections[a.sections.length-1].properties),a}function rt(e){let n=new Map,t=chunk3R7QHNI5_js.a(e);if(!t)return n;let o=chunk3R7QHNI5_js.e(t,"w16cex","commentsExtensible")??t;for(let s of chunk3R7QHNI5_js.i(o)){if((s.name?.replace(/^.*:/,"")??"")!=="comment")continue;let a=chunk3R7QHNI5_js.j(s,"w16cex","paraId")??chunk3R7QHNI5_js.j(s,"w15","paraId")??s.attributes?.["w16cex:paraId"]??s.attributes?.["w15:paraId"],c=chunk3R7QHNI5_js.j(s,"w16cex","dateUtc")??chunk3R7QHNI5_js.j(s,"w15","dateUtc")??s.attributes?.["w16cex:dateUtc"]??s.attributes?.["w15:dateUtc"];a&&c&&n.set(String(a).toUpperCase(),String(c));}return n}function it(e){let n=new Map,t=new Map,o=chunk3R7QHNI5_js.a(e);if(!o)return {parentByParaId:n,doneByParaId:t};let s=chunk3R7QHNI5_js.e(o,"w15","commentsEx")??o;for(let r of chunk3R7QHNI5_js.i(s)){if((r.name?.replace(/^.*:/,"")??"")!=="commentEx")continue;let c=chunk3R7QHNI5_js.j(r,"w15","paraId")??r.attributes?.["w15:paraId"],d=chunk3R7QHNI5_js.j(r,"w15","paraIdParent")??r.attributes?.["w15:paraIdParent"],u=chunk3R7QHNI5_js.j(r,"w15","done")??r.attributes?.["w15:done"];if(c){let m=String(c).toUpperCase();d&&n.set(m,String(d).toUpperCase()),u==="1"&&t.set(m,true);}}return {parentByParaId:n,doneByParaId:t}}function Oe(e,n,t,o,s,r,a){if(!e)return [];let c=chunk3R7QHNI5_js.a(e);if(!c)return [];let d=r?rt(r):new Map,u=a?it(a):null,m=chunk3R7QHNI5_js.e(c,"w","comments")??c,g=chunk3R7QHNI5_js.i(m),p=[],S=[];for(let f of g){if((f.name?.replace(/^.*:/,"")??"")!=="comment")continue;let C=parseInt(chunk3R7QHNI5_js.j(f,"w","id")??"0",10),D=chunk3R7QHNI5_js.j(f,"w","author")??"Unknown",I=chunk3R7QHNI5_js.j(f,"w","initials"),P=I!=null?String(I):void 0,N=chunk3R7QHNI5_js.j(f,"w","date"),y=N!=null?String(N):void 0,x=chunk3R7QHNI5_js.j(f,"w14","paraId")??f.attributes?.["w14:paraId"]??chunk3R7QHNI5_js.j(f,"w","paraId"),X=(x?d.get(String(x).toUpperCase()):void 0)??y,A=chunk3R7QHNI5_js.j(f,"w","done")??f.attributes?.["w:done"],M=A==="1"||A==="true"?true:void 0,E=chunk3R7QHNI5_js.j(f,"w16cid","parentId")??chunk3R7QHNI5_js.j(f,"w","parentId")??f.attributes?.["w16cid:parentId"]??f.attributes?.["w:parentId"],V=E!=null?parseInt(String(E),10):void 0,H=[],B="";for(let j of chunk3R7QHNI5_js.i(f))if((j.name?.replace(/^.*:/,"")??"")==="p"){let h=chunkLERLET2D_js.O(j,n,t,null,o,s);H.push(h);let T=chunk3R7QHNI5_js.j(j,"w14","paraId")??j.attributes?.["w14:paraId"];T&&(B=String(T).toUpperCase());}M==null&&u&&B&&u.doneByParaId.get(B)&&(M=true),S.push(B),p.push({id:C,author:D,initials:P,date:X,content:H,...M!=null?{done:M}:{},...V!=null&&!isNaN(V)?{parentId:V}:{}});}if(u&&u.parentByParaId.size>0){let f=new Map;for(let b=0;b<p.length;b++){let C=S[b];C&&f.set(C,p[b].id);}for(let b=0;b<p.length;b++){if(p[b].parentId!=null)continue;let C=S[b];if(!C)continue;let D=u.parentByParaId.get(C);if(!D)continue;let I=f.get(D);I!=null&&(p[b]={...p[b],parentId:I});}}return p}async function He(e,n={}){let t=e instanceof ArrayBuffer?e:await chunkMNOHUTKE_js.s(e),{onProgress:o=()=>{},preloadFonts:s=true,parseHeadersFooters:r=true,parseNotes:a=true,detectVariables:c=true}=n,d=[];try{let p=function(T,L){let U=performance.now(),re=L(),W=performance.now()-U;return g.push({stage:T,ms:W}),W>1e3&&console.warn(`[parseDocx] ${T} took ${Math.round(W)}ms`),re};var u=p;let m=performance.now(),g=[];async function S(T,L){let U=performance.now(),re=await L(),W=performance.now()-U;return g.push({stage:T,ms:W}),W>1e3&&console.warn(`[parseDocx] ${T} took ${Math.round(W)}ms`),re}o("Extracting DOCX...",0);let f=await S("unzip",()=>Y(t));o("Extracted DOCX",10),o("Parsing relationships...",10);let b=p("relationships",()=>f.documentRels?chunkZ3LGMBJC_js.b(f.documentRels):new Map);o("Parsed relationships",15),o("Parsing theme...",15);let C=p("theme",()=>chunkLERLET2D_js.a(f.themeXml));o("Parsed theme",20),o("Parsing styles...",20);let D=null,I;p("styles",()=>{f.stylesXml&&(D=ue(f.stylesXml,C),I=Ae(f.stylesXml,C));}),o("Parsed styles",30),o("Parsing numbering...",30);let P=p("numbering",()=>ke(f.numberingXml)),N=p("settings",()=>chunkFIGLFSNR_js.b(f.settingsXml));o("Parsed numbering",35),o("Processing media files...",35);let y=p("media",()=>st(f,b));o("Processed media",40),o("Parsing document body...",40);let x={content:[]};p("documentBody",()=>{f.documentXml?x=ne(f.documentXml,D,C,P,b,y):d.push("No document.xml found in DOCX");}),o("Parsed document body",55);let F,X;if(r){o("Parsing headers/footers...",55);let T=p("headersFooters",()=>at(f,D,C,P,b,y));F=T.headers,X=T.footers,o("Parsed headers/footers",65);}else o("Skipping headers/footers",65);let A,M,E,V;if(a){o("Parsing footnotes/endnotes...",65);let T=p("footnotesEndnotes",()=>lt(f,D,C,P,b,y));A=T.footnotes,M=T.endnotes,E=T.footnoteSeparators,V=T.endnoteSeparators,o("Parsed footnotes/endnotes",75);}else o("Skipping footnotes/endnotes",75);o("Parsing comments...",75);let H=p("comments",()=>Oe(f.commentsXml,D,C,b,y,f.commentsExtensibleXml,f.commentsExtendedXml));H.length>0&&(x.comments=H);let B;c?(o("Detecting template variables...",75),B=p("variables",()=>te(x.content)),o("Detected variables",80)):o("Skipping variable detection",80),s?(o("Loading fonts...",80),await S("fonts",()=>ct(C,I,x)),o("Loaded fonts",95)):o("Skipping font loading",95),o("Assembling document...",95);let _={package:{document:x,styles:I,theme:C,numbering:P.definitions,settings:N,headers:F,footers:X,footnotes:A,endnotes:M,footnoteSeparators:E,endnoteSeparators:V,relationships:b,media:y},originalBuffer:t,templateVariables:B,warnings:d.length>0?d:void 0},h=performance.now()-m;if(h>2e3){let T=g.filter(L=>L.ms>100).map(L=>`${L.stage}: ${Math.round(L.ms)}ms`).join(", ");console.warn(`[parseDocx] Total: ${Math.round(h)}ms`+(T?` (${T})`:""));}return o("Complete",100),_}catch(m){let g=m instanceof Error?m.message:String(m);throw console.error("[parseDocx] Failed to parse DOCX:",g,m),new Error(`Failed to parse DOCX: ${g}`)}}function st(e,n){let t=new Map;for(let[o,s]of e.media.entries()){let r=o.split("/").pop()||o,a=Me(o),c=new Uint8Array(s),d="";for(let S=0;S<c.length;S++)d+=String.fromCharCode(c[S]);let u=btoa(d),m=`data:${a};base64,${u}`,g={path:o,filename:r,mimeType:a,data:s,dataUrl:m};t.set(o,g);let p=o.replace(/^word\//,"");p!==o&&t.set(p,g);}return t}function oe(e,n){let t=n.toLowerCase();for(let[o,s]of e.entries())if(o.toLowerCase()===t)return s}function at(e,n,t,o,s,r){let a=new Map,c=new Map;for(let[d,u]of s.entries())if(u.type===chunkZ3LGMBJC_js.a.header&&u.target){let m=u.target.split("/").pop()||u.target,g=oe(e.headers,m);if(g){let p=`word/_rels/${m}.rels`,S=oe(e.allXml,p),f=S?chunkZ3LGMBJC_js.b(S):s,b=chunkLERLET2D_js.r(g,"default",n,t,o,f,r);a.set(d,b);}}else if(u.type===chunkZ3LGMBJC_js.a.footer&&u.target){let m=u.target.split("/").pop()||u.target,g=oe(e.footers,m);if(g){let p=`word/_rels/${m}.rels`,S=oe(e.allXml,p),f=S?chunkZ3LGMBJC_js.b(S):s,b=chunkLERLET2D_js.s(g,"default",n,t,o,f,r);c.set(d,b);}}return {headers:a,footers:c}}function lt(e,n,t,o,s,r){let a=chunkLERLET2D_js.t(e.footnotesXml,n,t,o,s,r),c=chunkLERLET2D_js.u(e.endnotesXml,n,t,o,s,r);return {footnotes:a.getNormalFootnotes(),endnotes:c.getNormalEndnotes(),footnoteSeparators:a.footnotes.filter(chunkLERLET2D_js.z),endnoteSeparators:c.endnotes.filter(chunkLERLET2D_js.A)}}async function ct(e,n,t){let o=new Set;if(e?.fontScheme){let{majorFont:s,minorFont:r}=e.fontScheme;s?.latin&&o.add(s.latin),r?.latin&&o.add(r.latin);}if(n?.docDefaults?.rPr?.fontFamily?.ascii&&o.add(n.docDefaults.rPr.fontFamily.ascii),n?.styles)for(let s of n.styles)s.rPr?.fontFamily?.ascii&&o.add(s.rPr.fontFamily.ascii),s.rPr?.fontFamily?.hAnsi&&o.add(s.rPr.fontFamily.hAnsi);if(t.content){for(let s of t.content)if(s.type==="paragraph")for(let r of s.content)r.type==="run"&&r.formatting?.fontFamily&&(r.formatting.fontFamily.ascii&&o.add(r.formatting.fontFamily.ascii),r.formatting.fontFamily.hAnsi&&o.add(r.formatting.fontFamily.hAnsi));}if(o.size>0)try{await chunkMNOHUTKE_js.o(Array.from(o));}catch(s){console.warn("Failed to load some fonts:",s);}}async function Kt(e){return He(e,{preloadFonts:false,parseHeadersFooters:false,parseNotes:false,detectVariables:true})}async function en(e,n){return He(e,{onProgress:n,preloadFonts:true,parseHeadersFooters:true,parseNotes:true,detectVariables:true})}async function tn(e){let n=await Y(e);if(!n.documentXml)return [];let t=ne(n.documentXml);return te(t.content)}async function nn(e){let n=await Y(e),t=n.documentXml?te(ne(n.documentXml).content):[];return {hasDocument:n.documentXml!==null,hasStyles:n.stylesXml!==null,hasTheme:n.themeXml!==null,hasNumbering:n.numberingXml!==null,headerCount:n.headers.size,footerCount:n.footers.size,mediaCount:n.media.size,variableCount:t.length}}
|
|
2
|
+
exports.a=ke;exports.b=tt;exports.c=Dt;exports.d=Xt;exports.e=It;exports.f=He;exports.g=Kt;exports.h=en;exports.i=tn;exports.j=nn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkFQS436KN_js=require('./chunk-FQS436KN.js'),chunkJ3YFJDZD_js=require('./chunk-J3YFJDZD.js'),chunkRSU4HTC6_js=require('./chunk-RSU4HTC6.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkLERLET2D_js=require('./chunk-LERLET2D.js'),chunkBUCOTKYY_js=require('./chunk-BUCOTKYY.js'),chunkBHBOAP6Z_js=require('./chunk-BHBOAP6Z.js'),chunkN3Y5BUKV_js=require('./chunk-N3Y5BUKV.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function et(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 y=m.y-e.margins.top,g=y+m.height;s.forEach((u,E)=>{let b=`${E}:${u.id}`,f=a.get(b);f?(f.top=Math.min(f.top,y),f.bottom=Math.max(f.bottom,g)):(a.set(b,{group:u,depth:E,top:y,bottom:g}),i.push(b));});}let d=2,l=[];for(let m of i){let{group:s,depth:y,top:g,bottom:u}=a.get(m),E=y*(d+1),b=r.createElement("div");b.className="layout-block-sdt-box",b.dataset.sdtGroupId=s.id,b.dataset.sdtType=s.sdtType,b.dataset.sdtDepth=String(y+1),s.tag!=null&&(b.dataset.sdtTag=s.tag),s.alias!=null&&(b.dataset.sdtAlias=s.alias),s.lock!=null&&(b.dataset.sdtLock=s.lock),b.style.position="absolute",b.style.left=`${E}px`,b.style.top=`${g-d}px`,b.style.width=`${n-E*2}px`,b.style.height=`${u-g+d*2}px`;let f=s.alias||s.tag||s.sdtType;if(f){let F=r.createElement("span");F.className="layout-block-sdt-label",F.textContent=f,b.appendChild(F);}let w=wt(s.sdtType);if(w&&s.tag!=null&&!s.bound&&s.lock!=="contentLocked"&&s.lock!=="sdtContentLocked"){let F=r.createElement("button");F.type="button",F.className="layout-sdt-widget",F.dataset.sdtWidget=w,F.dataset.sdtTag=s.tag,F.dataset.sdtGroupId=s.id,F.setAttribute("aria-label",`${w} control ${s.alias||s.tag}`),w==="dropdown"?F.setAttribute("aria-haspopup","listbox"):w==="date"&&F.setAttribute("aria-haspopup","dialog"),F.textContent=w==="dropdown"?"\u25BE":w==="date"?"\u{1F4C5}":s.checked?"\u2612":"\u2610",b.appendChild(F);}if(s.repeatingItem&&!s.bound){let F=r.createElement("div");F.className="layout-sdt-repeat-controls";for(let c of ["add","remove"]){let x=r.createElement("button");x.type="button",x.className="layout-sdt-repeat-btn",x.dataset.sdtRepeat=c,x.dataset.sdtGroupId=s.id,x.setAttribute("aria-label",c==="add"?"Add item":"Remove item"),x.textContent=c==="add"?"\uFF0B":"\u2715",F.appendChild(x);}b.appendChild(F);}t.appendChild(b),l.push(b);}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(),y=d>=s.left&&d<=s.right&&l>=s.top&&l<=s.bottom;y!==m.classList.contains("is-active")&&m.classList.toggle("is-active",y);}},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 xn(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 Sn(e,t){let n=e.querySelectorAll(".layout-block-sdt-box");for(let o of n){let r=o.dataset.sdtGroupId,a=r!=null&&t.has(r);a!==o.classList.contains("is-focused")&&o.classList.toggle("is-focused",a);}}var U={fragment:"layout-fragment",paragraph:"layout-fragment-paragraph",table:"layout-fragment-table",image:"layout-fragment-image",line:"layout-line",run:"layout-run"};function It(e){return e.kind==="paragraph"}function Ft(e){return e.kind==="table"}function Ct(e){return e.kind==="image"}function pe(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}`,pe(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}`,pe(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}`,pe(o),o.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.isAnchored&&(o.dataset.anchored="true"),e.zIndex!==void 0&&(o.style.zIndex=String(e.zIndex)),o}function Ie(e,t,n={}){let o=n.document??document;if(It(e))return Rt(e,t,o);if(Ft(e))return Et(e,t,o);if(Ct(e))return Lt(e,t,o);let r=o.createElement("div");r.className=U.fragment,pe(r);let a=e;return a.blockId!==void 0&&(r.dataset.blockId=String(a.blockId)),a.kind&&(r.dataset.kind=a.kind),r}var B={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 z(e){return e.kind==="text"}function D(e){return e.kind==="tab"}function G(e){return e.kind==="image"}function Y(e){return e.kind==="lineBreak"}function X(e){return e.kind==="field"}var tt={image:"layout-image",imageAnchored:"layout-image-anchored"};function ne(e){return !!(e.cropTop||e.cropRight||e.cropBottom||e.cropLeft||e.opacity!=null&&e.opacity<1)}function oe(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=tt.image,e.isAnchored&&i.classList.add(tt.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=chunkN3Y5BUKV_js.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 j(e,t,n){t!==void 0&&(e.dataset.pmStart=String(t)),n!==void 0&&(e.dataset.pmEnd=String(n));}function re(e,t,n){let o=t.createElement("span");if(o.className=`${B.run} ${B.text}`,vt(o,e,n),j(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 fe(e,t,n,o){let r=t.createElement("span");r.className=`${B.run} ${B.tab}`,r.style.display="inline-block",r.style.width=`${n}px`,j(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 rt(e){if(!e)return 0;let t=e.match(/rotate\(([-\d.]+)deg\)/);return t?(parseFloat(t[1])%360+360)%360:0}function it(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 nt(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=`${B.run} ${B.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"),ne(e)&&oe(n,e);let o=rt(e.transform);if(o!==0){let r=it(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`,nt(a,e),j(a,e.pmStart,e.pmEnd),a.appendChild(n),a}return n.style.display="inline-block",n.style.verticalAlign="middle",nt(n,e),j(n,e.pmStart,e.pmEnd),n}function ot(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"),ne(e)&&oe(o,e);let r=rt(e.transform);if(r!==0){let a=it(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 j(n,e.pmStart,e.pmEnd),n.appendChild(o),n}function ge(e,t){let n;return chunkJ3YFJDZD_js.c(e)||e.displayMode==="block"||e.wrapType==="topAndBottom"?n=ot(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 Fe(e,t){let n=t.createElement("br");return n.className=`${B.run} ${B.lineBreak}`,j(n,e.pmStart,e.pmEnd),n}function me(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 re(r,t,n?.resolvedCommentIds)}function Ce(e,t,n){if(z(e))return re(e,t,n?.resolvedCommentIds);if(D(e))return fe(e,t,48,void 0);if(G(e))return ge(e,t);if(Y(e))return Fe(e,t);if(X(e)&&n)return me(e,t,n);let o=t.createElement("span");return o.className=B.run,o}function lt(e,t){let n=[],o=e.runs;for(let r=t.fromRun;r<=t.toRun;r++){let a=o[r];if(a)if(z(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 at(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function st(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(z(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(D(a)||Y(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(D(i)||Y(i))break;if(z(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 G(i)&&!chunkJ3YFJDZD_js.c(i)&&(r+=i.width||0);}return r}function Dt(e){let n=e.createElement("canvas").getContext("2d");return (o,r=11,a="Calibri",i=false,d=false)=>{if(!n)return o.length*7;let l=chunkN3Y5BUKV_js.a(a).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 ue(e,t,n,o,r){let a=o.createElement("div");a.className=B.line,a.style.height=`${t.lineHeight}px`,a.style.lineHeight=`${t.lineHeight}px`;let i=lt(e,t);if(i.length===1&&G(i[0])){let w=i[0].position?.horizontal?.align??n;a.style.display="flex",a.style.alignItems="center",a.style.justifyContent=at(w),a.dataset.flexLine="true";}else i.some(G)&&(a.style.display="flex",a.style.alignItems="baseline",a.style.justifyContent=at(n),a.style.lineHeight="normal",a.dataset.flexLine="true");if(i.length===0){let b=o.createElement("span");return b.className=`${B.run} layout-empty-run`,b.innerHTML=" ",a.appendChild(b),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(b=>z(b)&&b.highlight);a.style.overflow=m?"hidden":"visible";let s=i.some(D),y,g=Dt(o);if(s){let b=r?.tabStops?.map(Ht),f=r?.leftIndentPx?Math.round(r.leftIndentPx*15):0;y={explicitStops:b,leftIndent:f};}let u=0,E=r?.leftIndentPx??0;if(r?.isFirstLine){let b=r?.firstLineIndentPx??0;u=E+b;}else u=E;for(let b=0;b<i.length;b++){let f=i[b];if(D(f)&&y){let w=zt(i,b,g,r?.context),F=At(i,b,r?.context),c=F.indexOf("."),x=c>=0?g(F.slice(0,c)):0,T=chunkRSU4HTC6_js.v(u,y,{followingWidth:w,decimalPrefixWidth:x}),S=r?.lineRightEdgePx,k=w,p=false;for(let I=b+1;I<i.length&&!Y(i[I]);I++)if(D(i[I])){p=true;break}if(S!==void 0&&T.alignment==="end"&&!p&&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 I=fe(f,o,0,T.leader);I.style.flex="1 1 0",I.style.minWidth="0",I.style.width="auto",a.appendChild(I);for(let v=b+1;v<i.length;v++){let L=i[v];if(D(L)||Y(L))break;if(z(L))a.appendChild(re(L,o,r?.context?.resolvedCommentIds));else if(X(L)&&r?.context)a.appendChild(me(L,o,r.context));else if(G(L)){if(chunkJ3YFJDZD_js.c(L))continue;let P=st(L);r?.renderedInlineImageKeys?.has(P)||(r?.renderedInlineImageKeys?.add(P),a.appendChild(ge(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=fe(f,o,R,T.leader);a.appendChild(C),u+=R;}else if(z(f)){let w=re(f,o,r?.context?.resolvedCommentIds);if(f.highlight){let T=(f.fontSize?f.fontSize*96/72:14.67)*1.2,S=Math.max(0,t.lineHeight-T);if(S>0){let k=S/2;w.style.paddingTop=`${k}px`,w.style.paddingBottom=`${k}px`;}}a.appendChild(w);let F=f.fontSize||11,c=f.fontFamily||"Calibri";u+=g(f.text,F,c,f.bold,f.italic);}else if(G(f)){if(chunkJ3YFJDZD_js.c(f))continue;let w=st(f);if(r?.renderedInlineImageKeys?.has(w))continue;r?.renderedInlineImageKeys?.add(w);let F=ge(f,o);a.appendChild(F),f.displayMode!=="block"&&f.wrapType!=="topAndBottom"&&(u+=f.width);}else if(Y(f)){let w=Fe(f,o);a.appendChild(w);}else if(X(f)&&r?.context){let w=me(f,o,r.context);a.appendChild(w);let F=f.fallback??"";f.fieldType==="PAGE"?F=String(r.context.pageNumber):f.fieldType==="NUMPAGES"&&(F=String(r.context.totalPages));let c=f.fontSize||11,x=f.fontFamily||"Calibri";u+=g(F,c,x,f.bold,f.italic);}else {let w=Ce(f,o,r?.context);a.appendChild(w);}}return a}function ie(e,t){return !e&&!t?true:!e||!t?false:e.style===t.style&&e.width===t.width&&e.color===t.color}function dt(e,t){return !e&&!t||!e||!t?false:ie(e.top,t.top)&&ie(e.bottom,t.bottom)&&ie(e.left,t.left)&&ie(e.right,t.right)&&ie(e.between,t.between)}function O(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=B.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),j(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 y=t.attrs?.bidi;y&&(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=y?"right":"left":y&&(i.style.textAlign="right");let g=t.attrs?.indent,u=0,E=0;g&&(y?(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 b=t.attrs?.borders;if(b){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}`,p=dt(r.prevBorders,b),h=dt(b,r.nextBorders),R=p?b.between:b.top,C=h?void 0:b.bottom,I=a.createElement("div");if(I.className="layout-paragraph-border",I.style.position="absolute",I.style.pointerEvents="none",I.style.boxSizing="border-box",I.style.left=`${u-(b.left?.space??0)}px`,I.style.right=`${E-(b.right?.space??0)}px`,I.style.top=`${-(R?.space??0)}px`,I.style.bottom=`${-(C?.space??0)}px`,R&&(I.style.borderTop=k(R)),C&&(I.style.borderBottom=k(C)),b.left&&(I.style.borderLeft=k(b.left)),b.right&&(I.style.borderRight=k(b.right)),(R||C||b.left||b.right)&&i.appendChild(I),b.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(b.bar),i.style.position="relative",i.appendChild(L);}}t.attrs?.shading&&(i.style.backgroundColor=t.attrs.shading);let f=e.width-u-E,F=t.runs[t.runs.length-1]?.kind==="lineBreak",c=n.lines.length,x=0;g?.hanging&&g.hanging>0?x=-g.hanging:g?.firstLine&&g.firstLine>0&&(x=g.firstLine);let T=r.renderedInlineImageKeys??new Set;for(let S=0;S<m.length;S++){let k=m[S],p=e.fromLine+S,h=p===c-1,R=p===0&&!e.continuesFromPrev,C=k.leftOffset??0,I=k.rightOffset??0,v=f;if(R){let M=g?.hanging&&g.hanging>0,$=g?.firstLine&&g.firstLine>0;M&&g?.hanging?v=f+g.hanging:$&&g?.firstLine&&(v=f-g.firstLine);}if(Nt(k,t)){let M=a.createElement("div");M.className=`${B.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 we={fromRun:$.fromRun,fromChar:$.fromChar,toRun:$.toRun,toChar:$.toChar,width:$.width,ascent:k.ascent,descent:k.descent,lineHeight:k.lineHeight},_=ue(t,we,s,a,{availableWidth:$.availableWidth,isLastLine:h,isFirstLine:R,paragraphEndsWithLineBreak:F,tabStops:t.attrs?.tabs,leftIndentPx:u,firstLineIndentPx:R?x:0,context:o,renderedInlineImageKeys:T});_.className+=" layout-line-segment",_.style.position="absolute",_.style.left=`${$.leftOffset}px`,_.style.top="0",_.style.width=`${$.availableWidth}px`,M.appendChild(_);}i.appendChild(M);continue}let L=ue(t,k,s,a,{availableWidth:v-C-I,isLastLine:h,isFirstLine:R,paragraphEndsWithLineBreak:F,tabStops:t.attrs?.tabs,leftIndentPx:u,firstLineIndentPx:R?x:0,context:o,renderedInlineImageKeys:T,lineRightEdgePx:e.width-E-I});if(C>0||I>0){C>0&&(L.style.marginLeft=`${C}px`),I>0&&(L.style.marginRight=`${I}px`);let M=v-C-I;M>0&&(L.style.width=`${M}px`);}k.floatSkipBefore&&k.floatSkipBefore>0&&(L.style.marginTop=`${k.floatSkipBefore}px`);let P=g?.hanging&&g.hanging>0,Oe=g?.firstLine&&g.firstLine>0,xt=L.dataset.flexLine==="true";if(R?u>0&&P?(L.style.paddingLeft=`${u}px`,xt||(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`:P&&(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,we=M>0?Math.max(0,u-M):u+$;L.style.paddingLeft=`${we}px`,L.style.textIndent="0";let{fontFamily:_,fontSize:St}=chunkRSU4HTC6_js.w(t),kt=Wt(t.attrs.listMarker,chunkRSU4HTC6_js.x(t),a,_,St,t.attrs.listMarkerRevision);L.insertBefore(kt,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 Nt(e,t){return (e.segments?.length??0)>1&&!t.attrs?.listMarker}function Wt(e,t,n,o,r,a){let i=n.createElement("span");return i.className="layout-list-marker",i.style.fontFamily=chunkN3Y5BUKV_js.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==="ins"?i.style.color="#2e7d32":a==="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"),ne(r)&&oe(i,r),a.appendChild(i),o.appendChild(a);}return o}function ct(e,t,n){let o=[],r=0;for(let a=0;a<e.blocks.length;a++){let i=e.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(!chunkJ3YFJDZD_js.c(s))continue;let y=s.position,g=s.distTop??0,u=s.distBottom??0,E=s.distLeft??12,b=s.distRight??12,f="left",w=0;if(y?.horizontal){let c=y.horizontal;c.align==="right"?(f="right",w=n-s.width):c.align==="left"?w=0:c.align==="center"?w=(n-s.width)/2:c.posOffset!==void 0&&(w=chunk4Q2IP5FW_js.e(c.posOffset),f=w>n/2?"right":"left");}else s.cssFloat==="right"&&(f="right",w=n-s.width);let F=r;if(y?.vertical){let c=y.vertical;c.posOffset!==void 0?F=r+chunk4Q2IP5FW_js.e(c.posOffset):c.align==="top"&&(F=0);}w=Math.max(0,Math.min(w,n-s.width)),o.push({src:s.src,width:s.width,height:s.height,alt:s.alt,transform:s.transform,x:w,y:F,side:f,distTop:g,distBottom:u,distLeft:E,distRight:b,wrapText:chunkJ3YFJDZD_js.e(s.cssFloat),wrapType:s.wrapType,pmStart:s.pmStart,pmEnd:s.pmEnd});}let l=t.blocks[a];l&&l.kind==="paragraph"&&(r+=l.totalHeight);}return o}function Re(e){return !!e&&e.style!=="none"&&e.style!=="nil"&&e.width!==0}function J(e,t,n){let o=`border${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!Re(n))e.style[o]="none";else {let r=n.width??1,a=n.color??"#000000",i=n.style??"solid";e.style[o]=`${r}px ${i} ${a}`;}}function Ee(e){let t=[],n=0;for(let o of e)t.push(Math.round(n)),n+=o?.height??0;return t.push(Math.round(n)),t}function pt(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 N={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 _t(e,t,n,o){let r=o.createElement("div");r.className=N.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=ct(e,t,d),m;if(l.length>0){m=l.filter(chunkJ3YFJDZD_js.a).map(E=>{let b=E.x+E.width+E.distRight,f=E.y-E.distTop,w=E.y+E.height+E.distBottom,F=0,c=0,x=E.wrapText??"bothSides";return x==="right"?F=b:x==="left"?c=d-(E.x-E.distLeft):E.side==="left"?F=b:c=d-(E.x-E.distLeft),{leftMargin:F,rightMargin:c,topY:f,bottomY:w}});let u=l.filter(chunkJ3YFJDZD_js.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,y=0;for(let u=0;u<e.blocks.length;u++){let E=e.blocks[u],b=t.blocks[u];if(E?.kind==="paragraph"&&b?.kind==="paragraph"){let f=E,w=b,F=f.attrs?.spacing,c=Math.max(y,F?.before??0);s+=c,m&&m.length>0&&(w=chunkRSU4HTC6_js.z(f,d,{floatingZones:m,paragraphYOffset:s}));let x={blockId:f.id,width:d,height:w.totalHeight,fromLine:0,toLine:w.lines.length,pmStart:f.pmStart,pmEnd:f.pmEnd},T={...n,insideTableCell:true},S=O(x,f,w,T,{document:o});S.style.position="relative",c>0&&(S.style.marginTop=`${c}px`),r.appendChild(S),s+=w.totalHeight,y=F?.after??0;}else if(E?.kind==="table"&&b?.kind==="table"){let f=E,w=b,F=y,c=Gt(f,w,n,o);c.style.position="relative",F>0&&(c.style.marginTop=`${F}px`),r.appendChild(c),s+=F+(b.totalHeight??0),y=0;}}y>0&&(r.style.paddingBottom=`${y}px`);let g=l.filter(u=>!chunkJ3YFJDZD_js.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 Gt(e,t,n,o){let r=o.createElement("div");r.className=`${N.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),y=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 b=ve(u,E,g,s[g]??0,t.columnWidths,e.rows.length,n,o,y,s,void 0,m);r.appendChild(b);}return r.style.height=`${s[e.rows.length]??0}px`,r}function ft(e,t,n,o,r,a,i,d){let l=i.createElement("div");l.className=N.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,y=e.padding?.bottom??1,g=e.padding?.left??7;l.style.padding=`${m}px ${s}px ${y}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=_t(e,t,a,i);if(l.appendChild(E),e.blocks.length>0){let b=e.blocks[0],f=e.blocks[e.blocks.length-1];b&&"pmStart"in b&&b.pmStart!==void 0&&(l.dataset.pmStart=String(b.pmStart)),f&&"pmEnd"in f&&f.pmEnd!==void 0&&(l.dataset.pmEnd=String(f.pmEnd));}return l}function Yt(e,t){return chunkRSU4HTC6_js.b(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,y){let g=d.createElement("div");g.className=N.row,y||(e.trackedDel?Le(g,"row","del",e.trackedDel):e.trackedIns&&Le(g,"row","ins",e.trackedIns));let u=m&&m.length>n+1?(m[n+1]??0)-(m[n]??0):t.height;g.style.position="absolute",g.style.left="0",g.style.top=`${o}px`,g.style.width="100%",g.style.height=`${u}px`,g.dataset.rowIndex=String(n);let E=new Set;if(l){for(let[,w]of l)if(w.startRow<n&&w.startRow+w.rowSpan>n)for(let F=0;F<w.colSpan;F++)E.add(w.columnIndex+F);}let b=0,f=0;for(;E.has(f);)b+=r[f]??0,f++;for(let w=0;w<e.cells.length;w++){let F=e.cells[w],c=t.cells[w];if(!F||!c)continue;let x=F.colSpan??1,T=F.rowSpan??1,S=u;if(T>1&&m){S=0;for(let I=n;I<n+T&&I<m.length-1;I++)S+=(m[I+1]??0)-(m[I]??0);S===0&&(S=t.height*T);}let k=n===0||s===true,h=f===0;f+x>=r.length;let C=ft(F,c,b,S,{isFirstRow:k,isFirstCol:h},i,d,e.trackedIns?.revisionId??e.trackedDel?.revisionId);if(C.dataset.cellIndex=String(w),C.dataset.columnIndex=String(f),T>1&&(C.dataset.rowSpan=String(T)),g.appendChild(C),T>1&&l){let I=`${n}-${f}`;l.set(I,{cell:F,cellMeasure:c,columnIndex:f,startRow:n,rowSpan:T,colSpan:x,x:b,totalHeight:S});}for(let I=0;I<x&&f+I<r.length;I++)b+=r[f+I]??0;for(f+=x;E.has(f);)b+=r[f]??0,f++;}return g}function Q(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=N.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=(p,h)=>!!p&&!!h&&(p.author??"")===(h.author??"")&&(p.date??null)===(h.date??null),y=t.rows.length>0&&t.rows.every(p=>l?s(p.trackedIns,l):m?s(p.trackedDel,m):false);if(y){let p=l??m,h=l?"ins":"del";i.classList.add("ep-revision-table",`ep-revision-${h}`),i.dataset.revisionId=String(p.revisionId),i.dataset.revisionAuthor=p.author,p.date&&(i.dataset.revisionDate=p.date),i.style.overflowX="visible",i.style.overflowY="hidden";}let g=0;for(let p=0;p<n.columnWidths.length-1;p++){g+=n.columnWidths[p]??0;let h=a.createElement("div");h.className=N.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(p),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=Yt(t,n.columnWidths),b=e.headerRowCount??0,f=0;if(b>0&&e.continuesFromPrev){let p=new Map;for(let h=0;h<b;h++){let R=t.rows[h],C=n.rows[h];if(!R||!C)continue;let I=ve(R,C,h,f,n.columnWidths,t.rows.length,o,a,p,u,h===0,y);I.dataset.repeatedHeader="true",i.appendChild(I),f+=C.height;}}let w=(u[e.fromRow]??0)+(e.topClip??0),F=p=>f+(p-w),c=e.bottomClip!==void 0?Math.round(e.height):F(u[e.toRow]??0);i.style.height=`${c}px`;let x=new Map,T=b>0&&e.continuesFromPrev;for(let p of E){if(p.rowSpan<=1||p.rowIndex>=e.fromRow||p.rowIndex+p.rowSpan<=e.fromRow||T&&p.rowIndex<b)continue;let h=n.rows[p.rowIndex]?.cells?.[p.cellIndex];if(!h)continue;let R=0;for(let P=p.rowIndex;P<p.rowIndex+p.rowSpan&&P<u.length-1;P++)R+=(u[P+1]??0)-(u[P]??0);x.set(`${p.rowIndex}-${p.columnIndex}`,{cell:p.cell,cellMeasure:h,columnIndex:p.columnIndex,startRow:p.rowIndex,rowSpan:p.rowSpan,colSpan:p.colSpan,x:p.x,totalHeight:R});p.rowIndex+p.rowSpan>=t.rows.length;let I=p.columnIndex===0;p.columnIndex+p.colSpan>=n.columnWidths.length;let L=ft(p.cell,h,p.x,R,{isFirstRow:false,isFirstCol:I},o,a);L.style.top=`${F(u[p.rowIndex]??0)}px`,L.dataset.columnIndex=String(p.columnIndex),L.dataset.vmergeContinuation="true",delete L.dataset.pmStart,delete L.dataset.pmEnd,i.appendChild(L);}for(let p=e.fromRow;p<e.toRow;p++){let h=t.rows[p],R=n.rows[p];if(!h||!R)continue;let C=b>0&&e.continuesFromPrev?false:e.continuesFromPrev&&p===e.fromRow&&!e.topClip,I=ve(h,R,p,F(u[p]??0),n.columnWidths,t.rows.length,o,a,x,u,C,y);i.appendChild(I);}let S=(p,h,R,C)=>{for(let I of E){if(I.rowIndex>p||I.rowIndex+I.rowSpan-1<p||C&&!(h==="bottom"?I.rowIndex+I.rowSpan-1>p:I.rowIndex<p))continue;let v=I.cell.borders?.[h];if(!Re(v))continue;let L=0;for(let P=0;P<I.colSpan;P++)L+=n.columnWidths[I.columnIndex+P]??0;i.appendChild(pt(a,{x:I.x,topY:R,width:L,edge:h,border:v}));}};e.topClip?S(e.fromRow,"top",f,false):e.continuesFromPrev&&S(e.fromRow,"top",f,true),e.bottomClip!==void 0?S(e.toRow-1,"bottom",c,false):e.continuesOnNext&&S(e.toRow-1,"bottom",c,true);for(let p=e.fromRow;p<e.toRow-1;p++){let h=F(u[p+1]??0);if(h<=f||h>=e.height)continue;let R=a.createElement("div");R.className=N.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(p),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 p=a.createElement("div");p.className=N.tableEdgeHandleBottom,p.style.position="absolute",p.style.left="0",p.style.top=`${F(u[e.toRow]??0)-3}px`,p.style.width="100%",p.style.height="6px",p.style.cursor="row-resize",p.style.zIndex="10",p.dataset.rowIndex=String(t.rows.length-1),p.dataset.tableBlockId=String(e.blockId),p.dataset.isEdge="bottom",e.pmStart!==void 0&&(p.dataset.tablePmStart=String(e.pmStart)),i.appendChild(p);}if(k){let p=n.columnWidths.reduce((R,C)=>R+C,0),h=a.createElement("div");h.className=N.tableEdgeHandleRight,h.style.position="absolute",h.style.left=`${p-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 jt={textBox:"layout-textbox"};function ee(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");if(i.className=jt.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",Kt(i,e),t.fillColor&&(i.style.backgroundColor=t.fillColor),t.outlineWidth&&t.outlineWidth>0){let s=t.outlineStyle||"solid",y=t.outlineColor||"#000000";i.style.border=`${t.outlineWidth}px ${s} ${y}`;}let d=t.margins??chunkDROCYKAR_js.a;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 y=t.content[s],g=n.innerMeasures[s];if(!g)continue;let u={blockId:y.id,width:l,height:g.totalHeight,pmStart:y.pmStart,pmEnd:y.pmEnd,fromLine:0,toLine:g.lines.length},E=O(u,y,g,{...o,positioning:"flow"},{document:a});i.appendChild(E),m+=g.totalHeight;}return i}function Kt(e,t){!t.isFloating&&t.zIndex===void 0||(e.style.zIndex=String(t.zIndex??10));}var Vt="layout-watermark-layer";function Ut(e,t){let n=Math.max(e.trim().length,1),o=t/(n*.62);return Math.max(24,Math.min(o,180))}function Xt(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=chunkN3Y5BUKV_js.a(e.font).cssFallback,o.style.userSelect="none";let r=t.size.w-t.margins.left-t.margins.right,a=e.layout==="diagonal"?r*1.3:r,i=e.fontSize!==void 0?e.fontSize*96/72:Ut(e.text,a);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 gt(e,t,n=document){let o=e.kind==="text"?Xt(e,t,n):qt(e,t,n);if(!o)return null;let r=n.createElement("div");return r.className=Vt,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 mt(e){return e?.align??e?.alignment}function Zt(e,t){let n=e.position.vertical;if(!n)return e.paragraphY;let o=mt(n),r=n.posOffset!==void 0?chunk4Q2IP5FW_js.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.height-t.flowTop;if(o==="center")return (t.pageHeight-e.height)/2-t.flowTop}if(n.relativeTo==="margin"){let a=t.margins.top,i=t.pageHeight-t.margins.top-t.margins.bottom;if(r!==void 0)return a+r-t.flowTop;if(o==="top")return a-t.flowTop;if(o==="bottom")return a+i-e.height-t.flowTop;if(o==="center")return a+(i-e.height)/2-t.flowTop}return r!==void 0?e.paragraphY+r:e.paragraphY}function Pe(e,t,n){if(!t)return "0";let o=mt(t);if(t.relativeTo==="page"){if(t.posOffset!==void 0)return `${chunk4Q2IP5FW_js.e(t.posOffset)-n.flowLeft}px`;if(o==="right")return `${n.pageWidth-e-n.flowLeft}px`;if(o==="center")return `${(n.pageWidth-e)/2-n.flowLeft}px`;if(o==="left")return `${-n.flowLeft}px`}return t.posOffset!==void 0?`${chunk4Q2IP5FW_js.e(t.posOffset)}px`:o==="right"?`${n.contentWidth-e}px`:o==="center"?`${(n.contentWidth-e)/2}px`:"0"}function Jt(e,t,n){e.style.left=Pe(t.width,t.position.horizontal,n);}function ut(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],y=e.measures[m];if(!(!s||!y))if(s.kind==="paragraph"){if(y.kind!=="paragraph")continue;let g=s,u=y,E=g.attrs?.spacing?.before??0,b=l,f=[];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:b,position:T.position});}else f.push(x);let w={...g,runs:f},F={blockId:g.id,width:i,height:u.totalHeight,fromLine:0,toLine:u.lines.length,pmStart:g.pmStart,pmEnd:g.pmEnd},c=O(F,w,u,{...t,positioning:"absolute"},{document:r});c.style.top=`${l+E}px`,c.style.left="0",c.style.width=`${i}px`,a.appendChild(c),l+=u.totalHeight;}else if(s.kind==="table"){if(y.kind!=="table")continue;let g={blockId:s.id,width:y.totalWidth,height:y.totalHeight,fromRow:0,toRow:y.rows.length,pmStart:s.pmStart,pmEnd:s.pmEnd},u=Q(g,s,y,{...t,positioning:"absolute"},{document:r});if(s.floating){let{left:E,top:b}=ut(s.floating,o);u.style.top=`${b}px`,u.style.left=`${E}px`,a.appendChild(u);}else u.style.top=`${l}px`,u.style.left="0",a.appendChild(u),l+=y.totalHeight;}else if(s.kind==="image"){if(y.kind!=="image")continue;let g={blockId:s.id,width:y.width,height:y.height,pmStart:s.pmStart,pmEnd:s.pmEnd},u=Z(g,s,y,{...t},{document:r});u.style.top=`${l}px`,u.style.left="0",a.appendChild(u),l+=y.height;}else if(s.kind==="textBox"){if(y.kind!=="textBox")continue;let g={blockId:s.id,width:y.width,height:y.height,pmStart:s.pmStart,pmEnd:s.pmEnd},u=ee(g,s,y,{...t,positioning:"absolute"},{document:r});u.style.top=`${l}px`,u.style.left=Pe(y.width,s.position?.horizontal,o),a.appendChild(u),l+=y.height;}else s.kind==="sectionBreak"||s.kind==="pageBreak"||s.kind==="columnBreak"||chunkDROCYKAR_js.c(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",Jt(s,m,o),s.style.top=`${Zt(m,o)}px`,a.appendChild(s);}return a}var ye=12,Me=6;function Qt(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 en(e,t){for(let[n,o]of t)if((e.get(n)??0)<o)return false;return true}function tn(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 So(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 he(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 nn(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 on(e,t,n,o){let r=chunkBUCOTKYY_js.c(e.content,{styles:o.styles??void 0,theme:o.theme??null,defaultTabStopTwips:o.defaultTabStopTwips??null}),a=chunkFQS436KN_js.c(r,{theme:o.theme??void 0}),i=nn(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 ko(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,on(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+=ye,n.set(o,a));}return n}function wo(e){let{blocks:t,measures:n,layoutOpts:o,footnoteRefs:r,footnoteContentMap:a,initialLayout:i}=e,d=he(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 y=0;y<Me;y++){m=chunkRSU4HTC6_js.U(t,n,{...o,footnoteReservedHeights:l});let g=he(m.pages,r),u=He(g,a);if(d=g,Qt(l,u)){l=u,s=true;break}l=u;}if(!s){let y=l,g=false;for(let u=0;u<Me;u++){m=chunkRSU4HTC6_js.U(t,n,{...o,footnoteReservedHeights:y}),d=he(m.pages,r);let E=He(d,a);if(en(y,E)){g=true;break}y=tn(y,E);}g||(m=chunkRSU4HTC6_js.U(t,n,{...o,footnoteReservedHeights:y}),d=he(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[y,g]of d){let u=m.pages.find(E=>E.number===y);u&&(u.footnoteIds=g);}return {layout:m,pageFootnoteMap:d,converged:s}}function To(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),y=s?.displayNumber??0;d.push({displayNumber:String(y),text:chunkLERLET2D_js.x(m),content:s});}d.length>0&&o.set(a,d);}return o}function rn(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},y=O(s,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});y.style.top=`${a+m}px`,y.style.left="0",y.style.width=`${t}px`,y.style.height=`${l.totalHeight}px`,r.appendChild(y),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 an(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 ht(e){let t=ye;for(let n of e)n.content&&(t+=n.content.height);return t}function yt(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=(ye-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?rn(l.content,t,n,o):an(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 bt(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 sn(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 ln(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 be=2,dn=8;function cn(e,t,n={}){let o=e.length,r=n.pageGap??24,a=t,i=a.__pageRenderState,d=sn(n),l=o>=dn;if(i&&i.optionsHash===d&&l){let f=i.pageStates,w=i.pageDataMap,F=a.__pageObserver,c=[];for(let S of e)c.push(bt(S));let x=i.totalPages!==o,T=Math.min(f.length,e.length);for(let S=0;S<T;S++){let k=f[S],p=c[S];if(k.fingerprint===p&&!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&&pn(h,w,o,n)),k.fingerprint=p,se(h,e[S].size.w,e[S].size.h,n),h.dataset.pageNumber=String(e[S].number);}if(e.length>f.length){let S=n.document??document;for(let k=f.length;k<e.length;k++){let p=e[k],h=S.createElement("div");h.className=n.pageClassName??W.page,h.dataset.pageNumber=String(p.number),h.dataset.pageIndex=String(k),se(h,p.size.w,p.size.h,n),t.appendChild(h),f.push({element:h,fingerprint:c[k]}),w.set(h,{page:p,index:k,rendered:false}),F&&F.observe(h);}}if(e.length<f.length){for(let S=f.length-1;S>=e.length;S--){let k=f[S].element;F&&F.unobserve(k),w.delete(k),t.removeChild(k);}f.length=e.length;}for(let S=0;S<f.length;S++){let k=w.get(f[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,ln(t,r);let y=[],g=[];for(let f=0;f<e.length;f++){let w=e[f];if(g.push(bt(w)),l){let c=(n.document??document).createElement("div");c.className=n.pageClassName??W.page,c.dataset.pageNumber=String(w.number),c.dataset.pageIndex=String(f),se(c,w.size.w,w.size.h,n),t.appendChild(c),y.push(c);}else {let{context:F,pageOptions:c}=Ae(w,o,n),x=xe(w,F,c);t.appendChild(x),y.push(x);}}if(!l)return "full";let u=new Map;for(let f=0;f<e.length;f++)u.set(y[f],{page:e[f],index:f,rendered:false});let E=new IntersectionObserver(f=>{let w=a.__pageRenderState;if(!w)return;let{currentOptions:F,totalPages:c,pageDataMap:x}=w;for(let p of f){let h=p.target,R=x.get(h);if(R&&p.isIntersecting){ae(h,x,c,F);for(let C=-be;C<=be;C++){let I=R.index+C;I>=0&&I<w.pageStates.length&&I!==R.index&&ae(w.pageStates[I].element,x,c,F);}}}let T=window.innerHeight,S=T*3,k=new Set;for(let[p,h]of x){if(!h.rendered)continue;let R=p.getBoundingClientRect();R.bottom>-S&&R.top<T+S&&k.add(h.index);}for(let[p,h]of x){if(!h.rendered)continue;let R=false;for(let C of k)if(Math.abs(h.index-C)<=be+1){R=true;break}!R&&k.size>0&&fn(p,x);}},{root:null,rootMargin:"1500px 0px 1500px 0px"});for(let f of y)E.observe(f);a.__pageObserver=E,a.__pageRenderState={pageStates:y.map((f,w)=>({element:f,fingerprint:g[w]})),totalPages:o,optionsHash:d,pageDataMap:u,currentOptions:n};let b=Math.min(e.length,be+3);for(let f=0;f<b;f++)ae(y[f],u,o,n);return "full"}function ae(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=xe(r.page,a,i);for(;d.firstChild;)e.appendChild(d.firstChild);r.rendered=true;}function pn(e,t,n,o){let r=t.get(e);if(!r)return;let{context:a,pageOptions:i}=Ae(r.page,n,o),l=xe(r.page,a,i).querySelector(`.${W.content}`),m=e.querySelector(`.${W.content}`);l&&m?e.replaceChild(l,m):(e.innerHTML="",r.rendered=false,ae(e,t,n,o));}function fn(e,t){let n=t.get(e);!n||!n.rendered||(e.innerHTML="",n.rendered=false);}function gn(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||(ae(l,i,r,a),d++);}return d}var W={page:"layout-page",content:"layout-page-content",header:"layout-page-header",footer:"layout-page-footer"};function se(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=chunkN3Y5BUKV_js.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 mn(e,t){switch(t??"allPages"){case "firstPage":return e===1;case "notFirstPage":return e!==1;default:return true}}function Se(e){return e?.space!==void 0?chunk4Q2IP5FW_js.i(e.space):0}function ke(e,t,n,o){if(!t||t.style==="none"||t.style==="nil")return;let r=chunkBHBOAP6Z_js.c(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 un(e,t,n){let o=t.pageBorders;if(!o||!mn(e.number,o.display)||![o.top,o.bottom,o.left,o.right].some(y=>y&&y.style!=="none"&&y.style!=="nil"))return null;let a=o.offsetFrom??"text",i=Se(o.top),d=Se(o.right),l=Se(o.bottom),m=Se(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`),ke(s,o.top,"Top",t.theme),ke(s,o.bottom,"Bottom",t.theme),ke(s,o.left,"Left",t.theme),ke(s,o.right,"Right",t.theme),s}function hn(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 yn(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 bn(e,t,n,o){let r=[];for(let a of e.runs){if(a.kind!=="image")continue;let i=a;if(!chunkJ3YFJDZD_js.c(i))continue;let d=i.distTop??0,l=i.distBottom??0,m=i.distLeft??12,s=i.distRight??12,{x:y,y:g,side:u}=chunkJ3YFJDZD_js.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:y,y:g,distTop:d,distBottom:l,distLeft:m,distRight:s,pmStart:i.pmStart,pmEnd:i.pmEnd,wrapText:chunkJ3YFJDZD_js.e(i.cssFloat),wrapType:i.wrapType,cropTop:i.cropTop,cropRight:i.cropRight,cropBottom:i.cropBottom,cropLeft:i.cropLeft,opacity:i.opacity});}return r}function xe(e,t,n={}){let o=n.document??document,r=o.createElement("div");if(r.className=n.pageClassName??W.page,r.dataset.pageNumber=String(e.number),se(r,e.size.w,e.size.h,n),n.watermark){let c=gt(n.watermark,e,o);c&&r.appendChild(c);}let a=un(e,n,o);a&&n.pageBorders?.zOrder==="back"&&r.appendChild(a);let i=o.createElement("div");i.className=W.content,hn(i,e);let d=chunkJ3YFJDZD_js.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=bn(T,S,l,d);m.push(...k);}}for(let c of m)chunkJ3YFJDZD_js.a(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,p=c.y-e.margins.top,h=S.topFromText??0,R=S.bottomFromText??0,C=S.leftFromText??12,I=S.rightFromText??12,v=k<l/2?"left":"right";s.push({side:v,x:k,y:p,width:c.width,height:c.height,distTop:h,distBottom:R,distLeft:C,distRight:I});}if(n.blockLookup)for(let c of e.fragments){if(c.kind!=="textBox")continue;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind!=="textBox")continue;let T=x.block;if(!chunkRSU4HTC6_js.I(T))continue;let S=c.y-e.margins.top,k=chunkJ3YFJDZD_js.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,!(!chunkRSU4HTC6_js.J(T)&&!chunkRSU4HTC6_js.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 y=s.length>0?chunkRSU4HTC6_js.t(s,l):[],g=m.filter(chunkJ3YFJDZD_js.b),u=m.filter(c=>!chunkJ3YFJDZD_js.b(c));if(g.length>0){let c=q(g,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},b,f=new Map,w=c=>!n.blockLookup||!c.blockId?[]:n.blockLookup.get(String(c.blockId))?.block.sdtGroups??[],F=(c,x)=>{if(x.length===0)return;let T=x[x.length-1];c.classList.add("layout-block-sdt"),c.dataset.sdtGroupId=T.id,c.dataset.sdtType=T.sdtType,c.dataset.sdtDepth=String(x.length),T.tag!=null&&(c.dataset.sdtTag=T.tag),T.alias!=null&&(c.dataset.sdtAlias=T.alias),T.lock!=null&&(c.dataset.sdtLock=T.lock);};for(let c=0;c<e.fragments.length;c++){let x=e.fragments[c],T,S={...t,section:"body",contentWidth:l},k=x.y-e.margins.top;if(n.blockLookup&&x.blockId){let p=n.blockLookup.get(String(x.blockId));if(x.kind==="paragraph"&&p?.block.kind==="paragraph"&&p?.measure.kind==="paragraph"){let h=p.block,R=c+1<e.fragments.length?E(e.fragments[c+1]):void 0,C=String(x.blockId),I=f.get(C);I||(I=new Set,f.set(C,I));let v=p.measure;y.length>0&&(v=chunkRSU4HTC6_js.z(h,l,{floatingZones:y,paragraphYOffset:k})),T=O(x,h,v,S,{document:o,prevBorders:b,nextBorders:R,renderedInlineImageKeys:I}),b=h.attrs?.borders;}else x.kind==="table"&&p?.block.kind==="table"&&p?.measure.kind==="table"?(T=Q(x,p.block,p.measure,S,{document:o}),b=void 0):x.kind==="image"&&p?.block.kind==="image"&&p?.measure.kind==="image"?(T=Z(x,p.block,p.measure,S,{document:o}),b=void 0):x.kind==="textBox"&&p?.block.kind==="textBox"&&p?.measure.kind==="textBox"?(T=ee(x,p.block,p.measure,S,{document:o}),b=void 0):(T=Ie(x,S,{document:o}),b=void 0);}else T=Ie(x,S,{document:o}),b=void 0;yn(T,x,{left:e.margins.left,top:e.margins.top}),F(T,w(x)),i.appendChild(T);}if(et(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 p=(k+1)*T+k*x+x/2,h=o.createElement("div");h.style.position="absolute",h.style.left=`${p}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=yt(n.footnoteArea,l,t,o);c.style.position="absolute";let x=Math.max(e.footnoteReservedHeight??0,ht(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,p=n.headerContent?.visualBottom??n.headerContent?.height??0,h=Math.max(p-k,24),R=p>S,C=o.createElement("div");C.className=W.header,C.style.position="absolute",C.style.top=`${x+k}px`,C.style.left=`${e.margins.left}px`,C.style.right=`${e.margins.right}px`,C.style.width=`${T}px`,C.style.height=`${h}px`,C.style.minHeight=`${h}px`;let I=!R;if(n.headerContent&&n.headerContent.blocks.length>0){let v={flowTop:x,flowLeft:e.margins.left,contentWidth:T,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},L=Be(n.headerContent,{...t,section:"header",contentWidth:T},n,v);L.style.top=`${-k}px`,L.querySelector("img")&&(I=false),C.appendChild(L);}I&&(C.style.maxHeight=`${S}px`,C.style.overflow="hidden"),r.appendChild(C);}{let x=n.footerDistance??e.margins.footer??48,T=e.size.w-e.margins.left-e.margins.right,S=Math.max(e.margins.bottom-x,48),k=n.footerContent?.visualTop??0,p=n.footerContent?.visualBottom??n.footerContent?.height??0,h=Math.max(p-k,24),R=h>S,C=o.createElement("div");C.className=W.footer,C.style.position="absolute",C.style.top=`${e.size.h-x-h}px`,C.style.left=`${e.margins.left}px`,C.style.right=`${e.margins.right}px`,C.style.width=`${T}px`,C.style.height=`${h}px`,C.style.minHeight=`${h}px`;let I=!R;if(n.footerContent&&n.footerContent.blocks.length>0){let v={flowTop:e.size.h-x-(n.footerContent?.height??0),flowLeft:e.margins.left,contentWidth:T,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},L=Be(n.footerContent,{...t,section:"footer",contentWidth:T},n,v);L.style.top=`${-k}px`,L.querySelector("img")&&(I=false),C.appendChild(L);}I&&(C.style.maxHeight=`${S}px`,C.style.overflow="hidden"),r.appendChild(C);}return a&&n.pageBorders?.zOrder!=="back"&&r.appendChild(a),r}exports.A=ut;exports.B=cn;exports.C=gn;exports.D=W;exports.E=se;exports.F=xe;exports.a=ye;exports.b=Me;exports.c=Qt;exports.d=So;exports.e=he;exports.f=nn;exports.g=on;exports.h=ko;exports.i=He;exports.j=wo;exports.k=To;exports.l=xn;exports.m=Sn;exports.n=U;exports.o=Ie;exports.p=tt;exports.q=Z;exports.r=lt;exports.s=ue;exports.t=O;exports.u=q;exports.v=N;exports.w=Q;exports.x=jt;exports.y=ee;exports.z=Pe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunk2KHWHVTA_js=require('./chunk-2KHWHVTA.js'),chunkVMRUBLPI_js=require('./chunk-VMRUBLPI.js'),chunk7HANRHHL_js=require('./chunk-7HANRHHL.js'),prosemirrorState=require('prosemirror-state');function O(e){let{$from:t}=e.selection,n=null,r=null,s=null,o=-1,a=-1;for(let i=t.depth;i>0;i--){let d=t.node(i);if(d.type.name==="tableCell"||d.type.name==="tableHeader"){s=d;let l=t.node(i-1);if(l?.type.name==="tableRow"){let b=0;l.forEach((h,y,S)=>{if(a===-1){if(S===t.index(i-1)){a=b;return}b+=h.attrs.colspan||1;}});}}else if(d.type.name==="tableRow")t.node(i-1)?.type.name==="table"&&(o=t.index(i-1));else if(d.type.name==="table"){n=d,r=t.before(i);break}}return !n||r==null||!s||o<0||a<0?null:{table:n,tablePos:r,cell:s,row:o,col:a,rowspan:s.attrs.rowspan||1,colspan:s.attrs.colspan||1}}function H(e){let t=[],n=[],r=0;for(let s=0;s<e.childCount;s++){let o=e.child(s),a=0;o.forEach(i=>{for(;t[s]?.[a];)a++;let d=i.attrs.rowspan||1,l=i.attrs.colspan||1;n.push({data:i,row:s,col:a,rowspan:d,colspan:l});for(let b=s;b<s+d;b++){let h=t[b]??[];t[b]=h;for(let y=a;y<a+l;y++)h[y]=true;}a+=l,r=Math.max(r,a);});}return {anchors:n,totalCols:r}}function j(e,t,n,r,s){let o={...e.attrs},a=s.reduce((l,b)=>l+b,0),i=chunk2KHWHVTA_js.a(s,t,n),d=n!==(e.attrs.colspan||1)||r!==(e.attrs.rowspan||1);return o.colspan=n,o.rowspan=r,o.colwidth=null,a>0&&(o.width=Math.round(i/a*5e3),o.widthType="pct"),d&&(o._originalFormatting=null),o}function K(e,t,n,r){let s=t+1;for(let o=0;o<e.childCount;o++){let a=e.child(o),i=s+1,d=0;for(let l=0;l<a.childCount;l++){let b=a.child(l);if(o===n&&d===r)return i;d+=b.attrs.colspan||1,i+=b.nodeSize;}s+=a.nodeSize;}return null}function Y(e,t){let n=e.attrs.width??9360;return Array.isArray(e.attrs.columnWidths)&&e.attrs.columnWidths.length>0?[...e.attrs.columnWidths]:Array.from({length:t},()=>Math.floor(n/Math.max(t,1)))}function q(e){let t=O(e);return t?{...chunk2KHWHVTA_js.e(t.rowspan,t.colspan),capturedCellRow:t.row,capturedCellCol:t.col}:null}function Q(e,t,n,r,s,o){if(n<1||r<1)return false;let a=O(e);if(!a||!t)return false;let i=a;if(s!=null&&o!=null&&(s!==a.row||o!==a.col)){let{anchors:p}=H(a.table),g=p.find(T=>T.row===s&&T.col===o);if(!g)return false;i={...a,cell:g.data,row:g.row,col:g.col,rowspan:g.rowspan,colspan:g.colspan};}if(n<i.rowspan||r<i.colspan||n===1&&r===1)return false;let{anchors:d,totalCols:l}=H(i.table),b=Y(i.table,l),h=chunk2KHWHVTA_js.b(b,i.col,i.colspan,r),y=d.find(p=>p.row===i.row&&p.col===i.col);if(!y)return false;let S=chunk2KHWHVTA_js.c(d,y,n,r,i.table.childCount,p=>{if(p)return y.data;let g=y.data.type.schema.nodes.paragraph.create(),T=j(y.data,0,1,1,h);return y.data.type.create(T,g)}),x=i.row+i.rowspan,P=Array.from({length:S.newRowCount},(p,g)=>g<x?{...i.table.child(g)?.attrs??{}}:g<i.row+n?{...i.table.child(x-1)?.attrs??{}}:{...i.table.child(g-S.deltaRows)?.attrs??{}}),v=Array.from({length:S.newRowCount},()=>[]);S.anchors.sort((p,g)=>p.row===g.row?p.col-g.col:p.row-g.row).forEach(p=>{let g=j(p.data,p.col,p.colspan,p.rowspan,h);v[p.row].push(p.data.type.create(g,p.data.content));});let u=v.map((p,g)=>i.table.type.schema.nodes.tableRow.create(P[g],p)),c=i.table.type.create({...i.table.attrs,columnWidths:h},u),f=e.tr.replaceWith(i.tablePos,i.tablePos+i.table.nodeSize,c),C=f.doc.nodeAt(i.tablePos);if(C){let p=K(C,i.tablePos,i.row,i.col);p!=null&&(f=f.setSelection(prosemirrorState.TextSelection.near(f.doc.resolve(p+1))));}return t(f.scrollIntoView()),true}var m=chunkVMRUBLPI_js.a.getCommands();function ee(e,t){return m.insertTable(e,t)}function te(e,t){return m.addRowAbove()(e,t)}function re(e,t){return m.addRowBelow()(e,t)}function ne(e,t){return m.deleteRow()(e,t)}function oe(e,t){return m.addColumnLeft()(e,t)}function ae(e,t){return m.addColumnRight()(e,t)}function ie(e,t){return m.deleteColumn()(e,t)}function se(e,t){return m.deleteTable()(e,t)}function le(e,t){return m.selectTable()(e,t)}function ce(e,t){return m.selectRow()(e,t)}function de(e,t){return m.selectColumn()(e,t)}function ue(e,t){return m.mergeCells()(e,t)}function pe(e,t){return m.splitCell()(e,t)}function me(e,t,n){return m.setCellBorder(e,t,n)}function fe(e,t){return m.setTableBorders(e,t)}function ge(e,t){return m.removeTableBorders()(e,t)}function be(e,t,n){return m.setAllTableBorders(n)(e,t)}function he(e,t,n){return m.setOutsideTableBorders(n)(e,t)}function ye(e,t,n){return m.setInsideTableBorders(n)(e,t)}function Ce(e){return m.setCellVerticalAlign(e)}function Te(e){return m.setCellMargins(e)}function Se(e){return m.setCellTextDirection(e)}function ve(){return m.toggleNoWrap()}function ke(e,t){return m.setRowHeight(e,t)}function xe(){return m.toggleHeaderRow()}function Pe(){return m.distributeColumns()}function we(){return m.autoFitContents()}function Ie(e){return m.setTableProperties(e)}function Ae(e){return m.applyTableStyle(e)}function Ee(e){return m.setCellFillColor(e)}function Me(e){return m.setTableBorderColor(e)}function Re(e){return m.setTableBorderWidth(e)}var Ne=chunkVMRUBLPI_js.a.getCommands();function Be(e,t,n,r){if(!t)return true;let s=e.tr.insert(r,n),o=chunk7HANRHHL_js.i(e),a=e.schema.marks.insertion;return o&&a&&s.addMark(r,r+n.nodeSize,a.create({revisionId:o.revisionId,author:o.author,date:o.date})),t(s.scrollIntoView()),true}function De(e,t,n){return Ne.setImageWrapType(e,t,n)}function Fe(e){return (t,n)=>{let{from:r,to:s,empty:o}=t.selection;if(o)return false;let a=t.schema.marks.comment;if(!a)return false;if(n){let i=t.tr.addMark(r,s,a.create({commentId:e}));n(i);}return true}}function We(e){return (t,n)=>{let r=t.schema.marks.comment;if(!r)return false;if(n){let s=t.tr;t.doc.descendants((o,a)=>{if(o.isText)for(let i of o.marks)i.type===r&&i.attrs.commentId===e&&s.removeMark(a,a+o.nodeSize,i);}),s.steps.length>0&&n(s);}return true}}function V(e,t,n){return (r,s)=>{let o=r.schema.marks.insertion,a=r.schema.marks.deletion;if(!o&&!a)return false;let i=n==="accept"?o:a,d=n==="accept"?a:o;if(s){let l=r.tr,b=[];r.doc.nodesBetween(e,t,(h,y)=>{if(!h.isInline)return;let S=y+h.nodeSize,x=Math.max(e,y),P=Math.min(t,S);d&&h.marks.some(v=>v.type===d)&&b.push({from:x,to:P}),i&&h.marks.some(v=>v.type===i)&&l.removeMark(x,P,i);});for(let h of b.reverse())l.delete(h.from,h.to);l.steps.length>0&&s(l);}return true}}function Le(e,t){return V(e,t,"accept")}function ze(e,t){return V(e,t,"reject")}function _(e){let t=new Set,n=[],r=a=>{typeof a=="number"&&!t.has(a)&&(t.add(a),n.push(a));},s=e.schema.marks.insertion,o=e.schema.marks.deletion;return e.doc.descendants(a=>{if(a.type.name==="paragraph"){r(a.attrs.pPrIns?.revisionId),r(a.attrs.pPrDel?.revisionId);let i=a.attrs.pPrChange;if(Array.isArray(i))for(let d of i)r(d.info.id);}if(a.type.name==="tableRow"){r(a.attrs.trIns?.revisionId),r(a.attrs.trDel?.revisionId);let i=a.attrs.trPrChange;if(Array.isArray(i))for(let d of i)r(d.info.id);}if(a.type.name==="tableCell"||a.type.name==="tableHeader"){let i=a.attrs.cellMarker;r(i?.info?.revisionId);let d=a.attrs.tcPrChange;if(Array.isArray(d))for(let l of d)r(l.info.id);}if(a.type.name==="table"){let i=a.attrs.tblPrChange;if(Array.isArray(i))for(let d of i)r(d.info.id);}if(a.isInline)for(let i of a.marks)(s&&i.type===s||o&&i.type===o)&&r(i.attrs.revisionId);}),n}function He(){return (e,t)=>{let n=_(e);if(n.length===0)return false;if(!t)return true;let r=e,s=o=>{t(o),r=r.apply(o);};for(let o of n)M(o,"accept")(r,s);return true}}function je(){return (e,t)=>{let n=_(e);if(n.length===0)return false;if(!t)return true;let r=e,s=o=>{t(o),r=r.apply(o);};for(let o of n)M(o,"reject")(r,s);return true}}function $(e,t){let n=e.schema.marks.insertion,r=e.schema.marks.deletion;if(!n&&!r)return null;let s=null;return e.doc.descendants((o,a)=>{if(s)return false;if(o.isInline&&!(a+o.nodeSize<=t)){for(let i of o.marks)if(i.type===n||i.type===r)return s={from:Math.max(a,t),to:a+o.nodeSize,type:i.type===n?"insertion":"deletion"},false}}),!s&&t>0?$(e,0):s}function Oe(e,t){let n=[];return e.doc.descendants((r,s)=>{if(r.type.name!=="paragraph")return;let o=r.attrs.pPrIns,a=r.attrs.pPrDel;o&&o.revisionId===t&&n.push({pos:s,node:r,kind:"pPrIns"}),a&&a.revisionId===t&&n.push({pos:s,node:r,kind:"pPrDel"});}),n}function Ve(e,t){let n=[];return e.doc.descendants((r,s)=>{if(r.type.name!=="paragraph")return;let o=r.attrs.pPrChange;Array.isArray(o)&&o.forEach((a,i)=>{!a?.info||typeof a.info.id!="number"||a.info.id===t&&n.push({pos:s,node:r,entryIndex:i,prior:a.previousFormatting,current:a.currentFormatting});});}),n}function _e(e,t){let n=[],r=e.schema.marks.insertion,s=e.schema.marks.deletion;return e.doc.descendants((o,a)=>{if(o.isInline){for(let i of o.marks)if((r&&i.type===r||s&&i.type===s)&&i.attrs.revisionId===t){let d=i.type===r?"insertion":"deletion",l=n[n.length-1];l&&l.markName===d&&l.to===a?l.to=a+o.nodeSize:n.push({from:a,to:a+o.nodeSize,markName:d});}}}),n}function $e(e,t,n){let r=e.doc.nodeAt(t);if(!r)return;let s=t+r.nodeSize,o=e.doc.nodeAt(s);!o||o.type.name!=="paragraph"||(e.setNodeMarkup(t,void 0,{...o.attrs,pPrIns:null,pPrDel:null}),e.join(s));}function N(e,t,n){let r=e.doc.nodeAt(t);if(!r)return;let s={...r.attrs};s[n]=null,e.setNodeMarkup(t,void 0,s);}function Je(e,t,n){let r=e.doc.nodeAt(t);if(!r)return;let s=r.attrs.pPrChange;if(!Array.isArray(s)||n<0||n>=s.length)return;let o=s.slice();o.splice(n,1),e.setNodeMarkup(t,void 0,{...r.attrs,pPrChange:o.length>0?o:null});}function Ue(e,t,n){let r={...e},s=["alignment","spaceBefore","spaceAfter","lineSpacing","lineSpacingRule","beforeAutospacing","afterAutospacing","spacingExplicit","indentLeft","indentRight","indentFirstLine","hangingIndent","styleId","borders","shading","tabs","pageBreakBefore","keepNext","keepLines","contextualSpacing","bidi","outlineLevel","numPr"];for(let o of s)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]??null);return n?.numPr&&!Object.prototype.hasOwnProperty.call(t,"numPr")&&(r.numPr=null),r.numPr==null&&(r.listIsBullet=null,r.listNumFmt=null,r.listMarker=null),r}function Ge(e,t){let n=[];return e.doc.descendants((r,s)=>{if(r.type.name!=="tableRow")return;let o=r.attrs.trIns,a=r.attrs.trDel;o&&o.revisionId===t&&n.push({pos:s,node:r,kind:"trIns"}),a&&a.revisionId===t&&n.push({pos:s,node:r,kind:"trDel"});}),n}function Ke(e,t){let n=[];return e.doc.descendants((r,s)=>{if(r.type.name!=="tableCell"&&r.type.name!=="tableHeader")return;let o=r.attrs.cellMarker;o?.info?.revisionId===t&&n.push({pos:s,node:r,cellKind:o.kind});}),n}function M(e,t){return (n,r)=>{let s=Oe(n,e),o=_e(n,e),a=Ve(n,e),i=Ge(n,e),d=Ke(n,e);if(s.length===0&&o.length===0&&a.length===0&&i.length===0&&d.length===0)return false;if(!r)return true;let l=n.tr;l.setMeta(chunk7HANRHHL_js.g,true);let b=n.schema.marks.insertion,h=n.schema.marks.deletion,y=[...o].sort((u,c)=>c.from-u.from);for(let u of y){let c=u.markName==="insertion";if(t==="accept"&&!c||t==="reject"&&c)l.delete(u.from,u.to);else {let C=c?b:h;C&&l.removeMark(u.from,u.to,C);}}let S=[...s].sort((u,c)=>c.pos-u.pos);for(let u of S){let c=l.mapping.map(u.pos),f=l.doc.nodeAt(c);if(!f||f.type.name!=="paragraph")continue;let C=u.kind==="pPrIns"&&f.attrs.pPrIns?.revisionId===e,p=u.kind==="pPrDel"&&f.attrs.pPrDel?.revisionId===e;if(!C&&!p)continue;if(t==="reject"&&u.kind==="pPrIns"||t==="accept"&&u.kind==="pPrDel"){let T=c+f.nodeSize,R=l.doc.nodeAt(T);!R||R.type.name!=="paragraph"?N(l,c,u.kind):(N(l,c,u.kind),$e(l,c));}else N(l,c,u.kind);}let x=[...a].sort((u,c)=>c.pos-u.pos);for(let u of x){let c=l.mapping.map(u.pos),f=l.doc.nodeAt(c);if(!f||f.type.name!=="paragraph")continue;let C=f.attrs.pPrChange;if(!Array.isArray(C))continue;let p=C.findIndex(g=>g.info.id===e);if(!(p<0))if(t==="reject"&&u.prior){let g=Ue(f.attrs,u.prior,u.current),T=C.slice();T.splice(p,1),l.setNodeMarkup(c,void 0,{...g,pPrChange:T.length>0?T:null});}else Je(l,c,p);}let P=[...d].sort((u,c)=>c.pos-u.pos);for(let u of P){let c=l.mapping.map(u.pos),f=l.doc.nodeAt(c);if(!f||f.type.name!=="tableCell"&&f.type.name!=="tableHeader")continue;let C=f.attrs.cellMarker;!C||C.info.revisionId!==e||l.setNodeMarkup(c,void 0,{...f.attrs,cellMarker:null});}let v=[...i].sort((u,c)=>c.pos-u.pos);for(let u of v){let c=l.mapping.map(u.pos),f=l.doc.nodeAt(c);if(!f||f.type.name!=="tableRow")continue;let C=f.attrs.trIns,p=f.attrs.trDel,g=C?.revisionId===e,T=p?.revisionId===e;if(!g&&!T)continue;if(t==="reject"&&g||t==="accept"&&T){let k=l.doc.resolve(c+1),w=k.node(k.depth-1),I=k.before(k.depth-1);if(w?.type.name==="table"&&w.childCount>1)l.delete(c,c+f.nodeSize);else if(w?.type.name==="table")if(l.doc.resolve(I).parent.childCount===1){let U=l.doc.type.schema.nodes.paragraph;l.replaceWith(I,I+w.nodeSize,U.create());}else l.delete(I,I+w.nodeSize);else {let A={...f.attrs};g&&(A.trIns=null),T&&(A.trDel=null),l.setNodeMarkup(c,void 0,A);}}else {let k={...f.attrs};g&&(k.trIns=null),T&&(k.trDel=null),l.setNodeMarkup(c,void 0,k);}}return l.steps.length===0?false:(r(l),true)}}function Ye(e){return M(e,"accept")}function qe(e){return M(e,"reject")}function J(e,t){let n=e.schema.marks.insertion,r=e.schema.marks.deletion;if(!n&&!r)return null;let s=null;return e.doc.descendants((o,a)=>{if(o.isInline){if(a>=t)return false;for(let i of o.marks)(i.type===n||i.type===r)&&(s={from:a,to:a+o.nodeSize,type:i.type===n?"insertion":"deletion"});}}),!s&&t<e.doc.content.size?J(e,e.doc.content.size):s}exports.A=xe;exports.B=Pe;exports.C=we;exports.D=Ie;exports.E=Ae;exports.F=Ee;exports.G=Me;exports.H=Re;exports.I=Be;exports.J=De;exports.K=Fe;exports.L=We;exports.M=Le;exports.N=ze;exports.O=He;exports.P=je;exports.Q=$;exports.R=Ye;exports.S=qe;exports.T=J;exports.a=q;exports.b=Q;exports.c=ee;exports.d=te;exports.e=re;exports.f=ne;exports.g=oe;exports.h=ae;exports.i=ie;exports.j=se;exports.k=le;exports.l=ce;exports.m=de;exports.n=ue;exports.o=pe;exports.p=me;exports.q=fe;exports.r=ge;exports.s=be;exports.t=he;exports.u=ye;exports.v=Ce;exports.w=Te;exports.x=Se;exports.y=ve;exports.z=ke;
|
|
1
|
+
'use strict';var chunk2KHWHVTA_js=require('./chunk-2KHWHVTA.js'),chunkWWBNJ7KF_js=require('./chunk-WWBNJ7KF.js'),chunk7HANRHHL_js=require('./chunk-7HANRHHL.js'),prosemirrorState=require('prosemirror-state');function O(e){let{$from:t}=e.selection,n=null,r=null,s=null,o=-1,a=-1;for(let i=t.depth;i>0;i--){let d=t.node(i);if(d.type.name==="tableCell"||d.type.name==="tableHeader"){s=d;let l=t.node(i-1);if(l?.type.name==="tableRow"){let b=0;l.forEach((h,y,S)=>{if(a===-1){if(S===t.index(i-1)){a=b;return}b+=h.attrs.colspan||1;}});}}else if(d.type.name==="tableRow")t.node(i-1)?.type.name==="table"&&(o=t.index(i-1));else if(d.type.name==="table"){n=d,r=t.before(i);break}}return !n||r==null||!s||o<0||a<0?null:{table:n,tablePos:r,cell:s,row:o,col:a,rowspan:s.attrs.rowspan||1,colspan:s.attrs.colspan||1}}function H(e){let t=[],n=[],r=0;for(let s=0;s<e.childCount;s++){let o=e.child(s),a=0;o.forEach(i=>{for(;t[s]?.[a];)a++;let d=i.attrs.rowspan||1,l=i.attrs.colspan||1;n.push({data:i,row:s,col:a,rowspan:d,colspan:l});for(let b=s;b<s+d;b++){let h=t[b]??[];t[b]=h;for(let y=a;y<a+l;y++)h[y]=true;}a+=l,r=Math.max(r,a);});}return {anchors:n,totalCols:r}}function j(e,t,n,r,s){let o={...e.attrs},a=s.reduce((l,b)=>l+b,0),i=chunk2KHWHVTA_js.a(s,t,n),d=n!==(e.attrs.colspan||1)||r!==(e.attrs.rowspan||1);return o.colspan=n,o.rowspan=r,o.colwidth=null,a>0&&(o.width=Math.round(i/a*5e3),o.widthType="pct"),d&&(o._originalFormatting=null),o}function K(e,t,n,r){let s=t+1;for(let o=0;o<e.childCount;o++){let a=e.child(o),i=s+1,d=0;for(let l=0;l<a.childCount;l++){let b=a.child(l);if(o===n&&d===r)return i;d+=b.attrs.colspan||1,i+=b.nodeSize;}s+=a.nodeSize;}return null}function Y(e,t){let n=e.attrs.width??9360;return Array.isArray(e.attrs.columnWidths)&&e.attrs.columnWidths.length>0?[...e.attrs.columnWidths]:Array.from({length:t},()=>Math.floor(n/Math.max(t,1)))}function q(e){let t=O(e);return t?{...chunk2KHWHVTA_js.e(t.rowspan,t.colspan),capturedCellRow:t.row,capturedCellCol:t.col}:null}function Q(e,t,n,r,s,o){if(n<1||r<1)return false;let a=O(e);if(!a||!t)return false;let i=a;if(s!=null&&o!=null&&(s!==a.row||o!==a.col)){let{anchors:p}=H(a.table),g=p.find(T=>T.row===s&&T.col===o);if(!g)return false;i={...a,cell:g.data,row:g.row,col:g.col,rowspan:g.rowspan,colspan:g.colspan};}if(n<i.rowspan||r<i.colspan||n===1&&r===1)return false;let{anchors:d,totalCols:l}=H(i.table),b=Y(i.table,l),h=chunk2KHWHVTA_js.b(b,i.col,i.colspan,r),y=d.find(p=>p.row===i.row&&p.col===i.col);if(!y)return false;let S=chunk2KHWHVTA_js.c(d,y,n,r,i.table.childCount,p=>{if(p)return y.data;let g=y.data.type.schema.nodes.paragraph.create(),T=j(y.data,0,1,1,h);return y.data.type.create(T,g)}),x=i.row+i.rowspan,w=Array.from({length:S.newRowCount},(p,g)=>g<x?{...i.table.child(g)?.attrs??{}}:g<i.row+n?{...i.table.child(x-1)?.attrs??{}}:{...i.table.child(g-S.deltaRows)?.attrs??{}}),k=Array.from({length:S.newRowCount},()=>[]);S.anchors.sort((p,g)=>p.row===g.row?p.col-g.col:p.row-g.row).forEach(p=>{let g=j(p.data,p.col,p.colspan,p.rowspan,h);k[p.row].push(p.data.type.create(g,p.data.content));});let u=k.map((p,g)=>i.table.type.schema.nodes.tableRow.create(w[g],p)),c=i.table.type.create({...i.table.attrs,columnWidths:h},u),f=e.tr.replaceWith(i.tablePos,i.tablePos+i.table.nodeSize,c),C=f.doc.nodeAt(i.tablePos);if(C){let p=K(C,i.tablePos,i.row,i.col);p!=null&&(f=f.setSelection(prosemirrorState.TextSelection.near(f.doc.resolve(p+1))));}return t(f.scrollIntoView()),true}var m=chunkWWBNJ7KF_js.a.getCommands();function ee(e,t){return m.insertTable(e,t)}function te(e,t){return m.addRowAbove()(e,t)}function re(e,t){return m.addRowBelow()(e,t)}function ne(e,t){return m.deleteRow()(e,t)}function oe(e,t){return m.addColumnLeft()(e,t)}function ae(e,t){return m.addColumnRight()(e,t)}function ie(e,t){return m.deleteColumn()(e,t)}function se(e,t){return m.deleteTable()(e,t)}function le(e,t){return m.selectTable()(e,t)}function ce(e,t){return m.selectRow()(e,t)}function de(e,t){return m.selectColumn()(e,t)}function ue(e,t){return m.mergeCells()(e,t)}function pe(e,t){return m.splitCell()(e,t)}function me(e,t,n){return m.setCellBorder(e,t,n)}function fe(e,t){return m.setTableBorders(e,t)}function ge(e,t){return m.removeTableBorders()(e,t)}function be(e,t,n){return m.setAllTableBorders(n)(e,t)}function he(e,t,n){return m.setOutsideTableBorders(n)(e,t)}function ye(e,t,n){return m.setInsideTableBorders(n)(e,t)}function Ce(e){return m.setCellVerticalAlign(e)}function Te(e){return m.setCellMargins(e)}function Se(e){return m.setCellTextDirection(e)}function ke(){return m.toggleNoWrap()}function ve(e,t){return m.setRowHeight(e,t)}function xe(){return m.toggleHeaderRow()}function we(){return m.distributeColumns()}function Pe(){return m.autoFitContents()}function Ie(e){return m.setTableProperties(e)}function Ae(e){return m.applyTableStyle(e)}function Ee(e){return m.setCellFillColor(e)}function Me(e){return m.setTableBorderColor(e)}function Re(e){return m.setTableBorderWidth(e)}var Ne=chunkWWBNJ7KF_js.a.getCommands();function Be(e,t,n,r){if(!t)return true;let s=e.tr.insert(r,n),o=chunk7HANRHHL_js.i(e),a=e.schema.marks.insertion;return o&&a&&s.addMark(r,r+n.nodeSize,a.create({revisionId:o.revisionId,author:o.author,date:o.date})),t(s.scrollIntoView()),true}function We(e,t,n){return Ne.setImageWrapType(e,t,n)}function Fe(e){return (t,n)=>{let{from:r,to:s,empty:o}=t.selection;if(o)return false;let a=t.schema.marks.comment;if(!a)return false;if(n){let i=t.tr.addMark(r,s,a.create({commentId:e}));n(i);}return true}}function De(e){return (t,n)=>{let r=t.schema.marks.comment;if(!r)return false;if(n){let s=t.tr;t.doc.descendants((o,a)=>{if(o.isText)for(let i of o.marks)i.type===r&&i.attrs.commentId===e&&s.removeMark(a,a+o.nodeSize,i);}),s.steps.length>0&&n(s);}return true}}function V(e,t,n){return (r,s)=>{let o=r.schema.marks.insertion,a=r.schema.marks.deletion;if(!o&&!a)return false;let i=n==="accept"?o:a,d=n==="accept"?a:o;if(s){let l=r.tr,b=[];r.doc.nodesBetween(e,t,(h,y)=>{if(!h.isInline)return;let S=y+h.nodeSize,x=Math.max(e,y),w=Math.min(t,S);d&&h.marks.some(k=>k.type===d)&&b.push({from:x,to:w}),i&&h.marks.some(k=>k.type===i)&&l.removeMark(x,w,i);});for(let h of b.reverse())l.delete(h.from,h.to);l.steps.length>0&&s(l);}return true}}function Le(e,t){return V(e,t,"accept")}function ze(e,t){return V(e,t,"reject")}function _(e){let t=new Set,n=[],r=a=>{typeof a=="number"&&!t.has(a)&&(t.add(a),n.push(a));},s=e.schema.marks.insertion,o=e.schema.marks.deletion;return e.doc.descendants(a=>{if(a.type.name==="paragraph"){r(a.attrs.pPrIns?.revisionId),r(a.attrs.pPrDel?.revisionId);let i=a.attrs.pPrChange;if(Array.isArray(i))for(let d of i)r(d.info.id);}if(a.type.name==="tableRow"){r(a.attrs.trIns?.revisionId),r(a.attrs.trDel?.revisionId);let i=a.attrs.trPrChange;if(Array.isArray(i))for(let d of i)r(d.info.id);}if(a.type.name==="tableCell"||a.type.name==="tableHeader"){let i=a.attrs.cellMarker;r(i?.info?.revisionId);let d=a.attrs.tcPrChange;if(Array.isArray(d))for(let l of d)r(l.info.id);}if(a.type.name==="table"){let i=a.attrs.tblPrChange;if(Array.isArray(i))for(let d of i)r(d.info.id);}if(a.isInline)for(let i of a.marks)(s&&i.type===s||o&&i.type===o)&&r(i.attrs.revisionId);}),n}function He(){return (e,t)=>{let n=_(e);if(n.length===0)return false;if(!t)return true;let r=e,s=o=>{t(o),r=r.apply(o);};for(let o of n)M(o,"accept")(r,s);return true}}function je(){return (e,t)=>{let n=_(e);if(n.length===0)return false;if(!t)return true;let r=e,s=o=>{t(o),r=r.apply(o);};for(let o of n)M(o,"reject")(r,s);return true}}function $(e,t){let n=e.schema.marks.insertion,r=e.schema.marks.deletion;if(!n&&!r)return null;let s=null;return e.doc.descendants((o,a)=>{if(s)return false;if(o.isInline&&!(a+o.nodeSize<=t)){for(let i of o.marks)if(i.type===n||i.type===r)return s={from:Math.max(a,t),to:a+o.nodeSize,type:i.type===n?"insertion":"deletion"},false}}),!s&&t>0?$(e,0):s}function Oe(e,t){let n=[];return e.doc.descendants((r,s)=>{if(r.type.name!=="paragraph")return;let o=r.attrs.pPrIns,a=r.attrs.pPrDel;o&&o.revisionId===t&&n.push({pos:s,node:r,kind:"pPrIns"}),a&&a.revisionId===t&&n.push({pos:s,node:r,kind:"pPrDel"});}),n}function Ve(e,t){let n=[];return e.doc.descendants((r,s)=>{if(r.type.name!=="paragraph")return;let o=r.attrs.pPrChange;Array.isArray(o)&&o.forEach((a,i)=>{!a?.info||typeof a.info.id!="number"||a.info.id===t&&n.push({pos:s,node:r,entryIndex:i,prior:a.previousFormatting,current:a.currentFormatting});});}),n}function _e(e,t){let n=[],r=e.schema.marks.insertion,s=e.schema.marks.deletion;return e.doc.descendants((o,a)=>{if(o.isInline){for(let i of o.marks)if((r&&i.type===r||s&&i.type===s)&&i.attrs.revisionId===t){let d=i.type===r?"insertion":"deletion",l=n[n.length-1];l&&l.markName===d&&l.to===a?l.to=a+o.nodeSize:n.push({from:a,to:a+o.nodeSize,markName:d});}}}),n}function $e(e,t,n){let r=e.doc.nodeAt(t);if(!r)return;let s=t+r.nodeSize,o=e.doc.nodeAt(s);!o||o.type.name!=="paragraph"||(e.setNodeMarkup(t,void 0,{...o.attrs,pPrIns:null,pPrDel:null}),e.join(s));}function N(e,t,n){let r=e.doc.nodeAt(t);if(!r)return;let s={...r.attrs};s[n]=null,e.setNodeMarkup(t,void 0,s);}function Je(e,t,n){let r=e.doc.nodeAt(t);if(!r)return;let s=r.attrs.pPrChange;if(!Array.isArray(s)||n<0||n>=s.length)return;let o=s.slice();o.splice(n,1),e.setNodeMarkup(t,void 0,{...r.attrs,pPrChange:o.length>0?o:null});}function Ue(e,t,n){let r={...e},s=["alignment","spaceBefore","spaceAfter","lineSpacing","lineSpacingRule","beforeAutospacing","afterAutospacing","spacingExplicit","indentLeft","indentRight","indentFirstLine","hangingIndent","styleId","borders","shading","tabs","pageBreakBefore","keepNext","keepLines","contextualSpacing","bidi","outlineLevel","numPr"];for(let o of s)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]??null);return n?.numPr&&!Object.prototype.hasOwnProperty.call(t,"numPr")&&(r.numPr=null),r.numPr==null&&(r.listIsBullet=null,r.listNumFmt=null,r.listMarker=null),r}function Ge(e,t){let n=[];return e.doc.descendants((r,s)=>{if(r.type.name!=="tableRow")return;let o=r.attrs.trIns,a=r.attrs.trDel;o&&o.revisionId===t&&n.push({pos:s,node:r,kind:"trIns"}),a&&a.revisionId===t&&n.push({pos:s,node:r,kind:"trDel"});}),n}function Ke(e,t){let n=[];return e.doc.descendants((r,s)=>{if(r.type.name!=="tableCell"&&r.type.name!=="tableHeader")return;let o=r.attrs.cellMarker;o?.info?.revisionId===t&&n.push({pos:s,node:r,cellKind:o.kind});}),n}function M(e,t){return (n,r)=>{let s=Oe(n,e),o=_e(n,e),a=Ve(n,e),i=Ge(n,e),d=Ke(n,e);if(s.length===0&&o.length===0&&a.length===0&&i.length===0&&d.length===0)return false;if(!r)return true;let l=n.tr;l.setMeta(chunk7HANRHHL_js.g,true);let b=n.schema.marks.insertion,h=n.schema.marks.deletion,y=[...o].sort((u,c)=>c.from-u.from);for(let u of y){let c=u.markName==="insertion";if(t==="accept"&&!c||t==="reject"&&c)l.delete(u.from,u.to);else {let C=c?b:h;C&&l.removeMark(u.from,u.to,C);}}let S=[...s].sort((u,c)=>c.pos-u.pos);for(let u of S){let c=l.mapping.map(u.pos),f=l.doc.nodeAt(c);if(!f||f.type.name!=="paragraph")continue;let C=u.kind==="pPrIns"&&f.attrs.pPrIns?.revisionId===e,p=u.kind==="pPrDel"&&f.attrs.pPrDel?.revisionId===e;if(!C&&!p)continue;if(t==="reject"&&u.kind==="pPrIns"||t==="accept"&&u.kind==="pPrDel"){let T=c+f.nodeSize,R=l.doc.nodeAt(T);!R||R.type.name!=="paragraph"?N(l,c,u.kind):(N(l,c,u.kind),$e(l,c));}else N(l,c,u.kind);}let x=[...a].sort((u,c)=>c.pos-u.pos);for(let u of x){let c=l.mapping.map(u.pos),f=l.doc.nodeAt(c);if(!f||f.type.name!=="paragraph")continue;let C=f.attrs.pPrChange;if(!Array.isArray(C))continue;let p=C.findIndex(g=>g.info.id===e);if(!(p<0))if(t==="reject"&&u.prior){let g=Ue(f.attrs,u.prior,u.current),T=C.slice();T.splice(p,1),l.setNodeMarkup(c,void 0,{...g,pPrChange:T.length>0?T:null});}else Je(l,c,p);}let w=[...d].sort((u,c)=>c.pos-u.pos);for(let u of w){let c=l.mapping.map(u.pos),f=l.doc.nodeAt(c);if(!f||f.type.name!=="tableCell"&&f.type.name!=="tableHeader")continue;let C=f.attrs.cellMarker;!C||C.info.revisionId!==e||l.setNodeMarkup(c,void 0,{...f.attrs,cellMarker:null});}let k=[...i].sort((u,c)=>c.pos-u.pos);for(let u of k){let c=l.mapping.map(u.pos),f=l.doc.nodeAt(c);if(!f||f.type.name!=="tableRow")continue;let C=f.attrs.trIns,p=f.attrs.trDel,g=C?.revisionId===e,T=p?.revisionId===e;if(!g&&!T)continue;if(t==="reject"&&g||t==="accept"&&T){let v=l.doc.resolve(c+1),P=v.node(v.depth-1),I=v.before(v.depth-1);if(P?.type.name==="table"&&P.childCount>1)l.delete(c,c+f.nodeSize);else if(P?.type.name==="table")if(l.doc.resolve(I).parent.childCount===1){let U=l.doc.type.schema.nodes.paragraph;l.replaceWith(I,I+P.nodeSize,U.create());}else l.delete(I,I+P.nodeSize);else {let A={...f.attrs};g&&(A.trIns=null),T&&(A.trDel=null),l.setNodeMarkup(c,void 0,A);}}else {let v={...f.attrs};g&&(v.trIns=null),T&&(v.trDel=null),l.setNodeMarkup(c,void 0,v);}}return l.steps.length===0?false:(r(l),true)}}function Ye(e){return M(e,"accept")}function qe(e){return M(e,"reject")}function J(e,t){let n=e.schema.marks.insertion,r=e.schema.marks.deletion;if(!n&&!r)return null;let s=null;return e.doc.descendants((o,a)=>{if(o.isInline){if(a>=t)return false;for(let i of o.marks)(i.type===n||i.type===r)&&(s={from:a,to:a+o.nodeSize,type:i.type===n?"insertion":"deletion"});}}),!s&&t<e.doc.content.size?J(e,e.doc.content.size):s}function Qe(e){return e.doc.attrs.watermark??null}function Xe(e){return (t,n)=>(n&&n(t.tr.setDocAttribute("watermark",e)),true)}exports.A=xe;exports.B=we;exports.C=Pe;exports.D=Ie;exports.E=Ae;exports.F=Ee;exports.G=Me;exports.H=Re;exports.I=Be;exports.J=We;exports.K=Fe;exports.L=De;exports.M=Le;exports.N=ze;exports.O=He;exports.P=je;exports.Q=$;exports.R=Ye;exports.S=qe;exports.T=J;exports.U=Qe;exports.V=Xe;exports.a=q;exports.b=Q;exports.c=ee;exports.d=te;exports.e=re;exports.f=ne;exports.g=oe;exports.h=ae;exports.i=ie;exports.j=se;exports.k=le;exports.l=ce;exports.m=de;exports.n=ue;exports.o=pe;exports.p=me;exports.q=fe;exports.r=ge;exports.s=be;exports.t=he;exports.u=ye;exports.v=Ce;exports.w=Te;exports.x=Se;exports.y=ke;exports.z=ve;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js');function C(t){let o=t?.package.headers;if(o){for(let n of o.values())if(n.watermark)return n.watermark}}function R(t){let o=t.package.headers;if(!o||o.size===0)return t;let n=false,s=new Map;for(let[a,i]of o)if(i.watermark){let{watermark:d,...u}=i;s.set(a,u),n=true;}else s.set(a,i);return n?{...t,package:{...t.package,headers:s}}:t}function y(t,o){let n=t.package.headers;if(!n||n.size===0)return t;let s=new Map;for(let[a,i]of n)s.set(a,{...i,watermark:{...o}});return {...t,package:{...t.package,headers:s}}}function $(t){let o=t.package.document,n=[];if(o.sections)for(let s of o.sections)s.properties&&n.push(s.properties);return o.finalSectionProperties&&n.push(o.finalSectionProperties),n}function M(t,o){let n=t.package,s=n.document,a=n.headers,i=$(t),d=new Set;if(a)for(let e of a.values())d.add(e.hdrFtrType);let u=!a||a.size===0,F=i.some(e=>e.titlePg),D=i.some(e=>e.evenAndOddHeaders),h=u,g=F&&!d.has("first"),k=D&&!d.has("even");if(!h&&!g&&!k)return t;let f=n.relationships?new Map(n.relationships):new Map,H=new Map(a??[]),p=new Set;for(let e of f.values())e.target&&p.add(e.target.replace(/^\/?word\//,"").toLowerCase());function T(){let e=1;for(;p.has(`header${e}.xml`);)e++;let r=`header${e}.xml`;return p.add(r.toLowerCase()),r}function v(e){let r=`rIdWmHdr${e[0].toUpperCase()}${e.slice(1)}`,c=1;for(;f.has(r);)r=`rIdWmHdr${e[0].toUpperCase()}${e.slice(1)}${c++}`;return f.set(r,{id:r,type:chunkZ3LGMBJC_js.a.header,target:T()}),H.set(r,{type:"header",hdrFtrType:e,content:[],watermark:{...o}}),r}let l={};function x(e){return l[e]??(l[e]=v(e))}function m(e,r){let c=e?.headerReferences?[...e.headerReferences]:[];return c.some(I=>I.type===r)?e??{}:(c.push({type:r,rId:x(r)}),{...e??{},headerReferences:c})}function P(e){let r=e;return h&&(r=m(r,"default")),g&&r?.titlePg&&(r=m(r,"first")),k&&r?.evenAndOddHeaders&&(r=m(r,"even")),r}let W=P(s.finalSectionProperties),w=s.sections?.map(e=>({...e,properties:P(e.properties)??e.properties}));return {...t,package:{...n,relationships:f,headers:H,document:{...s,finalSectionProperties:W,...w?{sections:w}:{}}}}}function O(t,o){if(!o)return R(t);let n=y(t,o);return M(n,o)}
|
|
2
|
+
exports.a=C;exports.b=O;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkIMKU4O3P_js=require('./chunk-IMKU4O3P.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkFIGLFSNR_js=require('./chunk-FIGLFSNR.js'),chunkJFZIXFRC_js=require('./chunk-JFZIXFRC.js'),chunkN3Y5BUKV_js=require('./chunk-N3Y5BUKV.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function q(e,t,n,r){let i=e-t-n,o=(r.count-1)*r.gap;return (i-o)/r.count}function fe(e){let t={...e.pageSize},n={...e.margins},r=e.columns??{count:1,gap:0},i=false,o,s,a=[],l=[];function u(){return t.h-n.bottom}function c(){return u()-n.top}function f(){return t.w-n.left-n.right}if(c()<=0)throw new Error(`Paginator: page size and margins yield no content area (pageSize=${Math.round(t.w)}x${Math.round(t.h)} margins top=${Math.round(n.top)} bottom=${Math.round(n.bottom)} left=${Math.round(n.left)} right=${Math.round(n.right)})`);let b=q(t.w,n.left,n.right,r),S=n.top;function y(d){return n.left+d*(b+r.gap)}function M(){(o||s)&&(o&&(t=o),s&&(n=s),o=void 0,s=void 0,b=q(t.w,n.left,n.right,r));let d=a.length+1,w=n.top,I=u(),m=e.footnoteReservedHeights?.get(d)??0,p=I-m,x={number:d,fragments:[],margins:{...n},size:{...t},footnoteReservedHeight:m>0?m:void 0,columns:r.count>1?{...r}:void 0},h={page:x,cursorY:w,columnIndex:0,topMargin:w,contentBottom:p,trailingSpacing:0};return a.push(x),l.push(h),S=w,e.onNewPage&&e.onNewPage(h),h}function P(){return l.length===0?M():l[l.length-1]}function T(d){return d.contentBottom-d.cursorY}function v(d,w){let I=w||P();return T(I)>=d}function F(d){return d.columnIndex<r.count-1?(d.columnIndex+=1,d.cursorY=S,d.trailingSpacing=0,d):M()}function L(d){let w=P(),I=Number.isFinite(d)&&d>0?d:0;for(;!v(I,w);){let m=w.contentBottom-w.topMargin;if(I>m)return i||(i=true,console.warn(`Paginator: fragment height ${I.toFixed(0)}px exceeds page content height ${m.toFixed(0)}px; placing with overflow.`)),w.cursorY!==w.topMargin&&(w=F(w)),w;w=F(w);}return w}function C(d,w,I=0,m=0){let p=Math.max(I,P().trailingSpacing),x=p+w,h=L(x),B=p,N=y(h.columnIndex),k=h.cursorY+B;return d.x=N,d.y=k,h.page.fragments.push(d),h.cursorY=k+w,h.trailingSpacing=m,{state:h,x:N,y:k}}function g(){if(l.length>0){let d=l[l.length-1];if(d.page.fragments.length===0&&d.cursorY===d.topMargin)return d}return M()}function R(){let d=P();return F(d)}function H(d){r=d,b=q(t.w,n.left,n.right,r);let w=P();w.page.columns=r.count>1?{...r}:void 0,S=w.cursorY,w.columnIndex=0;}function W(d,w,I=true){if(!I){o=d?{...d}:o,s=w?{...w}:s;return}if(d&&(t={...d}),w&&(n={...w}),c()<=0)throw new Error("Paginator: section page size and margins yield no content area");b=q(t.w,n.left,n.right,r),o=void 0,s=void 0;}return {pages:a,states:l,get columnWidth(){return b},get columns(){return {...r}},getCurrentState:P,getAvailableHeight:()=>T(P()),getContentWidth:f,fits:d=>v(d),ensureFits:L,addFragment:C,forcePageBreak:g,forceColumnBreak:R,getColumnX:y,updateColumns:H,updatePageLayout:W}}function ge(e){let t=new Map,n=new Set;for(let r=0;r<e.length;r++){if(n.has(r))continue;let i=e[r];if(i.kind!=="paragraph"||!i.attrs?.keepNext)continue;let s=[r],a=r;for(let c=r+1;c<e.length;c++){let f=e[c];if(f.kind==="sectionBreak"||f.kind==="pageBreak"||f.kind==="columnBreak"||f.kind!=="paragraph")break;if(f.attrs?.keepNext)s.push(c),a=c,n.add(c);else break}let l=a+1,u=-1;if(l<e.length){let c=e[l];c.kind!=="sectionBreak"&&c.kind!=="pageBreak"&&c.kind!=="columnBreak"&&(u=l);}t.set(r,{startIndex:r,endIndex:a,memberIndices:s,anchorIndex:u});}return t}function me(e,t,n){let r=0;for(let i of e.memberIndices){let o=t[i],s=n[i];if(o.kind!=="paragraph"||s.kind!=="paragraph")continue;let a=o,l=s,u=a.attrs?.spacing?.before??0;r+=u,r+=l.totalHeight;let c=a.attrs?.spacing?.after??0;r+=c;}if(e.anchorIndex!==-1){let i=n[e.anchorIndex];if(i?.kind==="paragraph"){let o=i;o.lines.length>0&&(r+=o.lines[0].lineHeight);}}return r}function pe(e){let t=new Set;for(let n of e.values())for(let r=1;r<n.memberIndices.length;r++)t.add(n.memberIndices[r]);return t}function it(e){return e.kind!=="paragraph"?false:e.attrs?.keepLines===true}function de(e){return e.kind!=="paragraph"?false:e.attrs?.pageBreakBefore===true}function K(e){return e.displayMode==="float"||chunkJFZIXFRC_js.a(e.wrapType)||e.wrapType==="topAndBottom"}function ot(e){return K(e)&&e.wrapType==="topAndBottom"}function at(e){return K(e)&&!chunkJFZIXFRC_js.b(e.wrapType)&&e.wrapType!=="topAndBottom"}function qt(e,t,n){if(!(!e||e<=0)){if(t==="pct")return n*e/5e3;if(!t||t==="dxa"||t==="auto")return chunk4Q2IP5FW_js.c(e)}}function Ce(e){let t=new Map,n=[];for(let r=0;r<e.rows.length;r++){let i=e.rows[r]?.cells??[],o=t.get(r)??new Set,s=0;for(;o.has(s);)s++;for(let a=0;a<i.length;a++){let l=i[a];if(!l)continue;let u=l.colSpan??1,c=l.rowSpan??1;if(n.push({rowIndex:r,cellIndex:a,columnIndex:s,colSpan:u,rowSpan:c}),c>1)for(let f=r+1;f<r+c;f++){t.has(f)||t.set(f,new Set);let b=t.get(f);for(let S=0;S<u;S++)b.add(s+S);}for(s+=u;o.has(s);)s++;}}return n}function Jt(e){return Math.max(1,...e.rows.map(t=>t.cells.reduce((n,r)=>n+Math.max(1,r.colSpan??1),0)))}function Qt(e,t,n){if(t<=0)return [];let r=n>0?n/t:0;if(e.length===0)return Array(t).fill(r);let i=e.slice(0,t),o=t-i.length;if(o>0){let c=i.filter(b=>b>0),f=c.length>0?c.reduce((b,S)=>b+S,0)/c.length:r;i=i.concat(Array(o).fill(f));}let s=i.reduce((c,f)=>c+(f>0?f:0),0),a=i.filter(c=>c<=0).length;if(s<=0)return Array(t).fill(r);if(a===0)return i;let l=Math.max(0,n-s),u=l>0?l/a:s/Math.max(1,t-a);return i.map(c=>c>0?c:u)}function Re(e,t,n){let r=[],i=[],o=n,s=0,a=t?.length??0;for(let l=0;l<a;l++){let u=t[l],c=e?.[l];if(c?.kind==="paragraph"&&u?.kind==="paragraph"){let f=c.attrs?.spacing;o+=Math.max(s,f?.before??0);let b=[];for(let S of u.lines)o+=S.floatSkipBefore??0,b.push(o),o+=S.lineHeight,i.push(o);r.push(b),s=f?.after??0;}else u&&"totalHeight"in u&&typeof u.totalHeight=="number"?(o+=s+u.totalHeight,r.push([]),i.push(o),s=0):r.push([]);}return {lineTops:r,flatBottoms:i,contentHeight:o-n+s}}function Le(e,t){let n=t.rows.length,r=[],i=0;for(let a=0;a<n;a++)r.push(i),i+=t.rows[a]?.height??0;r.push(i);let o=Ce(e),s=[];for(let a=0;a<n;a++){let l=t.rows[a]?.height??0,u=new Set;u.add(l);for(let c of o){if(c.rowIndex>a||c.rowIndex+c.rowSpan-1<a)continue;let f=e.rows[c.rowIndex]?.cells?.[c.cellIndex],b=t.rows[c.rowIndex]?.cells?.[c.cellIndex];if(!f||!b)continue;let S=f.padding?.top??0,{flatBottoms:y}=Re(f.blocks,b.blocks,S),M=r[a]-r[c.rowIndex];for(let P of y){let T=P-M;T>0&&T<l&&u.add(T);}}s.push([...u].sort((c,f)=>c-f));}return {rowTops:r,breakOffsets:s}}function ke(e,t,n,r){let i=e.breakOffsets[t];if(!i||i.length===0)return 0;let o=n+r,s=0;for(let a of i)if(!(a<=n))if(a<=o)s=a-n;else break;return s}var st=1440,he=96,ve=st/he,Ee=11,We="Calibri",lt=1,ut=.8,ct=.2,$=null;function be(){if(!$){let e=typeof document<"u"?document.createElement("canvas"):null;if(!e)throw new Error("Canvas not available. Ensure this runs in a DOM environment.");if($=e.getContext("2d"),!$)throw new Error("Failed to get 2D context from canvas")}return $}function sn(){$=null;}var Ie=new Map;function He(e){let t=Ie.get(e);if(t===void 0){let n=chunkN3Y5BUKV_js.a(e);t={cssFallback:n.cssFallback,singleLineRatio:n.singleLineRatio},Ie.set(e,t);}return t}function ft(e){return He(e).cssFallback}function xe(e){let t=[];e.italic&&t.push("italic"),e.bold&&t.push("bold");let n=e.fontSize??Ee,r=Y(n);t.push(`${r}px`);let i=e.fontFamily??We;return t.push(ft(i)),t.join(" ")}function j(e){let t=e.fontSize??Ee,n=e.fontFamily??We,r=Y(t),i=r*ut,o=r*ct,s=r*lt;try{let l=be();l.font=xe(e);let u=l.measureText("Hg");typeof u.actualBoundingBoxAscent=="number"&&typeof u.actualBoundingBoxDescent=="number"&&(i=u.actualBoundingBoxAscent,o=u.actualBoundingBoxDescent);}catch{}s=Math.max(s,i+o);let a=He(n).singleLineRatio;return {fontSize:t,ascent:i,descent:o,lineHeight:s,fontFamily:n,singleLineRatio:a}}function _(e,t){if(!e)return 0;let n=be();n.font=xe(t);let i=n.measureText(e).width;return t.letterSpacing&&e.length>1&&(i+=t.letterSpacing*(e.length-1)),i}function ln(e,t){let n=_(e,t),r=j(t);return {width:n,height:r.ascent+r.descent,ascent:r.ascent,descent:r.descent}}function Ae(e,t){let n=j(t);if(!e)return {width:0,charWidths:[],metrics:n};let r=be();r.font=xe(t);let i=t.letterSpacing??0,o=[],s=0;for(let a=0;a<e.length;a++){let l=e[a],c=r.measureText(l).width;i&&a<e.length-1&&(c+=i),o.push(c),s+=c;}return {width:s,charWidths:o,metrics:n}}function un(e,t){if(t.length===0||e<=0)return 0;let n=0;for(let r=0;r<t.length;r++){let i=t[r],o=n+i/2;if(e<=o)return r;n+=i;}return t.length}function cn(e,t){if(e<=0||t.length===0)return 0;let n=Math.min(e,t.length),r=0;for(let i=0;i<n;i++)r+=t[i];return r}function fn(e){return e/ve}function gn(e){return Math.round(e*ve)}function Y(e){return e*he/72}function gt(e){return e*72/he}function mn(e){return Y(e/2)}function pn(e){return gt(e)*2}function Se(e){return e/1440*96}function Me(e){return e/96*1440}function mt(e){let{explicitStops:t=[],defaultTabInterval:n=720,leftIndent:r=0}=e,i=t.filter(f=>f.val!=="clear").filter(f=>f.pos>=r),o=t.filter(f=>f.val==="clear").map(f=>f.pos),s=i.reduce((f,b)=>Math.max(f,b.pos),0),a=[...i];r>0&&!i.some(f=>f.pos<=r)&&(o.some(b=>Math.abs(b-r)<20)||a.push({val:"start",pos:r,leader:"none"}));let u=s>0?Math.max(s,r):r,c=r+14400;for(;u<c;){u+=n;let f=i.some(y=>Math.abs(y.pos-u)<20),b=o.some(y=>Math.abs(y-u)<20),S=r>0&&Math.abs(u-r)<20;!f&&!b&&!S&&a.push({val:"start",pos:u,leader:"none"});}return a.sort((f,b)=>f.pos-b.pos)}function Oe(e,t,n={}){let{defaultTabInterval:r=720}=t,i=Me(e),s=mt(t).find(u=>u.pos>i);if(!s){let u=Se(r),c=u-e%u;return c<=0&&(c=u),{width:c,alignment:"default"}}let l=Se(s.pos)-e;if(s.val==="center")l-=(n.followingWidth??0)/2;else if(s.val==="end")l-=n.followingWidth??0;else if(s.val==="decimal")l-=n.decimalPrefixWidth??0;else if(s.val==="bar")return {width:0,leader:s.leader,alignment:"bar"};if(l<1){let u=Se(r),c=u-e%u;return c<=0&&(c=u),{width:c,alignment:"default"}}return {width:l,leader:s.leader,alignment:s.val}}var pt="Calibri",dt=11;function ht(e){let t=e.attrs,n=e.runs?.find(o=>o.kind==="text"),r=t?.listMarkerFontFamily??n?.fontFamily??t?.defaultFontFamily??pt,i=t?.listMarkerFontSize??n?.fontSize??t?.defaultFontSize??dt;return {fontFamily:r,fontSize:i}}function _e(e){let t=e.attrs;if(!t?.listMarker||t.listMarkerHidden)return 0;let n=t.indent,r=n?.hanging??0;if(r>0)return r;let{fontFamily:i,fontSize:o}=ht(e),s={fontFamily:i,fontSize:o},a=_(t.listMarker,s),l=t.listMarkerSuffix??"tab";if(l==="nothing")return a;if(l==="space")return a+_(" ",s);let u=n?.left??0,c=n?.firstLine??0,f=u+c,b=f+a,S=(t.tabs??[]).filter(T=>T.val!=="clear"&&T.val!=="bar").map(T=>chunkIMKU4O3P_js.a(T.pos)).filter(T=>T>=b).sort((T,v)=>T-v)[0],y=chunkIMKU4O3P_js.a(t.defaultTabStopTwips??chunkFIGLFSNR_js.a),M=y>0?(Math.floor(b/y)+1)*y:void 0,P;return S!==void 0&&M!==void 0?P=Math.min(S,M):P=S??M,P===void 0?a+Y(o)*.5:P-f}var D=11,X="Calibri",bt=1.15,te=1,Z=.5;function ze(e,t,n,r=false){let i=1,o=e.length,s=0;for(;i<=o;){let a=i+o>>>1;_(e.slice(0,a),t)<=n?(s=a,i=a+1):o=a-1;}return r&&s===0?1:s}function V(e){return {fontFamily:e.fontFamily??X,fontSize:e.fontSize??D,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function De(e,t,n){let r=Y(e),i=n?.ascent??r*.8,o=n?.descent??r*.2,s=n?.singleLineRatio??1.15,a=r*s,l;if(t?.lineRule==="exact"&&t.line!==void 0)l=t.line;else if(t?.lineRule==="atLeast"&&t.line!==void 0){let u=a*te;l=Math.max(t.line,u);}else t?.line!==void 0&&t?.lineUnit==="multiplier"?l=a*t.line:t?.line!==void 0&&t?.lineUnit==="px"?l=t.line:l=a*te;return {ascent:i,descent:o,lineHeight:l}}function Ne(e,t,n){let r=j({fontSize:e,fontFamily:n??X}),i=De(e,t,r),o=t?.lineRule??"auto";if(o==="auto"||o==="atLeast"){let s=Y(e),a=Math.max(i.lineHeight,s*bt);if(a!==i.lineHeight)return {...i,lineHeight:a}}return i}function J(e){return e.kind==="text"}function Ze(e){return e.kind==="tab"}function Ue(e){return e.kind==="image"}function Xe(e){return e.kind==="lineBreak"}function Ge(e){return e.kind==="field"}function xt(e){return !e.text||e.text.replace(/\u00a0/g," ").trim().length===0}function St(e,t){let n=0;for(let r=t+1;r<e.length;r++){let i=e[r];if(Ze(i)||Xe(i))break;if(J(i))n+=_(i.text||"",V(i));else if(Ge(i)){let o={fontFamily:i.fontFamily??X,fontSize:i.fontSize??D,bold:i.bold,italic:i.italic};n+=_(i.fallback||"1",o);}else Ue(i)&&(n+=i.width||0);}return n}function Mt(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];(r===" "||r==="-"||r===" ")&&t.push(n+1);}return t}function Ke(e,t,n){let r=Math.max(1,n),i=Math.max(0,e),o=Math.max(0,t);return i>=r||o>=r||i+o>=r?{leftMargin:0,rightMargin:0}:{leftMargin:i,rightMargin:o}}function Tt(e,t,n){let r=e.runs,i=e.attrs,o=i?.spacing,s=n?.floatingZones,a=n?.paragraphYOffset??0,l=i?.indent,u=l?.left??0,c=l?.right??0,f=(l?.firstLine??0)-(l?.hanging??0),b=Math.max(1,t-u-c),S=(l?.hanging??0)===0?_e(e):0,y=Math.max(1,b-f-S),M=0,P=0,T=Y(D)*te,v=(m,p)=>{if(!s||s.length===0)return;let x=a+M,h=Ye(x,m,s,p,U)-x;h>0&&(M+=h,P+=h);};v(T,y);let F=ee(M,T,s,a),L=Math.max(1,Q(F,y)),C=[];if(r.length===0){if(i?.suppressEmptyParagraphHeight)return C.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,ascent:0,descent:0,lineHeight:0}),{kind:"paragraph",lines:C,totalHeight:0};let m=i?.defaultFontSize??D,p=i?.defaultFontFamily??X,x=Ne(m,o,p);C.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,...x});let h=x.lineHeight;return o?.before&&(h+=o.before),o?.after&&(h+=o.after),{kind:"paragraph",lines:C,totalHeight:h}}if(r.length===1&&J(r[0])&&xt(r[0])){let m=r[0],p=m.fontSize??i?.defaultFontSize??D,x=m.fontFamily??i?.defaultFontFamily??X,h=Ne(p,o,x);C.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,...h});let B=h.lineHeight;return o?.before&&(B+=o.before),o?.after&&(B+=o.after),{kind:"paragraph",lines:C,totalHeight:B}}let g={fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,maxFontSize:D,maxFontMetrics:null,maxImageHeightPx:0,availableWidth:L,leftOffset:F.leftMargin,rightOffset:F.rightMargin,segmentZones:F.segments},R=()=>{let m=De(g.maxFontSize,o,g.maxFontMetrics),p={...m};if(g.maxImageHeightPx>p.lineHeight){let h=g.maxImageHeightPx,B=p.descent;g.fromRun===g.toRun?(p.lineHeight=h+B*2,p.ascent=h+B):(p.lineHeight=h+B,p.ascent=h);}let x={fromRun:g.fromRun,fromChar:g.fromChar,toRun:g.toRun,toChar:g.toChar,width:g.width,...p};g.leftOffset>0&&(x.leftOffset=g.leftOffset),g.rightOffset>0&&(x.rightOffset=g.rightOffset),g.segmentZones?.length&&(x.segments=H(x,g.segmentZones)),P>0&&(x.floatSkipBefore=P,P=0),C.push(x),M+=m.lineHeight;},H=(m,p)=>{let x=p[0],h=p[1];if(!x)return;if(!h||m.width<=x.availableWidth+Z)return [{fromRun:m.fromRun,fromChar:m.fromChar,toRun:m.toRun,toChar:m.toChar,width:m.width,leftOffset:x.leftOffset,availableWidth:x.availableWidth}];if(m.fromRun!==m.toRun)return;let B=r[m.fromRun];if(!B||!J(B))return;let N=B,k=N.text.slice(m.fromChar,m.toChar),A=V(N),E=ze(k,A,x.availableWidth);if(E<=0||E>=k.length)return;let z=m.fromChar+E,O=k.slice(0,E),ie=k.slice(E);return [{fromRun:m.fromRun,fromChar:m.fromChar,toRun:m.toRun,toChar:z,width:_(O,A),leftOffset:x.leftOffset,availableWidth:x.availableWidth},{fromRun:m.fromRun,fromChar:z,toRun:m.toRun,toChar:m.toChar,width:_(ie,A),leftOffset:h.leftOffset,availableWidth:h.availableWidth}]},W=(m,p)=>{R();let x=Y(D)*te;v(x,b);let h=ee(M,x,s,a),B=Math.max(1,Q(h,b));g={fromRun:m,fromChar:p,toRun:m,toChar:p,width:0,maxFontSize:D,maxFontMetrics:null,maxImageHeightPx:0,availableWidth:B,leftOffset:h.leftMargin,rightOffset:h.rightMargin,segmentZones:h.segments};},d=m=>{let p=m.fontSize??D;(!g.maxFontMetrics||p>g.maxFontSize)&&(g.maxFontSize=p,g.maxFontMetrics=j(m));};for(let m=0;m<r.length;m++){let p=r[m];if(Xe(p)){g.toRun=m,g.toChar=0,W(m+1,0);continue}if(Ze(p)){let x=V(p);d(x);let h=St(r,m),B=g.width+(g.leftOffset??0),N=C.length===0,k=u+(N?f:0)+B,A={explicitStops:i?.tabs,leftIndent:Me(u)},E=Oe(k,A,{followingWidth:h}).width;if(B+E>g.availableWidth+Z){let z=g.availableWidth-B-h;z>1&&(E=z);}g.width+E>g.availableWidth+Z&&(W(m,0),d(x)),g.width+=E,g.toRun=m,g.toChar=1;continue}if(Ue(p)){let x=p.wrapType,h=p.displayMode==="float"||chunkJFZIXFRC_js.c(x);if(p.position&&h){g.toRun=m,g.toChar=1;continue}if(x==="topAndBottom"||p.displayMode==="block"){g.width>0&&W(m,0);let A=p.height,E=p.distTop??6,z=p.distBottom??6;g.toRun=m,g.toChar=1,g.maxImageHeightPx=A+E+z,W(m+1,0);continue}let B=p.width,k=p.height+(p.distTop??0)+(p.distBottom??0);k>g.maxImageHeightPx&&(g.maxImageHeightPx=k),g.width+B>g.availableWidth+Z&&W(m,0),g.width+=B,g.toRun=m,g.toChar=1;continue}if(Ge(p)){let x=p.fallback||"1",h={fontFamily:p.fontFamily??X,fontSize:p.fontSize??D,bold:p.bold,italic:p.italic};d(h);let B=_(x,h);g.width>0&&g.width+B>g.availableWidth+Z&&(W(m,0),d(h)),g.width+=B,g.toRun=m,g.toChar=1;continue}if(J(p)){let x=p,h=x.text,B=V(x);if(d(B),!h||h.length===0){g.toRun=m,g.toChar=0;continue}let N=Mt(h),k=0;for(;k<h.length;){let A=h.length;for(let O of N)if(O>k){A=O;break}let E=h.slice(k,A),z=_(E,B);if(z>g.availableWidth+Z){let O=0;for(;O<E.length;){let ie=g.availableWidth-g.width+Z,tt=E.slice(O),oe=ze(tt,B,ie);if(oe===0){if(g.width>0){W(m,k+O),d(B);continue}oe=1;}let ae=O+oe,nt=E.slice(O,ae),rt=_(nt,B);g.width+=rt,g.toRun=m,g.toChar=k+ae,O=ae,O<E.length&&(W(m,k+O),d(B));}k=A;continue}g.width>0&&g.width+z>g.availableWidth+Z&&(W(m,k),d(B)),g.width+=z,g.toRun=m,g.toChar=A,k=A;}}}R();let I=C.reduce((m,p)=>m+p.lineHeight+(p.floatSkipBefore??0),0);return o?.before&&(I+=o.before),o?.after&&(I+=o.after),{kind:"paragraph",lines:C,totalHeight:I}}function Cn(e,t){return e.map(n=>Tt(n,t))}function Rn(e){let t=V(e);return Ae(e.text,t).charWidths}function In(e,t){return e.map(n=>{let r=n.x-n.distLeft,i=n.x+n.width+n.distRight,o=n.y-n.distTop,s=n.y+n.height+n.distBottom;if(n.wrapType==="topAndBottom")return {leftMargin:0,rightMargin:0,topY:o,bottomY:s,fullWidthBlock:true};let a=0,l=0,u,c=n.wrapText??"bothSides";c==="right"?a=Te(i):c==="left"?l=ye(r,t):c==="largest"?{leftMargin:a,rightMargin:l}=wt(r,i,t):Pt(r,i,t)?u=Ft(r,i,t):n.side==="left"?a=Te(i):l=ye(r,t);let f=Ke(a,l,t);return {leftMargin:f.leftMargin,rightMargin:f.rightMargin,topY:o,bottomY:s,segments:u}})}function Q(e,t){return e.segments?.reduce((r,i)=>r+i.availableWidth,0)??t-e.leftMargin-e.rightMargin}function ee(e,t,n,r){if(!n||n.length===0)return {leftMargin:0,rightMargin:0};let i=0,o=0,s,a=r+e,l=a+t;for(let u of n)if(!(l<=u.topY||a>=u.bottomY)){if(u.fullWidthBlock)return {leftMargin:0,rightMargin:0,segments:[{leftOffset:0,availableWidth:0}]};if(u.segments?.length){s=s?yt(s,u.segments):u.segments;continue}i=Math.max(i,u.leftMargin),o=Math.max(o,u.rightMargin);}return {leftMargin:i,rightMargin:o,segments:s}}function Ye(e,t,n,r,i){if(!n||n.length===0)return e;let o=e;for(let s=0;s<n.length+2;s++){let a=ee(o,t,n,0);if(Q(a,r)>=i)return o;let u=o+t,c=1/0;for(let f of n)u<=f.topY||o>=f.bottomY||f.bottomY>o&&f.bottomY<c&&(c=f.bottomY);if(!Number.isFinite(c)||c<=o)return o;o=c;}return o}function yt(e,t){let n=[];for(let r of e)for(let i of t){let o=Math.max(r.leftOffset,i.leftOffset),s=Math.min(r.leftOffset+r.availableWidth,i.leftOffset+i.availableWidth);s>o&&n.push({leftOffset:o,availableWidth:s-o});}return n}var U=24;function Pt(e,t,n){return e>U&&t+U<n}function Ft(e,t,n){return [{leftOffset:0,availableWidth:Math.max(0,e)},{leftOffset:Math.max(0,t),availableWidth:Math.max(0,n-t)}].filter(r=>r.availableWidth>1)}function wt(e,t,n){let r=Math.max(0,e);return Math.max(0,n-t)>=r?{leftMargin:Te(t),rightMargin:0}:{leftMargin:0,rightMargin:ye(e,n)}}function Te(e){return Math.max(0,e)}function ye(e,t){return Math.max(0,t-e)}function Bt(e,t){return e==null||!Number.isFinite(e)?0:Math.max(0,Math.min(t,e))}function ne(e,t,n){if(e)return e.kind==="text"?typeof e.pmStart=="number"?e.pmStart+Bt(t,e.text.length):n==="end"?e.pmEnd:void 0:n==="end"?typeof e.pmEnd=="number"?e.pmEnd:typeof e.pmStart=="number"?e.pmStart+1:void 0:e.pmStart}function $e(e,t,n,r){if(t.lines.length===0||n>=r)return {pmStart:e.pmStart,pmEnd:e.pmEnd};let i=t.lines[n],o=t.lines[r-1],s=i?e.runs[i.fromRun]:void 0,a=o?e.runs[o.toRun]:void 0,l=n===0?e.pmStart??ne(s,i?.fromChar??0,"start"):ne(s,i?.fromChar??0,"start"),u=r>=t.lines.length?e.pmEnd??ne(a,o?.toChar??0,"end"):ne(a,o?.toChar??0,"end");return l==null&&(l=e.pmStart),u==null&&(u=e.pmEnd),l!=null&&u!=null&&u<=l&&(u=l+1),{pmStart:l,pmEnd:u}}var je={count:1,gap:0};function Ct(e,t,n){return {activeTopMargin:e.top,activeBottomMargin:e.bottom,activeLeftMargin:e.left,activeRightMargin:e.right,pendingTopMargin:null,pendingBottomMargin:null,pendingLeftMargin:null,pendingRightMargin:null,activePageSize:{...t},pendingPageSize:null,activeColumns:n?{...n}:{...je},pendingColumns:null,activeOrientation:null,pendingOrientation:null,hasAnyPages:false}}function Rt(e,t){return t.count>1}function re(e){return e?{count:e.count,gap:e.gap}:{...je}}function Lt(e,t,n){let r={...t},i=e.type??"continuous",o=e.margins,s=e.pageSize,a=e.orientation;o&&(typeof o.top=="number"&&(r.pendingTopMargin=Math.max(0,o.top)),typeof o.bottom=="number"&&(r.pendingBottomMargin=Math.max(0,o.bottom)),typeof o.left=="number"&&(r.pendingLeftMargin=Math.max(0,o.left)),typeof o.right=="number"&&(r.pendingRightMargin=Math.max(0,o.right))),s&&(r.pendingPageSize={w:s.w,h:s.h}),a&&(r.pendingOrientation=a);let l=Rt((e.margins,void 0),r.activeColumns);switch(i){case "nextPage":return r.pendingColumns=re(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false},state:r};case "evenPage":return r.pendingColumns=re(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false,requiredParity:"even"},state:r};case "oddPage":return r.pendingColumns=re(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false,requiredParity:"odd"},state:r};default:return l?(r.pendingColumns=re(void 0),{decision:{forcePageBreak:false,forceMidPageRegion:true},state:r}):{decision:{forcePageBreak:false,forceMidPageRegion:false},state:r}}}function kt(e){let t={...e};return t.pendingTopMargin!==null&&(t.activeTopMargin=t.pendingTopMargin,t.pendingTopMargin=null),t.pendingBottomMargin!==null&&(t.activeBottomMargin=t.pendingBottomMargin,t.pendingBottomMargin=null),t.pendingLeftMargin!==null&&(t.activeLeftMargin=t.pendingLeftMargin,t.pendingLeftMargin=null),t.pendingRightMargin!==null&&(t.activeRightMargin=t.pendingRightMargin,t.pendingRightMargin=null),t.pendingPageSize!==null&&(t.activePageSize=t.pendingPageSize,t.pendingPageSize=null),t.pendingColumns!==null&&(t.activeColumns=t.pendingColumns,t.pendingColumns=null),t.pendingOrientation!==null&&(t.activeOrientation=t.pendingOrientation,t.pendingOrientation=null),t}function It(e){return {top:e.pendingTopMargin??e.activeTopMargin,bottom:e.pendingBottomMargin??e.activeBottomMargin,left:e.pendingLeftMargin??e.activeLeftMargin,right:e.pendingRightMargin??e.activeRightMargin}}function vt(e){return e.pendingPageSize??e.activePageSize}function Et(e){return e.pendingColumns??e.activeColumns}function Wt(e,t){for(let n=0;n<e.pages.length;n++)for(let r of e.pages[n].fragments){if(r.pmStart==null)continue;let i=r.pmStart,o=r.pmEnd??i+1;if(t>=i&&t<o)return n}return null}var Ht={w:816,h:1056},G={top:96,right:96,bottom:96,left:96},Je={count:1,gap:0};function At(e,t,n){let r=[],i=[],o=t;for(let s=0;s<e.length;s++){if(e[s].kind!=="sectionBreak")continue;let a=e[s],l={pageSize:a.pageSize??o.pageSize,margins:a.margins??o.margins,columns:a.columns};r.push(l),i.push(s),o=l;}return r.push(n),{configs:r,breakIndices:i}}function Qe(e){if(e.runs.length===0)return true;if(e.runs.length!==1)return false;let t=e.runs[0];return t.kind==="text"&&(t.text??"")===""}function Ve(e){let t=e.attrs?.spacing?.before??0;return Qe(e)&&!e.attrs?.spacingExplicit?.before?0:t}function qe(e){let t=e.attrs?.spacing?.after??0;return Qe(e)&&!e.attrs?.spacingExplicit?.after?0:t}function et(e){for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n.kind!=="paragraph"||r.kind!=="paragraph")continue;let i=n.attrs,o=r.attrs;i?.contextualSpacing&&o?.contextualSpacing&&i.styleId&&i.styleId===o.styleId&&(i.spacing&&(i.spacing={...i.spacing,after:0}),o.spacing&&(o.spacing={...o.spacing,before:0}));}for(let t of e)if(t.kind==="table")for(let n of t.rows)for(let r of n.cells)et(r.blocks);}function Zn(e,t,n={}){if(e.length!==t.length)throw new Error(`layoutDocument: expected one measure per block (blocks=${e.length}, measures=${t.length})`);let r=n.pageSize??Ht,i={top:n.margins?.top??G.top,right:n.margins?.right??G.right,bottom:n.margins?.bottom??G.bottom,left:n.margins?.left??G.left,header:n.margins?.header??n.margins?.top??G.top,footer:n.margins?.footer??n.margins?.bottom??G.bottom};n.headerContentHeights,n.footerContentHeights,n.titlePage,n.evenAndOddHeaders;let o={...i},s=n.finalPageSize??r,a=n.finalMargins??o;if(r.w-o.left-o.right<=0)throw new Error("layoutDocument: page size and margins yield no content area");let u={pageSize:r,margins:o,columns:n.columns},c={pageSize:s,margins:a,columns:n.columns},{configs:f,breakIndices:b}=At(e,u,c),S=[...b.map(F=>e[F].type),n.bodyBreakType],y=f[0]??u,M=fe({pageSize:y.pageSize,margins:y.margins,columns:y.columns??Je,footnoteReservedHeights:n.footnoteReservedHeights});et(e);let P=ge(e),T=pe(P),v=0;for(let F=0;F<e.length;F++){let L=e[F],C=t[F];de(L)&&M.forcePageBreak();let g=P.get(F);if(g&&!T.has(F)){let R=me(g,e,t),H=M.getCurrentState(),W=M.getAvailableHeight(),d=H.contentBottom-H.topMargin;R<=d&&R>W&&H.page.fragments.length>0&&M.forcePageBreak();}switch(L.kind){case "paragraph":Ot(L,C,M,M.getContentWidth());break;case "table":L.floating?Yt(L,C,M,M.getContentWidth()):Nt(L,C,M);break;case "image":Dt(L,C,M);break;case "textBox":Ut(L,C,M);break;case "pageBreak":M.forcePageBreak();break;case "columnBreak":M.forceColumnBreak();break;case "sectionBreak":{let R=S[v+1]??S[v];Xt(L,M,f[v+1]??y,R),v++;break}default:chunkDROCYKAR_js.c(L,"runLayoutPipeline");}}return M.pages.length===0&&M.getCurrentState(),{pageSize:r,pages:M.pages,columns:n.columns,pageGap:n.pageGap}}function Ot(e,t,n,r){if(t.kind!=="paragraph")throw new Error("layoutParagraph: expected paragraph measure");let i=t.lines;if(i.length===0){let l=Ve(e),u=qe(e),c=n.getCurrentState(),f={kind:"paragraph",blockId:e.id,x:n.getColumnX(c.columnIndex),y:c.cursorY+l,width:r,height:0,fromLine:0,toLine:0,pmStart:e.pmStart,pmEnd:e.pmEnd};n.addFragment(f,0,l,u);return}let o=Ve(e),s=qe(e),a=0;for(;a<i.length;){let l=n.getCurrentState(),u=n.getAvailableHeight(),c=0,f=0;for(let F=a;F<i.length;F++){let L=i[F].lineHeight+(i[F].floatSkipBefore??0),C=c+L;if((a===0&&F===a?C+o:C)<=u||f===0)c=C,f++;else break}let b=a===0,S=a+f>=i.length,y=b?o:0,M=S?s:0,P=$e(e,t,a,a+f),T={kind:"paragraph",blockId:e.id,x:n.getColumnX(l.columnIndex),y:0,width:r,height:c,fromLine:a,toLine:a+f,pmStart:P.pmStart,pmEnd:P.pmEnd,continuesFromPrev:!b,continuesOnNext:!S},v=n.addFragment(T,c,y,M);T.y=v.y,a+=f,a<i.length&&n.ensureFits(i[a].lineHeight);}}function _t(e){let t=0;for(let n of e.rows)if(n.isHeader)t++;else break;return t}function zt(e,t){let n=0;for(let r=0;r<t&&r<e.rows.length;r++)n+=e.rows[r].height;return n}function Nt(e,t,n){if(t.kind!=="table")throw new Error("layoutTable: expected table measure");let r=t.rows;if(r.length===0)return;let i=_t(e),o=zt(t,i),s=Le(e,t),a=0,l=0;for(;a<r.length;){let u=n.getCurrentState(),c=a===0&&l===0,f=c?u.trailingSpacing:0,b=!c&&i>0?o:0,S=n.getAvailableHeight()-f-b,y=a,M=l,P=0,T=a,v=l,F=a,L,C=false;for(;T<r.length;){let w=r[T].height,I=T===y?v:0,m=w-I;if(P+m<=S){P+=m,T+=1,F=T;continue}let p=S-P,x=e.rows[T]?.cantSplit?0:ke(s,T,I,p);x>0?(P+=x,F=T+1,L=I+x,C=true):F>y||(P+=m,F=T+1);break}let g=b+P,R=F===r.length&&!C,H=n.getColumnX(u.columnIndex);e.justification==="center"?H=H+(n.columnWidth-t.totalWidth)/2:e.justification==="right"?H=H+n.columnWidth-t.totalWidth:e.indent&&(H+=e.indent);let W={kind:"table",blockId:e.id,x:H,y:0,width:t.totalWidth,height:g,fromRow:y,toRow:F,pmStart:e.pmStart,pmEnd:e.pmEnd,continuesFromPrev:!c,continuesOnNext:!R,headerRowCount:!c&&i>0?i:void 0,topClip:M>0?M:void 0,bottomClip:L},d=n.addFragment(W,g,0,0);if(W.y=d.y,W.x=H,C?(a=F-1,l=L??0):(a=F,l=0),a<r.length){let w=(i>0?o:0)+(r[a].height-l);n.ensureFits(w);}}}function Yt(e,t,n,r){if(t.kind!=="table")throw new Error("layoutFloatingTable: expected table measure");let i=n.getCurrentState(),o=e.floating,s=i.page,a=s.margins,l=t.totalWidth,u=t.totalHeight,c=s.size.h-a.top-a.bottom,f=a.left,b=a.top;o?.horzAnchor==="page"&&(f=0),o?.vertAnchor==="page"&&(b=0),o?.vertAnchor==="text"&&(b=i.cursorY);let S=n.getColumnX(i.columnIndex);if(o?.tblpX!==void 0)S=f+o.tblpX;else if(o?.tblpXSpec){let R=o.tblpXSpec;R==="left"||R==="inside"?S=f:R==="right"||R==="outside"?S=f+r-l:R==="center"&&(S=f+(r-l)/2);}else e.justification==="center"?S=f+(r-l)/2:e.justification==="right"&&(S=f+r-l);let y=i.cursorY,M=false;if(o?.tblpY!==void 0)y=b+o.tblpY,M=true;else if(o?.tblpYSpec){M=true;let R=o.tblpYSpec;R==="top"?y=b:R==="bottom"?y=b+c-u:R==="center"&&(y=b+(c-u)/2);}M||(y=n.ensureFits(u).cursorY);let P=a.left,T=a.left+r-l;Number.isFinite(T)&&(S=Math.max(P,Math.min(S,T)));let v={kind:"table",blockId:e.id,x:S,y,width:l,height:u,fromRow:0,toRow:e.rows.length,pmStart:e.pmStart,pmEnd:e.pmEnd,isFloating:true};i.page.fragments.push(v);let F=o?.leftFromText??0,L=o?.rightFromText??0,C=S-a.left-F,g=a.left+r-(S+l)-L;if(C<U&&g<U){let R=y+u+(o?.bottomFromText??0);R>i.cursorY&&(i.cursorY=R);}}function Dt(e,t,n){if(t.kind!=="image")throw new Error("layoutImage: expected image measure");if(e.anchor?.isAnchored){Zt(e,t,n);return}let r=n.ensureFits(t.height),i={kind:"image",blockId:e.id,x:n.getColumnX(r.columnIndex),y:0,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd},o=n.addFragment(i,t.height,0,0);i.y=o.y;}function Zt(e,t,n){let r=n.getCurrentState(),i=e.anchor,o=i.offsetH??n.getColumnX(r.columnIndex),s=i.offsetV??r.cursorY,a={kind:"image",blockId:e.id,x:o,y:s,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd,isAnchored:true,zIndex:i.behindDoc?-1:1};r.page.fragments.push(a);}function Ut(e,t,n){if(t.kind!=="textBox")throw new Error("layoutTextBox: expected textBox measure");if(K(e)){let s=n.getCurrentState(),a={kind:"textBox",blockId:e.id,x:n.getColumnX(s.columnIndex),y:s.cursorY,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd,isFloating:true,zIndex:e.wrapType==="behind"?-1:1};s.page.fragments.push(a);return}let r=n.ensureFits(t.height),i={kind:"textBox",blockId:e.id,x:n.getColumnX(r.columnIndex),y:0,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd},o=n.addFragment(i,t.height,0,0);i.y=o.y;}function Xt(e,t,n,r){switch(r??"nextPage"){case "nextPage":t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak();break;case "evenPage":{t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak().page.number%2!==0&&t.forcePageBreak();break}case "oddPage":{t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak().page.number%2===0&&t.forcePageBreak();break}case "continuous":t.updatePageLayout(n.pageSize,n.margins,false);break}t.updateColumns(n.columns??Je);}exports.A=Cn;exports.B=Rn;exports.C=fe;exports.D=ge;exports.E=me;exports.F=pe;exports.G=it;exports.H=de;exports.I=K;exports.J=ot;exports.K=at;exports.L=Re;exports.M=Ct;exports.N=Lt;exports.O=kt;exports.P=It;exports.Q=vt;exports.R=Et;exports.S=Wt;exports.T=At;exports.U=Zn;exports.V=zt;exports.a=qt;exports.b=Ce;exports.c=Jt;exports.d=Qt;exports.e=be;exports.f=sn;exports.g=xe;exports.h=j;exports.i=_;exports.j=ln;exports.k=Ae;exports.l=un;exports.m=cn;exports.n=fn;exports.o=gn;exports.p=Y;exports.q=gt;exports.r=mn;exports.s=pn;exports.t=In;exports.u=ee;exports.v=Oe;exports.w=ht;exports.x=_e;exports.y=Ke;exports.z=Tt;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
`)}function He(e){if(!(!e.fill||e.fill.type!=="solid"))return H(e.fill.color)}function Ve(e){if(e.outline?.color)return H(e.outline.color)}function _e(e){return e.outline?.width?chunk4Q2IP5FW_js.e(e.outline.width):0}function me(e){if(!e)return;let n=parseInt(e,10);if(!isNaN(n))return n/6e4}function ge(e,n){let t=
|
|
1
|
+
'use strict';var chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js'),chunk3R7QHNI5_js=require('./chunk-3R7QHNI5.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');var pe={accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",dk1:"dk1",lt1:"lt1",dk2:"dk2",lt2:"lt2",tx1:"text1",tx2:"text2",bg1:"background1",bg2:"background2",hlink:"hlink",folHlink:"folHlink"},G={black:"000000",white:"FFFFFF",red:"FF0000",green:"00FF00",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF"};function J(e,n){let t=chunk3R7QHNI5_js.i(n),i=t.find(r=>r.name==="a:shade");if(i){let r=chunk3R7QHNI5_js.j(i,null,"val");r&&(e.themeShade=Math.round(parseInt(r,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}let o=t.find(r=>r.name==="a:tint");if(o){let r=chunk3R7QHNI5_js.j(o,null,"val");r&&(e.themeTint=Math.round(parseInt(r,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}return e}function K(e){if(!e)return;let n=chunk3R7QHNI5_js.i(e),t=n.find(l=>l.name==="a:srgbClr");if(t){let l=chunk3R7QHNI5_js.j(t,null,"val");if(l)return J({rgb:l},t)}let i=n.find(l=>l.name==="a:schemeClr");if(i){let l=chunk3R7QHNI5_js.j(i,null,"val");if(l){let u={themeColor:pe[l]??"dk1"};return J(u,i)}}let o=n.find(l=>l.name==="a:sysClr");if(o)return {rgb:chunk3R7QHNI5_js.j(o,null,"lastClr")??"000000"};let r=n.find(l=>l.name==="a:prstClr");if(r){let l=chunk3R7QHNI5_js.j(r,null,"val");if(l&&G[l])return {rgb:G[l]}}}function N(e){if(!e)return;let n=chunk3R7QHNI5_js.i(e);if(n.find(i=>i.name==="a:noFill"))return {type:"none"};let t=n.find(i=>i.name==="a:solidFill");if(t)return {type:"solid",color:K(t)};if(n.find(i=>i.name==="a:gradFill"))return {type:"gradient"}}function S(e){let n=e?chunk3R7QHNI5_js.h(e,"a:ln"):null;if(!n)return;let t=chunk3R7QHNI5_js.i(n);if(t.find(u=>u.name==="a:noFill"))return;let i={},o=chunk3R7QHNI5_js.j(n,null,"w");o&&(i.width=parseInt(o,10));let r=t.find(u=>u.name==="a:solidFill");r&&(i.color=K(r));let l=t.find(u=>u.name==="a:prstDash");if(l){let u=chunk3R7QHNI5_js.j(l,null,"val");u&&(i.style=u);}return i}function L(e){if(!e)return;let n=chunk3R7QHNI5_js.j(e,null,"relativeFrom")??"column",t=chunk3R7QHNI5_js.h(e,"wp:align");if(t){let o=chunk3R7QHNI5_js.k(t);return {relativeTo:n,alignment:o}}let i=chunk3R7QHNI5_js.h(e,"wp:posOffset");if(i){let o=chunk3R7QHNI5_js.k(i),r=parseInt(o,10);return {relativeTo:n,posOffset:isNaN(r)?0:r}}return {relativeTo:n}}function z(e){if(!e)return;let n=chunk3R7QHNI5_js.j(e,null,"relativeFrom")??"paragraph",t=chunk3R7QHNI5_js.h(e,"wp:align");if(t){let o=chunk3R7QHNI5_js.k(t);return {relativeTo:n,alignment:o}}let i=chunk3R7QHNI5_js.h(e,"wp:posOffset");if(i){let o=chunk3R7QHNI5_js.k(i),r=parseInt(o,10);return {relativeTo:n,posOffset:isNaN(r)?0:r}}return {relativeTo:n}}function Q(e){let n=chunk3R7QHNI5_js.h(e,"wp:positionH"),t=chunk3R7QHNI5_js.h(e,"wp:positionV");if(!(!n&&!t))return {horizontal:L(n)??{relativeTo:"column"},vertical:z(t)??{relativeTo:"paragraph"}}}var W=["wp:wrapNone","wp:wrapSquare","wp:wrapTight","wp:wrapThrough","wp:wrapTopAndBottom"];function D(e,n,t){if(!e){let p={type:n?"behind":"inFront"};return t?.distT!==void 0&&(p.distT=t.distT),t?.distB!==void 0&&(p.distB=t.distB),t?.distL!==void 0&&(p.distL=t.distL),t?.distR!==void 0&&(p.distR=t.distR),p}let o=(e.name||"").replace("wp:",""),r;switch(o){case "wrapNone":r=n?"behind":"inFront";break;case "wrapSquare":r="square";break;case "wrapTight":r="tight";break;case "wrapThrough":r="through";break;case "wrapTopAndBottom":r="topAndBottom";break;default:r="square";}let l={type:r},u=chunk3R7QHNI5_js.j(e,null,"wrapText");u&&(l.wrapText=u);let s=chunk3R7QHNI5_js.l(e,null,"distT")??t?.distT,c=chunk3R7QHNI5_js.l(e,null,"distB")??t?.distB,m=chunk3R7QHNI5_js.l(e,null,"distL")??t?.distL,g=chunk3R7QHNI5_js.l(e,null,"distR")??t?.distR;return s!==void 0&&(l.distT=s),c!==void 0&&(l.distB=c),m!==void 0&&(l.distL=m),g!==void 0&&(l.distR=g),l}function Y(e){let n=chunk3R7QHNI5_js.i(e),t=chunk3R7QHNI5_js.j(e,null,"behindDoc")==="1",i=n.find(r=>W.includes(r.name??"")),o={distT:chunk3R7QHNI5_js.l(e,null,"distT")??void 0,distB:chunk3R7QHNI5_js.l(e,null,"distB")??void 0,distL:chunk3R7QHNI5_js.l(e,null,"distL")??void 0,distR:chunk3R7QHNI5_js.l(e,null,"distR")??void 0};return D(i??null,t,o)}var ce={accent1:"5B9BD5",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"4472C4",accent6:"70AD47",dk1:"000000",lt1:"FFFFFF",dk2:"1F497D",lt2:"EEECE1",text1:"000000",text2:"1F497D",background1:"FFFFFF",background2:"EEECE1",hlink:"0563C1",folHlink:"954F72"};function H(e){if(e){if(e.rgb)return `#${e.rgb}`;if(e.themeColor)return `#${ce[e.themeColor]??"000000"}`}}var k=91440;function Z(e){if(!e)return {};let n={},t=chunk3R7QHNI5_js.l(e,null,"lIns"),i=chunk3R7QHNI5_js.l(e,null,"rIns"),o=chunk3R7QHNI5_js.l(e,null,"tIns"),r=chunk3R7QHNI5_js.l(e,null,"bIns");return (t!==void 0||i!==void 0||o!==void 0||r!==void 0)&&(n.margins={left:t,right:i,top:o,bottom:r}),n}function ve(e){if(!e)return {paragraphElements:[],tableElements:[]};let n=chunk3R7QHNI5_js.g(e,"p"),t=chunk3R7QHNI5_js.g(e,"tbl");return {paragraphElements:n,tableElements:t}}function Be(e,n,t,i,o,r,l,u){if(!e)return [];let s=[],c=chunk3R7QHNI5_js.i(e);for(let m of c){let g=m.name||"",p=g.indexOf(":"),T=p>=0?g.substring(p+1):g;if(T==="p"){let b=n(m,i,o,r,l);s.push(b);}}return s}function ee(e){let t=chunk3R7QHNI5_js.i(e).find(u=>u.name==="wp:inline"||u.name==="wp:anchor");if(!t)return false;let i=chunk3R7QHNI5_js.h(t,"a:graphic");if(!i)return false;let o=chunk3R7QHNI5_js.h(i,"a:graphicData");if(!o)return false;let r=chunk3R7QHNI5_js.h(o,"wps:wsp");return r?chunk3R7QHNI5_js.h(r,"wps:txbx")!==null:false}function Ce(e){return chunk3R7QHNI5_js.h(e,"wps:txbx")!==null}function Me(e){let t=chunk3R7QHNI5_js.i(e).find(x=>x.name==="wp:inline"||x.name==="wp:anchor");if(!t)return null;let i=t.name==="wp:anchor",o=chunk3R7QHNI5_js.h(t,"a:graphic");if(!o)return null;let r=chunk3R7QHNI5_js.h(o,"a:graphicData");if(!r)return null;let l=chunk3R7QHNI5_js.h(r,"wps:wsp");if(!l||!chunk3R7QHNI5_js.h(l,"wps:txbx"))return null;let s=chunk3R7QHNI5_js.i(l),c=s.find(x=>x.name==="wps:spPr"),m=s.find(x=>x.name==="wps:bodyPr"),g=chunk3R7QHNI5_js.h(t,"wp:extent"),p=chunk3R7QHNI5_js.l(g,null,"cx")??0,T=chunk3R7QHNI5_js.l(g,null,"cy")??0,b={width:p,height:T},C=chunk3R7QHNI5_js.h(t,"wp:docPr"),P=C?chunk3R7QHNI5_js.j(C,null,"id")??void 0:void 0,v=N(c??null),B=S(c??null),E=Z(m??null),y={type:"textBox",size:b,content:[]};if(P&&(y.id=P),v&&(y.fill=v),B&&(y.outline=B),E.margins&&(y.margins=E.margins),i){let x=Q(t);x&&(y.position=x);let h=Y(t);h&&(y.wrap=h);}return y}function Re(e){let n=chunk3R7QHNI5_js.h(e,"wps:txbx");return n?chunk3R7QHNI5_js.h(n,"w:txbxContent"):null}function Xe(e,n,t,i){if(!chunk3R7QHNI5_js.h(e,"wps:txbx"))return null;let r=chunk3R7QHNI5_js.i(e),l=r.find(b=>b.name==="wps:spPr"),u=r.find(b=>b.name==="wps:bodyPr"),s=r.find(b=>b.name==="wps:cNvPr"),c=s?chunk3R7QHNI5_js.j(s,null,"id")??void 0:void 0,m=N(l??null),g=S(l??null),p=Z(u??null),T={type:"textBox",size:n,content:[]};return c&&(T.id=c),m&&(T.fill=m),g&&(T.outline=g),p.margins&&(T.margins=p.margins),t&&(T.position=t),i&&(T.wrap=i),T}function ke(e){return chunk4Q2IP5FW_js.e(e.size.width)}function Ae(e){return chunk4Q2IP5FW_js.e(e.size.height)}function Oe(e){return {width:chunk4Q2IP5FW_js.e(e.size.width),height:chunk4Q2IP5FW_js.e(e.size.height)}}function Ne(e){let n=e.margins;return {top:chunk4Q2IP5FW_js.e(n?.top??k),bottom:chunk4Q2IP5FW_js.e(n?.bottom??k),left:chunk4Q2IP5FW_js.e(n?.left??k),right:chunk4Q2IP5FW_js.e(n?.right??k)}}function Se(e){return e.position!==void 0||e.wrap!==void 0}function Le(e){return e.fill!==void 0&&e.fill.type!=="none"}function ze(e){return e.outline!==void 0}function We(e){return e.content.length>0}function De(e){let n=[];for(let t of e.content){let i=[];for(let o of t.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&i.push(r.text);n.push(i.join(""));}return n.join(`
|
|
2
|
+
`)}function He(e){if(!(!e.fill||e.fill.type!=="solid"))return H(e.fill.color)}function Ve(e){if(e.outline?.color)return H(e.outline.color)}function _e(e){return e.outline?.width?chunk4Q2IP5FW_js.e(e.outline.width):0}function me(e){if(!e)return;let n=parseInt(e,10);if(!isNaN(n))return n/6e4}function ge(e,n){let t=chunk3R7QHNI5_js.i(e);for(let i of t)if(n.includes(i.name||""))return i;return null}function ne(e){if(!e)return {width:0,height:0};let n=chunk3R7QHNI5_js.l(e,null,"cx")??0,t=chunk3R7QHNI5_js.l(e,null,"cy")??0;return {width:n,height:t}}function te(e){if(!e)return;let n=chunk3R7QHNI5_js.l(e,null,"l")??0,t=chunk3R7QHNI5_js.l(e,null,"t")??0,i=chunk3R7QHNI5_js.l(e,null,"r")??0,o=chunk3R7QHNI5_js.l(e,null,"b")??0;if(!(n===0&&t===0&&i===0&&o===0))return {left:n,top:t,right:i,bottom:o}}function ie(e){if(!e)return {};let n=chunk3R7QHNI5_js.j(e,null,"id")??void 0,t=chunk3R7QHNI5_js.j(e,null,"name")??void 0,i=chunk3R7QHNI5_js.j(e,null,"descr")??void 0,o=chunk3R7QHNI5_js.j(e,null,"title")??void 0,r=chunk3R7QHNI5_js.j(e,null,"decorative")==="1",l=chunk3R7QHNI5_js.e(e,"a","hlinkClick"),u=l?chunk3R7QHNI5_js.j(l,"r","id")??void 0:void 0;return {id:n,name:t,alt:i,title:o,decorative:r||void 0,hlinkRId:u}}function re(e){if(!e)return;let n=chunk3R7QHNI5_js.j(e,null,"rot"),t=chunk3R7QHNI5_js.j(e,null,"flipH")==="1",i=chunk3R7QHNI5_js.j(e,null,"flipV")==="1",o=me(n);if(o===void 0&&!t&&!i)return;let r={};return o!==void 0&&(r.rotation=o),t&&(r.flipH=true),i&&(r.flipV=true),r}function oe(e){let n=chunk3R7QHNI5_js.h(e,"a:graphic");if(!n)return {blipFill:null,blip:null};let t=chunk3R7QHNI5_js.h(n,"a:graphicData");if(!t)return {blipFill:null,blip:null};let i=chunk3R7QHNI5_js.h(t,"pic:pic");if(!i)return {blipFill:null,blip:null};let o=chunk3R7QHNI5_js.h(i,"pic:blipFill");return o?{blipFill:o,blip:chunk3R7QHNI5_js.h(o,"a:blip")}:{blipFill:null,blip:null}}function le(e){if(!e)return;let n=chunk3R7QHNI5_js.h(e,"a:srcRect");if(!n)return;let t=s=>{let c=chunk3R7QHNI5_js.l(n,null,s);if(!(c===void 0||c===0))return c/1e5},i=t("l"),o=t("t"),r=t("r"),l=t("b");if(i===void 0&&o===void 0&&r===void 0&&l===void 0)return;let u={};return i!==void 0&&(u.left=i),o!==void 0&&(u.top=o),r!==void 0&&(u.right=r),l!==void 0&&(u.bottom=l),u}function ae(e){if(!e)return;let n=chunk3R7QHNI5_js.h(e,"a:alphaModFix");if(!n)return;let t=chunk3R7QHNI5_js.l(n,null,"amt");if(!(t===void 0||t>=1e5))return Math.max(0,Math.min(1,t/1e5))}function se(e){if(!e)return "";let n=chunk3R7QHNI5_js.j(e,"r","embed");if(n)return n;let t=chunk3R7QHNI5_js.j(e,null,"embed");if(t)return t;let i=chunk3R7QHNI5_js.j(e,"r","link");return i||""}function ue(e){let n=chunk3R7QHNI5_js.h(e,"a:graphic");if(!n)return null;let t=chunk3R7QHNI5_js.h(n,"a:graphicData");if(!t)return null;let i=chunk3R7QHNI5_js.h(t,"pic:pic");if(!i)return null;let o=chunk3R7QHNI5_js.h(i,"pic:spPr");return o?chunk3R7QHNI5_js.h(o,"a:xfrm"):null}function xe(e){if(!e)return e;let n=e.replace(/^\/+/,"");return n.startsWith("media/")?n=`word/${n}`:n.startsWith("word/")||(n=`word/${n}`),n}function he(e){let n=e.split(".").pop()?.toLowerCase()??"";return {png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tiff:"image/tiff",tif:"image/tiff",webp:"image/webp",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"}[n]??"application/octet-stream"}function de(e,n,t){if(!e||!n)return {};let i=n.get(e);if(!i)return {};let o=i.target;if(!o)return {};let r=xe(o),l=o.split("/").pop(),u=(s,c)=>{let m=c.toLowerCase();for(let[g,p]of s.entries())if(g.toLowerCase()===m)return p};if(t){let s=u(t,r);if(s)return {src:s.dataUrl||s.base64,mimeType:s.mimeType,filename:l};let c=o.replace(/^\/+/,""),m=u(t,c);if(m)return {src:m.dataUrl||m.base64,mimeType:m.mimeType,filename:l};let g=`word/${c}`,p=u(t,g);if(p)return {src:p.dataUrl||p.base64,mimeType:p.mimeType,filename:l}}return {mimeType:he(o),filename:l}}function Te(e,n,t){let i=chunk3R7QHNI5_js.h(e,"wp:extent"),o=ne(i),r=chunk3R7QHNI5_js.h(e,"wp:effectExtent"),l=te(r),u=chunk3R7QHNI5_js.h(e,"wp:docPr"),s=ie(u),{blip:c,blipFill:m}=oe(e),g=se(c),p=le(m),T=ae(c),b=de(g,n,t),C=ue(e),P=re(C),v=chunk3R7QHNI5_js.l(e,null,"distT")??void 0,B=chunk3R7QHNI5_js.l(e,null,"distB")??void 0,E=chunk3R7QHNI5_js.l(e,null,"distL")??void 0,y=chunk3R7QHNI5_js.l(e,null,"distR")??void 0,x={type:"inline"};v!==void 0&&(x.distT=v),B!==void 0&&(x.distB=B),E!==void 0&&(x.distL=E),y!==void 0&&(x.distR=y);let h={type:"image",rId:g,size:o,wrap:x};if(s.id&&(h.id=s.id),s.alt&&(h.alt=s.alt),s.title&&(h.title=s.title),s.decorative&&(h.decorative=true),b.src&&(h.src=b.src),b.mimeType&&(h.mimeType=b.mimeType),b.filename&&(h.filename=b.filename),l&&(h.padding=l),P&&(h.transform=P),p&&(h.crop=p),T!==void 0&&(h.opacity=T),s.hlinkRId&&n){let X=chunkZ3LGMBJC_js.d(n,s.hlinkRId);X&&(h.hlinkHref=X);}return h}function be(e,n,t){let i=chunk3R7QHNI5_js.h(e,"wp:extent"),o=ne(i),r=chunk3R7QHNI5_js.h(e,"wp:effectExtent"),l=te(r),u=chunk3R7QHNI5_js.h(e,"wp:docPr"),s=ie(u),c=chunk3R7QHNI5_js.j(e,null,"behindDoc")==="1",m=chunk3R7QHNI5_js.j(e,null,"layoutInCell"),g=m===null?void 0:m==="1",p=chunk3R7QHNI5_js.j(e,null,"allowOverlap"),T=p===null?void 0:p==="1",b={distT:chunk3R7QHNI5_js.l(e,null,"distT")??void 0,distB:chunk3R7QHNI5_js.l(e,null,"distB")??void 0,distL:chunk3R7QHNI5_js.l(e,null,"distL")??void 0,distR:chunk3R7QHNI5_js.l(e,null,"distR")??void 0},C=ge(e,W),P=D(C,c,b),v=chunk3R7QHNI5_js.h(e,"wp:positionH"),B=chunk3R7QHNI5_js.h(e,"wp:positionV"),E=L(v),y=z(B),x;(E||y)&&(x={horizontal:E??{relativeTo:"column"},vertical:y??{relativeTo:"paragraph"}});let{blip:h,blipFill:X}=oe(e),V=se(h),_=le(X),U=ae(h),M=de(V,n,t),fe=ue(e),j=re(fe),I={type:"image",rId:V,size:o,wrap:P};if(s.id&&(I.id=s.id),s.alt&&(I.alt=s.alt),s.title&&(I.title=s.title),s.decorative&&(I.decorative=true),M.src&&(I.src=M.src),M.mimeType&&(I.mimeType=M.mimeType),M.filename&&(I.filename=M.filename),x&&(I.position=x),l&&(I.padding=l),j&&(I.transform=j),_&&(I.crop=_),U!==void 0&&(I.opacity=U),g!==void 0&&(I.layoutInCell=g),T!==void 0&&(I.allowOverlap=T),s.hlinkRId&&n){let q=chunkZ3LGMBJC_js.d(n,s.hlinkRId);q&&(I.hlinkHref=q);}return I}function we(e,n,t){if(ee(e))return null;let i=chunk3R7QHNI5_js.i(e);for(let o of i){let r=o.name||"";if(r==="wp:inline"||r==="wp:anchor")return r==="wp:inline"?Te(o,n,t):be(o,n,t)}return null}function Qe(e,n,t){return we(e,n,t)}function Ye(e){return e.wrap.type==="inline"}function Ze(e){return e.wrap.type!=="inline"}function en(e){return e.wrap.type==="behind"}function nn(e){return e.wrap.type==="inFront"}function tn(e){return chunk4Q2IP5FW_js.e(e.size.width)}function rn(e){return chunk4Q2IP5FW_js.e(e.size.height)}function on(e){return e.decorative===true}function ln(e){return {top:chunk4Q2IP5FW_js.e(e.wrap.distT),bottom:chunk4Q2IP5FW_js.e(e.wrap.distB),left:chunk4Q2IP5FW_js.e(e.wrap.distL),right:chunk4Q2IP5FW_js.e(e.wrap.distR)}}exports.A=Ye;exports.B=Ze;exports.C=en;exports.D=nn;exports.E=tn;exports.F=rn;exports.G=on;exports.H=ln;exports.a=K;exports.b=N;exports.c=Q;exports.d=Y;exports.e=H;exports.f=ve;exports.g=Be;exports.h=ee;exports.i=Ce;exports.j=Me;exports.k=Re;exports.l=Xe;exports.m=ke;exports.n=Ae;exports.o=Oe;exports.p=Ne;exports.q=Se;exports.r=Le;exports.s=ze;exports.t=We;exports.u=De;exports.v=He;exports.w=Ve;exports.x=_e;exports.y=we;exports.z=Qe;
|