@harbour-enterprises/superdoc 0.23.0-next.2 → 0.23.0-next.20
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/chunks/{PdfViewer-BItyloFT.cjs → PdfViewer-BIyyMlj5.cjs} +2 -2
- package/dist/chunks/{PdfViewer-MPmm-SUD.es.js → PdfViewer-BgDqtrWg.es.js} +2 -2
- package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-BWEnUdTY.es.js} +1 -1
- package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DkXkH2rT.cjs} +1 -1
- package/dist/chunks/{index-OVF3JhUR.es.js → index-CJj1CDwm.es.js} +98 -356
- package/dist/chunks/{index-CdJOxoqt.cjs → index-DPjesQ6E.cjs} +231 -489
- package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-BDk3JBqp.es.js} +4 -4
- package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-u4dvXAKa.cjs} +4 -4
- package/dist/chunks/{super-editor.es-C7stybby.cjs → super-editor.es-DgYHEl7L.cjs} +1459 -733
- package/dist/chunks/{super-editor.es-DQnqUJZs.es.js → super-editor.es-f9MFI0Ev.es.js} +1459 -733
- package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
- package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
- package/dist/chunks/xml-js-D_ZIzxu0.cjs +3 -0
- package/dist/chunks/xml-js-Dx4FIjnp.es.js +2 -0
- package/dist/components/CommentsLayer/types.d.ts +158 -0
- package/dist/components/CommentsLayer/types.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts +5 -18
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +48 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts +3 -3
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/stores/superdoc-store.d.ts.map +1 -1
- package/dist/style.css +73 -54
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BVirrB35.js → converter-wrgxIFCy.js} +1305 -845
- package/dist/super-editor/chunks/{docx-zipper-Cpb9d2an.js → docx-zipper-DIilDv93.js} +1 -1
- package/dist/super-editor/chunks/{editor-DIINh50j.js → editor-C_9lsXSt.js} +345 -92
- package/dist/super-editor/chunks/{toolbar-CmDmkPHL.js → toolbar-BS-RUJ1x.js} +4 -4
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +46 -27
- package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarTexts.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/Attribute.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/Editor.d.ts +57 -3
- package/dist/super-editor/{src → super-editor/src}/core/Schema.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/helpers/htmlSanitizer.d.ts +1 -1
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/SuperConverter.d.ts +58 -2
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter-docx-defs.d.ts +28 -39
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/commentsExporter.d.ts +0 -7
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/w-id.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/comment-range-translator.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/index.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/node-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +64 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/normalize-comment-event-payload.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/update-position.d.ts +7 -0
- package/dist/super-editor/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +5 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/startImageUpload.d.ts +5 -0
- package/dist/super-editor/super-editor.es.js +26 -11
- package/dist/super-editor/superdoc/src/components/CommentsLayer/types.d.ts +157 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +3 -4
- package/dist/superdoc.es.js +3 -4
- package/dist/superdoc.umd.js +1600 -1132
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
- package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
- package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +0 -4
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
- /package/dist/super-editor/{postcss.config.d.cts → super-editor/postcss.config.d.cts} +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/cursor-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/menuItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/tests/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/ai-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/color-dropdown-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/defaultItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/format-negation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/scroll-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/super-toolbar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarIcons.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/use-toolbar-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/composables/use-high-contrast-mode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/CommandService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/DocxZipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/EventEmitter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Extension.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/ExtensionService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/InputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Mark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/OxmlNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/child-editor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/schemaWithLists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testSchema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/backspaceNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/clearNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/command.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/createParagraphNear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/decreaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/exitCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/increaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContentAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinDown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinUp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftEmptyBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/find-node-position.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/is-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/test-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/newlineInCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/resetAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/restoreSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectAll.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockStart.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMeta.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/sinkListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/commandTestUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/test-schema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMarkCascade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/undoInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetAllMarks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/updateAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/wrapInList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/encoding-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editorFocus.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/keymap.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/ErrorWithDetails.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/annotator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/baseListDefinitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/chainableEditorState.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/cleanSchemaItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/contentProcessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createDocument.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createNodeFromContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/defaultBlockAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findChildren.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNodeClosestToPos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findWordBounds.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxListAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxRandomId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getActiveFormatting.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getExtensionConfigField.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getHTMLFromFragment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkRange.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksFromSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getNodeType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeNameByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getTextContentFromNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importHtml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importMarkdown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isExtentionRulesEnabled.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isInTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isMarkActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isNodeActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isTextSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/list-numbering-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/orderedListUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/pasteListHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/posToDOMRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/selectionToInsertionEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setImageNodeSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setWordSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/updateDOMAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/docx-paste/docx-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/google-docs-paste/google-docs-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/html-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/transform-copied-lists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/wrappingInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/0.14-listsv2/listsv2migration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/migration_after_0_4_14.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/document-rels.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/get-default-style-definition.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/hyperlink-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/num-pages-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-ref-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/toc-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/preProcessNodesForFldChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/mediaHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/tableFallbackHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/docxHelper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/base-list.definitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/alternateChoiceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/autoPageNumberImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/documentCommentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/docxImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/hyperlinkImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/ignoredNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/imageImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/importerHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/lineBreakImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/listImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/markImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/mergeTextNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pageReferenceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pictNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/runNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/sdtNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/standardNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tabImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableOfContentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/textNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/trackChangesImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/pageReference-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/tableOfContents-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/b-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-clear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-line-break-type.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/br-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/cantSplit-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/cnfStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/color-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/divId-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/gridAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/gridBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/hidden-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/hyperlink-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/i-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/jc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-p.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-default.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-para-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-text-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/p-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/r-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-leader.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/tblCellSpacing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/tblHeader-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/translate-table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/tc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/trHeight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/trPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/u-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/wAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/wBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/zipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/logger.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/super-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/image-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/image-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/link-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/link-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/numbering/numbering-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/relationships/relationships-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/callOrGet.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/carbonCopy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/clipboardUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/createStyleTag.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/deleteProps.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/imageBlobs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isEmptyObject.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isIOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isMacOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isRegExp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/minMax.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/objectIncludes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/parseSizeUnit.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-nodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/block-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/bold.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-end.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-start.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/bullet-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/collaboration-cursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment-import-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/custom-selection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/document.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/dropcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpListsWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpParagraphWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFirstFieldAnnotationByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findHeaderFooterAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findRemovedFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotationsWithRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/trackFieldAnnotationsDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/font-family.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/font-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/format-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/gapcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/heading.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/highlight.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/history.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/image.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/getFileOpener.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleImageUpload.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleUrl.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imagePositionPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/processUploadedImage.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/rotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/italic.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/line-break.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/line-height.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/link.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/linked-styles.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/underline-css.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/ListItemNodeView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/listItemTypography.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/styledListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/list-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/mention.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/noderesizer.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/ordered-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/page-number.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/page-reference.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/helpers/getDefaultSpacing.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/paragraph.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/placeholder.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/popover-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/split-run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/prosemirror-search-patched.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/search.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/shape-container.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/shape-textbox.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shared/cascade-toggle.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/slash-menu.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/strike.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentBlockView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentInlineView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentViewBase.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-part-object.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/DocumentSectionView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/helpers/tabDecorations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/tab.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/TableView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/table.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellAround.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createCell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createColGroup.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTableBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/deleteTableWhenSelected.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/getColStyleDeclaration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/isCellSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/helpers/createCellBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/table-header.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/table-of-contents.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/table-row.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/text.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/text-align.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/text-indent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/text-style.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/text-transform.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/trackChangesBasePlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-changes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-delete.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-format.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-insert.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/addMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/documentHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/findTrackedMarkBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/getTrackChanges.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markInsertion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/parseFormatList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/removeMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceAroundStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/underline.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/main.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/data/annotations_doc_content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/editor/data/imageBase64.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/data/comments/basic-resolved-comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/list-export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/editor-test-utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/getParagraphText.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/import/testUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/utils/contextmenu-helpers.d.ts +0 -0
- /package/dist/super-editor/{vite.config.d.ts → super-editor/vite.config.d.ts} +0 -0
|
@@ -7,12 +7,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7
7
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
8
8
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
9
9
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
10
|
-
var _a, _DocxExporter_instances, generate_xml_as_list_fn, replaceSpecialCharacters_fn, generateXml_fn, _SuperConverter_instances, exportNumberingFile_fn, prepareCommentsXmlFilesForExport_fn, exportProcessHeadersFooters_fn, exportProcessNewRelationships_fn, exportProcessMediaFiles_fn;
|
|
10
|
+
var _a, _DocxExporter_instances, generate_xml_as_list_fn, replaceSpecialCharacters_fn, generateXml_fn, _SuperConverter_instances, generateDocumentHash_fn, exportNumberingFile_fn, prepareCommentsXmlFilesForExport_fn, exportProcessHeadersFooters_fn, exportProcessNewRelationships_fn, exportProcessMediaFiles_fn;
|
|
11
11
|
import { createElementBlock, openBlock, createElementVNode } from "vue";
|
|
12
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
13
|
-
function getDefaultExportFromCjs$1(x) {
|
|
14
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
15
|
-
}
|
|
16
12
|
var buffer = {};
|
|
17
13
|
var base64Js = {};
|
|
18
14
|
base64Js.byteLength = byteLength;
|
|
@@ -1779,6 +1775,10 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
|
|
|
1779
1775
|
}
|
|
1780
1776
|
})(buffer);
|
|
1781
1777
|
const Buffer2 = buffer.Buffer;
|
|
1778
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1779
|
+
function getDefaultExportFromCjs$2(x) {
|
|
1780
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1781
|
+
}
|
|
1782
1782
|
var sax = {};
|
|
1783
1783
|
var events = { exports: {} };
|
|
1784
1784
|
var hasRequiredEvents;
|
|
@@ -2093,9 +2093,9 @@ function requireEvents() {
|
|
|
2093
2093
|
copy2[i] = arr[i];
|
|
2094
2094
|
return copy2;
|
|
2095
2095
|
}
|
|
2096
|
-
function spliceOne(list,
|
|
2097
|
-
for (;
|
|
2098
|
-
list[
|
|
2096
|
+
function spliceOne(list, index2) {
|
|
2097
|
+
for (; index2 + 1 < list.length; index2++)
|
|
2098
|
+
list[index2] = list[index2 + 1];
|
|
2099
2099
|
list.pop();
|
|
2100
2100
|
}
|
|
2101
2101
|
function unwrapListeners(arr) {
|
|
@@ -2181,7 +2181,7 @@ function requireInherits_browser() {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
return inherits_browser.exports;
|
|
2183
2183
|
}
|
|
2184
|
-
function getDefaultExportFromCjs(x) {
|
|
2184
|
+
function getDefaultExportFromCjs$1(x) {
|
|
2185
2185
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2186
2186
|
}
|
|
2187
2187
|
var browser$1 = { exports: {} };
|
|
@@ -2342,7 +2342,7 @@ process.umask = function() {
|
|
|
2342
2342
|
return 0;
|
|
2343
2343
|
};
|
|
2344
2344
|
var browserExports = browser$1.exports;
|
|
2345
|
-
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
2345
|
+
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(browserExports);
|
|
2346
2346
|
var streamBrowser;
|
|
2347
2347
|
var hasRequiredStreamBrowser;
|
|
2348
2348
|
function requireStreamBrowser() {
|
|
@@ -5092,6 +5092,19 @@ function requireSafeRegexTest() {
|
|
|
5092
5092
|
};
|
|
5093
5093
|
return safeRegexTest;
|
|
5094
5094
|
}
|
|
5095
|
+
var generatorFunction;
|
|
5096
|
+
var hasRequiredGeneratorFunction;
|
|
5097
|
+
function requireGeneratorFunction() {
|
|
5098
|
+
if (hasRequiredGeneratorFunction) return generatorFunction;
|
|
5099
|
+
hasRequiredGeneratorFunction = 1;
|
|
5100
|
+
const cached = (
|
|
5101
|
+
/** @type {GeneratorFunctionConstructor} */
|
|
5102
|
+
function* () {
|
|
5103
|
+
}.constructor
|
|
5104
|
+
);
|
|
5105
|
+
generatorFunction = () => cached;
|
|
5106
|
+
return generatorFunction;
|
|
5107
|
+
}
|
|
5095
5108
|
var isGeneratorFunction;
|
|
5096
5109
|
var hasRequiredIsGeneratorFunction;
|
|
5097
5110
|
function requireIsGeneratorFunction() {
|
|
@@ -5104,16 +5117,7 @@ function requireIsGeneratorFunction() {
|
|
|
5104
5117
|
var getProto2 = requireGetProto();
|
|
5105
5118
|
var toStr = callBound2("Object.prototype.toString");
|
|
5106
5119
|
var fnToStr = callBound2("Function.prototype.toString");
|
|
5107
|
-
var
|
|
5108
|
-
if (!hasToStringTag) {
|
|
5109
|
-
return false;
|
|
5110
|
-
}
|
|
5111
|
-
try {
|
|
5112
|
-
return Function("return function*() {}")();
|
|
5113
|
-
} catch (e) {
|
|
5114
|
-
}
|
|
5115
|
-
};
|
|
5116
|
-
var GeneratorFunction;
|
|
5120
|
+
var getGeneratorFunction = /* @__PURE__ */ requireGeneratorFunction();
|
|
5117
5121
|
isGeneratorFunction = function isGeneratorFunction2(fn) {
|
|
5118
5122
|
if (typeof fn !== "function") {
|
|
5119
5123
|
return false;
|
|
@@ -5128,14 +5132,8 @@ function requireIsGeneratorFunction() {
|
|
|
5128
5132
|
if (!getProto2) {
|
|
5129
5133
|
return false;
|
|
5130
5134
|
}
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
GeneratorFunction = generatorFunc ? (
|
|
5134
|
-
/** @type {GeneratorFunctionConstructor} */
|
|
5135
|
-
getProto2(generatorFunc)
|
|
5136
|
-
) : false;
|
|
5137
|
-
}
|
|
5138
|
-
return getProto2(fn) === GeneratorFunction;
|
|
5135
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
5136
|
+
return GeneratorFunction && getProto2(fn) === GeneratorFunction.prototype;
|
|
5139
5137
|
};
|
|
5140
5138
|
return isGeneratorFunction;
|
|
5141
5139
|
}
|
|
@@ -8554,9 +8552,9 @@ function require_stream_readable() {
|
|
|
8554
8552
|
});
|
|
8555
8553
|
return this;
|
|
8556
8554
|
}
|
|
8557
|
-
var
|
|
8558
|
-
if (
|
|
8559
|
-
state2.pipes.splice(
|
|
8555
|
+
var index2 = indexOf(state2.pipes, dest);
|
|
8556
|
+
if (index2 === -1) return this;
|
|
8557
|
+
state2.pipes.splice(index2, 1);
|
|
8560
8558
|
state2.pipesCount -= 1;
|
|
8561
8559
|
if (state2.pipesCount === 1) state2.pipes = state2.pipes[0];
|
|
8562
8560
|
dest.emit("unpipe", this, unpipeInfo);
|
|
@@ -10493,14 +10491,14 @@ function requireSax() {
|
|
|
10493
10491
|
var codeUnits = [];
|
|
10494
10492
|
var highSurrogate;
|
|
10495
10493
|
var lowSurrogate;
|
|
10496
|
-
var
|
|
10494
|
+
var index2 = -1;
|
|
10497
10495
|
var length = arguments.length;
|
|
10498
10496
|
if (!length) {
|
|
10499
10497
|
return "";
|
|
10500
10498
|
}
|
|
10501
10499
|
var result = "";
|
|
10502
|
-
while (++
|
|
10503
|
-
var codePoint = Number(arguments[
|
|
10500
|
+
while (++index2 < length) {
|
|
10501
|
+
var codePoint = Number(arguments[index2]);
|
|
10504
10502
|
if (!isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity`
|
|
10505
10503
|
codePoint < 0 || // not a valid Unicode code point
|
|
10506
10504
|
codePoint > 1114111 || // not a valid Unicode code point
|
|
@@ -10515,7 +10513,7 @@ function requireSax() {
|
|
|
10515
10513
|
lowSurrogate = codePoint % 1024 + 56320;
|
|
10516
10514
|
codeUnits.push(highSurrogate, lowSurrogate);
|
|
10517
10515
|
}
|
|
10518
|
-
if (
|
|
10516
|
+
if (index2 + 1 === length || codeUnits.length > MAX_SIZE) {
|
|
10519
10517
|
result += stringFromCharCode.apply(null, codeUnits);
|
|
10520
10518
|
codeUnits.length = 0;
|
|
10521
10519
|
}
|
|
@@ -11329,7 +11327,7 @@ function requireLib() {
|
|
|
11329
11327
|
return lib;
|
|
11330
11328
|
}
|
|
11331
11329
|
var libExports = requireLib();
|
|
11332
|
-
const xmljs = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
11330
|
+
const xmljs = /* @__PURE__ */ getDefaultExportFromCjs$2(libExports);
|
|
11333
11331
|
var getRandomValues;
|
|
11334
11332
|
var rnds8 = new Uint8Array(16);
|
|
11335
11333
|
function rng() {
|
|
@@ -11364,6 +11362,306 @@ function v4(options, buf, offset) {
|
|
|
11364
11362
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11365
11363
|
return stringify(rnds);
|
|
11366
11364
|
}
|
|
11365
|
+
function getDefaultExportFromCjs(x) {
|
|
11366
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11367
|
+
}
|
|
11368
|
+
const CRC_TABLE = new Int32Array([
|
|
11369
|
+
0,
|
|
11370
|
+
1996959894,
|
|
11371
|
+
3993919788,
|
|
11372
|
+
2567524794,
|
|
11373
|
+
124634137,
|
|
11374
|
+
1886057615,
|
|
11375
|
+
3915621685,
|
|
11376
|
+
2657392035,
|
|
11377
|
+
249268274,
|
|
11378
|
+
2044508324,
|
|
11379
|
+
3772115230,
|
|
11380
|
+
2547177864,
|
|
11381
|
+
162941995,
|
|
11382
|
+
2125561021,
|
|
11383
|
+
3887607047,
|
|
11384
|
+
2428444049,
|
|
11385
|
+
498536548,
|
|
11386
|
+
1789927666,
|
|
11387
|
+
4089016648,
|
|
11388
|
+
2227061214,
|
|
11389
|
+
450548861,
|
|
11390
|
+
1843258603,
|
|
11391
|
+
4107580753,
|
|
11392
|
+
2211677639,
|
|
11393
|
+
325883990,
|
|
11394
|
+
1684777152,
|
|
11395
|
+
4251122042,
|
|
11396
|
+
2321926636,
|
|
11397
|
+
335633487,
|
|
11398
|
+
1661365465,
|
|
11399
|
+
4195302755,
|
|
11400
|
+
2366115317,
|
|
11401
|
+
997073096,
|
|
11402
|
+
1281953886,
|
|
11403
|
+
3579855332,
|
|
11404
|
+
2724688242,
|
|
11405
|
+
1006888145,
|
|
11406
|
+
1258607687,
|
|
11407
|
+
3524101629,
|
|
11408
|
+
2768942443,
|
|
11409
|
+
901097722,
|
|
11410
|
+
1119000684,
|
|
11411
|
+
3686517206,
|
|
11412
|
+
2898065728,
|
|
11413
|
+
853044451,
|
|
11414
|
+
1172266101,
|
|
11415
|
+
3705015759,
|
|
11416
|
+
2882616665,
|
|
11417
|
+
651767980,
|
|
11418
|
+
1373503546,
|
|
11419
|
+
3369554304,
|
|
11420
|
+
3218104598,
|
|
11421
|
+
565507253,
|
|
11422
|
+
1454621731,
|
|
11423
|
+
3485111705,
|
|
11424
|
+
3099436303,
|
|
11425
|
+
671266974,
|
|
11426
|
+
1594198024,
|
|
11427
|
+
3322730930,
|
|
11428
|
+
2970347812,
|
|
11429
|
+
795835527,
|
|
11430
|
+
1483230225,
|
|
11431
|
+
3244367275,
|
|
11432
|
+
3060149565,
|
|
11433
|
+
1994146192,
|
|
11434
|
+
31158534,
|
|
11435
|
+
2563907772,
|
|
11436
|
+
4023717930,
|
|
11437
|
+
1907459465,
|
|
11438
|
+
112637215,
|
|
11439
|
+
2680153253,
|
|
11440
|
+
3904427059,
|
|
11441
|
+
2013776290,
|
|
11442
|
+
251722036,
|
|
11443
|
+
2517215374,
|
|
11444
|
+
3775830040,
|
|
11445
|
+
2137656763,
|
|
11446
|
+
141376813,
|
|
11447
|
+
2439277719,
|
|
11448
|
+
3865271297,
|
|
11449
|
+
1802195444,
|
|
11450
|
+
476864866,
|
|
11451
|
+
2238001368,
|
|
11452
|
+
4066508878,
|
|
11453
|
+
1812370925,
|
|
11454
|
+
453092731,
|
|
11455
|
+
2181625025,
|
|
11456
|
+
4111451223,
|
|
11457
|
+
1706088902,
|
|
11458
|
+
314042704,
|
|
11459
|
+
2344532202,
|
|
11460
|
+
4240017532,
|
|
11461
|
+
1658658271,
|
|
11462
|
+
366619977,
|
|
11463
|
+
2362670323,
|
|
11464
|
+
4224994405,
|
|
11465
|
+
1303535960,
|
|
11466
|
+
984961486,
|
|
11467
|
+
2747007092,
|
|
11468
|
+
3569037538,
|
|
11469
|
+
1256170817,
|
|
11470
|
+
1037604311,
|
|
11471
|
+
2765210733,
|
|
11472
|
+
3554079995,
|
|
11473
|
+
1131014506,
|
|
11474
|
+
879679996,
|
|
11475
|
+
2909243462,
|
|
11476
|
+
3663771856,
|
|
11477
|
+
1141124467,
|
|
11478
|
+
855842277,
|
|
11479
|
+
2852801631,
|
|
11480
|
+
3708648649,
|
|
11481
|
+
1342533948,
|
|
11482
|
+
654459306,
|
|
11483
|
+
3188396048,
|
|
11484
|
+
3373015174,
|
|
11485
|
+
1466479909,
|
|
11486
|
+
544179635,
|
|
11487
|
+
3110523913,
|
|
11488
|
+
3462522015,
|
|
11489
|
+
1591671054,
|
|
11490
|
+
702138776,
|
|
11491
|
+
2966460450,
|
|
11492
|
+
3352799412,
|
|
11493
|
+
1504918807,
|
|
11494
|
+
783551873,
|
|
11495
|
+
3082640443,
|
|
11496
|
+
3233442989,
|
|
11497
|
+
3988292384,
|
|
11498
|
+
2596254646,
|
|
11499
|
+
62317068,
|
|
11500
|
+
1957810842,
|
|
11501
|
+
3939845945,
|
|
11502
|
+
2647816111,
|
|
11503
|
+
81470997,
|
|
11504
|
+
1943803523,
|
|
11505
|
+
3814918930,
|
|
11506
|
+
2489596804,
|
|
11507
|
+
225274430,
|
|
11508
|
+
2053790376,
|
|
11509
|
+
3826175755,
|
|
11510
|
+
2466906013,
|
|
11511
|
+
167816743,
|
|
11512
|
+
2097651377,
|
|
11513
|
+
4027552580,
|
|
11514
|
+
2265490386,
|
|
11515
|
+
503444072,
|
|
11516
|
+
1762050814,
|
|
11517
|
+
4150417245,
|
|
11518
|
+
2154129355,
|
|
11519
|
+
426522225,
|
|
11520
|
+
1852507879,
|
|
11521
|
+
4275313526,
|
|
11522
|
+
2312317920,
|
|
11523
|
+
282753626,
|
|
11524
|
+
1742555852,
|
|
11525
|
+
4189708143,
|
|
11526
|
+
2394877945,
|
|
11527
|
+
397917763,
|
|
11528
|
+
1622183637,
|
|
11529
|
+
3604390888,
|
|
11530
|
+
2714866558,
|
|
11531
|
+
953729732,
|
|
11532
|
+
1340076626,
|
|
11533
|
+
3518719985,
|
|
11534
|
+
2797360999,
|
|
11535
|
+
1068828381,
|
|
11536
|
+
1219638859,
|
|
11537
|
+
3624741850,
|
|
11538
|
+
2936675148,
|
|
11539
|
+
906185462,
|
|
11540
|
+
1090812512,
|
|
11541
|
+
3747672003,
|
|
11542
|
+
2825379669,
|
|
11543
|
+
829329135,
|
|
11544
|
+
1181335161,
|
|
11545
|
+
3412177804,
|
|
11546
|
+
3160834842,
|
|
11547
|
+
628085408,
|
|
11548
|
+
1382605366,
|
|
11549
|
+
3423369109,
|
|
11550
|
+
3138078467,
|
|
11551
|
+
570562233,
|
|
11552
|
+
1426400815,
|
|
11553
|
+
3317316542,
|
|
11554
|
+
2998733608,
|
|
11555
|
+
733239954,
|
|
11556
|
+
1555261956,
|
|
11557
|
+
3268935591,
|
|
11558
|
+
3050360625,
|
|
11559
|
+
752459403,
|
|
11560
|
+
1541320221,
|
|
11561
|
+
2607071920,
|
|
11562
|
+
3965973030,
|
|
11563
|
+
1969922972,
|
|
11564
|
+
40735498,
|
|
11565
|
+
2617837225,
|
|
11566
|
+
3943577151,
|
|
11567
|
+
1913087877,
|
|
11568
|
+
83908371,
|
|
11569
|
+
2512341634,
|
|
11570
|
+
3803740692,
|
|
11571
|
+
2075208622,
|
|
11572
|
+
213261112,
|
|
11573
|
+
2463272603,
|
|
11574
|
+
3855990285,
|
|
11575
|
+
2094854071,
|
|
11576
|
+
198958881,
|
|
11577
|
+
2262029012,
|
|
11578
|
+
4057260610,
|
|
11579
|
+
1759359992,
|
|
11580
|
+
534414190,
|
|
11581
|
+
2176718541,
|
|
11582
|
+
4139329115,
|
|
11583
|
+
1873836001,
|
|
11584
|
+
414664567,
|
|
11585
|
+
2282248934,
|
|
11586
|
+
4279200368,
|
|
11587
|
+
1711684554,
|
|
11588
|
+
285281116,
|
|
11589
|
+
2405801727,
|
|
11590
|
+
4167216745,
|
|
11591
|
+
1634467795,
|
|
11592
|
+
376229701,
|
|
11593
|
+
2685067896,
|
|
11594
|
+
3608007406,
|
|
11595
|
+
1308918612,
|
|
11596
|
+
956543938,
|
|
11597
|
+
2808555105,
|
|
11598
|
+
3495958263,
|
|
11599
|
+
1231636301,
|
|
11600
|
+
1047427035,
|
|
11601
|
+
2932959818,
|
|
11602
|
+
3654703836,
|
|
11603
|
+
1088359270,
|
|
11604
|
+
936918e3,
|
|
11605
|
+
2847714899,
|
|
11606
|
+
3736837829,
|
|
11607
|
+
1202900863,
|
|
11608
|
+
817233897,
|
|
11609
|
+
3183342108,
|
|
11610
|
+
3401237130,
|
|
11611
|
+
1404277552,
|
|
11612
|
+
615818150,
|
|
11613
|
+
3134207493,
|
|
11614
|
+
3453421203,
|
|
11615
|
+
1423857449,
|
|
11616
|
+
601450431,
|
|
11617
|
+
3009837614,
|
|
11618
|
+
3294710456,
|
|
11619
|
+
1567103746,
|
|
11620
|
+
711928724,
|
|
11621
|
+
3020668471,
|
|
11622
|
+
3272380065,
|
|
11623
|
+
1510334235,
|
|
11624
|
+
755167117
|
|
11625
|
+
]);
|
|
11626
|
+
function ensureBuffer(input) {
|
|
11627
|
+
if (Buffer2.isBuffer(input)) {
|
|
11628
|
+
return input;
|
|
11629
|
+
}
|
|
11630
|
+
if (typeof input === "number") {
|
|
11631
|
+
return Buffer2.alloc(input);
|
|
11632
|
+
} else if (typeof input === "string") {
|
|
11633
|
+
return Buffer2.from(input);
|
|
11634
|
+
} else {
|
|
11635
|
+
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
11636
|
+
}
|
|
11637
|
+
}
|
|
11638
|
+
function bufferizeInt(num) {
|
|
11639
|
+
const tmp = ensureBuffer(4);
|
|
11640
|
+
tmp.writeInt32BE(num, 0);
|
|
11641
|
+
return tmp;
|
|
11642
|
+
}
|
|
11643
|
+
function _crc32(buf, previous) {
|
|
11644
|
+
buf = ensureBuffer(buf);
|
|
11645
|
+
if (Buffer2.isBuffer(previous)) {
|
|
11646
|
+
previous = previous.readUInt32BE(0);
|
|
11647
|
+
}
|
|
11648
|
+
let crc = ~~previous ^ -1;
|
|
11649
|
+
for (var n = 0; n < buf.length; n++) {
|
|
11650
|
+
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
11651
|
+
}
|
|
11652
|
+
return crc ^ -1;
|
|
11653
|
+
}
|
|
11654
|
+
function crc32() {
|
|
11655
|
+
return bufferizeInt(_crc32.apply(null, arguments));
|
|
11656
|
+
}
|
|
11657
|
+
crc32.signed = function() {
|
|
11658
|
+
return _crc32.apply(null, arguments);
|
|
11659
|
+
};
|
|
11660
|
+
crc32.unsigned = function() {
|
|
11661
|
+
return _crc32.apply(null, arguments) >>> 0;
|
|
11662
|
+
};
|
|
11663
|
+
var bufferCrc32 = crc32;
|
|
11664
|
+
const index = /* @__PURE__ */ getDefaultExportFromCjs(bufferCrc32);
|
|
11367
11665
|
function callOrGet(value, context = null, ...props) {
|
|
11368
11666
|
if (typeof value === "function") {
|
|
11369
11667
|
if (context) return value.bind(context)(...props);
|
|
@@ -11693,13 +11991,13 @@ class Fragment {
|
|
|
11693
11991
|
Create a new fragment in which the node at the given index is
|
|
11694
11992
|
replaced by the given node.
|
|
11695
11993
|
*/
|
|
11696
|
-
replaceChild(
|
|
11697
|
-
let current = this.content[
|
|
11994
|
+
replaceChild(index2, node) {
|
|
11995
|
+
let current = this.content[index2];
|
|
11698
11996
|
if (current == node)
|
|
11699
11997
|
return this;
|
|
11700
11998
|
let copy2 = this.content.slice();
|
|
11701
11999
|
let size = this.size + node.nodeSize - current.nodeSize;
|
|
11702
|
-
copy2[
|
|
12000
|
+
copy2[index2] = node;
|
|
11703
12001
|
return new Fragment(copy2, size);
|
|
11704
12002
|
}
|
|
11705
12003
|
/**
|
|
@@ -11749,17 +12047,17 @@ class Fragment {
|
|
|
11749
12047
|
Get the child node at the given index. Raise an error when the
|
|
11750
12048
|
index is out of range.
|
|
11751
12049
|
*/
|
|
11752
|
-
child(
|
|
11753
|
-
let found2 = this.content[
|
|
12050
|
+
child(index2) {
|
|
12051
|
+
let found2 = this.content[index2];
|
|
11754
12052
|
if (!found2)
|
|
11755
|
-
throw new RangeError("Index " +
|
|
12053
|
+
throw new RangeError("Index " + index2 + " out of range for " + this);
|
|
11756
12054
|
return found2;
|
|
11757
12055
|
}
|
|
11758
12056
|
/**
|
|
11759
12057
|
Get the child node at the given index, if it exists.
|
|
11760
12058
|
*/
|
|
11761
|
-
maybeChild(
|
|
11762
|
-
return this.content[
|
|
12059
|
+
maybeChild(index2) {
|
|
12060
|
+
return this.content[index2] || null;
|
|
11763
12061
|
}
|
|
11764
12062
|
/**
|
|
11765
12063
|
Call `f` for every child node, passing the node, its offset
|
|
@@ -11879,8 +12177,8 @@ class Fragment {
|
|
|
11879
12177
|
}
|
|
11880
12178
|
Fragment.empty = new Fragment([], 0);
|
|
11881
12179
|
const found = { index: 0, offset: 0 };
|
|
11882
|
-
function retIndex(
|
|
11883
|
-
found.index =
|
|
12180
|
+
function retIndex(index2, offset) {
|
|
12181
|
+
found.index = index2;
|
|
11884
12182
|
found.offset = offset;
|
|
11885
12183
|
return found;
|
|
11886
12184
|
}
|
|
@@ -12119,26 +12417,26 @@ class Slice {
|
|
|
12119
12417
|
}
|
|
12120
12418
|
Slice.empty = new Slice(Fragment.empty, 0, 0);
|
|
12121
12419
|
function removeRange(content, from, to) {
|
|
12122
|
-
let { index, offset } = content.findIndex(from), child = content.maybeChild(
|
|
12420
|
+
let { index: index2, offset } = content.findIndex(from), child = content.maybeChild(index2);
|
|
12123
12421
|
let { index: indexTo, offset: offsetTo } = content.findIndex(to);
|
|
12124
12422
|
if (offset == from || child.isText) {
|
|
12125
12423
|
if (offsetTo != to && !content.child(indexTo).isText)
|
|
12126
12424
|
throw new RangeError("Removing non-flat range");
|
|
12127
12425
|
return content.cut(0, from).append(content.cut(to));
|
|
12128
12426
|
}
|
|
12129
|
-
if (
|
|
12427
|
+
if (index2 != indexTo)
|
|
12130
12428
|
throw new RangeError("Removing non-flat range");
|
|
12131
|
-
return content.replaceChild(
|
|
12429
|
+
return content.replaceChild(index2, child.copy(removeRange(child.content, from - offset - 1, to - offset - 1)));
|
|
12132
12430
|
}
|
|
12133
12431
|
function insertInto(content, dist2, insert, parent) {
|
|
12134
|
-
let { index, offset } = content.findIndex(dist2), child = content.maybeChild(
|
|
12432
|
+
let { index: index2, offset } = content.findIndex(dist2), child = content.maybeChild(index2);
|
|
12135
12433
|
if (offset == dist2 || child.isText) {
|
|
12136
|
-
if (parent && !parent.canReplace(
|
|
12434
|
+
if (parent && !parent.canReplace(index2, index2, insert))
|
|
12137
12435
|
return null;
|
|
12138
12436
|
return content.cut(0, dist2).append(insert).append(content.cut(dist2));
|
|
12139
12437
|
}
|
|
12140
12438
|
let inner = insertInto(child.content, dist2 - offset - 1, insert, child);
|
|
12141
|
-
return inner && content.replaceChild(
|
|
12439
|
+
return inner && content.replaceChild(index2, child.copy(inner));
|
|
12142
12440
|
}
|
|
12143
12441
|
function replace($from, $to, slice) {
|
|
12144
12442
|
if (slice.openStart > $from.depth)
|
|
@@ -12148,10 +12446,10 @@ function replace($from, $to, slice) {
|
|
|
12148
12446
|
return replaceOuter($from, $to, slice, 0);
|
|
12149
12447
|
}
|
|
12150
12448
|
function replaceOuter($from, $to, slice, depth) {
|
|
12151
|
-
let
|
|
12152
|
-
if (
|
|
12449
|
+
let index2 = $from.index(depth), node = $from.node(depth);
|
|
12450
|
+
if (index2 == $to.index(depth) && depth < $from.depth - slice.openStart) {
|
|
12153
12451
|
let inner = replaceOuter($from, $to, slice, depth + 1);
|
|
12154
|
-
return node.copy(node.content.replaceChild(
|
|
12452
|
+
return node.copy(node.content.replaceChild(index2, inner));
|
|
12155
12453
|
} else if (!slice.content.size) {
|
|
12156
12454
|
return close(node, replaceTwoWay($from, $to, depth));
|
|
12157
12455
|
} else if (!slice.openStart && !slice.openEnd && $from.depth == depth && $to.depth == depth) {
|
|
@@ -12345,11 +12643,11 @@ class ResolvedPos {
|
|
|
12345
12643
|
position is returned.
|
|
12346
12644
|
*/
|
|
12347
12645
|
get nodeAfter() {
|
|
12348
|
-
let parent = this.parent,
|
|
12349
|
-
if (
|
|
12646
|
+
let parent = this.parent, index2 = this.index(this.depth);
|
|
12647
|
+
if (index2 == parent.childCount)
|
|
12350
12648
|
return null;
|
|
12351
|
-
let dOff = this.pos - this.path[this.path.length - 1], child = parent.child(
|
|
12352
|
-
return dOff ? parent.child(
|
|
12649
|
+
let dOff = this.pos - this.path[this.path.length - 1], child = parent.child(index2);
|
|
12650
|
+
return dOff ? parent.child(index2).cut(dOff) : child;
|
|
12353
12651
|
}
|
|
12354
12652
|
/**
|
|
12355
12653
|
Get the node directly before the position, if any. If the
|
|
@@ -12357,20 +12655,20 @@ class ResolvedPos {
|
|
|
12357
12655
|
before the position is returned.
|
|
12358
12656
|
*/
|
|
12359
12657
|
get nodeBefore() {
|
|
12360
|
-
let
|
|
12658
|
+
let index2 = this.index(this.depth);
|
|
12361
12659
|
let dOff = this.pos - this.path[this.path.length - 1];
|
|
12362
12660
|
if (dOff)
|
|
12363
|
-
return this.parent.child(
|
|
12364
|
-
return
|
|
12661
|
+
return this.parent.child(index2).cut(0, dOff);
|
|
12662
|
+
return index2 == 0 ? null : this.parent.child(index2 - 1);
|
|
12365
12663
|
}
|
|
12366
12664
|
/**
|
|
12367
12665
|
Get the position at the given index in the parent node at the
|
|
12368
12666
|
given depth (which defaults to `this.depth`).
|
|
12369
12667
|
*/
|
|
12370
|
-
posAtIndex(
|
|
12668
|
+
posAtIndex(index2, depth) {
|
|
12371
12669
|
depth = this.resolveDepth(depth);
|
|
12372
12670
|
let node = this.path[depth * 3], pos = depth == 0 ? 0 : this.path[depth * 3 - 1] + 1;
|
|
12373
|
-
for (let i = 0; i <
|
|
12671
|
+
for (let i = 0; i < index2; i++)
|
|
12374
12672
|
pos += node.child(i).nodeSize;
|
|
12375
12673
|
return pos;
|
|
12376
12674
|
}
|
|
@@ -12381,12 +12679,12 @@ class ResolvedPos {
|
|
|
12381
12679
|
node after it (if any) are returned.
|
|
12382
12680
|
*/
|
|
12383
12681
|
marks() {
|
|
12384
|
-
let parent = this.parent,
|
|
12682
|
+
let parent = this.parent, index2 = this.index();
|
|
12385
12683
|
if (parent.content.size == 0)
|
|
12386
12684
|
return Mark.none;
|
|
12387
12685
|
if (this.textOffset)
|
|
12388
|
-
return parent.child(
|
|
12389
|
-
let main = parent.maybeChild(
|
|
12686
|
+
return parent.child(index2).marks;
|
|
12687
|
+
let main = parent.maybeChild(index2 - 1), other = parent.maybeChild(index2);
|
|
12390
12688
|
if (!main) {
|
|
12391
12689
|
let tmp = main;
|
|
12392
12690
|
main = other;
|
|
@@ -12479,12 +12777,12 @@ class ResolvedPos {
|
|
|
12479
12777
|
let path = [];
|
|
12480
12778
|
let start = 0, parentOffset = pos;
|
|
12481
12779
|
for (let node = doc2; ; ) {
|
|
12482
|
-
let { index, offset } = node.content.findIndex(parentOffset);
|
|
12780
|
+
let { index: index2, offset } = node.content.findIndex(parentOffset);
|
|
12483
12781
|
let rem = parentOffset - offset;
|
|
12484
|
-
path.push(node,
|
|
12782
|
+
path.push(node, index2, start + offset);
|
|
12485
12783
|
if (!rem)
|
|
12486
12784
|
break;
|
|
12487
|
-
node = node.child(
|
|
12785
|
+
node = node.child(index2);
|
|
12488
12786
|
if (node.isText)
|
|
12489
12787
|
break;
|
|
12490
12788
|
parentOffset = rem - 1;
|
|
@@ -12597,14 +12895,14 @@ let Node$1 = class Node2 {
|
|
|
12597
12895
|
Get the child node at the given index. Raises an error when the
|
|
12598
12896
|
index is out of range.
|
|
12599
12897
|
*/
|
|
12600
|
-
child(
|
|
12601
|
-
return this.content.child(
|
|
12898
|
+
child(index2) {
|
|
12899
|
+
return this.content.child(index2);
|
|
12602
12900
|
}
|
|
12603
12901
|
/**
|
|
12604
12902
|
Get the child node at the given index, if it exists.
|
|
12605
12903
|
*/
|
|
12606
|
-
maybeChild(
|
|
12607
|
-
return this.content.maybeChild(
|
|
12904
|
+
maybeChild(index2) {
|
|
12905
|
+
return this.content.maybeChild(index2);
|
|
12608
12906
|
}
|
|
12609
12907
|
/**
|
|
12610
12908
|
Call `f` for every child node, passing the node, its offset
|
|
@@ -12739,8 +13037,8 @@ let Node$1 = class Node2 {
|
|
|
12739
13037
|
*/
|
|
12740
13038
|
nodeAt(pos) {
|
|
12741
13039
|
for (let node = this; ; ) {
|
|
12742
|
-
let { index, offset } = node.content.findIndex(pos);
|
|
12743
|
-
node = node.maybeChild(
|
|
13040
|
+
let { index: index2, offset } = node.content.findIndex(pos);
|
|
13041
|
+
node = node.maybeChild(index2);
|
|
12744
13042
|
if (!node)
|
|
12745
13043
|
return null;
|
|
12746
13044
|
if (offset == pos || node.isText)
|
|
@@ -12754,8 +13052,8 @@ let Node$1 = class Node2 {
|
|
|
12754
13052
|
node.
|
|
12755
13053
|
*/
|
|
12756
13054
|
childAfter(pos) {
|
|
12757
|
-
let { index, offset } = this.content.findIndex(pos);
|
|
12758
|
-
return { node: this.content.maybeChild(
|
|
13055
|
+
let { index: index2, offset } = this.content.findIndex(pos);
|
|
13056
|
+
return { node: this.content.maybeChild(index2), index: index2, offset };
|
|
12759
13057
|
}
|
|
12760
13058
|
/**
|
|
12761
13059
|
Find the (direct) child node before the given offset, if any,
|
|
@@ -12765,11 +13063,11 @@ let Node$1 = class Node2 {
|
|
|
12765
13063
|
childBefore(pos) {
|
|
12766
13064
|
if (pos == 0)
|
|
12767
13065
|
return { node: null, index: 0, offset: 0 };
|
|
12768
|
-
let { index, offset } = this.content.findIndex(pos);
|
|
13066
|
+
let { index: index2, offset } = this.content.findIndex(pos);
|
|
12769
13067
|
if (offset < pos)
|
|
12770
|
-
return { node: this.content.child(
|
|
12771
|
-
let node = this.content.child(
|
|
12772
|
-
return { node, index:
|
|
13068
|
+
return { node: this.content.child(index2), index: index2, offset };
|
|
13069
|
+
let node = this.content.child(index2 - 1);
|
|
13070
|
+
return { node, index: index2 - 1, offset: offset - node.nodeSize };
|
|
12773
13071
|
}
|
|
12774
13072
|
/**
|
|
12775
13073
|
Resolve the given position in the document, returning an
|
|
@@ -12861,8 +13159,8 @@ let Node$1 = class Node2 {
|
|
|
12861
13159
|
/**
|
|
12862
13160
|
Get the content match in this node at the given index.
|
|
12863
13161
|
*/
|
|
12864
|
-
contentMatchAt(
|
|
12865
|
-
let match = this.type.contentMatch.matchFragment(this.content, 0,
|
|
13162
|
+
contentMatchAt(index2) {
|
|
13163
|
+
let match = this.type.contentMatch.matchFragment(this.content, 0, index2);
|
|
12866
13164
|
if (!match)
|
|
12867
13165
|
throw new Error("Called contentMatchAt on a node with invalid content");
|
|
12868
13166
|
return match;
|
|
@@ -14264,12 +14562,12 @@ class ParseContext {
|
|
|
14264
14562
|
// whole node, if not given). If `sync` is passed, use it to
|
|
14265
14563
|
// synchronize after every block element.
|
|
14266
14564
|
addAll(parent, marks, startIndex, endIndex) {
|
|
14267
|
-
let
|
|
14268
|
-
for (let dom = startIndex ? parent.childNodes[startIndex] : parent.firstChild, end = endIndex == null ? null : parent.childNodes[endIndex]; dom != end; dom = dom.nextSibling, ++
|
|
14269
|
-
this.findAtPoint(parent,
|
|
14565
|
+
let index2 = startIndex || 0;
|
|
14566
|
+
for (let dom = startIndex ? parent.childNodes[startIndex] : parent.firstChild, end = endIndex == null ? null : parent.childNodes[endIndex]; dom != end; dom = dom.nextSibling, ++index2) {
|
|
14567
|
+
this.findAtPoint(parent, index2);
|
|
14270
14568
|
this.addDOM(dom, marks);
|
|
14271
14569
|
}
|
|
14272
|
-
this.findAtPoint(parent,
|
|
14570
|
+
this.findAtPoint(parent, index2);
|
|
14273
14571
|
}
|
|
14274
14572
|
// Try to find a way to fit the given node type into the current
|
|
14275
14573
|
// context. May add intermediate wrappers and/or leave non-solid
|
|
@@ -15045,18 +15343,6 @@ const DEFAULT_CUSTOM_XML = {
|
|
|
15045
15343
|
}
|
|
15046
15344
|
]
|
|
15047
15345
|
};
|
|
15048
|
-
const SETTINGS_CUSTOM_XML = {
|
|
15049
|
-
elements: [
|
|
15050
|
-
{
|
|
15051
|
-
type: "element",
|
|
15052
|
-
name: "w:settings",
|
|
15053
|
-
attributes: {
|
|
15054
|
-
"xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
15055
|
-
},
|
|
15056
|
-
elements: []
|
|
15057
|
-
}
|
|
15058
|
-
]
|
|
15059
|
-
};
|
|
15060
15346
|
const COMMENT_REF = {
|
|
15061
15347
|
type: "element",
|
|
15062
15348
|
name: "w:r",
|
|
@@ -16223,216 +16509,10 @@ const carbonCopy = (obj) => {
|
|
|
16223
16509
|
return void 0;
|
|
16224
16510
|
}
|
|
16225
16511
|
};
|
|
16226
|
-
function translateCommentNode(params, type2) {
|
|
16227
|
-
const { node, commentsExportType, exportedCommentDefs = [] } = params;
|
|
16228
|
-
if (!exportedCommentDefs.length || commentsExportType === "clean") return;
|
|
16229
|
-
const nodeId = node.attrs["w:id"];
|
|
16230
|
-
const originalComment = params.comments.find((comment) => {
|
|
16231
|
-
return comment.commentId == nodeId;
|
|
16232
|
-
});
|
|
16233
|
-
if (!originalComment) return;
|
|
16234
|
-
const commentIndex = params.comments?.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
16235
|
-
const parentId = originalComment.parentCommentId;
|
|
16236
|
-
let parentComment;
|
|
16237
|
-
if (parentId) {
|
|
16238
|
-
parentComment = params.comments.find((c) => c.commentId === parentId || c.importedId === parentId);
|
|
16239
|
-
}
|
|
16240
|
-
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
16241
|
-
if (commentsExportType === "external" && isInternal) return;
|
|
16242
|
-
const isResolved = !!originalComment.resolvedTime;
|
|
16243
|
-
if (isResolved) return;
|
|
16244
|
-
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
16245
|
-
if (type2 === "End") {
|
|
16246
|
-
const commentReference = {
|
|
16247
|
-
name: "w:r",
|
|
16248
|
-
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
16249
|
-
};
|
|
16250
|
-
commentSchema = [commentSchema, commentReference];
|
|
16251
|
-
}
|
|
16252
|
-
return commentSchema;
|
|
16253
|
-
}
|
|
16254
|
-
const getCommentSchema = (type2, commentId) => {
|
|
16255
|
-
return {
|
|
16256
|
-
name: `w:commentRange${type2}`,
|
|
16257
|
-
attributes: {
|
|
16258
|
-
"w:id": String(commentId)
|
|
16259
|
-
}
|
|
16260
|
-
};
|
|
16261
|
-
};
|
|
16262
|
-
const prepareCommentParaIds = (comment) => {
|
|
16263
|
-
const newComment = {
|
|
16264
|
-
...comment,
|
|
16265
|
-
commentParaId: generateRandom32BitHex()
|
|
16266
|
-
};
|
|
16267
|
-
return newComment;
|
|
16268
|
-
};
|
|
16269
|
-
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
16270
|
-
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
16271
|
-
const attributes = {
|
|
16272
|
-
"w:id": String(commentId),
|
|
16273
|
-
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
16274
|
-
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
16275
|
-
"w:date": toIsoNoFractional(comment.createdTime),
|
|
16276
|
-
"w:initials": getInitials(comment.creatorName),
|
|
16277
|
-
"w:done": comment.resolvedTime ? "1" : "0",
|
|
16278
|
-
"w15:paraId": comment.commentParaId,
|
|
16279
|
-
"custom:internalId": comment.commentId || comment.internalId,
|
|
16280
|
-
"custom:trackedChange": comment.trackedChange,
|
|
16281
|
-
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
16282
|
-
"custom:trackedChangeType": comment.trackedChangeType,
|
|
16283
|
-
"custom:trackedDeletedText": comment.deletedText || null
|
|
16284
|
-
};
|
|
16285
|
-
if (comment?.parentCommentId) {
|
|
16286
|
-
const parentComment = allComments.find((c) => c.commentId === comment.parentCommentId);
|
|
16287
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
16288
|
-
}
|
|
16289
|
-
return {
|
|
16290
|
-
type: "element",
|
|
16291
|
-
name: "w:comment",
|
|
16292
|
-
attributes,
|
|
16293
|
-
elements: [translatedText]
|
|
16294
|
-
};
|
|
16295
|
-
};
|
|
16296
|
-
const getInitials = (name) => {
|
|
16297
|
-
if (!name) return null;
|
|
16298
|
-
const preparedText = name.replace("(imported)", "").trim();
|
|
16299
|
-
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
16300
|
-
return initials;
|
|
16301
|
-
};
|
|
16302
|
-
const toIsoNoFractional = (unixMillis) => {
|
|
16303
|
-
const date = new Date(unixMillis || Date.now());
|
|
16304
|
-
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
16305
|
-
};
|
|
16306
|
-
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
16307
|
-
const newCommentsXml = carbonCopy(commentsXml);
|
|
16308
|
-
commentDefs.forEach((commentDef) => {
|
|
16309
|
-
const elements = commentDef.elements[0].elements;
|
|
16310
|
-
elements.unshift(COMMENT_REF);
|
|
16311
|
-
const paraId = commentDef.attributes["w15:paraId"];
|
|
16312
|
-
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
16313
|
-
commentDef.attributes = {
|
|
16314
|
-
"w:id": commentDef.attributes["w:id"],
|
|
16315
|
-
"w:author": commentDef.attributes["w:author"],
|
|
16316
|
-
"w:email": commentDef.attributes["w:email"],
|
|
16317
|
-
"w:date": commentDef.attributes["w:date"],
|
|
16318
|
-
"w:initials": commentDef.attributes["w:initials"],
|
|
16319
|
-
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
16320
|
-
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
16321
|
-
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
16322
|
-
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
16323
|
-
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
16324
|
-
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
16325
|
-
};
|
|
16326
|
-
});
|
|
16327
|
-
newCommentsXml.elements[0].elements = commentDefs;
|
|
16328
|
-
return newCommentsXml;
|
|
16329
|
-
};
|
|
16330
|
-
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
16331
|
-
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
16332
|
-
const commentsEx = comments.map((comment) => {
|
|
16333
|
-
const attributes = {
|
|
16334
|
-
"w15:paraId": comment.commentParaId,
|
|
16335
|
-
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
16336
|
-
};
|
|
16337
|
-
const parentId = comment.parentCommentId;
|
|
16338
|
-
if (parentId) {
|
|
16339
|
-
const parentComment = comments.find((c) => c.commentId === parentId);
|
|
16340
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
16341
|
-
}
|
|
16342
|
-
return {
|
|
16343
|
-
type: "element",
|
|
16344
|
-
name: "w15:commentEx",
|
|
16345
|
-
attributes
|
|
16346
|
-
};
|
|
16347
|
-
});
|
|
16348
|
-
xmlCopy.elements[0].elements = commentsEx;
|
|
16349
|
-
return xmlCopy;
|
|
16350
|
-
};
|
|
16351
|
-
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
16352
|
-
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
16353
|
-
const extensibleUpdated = carbonCopy(extensible);
|
|
16354
|
-
documentIdsUpdated.elements[0].elements = [];
|
|
16355
|
-
extensibleUpdated.elements[0].elements = [];
|
|
16356
|
-
comments.forEach((comment) => {
|
|
16357
|
-
const newDurableId = generateRandom32BitHex();
|
|
16358
|
-
const newCommentIdDef = {
|
|
16359
|
-
type: "element",
|
|
16360
|
-
name: "w16cid:commentId",
|
|
16361
|
-
attributes: {
|
|
16362
|
-
"w16cid:paraId": comment.commentParaId,
|
|
16363
|
-
"w16cid:durableId": newDurableId
|
|
16364
|
-
}
|
|
16365
|
-
};
|
|
16366
|
-
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
16367
|
-
const newExtensible = {
|
|
16368
|
-
type: "element",
|
|
16369
|
-
name: "w16cex:commentExtensible",
|
|
16370
|
-
attributes: {
|
|
16371
|
-
"w16cex:durableId": newDurableId,
|
|
16372
|
-
"w16cex:dateUtc": toIsoNoFractional()
|
|
16373
|
-
}
|
|
16374
|
-
};
|
|
16375
|
-
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
16376
|
-
});
|
|
16377
|
-
return {
|
|
16378
|
-
documentIdsUpdated,
|
|
16379
|
-
extensibleUpdated
|
|
16380
|
-
};
|
|
16381
|
-
};
|
|
16382
|
-
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
16383
|
-
const newXml = carbonCopy(convertedXml);
|
|
16384
|
-
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
16385
|
-
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
16386
|
-
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
16387
|
-
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
16388
|
-
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
16389
|
-
return newXml;
|
|
16390
|
-
};
|
|
16391
|
-
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
16392
|
-
const updatedXml = carbonCopy(convertedXml);
|
|
16393
|
-
delete updatedXml["word/comments.xml"];
|
|
16394
|
-
delete updatedXml["word/commentsExtended.xml"];
|
|
16395
|
-
delete updatedXml["word/commentsExtensible.xml"];
|
|
16396
|
-
delete updatedXml["word/commentsIds.xml"];
|
|
16397
|
-
return updatedXml;
|
|
16398
|
-
};
|
|
16399
|
-
const generateRelationship = (target) => {
|
|
16400
|
-
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
16401
|
-
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
16402
|
-
return { ...rel };
|
|
16403
|
-
};
|
|
16404
|
-
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
16405
|
-
const relationships = [];
|
|
16406
|
-
if (exportType === "clean") {
|
|
16407
|
-
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
16408
|
-
return { documentXml, relationships };
|
|
16409
|
-
}
|
|
16410
|
-
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
16411
|
-
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
16412
|
-
relationships.push(generateRelationship("comments.xml"));
|
|
16413
|
-
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
16414
|
-
commentsWithParaIds,
|
|
16415
|
-
updatedXml["word/commentsExtended.xml"]
|
|
16416
|
-
);
|
|
16417
|
-
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
16418
|
-
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
16419
|
-
commentsWithParaIds,
|
|
16420
|
-
updatedXml["word/commentsIds.xml"],
|
|
16421
|
-
updatedXml["word/commentsExtensible.xml"]
|
|
16422
|
-
);
|
|
16423
|
-
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
16424
|
-
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
16425
|
-
relationships.push(generateRelationship("commentsIds.xml"));
|
|
16426
|
-
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
16427
|
-
return {
|
|
16428
|
-
relationships,
|
|
16429
|
-
documentXml: updatedXml
|
|
16430
|
-
};
|
|
16431
|
-
};
|
|
16432
16512
|
const lower16 = 65535;
|
|
16433
16513
|
const factor16 = Math.pow(2, 16);
|
|
16434
|
-
function makeRecover(
|
|
16435
|
-
return
|
|
16514
|
+
function makeRecover(index2, offset) {
|
|
16515
|
+
return index2 + offset * factor16;
|
|
16436
16516
|
}
|
|
16437
16517
|
function recoverIndex(value) {
|
|
16438
16518
|
return value & lower16;
|
|
@@ -16495,11 +16575,11 @@ class StepMap {
|
|
|
16495
16575
|
@internal
|
|
16496
16576
|
*/
|
|
16497
16577
|
recover(value) {
|
|
16498
|
-
let diff = 0,
|
|
16578
|
+
let diff = 0, index2 = recoverIndex(value);
|
|
16499
16579
|
if (!this.inverted)
|
|
16500
|
-
for (let i = 0; i <
|
|
16580
|
+
for (let i = 0; i < index2; i++)
|
|
16501
16581
|
diff += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
|
|
16502
|
-
return this.ranges[
|
|
16582
|
+
return this.ranges[index2 * 3] + diff + recoverOffset(value);
|
|
16503
16583
|
}
|
|
16504
16584
|
mapResult(pos, assoc = 1) {
|
|
16505
16585
|
return this._map(pos, assoc, false);
|
|
@@ -16536,14 +16616,14 @@ class StepMap {
|
|
|
16536
16616
|
@internal
|
|
16537
16617
|
*/
|
|
16538
16618
|
touches(pos, recover) {
|
|
16539
|
-
let diff = 0,
|
|
16619
|
+
let diff = 0, index2 = recoverIndex(recover);
|
|
16540
16620
|
let oldIndex = this.inverted ? 2 : 1, newIndex = this.inverted ? 1 : 2;
|
|
16541
16621
|
for (let i = 0; i < this.ranges.length; i += 3) {
|
|
16542
16622
|
let start = this.ranges[i] - (this.inverted ? diff : 0);
|
|
16543
16623
|
if (start > pos)
|
|
16544
16624
|
break;
|
|
16545
16625
|
let oldSize = this.ranges[i + oldIndex], end = start + oldSize;
|
|
16546
|
-
if (pos <= end && i ==
|
|
16626
|
+
if (pos <= end && i == index2 * 3)
|
|
16547
16627
|
return true;
|
|
16548
16628
|
diff += this.ranges[i + newIndex] - oldSize;
|
|
16549
16629
|
}
|
|
@@ -17247,10 +17327,10 @@ function liftTarget(range2) {
|
|
|
17247
17327
|
let content = parent.content.cutByIndex(range2.startIndex, range2.endIndex);
|
|
17248
17328
|
for (let depth = range2.depth; ; --depth) {
|
|
17249
17329
|
let node = range2.$from.node(depth);
|
|
17250
|
-
let
|
|
17251
|
-
if (depth < range2.depth && node.canReplace(
|
|
17330
|
+
let index2 = range2.$from.index(depth), endIndex = range2.$to.indexAfter(depth);
|
|
17331
|
+
if (depth < range2.depth && node.canReplace(index2, endIndex, content))
|
|
17252
17332
|
return depth;
|
|
17253
|
-
if (depth == 0 || node.type.spec.isolating || !canCut(node,
|
|
17333
|
+
if (depth == 0 || node.type.spec.isolating || !canCut(node, index2, endIndex))
|
|
17254
17334
|
break;
|
|
17255
17335
|
}
|
|
17256
17336
|
return null;
|
|
@@ -17371,8 +17451,8 @@ function replaceLinebreaks(tr, node, pos, mapFrom) {
|
|
|
17371
17451
|
});
|
|
17372
17452
|
}
|
|
17373
17453
|
function canChangeType(doc2, pos, type2) {
|
|
17374
|
-
let $pos = doc2.resolve(pos),
|
|
17375
|
-
return $pos.parent.canReplaceWith(
|
|
17454
|
+
let $pos = doc2.resolve(pos), index2 = $pos.index();
|
|
17455
|
+
return $pos.parent.canReplaceWith(index2, index2 + 1, type2);
|
|
17376
17456
|
}
|
|
17377
17457
|
function setNodeMarkup(tr, pos, type2, attrs, marks) {
|
|
17378
17458
|
let node = tr.doc.nodeAt(pos);
|
|
@@ -17393,20 +17473,20 @@ function canSplit(doc2, pos, depth = 1, typesAfter) {
|
|
|
17393
17473
|
if (base < 0 || $pos.parent.type.spec.isolating || !$pos.parent.canReplace($pos.index(), $pos.parent.childCount) || !innerType.type.validContent($pos.parent.content.cutByIndex($pos.index(), $pos.parent.childCount)))
|
|
17394
17474
|
return false;
|
|
17395
17475
|
for (let d2 = $pos.depth - 1, i = depth - 2; d2 > base; d2--, i--) {
|
|
17396
|
-
let node = $pos.node(d2),
|
|
17476
|
+
let node = $pos.node(d2), index3 = $pos.index(d2);
|
|
17397
17477
|
if (node.type.spec.isolating)
|
|
17398
17478
|
return false;
|
|
17399
|
-
let rest = node.content.cutByIndex(
|
|
17479
|
+
let rest = node.content.cutByIndex(index3, node.childCount);
|
|
17400
17480
|
let overrideChild = typesAfter && typesAfter[i + 1];
|
|
17401
17481
|
if (overrideChild)
|
|
17402
17482
|
rest = rest.replaceChild(0, overrideChild.type.create(overrideChild.attrs));
|
|
17403
17483
|
let after = typesAfter && typesAfter[i] || node;
|
|
17404
|
-
if (!node.canReplace(
|
|
17484
|
+
if (!node.canReplace(index3 + 1, node.childCount) || !after.type.validContent(rest))
|
|
17405
17485
|
return false;
|
|
17406
17486
|
}
|
|
17407
|
-
let
|
|
17487
|
+
let index2 = $pos.indexAfter(base);
|
|
17408
17488
|
let baseType = typesAfter && typesAfter[0];
|
|
17409
|
-
return $pos.node(base).canReplaceWith(
|
|
17489
|
+
return $pos.node(base).canReplaceWith(index2, index2, baseType ? baseType.type : $pos.node(base + 1).type);
|
|
17410
17490
|
}
|
|
17411
17491
|
function split(tr, pos, depth = 1, typesAfter) {
|
|
17412
17492
|
let $pos = tr.doc.resolve(pos), before = Fragment.empty, after = Fragment.empty;
|
|
@@ -17418,8 +17498,8 @@ function split(tr, pos, depth = 1, typesAfter) {
|
|
|
17418
17498
|
tr.step(new ReplaceStep(pos, pos, new Slice(before.append(after), depth, depth), true));
|
|
17419
17499
|
}
|
|
17420
17500
|
function canJoin(doc2, pos) {
|
|
17421
|
-
let $pos = doc2.resolve(pos),
|
|
17422
|
-
return joinable($pos.nodeBefore, $pos.nodeAfter) && $pos.parent.canReplace(
|
|
17501
|
+
let $pos = doc2.resolve(pos), index2 = $pos.index();
|
|
17502
|
+
return joinable($pos.nodeBefore, $pos.nodeAfter) && $pos.parent.canReplace(index2, index2 + 1);
|
|
17423
17503
|
}
|
|
17424
17504
|
function canAppendWithSubstitutedLinebreaks(a, b2) {
|
|
17425
17505
|
if (!b2.content.size)
|
|
@@ -17443,19 +17523,19 @@ function joinable(a, b2) {
|
|
|
17443
17523
|
function joinPoint(doc2, pos, dir = -1) {
|
|
17444
17524
|
let $pos = doc2.resolve(pos);
|
|
17445
17525
|
for (let d2 = $pos.depth; ; d2--) {
|
|
17446
|
-
let before, after,
|
|
17526
|
+
let before, after, index2 = $pos.index(d2);
|
|
17447
17527
|
if (d2 == $pos.depth) {
|
|
17448
17528
|
before = $pos.nodeBefore;
|
|
17449
17529
|
after = $pos.nodeAfter;
|
|
17450
17530
|
} else if (dir > 0) {
|
|
17451
17531
|
before = $pos.node(d2 + 1);
|
|
17452
|
-
|
|
17453
|
-
after = $pos.node(d2).maybeChild(
|
|
17532
|
+
index2++;
|
|
17533
|
+
after = $pos.node(d2).maybeChild(index2);
|
|
17454
17534
|
} else {
|
|
17455
|
-
before = $pos.node(d2).maybeChild(
|
|
17535
|
+
before = $pos.node(d2).maybeChild(index2 - 1);
|
|
17456
17536
|
after = $pos.node(d2 + 1);
|
|
17457
17537
|
}
|
|
17458
|
-
if (before && !before.isTextblock && joinable(before, after) && $pos.node(d2).canReplace(
|
|
17538
|
+
if (before && !before.isTextblock && joinable(before, after) && $pos.node(d2).canReplace(index2, index2 + 1))
|
|
17459
17539
|
return pos;
|
|
17460
17540
|
if (d2 == 0)
|
|
17461
17541
|
break;
|
|
@@ -17495,18 +17575,18 @@ function insertPoint(doc2, pos, nodeType) {
|
|
|
17495
17575
|
return pos;
|
|
17496
17576
|
if ($pos.parentOffset == 0)
|
|
17497
17577
|
for (let d2 = $pos.depth - 1; d2 >= 0; d2--) {
|
|
17498
|
-
let
|
|
17499
|
-
if ($pos.node(d2).canReplaceWith(
|
|
17578
|
+
let index2 = $pos.index(d2);
|
|
17579
|
+
if ($pos.node(d2).canReplaceWith(index2, index2, nodeType))
|
|
17500
17580
|
return $pos.before(d2 + 1);
|
|
17501
|
-
if (
|
|
17581
|
+
if (index2 > 0)
|
|
17502
17582
|
return null;
|
|
17503
17583
|
}
|
|
17504
17584
|
if ($pos.parentOffset == $pos.parent.content.size)
|
|
17505
17585
|
for (let d2 = $pos.depth - 1; d2 >= 0; d2--) {
|
|
17506
|
-
let
|
|
17507
|
-
if ($pos.node(d2).canReplaceWith(
|
|
17586
|
+
let index2 = $pos.indexAfter(d2);
|
|
17587
|
+
if ($pos.node(d2).canReplaceWith(index2, index2, nodeType))
|
|
17508
17588
|
return $pos.after(d2 + 1);
|
|
17509
|
-
if (
|
|
17589
|
+
if (index2 < $pos.node(d2).childCount)
|
|
17510
17590
|
return null;
|
|
17511
17591
|
}
|
|
17512
17592
|
return null;
|
|
@@ -17773,11 +17853,11 @@ function closeNodeStart(node, openStart, openEnd) {
|
|
|
17773
17853
|
return node.copy(frag);
|
|
17774
17854
|
}
|
|
17775
17855
|
function contentAfterFits($to, depth, type2, match, open) {
|
|
17776
|
-
let node = $to.node(depth),
|
|
17777
|
-
if (
|
|
17856
|
+
let node = $to.node(depth), index2 = open ? $to.indexAfter(depth) : $to.index(depth);
|
|
17857
|
+
if (index2 == node.childCount && !type2.compatibleContent(node.type))
|
|
17778
17858
|
return null;
|
|
17779
|
-
let fit = match.fillBefore(node.content, true,
|
|
17780
|
-
return fit && !invalidMarks(type2, node.content,
|
|
17859
|
+
let fit = match.fillBefore(node.content, true, index2);
|
|
17860
|
+
return fit && !invalidMarks(type2, node.content, index2) ? fit : null;
|
|
17781
17861
|
}
|
|
17782
17862
|
function invalidMarks(type2, fragment, start) {
|
|
17783
17863
|
for (let i = start; i < fragment.childCount; i++)
|
|
@@ -17835,8 +17915,8 @@ function replaceRange(tr, from, to, slice) {
|
|
|
17835
17915
|
expand = false;
|
|
17836
17916
|
targetDepth = -targetDepth;
|
|
17837
17917
|
}
|
|
17838
|
-
let parent = $from.node(targetDepth - 1),
|
|
17839
|
-
if (parent.canReplaceWith(
|
|
17918
|
+
let parent = $from.node(targetDepth - 1), index2 = $from.index(targetDepth - 1);
|
|
17919
|
+
if (parent.canReplaceWith(index2, index2, insert.type, insert.marks))
|
|
17840
17920
|
return tr.replace($from.before(targetDepth), expand ? $to.after(targetDepth) : to, new Slice(closeFragment(slice.content, 0, slice.openStart, openDepth), openDepth, slice.openEnd));
|
|
17841
17921
|
}
|
|
17842
17922
|
}
|
|
@@ -18648,10 +18728,10 @@ const AllBookmark = {
|
|
|
18648
18728
|
return new AllSelection(doc2);
|
|
18649
18729
|
}
|
|
18650
18730
|
};
|
|
18651
|
-
function findSelectionIn(doc2, node, pos,
|
|
18731
|
+
function findSelectionIn(doc2, node, pos, index2, dir, text = false) {
|
|
18652
18732
|
if (node.inlineContent)
|
|
18653
18733
|
return TextSelection.create(doc2, pos);
|
|
18654
|
-
for (let i =
|
|
18734
|
+
for (let i = index2 - (dir > 0 ? 0 : 1); dir > 0 ? i < node.childCount : i >= 0; i += dir) {
|
|
18655
18735
|
let child = node.child(i);
|
|
18656
18736
|
if (!child.isAtom) {
|
|
18657
18737
|
let inner = findSelectionIn(doc2, child, pos + dir, dir < 0 ? child.childCount : 0, dir, text);
|
|
@@ -19252,10 +19332,10 @@ function handleListNodes(params, node) {
|
|
|
19252
19332
|
const firstElement = innerParagraph.content[0];
|
|
19253
19333
|
firstElement?.marks?.find((mark) => mark.type === "textStyle");
|
|
19254
19334
|
attrs.indent = listpPrs?.indent;
|
|
19255
|
-
const processedContents = listContents.map((el,
|
|
19335
|
+
const processedContents = listContents.map((el, index2) => {
|
|
19256
19336
|
const { attrs: elementAttrs } = el;
|
|
19257
19337
|
const { indent, textIndent, paragraphProperties, ...rest } = elementAttrs;
|
|
19258
|
-
if (
|
|
19338
|
+
if (index2 === 0 && !attrs.indent) attrs.indent = indent;
|
|
19259
19339
|
return {
|
|
19260
19340
|
...el,
|
|
19261
19341
|
attrs: rest
|
|
@@ -21395,6 +21475,16 @@ function stripHtmlStyles(html) {
|
|
|
21395
21475
|
if (node.nodeType !== window.Node.ELEMENT_NODE) return;
|
|
21396
21476
|
[...node.attributes].forEach((attr) => {
|
|
21397
21477
|
const name = attr.name.toLowerCase();
|
|
21478
|
+
if (node.nodeName.toLowerCase() === "span") {
|
|
21479
|
+
node.innerHTML = node.innerHTML.replace(/(\S) (<\/span>)/g, "$1 $2");
|
|
21480
|
+
}
|
|
21481
|
+
if (name === "style") {
|
|
21482
|
+
const cleanedStyle = cleanStyle(attr.value);
|
|
21483
|
+
if (!cleanedStyle) {
|
|
21484
|
+
node.removeAttribute(attr.name);
|
|
21485
|
+
} else node.setAttribute(attr.name, cleanedStyle);
|
|
21486
|
+
return;
|
|
21487
|
+
}
|
|
21398
21488
|
const shouldKeep = SUPPORTED_ATTRS.includes(name) || name.startsWith("data-");
|
|
21399
21489
|
if (!shouldKeep) {
|
|
21400
21490
|
node.removeAttribute(attr.name);
|
|
@@ -21405,6 +21495,12 @@ function stripHtmlStyles(html) {
|
|
|
21405
21495
|
cleanNode(doc2.body);
|
|
21406
21496
|
return doc2.body.innerHTML;
|
|
21407
21497
|
}
|
|
21498
|
+
function cleanStyle(style) {
|
|
21499
|
+
if (!style) return "";
|
|
21500
|
+
const declarations = style.split(";").map((s) => s.trim()).filter(Boolean);
|
|
21501
|
+
const textAlign = declarations.find((d2) => d2.startsWith("text-align"));
|
|
21502
|
+
return textAlign ? `${textAlign};` : "";
|
|
21503
|
+
}
|
|
21408
21504
|
function createDocFromHTML(content, schema, options = {}) {
|
|
21409
21505
|
const { isImport = false } = options;
|
|
21410
21506
|
let parsedContent;
|
|
@@ -22967,16 +23063,16 @@ function translateChildNodes(params) {
|
|
|
22967
23063
|
if (!nodes) return [];
|
|
22968
23064
|
const translatedNodes = [];
|
|
22969
23065
|
const hyperlinkGroup = [];
|
|
22970
|
-
let
|
|
22971
|
-
while (
|
|
22972
|
-
const node = nodes[
|
|
23066
|
+
let index2 = 0;
|
|
23067
|
+
while (index2 < nodes.length) {
|
|
23068
|
+
const node = nodes[index2];
|
|
22973
23069
|
const linkMark = _isLinkNode(node);
|
|
22974
23070
|
if (linkMark) {
|
|
22975
23071
|
hyperlinkGroup.push(node);
|
|
22976
|
-
const nextNode =
|
|
23072
|
+
const nextNode = index2 + 1 < nodes.length ? nodes[index2 + 1] : null;
|
|
22977
23073
|
const nextIsLink = _isLinkNode(nextNode, linkMark);
|
|
22978
23074
|
if (nextIsLink) {
|
|
22979
|
-
|
|
23075
|
+
index2++;
|
|
22980
23076
|
continue;
|
|
22981
23077
|
} else {
|
|
22982
23078
|
let translatedLinkGroup = exportSchemaToJson({
|
|
@@ -22987,14 +23083,14 @@ function translateChildNodes(params) {
|
|
|
22987
23083
|
if (translatedLinkGroup instanceof Array) translatedNodes.push(...translatedLinkGroup);
|
|
22988
23084
|
else translatedNodes.push(translatedLinkGroup);
|
|
22989
23085
|
hyperlinkGroup.length = 0;
|
|
22990
|
-
|
|
23086
|
+
index2++;
|
|
22991
23087
|
continue;
|
|
22992
23088
|
}
|
|
22993
23089
|
}
|
|
22994
23090
|
let translatedNode = exportSchemaToJson({ ...params, node });
|
|
22995
23091
|
if (translatedNode instanceof Array) translatedNodes.push(...translatedNode);
|
|
22996
23092
|
else translatedNodes.push(translatedNode);
|
|
22997
|
-
|
|
23093
|
+
index2++;
|
|
22998
23094
|
}
|
|
22999
23095
|
return translatedNodes.filter((n) => n);
|
|
23000
23096
|
}
|
|
@@ -24374,33 +24470,33 @@ let NodeTranslator = _NodeTranslator;
|
|
|
24374
24470
|
const encode$1b = (attributes) => {
|
|
24375
24471
|
return attributes["w:type"];
|
|
24376
24472
|
};
|
|
24377
|
-
const decode$
|
|
24473
|
+
const decode$13 = (attrs) => {
|
|
24378
24474
|
const { lineBreakType } = attrs;
|
|
24379
24475
|
return lineBreakType;
|
|
24380
24476
|
};
|
|
24381
|
-
const attrConfig$
|
|
24477
|
+
const attrConfig$G = Object.freeze({
|
|
24382
24478
|
xmlName: "w:type",
|
|
24383
24479
|
sdName: "lineBreakType",
|
|
24384
24480
|
encode: encode$1b,
|
|
24385
|
-
decode: decode$
|
|
24481
|
+
decode: decode$13
|
|
24386
24482
|
});
|
|
24387
24483
|
const encode$1a = (attributes) => {
|
|
24388
24484
|
const xmlAttrValue = attributes["w:clear"];
|
|
24389
24485
|
return xmlAttrValue;
|
|
24390
24486
|
};
|
|
24391
|
-
const decode$
|
|
24487
|
+
const decode$12 = (attrs) => {
|
|
24392
24488
|
const { clear } = attrs;
|
|
24393
24489
|
return clear;
|
|
24394
24490
|
};
|
|
24395
|
-
const attrConfig$
|
|
24491
|
+
const attrConfig$F = Object.freeze({
|
|
24396
24492
|
xmlName: "w:clear",
|
|
24397
24493
|
sdName: "clear",
|
|
24398
24494
|
encode: encode$1a,
|
|
24399
|
-
decode: decode$
|
|
24495
|
+
decode: decode$12
|
|
24400
24496
|
});
|
|
24401
|
-
const validXmlAttributes$m = [attrConfig$
|
|
24402
|
-
const XML_NODE_NAME$
|
|
24403
|
-
const SD_NODE_NAME$
|
|
24497
|
+
const validXmlAttributes$m = [attrConfig$G, attrConfig$F];
|
|
24498
|
+
const XML_NODE_NAME$y = "w:br";
|
|
24499
|
+
const SD_NODE_NAME$g = "lineBreak";
|
|
24404
24500
|
const encode$19 = (_2, encodedAttrs) => {
|
|
24405
24501
|
const isPageBreak = encodedAttrs?.lineBreakType === "page";
|
|
24406
24502
|
const translated = {
|
|
@@ -24411,7 +24507,7 @@ const encode$19 = (_2, encodedAttrs) => {
|
|
|
24411
24507
|
}
|
|
24412
24508
|
return translated;
|
|
24413
24509
|
};
|
|
24414
|
-
const decode
|
|
24510
|
+
const decode$11 = (params, decodedAttrs) => {
|
|
24415
24511
|
const { node } = params;
|
|
24416
24512
|
if (!node) return;
|
|
24417
24513
|
const wBreak = { name: "w:br" };
|
|
@@ -24429,24 +24525,24 @@ const decode$$ = (params, decodedAttrs) => {
|
|
|
24429
24525
|
return translated;
|
|
24430
24526
|
};
|
|
24431
24527
|
const config$v = {
|
|
24432
|
-
xmlName: XML_NODE_NAME$
|
|
24433
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
24528
|
+
xmlName: XML_NODE_NAME$y,
|
|
24529
|
+
sdNodeOrKeyName: SD_NODE_NAME$g,
|
|
24434
24530
|
type: NodeTranslator.translatorTypes.NODE,
|
|
24435
24531
|
encode: encode$19,
|
|
24436
|
-
decode: decode
|
|
24532
|
+
decode: decode$11,
|
|
24437
24533
|
attributes: validXmlAttributes$m
|
|
24438
24534
|
};
|
|
24439
24535
|
const translator$19 = NodeTranslator.from(config$v);
|
|
24440
24536
|
const encode$18 = (attributes) => attributes?.["w:val"];
|
|
24441
|
-
const decode$
|
|
24442
|
-
const attrConfig$
|
|
24537
|
+
const decode$10 = (attrs) => attrs?.highlight;
|
|
24538
|
+
const attrConfig$E = Object.freeze({
|
|
24443
24539
|
xmlName: "w:val",
|
|
24444
24540
|
sdName: "highlight",
|
|
24445
24541
|
encode: encode$18,
|
|
24446
|
-
decode: decode$
|
|
24542
|
+
decode: decode$10
|
|
24447
24543
|
});
|
|
24448
|
-
const validXmlAttributes$l = [attrConfig$
|
|
24449
|
-
const XML_NODE_NAME$
|
|
24544
|
+
const validXmlAttributes$l = [attrConfig$E];
|
|
24545
|
+
const XML_NODE_NAME$x = "w:highlight";
|
|
24450
24546
|
const SD_ATTR_KEY$g = "highlight";
|
|
24451
24547
|
const DISABLED_TOKENS = /* @__PURE__ */ new Set(["transparent", "none", "inherit"]);
|
|
24452
24548
|
const encode$17 = (params, encodedAttrs = {}) => {
|
|
@@ -24455,12 +24551,12 @@ const encode$17 = (params, encodedAttrs = {}) => {
|
|
|
24455
24551
|
const value = encodedAttrs.highlight ?? node?.attributes?.["w:val"];
|
|
24456
24552
|
return {
|
|
24457
24553
|
type: "attr",
|
|
24458
|
-
xmlName: XML_NODE_NAME$
|
|
24554
|
+
xmlName: XML_NODE_NAME$x,
|
|
24459
24555
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
24460
24556
|
attributes: { "w:val": value ?? null }
|
|
24461
24557
|
};
|
|
24462
24558
|
};
|
|
24463
|
-
const decode
|
|
24559
|
+
const decode$$ = (params) => {
|
|
24464
24560
|
const attrs = params?.node?.attrs || {};
|
|
24465
24561
|
const highlightValue = attrs.highlight ?? attrs.color ?? null;
|
|
24466
24562
|
if (!highlightValue) return void 0;
|
|
@@ -24468,14 +24564,14 @@ const decode$Z = (params) => {
|
|
|
24468
24564
|
if (!normalizedValue) return void 0;
|
|
24469
24565
|
if (DISABLED_TOKENS.has(normalizedValue)) {
|
|
24470
24566
|
return {
|
|
24471
|
-
name: XML_NODE_NAME$
|
|
24567
|
+
name: XML_NODE_NAME$x,
|
|
24472
24568
|
attributes: { "w:val": "none" }
|
|
24473
24569
|
};
|
|
24474
24570
|
}
|
|
24475
24571
|
const keyword = getDocxHighlightKeywordFromHex(highlightValue);
|
|
24476
24572
|
if (keyword) {
|
|
24477
24573
|
return {
|
|
24478
|
-
name: XML_NODE_NAME$
|
|
24574
|
+
name: XML_NODE_NAME$x,
|
|
24479
24575
|
attributes: { "w:val": keyword }
|
|
24480
24576
|
};
|
|
24481
24577
|
}
|
|
@@ -24491,62 +24587,62 @@ const decode$Z = (params) => {
|
|
|
24491
24587
|
};
|
|
24492
24588
|
};
|
|
24493
24589
|
const config$u = {
|
|
24494
|
-
xmlName: XML_NODE_NAME$
|
|
24590
|
+
xmlName: XML_NODE_NAME$x,
|
|
24495
24591
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
24496
24592
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
24497
24593
|
encode: encode$17,
|
|
24498
|
-
decode: decode
|
|
24594
|
+
decode: decode$$,
|
|
24499
24595
|
attributes: validXmlAttributes$l
|
|
24500
24596
|
};
|
|
24501
24597
|
const translator$18 = NodeTranslator.from(config$u);
|
|
24502
24598
|
const encode$16 = (attributes) => {
|
|
24503
24599
|
return attributes["w:val"];
|
|
24504
24600
|
};
|
|
24505
|
-
const decode$
|
|
24601
|
+
const decode$_ = (attrs) => {
|
|
24506
24602
|
const { tabSize } = attrs || {};
|
|
24507
24603
|
return tabSize;
|
|
24508
24604
|
};
|
|
24509
|
-
const attrConfig$
|
|
24605
|
+
const attrConfig$D = Object.freeze({
|
|
24510
24606
|
xmlName: "w:val",
|
|
24511
24607
|
sdName: "tabSize",
|
|
24512
24608
|
encode: encode$16,
|
|
24513
|
-
decode: decode$
|
|
24609
|
+
decode: decode$_
|
|
24514
24610
|
});
|
|
24515
24611
|
const encode$15 = (attributes) => {
|
|
24516
24612
|
return attributes["w:leader"];
|
|
24517
24613
|
};
|
|
24518
|
-
const decode$
|
|
24614
|
+
const decode$Z = (attrs) => {
|
|
24519
24615
|
const { leader } = attrs || {};
|
|
24520
24616
|
return leader;
|
|
24521
24617
|
};
|
|
24522
|
-
const attrConfig$
|
|
24618
|
+
const attrConfig$C = Object.freeze({
|
|
24523
24619
|
xmlName: "w:leader",
|
|
24524
24620
|
sdName: "leader",
|
|
24525
24621
|
encode: encode$15,
|
|
24526
|
-
decode: decode$
|
|
24622
|
+
decode: decode$Z
|
|
24527
24623
|
});
|
|
24528
24624
|
const encode$14 = (attributes) => {
|
|
24529
24625
|
return attributes["w:pos"];
|
|
24530
24626
|
};
|
|
24531
|
-
const decode$
|
|
24627
|
+
const decode$Y = (attrs) => {
|
|
24532
24628
|
const { pos } = attrs || {};
|
|
24533
24629
|
return pos;
|
|
24534
24630
|
};
|
|
24535
|
-
const attrConfig$
|
|
24631
|
+
const attrConfig$B = Object.freeze({
|
|
24536
24632
|
xmlName: "w:pos",
|
|
24537
24633
|
sdName: "pos",
|
|
24538
24634
|
encode: encode$14,
|
|
24539
|
-
decode: decode$
|
|
24635
|
+
decode: decode$Y
|
|
24540
24636
|
});
|
|
24541
|
-
const validXmlAttributes$k = [attrConfig$
|
|
24542
|
-
const XML_NODE_NAME$
|
|
24543
|
-
const SD_NODE_NAME$
|
|
24637
|
+
const validXmlAttributes$k = [attrConfig$D, attrConfig$B, attrConfig$C];
|
|
24638
|
+
const XML_NODE_NAME$w = "w:tab";
|
|
24639
|
+
const SD_NODE_NAME$f = "tab";
|
|
24544
24640
|
const encode$13 = (_2, encodedAttrs = {}) => {
|
|
24545
24641
|
const translated = { type: "tab" };
|
|
24546
24642
|
if (encodedAttrs) translated.attrs = { ...encodedAttrs };
|
|
24547
24643
|
return translated;
|
|
24548
24644
|
};
|
|
24549
|
-
const decode$
|
|
24645
|
+
const decode$X = (params, decodedAttrs = {}) => {
|
|
24550
24646
|
const { node } = params || {};
|
|
24551
24647
|
if (!node) return;
|
|
24552
24648
|
const wTab = { name: "w:tab" };
|
|
@@ -24563,11 +24659,11 @@ const decode$V = (params, decodedAttrs = {}) => {
|
|
|
24563
24659
|
return translated;
|
|
24564
24660
|
};
|
|
24565
24661
|
const config$t = {
|
|
24566
|
-
xmlName: XML_NODE_NAME$
|
|
24567
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
24662
|
+
xmlName: XML_NODE_NAME$w,
|
|
24663
|
+
sdNodeOrKeyName: SD_NODE_NAME$f,
|
|
24568
24664
|
type: NodeTranslator.translatorTypes.NODE,
|
|
24569
24665
|
encode: encode$13,
|
|
24570
|
-
decode: decode$
|
|
24666
|
+
decode: decode$X,
|
|
24571
24667
|
attributes: validXmlAttributes$k
|
|
24572
24668
|
};
|
|
24573
24669
|
const translator$17 = NodeTranslator.from(config$t);
|
|
@@ -25091,98 +25187,98 @@ const handleParagraphNode$1 = (params) => {
|
|
|
25091
25187
|
const encode$12 = (attributes) => {
|
|
25092
25188
|
return attributes["w:rsidDel"];
|
|
25093
25189
|
};
|
|
25094
|
-
const decode$
|
|
25190
|
+
const decode$W = (attrs) => {
|
|
25095
25191
|
return attrs.rsidDel;
|
|
25096
25192
|
};
|
|
25097
|
-
const attrConfig$
|
|
25193
|
+
const attrConfig$A = Object.freeze({
|
|
25098
25194
|
xmlName: "w:rsidDel",
|
|
25099
25195
|
sdName: "rsidDel",
|
|
25100
25196
|
encode: encode$12,
|
|
25101
|
-
decode: decode$
|
|
25197
|
+
decode: decode$W
|
|
25102
25198
|
});
|
|
25103
25199
|
const encode$11 = (attributes) => {
|
|
25104
25200
|
return attributes["w:rsidP"];
|
|
25105
25201
|
};
|
|
25106
|
-
const decode$
|
|
25202
|
+
const decode$V = (attrs) => {
|
|
25107
25203
|
return attrs.rsidP;
|
|
25108
25204
|
};
|
|
25109
|
-
const attrConfig$
|
|
25205
|
+
const attrConfig$z = Object.freeze({
|
|
25110
25206
|
xmlName: "w:rsidP",
|
|
25111
25207
|
sdName: "rsidP",
|
|
25112
25208
|
encode: encode$11,
|
|
25113
|
-
decode: decode$
|
|
25209
|
+
decode: decode$V
|
|
25114
25210
|
});
|
|
25115
25211
|
const encode$10 = (attributes) => {
|
|
25116
25212
|
return attributes["w:rsidR"];
|
|
25117
25213
|
};
|
|
25118
|
-
const decode$
|
|
25214
|
+
const decode$U = (attrs) => {
|
|
25119
25215
|
return attrs.rsidR;
|
|
25120
25216
|
};
|
|
25121
|
-
const attrConfig$
|
|
25217
|
+
const attrConfig$y = Object.freeze({
|
|
25122
25218
|
xmlName: "w:rsidR",
|
|
25123
25219
|
sdName: "rsidR",
|
|
25124
25220
|
encode: encode$10,
|
|
25125
|
-
decode: decode$
|
|
25221
|
+
decode: decode$U
|
|
25126
25222
|
});
|
|
25127
25223
|
const encode$$ = (attributes) => {
|
|
25128
25224
|
return attributes["w:rsidRPr"];
|
|
25129
25225
|
};
|
|
25130
|
-
const decode$
|
|
25226
|
+
const decode$T = (attrs) => {
|
|
25131
25227
|
return attrs.rsidRPr;
|
|
25132
25228
|
};
|
|
25133
|
-
const attrConfig$
|
|
25229
|
+
const attrConfig$x = Object.freeze({
|
|
25134
25230
|
xmlName: "w:rsidRPr",
|
|
25135
25231
|
sdName: "rsidRPr",
|
|
25136
25232
|
encode: encode$$,
|
|
25137
|
-
decode: decode$
|
|
25233
|
+
decode: decode$T
|
|
25138
25234
|
});
|
|
25139
25235
|
const encode$_ = (attributes) => {
|
|
25140
25236
|
return attributes["w:rsidRDefault"];
|
|
25141
25237
|
};
|
|
25142
|
-
const decode$
|
|
25238
|
+
const decode$S = (attrs) => {
|
|
25143
25239
|
return attrs.rsidRDefault;
|
|
25144
25240
|
};
|
|
25145
|
-
const attrConfig$
|
|
25241
|
+
const attrConfig$w = Object.freeze({
|
|
25146
25242
|
xmlName: "w:rsidRDefault",
|
|
25147
25243
|
sdName: "rsidRDefault",
|
|
25148
25244
|
encode: encode$_,
|
|
25149
|
-
decode: decode$
|
|
25245
|
+
decode: decode$S
|
|
25150
25246
|
});
|
|
25151
25247
|
const encode$Z = (attributes) => {
|
|
25152
25248
|
return attributes["w14:paraId"];
|
|
25153
25249
|
};
|
|
25154
|
-
const decode$
|
|
25250
|
+
const decode$R = (attrs) => {
|
|
25155
25251
|
return attrs.paraId;
|
|
25156
25252
|
};
|
|
25157
|
-
const attrConfig$
|
|
25253
|
+
const attrConfig$v = Object.freeze({
|
|
25158
25254
|
xmlName: "w14:paraId",
|
|
25159
25255
|
sdName: "paraId",
|
|
25160
25256
|
encode: encode$Z,
|
|
25161
|
-
decode: decode$
|
|
25257
|
+
decode: decode$R
|
|
25162
25258
|
});
|
|
25163
25259
|
const encode$Y = (attributes) => {
|
|
25164
25260
|
return attributes["w14:textId"];
|
|
25165
25261
|
};
|
|
25166
|
-
const decode$
|
|
25262
|
+
const decode$Q = (attrs) => {
|
|
25167
25263
|
return attrs.textId;
|
|
25168
25264
|
};
|
|
25169
|
-
const attrConfig$
|
|
25265
|
+
const attrConfig$u = Object.freeze({
|
|
25170
25266
|
xmlName: "w14:textId",
|
|
25171
25267
|
sdName: "textId",
|
|
25172
25268
|
encode: encode$Y,
|
|
25173
|
-
decode: decode$
|
|
25269
|
+
decode: decode$Q
|
|
25174
25270
|
});
|
|
25175
25271
|
const validXmlAttributes$j = [
|
|
25176
|
-
attrConfig$u,
|
|
25177
|
-
attrConfig$t,
|
|
25178
|
-
attrConfig$x,
|
|
25179
25272
|
attrConfig$v,
|
|
25273
|
+
attrConfig$u,
|
|
25180
25274
|
attrConfig$y,
|
|
25181
25275
|
attrConfig$w,
|
|
25182
|
-
attrConfig$z
|
|
25276
|
+
attrConfig$z,
|
|
25277
|
+
attrConfig$x,
|
|
25278
|
+
attrConfig$A
|
|
25183
25279
|
];
|
|
25184
|
-
const XML_NODE_NAME$
|
|
25185
|
-
const SD_NODE_NAME$
|
|
25280
|
+
const XML_NODE_NAME$v = "w:p";
|
|
25281
|
+
const SD_NODE_NAME$e = "paragraph";
|
|
25186
25282
|
const encode$X = (params, encodedAttrs = {}) => {
|
|
25187
25283
|
const node = handleParagraphNode$1(params);
|
|
25188
25284
|
if (!node) return void 0;
|
|
@@ -25191,7 +25287,7 @@ const encode$X = (params, encodedAttrs = {}) => {
|
|
|
25191
25287
|
}
|
|
25192
25288
|
return node;
|
|
25193
25289
|
};
|
|
25194
|
-
const decode$
|
|
25290
|
+
const decode$P = (params, decodedAttrs = {}) => {
|
|
25195
25291
|
const translated = translateParagraphNode(params);
|
|
25196
25292
|
if (!translated) return void 0;
|
|
25197
25293
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
@@ -25200,11 +25296,11 @@ const decode$N = (params, decodedAttrs = {}) => {
|
|
|
25200
25296
|
return translated;
|
|
25201
25297
|
};
|
|
25202
25298
|
const config$s = {
|
|
25203
|
-
xmlName: XML_NODE_NAME$
|
|
25204
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
25299
|
+
xmlName: XML_NODE_NAME$v,
|
|
25300
|
+
sdNodeOrKeyName: SD_NODE_NAME$e,
|
|
25205
25301
|
type: NodeTranslator.translatorTypes.NODE,
|
|
25206
25302
|
encode: encode$X,
|
|
25207
|
-
decode: decode$
|
|
25303
|
+
decode: decode$P,
|
|
25208
25304
|
attributes: validXmlAttributes$j
|
|
25209
25305
|
};
|
|
25210
25306
|
const translator$16 = NodeTranslator.from(config$s);
|
|
@@ -25218,18 +25314,18 @@ const encode$W = (attributes) => {
|
|
|
25218
25314
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
25219
25315
|
return void 0;
|
|
25220
25316
|
};
|
|
25221
|
-
const decode$
|
|
25317
|
+
const decode$O = (runProps) => {
|
|
25222
25318
|
if (runProps?.bold === false) return "0";
|
|
25223
25319
|
return void 0;
|
|
25224
25320
|
};
|
|
25225
|
-
const attrConfig$
|
|
25321
|
+
const attrConfig$t = Object.freeze({
|
|
25226
25322
|
xmlName: "w:val",
|
|
25227
25323
|
sdName: "bold",
|
|
25228
25324
|
encode: encode$W,
|
|
25229
|
-
decode: decode$
|
|
25325
|
+
decode: decode$O
|
|
25230
25326
|
});
|
|
25231
|
-
const validXmlAttributes$i = [attrConfig$
|
|
25232
|
-
const XML_NODE_NAME$
|
|
25327
|
+
const validXmlAttributes$i = [attrConfig$t];
|
|
25328
|
+
const XML_NODE_NAME$u = "w:b";
|
|
25233
25329
|
const SD_ATTR_KEY$f = "bold";
|
|
25234
25330
|
const encode$V = (params, encodedAttrs = {}) => {
|
|
25235
25331
|
const { nodes } = params;
|
|
@@ -25243,20 +25339,20 @@ const encode$V = (params, encodedAttrs = {}) => {
|
|
|
25243
25339
|
else attributes = node.attributes || {};
|
|
25244
25340
|
return {
|
|
25245
25341
|
type: "attr",
|
|
25246
|
-
xmlName: XML_NODE_NAME$
|
|
25342
|
+
xmlName: XML_NODE_NAME$u,
|
|
25247
25343
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
25248
25344
|
attributes
|
|
25249
25345
|
};
|
|
25250
25346
|
};
|
|
25251
25347
|
const config$r = {
|
|
25252
|
-
xmlName: XML_NODE_NAME$
|
|
25348
|
+
xmlName: XML_NODE_NAME$u,
|
|
25253
25349
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
25254
25350
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25255
25351
|
encode: encode$V,
|
|
25256
25352
|
attributes: validXmlAttributes$i
|
|
25257
25353
|
};
|
|
25258
25354
|
const translator$15 = NodeTranslator.from(config$r);
|
|
25259
|
-
const XML_NODE_NAME$
|
|
25355
|
+
const XML_NODE_NAME$t = "w:i";
|
|
25260
25356
|
const SD_ATTR_KEY$e = "italic";
|
|
25261
25357
|
const encode$U = (params) => {
|
|
25262
25358
|
const { nodes } = params;
|
|
@@ -25264,7 +25360,7 @@ const encode$U = (params) => {
|
|
|
25264
25360
|
if (!node) return void 0;
|
|
25265
25361
|
return {
|
|
25266
25362
|
type: "attr",
|
|
25267
|
-
xmlName: XML_NODE_NAME$
|
|
25363
|
+
xmlName: XML_NODE_NAME$t,
|
|
25268
25364
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
25269
25365
|
attributes: {
|
|
25270
25366
|
"w:val": node.attributes?.["w:val"] ?? null
|
|
@@ -25272,54 +25368,54 @@ const encode$U = (params) => {
|
|
|
25272
25368
|
};
|
|
25273
25369
|
};
|
|
25274
25370
|
const config$q = {
|
|
25275
|
-
xmlName: XML_NODE_NAME$
|
|
25371
|
+
xmlName: XML_NODE_NAME$t,
|
|
25276
25372
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
25277
25373
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25278
25374
|
encode: encode$U
|
|
25279
25375
|
};
|
|
25280
25376
|
const translator$14 = NodeTranslator.from(config$q);
|
|
25281
25377
|
const encode$T = (attributes) => attributes?.["w:val"];
|
|
25282
|
-
const decode$
|
|
25283
|
-
const attrConfig$
|
|
25378
|
+
const decode$N = (attrs) => attrs?.underline;
|
|
25379
|
+
const attrConfig$s = Object.freeze({
|
|
25284
25380
|
xmlName: "w:val",
|
|
25285
25381
|
sdName: "underline",
|
|
25286
25382
|
encode: encode$T,
|
|
25287
|
-
decode: decode$
|
|
25383
|
+
decode: decode$N
|
|
25288
25384
|
});
|
|
25289
25385
|
const encode$S = (attributes) => attributes?.["w:color"];
|
|
25290
|
-
const decode$
|
|
25291
|
-
const attrConfig$
|
|
25386
|
+
const decode$M = (attrs) => attrs?.color;
|
|
25387
|
+
const attrConfig$r = Object.freeze({
|
|
25292
25388
|
xmlName: "w:color",
|
|
25293
25389
|
sdName: "color",
|
|
25294
25390
|
encode: encode$S,
|
|
25295
|
-
decode: decode$
|
|
25391
|
+
decode: decode$M
|
|
25296
25392
|
});
|
|
25297
25393
|
const encode$R = (attributes) => attributes?.["w:themeColor"];
|
|
25298
|
-
const decode$
|
|
25299
|
-
const attrConfig$
|
|
25394
|
+
const decode$L = (attrs) => attrs?.themeColor;
|
|
25395
|
+
const attrConfig$q = Object.freeze({
|
|
25300
25396
|
xmlName: "w:themeColor",
|
|
25301
25397
|
sdName: "themeColor",
|
|
25302
25398
|
encode: encode$R,
|
|
25303
|
-
decode: decode$
|
|
25399
|
+
decode: decode$L
|
|
25304
25400
|
});
|
|
25305
25401
|
const encode$Q = (attributes) => attributes?.["w:themeTint"];
|
|
25306
|
-
const decode$
|
|
25307
|
-
const attrConfig$
|
|
25402
|
+
const decode$K = (attrs) => attrs?.themeTint;
|
|
25403
|
+
const attrConfig$p = Object.freeze({
|
|
25308
25404
|
xmlName: "w:themeTint",
|
|
25309
25405
|
sdName: "themeTint",
|
|
25310
25406
|
encode: encode$Q,
|
|
25311
|
-
decode: decode$
|
|
25407
|
+
decode: decode$K
|
|
25312
25408
|
});
|
|
25313
25409
|
const encode$P = (attributes) => attributes?.["w:themeShade"];
|
|
25314
|
-
const decode$
|
|
25315
|
-
const attrConfig$
|
|
25410
|
+
const decode$J = (attrs) => attrs?.themeShade;
|
|
25411
|
+
const attrConfig$o = Object.freeze({
|
|
25316
25412
|
xmlName: "w:themeShade",
|
|
25317
25413
|
sdName: "themeShade",
|
|
25318
25414
|
encode: encode$P,
|
|
25319
|
-
decode: decode$
|
|
25415
|
+
decode: decode$J
|
|
25320
25416
|
});
|
|
25321
|
-
const validXmlAttributes$h = [attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o
|
|
25322
|
-
const XML_NODE_NAME$
|
|
25417
|
+
const validXmlAttributes$h = [attrConfig$s, attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o];
|
|
25418
|
+
const XML_NODE_NAME$s = "w:u";
|
|
25323
25419
|
const SD_ATTR_KEY$d = "underline";
|
|
25324
25420
|
const encode$O = (params, encodedAttrs = {}) => {
|
|
25325
25421
|
const { nodes } = params;
|
|
@@ -25337,12 +25433,12 @@ const encode$O = (params, encodedAttrs = {}) => {
|
|
|
25337
25433
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
25338
25434
|
return {
|
|
25339
25435
|
type: "attr",
|
|
25340
|
-
xmlName: XML_NODE_NAME$
|
|
25436
|
+
xmlName: XML_NODE_NAME$s,
|
|
25341
25437
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
25342
25438
|
attributes
|
|
25343
25439
|
};
|
|
25344
25440
|
};
|
|
25345
|
-
const decode$
|
|
25441
|
+
const decode$I = (params) => {
|
|
25346
25442
|
const attrs = params?.node?.attrs || {};
|
|
25347
25443
|
const underlineType = attrs.underlineType ?? attrs.underline ?? null;
|
|
25348
25444
|
const color = attrs.underlineColor ?? attrs.color ?? null;
|
|
@@ -25360,16 +25456,16 @@ const decode$G = (params) => {
|
|
|
25360
25456
|
if (themeTint) attributes["w:themeTint"] = themeTint;
|
|
25361
25457
|
if (themeShade) attributes["w:themeShade"] = themeShade;
|
|
25362
25458
|
return {
|
|
25363
|
-
name: XML_NODE_NAME$
|
|
25459
|
+
name: XML_NODE_NAME$s,
|
|
25364
25460
|
attributes
|
|
25365
25461
|
};
|
|
25366
25462
|
};
|
|
25367
25463
|
const config$p = {
|
|
25368
|
-
xmlName: XML_NODE_NAME$
|
|
25464
|
+
xmlName: XML_NODE_NAME$s,
|
|
25369
25465
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
25370
25466
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25371
25467
|
encode: encode$O,
|
|
25372
|
-
decode: decode$
|
|
25468
|
+
decode: decode$I,
|
|
25373
25469
|
attributes: validXmlAttributes$h
|
|
25374
25470
|
};
|
|
25375
25471
|
const translator$13 = NodeTranslator.from(config$p);
|
|
@@ -25383,18 +25479,18 @@ const encode$N = (attributes) => {
|
|
|
25383
25479
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
25384
25480
|
return void 0;
|
|
25385
25481
|
};
|
|
25386
|
-
const decode$
|
|
25482
|
+
const decode$H = (attrs) => {
|
|
25387
25483
|
if (attrs?.strike === false) return "0";
|
|
25388
25484
|
return void 0;
|
|
25389
25485
|
};
|
|
25390
|
-
const attrConfig$
|
|
25486
|
+
const attrConfig$n = Object.freeze({
|
|
25391
25487
|
xmlName: "w:val",
|
|
25392
25488
|
sdName: "strike",
|
|
25393
25489
|
encode: encode$N,
|
|
25394
|
-
decode: decode$
|
|
25490
|
+
decode: decode$H
|
|
25395
25491
|
});
|
|
25396
|
-
const validXmlAttributes$g = [attrConfig$
|
|
25397
|
-
const XML_NODE_NAME$
|
|
25492
|
+
const validXmlAttributes$g = [attrConfig$n];
|
|
25493
|
+
const XML_NODE_NAME$r = "w:strike";
|
|
25398
25494
|
const SD_ATTR_KEY$c = "strike";
|
|
25399
25495
|
const encode$M = (params, encodedAttrs = {}) => {
|
|
25400
25496
|
const { nodes } = params;
|
|
@@ -25409,13 +25505,13 @@ const encode$M = (params, encodedAttrs = {}) => {
|
|
|
25409
25505
|
else if (val === true && attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
25410
25506
|
return {
|
|
25411
25507
|
type: "attr",
|
|
25412
|
-
xmlName: XML_NODE_NAME$
|
|
25508
|
+
xmlName: XML_NODE_NAME$r,
|
|
25413
25509
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
25414
25510
|
attributes
|
|
25415
25511
|
};
|
|
25416
25512
|
};
|
|
25417
25513
|
const config$o = {
|
|
25418
|
-
xmlName: XML_NODE_NAME$
|
|
25514
|
+
xmlName: XML_NODE_NAME$r,
|
|
25419
25515
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
25420
25516
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25421
25517
|
encode: encode$M,
|
|
@@ -25423,39 +25519,39 @@ const config$o = {
|
|
|
25423
25519
|
};
|
|
25424
25520
|
const translator$12 = NodeTranslator.from(config$o);
|
|
25425
25521
|
const encode$L = (attributes) => attributes?.["w:val"];
|
|
25426
|
-
const decode$
|
|
25427
|
-
const attrConfig$
|
|
25522
|
+
const decode$G = (attrs) => attrs?.color;
|
|
25523
|
+
const attrConfig$m = Object.freeze({
|
|
25428
25524
|
xmlName: "w:val",
|
|
25429
25525
|
sdName: "color",
|
|
25430
25526
|
encode: encode$L,
|
|
25431
|
-
decode: decode$
|
|
25527
|
+
decode: decode$G
|
|
25432
25528
|
});
|
|
25433
25529
|
const encode$K = (attributes) => attributes?.["w:themeColor"];
|
|
25434
|
-
const decode$
|
|
25435
|
-
const attrConfig$
|
|
25530
|
+
const decode$F = (attrs) => attrs?.themeColor;
|
|
25531
|
+
const attrConfig$l = Object.freeze({
|
|
25436
25532
|
xmlName: "w:themeColor",
|
|
25437
25533
|
sdName: "themeColor",
|
|
25438
25534
|
encode: encode$K,
|
|
25439
|
-
decode: decode$
|
|
25535
|
+
decode: decode$F
|
|
25440
25536
|
});
|
|
25441
25537
|
const encode$J = (attributes) => attributes?.["w:themeTint"];
|
|
25442
|
-
const decode$
|
|
25443
|
-
const attrConfig$
|
|
25538
|
+
const decode$E = (attrs) => attrs?.themeTint;
|
|
25539
|
+
const attrConfig$k = Object.freeze({
|
|
25444
25540
|
xmlName: "w:themeTint",
|
|
25445
25541
|
sdName: "themeTint",
|
|
25446
25542
|
encode: encode$J,
|
|
25447
|
-
decode: decode$
|
|
25543
|
+
decode: decode$E
|
|
25448
25544
|
});
|
|
25449
25545
|
const encode$I = (attributes) => attributes?.["w:themeShade"];
|
|
25450
|
-
const decode$
|
|
25451
|
-
const attrConfig$
|
|
25546
|
+
const decode$D = (attrs) => attrs?.themeShade;
|
|
25547
|
+
const attrConfig$j = Object.freeze({
|
|
25452
25548
|
xmlName: "w:themeShade",
|
|
25453
25549
|
sdName: "themeShade",
|
|
25454
25550
|
encode: encode$I,
|
|
25455
|
-
decode: decode$
|
|
25551
|
+
decode: decode$D
|
|
25456
25552
|
});
|
|
25457
|
-
const validXmlAttributes$f = [attrConfig$
|
|
25458
|
-
const XML_NODE_NAME$
|
|
25553
|
+
const validXmlAttributes$f = [attrConfig$m, attrConfig$l, attrConfig$k, attrConfig$j];
|
|
25554
|
+
const XML_NODE_NAME$q = "w:color";
|
|
25459
25555
|
const SD_ATTR_KEY$b = "color";
|
|
25460
25556
|
const encode$H = (params, encodedAttrs = {}) => {
|
|
25461
25557
|
const { nodes } = params;
|
|
@@ -25472,13 +25568,13 @@ const encode$H = (params, encodedAttrs = {}) => {
|
|
|
25472
25568
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
25473
25569
|
return {
|
|
25474
25570
|
type: "attr",
|
|
25475
|
-
xmlName: XML_NODE_NAME$
|
|
25571
|
+
xmlName: XML_NODE_NAME$q,
|
|
25476
25572
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
25477
25573
|
attributes
|
|
25478
25574
|
};
|
|
25479
25575
|
};
|
|
25480
25576
|
const config$n = {
|
|
25481
|
-
xmlName: XML_NODE_NAME$
|
|
25577
|
+
xmlName: XML_NODE_NAME$q,
|
|
25482
25578
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
25483
25579
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25484
25580
|
encode: encode$H,
|
|
@@ -25486,47 +25582,47 @@ const config$n = {
|
|
|
25486
25582
|
};
|
|
25487
25583
|
const translator$11 = NodeTranslator.from(config$n);
|
|
25488
25584
|
const encode$G = (attributes) => attributes?.["w:eastAsia"];
|
|
25489
|
-
const decode$
|
|
25490
|
-
const attrConfig$
|
|
25585
|
+
const decode$C = (attrs) => attrs?.eastAsia;
|
|
25586
|
+
const attrConfig$i = Object.freeze({
|
|
25491
25587
|
xmlName: "w:eastAsia",
|
|
25492
25588
|
sdName: "eastAsia",
|
|
25493
25589
|
encode: encode$G,
|
|
25494
|
-
decode: decode$
|
|
25590
|
+
decode: decode$C
|
|
25495
25591
|
});
|
|
25496
25592
|
const encode$F = (attributes) => attributes?.["w:ascii"];
|
|
25497
|
-
const decode$
|
|
25498
|
-
const attrConfig$
|
|
25593
|
+
const decode$B = (attrs) => attrs?.ascii;
|
|
25594
|
+
const attrConfig$h = Object.freeze({
|
|
25499
25595
|
xmlName: "w:ascii",
|
|
25500
25596
|
sdName: "ascii",
|
|
25501
25597
|
encode: encode$F,
|
|
25502
|
-
decode: decode$
|
|
25598
|
+
decode: decode$B
|
|
25503
25599
|
});
|
|
25504
25600
|
const encode$E = (attributes) => attributes?.["w:hAnsi"];
|
|
25505
|
-
const decode$
|
|
25506
|
-
const attrConfig$
|
|
25601
|
+
const decode$A = (attrs) => attrs?.hAnsi;
|
|
25602
|
+
const attrConfig$g = Object.freeze({
|
|
25507
25603
|
xmlName: "w:hAnsi",
|
|
25508
25604
|
sdName: "hAnsi",
|
|
25509
25605
|
encode: encode$E,
|
|
25510
|
-
decode: decode$
|
|
25606
|
+
decode: decode$A
|
|
25511
25607
|
});
|
|
25512
25608
|
const encode$D = (attributes) => attributes?.["w:cs"];
|
|
25513
|
-
const decode$
|
|
25514
|
-
const attrConfig$
|
|
25609
|
+
const decode$z = (attrs) => attrs?.cs;
|
|
25610
|
+
const attrConfig$f = Object.freeze({
|
|
25515
25611
|
xmlName: "w:cs",
|
|
25516
25612
|
sdName: "cs",
|
|
25517
25613
|
encode: encode$D,
|
|
25518
|
-
decode: decode$
|
|
25614
|
+
decode: decode$z
|
|
25519
25615
|
});
|
|
25520
25616
|
const encode$C = (attributes) => attributes?.["w:val"];
|
|
25521
|
-
const decode$
|
|
25522
|
-
const attrConfig$
|
|
25617
|
+
const decode$y = (attrs) => attrs?.value;
|
|
25618
|
+
const attrConfig$e = Object.freeze({
|
|
25523
25619
|
xmlName: "w:val",
|
|
25524
25620
|
sdName: "value",
|
|
25525
25621
|
encode: encode$C,
|
|
25526
|
-
decode: decode$
|
|
25622
|
+
decode: decode$y
|
|
25527
25623
|
});
|
|
25528
|
-
const validXmlAttributes$e = [attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e
|
|
25529
|
-
const XML_NODE_NAME$
|
|
25624
|
+
const validXmlAttributes$e = [attrConfig$i, attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e];
|
|
25625
|
+
const XML_NODE_NAME$p = "w:rFonts";
|
|
25530
25626
|
const SD_ATTR_KEY$a = "fontFamily";
|
|
25531
25627
|
const encode$B = (params, encodedAttrs = {}) => {
|
|
25532
25628
|
const { nodes } = params;
|
|
@@ -25554,13 +25650,13 @@ const encode$B = (params, encodedAttrs = {}) => {
|
|
|
25554
25650
|
if (attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
25555
25651
|
return {
|
|
25556
25652
|
type: "attr",
|
|
25557
|
-
xmlName: XML_NODE_NAME$
|
|
25653
|
+
xmlName: XML_NODE_NAME$p,
|
|
25558
25654
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
25559
25655
|
attributes
|
|
25560
25656
|
};
|
|
25561
25657
|
};
|
|
25562
25658
|
const config$m = {
|
|
25563
|
-
xmlName: XML_NODE_NAME$
|
|
25659
|
+
xmlName: XML_NODE_NAME$p,
|
|
25564
25660
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
25565
25661
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25566
25662
|
encode: encode$B,
|
|
@@ -25568,15 +25664,15 @@ const config$m = {
|
|
|
25568
25664
|
};
|
|
25569
25665
|
const translator$10 = NodeTranslator.from(config$m);
|
|
25570
25666
|
const encode$A = (attributes) => attributes?.["w:val"];
|
|
25571
|
-
const decode$
|
|
25572
|
-
const attrConfig$
|
|
25667
|
+
const decode$x = (attrs) => attrs?.styleId;
|
|
25668
|
+
const attrConfig$d = Object.freeze({
|
|
25573
25669
|
xmlName: "w:val",
|
|
25574
25670
|
sdName: "styleId",
|
|
25575
25671
|
encode: encode$A,
|
|
25576
|
-
decode: decode$
|
|
25672
|
+
decode: decode$x
|
|
25577
25673
|
});
|
|
25578
|
-
const validXmlAttributes$d = [attrConfig$
|
|
25579
|
-
const XML_NODE_NAME$
|
|
25674
|
+
const validXmlAttributes$d = [attrConfig$d];
|
|
25675
|
+
const XML_NODE_NAME$o = "w:rStyle";
|
|
25580
25676
|
const SD_ATTR_KEY$9 = "styleId";
|
|
25581
25677
|
const encode$z = (params, encodedAttrs = {}) => {
|
|
25582
25678
|
const { nodes } = params;
|
|
@@ -25584,13 +25680,13 @@ const encode$z = (params, encodedAttrs = {}) => {
|
|
|
25584
25680
|
const value = encodedAttrs.styleId ?? node?.attributes?.["w:val"];
|
|
25585
25681
|
return {
|
|
25586
25682
|
type: "attr",
|
|
25587
|
-
xmlName: XML_NODE_NAME$
|
|
25683
|
+
xmlName: XML_NODE_NAME$o,
|
|
25588
25684
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
25589
25685
|
attributes: { "w:val": value ?? null }
|
|
25590
25686
|
};
|
|
25591
25687
|
};
|
|
25592
25688
|
const config$l = {
|
|
25593
|
-
xmlName: XML_NODE_NAME$
|
|
25689
|
+
xmlName: XML_NODE_NAME$o,
|
|
25594
25690
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
25595
25691
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25596
25692
|
encode: encode$z,
|
|
@@ -25598,15 +25694,15 @@ const config$l = {
|
|
|
25598
25694
|
};
|
|
25599
25695
|
const translator$$ = NodeTranslator.from(config$l);
|
|
25600
25696
|
const encode$y = (attributes) => attributes?.["w:val"];
|
|
25601
|
-
const decode$
|
|
25602
|
-
const attrConfig$
|
|
25697
|
+
const decode$w = (attrs) => attrs?.fontSize;
|
|
25698
|
+
const attrConfig$c = Object.freeze({
|
|
25603
25699
|
xmlName: "w:val",
|
|
25604
25700
|
sdName: "fontSize",
|
|
25605
25701
|
encode: encode$y,
|
|
25606
|
-
decode: decode$
|
|
25702
|
+
decode: decode$w
|
|
25607
25703
|
});
|
|
25608
|
-
const validXmlAttributes$c = [attrConfig$
|
|
25609
|
-
const XML_NODE_NAME$
|
|
25704
|
+
const validXmlAttributes$c = [attrConfig$c];
|
|
25705
|
+
const XML_NODE_NAME$n = "w:sz";
|
|
25610
25706
|
const SD_ATTR_KEY$8 = "fontSize";
|
|
25611
25707
|
const encode$x = (params, encodedAttrs = {}) => {
|
|
25612
25708
|
const { nodes } = params;
|
|
@@ -25614,13 +25710,13 @@ const encode$x = (params, encodedAttrs = {}) => {
|
|
|
25614
25710
|
const value = encodedAttrs.fontSize ?? node?.attributes?.["w:val"];
|
|
25615
25711
|
return {
|
|
25616
25712
|
type: "attr",
|
|
25617
|
-
xmlName: XML_NODE_NAME$
|
|
25713
|
+
xmlName: XML_NODE_NAME$n,
|
|
25618
25714
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
25619
25715
|
attributes: { "w:val": value ?? null }
|
|
25620
25716
|
};
|
|
25621
25717
|
};
|
|
25622
25718
|
const config$k = {
|
|
25623
|
-
xmlName: XML_NODE_NAME$
|
|
25719
|
+
xmlName: XML_NODE_NAME$n,
|
|
25624
25720
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
25625
25721
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25626
25722
|
encode: encode$x,
|
|
@@ -25628,15 +25724,15 @@ const config$k = {
|
|
|
25628
25724
|
};
|
|
25629
25725
|
const translator$_ = NodeTranslator.from(config$k);
|
|
25630
25726
|
const encode$w = (attributes) => attributes?.["w:val"];
|
|
25631
|
-
const decode$
|
|
25632
|
-
const attrConfig$
|
|
25727
|
+
const decode$v = (attrs) => attrs?.fontSizeCs;
|
|
25728
|
+
const attrConfig$b = Object.freeze({
|
|
25633
25729
|
xmlName: "w:val",
|
|
25634
25730
|
sdName: "fontSizeCs",
|
|
25635
25731
|
encode: encode$w,
|
|
25636
|
-
decode: decode$
|
|
25732
|
+
decode: decode$v
|
|
25637
25733
|
});
|
|
25638
|
-
const validXmlAttributes$b = [attrConfig$
|
|
25639
|
-
const XML_NODE_NAME$
|
|
25734
|
+
const validXmlAttributes$b = [attrConfig$b];
|
|
25735
|
+
const XML_NODE_NAME$m = "w:szCs";
|
|
25640
25736
|
const SD_ATTR_KEY$7 = "fontSizeCs";
|
|
25641
25737
|
const encode$v = (params, encodedAttrs = {}) => {
|
|
25642
25738
|
const { nodes } = params;
|
|
@@ -25644,13 +25740,13 @@ const encode$v = (params, encodedAttrs = {}) => {
|
|
|
25644
25740
|
const value = encodedAttrs.fontSizeCs ?? node?.attributes?.["w:val"];
|
|
25645
25741
|
return {
|
|
25646
25742
|
type: "attr",
|
|
25647
|
-
xmlName: XML_NODE_NAME$
|
|
25743
|
+
xmlName: XML_NODE_NAME$m,
|
|
25648
25744
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
25649
25745
|
attributes: { "w:val": value ?? null }
|
|
25650
25746
|
};
|
|
25651
25747
|
};
|
|
25652
25748
|
const config$j = {
|
|
25653
|
-
xmlName: XML_NODE_NAME$
|
|
25749
|
+
xmlName: XML_NODE_NAME$m,
|
|
25654
25750
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
25655
25751
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25656
25752
|
encode: encode$v,
|
|
@@ -25790,7 +25886,7 @@ const integerToString = (value) => {
|
|
|
25790
25886
|
const intValue = parseInteger(value);
|
|
25791
25887
|
return intValue != void 0 ? String(intValue) : void 0;
|
|
25792
25888
|
};
|
|
25793
|
-
const XML_NODE_NAME$
|
|
25889
|
+
const XML_NODE_NAME$l = "w:caps";
|
|
25794
25890
|
const SD_ATTR_KEY$6 = "textTransform";
|
|
25795
25891
|
const encode$u = (params, encodedAttrs = {}) => {
|
|
25796
25892
|
const { nodes } = params;
|
|
@@ -25804,13 +25900,13 @@ const encode$u = (params, encodedAttrs = {}) => {
|
|
|
25804
25900
|
}
|
|
25805
25901
|
return {
|
|
25806
25902
|
type: "attr",
|
|
25807
|
-
xmlName: XML_NODE_NAME$
|
|
25903
|
+
xmlName: XML_NODE_NAME$l,
|
|
25808
25904
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
25809
25905
|
attributes: { [SD_ATTR_KEY$6]: result }
|
|
25810
25906
|
};
|
|
25811
25907
|
};
|
|
25812
25908
|
const config$i = {
|
|
25813
|
-
xmlName: XML_NODE_NAME$
|
|
25909
|
+
xmlName: XML_NODE_NAME$l,
|
|
25814
25910
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
25815
25911
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25816
25912
|
encode: encode$u,
|
|
@@ -25842,7 +25938,7 @@ const toRunPropertyEntry = (candidate) => {
|
|
|
25842
25938
|
attributes: { ...candidate.attributes || {} }
|
|
25843
25939
|
};
|
|
25844
25940
|
};
|
|
25845
|
-
const XML_NODE_NAME$
|
|
25941
|
+
const XML_NODE_NAME$k = "w:rPr";
|
|
25846
25942
|
const SD_ATTR_KEY$5 = "runProperties";
|
|
25847
25943
|
const encode$t = (params) => {
|
|
25848
25944
|
const { nodes } = params;
|
|
@@ -25879,7 +25975,7 @@ const encode$t = (params) => {
|
|
|
25879
25975
|
};
|
|
25880
25976
|
};
|
|
25881
25977
|
const config$h = {
|
|
25882
|
-
xmlName: XML_NODE_NAME$
|
|
25978
|
+
xmlName: XML_NODE_NAME$k,
|
|
25883
25979
|
sdNodeOrKeyName: SD_ATTR_KEY$5,
|
|
25884
25980
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25885
25981
|
encode: encode$t
|
|
@@ -26360,8 +26456,8 @@ const ensureTrackedWrapper = (runs, trackingMarksByType = /* @__PURE__ */ new Ma
|
|
|
26360
26456
|
}
|
|
26361
26457
|
return runs;
|
|
26362
26458
|
};
|
|
26363
|
-
const XML_NODE_NAME$
|
|
26364
|
-
const SD_NODE_NAME$
|
|
26459
|
+
const XML_NODE_NAME$j = "w:hyperlink";
|
|
26460
|
+
const SD_NODE_NAME$d = "link";
|
|
26365
26461
|
const _createAttributeHandler = (xmlName, sdName) => ({
|
|
26366
26462
|
xmlName,
|
|
26367
26463
|
sdName,
|
|
@@ -26415,7 +26511,7 @@ const _resolveHref = (docx, encodedAttrs) => {
|
|
|
26415
26511
|
}
|
|
26416
26512
|
return href;
|
|
26417
26513
|
};
|
|
26418
|
-
function decode$
|
|
26514
|
+
function decode$u(params) {
|
|
26419
26515
|
const { hyperlinkGroup = [params.node] } = params.extraParams || {};
|
|
26420
26516
|
const node = hyperlinkGroup[0];
|
|
26421
26517
|
const linkMark = node.marks.find((m2) => m2.type === "link");
|
|
@@ -26472,52 +26568,52 @@ function _addNewLinkRelationship(params, link, rId) {
|
|
|
26472
26568
|
return rId;
|
|
26473
26569
|
}
|
|
26474
26570
|
const config$g = {
|
|
26475
|
-
xmlName: XML_NODE_NAME$
|
|
26476
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
26571
|
+
xmlName: XML_NODE_NAME$j,
|
|
26572
|
+
sdNodeOrKeyName: SD_NODE_NAME$d,
|
|
26477
26573
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26478
26574
|
encode: encode$s,
|
|
26479
|
-
decode: decode$
|
|
26575
|
+
decode: decode$u,
|
|
26480
26576
|
attributes: validXmlAttributes$a
|
|
26481
26577
|
};
|
|
26482
26578
|
const translator$W = NodeTranslator.from(config$g);
|
|
26483
26579
|
const encode$r = (attributes) => {
|
|
26484
26580
|
return attributes["w:rsidR"];
|
|
26485
26581
|
};
|
|
26486
|
-
const decode$
|
|
26582
|
+
const decode$t = (attrs) => {
|
|
26487
26583
|
return attrs.rsidR;
|
|
26488
26584
|
};
|
|
26489
|
-
const attrConfig$
|
|
26585
|
+
const attrConfig$a = Object.freeze({
|
|
26490
26586
|
xmlName: "w:rsidR",
|
|
26491
26587
|
sdName: "rsidR",
|
|
26492
26588
|
encode: encode$r,
|
|
26493
|
-
decode: decode$
|
|
26589
|
+
decode: decode$t
|
|
26494
26590
|
});
|
|
26495
26591
|
const encode$q = (attributes) => {
|
|
26496
26592
|
return attributes["w:rsidRPr"];
|
|
26497
26593
|
};
|
|
26498
|
-
const decode$
|
|
26594
|
+
const decode$s = (attrs) => {
|
|
26499
26595
|
return attrs.rsidRPr;
|
|
26500
26596
|
};
|
|
26501
|
-
const attrConfig$
|
|
26597
|
+
const attrConfig$9 = Object.freeze({
|
|
26502
26598
|
xmlName: "w:rsidRPr",
|
|
26503
26599
|
sdName: "rsidRPr",
|
|
26504
26600
|
encode: encode$q,
|
|
26505
|
-
decode: decode$
|
|
26601
|
+
decode: decode$s
|
|
26506
26602
|
});
|
|
26507
26603
|
const encode$p = (attributes) => {
|
|
26508
26604
|
return attributes["w:rsidDel"];
|
|
26509
26605
|
};
|
|
26510
|
-
const decode$
|
|
26606
|
+
const decode$r = (attrs) => {
|
|
26511
26607
|
return attrs.rsidDel;
|
|
26512
26608
|
};
|
|
26513
|
-
const attrConfig$
|
|
26609
|
+
const attrConfig$8 = Object.freeze({
|
|
26514
26610
|
xmlName: "w:rsidDel",
|
|
26515
26611
|
sdName: "rsidDel",
|
|
26516
26612
|
encode: encode$p,
|
|
26517
|
-
decode: decode$
|
|
26613
|
+
decode: decode$r
|
|
26518
26614
|
});
|
|
26519
|
-
const validXmlAttributes$9 = [attrConfig$
|
|
26520
|
-
const XML_NODE_NAME$
|
|
26615
|
+
const validXmlAttributes$9 = [attrConfig$a, attrConfig$9, attrConfig$8];
|
|
26616
|
+
const XML_NODE_NAME$i = "w:r";
|
|
26521
26617
|
const SD_KEY_NAME = "run";
|
|
26522
26618
|
const encode$o = (params, encodedAttrs = {}) => {
|
|
26523
26619
|
const { nodes = [], nodeListHandler } = params || {};
|
|
@@ -26567,7 +26663,7 @@ const encode$o = (params, encodedAttrs = {}) => {
|
|
|
26567
26663
|
}
|
|
26568
26664
|
return runNodeResult;
|
|
26569
26665
|
};
|
|
26570
|
-
const decode$
|
|
26666
|
+
const decode$q = (params, decodedAttrs = {}) => {
|
|
26571
26667
|
const { node } = params || {};
|
|
26572
26668
|
if (!node) return void 0;
|
|
26573
26669
|
const isLinkNode = node.marks?.some((m2) => m2.type === "link");
|
|
@@ -26626,7 +26722,7 @@ const decode$o = (params, decodedAttrs = {}) => {
|
|
|
26626
26722
|
runs.push(trackedClone);
|
|
26627
26723
|
return;
|
|
26628
26724
|
}
|
|
26629
|
-
const runWrapper = { name: XML_NODE_NAME$
|
|
26725
|
+
const runWrapper = { name: XML_NODE_NAME$i, elements: [] };
|
|
26630
26726
|
applyBaseRunProps(runWrapper);
|
|
26631
26727
|
if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
|
|
26632
26728
|
runWrapper.elements.push(cloneXmlNode(child));
|
|
@@ -26634,7 +26730,7 @@ const decode$o = (params, decodedAttrs = {}) => {
|
|
|
26634
26730
|
});
|
|
26635
26731
|
const trackedRuns = ensureTrackedWrapper(runs, trackingMarksByType);
|
|
26636
26732
|
if (!trackedRuns.length) {
|
|
26637
|
-
const emptyRun = { name: XML_NODE_NAME$
|
|
26733
|
+
const emptyRun = { name: XML_NODE_NAME$i, elements: [] };
|
|
26638
26734
|
applyBaseRunProps(emptyRun);
|
|
26639
26735
|
trackedRuns.push(emptyRun);
|
|
26640
26736
|
}
|
|
@@ -26649,11 +26745,11 @@ const decode$o = (params, decodedAttrs = {}) => {
|
|
|
26649
26745
|
return trackedRuns;
|
|
26650
26746
|
};
|
|
26651
26747
|
const config$f = {
|
|
26652
|
-
xmlName: XML_NODE_NAME$
|
|
26748
|
+
xmlName: XML_NODE_NAME$i,
|
|
26653
26749
|
sdNodeOrKeyName: SD_KEY_NAME,
|
|
26654
26750
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26655
26751
|
encode: encode$o,
|
|
26656
|
-
decode: decode$
|
|
26752
|
+
decode: decode$q,
|
|
26657
26753
|
attributes: validXmlAttributes$9
|
|
26658
26754
|
};
|
|
26659
26755
|
const translator$V = NodeTranslator.from(config$f);
|
|
@@ -26791,7 +26887,7 @@ const translator$L = NodeTranslator.from({
|
|
|
26791
26887
|
});
|
|
26792
26888
|
const translator$K = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
|
|
26793
26889
|
const translator$J = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
|
|
26794
|
-
const XML_NODE_NAME$
|
|
26890
|
+
const XML_NODE_NAME$h = "w:trPr";
|
|
26795
26891
|
const SD_ATTR_KEY$4 = "tableRowProperties";
|
|
26796
26892
|
const encode$n = (params) => {
|
|
26797
26893
|
const { nodes } = params;
|
|
@@ -26807,12 +26903,12 @@ const encode$n = (params) => {
|
|
|
26807
26903
|
};
|
|
26808
26904
|
return {
|
|
26809
26905
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
26810
|
-
xmlName: XML_NODE_NAME$
|
|
26906
|
+
xmlName: XML_NODE_NAME$h,
|
|
26811
26907
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
26812
26908
|
attributes
|
|
26813
26909
|
};
|
|
26814
26910
|
};
|
|
26815
|
-
const decode$
|
|
26911
|
+
const decode$p = (params) => {
|
|
26816
26912
|
const { tableRowProperties = {} } = params.node.attrs || {};
|
|
26817
26913
|
const elements = decodeProperties(propertyTranslatorsBySdName$2, tableRowProperties);
|
|
26818
26914
|
const newNode = {
|
|
@@ -26846,15 +26942,15 @@ propertyTranslators$3.forEach((translator2) => {
|
|
|
26846
26942
|
propertyTranslatorsBySdName$2[translator2.sdNodeOrKeyName] = translator2;
|
|
26847
26943
|
});
|
|
26848
26944
|
const config$e = {
|
|
26849
|
-
xmlName: XML_NODE_NAME$
|
|
26945
|
+
xmlName: XML_NODE_NAME$h,
|
|
26850
26946
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
26851
26947
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
26852
26948
|
encode: encode$n,
|
|
26853
|
-
decode: decode$
|
|
26949
|
+
decode: decode$p
|
|
26854
26950
|
};
|
|
26855
26951
|
const translator$I = NodeTranslator.from(config$e);
|
|
26856
|
-
const XML_NODE_NAME$
|
|
26857
|
-
const SD_NODE_NAME$
|
|
26952
|
+
const XML_NODE_NAME$g = "w:tr";
|
|
26953
|
+
const SD_NODE_NAME$c = "tableRow";
|
|
26858
26954
|
const validXmlAttributes$8 = ["w:rsidDel", "w:rsidR", "w:rsidRPr", "w:rsidTr", "w14:paraId", "w14:textId"].map(
|
|
26859
26955
|
(xmlName) => createAttributeHandler(xmlName)
|
|
26860
26956
|
);
|
|
@@ -26898,7 +26994,7 @@ const encode$m = (params, encodedAttrs) => {
|
|
|
26898
26994
|
};
|
|
26899
26995
|
return newNode;
|
|
26900
26996
|
};
|
|
26901
|
-
const decode$
|
|
26997
|
+
const decode$o = (params, decodedAttrs) => {
|
|
26902
26998
|
const { node } = params;
|
|
26903
26999
|
const elements = translateChildNodes(params);
|
|
26904
27000
|
if (node.attrs?.tableRowProperties) {
|
|
@@ -26923,11 +27019,11 @@ const decode$m = (params, decodedAttrs) => {
|
|
|
26923
27019
|
};
|
|
26924
27020
|
};
|
|
26925
27021
|
const config$d = {
|
|
26926
|
-
xmlName: XML_NODE_NAME$
|
|
26927
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
27022
|
+
xmlName: XML_NODE_NAME$g,
|
|
27023
|
+
sdNodeOrKeyName: SD_NODE_NAME$c,
|
|
26928
27024
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26929
27025
|
encode: encode$m,
|
|
26930
|
-
decode: decode$
|
|
27026
|
+
decode: decode$o,
|
|
26931
27027
|
attributes: validXmlAttributes$8
|
|
26932
27028
|
};
|
|
26933
27029
|
const translator$H = NodeTranslator.from(config$d);
|
|
@@ -27010,7 +27106,7 @@ const translator$j = NodeTranslator.from(createBorderPropertyHandler("w:start"))
|
|
|
27010
27106
|
const translator$i = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
|
|
27011
27107
|
const translator$h = NodeTranslator.from(createBorderPropertyHandler("w:top"));
|
|
27012
27108
|
const translator$g = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
|
|
27013
|
-
const XML_NODE_NAME$
|
|
27109
|
+
const XML_NODE_NAME$f = "w:tblBorders";
|
|
27014
27110
|
const SD_ATTR_KEY$3 = "borders";
|
|
27015
27111
|
const encode$l = (params) => {
|
|
27016
27112
|
const { nodes } = params;
|
|
@@ -27018,7 +27114,7 @@ const encode$l = (params) => {
|
|
|
27018
27114
|
const attributes = encodeProperties(node, tblBordersTranslatorsByXmlName);
|
|
27019
27115
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
27020
27116
|
};
|
|
27021
|
-
const decode$
|
|
27117
|
+
const decode$n = (params) => {
|
|
27022
27118
|
const { borders = {} } = params.node.attrs || {};
|
|
27023
27119
|
const elements = decodeProperties(tblBordersTranslatorsBySdName, borders);
|
|
27024
27120
|
const newNode = {
|
|
@@ -27046,14 +27142,14 @@ propertyTranslators$2.forEach((translator2) => {
|
|
|
27046
27142
|
tblBordersTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
27047
27143
|
});
|
|
27048
27144
|
const translator$f = NodeTranslator.from({
|
|
27049
|
-
xmlName: XML_NODE_NAME$
|
|
27145
|
+
xmlName: XML_NODE_NAME$f,
|
|
27050
27146
|
sdNodeOrKeyName: SD_ATTR_KEY$3,
|
|
27051
27147
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27052
27148
|
attributes: [],
|
|
27053
27149
|
encode: encode$l,
|
|
27054
|
-
decode: decode$
|
|
27150
|
+
decode: decode$n
|
|
27055
27151
|
});
|
|
27056
|
-
const XML_NODE_NAME$
|
|
27152
|
+
const XML_NODE_NAME$e = "w:tblCellMar";
|
|
27057
27153
|
const SD_ATTR_KEY$2 = "cellMargins";
|
|
27058
27154
|
const encode$k = (params) => {
|
|
27059
27155
|
const { nodes } = params;
|
|
@@ -27061,11 +27157,11 @@ const encode$k = (params) => {
|
|
|
27061
27157
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName$1);
|
|
27062
27158
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
27063
27159
|
};
|
|
27064
|
-
const decode$
|
|
27160
|
+
const decode$m = (params) => {
|
|
27065
27161
|
const { cellMargins = {} } = params.node.attrs || {};
|
|
27066
27162
|
const elements = decodeProperties(propertyTranslatorsBySdName$1, cellMargins);
|
|
27067
27163
|
const newNode = {
|
|
27068
|
-
name: XML_NODE_NAME$
|
|
27164
|
+
name: XML_NODE_NAME$e,
|
|
27069
27165
|
type: "element",
|
|
27070
27166
|
attributes: {},
|
|
27071
27167
|
elements
|
|
@@ -27087,26 +27183,26 @@ propertyTranslators$1.forEach((translator2) => {
|
|
|
27087
27183
|
propertyTranslatorsBySdName$1[translator2.sdNodeOrKeyName] = translator2;
|
|
27088
27184
|
});
|
|
27089
27185
|
const translator$e = NodeTranslator.from({
|
|
27090
|
-
xmlName: XML_NODE_NAME$
|
|
27186
|
+
xmlName: XML_NODE_NAME$e,
|
|
27091
27187
|
sdNodeOrKeyName: SD_ATTR_KEY$2,
|
|
27092
27188
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27093
27189
|
attributes: [],
|
|
27094
27190
|
encode: encode$k,
|
|
27095
|
-
decode: decode$
|
|
27191
|
+
decode: decode$m
|
|
27096
27192
|
});
|
|
27097
|
-
const XML_NODE_NAME$
|
|
27193
|
+
const XML_NODE_NAME$d = "w:tblPr";
|
|
27098
27194
|
const SD_ATTR_KEY$1 = "tableProperties";
|
|
27099
27195
|
const encode$j = (params) => {
|
|
27100
27196
|
const { nodes } = params;
|
|
27101
27197
|
const node = nodes[0];
|
|
27102
27198
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName);
|
|
27103
27199
|
return {
|
|
27104
|
-
xmlName: XML_NODE_NAME$
|
|
27200
|
+
xmlName: XML_NODE_NAME$d,
|
|
27105
27201
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
27106
27202
|
attributes
|
|
27107
27203
|
};
|
|
27108
27204
|
};
|
|
27109
|
-
const decode$
|
|
27205
|
+
const decode$l = (params) => {
|
|
27110
27206
|
const { tableProperties = {} } = params.node.attrs || {};
|
|
27111
27207
|
const elements = decodeProperties(propertyTranslatorsBySdName, tableProperties);
|
|
27112
27208
|
const newNode = {
|
|
@@ -27143,10 +27239,10 @@ propertyTranslators.forEach((translator2) => {
|
|
|
27143
27239
|
propertyTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
27144
27240
|
});
|
|
27145
27241
|
const config$c = {
|
|
27146
|
-
xmlName: XML_NODE_NAME$
|
|
27242
|
+
xmlName: XML_NODE_NAME$d,
|
|
27147
27243
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
27148
27244
|
encode: encode$j,
|
|
27149
|
-
decode: decode$
|
|
27245
|
+
decode: decode$l
|
|
27150
27246
|
};
|
|
27151
27247
|
const translator$d = NodeTranslator.from(config$c);
|
|
27152
27248
|
const translator$c = NodeTranslator.from(
|
|
@@ -27199,7 +27295,7 @@ const resolveFallbackColumnWidthTwips = (params, totalColumns, cellMinWidthTwips
|
|
|
27199
27295
|
}
|
|
27200
27296
|
return Math.max(fallbackWidthTwips, cellMinWidthTwips);
|
|
27201
27297
|
};
|
|
27202
|
-
const XML_NODE_NAME$
|
|
27298
|
+
const XML_NODE_NAME$c = "w:tblGrid";
|
|
27203
27299
|
const SD_ATTR_KEY = "grid";
|
|
27204
27300
|
const cellMinWidth = pixelsToTwips(10);
|
|
27205
27301
|
const encode$i = (params) => {
|
|
@@ -27207,12 +27303,12 @@ const encode$i = (params) => {
|
|
|
27207
27303
|
const node = nodes[0];
|
|
27208
27304
|
const attributes = encodeProperties(node, { [translator$c.xmlName]: translator$c }, true);
|
|
27209
27305
|
return {
|
|
27210
|
-
xmlName: XML_NODE_NAME$
|
|
27306
|
+
xmlName: XML_NODE_NAME$c,
|
|
27211
27307
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
27212
27308
|
attributes
|
|
27213
27309
|
};
|
|
27214
27310
|
};
|
|
27215
|
-
const decode$
|
|
27311
|
+
const decode$k = (params) => {
|
|
27216
27312
|
const { grid: rawGrid } = params.node.attrs || {};
|
|
27217
27313
|
const grid = Array.isArray(rawGrid) ? rawGrid : [];
|
|
27218
27314
|
const { firstRow = {} } = params.extraParams || {};
|
|
@@ -27269,17 +27365,17 @@ const decode$i = (params) => {
|
|
|
27269
27365
|
columnIndex++;
|
|
27270
27366
|
}
|
|
27271
27367
|
const newNode = {
|
|
27272
|
-
name: XML_NODE_NAME$
|
|
27368
|
+
name: XML_NODE_NAME$c,
|
|
27273
27369
|
attributes: {},
|
|
27274
27370
|
elements
|
|
27275
27371
|
};
|
|
27276
27372
|
return newNode;
|
|
27277
27373
|
};
|
|
27278
27374
|
const config$b = {
|
|
27279
|
-
xmlName: XML_NODE_NAME$
|
|
27375
|
+
xmlName: XML_NODE_NAME$c,
|
|
27280
27376
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
27281
27377
|
encode: encode$i,
|
|
27282
|
-
decode: decode$
|
|
27378
|
+
decode: decode$k
|
|
27283
27379
|
};
|
|
27284
27380
|
const translator$b = NodeTranslator.from(config$b);
|
|
27285
27381
|
const DEFAULT_PAGE_WIDTH_TWIPS = 12240;
|
|
@@ -27344,8 +27440,8 @@ const buildFallbackGridForTable = ({ params, rows, tableWidth, tableWidthMeasure
|
|
|
27344
27440
|
columnWidths: Array(columnCount).fill(fallbackColumnWidthPx)
|
|
27345
27441
|
};
|
|
27346
27442
|
};
|
|
27347
|
-
const XML_NODE_NAME$
|
|
27348
|
-
const SD_NODE_NAME$
|
|
27443
|
+
const XML_NODE_NAME$b = "w:tbl";
|
|
27444
|
+
const SD_NODE_NAME$b = "table";
|
|
27349
27445
|
const encode$h = (params, encodedAttrs) => {
|
|
27350
27446
|
const { nodes } = params;
|
|
27351
27447
|
const node = nodes[0];
|
|
@@ -27434,7 +27530,7 @@ const encode$h = (params, encodedAttrs) => {
|
|
|
27434
27530
|
columnWidths
|
|
27435
27531
|
}
|
|
27436
27532
|
});
|
|
27437
|
-
if (result
|
|
27533
|
+
if (result) content.push(result);
|
|
27438
27534
|
});
|
|
27439
27535
|
return {
|
|
27440
27536
|
type: "table",
|
|
@@ -27442,7 +27538,7 @@ const encode$h = (params, encodedAttrs) => {
|
|
|
27442
27538
|
attrs: encodedAttrs
|
|
27443
27539
|
};
|
|
27444
27540
|
};
|
|
27445
|
-
const decode$
|
|
27541
|
+
const decode$j = (params, decodedAttrs) => {
|
|
27446
27542
|
params.node = preProcessVerticalMergeCells(params.node, params);
|
|
27447
27543
|
const { node } = params;
|
|
27448
27544
|
const elements = translateChildNodes(params);
|
|
@@ -27542,11 +27638,11 @@ function _getReferencedTableStyles(tableStyleReference, params) {
|
|
|
27542
27638
|
return stylesToReturn;
|
|
27543
27639
|
}
|
|
27544
27640
|
const config$a = {
|
|
27545
|
-
xmlName: XML_NODE_NAME$
|
|
27546
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
27641
|
+
xmlName: XML_NODE_NAME$b,
|
|
27642
|
+
sdNodeOrKeyName: SD_NODE_NAME$b,
|
|
27547
27643
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27548
27644
|
encode: encode$h,
|
|
27549
|
-
decode: decode$
|
|
27645
|
+
decode: decode$j,
|
|
27550
27646
|
attributes: []
|
|
27551
27647
|
};
|
|
27552
27648
|
const translator$a = NodeTranslator.from(config$a);
|
|
@@ -27912,8 +28008,8 @@ function generateCellMargins(cellMargins) {
|
|
|
27912
28008
|
if (left != null) elements.push({ name: "w:left", attributes: { "w:w": pixelsToTwips(left) } });
|
|
27913
28009
|
return elements;
|
|
27914
28010
|
}
|
|
27915
|
-
const XML_NODE_NAME$
|
|
27916
|
-
const SD_NODE_NAME$
|
|
28011
|
+
const XML_NODE_NAME$a = "w:tc";
|
|
28012
|
+
const SD_NODE_NAME$a = "tableCell";
|
|
27917
28013
|
const validXmlAttributes$7 = [];
|
|
27918
28014
|
function encode$g(params, encodedAttrs) {
|
|
27919
28015
|
const {
|
|
@@ -27942,7 +28038,7 @@ function encode$g(params, encodedAttrs) {
|
|
|
27942
28038
|
}
|
|
27943
28039
|
return schemaNode;
|
|
27944
28040
|
}
|
|
27945
|
-
function decode$
|
|
28041
|
+
function decode$i(params, decodedAttrs) {
|
|
27946
28042
|
const translated = translateTableCell(params);
|
|
27947
28043
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
27948
28044
|
translated.attributes = { ...translated.attributes || {}, ...decodedAttrs };
|
|
@@ -27950,11 +28046,11 @@ function decode$g(params, decodedAttrs) {
|
|
|
27950
28046
|
return translated;
|
|
27951
28047
|
}
|
|
27952
28048
|
const config$9 = {
|
|
27953
|
-
xmlName: XML_NODE_NAME$
|
|
27954
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28049
|
+
xmlName: XML_NODE_NAME$a,
|
|
28050
|
+
sdNodeOrKeyName: SD_NODE_NAME$a,
|
|
27955
28051
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27956
28052
|
encode: encode$g,
|
|
27957
|
-
decode: decode$
|
|
28053
|
+
decode: decode$i,
|
|
27958
28054
|
attributes: validXmlAttributes$7
|
|
27959
28055
|
};
|
|
27960
28056
|
const translator$9 = NodeTranslator.from(config$9);
|
|
@@ -28776,8 +28872,8 @@ function translateAnchorNode(params) {
|
|
|
28776
28872
|
elements: [...anchorElements, ...elementsWithWrap]
|
|
28777
28873
|
};
|
|
28778
28874
|
}
|
|
28779
|
-
const XML_NODE_NAME$
|
|
28780
|
-
const SD_NODE_NAME$
|
|
28875
|
+
const XML_NODE_NAME$9 = "wp:anchor";
|
|
28876
|
+
const SD_NODE_NAME$9 = ["image"];
|
|
28781
28877
|
const validXmlAttributes$6 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
28782
28878
|
function encode$f(params) {
|
|
28783
28879
|
const { node } = params.extraParams;
|
|
@@ -28786,7 +28882,7 @@ function encode$f(params) {
|
|
|
28786
28882
|
}
|
|
28787
28883
|
return handleAnchorNode(params);
|
|
28788
28884
|
}
|
|
28789
|
-
function decode$
|
|
28885
|
+
function decode$h(params) {
|
|
28790
28886
|
const { node } = params;
|
|
28791
28887
|
if (!node || !node.type) {
|
|
28792
28888
|
return null;
|
|
@@ -28794,11 +28890,11 @@ function decode$f(params) {
|
|
|
28794
28890
|
return translateAnchorNode(params);
|
|
28795
28891
|
}
|
|
28796
28892
|
const config$8 = {
|
|
28797
|
-
xmlName: XML_NODE_NAME$
|
|
28798
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28893
|
+
xmlName: XML_NODE_NAME$9,
|
|
28894
|
+
sdNodeOrKeyName: SD_NODE_NAME$9,
|
|
28799
28895
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28800
28896
|
encode: encode$f,
|
|
28801
|
-
decode: decode$
|
|
28897
|
+
decode: decode$h,
|
|
28802
28898
|
attributes: validXmlAttributes$6
|
|
28803
28899
|
};
|
|
28804
28900
|
const translator$8 = NodeTranslator.from(config$8);
|
|
@@ -28817,8 +28913,8 @@ function translateInlineNode(params) {
|
|
|
28817
28913
|
elements: nodeElements.elements
|
|
28818
28914
|
};
|
|
28819
28915
|
}
|
|
28820
|
-
const XML_NODE_NAME$
|
|
28821
|
-
const SD_NODE_NAME$
|
|
28916
|
+
const XML_NODE_NAME$8 = "wp:inline";
|
|
28917
|
+
const SD_NODE_NAME$8 = ["image"];
|
|
28822
28918
|
const validXmlAttributes$5 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
28823
28919
|
function encode$e(params) {
|
|
28824
28920
|
const { node } = params.extraParams;
|
|
@@ -28827,7 +28923,7 @@ function encode$e(params) {
|
|
|
28827
28923
|
}
|
|
28828
28924
|
return handleInlineNode(params);
|
|
28829
28925
|
}
|
|
28830
|
-
function decode$
|
|
28926
|
+
function decode$g(params) {
|
|
28831
28927
|
const { node } = params;
|
|
28832
28928
|
if (!node || !node.type) {
|
|
28833
28929
|
return null;
|
|
@@ -28835,16 +28931,16 @@ function decode$e(params) {
|
|
|
28835
28931
|
return translateInlineNode(params);
|
|
28836
28932
|
}
|
|
28837
28933
|
const config$7 = {
|
|
28838
|
-
xmlName: XML_NODE_NAME$
|
|
28839
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28934
|
+
xmlName: XML_NODE_NAME$8,
|
|
28935
|
+
sdNodeOrKeyName: SD_NODE_NAME$8,
|
|
28840
28936
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28841
28937
|
encode: encode$e,
|
|
28842
|
-
decode: decode$
|
|
28938
|
+
decode: decode$g,
|
|
28843
28939
|
attributes: validXmlAttributes$5
|
|
28844
28940
|
};
|
|
28845
28941
|
const translator$7 = NodeTranslator.from(config$7);
|
|
28846
|
-
const XML_NODE_NAME$
|
|
28847
|
-
const SD_NODE_NAME$
|
|
28942
|
+
const XML_NODE_NAME$7 = "w:drawing";
|
|
28943
|
+
const SD_NODE_NAME$7 = [];
|
|
28848
28944
|
const validXmlAttributes$4 = [];
|
|
28849
28945
|
function encode$d(params) {
|
|
28850
28946
|
const nodes = params.nodes;
|
|
@@ -28860,7 +28956,7 @@ function encode$d(params) {
|
|
|
28860
28956
|
return translator2.encode({ ...params, extraParams: { node: child } }) || acc;
|
|
28861
28957
|
}, null);
|
|
28862
28958
|
}
|
|
28863
|
-
function decode$
|
|
28959
|
+
function decode$f(params) {
|
|
28864
28960
|
const { node } = params;
|
|
28865
28961
|
if (!node || !node.type) {
|
|
28866
28962
|
return null;
|
|
@@ -28876,11 +28972,11 @@ function decode$d(params) {
|
|
|
28876
28972
|
);
|
|
28877
28973
|
}
|
|
28878
28974
|
const config$6 = {
|
|
28879
|
-
xmlName: XML_NODE_NAME$
|
|
28880
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28975
|
+
xmlName: XML_NODE_NAME$7,
|
|
28976
|
+
sdNodeOrKeyName: SD_NODE_NAME$7,
|
|
28881
28977
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28882
28978
|
encode: encode$d,
|
|
28883
|
-
decode: decode$
|
|
28979
|
+
decode: decode$f,
|
|
28884
28980
|
attributes: validXmlAttributes$4
|
|
28885
28981
|
};
|
|
28886
28982
|
const translator$6 = NodeTranslator.from(config$6);
|
|
@@ -29042,12 +29138,12 @@ function getHTMLFromFragment(fragment, schema) {
|
|
|
29042
29138
|
const getTextContentFromNodes = ($from, maxMatch = 500) => {
|
|
29043
29139
|
let textBefore = "";
|
|
29044
29140
|
const sliceEndPos = $from.parentOffset;
|
|
29045
|
-
$from.parent.nodesBetween(Math.max(0, sliceEndPos - maxMatch), sliceEndPos, (node, pos, parent,
|
|
29141
|
+
$from.parent.nodesBetween(Math.max(0, sliceEndPos - maxMatch), sliceEndPos, (node, pos, parent, index2) => {
|
|
29046
29142
|
const chunk = node.type.spec.toText?.({
|
|
29047
29143
|
node,
|
|
29048
29144
|
pos,
|
|
29049
29145
|
parent,
|
|
29050
|
-
index
|
|
29146
|
+
index: index2
|
|
29051
29147
|
}) || node.textContent || "%leaf%";
|
|
29052
29148
|
textBefore += node.isAtom && !node.isText ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos));
|
|
29053
29149
|
});
|
|
@@ -29277,12 +29373,12 @@ function extractAndRemoveConditionalPrefix(item) {
|
|
|
29277
29373
|
let fontFamily = null;
|
|
29278
29374
|
let fontSize = null;
|
|
29279
29375
|
let start = -1, end = -1;
|
|
29280
|
-
nodes.forEach((node,
|
|
29376
|
+
nodes.forEach((node, index2) => {
|
|
29281
29377
|
if (node.nodeType === Node.COMMENT_NODE && node.nodeValue.includes("[if !supportLists]")) {
|
|
29282
|
-
start =
|
|
29378
|
+
start = index2;
|
|
29283
29379
|
}
|
|
29284
29380
|
if (start !== -1 && node.nodeType === Node.COMMENT_NODE && node.nodeValue.includes("[endif]")) {
|
|
29285
|
-
end =
|
|
29381
|
+
end = index2;
|
|
29286
29382
|
}
|
|
29287
29383
|
});
|
|
29288
29384
|
if (start !== -1 && end !== -1) {
|
|
@@ -29420,16 +29516,16 @@ function unflattenListsInHtml(html) {
|
|
|
29420
29516
|
const allNodes = [...doc2.body.children];
|
|
29421
29517
|
const listSequences = [];
|
|
29422
29518
|
let currentSequence = null;
|
|
29423
|
-
allNodes.forEach((node,
|
|
29519
|
+
allNodes.forEach((node, index2) => {
|
|
29424
29520
|
const isFlattenList = node.tagName && (node.tagName === "OL" || node.tagName === "UL") && node.hasAttribute("data-list-id");
|
|
29425
29521
|
if (isFlattenList) {
|
|
29426
29522
|
const listId = node.getAttribute("data-list-id");
|
|
29427
29523
|
if (currentSequence && currentSequence.id === listId) {
|
|
29428
|
-
currentSequence.lists.push({ element: node, index });
|
|
29524
|
+
currentSequence.lists.push({ element: node, index: index2 });
|
|
29429
29525
|
} else {
|
|
29430
29526
|
currentSequence = {
|
|
29431
29527
|
id: listId,
|
|
29432
|
-
lists: [{ element: node, index }]
|
|
29528
|
+
lists: [{ element: node, index: index2 }]
|
|
29433
29529
|
};
|
|
29434
29530
|
listSequences.push(currentSequence);
|
|
29435
29531
|
}
|
|
@@ -29609,8 +29705,8 @@ function mergeSeparateLists(container) {
|
|
|
29609
29705
|
const hasStartAttr = rootLevelLists.some((list) => list.getAttribute("start") !== null);
|
|
29610
29706
|
if (hasStartAttr) {
|
|
29611
29707
|
const listsWithStartAttr = rootLevelLists.filter((list) => list.getAttribute("start") !== null);
|
|
29612
|
-
for (let [
|
|
29613
|
-
if (item.getAttribute("start") === (
|
|
29708
|
+
for (let [index2, item] of listsWithStartAttr.entries()) {
|
|
29709
|
+
if (item.getAttribute("start") === (index2 + 2).toString()) {
|
|
29614
29710
|
mainList.append(...item.childNodes);
|
|
29615
29711
|
item.remove();
|
|
29616
29712
|
}
|
|
@@ -29801,10 +29897,10 @@ function handleHtmlPaste(html, editor, source) {
|
|
|
29801
29897
|
dispatch(tr);
|
|
29802
29898
|
} else if (isInParagraph) {
|
|
29803
29899
|
const allContent = [];
|
|
29804
|
-
doc2.content.forEach((node,
|
|
29900
|
+
doc2.content.forEach((node, index2) => {
|
|
29805
29901
|
if (node.type.name === "paragraph") {
|
|
29806
29902
|
allContent.push(...node.content.content);
|
|
29807
|
-
if (
|
|
29903
|
+
if (index2 < doc2.content.childCount - 1) {
|
|
29808
29904
|
allContent.push(editor.schema.text("\n"));
|
|
29809
29905
|
}
|
|
29810
29906
|
}
|
|
@@ -29932,10 +30028,10 @@ function requireHe() {
|
|
|
29932
30028
|
return hasOwnProperty.call(object2, propertyName);
|
|
29933
30029
|
};
|
|
29934
30030
|
var contains = function(array, value) {
|
|
29935
|
-
var
|
|
30031
|
+
var index2 = -1;
|
|
29936
30032
|
var length = array.length;
|
|
29937
|
-
while (++
|
|
29938
|
-
if (array[
|
|
30033
|
+
while (++index2 < length) {
|
|
30034
|
+
if (array[index2] == value) {
|
|
29939
30035
|
return true;
|
|
29940
30036
|
}
|
|
29941
30037
|
}
|
|
@@ -30133,7 +30229,7 @@ function requireHe() {
|
|
|
30133
30229
|
return he$2.exports;
|
|
30134
30230
|
}
|
|
30135
30231
|
var heExports = requireHe();
|
|
30136
|
-
const he = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
30232
|
+
const he = /* @__PURE__ */ getDefaultExportFromCjs$2(heExports);
|
|
30137
30233
|
function translateFieldAnnotation(params) {
|
|
30138
30234
|
const { node, isFinalDoc, fieldsHighlightColor } = params;
|
|
30139
30235
|
const { attrs = {} } = node;
|
|
@@ -30535,8 +30631,8 @@ function generateSdtPrTagForStructuredContent({ node }) {
|
|
|
30535
30631
|
};
|
|
30536
30632
|
return result;
|
|
30537
30633
|
}
|
|
30538
|
-
const XML_NODE_NAME$
|
|
30539
|
-
const SD_NODE_NAME$
|
|
30634
|
+
const XML_NODE_NAME$6 = "w:sdt";
|
|
30635
|
+
const SD_NODE_NAME$6 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
|
|
30540
30636
|
const validXmlAttributes$3 = [];
|
|
30541
30637
|
function encode$c(params) {
|
|
30542
30638
|
const nodes = params.nodes;
|
|
@@ -30548,7 +30644,7 @@ function encode$c(params) {
|
|
|
30548
30644
|
const result = handler2(params);
|
|
30549
30645
|
return result;
|
|
30550
30646
|
}
|
|
30551
|
-
function decode$
|
|
30647
|
+
function decode$e(params) {
|
|
30552
30648
|
const { node } = params;
|
|
30553
30649
|
if (!node || !node.type) {
|
|
30554
30650
|
return null;
|
|
@@ -30567,84 +30663,84 @@ function decode$c(params) {
|
|
|
30567
30663
|
return result;
|
|
30568
30664
|
}
|
|
30569
30665
|
const config$5 = {
|
|
30570
|
-
xmlName: XML_NODE_NAME$
|
|
30571
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30666
|
+
xmlName: XML_NODE_NAME$6,
|
|
30667
|
+
sdNodeOrKeyName: SD_NODE_NAME$6,
|
|
30572
30668
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30573
30669
|
encode: encode$c,
|
|
30574
|
-
decode: decode$
|
|
30670
|
+
decode: decode$e,
|
|
30575
30671
|
attributes: validXmlAttributes$3
|
|
30576
30672
|
};
|
|
30577
30673
|
const translator$5 = NodeTranslator.from(config$5);
|
|
30578
30674
|
const encode$b = (attributes) => {
|
|
30579
30675
|
return attributes["w:id"];
|
|
30580
30676
|
};
|
|
30581
|
-
const decode$
|
|
30677
|
+
const decode$d = (attrs) => {
|
|
30582
30678
|
return attrs.id;
|
|
30583
30679
|
};
|
|
30584
|
-
const attrConfig$
|
|
30680
|
+
const attrConfig$7 = Object.freeze({
|
|
30585
30681
|
xmlName: "w:id",
|
|
30586
30682
|
sdName: "id",
|
|
30587
30683
|
encode: encode$b,
|
|
30588
|
-
decode: decode$
|
|
30684
|
+
decode: decode$d
|
|
30589
30685
|
});
|
|
30590
30686
|
const encode$a = (attributes) => {
|
|
30591
30687
|
return attributes["w:name"];
|
|
30592
30688
|
};
|
|
30593
|
-
const decode$
|
|
30689
|
+
const decode$c = (attrs) => {
|
|
30594
30690
|
return attrs.name;
|
|
30595
30691
|
};
|
|
30596
|
-
const attrConfig$
|
|
30692
|
+
const attrConfig$6 = Object.freeze({
|
|
30597
30693
|
xmlName: "w:name",
|
|
30598
30694
|
sdName: "name",
|
|
30599
30695
|
encode: encode$a,
|
|
30600
|
-
decode: decode$
|
|
30696
|
+
decode: decode$c
|
|
30601
30697
|
});
|
|
30602
30698
|
const encode$9 = (attributes) => {
|
|
30603
30699
|
return attributes["w:colFirst"];
|
|
30604
30700
|
};
|
|
30605
|
-
const decode$
|
|
30701
|
+
const decode$b = (attrs) => {
|
|
30606
30702
|
return attrs.colFirst;
|
|
30607
30703
|
};
|
|
30608
|
-
const attrConfig$
|
|
30704
|
+
const attrConfig$5 = Object.freeze({
|
|
30609
30705
|
xmlName: "w:colFirst",
|
|
30610
30706
|
sdName: "colFirst",
|
|
30611
30707
|
encode: encode$9,
|
|
30612
|
-
decode: decode$
|
|
30708
|
+
decode: decode$b
|
|
30613
30709
|
});
|
|
30614
30710
|
const encode$8 = (attributes) => {
|
|
30615
30711
|
return attributes["w:colLast"];
|
|
30616
30712
|
};
|
|
30617
|
-
const decode$
|
|
30713
|
+
const decode$a = (attrs) => {
|
|
30618
30714
|
return attrs.colLast;
|
|
30619
30715
|
};
|
|
30620
|
-
const attrConfig$
|
|
30716
|
+
const attrConfig$4 = Object.freeze({
|
|
30621
30717
|
xmlName: "w:colLast",
|
|
30622
30718
|
sdName: "colLast",
|
|
30623
30719
|
encode: encode$8,
|
|
30624
|
-
decode: decode$
|
|
30720
|
+
decode: decode$a
|
|
30625
30721
|
});
|
|
30626
30722
|
const encode$7 = (attributes) => {
|
|
30627
30723
|
return attributes["w:displacedByCustomXml"];
|
|
30628
30724
|
};
|
|
30629
|
-
const decode$
|
|
30725
|
+
const decode$9 = (attrs) => {
|
|
30630
30726
|
return attrs.displacedByCustomXml;
|
|
30631
30727
|
};
|
|
30632
|
-
const attrConfig$
|
|
30728
|
+
const attrConfig$3 = Object.freeze({
|
|
30633
30729
|
xmlName: "w:displacedByCustomXml",
|
|
30634
30730
|
sdName: "displacedByCustomXml",
|
|
30635
30731
|
encode: encode$7,
|
|
30636
|
-
decode: decode$
|
|
30732
|
+
decode: decode$9
|
|
30637
30733
|
});
|
|
30638
|
-
const validXmlAttributes$2 = [attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3
|
|
30639
|
-
const XML_NODE_NAME$
|
|
30640
|
-
const SD_NODE_NAME$
|
|
30734
|
+
const validXmlAttributes$2 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
|
|
30735
|
+
const XML_NODE_NAME$5 = "w:bookmarkStart";
|
|
30736
|
+
const SD_NODE_NAME$5 = "bookmarkStart";
|
|
30641
30737
|
const encode$6 = (params, encodedAttrs = {}) => {
|
|
30642
30738
|
return {
|
|
30643
30739
|
type: "bookmarkStart",
|
|
30644
30740
|
attrs: encodedAttrs
|
|
30645
30741
|
};
|
|
30646
30742
|
};
|
|
30647
|
-
const decode$
|
|
30743
|
+
const decode$8 = (params, decodedAttrs = {}) => {
|
|
30648
30744
|
const result = {
|
|
30649
30745
|
name: "w:bookmarkStart",
|
|
30650
30746
|
elements: []
|
|
@@ -30655,48 +30751,48 @@ const decode$6 = (params, decodedAttrs = {}) => {
|
|
|
30655
30751
|
return result;
|
|
30656
30752
|
};
|
|
30657
30753
|
const config$4 = {
|
|
30658
|
-
xmlName: XML_NODE_NAME$
|
|
30659
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30754
|
+
xmlName: XML_NODE_NAME$5,
|
|
30755
|
+
sdNodeOrKeyName: SD_NODE_NAME$5,
|
|
30660
30756
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30661
30757
|
encode: encode$6,
|
|
30662
|
-
decode: decode$
|
|
30758
|
+
decode: decode$8,
|
|
30663
30759
|
attributes: validXmlAttributes$2
|
|
30664
30760
|
};
|
|
30665
30761
|
const translator$4 = NodeTranslator.from(config$4);
|
|
30666
30762
|
const encode$5 = (attributes) => {
|
|
30667
30763
|
return attributes["w:id"];
|
|
30668
30764
|
};
|
|
30669
|
-
const decode$
|
|
30765
|
+
const decode$7 = (attrs) => {
|
|
30670
30766
|
return attrs.id;
|
|
30671
30767
|
};
|
|
30672
|
-
const attrConfig$
|
|
30768
|
+
const attrConfig$2 = Object.freeze({
|
|
30673
30769
|
xmlName: "w:id",
|
|
30674
30770
|
sdName: "id",
|
|
30675
30771
|
encode: encode$5,
|
|
30676
|
-
decode: decode$
|
|
30772
|
+
decode: decode$7
|
|
30677
30773
|
});
|
|
30678
30774
|
const encode$4 = (attributes) => {
|
|
30679
30775
|
return attributes["w:displacedByCustomXml"];
|
|
30680
30776
|
};
|
|
30681
|
-
const decode$
|
|
30777
|
+
const decode$6 = (attrs) => {
|
|
30682
30778
|
return attrs.displacedByCustomXml;
|
|
30683
30779
|
};
|
|
30684
|
-
const attrConfig = Object.freeze({
|
|
30780
|
+
const attrConfig$1 = Object.freeze({
|
|
30685
30781
|
xmlName: "w:displacedByCustomXml",
|
|
30686
30782
|
sdName: "displacedByCustomXml",
|
|
30687
30783
|
encode: encode$4,
|
|
30688
|
-
decode: decode$
|
|
30784
|
+
decode: decode$6
|
|
30689
30785
|
});
|
|
30690
|
-
const validXmlAttributes$1 = [attrConfig$
|
|
30691
|
-
const XML_NODE_NAME$
|
|
30692
|
-
const SD_NODE_NAME$
|
|
30786
|
+
const validXmlAttributes$1 = [attrConfig$2, attrConfig$1];
|
|
30787
|
+
const XML_NODE_NAME$4 = "w:bookmarkEnd";
|
|
30788
|
+
const SD_NODE_NAME$4 = "bookmarkEnd";
|
|
30693
30789
|
const encode$3 = (params, encodedAttrs = {}) => {
|
|
30694
30790
|
return {
|
|
30695
30791
|
type: "bookmarkEnd",
|
|
30696
30792
|
attrs: encodedAttrs
|
|
30697
30793
|
};
|
|
30698
30794
|
};
|
|
30699
|
-
const decode$
|
|
30795
|
+
const decode$5 = (params, decodedAttrs = {}) => {
|
|
30700
30796
|
const result = {
|
|
30701
30797
|
name: "w:bookmarkEnd",
|
|
30702
30798
|
elements: []
|
|
@@ -30707,16 +30803,16 @@ const decode$3 = (params, decodedAttrs = {}) => {
|
|
|
30707
30803
|
return result;
|
|
30708
30804
|
};
|
|
30709
30805
|
const config$3 = {
|
|
30710
|
-
xmlName: XML_NODE_NAME$
|
|
30711
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30806
|
+
xmlName: XML_NODE_NAME$4,
|
|
30807
|
+
sdNodeOrKeyName: SD_NODE_NAME$4,
|
|
30712
30808
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30713
30809
|
encode: encode$3,
|
|
30714
|
-
decode: decode$
|
|
30810
|
+
decode: decode$5,
|
|
30715
30811
|
attributes: validXmlAttributes$1
|
|
30716
30812
|
};
|
|
30717
30813
|
const translator$3 = NodeTranslator.from(config$3);
|
|
30718
|
-
const XML_NODE_NAME$
|
|
30719
|
-
const SD_NODE_NAME$
|
|
30814
|
+
const XML_NODE_NAME$3 = "mc:AlternateContent";
|
|
30815
|
+
const SD_NODE_NAME$3 = [];
|
|
30720
30816
|
const validXmlAttributes = [];
|
|
30721
30817
|
function encode$2(params) {
|
|
30722
30818
|
const { nodeListHandler } = params;
|
|
@@ -30738,7 +30834,7 @@ function encode$2(params) {
|
|
|
30738
30834
|
path: [...params.path || [], wpsNode]
|
|
30739
30835
|
});
|
|
30740
30836
|
}
|
|
30741
|
-
function decode$
|
|
30837
|
+
function decode$4(params) {
|
|
30742
30838
|
const { node } = params;
|
|
30743
30839
|
const { drawingContent } = node.attrs;
|
|
30744
30840
|
const drawing = {
|
|
@@ -30756,14 +30852,78 @@ function decode$2(params) {
|
|
|
30756
30852
|
};
|
|
30757
30853
|
}
|
|
30758
30854
|
const config$2 = {
|
|
30759
|
-
xmlName: XML_NODE_NAME$
|
|
30760
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30855
|
+
xmlName: XML_NODE_NAME$3,
|
|
30856
|
+
sdNodeOrKeyName: SD_NODE_NAME$3,
|
|
30761
30857
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30762
30858
|
encode: encode$2,
|
|
30763
|
-
decode: decode$
|
|
30859
|
+
decode: decode$4,
|
|
30764
30860
|
attributes: validXmlAttributes
|
|
30765
30861
|
};
|
|
30766
30862
|
const translator$2 = NodeTranslator.from(config$2);
|
|
30863
|
+
const decode$3 = (attrs) => attrs?.["w:id"];
|
|
30864
|
+
const attrConfig = Object.freeze({
|
|
30865
|
+
xmlName: "w:id",
|
|
30866
|
+
sdName: "w:id",
|
|
30867
|
+
// We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
|
|
30868
|
+
encode: () => {
|
|
30869
|
+
},
|
|
30870
|
+
decode: decode$3
|
|
30871
|
+
});
|
|
30872
|
+
const XML_NODE_NAME$2 = "w:commentRange";
|
|
30873
|
+
const SD_NODE_NAME$2 = "commentRange";
|
|
30874
|
+
const decode$2 = (params, decodedAttrs) => {
|
|
30875
|
+
const { node, comments, commentsExportType, exportedCommentDefs } = params;
|
|
30876
|
+
if (!node) return;
|
|
30877
|
+
if (!comments) return;
|
|
30878
|
+
if (exportedCommentDefs?.length === 0) return;
|
|
30879
|
+
if (commentsExportType === "clean") return;
|
|
30880
|
+
const commentNodeId = node.attrs["w:id"];
|
|
30881
|
+
const originalComment = comments.find((comment) => {
|
|
30882
|
+
return comment.commentId == commentNodeId;
|
|
30883
|
+
});
|
|
30884
|
+
if (!originalComment) return;
|
|
30885
|
+
const parentCommentId = originalComment.parentCommentId;
|
|
30886
|
+
const parentComment = comments.find(
|
|
30887
|
+
({ commentId, importedId }) => commentId === parentCommentId || importedId === parentCommentId
|
|
30888
|
+
);
|
|
30889
|
+
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
30890
|
+
if (commentsExportType === "external" && isInternal) return;
|
|
30891
|
+
const isResolved = !!originalComment.resolvedTime;
|
|
30892
|
+
if (isResolved) return;
|
|
30893
|
+
if (node.type !== "commentRangeStart" && node.type !== "commentRangeEnd") {
|
|
30894
|
+
return;
|
|
30895
|
+
}
|
|
30896
|
+
const { type: type2 } = node;
|
|
30897
|
+
const commentIndex = comments.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
30898
|
+
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
30899
|
+
if (type2 === "commentRangeEnd") {
|
|
30900
|
+
const commentReference = {
|
|
30901
|
+
name: "w:r",
|
|
30902
|
+
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
30903
|
+
};
|
|
30904
|
+
commentSchema = [commentSchema, commentReference];
|
|
30905
|
+
}
|
|
30906
|
+
return commentSchema;
|
|
30907
|
+
};
|
|
30908
|
+
const getCommentSchema = (type2, commentIndex) => {
|
|
30909
|
+
return {
|
|
30910
|
+
name: `w:${type2}`,
|
|
30911
|
+
attributes: {
|
|
30912
|
+
"w:id": String(commentIndex)
|
|
30913
|
+
}
|
|
30914
|
+
};
|
|
30915
|
+
};
|
|
30916
|
+
const getConfig = (type2) => ({
|
|
30917
|
+
xmlName: `${XML_NODE_NAME$2}${type2}`,
|
|
30918
|
+
sdNodeOrKeyName: `${SD_NODE_NAME$2}${type2}`,
|
|
30919
|
+
type: NodeTranslator.translatorTypes.NODE,
|
|
30920
|
+
encode: () => {
|
|
30921
|
+
},
|
|
30922
|
+
decode: decode$2,
|
|
30923
|
+
attributes: [attrConfig]
|
|
30924
|
+
});
|
|
30925
|
+
const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
|
|
30926
|
+
const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
|
|
30767
30927
|
const XML_NODE_NAME$1 = "sd:pageReference";
|
|
30768
30928
|
const SD_NODE_NAME$1 = "pageReference";
|
|
30769
30929
|
const encode$1 = (params, _2) => {
|
|
@@ -31023,8 +31183,8 @@ function exportSchemaToJson(params) {
|
|
|
31023
31183
|
tab: translator$17,
|
|
31024
31184
|
image: translator$6,
|
|
31025
31185
|
hardBreak: translator$19,
|
|
31026
|
-
commentRangeStart:
|
|
31027
|
-
commentRangeEnd:
|
|
31186
|
+
commentRangeStart: commentRangeStartTranslator,
|
|
31187
|
+
commentRangeEnd: commentRangeEndTranslator,
|
|
31028
31188
|
commentReference: () => null,
|
|
31029
31189
|
shapeContainer: translateShapeContainer,
|
|
31030
31190
|
shapeTextbox: translateShapeTextbox,
|
|
@@ -31527,11 +31687,11 @@ function translateList(params) {
|
|
|
31527
31687
|
let outputNode = exportSchemaToJson({ ...params, node: collapsedParagraphNode });
|
|
31528
31688
|
if (Array.isArray(outputNode) && params.isFinalDoc) {
|
|
31529
31689
|
const parsedElements = [];
|
|
31530
|
-
outputNode?.forEach((node2,
|
|
31690
|
+
outputNode?.forEach((node2, index2) => {
|
|
31531
31691
|
if (node2?.elements) {
|
|
31532
31692
|
const runs = node2.elements?.filter((n) => n.name === "w:r");
|
|
31533
31693
|
parsedElements.push(...runs);
|
|
31534
|
-
if (node2.name === "w:p" &&
|
|
31694
|
+
if (node2.name === "w:p" && index2 < outputNode.length - 1) {
|
|
31535
31695
|
parsedElements.push({
|
|
31536
31696
|
name: "w:br"
|
|
31537
31697
|
});
|
|
@@ -31552,7 +31712,7 @@ function translateList(params) {
|
|
|
31552
31712
|
const foundRun = sdtContent.elements?.find((el) => el.name === "w:r");
|
|
31553
31713
|
if (sdtContent && sdtContent.elements && !foundRun) {
|
|
31554
31714
|
const parsedElements = [];
|
|
31555
|
-
sdtContent.elements.forEach((element,
|
|
31715
|
+
sdtContent.elements.forEach((element, index2) => {
|
|
31556
31716
|
if (element.name === "w:rPr" && element.elements?.length) {
|
|
31557
31717
|
parsedElements.push(element);
|
|
31558
31718
|
}
|
|
@@ -31560,7 +31720,7 @@ function translateList(params) {
|
|
|
31560
31720
|
if (runs && runs.length) {
|
|
31561
31721
|
parsedElements.push(...runs);
|
|
31562
31722
|
}
|
|
31563
|
-
if (element.name === "w:p" &&
|
|
31723
|
+
if (element.name === "w:p" && index2 < sdtContent.elements.length - 1) {
|
|
31564
31724
|
parsedElements.push({
|
|
31565
31725
|
name: "w:br"
|
|
31566
31726
|
});
|
|
@@ -31597,9 +31757,9 @@ const convertMultipleListItemsIntoSingleNode = (listItem) => {
|
|
|
31597
31757
|
...firstParagraph,
|
|
31598
31758
|
content: []
|
|
31599
31759
|
};
|
|
31600
|
-
content.forEach((item,
|
|
31760
|
+
content.forEach((item, index2) => {
|
|
31601
31761
|
if (item.type === "paragraph") {
|
|
31602
|
-
if (
|
|
31762
|
+
if (index2 > 0) {
|
|
31603
31763
|
collapsedParagraph.content.push({
|
|
31604
31764
|
type: "lineBreak",
|
|
31605
31765
|
attrs: {},
|
|
@@ -31613,9 +31773,9 @@ const convertMultipleListItemsIntoSingleNode = (listItem) => {
|
|
|
31613
31773
|
collapsedParagraph.content.push(item);
|
|
31614
31774
|
}
|
|
31615
31775
|
});
|
|
31616
|
-
collapsedParagraph.content = collapsedParagraph.content.filter((node,
|
|
31776
|
+
collapsedParagraph.content = collapsedParagraph.content.filter((node, index2, nodes) => {
|
|
31617
31777
|
if (!isLineBreakOnlyRun(node)) return true;
|
|
31618
|
-
const prevNode = nodes[
|
|
31778
|
+
const prevNode = nodes[index2 - 1];
|
|
31619
31779
|
return !(prevNode && isLineBreakOnlyRun(prevNode));
|
|
31620
31780
|
});
|
|
31621
31781
|
return collapsedParagraph;
|
|
@@ -33298,7 +33458,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33298
33458
|
fileType: filePath.split(".").pop()
|
|
33299
33459
|
};
|
|
33300
33460
|
});
|
|
33301
|
-
converter.telemetry.trackFileStructure(
|
|
33461
|
+
const trackStructure = (documentIdentifier = null) => converter.telemetry.trackFileStructure(
|
|
33302
33462
|
{
|
|
33303
33463
|
totalFiles: files.length,
|
|
33304
33464
|
maxDepth: Math.max(...files.map((f) => f.fileDepth)),
|
|
@@ -33306,9 +33466,20 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33306
33466
|
files
|
|
33307
33467
|
},
|
|
33308
33468
|
converter.fileSource,
|
|
33309
|
-
converter.documentId,
|
|
33469
|
+
converter.documentGuid ?? converter.documentId ?? null,
|
|
33470
|
+
documentIdentifier ?? converter.documentId ?? null,
|
|
33310
33471
|
converter.documentInternalId
|
|
33311
33472
|
);
|
|
33473
|
+
try {
|
|
33474
|
+
const identifierResult = converter.getDocumentIdentifier?.();
|
|
33475
|
+
if (identifierResult && typeof identifierResult.then === "function") {
|
|
33476
|
+
identifierResult.then(trackStructure).catch(() => trackStructure());
|
|
33477
|
+
} else {
|
|
33478
|
+
trackStructure(identifierResult);
|
|
33479
|
+
}
|
|
33480
|
+
} catch (error) {
|
|
33481
|
+
trackStructure();
|
|
33482
|
+
}
|
|
33312
33483
|
}
|
|
33313
33484
|
const nodeListHandler = defaultNodeListHandler();
|
|
33314
33485
|
const bodyNode = json.elements[0].elements.find((el) => el.name === "w:body");
|
|
@@ -33385,15 +33556,15 @@ const defaultNodeListHandler = () => {
|
|
|
33385
33556
|
};
|
|
33386
33557
|
};
|
|
33387
33558
|
const createNodeListHandler = (nodeHandlers) => {
|
|
33388
|
-
const getSafeElementContext = (elements,
|
|
33389
|
-
if (!elements ||
|
|
33559
|
+
const getSafeElementContext = (elements, index2, processedNode, path) => {
|
|
33560
|
+
if (!elements || index2 < 0 || index2 >= elements.length) {
|
|
33390
33561
|
return {
|
|
33391
|
-
elementIndex:
|
|
33562
|
+
elementIndex: index2,
|
|
33392
33563
|
error: "index_out_of_bounds",
|
|
33393
33564
|
arrayLength: elements?.length
|
|
33394
33565
|
};
|
|
33395
33566
|
}
|
|
33396
|
-
const element = elements[
|
|
33567
|
+
const element = elements[index2];
|
|
33397
33568
|
return {
|
|
33398
33569
|
elementName: element?.name,
|
|
33399
33570
|
attributes: processedNode?.attrs,
|
|
@@ -33419,9 +33590,9 @@ const createNodeListHandler = (nodeHandlers) => {
|
|
|
33419
33590
|
if (!filteredElements.length) return [];
|
|
33420
33591
|
const processedElements = [];
|
|
33421
33592
|
try {
|
|
33422
|
-
for (let
|
|
33593
|
+
for (let index2 = 0; index2 < filteredElements.length; index2++) {
|
|
33423
33594
|
try {
|
|
33424
|
-
const nodesToHandle = filteredElements.slice(
|
|
33595
|
+
const nodesToHandle = filteredElements.slice(index2);
|
|
33425
33596
|
if (!nodesToHandle || nodesToHandle.length === 0) {
|
|
33426
33597
|
continue;
|
|
33427
33598
|
}
|
|
@@ -33445,7 +33616,7 @@ const createNodeListHandler = (nodeHandlers) => {
|
|
|
33445
33616
|
);
|
|
33446
33617
|
const context = getSafeElementContext(
|
|
33447
33618
|
filteredElements,
|
|
33448
|
-
|
|
33619
|
+
index2,
|
|
33449
33620
|
nodes[0],
|
|
33450
33621
|
`/word/${filename || "document.xml"}`
|
|
33451
33622
|
);
|
|
@@ -33467,7 +33638,7 @@ const createNodeListHandler = (nodeHandlers) => {
|
|
|
33467
33638
|
}
|
|
33468
33639
|
}
|
|
33469
33640
|
if (consumed > 0) {
|
|
33470
|
-
|
|
33641
|
+
index2 += consumed - 1;
|
|
33471
33642
|
}
|
|
33472
33643
|
if (nodes) {
|
|
33473
33644
|
nodes.forEach((node) => {
|
|
@@ -33784,6 +33955,176 @@ const isAlternatingHeadersOddEven = (docx) => {
|
|
|
33784
33955
|
const evenOdd = elements.find((el) => el.name === "w:evenAndOddHeaders");
|
|
33785
33956
|
return !!evenOdd;
|
|
33786
33957
|
};
|
|
33958
|
+
const prepareCommentParaIds = (comment) => {
|
|
33959
|
+
const newComment = {
|
|
33960
|
+
...comment,
|
|
33961
|
+
commentParaId: generateRandom32BitHex()
|
|
33962
|
+
};
|
|
33963
|
+
return newComment;
|
|
33964
|
+
};
|
|
33965
|
+
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
33966
|
+
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
33967
|
+
const attributes = {
|
|
33968
|
+
"w:id": String(commentId),
|
|
33969
|
+
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
33970
|
+
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
33971
|
+
"w:date": toIsoNoFractional(comment.createdTime),
|
|
33972
|
+
"w:initials": getInitials(comment.creatorName),
|
|
33973
|
+
"w:done": comment.resolvedTime ? "1" : "0",
|
|
33974
|
+
"w15:paraId": comment.commentParaId,
|
|
33975
|
+
"custom:internalId": comment.commentId || comment.internalId,
|
|
33976
|
+
"custom:trackedChange": comment.trackedChange,
|
|
33977
|
+
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
33978
|
+
"custom:trackedChangeType": comment.trackedChangeType,
|
|
33979
|
+
"custom:trackedDeletedText": comment.deletedText || null
|
|
33980
|
+
};
|
|
33981
|
+
if (comment?.parentCommentId) {
|
|
33982
|
+
const parentComment = allComments.find((c) => c.commentId === comment.parentCommentId);
|
|
33983
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
33984
|
+
}
|
|
33985
|
+
return {
|
|
33986
|
+
type: "element",
|
|
33987
|
+
name: "w:comment",
|
|
33988
|
+
attributes,
|
|
33989
|
+
elements: [translatedText]
|
|
33990
|
+
};
|
|
33991
|
+
};
|
|
33992
|
+
const getInitials = (name) => {
|
|
33993
|
+
if (!name) return null;
|
|
33994
|
+
const preparedText = name.replace("(imported)", "").trim();
|
|
33995
|
+
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
33996
|
+
return initials;
|
|
33997
|
+
};
|
|
33998
|
+
const toIsoNoFractional = (unixMillis) => {
|
|
33999
|
+
const date = new Date(unixMillis || Date.now());
|
|
34000
|
+
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
34001
|
+
};
|
|
34002
|
+
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
34003
|
+
const newCommentsXml = carbonCopy(commentsXml);
|
|
34004
|
+
commentDefs.forEach((commentDef) => {
|
|
34005
|
+
const elements = commentDef.elements[0].elements;
|
|
34006
|
+
elements.unshift(COMMENT_REF);
|
|
34007
|
+
const paraId = commentDef.attributes["w15:paraId"];
|
|
34008
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
34009
|
+
commentDef.attributes = {
|
|
34010
|
+
"w:id": commentDef.attributes["w:id"],
|
|
34011
|
+
"w:author": commentDef.attributes["w:author"],
|
|
34012
|
+
"w:email": commentDef.attributes["w:email"],
|
|
34013
|
+
"w:date": commentDef.attributes["w:date"],
|
|
34014
|
+
"w:initials": commentDef.attributes["w:initials"],
|
|
34015
|
+
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
34016
|
+
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
34017
|
+
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
34018
|
+
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
34019
|
+
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
34020
|
+
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
34021
|
+
};
|
|
34022
|
+
});
|
|
34023
|
+
newCommentsXml.elements[0].elements = commentDefs;
|
|
34024
|
+
return newCommentsXml;
|
|
34025
|
+
};
|
|
34026
|
+
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
34027
|
+
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
34028
|
+
const commentsEx = comments.map((comment) => {
|
|
34029
|
+
const attributes = {
|
|
34030
|
+
"w15:paraId": comment.commentParaId,
|
|
34031
|
+
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
34032
|
+
};
|
|
34033
|
+
const parentId = comment.parentCommentId;
|
|
34034
|
+
if (parentId) {
|
|
34035
|
+
const parentComment = comments.find((c) => c.commentId === parentId);
|
|
34036
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
34037
|
+
}
|
|
34038
|
+
return {
|
|
34039
|
+
type: "element",
|
|
34040
|
+
name: "w15:commentEx",
|
|
34041
|
+
attributes
|
|
34042
|
+
};
|
|
34043
|
+
});
|
|
34044
|
+
xmlCopy.elements[0].elements = commentsEx;
|
|
34045
|
+
return xmlCopy;
|
|
34046
|
+
};
|
|
34047
|
+
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
34048
|
+
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
34049
|
+
const extensibleUpdated = carbonCopy(extensible);
|
|
34050
|
+
documentIdsUpdated.elements[0].elements = [];
|
|
34051
|
+
extensibleUpdated.elements[0].elements = [];
|
|
34052
|
+
comments.forEach((comment) => {
|
|
34053
|
+
const newDurableId = generateRandom32BitHex();
|
|
34054
|
+
const newCommentIdDef = {
|
|
34055
|
+
type: "element",
|
|
34056
|
+
name: "w16cid:commentId",
|
|
34057
|
+
attributes: {
|
|
34058
|
+
"w16cid:paraId": comment.commentParaId,
|
|
34059
|
+
"w16cid:durableId": newDurableId
|
|
34060
|
+
}
|
|
34061
|
+
};
|
|
34062
|
+
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
34063
|
+
const newExtensible = {
|
|
34064
|
+
type: "element",
|
|
34065
|
+
name: "w16cex:commentExtensible",
|
|
34066
|
+
attributes: {
|
|
34067
|
+
"w16cex:durableId": newDurableId,
|
|
34068
|
+
"w16cex:dateUtc": toIsoNoFractional()
|
|
34069
|
+
}
|
|
34070
|
+
};
|
|
34071
|
+
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
34072
|
+
});
|
|
34073
|
+
return {
|
|
34074
|
+
documentIdsUpdated,
|
|
34075
|
+
extensibleUpdated
|
|
34076
|
+
};
|
|
34077
|
+
};
|
|
34078
|
+
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
34079
|
+
const newXml = carbonCopy(convertedXml);
|
|
34080
|
+
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
34081
|
+
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
34082
|
+
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
34083
|
+
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
34084
|
+
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
34085
|
+
return newXml;
|
|
34086
|
+
};
|
|
34087
|
+
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
34088
|
+
const updatedXml = carbonCopy(convertedXml);
|
|
34089
|
+
delete updatedXml["word/comments.xml"];
|
|
34090
|
+
delete updatedXml["word/commentsExtended.xml"];
|
|
34091
|
+
delete updatedXml["word/commentsExtensible.xml"];
|
|
34092
|
+
delete updatedXml["word/commentsIds.xml"];
|
|
34093
|
+
return updatedXml;
|
|
34094
|
+
};
|
|
34095
|
+
const generateRelationship = (target) => {
|
|
34096
|
+
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
34097
|
+
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
34098
|
+
return { ...rel };
|
|
34099
|
+
};
|
|
34100
|
+
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
34101
|
+
const relationships = [];
|
|
34102
|
+
if (exportType === "clean") {
|
|
34103
|
+
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
34104
|
+
return { documentXml, relationships };
|
|
34105
|
+
}
|
|
34106
|
+
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
34107
|
+
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
34108
|
+
relationships.push(generateRelationship("comments.xml"));
|
|
34109
|
+
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
34110
|
+
commentsWithParaIds,
|
|
34111
|
+
updatedXml["word/commentsExtended.xml"]
|
|
34112
|
+
);
|
|
34113
|
+
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
34114
|
+
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
34115
|
+
commentsWithParaIds,
|
|
34116
|
+
updatedXml["word/commentsIds.xml"],
|
|
34117
|
+
updatedXml["word/commentsExtensible.xml"]
|
|
34118
|
+
);
|
|
34119
|
+
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
34120
|
+
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
34121
|
+
relationships.push(generateRelationship("commentsIds.xml"));
|
|
34122
|
+
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
34123
|
+
return {
|
|
34124
|
+
relationships,
|
|
34125
|
+
documentXml: updatedXml
|
|
34126
|
+
};
|
|
34127
|
+
};
|
|
33787
34128
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
33788
34129
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
33789
34130
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
@@ -33859,6 +34200,9 @@ const _SuperConverter = class _SuperConverter {
|
|
|
33859
34200
|
this.documentInternalId = null;
|
|
33860
34201
|
this.fileSource = params?.fileSource || null;
|
|
33861
34202
|
this.documentId = params?.documentId || null;
|
|
34203
|
+
this.documentGuid = null;
|
|
34204
|
+
this.documentHash = null;
|
|
34205
|
+
this.documentModified = false;
|
|
33862
34206
|
if (this.docx.length || this.xml) this.parseFromXml();
|
|
33863
34207
|
}
|
|
33864
34208
|
static getFontTableEntry(docx, fontName) {
|
|
@@ -33906,50 +34250,177 @@ const _SuperConverter = class _SuperConverter {
|
|
|
33906
34250
|
this.initialJSON = this.convertedXml["word/document.xml"];
|
|
33907
34251
|
if (!this.initialJSON) this.initialJSON = this.parseXmlToJson(this.xml);
|
|
33908
34252
|
this.declaration = this.initialJSON?.declaration;
|
|
34253
|
+
this.resolveDocumentGuid();
|
|
33909
34254
|
}
|
|
33910
34255
|
parseXmlToJson(xml) {
|
|
33911
34256
|
const newXml = xml.replace(/(<w:t xml:space="preserve">)(\s+)(<\/w:t>)/g, "$1[[sdspace]]$2[[sdspace]]$3");
|
|
33912
34257
|
return JSON.parse(xmljs.xml2json(newXml, null, 2));
|
|
33913
34258
|
}
|
|
33914
|
-
|
|
34259
|
+
/**
|
|
34260
|
+
* Generic method to get a stored custom property from docx
|
|
34261
|
+
* @static
|
|
34262
|
+
* @param {Array} docx - Array of docx file objects
|
|
34263
|
+
* @param {string} propertyName - Name of the property to retrieve
|
|
34264
|
+
* @returns {string|null} The property value or null if not found
|
|
34265
|
+
*/
|
|
34266
|
+
static getStoredCustomProperty(docx, propertyName) {
|
|
33915
34267
|
try {
|
|
33916
34268
|
const customXml = docx.find((doc2) => doc2.name === "docProps/custom.xml");
|
|
33917
|
-
if (!customXml) return;
|
|
34269
|
+
if (!customXml) return null;
|
|
33918
34270
|
const converter = new _SuperConverter();
|
|
33919
34271
|
const content = customXml.content;
|
|
33920
34272
|
const contentJson = converter.parseXmlToJson(content);
|
|
33921
34273
|
const properties = contentJson.elements.find((el) => el.name === "Properties");
|
|
33922
|
-
if (!properties.elements) return;
|
|
33923
|
-
const
|
|
33924
|
-
|
|
33925
|
-
|
|
33926
|
-
if (!superdocVersion) return;
|
|
33927
|
-
const version = superdocVersion.elements[0].elements[0].text;
|
|
33928
|
-
return version;
|
|
34274
|
+
if (!properties.elements) return null;
|
|
34275
|
+
const property = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34276
|
+
if (!property) return null;
|
|
34277
|
+
return property.elements[0].elements[0].text;
|
|
33929
34278
|
} catch (e) {
|
|
33930
|
-
console.warn(
|
|
33931
|
-
return;
|
|
34279
|
+
console.warn(`Error getting custom property ${propertyName}:`, e);
|
|
34280
|
+
return null;
|
|
33932
34281
|
}
|
|
33933
34282
|
}
|
|
33934
|
-
|
|
34283
|
+
/**
|
|
34284
|
+
* Generic method to set a stored custom property in docx
|
|
34285
|
+
* @static
|
|
34286
|
+
* @param {Object} docx - The docx object to store the property in
|
|
34287
|
+
* @param {string} propertyName - Name of the property
|
|
34288
|
+
* @param {string|Function} value - Value or function that returns the value
|
|
34289
|
+
* @param {boolean} preserveExisting - If true, won't overwrite existing values
|
|
34290
|
+
* @returns {string} The stored value
|
|
34291
|
+
*/
|
|
34292
|
+
static setStoredCustomProperty(docx, propertyName, value, preserveExisting = false) {
|
|
33935
34293
|
const customLocation = "docProps/custom.xml";
|
|
33936
|
-
if (!docx[customLocation])
|
|
33937
|
-
|
|
33938
|
-
|
|
33939
|
-
|
|
33940
|
-
if (!customXml) return;
|
|
33941
|
-
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
34294
|
+
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
34295
|
+
const customXml = docx[customLocation];
|
|
34296
|
+
const properties = customXml.elements?.find((el) => el.name === "Properties");
|
|
34297
|
+
if (!properties) return null;
|
|
33942
34298
|
if (!properties.elements) properties.elements = [];
|
|
33943
|
-
|
|
33944
|
-
|
|
33945
|
-
|
|
33946
|
-
|
|
33947
|
-
|
|
33948
|
-
|
|
34299
|
+
let property = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34300
|
+
if (property && preserveExisting) {
|
|
34301
|
+
return property.elements[0].elements[0].text;
|
|
34302
|
+
}
|
|
34303
|
+
const finalValue = typeof value === "function" ? value() : value;
|
|
34304
|
+
if (!property) {
|
|
34305
|
+
const existingPids = properties.elements.filter((el) => el.attributes?.pid).map((el) => parseInt(el.attributes.pid, 10)).filter(Number.isInteger);
|
|
34306
|
+
const pid = existingPids.length > 0 ? Math.max(...existingPids) + 1 : 2;
|
|
34307
|
+
property = {
|
|
34308
|
+
type: "element",
|
|
34309
|
+
name: "property",
|
|
34310
|
+
attributes: {
|
|
34311
|
+
name: propertyName,
|
|
34312
|
+
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
34313
|
+
pid
|
|
34314
|
+
},
|
|
34315
|
+
elements: [
|
|
34316
|
+
{
|
|
34317
|
+
type: "element",
|
|
34318
|
+
name: "vt:lpwstr",
|
|
34319
|
+
elements: [
|
|
34320
|
+
{
|
|
34321
|
+
type: "text",
|
|
34322
|
+
text: finalValue
|
|
34323
|
+
}
|
|
34324
|
+
]
|
|
34325
|
+
}
|
|
34326
|
+
]
|
|
34327
|
+
};
|
|
34328
|
+
properties.elements.push(property);
|
|
33949
34329
|
} else {
|
|
33950
|
-
|
|
34330
|
+
property.elements[0].elements[0].text = finalValue;
|
|
33951
34331
|
}
|
|
33952
|
-
return
|
|
34332
|
+
return finalValue;
|
|
34333
|
+
}
|
|
34334
|
+
static getStoredSuperdocVersion(docx) {
|
|
34335
|
+
return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
34336
|
+
}
|
|
34337
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.22.0") {
|
|
34338
|
+
return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
34339
|
+
}
|
|
34340
|
+
/**
|
|
34341
|
+
* Get document GUID from docx files (static method)
|
|
34342
|
+
* @static
|
|
34343
|
+
* @param {Array} docx - Array of docx file objects
|
|
34344
|
+
* @returns {string|null} The document GUID
|
|
34345
|
+
*/
|
|
34346
|
+
static extractDocumentGuid(docx) {
|
|
34347
|
+
try {
|
|
34348
|
+
const settingsXml = docx.find((doc2) => doc2.name === "word/settings.xml");
|
|
34349
|
+
if (!settingsXml) return null;
|
|
34350
|
+
const converter = new _SuperConverter();
|
|
34351
|
+
const settingsJson = converter.parseXmlToJson(settingsXml.content);
|
|
34352
|
+
const settings = settingsJson.elements?.[0];
|
|
34353
|
+
if (!settings) return null;
|
|
34354
|
+
const docIdElement = settings.elements?.find((el) => el.name === "w15:docId");
|
|
34355
|
+
if (docIdElement?.attributes?.["w15:val"]) {
|
|
34356
|
+
return docIdElement.attributes["w15:val"].replace(/[{}]/g, "");
|
|
34357
|
+
}
|
|
34358
|
+
} catch {
|
|
34359
|
+
}
|
|
34360
|
+
return _SuperConverter.getStoredCustomProperty(docx, "DocumentGuid");
|
|
34361
|
+
}
|
|
34362
|
+
/**
|
|
34363
|
+
* Get the permanent document GUID
|
|
34364
|
+
* @returns {string|null} The document GUID (only for modified documents)
|
|
34365
|
+
*/
|
|
34366
|
+
getDocumentGuid() {
|
|
34367
|
+
return this.documentGuid;
|
|
34368
|
+
}
|
|
34369
|
+
/**
|
|
34370
|
+
* Get the SuperDoc version for this converter instance
|
|
34371
|
+
* @returns {string|null} The SuperDoc version or null if not available
|
|
34372
|
+
*/
|
|
34373
|
+
getSuperdocVersion() {
|
|
34374
|
+
if (this.docx) {
|
|
34375
|
+
return _SuperConverter.getStoredSuperdocVersion(this.docx);
|
|
34376
|
+
}
|
|
34377
|
+
return null;
|
|
34378
|
+
}
|
|
34379
|
+
/**
|
|
34380
|
+
* Resolve existing document GUID (synchronous)
|
|
34381
|
+
*/
|
|
34382
|
+
resolveDocumentGuid() {
|
|
34383
|
+
const microsoftGuid = this.getMicrosoftDocId();
|
|
34384
|
+
if (microsoftGuid) {
|
|
34385
|
+
this.documentGuid = microsoftGuid;
|
|
34386
|
+
return;
|
|
34387
|
+
}
|
|
34388
|
+
const customGuid = _SuperConverter.getStoredCustomProperty(this.docx, "DocumentGuid");
|
|
34389
|
+
if (customGuid) {
|
|
34390
|
+
this.documentGuid = customGuid;
|
|
34391
|
+
}
|
|
34392
|
+
}
|
|
34393
|
+
/**
|
|
34394
|
+
* Get Microsoft's docId from settings.xml (READ ONLY)
|
|
34395
|
+
*/
|
|
34396
|
+
getMicrosoftDocId() {
|
|
34397
|
+
this.getDocumentInternalId();
|
|
34398
|
+
if (this.documentInternalId) {
|
|
34399
|
+
return this.documentInternalId.replace(/[{}]/g, "");
|
|
34400
|
+
}
|
|
34401
|
+
return null;
|
|
34402
|
+
}
|
|
34403
|
+
/**
|
|
34404
|
+
* Get document identifier (GUID or hash) - async for lazy hash generation
|
|
34405
|
+
*/
|
|
34406
|
+
async getDocumentIdentifier() {
|
|
34407
|
+
if (this.documentGuid) {
|
|
34408
|
+
return this.documentGuid;
|
|
34409
|
+
}
|
|
34410
|
+
if (!this.documentHash && this.fileSource) {
|
|
34411
|
+
this.documentHash = await __privateMethod(this, _SuperConverter_instances, generateDocumentHash_fn).call(this);
|
|
34412
|
+
}
|
|
34413
|
+
return this.documentHash;
|
|
34414
|
+
}
|
|
34415
|
+
/**
|
|
34416
|
+
* Promote from hash to GUID on first edit
|
|
34417
|
+
*/
|
|
34418
|
+
promoteToGuid() {
|
|
34419
|
+
if (this.documentGuid) return this.documentGuid;
|
|
34420
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34421
|
+
this.documentModified = true;
|
|
34422
|
+
this.documentHash = null;
|
|
34423
|
+
return this.documentGuid;
|
|
33953
34424
|
}
|
|
33954
34425
|
getDocumentDefaultStyles() {
|
|
33955
34426
|
const styles = this.convertedXml["word/styles.xml"];
|
|
@@ -34038,20 +34509,14 @@ const _SuperConverter = class _SuperConverter {
|
|
|
34038
34509
|
getDocumentInternalId() {
|
|
34039
34510
|
const settingsLocation = "word/settings.xml";
|
|
34040
34511
|
if (!this.convertedXml[settingsLocation]) {
|
|
34041
|
-
|
|
34512
|
+
return;
|
|
34042
34513
|
}
|
|
34043
|
-
const settings =
|
|
34044
|
-
if (!settings.elements[0]?.elements?.length) {
|
|
34045
|
-
const idElement = this.createDocumentIdElement(settings);
|
|
34046
|
-
settings.elements[0].elements = [idElement];
|
|
34047
|
-
if (!settings.elements[0].attributes["xmlns:w15"]) {
|
|
34048
|
-
settings.elements[0].attributes["xmlns:w15"] = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
34049
|
-
}
|
|
34050
|
-
this.convertedXml[settingsLocation] = settings;
|
|
34514
|
+
const settings = this.convertedXml[settingsLocation];
|
|
34515
|
+
if (!settings.elements?.[0]?.elements?.length) {
|
|
34051
34516
|
return;
|
|
34052
34517
|
}
|
|
34053
34518
|
const w15DocId = settings.elements[0].elements.find((el) => el.name === "w15:docId");
|
|
34054
|
-
this.documentInternalId = w15DocId?.attributes["w15:val"];
|
|
34519
|
+
this.documentInternalId = w15DocId?.attributes?.["w15:val"];
|
|
34055
34520
|
}
|
|
34056
34521
|
createDocumentIdElement() {
|
|
34057
34522
|
const docId = v4().toUpperCase();
|
|
@@ -34106,7 +34571,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
34106
34571
|
async exportToDocx(jsonData, editorSchema, documentMedia, isFinalDoc = false, commentsExportType, comments = [], editor, exportJsonOnly = false, fieldsHighlightColor) {
|
|
34107
34572
|
const commentsWithParaIds = comments.map((c) => prepareCommentParaIds(c));
|
|
34108
34573
|
const commentDefinitions = commentsWithParaIds.map(
|
|
34109
|
-
(c,
|
|
34574
|
+
(c, index2) => getCommentDefinition(c, index2, commentsWithParaIds, editor)
|
|
34110
34575
|
);
|
|
34111
34576
|
const { result, params } = this.exportToXmlJson({
|
|
34112
34577
|
data: jsonData,
|
|
@@ -34140,7 +34605,13 @@ const _SuperConverter = class _SuperConverter {
|
|
|
34140
34605
|
this.convertedXml = { ...this.convertedXml, ...updatedXml };
|
|
34141
34606
|
const headFootRels = __privateMethod(this, _SuperConverter_instances, exportProcessHeadersFooters_fn).call(this, { isFinalDoc });
|
|
34142
34607
|
__privateMethod(this, _SuperConverter_instances, exportProcessNewRelationships_fn).call(this, [...params.relationships, ...commentsRels, ...headFootRels]);
|
|
34143
|
-
|
|
34608
|
+
_SuperConverter.setStoredSuperdocVersion(this.convertedXml);
|
|
34609
|
+
if (this.documentModified || this.documentGuid) {
|
|
34610
|
+
if (!this.documentGuid) {
|
|
34611
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34612
|
+
}
|
|
34613
|
+
_SuperConverter.setStoredCustomProperty(this.convertedXml, "DocumentGuid", this.documentGuid, true);
|
|
34614
|
+
}
|
|
34144
34615
|
__privateMethod(this, _SuperConverter_instances, exportNumberingFile_fn).call(this, params);
|
|
34145
34616
|
return xml;
|
|
34146
34617
|
}
|
|
@@ -34175,8 +34646,38 @@ const _SuperConverter = class _SuperConverter {
|
|
|
34175
34646
|
});
|
|
34176
34647
|
return { result, params };
|
|
34177
34648
|
}
|
|
34649
|
+
// Deprecated methods for backward compatibility
|
|
34650
|
+
static getStoredSuperdocId(docx) {
|
|
34651
|
+
console.warn("getStoredSuperdocId is deprecated, use getDocumentGuid instead");
|
|
34652
|
+
return _SuperConverter.extractDocumentGuid(docx);
|
|
34653
|
+
}
|
|
34654
|
+
static updateDocumentVersion(docx, version) {
|
|
34655
|
+
console.warn("updateDocumentVersion is deprecated, use setStoredSuperdocVersion instead");
|
|
34656
|
+
return _SuperConverter.setStoredSuperdocVersion(docx, version);
|
|
34657
|
+
}
|
|
34178
34658
|
};
|
|
34179
34659
|
_SuperConverter_instances = new WeakSet();
|
|
34660
|
+
generateDocumentHash_fn = async function() {
|
|
34661
|
+
if (!this.fileSource) return `HASH-${Date.now()}`;
|
|
34662
|
+
try {
|
|
34663
|
+
let buffer2;
|
|
34664
|
+
if (Buffer2.isBuffer(this.fileSource)) {
|
|
34665
|
+
buffer2 = this.fileSource;
|
|
34666
|
+
} else if (this.fileSource instanceof ArrayBuffer) {
|
|
34667
|
+
buffer2 = Buffer2.from(this.fileSource);
|
|
34668
|
+
} else if (this.fileSource instanceof Blob || this.fileSource instanceof File) {
|
|
34669
|
+
const arrayBuffer = await this.fileSource.arrayBuffer();
|
|
34670
|
+
buffer2 = Buffer2.from(arrayBuffer);
|
|
34671
|
+
} else {
|
|
34672
|
+
return `HASH-${Date.now()}`;
|
|
34673
|
+
}
|
|
34674
|
+
const hash = index(buffer2);
|
|
34675
|
+
return `HASH-${hash.toString("hex").toUpperCase()}`;
|
|
34676
|
+
} catch (e) {
|
|
34677
|
+
console.warn("Could not generate document hash:", e);
|
|
34678
|
+
return `HASH-${Date.now()}`;
|
|
34679
|
+
}
|
|
34680
|
+
};
|
|
34180
34681
|
exportNumberingFile_fn = function() {
|
|
34181
34682
|
const numberingPath = "word/numbering.xml";
|
|
34182
34683
|
let numberingXml = this.convertedXml[numberingPath];
|
|
@@ -34204,8 +34705,8 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
34204
34705
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
34205
34706
|
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
34206
34707
|
const newDocRels = [];
|
|
34207
|
-
Object.entries(this.headers).forEach(([id, header],
|
|
34208
|
-
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${
|
|
34708
|
+
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
34709
|
+
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
34209
34710
|
const headerEditor = this.headerEditors.find((item) => item.id === id);
|
|
34210
34711
|
if (!headerEditor) return;
|
|
34211
34712
|
const { result, params } = this.exportToXmlJson({
|
|
@@ -34258,8 +34759,8 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
34258
34759
|
};
|
|
34259
34760
|
}
|
|
34260
34761
|
});
|
|
34261
|
-
Object.entries(this.footers).forEach(([id, footer],
|
|
34262
|
-
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `footer${
|
|
34762
|
+
Object.entries(this.footers).forEach(([id, footer], index2) => {
|
|
34763
|
+
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `footer${index2 + 1}.xml`;
|
|
34263
34764
|
const footerEditor = this.footerEditors.find((item) => item.id === id);
|
|
34264
34765
|
if (!footerEditor) return;
|
|
34265
34766
|
const { result, params } = this.exportToXmlJson({
|
|
@@ -34400,52 +34901,9 @@ __publicField(_SuperConverter, "propertyTypes", Object.freeze({
|
|
|
34400
34901
|
}));
|
|
34401
34902
|
__publicField(_SuperConverter, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
34402
34903
|
let SuperConverter = _SuperConverter;
|
|
34403
|
-
function storeSuperdocVersion(docx) {
|
|
34404
|
-
const customLocation = "docProps/custom.xml";
|
|
34405
|
-
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
34406
|
-
const customXml = docx[customLocation];
|
|
34407
|
-
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
34408
|
-
if (!properties.elements) properties.elements = [];
|
|
34409
|
-
const elements = properties.elements;
|
|
34410
|
-
const cleanProperties = elements.filter((prop) => typeof prop === "object" && prop !== null).filter((prop) => {
|
|
34411
|
-
const { attributes } = prop;
|
|
34412
|
-
return attributes.name !== "SuperdocVersion";
|
|
34413
|
-
});
|
|
34414
|
-
let pid = 2;
|
|
34415
|
-
try {
|
|
34416
|
-
pid = cleanProperties.length ? Math.max(...elements.map((el) => el.attributes.pid)) + 1 : 2;
|
|
34417
|
-
} catch {
|
|
34418
|
-
}
|
|
34419
|
-
cleanProperties.push(generateSuperdocVersion(pid));
|
|
34420
|
-
properties.elements = cleanProperties;
|
|
34421
|
-
return docx;
|
|
34422
|
-
}
|
|
34423
34904
|
function generateCustomXml() {
|
|
34424
34905
|
return DEFAULT_CUSTOM_XML;
|
|
34425
34906
|
}
|
|
34426
|
-
function generateSuperdocVersion(pid = 2, version = "0.22.0") {
|
|
34427
|
-
return {
|
|
34428
|
-
type: "element",
|
|
34429
|
-
name: "property",
|
|
34430
|
-
attributes: {
|
|
34431
|
-
name: "SuperdocVersion",
|
|
34432
|
-
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
34433
|
-
pid
|
|
34434
|
-
},
|
|
34435
|
-
elements: [
|
|
34436
|
-
{
|
|
34437
|
-
type: "element",
|
|
34438
|
-
name: "vt:lpwstr",
|
|
34439
|
-
elements: [
|
|
34440
|
-
{
|
|
34441
|
-
type: "text",
|
|
34442
|
-
text: version
|
|
34443
|
-
}
|
|
34444
|
-
]
|
|
34445
|
-
}
|
|
34446
|
-
]
|
|
34447
|
-
};
|
|
34448
|
-
}
|
|
34449
34907
|
export {
|
|
34450
34908
|
RemoveMarkStep as $,
|
|
34451
34909
|
AllSelection as A,
|
|
@@ -34476,7 +34934,7 @@ export {
|
|
|
34476
34934
|
objectIncludes as Z,
|
|
34477
34935
|
AddMarkStep as _,
|
|
34478
34936
|
Plugin as a,
|
|
34479
|
-
translator$
|
|
34937
|
+
translator$C as a$,
|
|
34480
34938
|
twipsToLines as a0,
|
|
34481
34939
|
pixelsToTwips as a1,
|
|
34482
34940
|
helpers as a2,
|
|
@@ -34493,27 +34951,27 @@ export {
|
|
|
34493
34951
|
handleClipboardPaste as aD,
|
|
34494
34952
|
getFileObject as aE,
|
|
34495
34953
|
runPropertyTranslators as aF,
|
|
34496
|
-
|
|
34497
|
-
|
|
34498
|
-
translator$
|
|
34499
|
-
translator$
|
|
34500
|
-
translator$
|
|
34501
|
-
translator$
|
|
34502
|
-
translator$
|
|
34503
|
-
translator$
|
|
34504
|
-
translator$
|
|
34505
|
-
translator$
|
|
34506
|
-
translator$
|
|
34507
|
-
translator$
|
|
34508
|
-
translator$
|
|
34509
|
-
translator$
|
|
34510
|
-
translator$
|
|
34511
|
-
translator$
|
|
34512
|
-
translator$
|
|
34513
|
-
translator$
|
|
34514
|
-
translator$
|
|
34515
|
-
translator$
|
|
34516
|
-
translator$
|
|
34954
|
+
commentRangeEndTranslator as aG,
|
|
34955
|
+
commentRangeStartTranslator as aH,
|
|
34956
|
+
translator$7 as aI,
|
|
34957
|
+
translator$8 as aJ,
|
|
34958
|
+
translator$J as aK,
|
|
34959
|
+
translator$K as aL,
|
|
34960
|
+
translator$13 as aM,
|
|
34961
|
+
translator$I as aN,
|
|
34962
|
+
translator$L as aO,
|
|
34963
|
+
translator$H as aP,
|
|
34964
|
+
translator$h as aQ,
|
|
34965
|
+
translator$9 as aR,
|
|
34966
|
+
translator$u as aS,
|
|
34967
|
+
translator$v as aT,
|
|
34968
|
+
translator$w as aU,
|
|
34969
|
+
translator$x as aV,
|
|
34970
|
+
translator$y as aW,
|
|
34971
|
+
translator$d as aX,
|
|
34972
|
+
translator$z as aY,
|
|
34973
|
+
translator$A as aZ,
|
|
34974
|
+
translator$B as a_,
|
|
34517
34975
|
hasSomeParentWithClass as aa,
|
|
34518
34976
|
isActive as ab,
|
|
34519
34977
|
unflattenListsInHtml as ac,
|
|
@@ -34537,56 +34995,58 @@ export {
|
|
|
34537
34995
|
generateDocxRandomId as au,
|
|
34538
34996
|
insertNewRelationship as av,
|
|
34539
34997
|
commonjsGlobal as aw,
|
|
34540
|
-
getDefaultExportFromCjs$
|
|
34998
|
+
getDefaultExportFromCjs$2 as ax,
|
|
34541
34999
|
getContentTypesFromXml as ay,
|
|
34542
35000
|
xmljs as az,
|
|
34543
35001
|
Slice as b,
|
|
34544
|
-
translator$
|
|
34545
|
-
translator$
|
|
34546
|
-
translator$
|
|
34547
|
-
translator$
|
|
34548
|
-
translator$
|
|
34549
|
-
translator$
|
|
34550
|
-
translator$
|
|
34551
|
-
translator$
|
|
34552
|
-
translator$
|
|
34553
|
-
translator$
|
|
34554
|
-
translator$
|
|
34555
|
-
translator$
|
|
34556
|
-
translator$
|
|
34557
|
-
translator$
|
|
34558
|
-
translator$
|
|
34559
|
-
translator$
|
|
34560
|
-
translator as bG,
|
|
34561
|
-
translator$
|
|
34562
|
-
translator
|
|
34563
|
-
|
|
34564
|
-
translator$
|
|
34565
|
-
|
|
34566
|
-
translator$
|
|
34567
|
-
translator$
|
|
34568
|
-
translator
|
|
34569
|
-
translator$
|
|
34570
|
-
translator$
|
|
34571
|
-
translator$
|
|
34572
|
-
translator
|
|
34573
|
-
translator$
|
|
34574
|
-
translator$
|
|
34575
|
-
translator$
|
|
34576
|
-
translator$
|
|
34577
|
-
translator$
|
|
34578
|
-
translator$
|
|
34579
|
-
translator$
|
|
34580
|
-
translator$
|
|
34581
|
-
translator$
|
|
34582
|
-
translator$
|
|
34583
|
-
translator$
|
|
34584
|
-
translator$
|
|
34585
|
-
translator$
|
|
34586
|
-
translator$
|
|
34587
|
-
translator$
|
|
34588
|
-
translator$
|
|
34589
|
-
translator$
|
|
35002
|
+
translator$M as b0,
|
|
35003
|
+
translator$b as b1,
|
|
35004
|
+
translator$D as b2,
|
|
35005
|
+
translator$N as b3,
|
|
35006
|
+
translator$e as b4,
|
|
35007
|
+
translator$E as b5,
|
|
35008
|
+
translator$f as b6,
|
|
35009
|
+
translator$a as b7,
|
|
35010
|
+
translator$17 as b8,
|
|
35011
|
+
translator$Z as b9,
|
|
35012
|
+
translator$T as bA,
|
|
35013
|
+
translator$U as bB,
|
|
35014
|
+
translator$19 as bC,
|
|
35015
|
+
translator$t as bD,
|
|
35016
|
+
translator$4 as bE,
|
|
35017
|
+
translator$3 as bF,
|
|
35018
|
+
translator$G as bG,
|
|
35019
|
+
translator$15 as bH,
|
|
35020
|
+
translator as bI,
|
|
35021
|
+
translator$1 as bJ,
|
|
35022
|
+
translator$2 as bK,
|
|
35023
|
+
_sfc_main as bL,
|
|
35024
|
+
translator$_ as ba,
|
|
35025
|
+
translator$12 as bb,
|
|
35026
|
+
translator$j as bc,
|
|
35027
|
+
translator$F as bd,
|
|
35028
|
+
translator$5 as be,
|
|
35029
|
+
translator$l as bf,
|
|
35030
|
+
translator$$ as bg,
|
|
35031
|
+
translator$X as bh,
|
|
35032
|
+
translator$10 as bi,
|
|
35033
|
+
translator$V as bj,
|
|
35034
|
+
translator$16 as bk,
|
|
35035
|
+
translator$n as bl,
|
|
35036
|
+
translator$O as bm,
|
|
35037
|
+
translator$o as bn,
|
|
35038
|
+
translator$p as bo,
|
|
35039
|
+
translator$14 as bp,
|
|
35040
|
+
translator$W as bq,
|
|
35041
|
+
translator$18 as br,
|
|
35042
|
+
translator$P as bs,
|
|
35043
|
+
translator$c as bt,
|
|
35044
|
+
translator$Q as bu,
|
|
35045
|
+
translator$R as bv,
|
|
35046
|
+
translator$r as bw,
|
|
35047
|
+
translator$6 as bx,
|
|
35048
|
+
translator$S as by,
|
|
35049
|
+
translator$11 as bz,
|
|
34590
35050
|
DOMParser$1 as c,
|
|
34591
35051
|
Mark as d,
|
|
34592
35052
|
dropPoint as e,
|