@fiduswriter/document 0.1.0-alpha.4 → 0.1.0-alpha.6
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/bibliography/common.d.ts +9 -91
- package/dist/bibliography/common.d.ts.map +1 -1
- package/dist/bibliography/common.js +3 -2
- package/dist/bibliography/common.js.map +1 -1
- package/dist/bibliography/csl_bib.d.ts +1 -1
- package/dist/bibliography/csl_bib.d.ts.map +1 -1
- package/dist/bibliography/csl_bib.js +7 -7
- package/dist/bibliography/csl_bib.js.map +1 -1
- package/dist/citations/citeproc_sys.d.ts +9 -10
- package/dist/citations/citeproc_sys.d.ts.map +1 -1
- package/dist/citations/citeproc_sys.js +6 -1
- package/dist/citations/citeproc_sys.js.map +1 -1
- package/dist/citations/format.d.ts +33 -16
- package/dist/citations/format.d.ts.map +1 -1
- package/dist/citations/format.js +29 -4
- package/dist/citations/format.js.map +1 -1
- package/dist/editor/e2ee/encryptor.d.ts +35 -35
- package/dist/editor/e2ee/encryptor.d.ts.map +1 -1
- package/dist/editor/e2ee/encryptor.js +31 -31
- package/dist/editor/e2ee/encryptor.js.map +1 -1
- package/dist/exporter/docx/citations.d.ts +27 -17
- package/dist/exporter/docx/citations.d.ts.map +1 -1
- package/dist/exporter/docx/citations.js +24 -7
- package/dist/exporter/docx/citations.js.map +1 -1
- package/dist/exporter/docx/comments.d.ts +15 -11
- package/dist/exporter/docx/comments.d.ts.map +1 -1
- package/dist/exporter/docx/comments.js +47 -14
- package/dist/exporter/docx/comments.js.map +1 -1
- package/dist/exporter/docx/footnotes.d.ts +36 -31
- package/dist/exporter/docx/footnotes.d.ts.map +1 -1
- package/dist/exporter/docx/footnotes.js +46 -12
- package/dist/exporter/docx/footnotes.js.map +1 -1
- package/dist/exporter/docx/images.d.ts +23 -12
- package/dist/exporter/docx/images.d.ts.map +1 -1
- package/dist/exporter/docx/images.js +35 -20
- package/dist/exporter/docx/images.js.map +1 -1
- package/dist/exporter/docx/index.d.ts +11 -17
- package/dist/exporter/docx/index.d.ts.map +1 -1
- package/dist/exporter/docx/index.js +15 -7
- package/dist/exporter/docx/index.js.map +1 -1
- package/dist/exporter/docx/lists.d.ts +27 -22
- package/dist/exporter/docx/lists.d.ts.map +1 -1
- package/dist/exporter/docx/lists.js +77 -30
- package/dist/exporter/docx/lists.js.map +1 -1
- package/dist/exporter/docx/math.d.ts +9 -9
- package/dist/exporter/docx/math.d.ts.map +1 -1
- package/dist/exporter/docx/math.js +22 -5
- package/dist/exporter/docx/math.js.map +1 -1
- package/dist/exporter/docx/metadata.d.ts +12 -9
- package/dist/exporter/docx/metadata.d.ts.map +1 -1
- package/dist/exporter/docx/metadata.js +59 -26
- package/dist/exporter/docx/metadata.js.map +1 -1
- package/dist/exporter/docx/rels.d.ts +14 -12
- package/dist/exporter/docx/rels.d.ts.map +1 -1
- package/dist/exporter/docx/rels.js +37 -22
- package/dist/exporter/docx/rels.js.map +1 -1
- package/dist/exporter/docx/render.d.ts +17 -15
- package/dist/exporter/docx/render.d.ts.map +1 -1
- package/dist/exporter/docx/render.js +37 -31
- package/dist/exporter/docx/render.js.map +1 -1
- package/dist/exporter/docx/richtext.d.ts +8 -8
- package/dist/exporter/docx/richtext.d.ts.map +1 -1
- package/dist/exporter/docx/richtext.js +61 -43
- package/dist/exporter/docx/richtext.js.map +1 -1
- package/dist/exporter/docx/tables.d.ts +11 -9
- package/dist/exporter/docx/tables.d.ts.map +1 -1
- package/dist/exporter/docx/tables.js +16 -10
- package/dist/exporter/docx/tables.js.map +1 -1
- package/dist/exporter/docx/tools.d.ts +3 -2
- package/dist/exporter/docx/tools.d.ts.map +1 -1
- package/dist/exporter/docx/tools.js +3 -3
- package/dist/exporter/docx/tools.js.map +1 -1
- package/dist/exporter/epub/index.d.ts +11 -3
- package/dist/exporter/epub/index.d.ts.map +1 -1
- package/dist/exporter/epub/index.js +10 -3
- package/dist/exporter/epub/index.js.map +1 -1
- package/dist/exporter/epub/templates.d.ts +62 -31
- package/dist/exporter/epub/templates.d.ts.map +1 -1
- package/dist/exporter/epub/templates.js +1 -1
- package/dist/exporter/epub/templates.js.map +1 -1
- package/dist/exporter/epub/tools.d.ts +12 -4
- package/dist/exporter/epub/tools.d.ts.map +1 -1
- package/dist/exporter/epub/tools.js +14 -13
- package/dist/exporter/epub/tools.js.map +1 -1
- package/dist/exporter/html/citations.d.ts +17 -15
- package/dist/exporter/html/citations.d.ts.map +1 -1
- package/dist/exporter/html/citations.js +37 -18
- package/dist/exporter/html/citations.js.map +1 -1
- package/dist/exporter/html/convert.d.ts +20 -70
- package/dist/exporter/html/convert.d.ts.map +1 -1
- package/dist/exporter/html/convert.js +74 -42
- package/dist/exporter/html/convert.js.map +1 -1
- package/dist/exporter/html/index.d.ts +55 -52
- package/dist/exporter/html/index.d.ts.map +1 -1
- package/dist/exporter/html/index.js +23 -3
- package/dist/exporter/html/index.js.map +1 -1
- package/dist/exporter/html/templates.d.ts +23 -9
- package/dist/exporter/html/templates.d.ts.map +1 -1
- package/dist/exporter/html/templates.js +1 -1
- package/dist/exporter/html/templates.js.map +1 -1
- package/dist/exporter/html/tools.d.ts +1 -1
- package/dist/exporter/html/tools.d.ts.map +1 -1
- package/dist/exporter/html/tools.js +2 -2
- package/dist/exporter/html/tools.js.map +1 -1
- package/dist/exporter/jats/bibliography.d.ts +2 -1
- package/dist/exporter/jats/bibliography.d.ts.map +1 -1
- package/dist/exporter/jats/bibliography.js +57 -52
- package/dist/exporter/jats/bibliography.js.map +1 -1
- package/dist/exporter/jats/citations.d.ts +13 -11
- package/dist/exporter/jats/citations.d.ts.map +1 -1
- package/dist/exporter/jats/citations.js +28 -6
- package/dist/exporter/jats/citations.js.map +1 -1
- package/dist/exporter/jats/convert.d.ts +24 -28
- package/dist/exporter/jats/convert.d.ts.map +1 -1
- package/dist/exporter/jats/convert.js +53 -36
- package/dist/exporter/jats/convert.js.map +1 -1
- package/dist/exporter/jats/index.d.ts +21 -15
- package/dist/exporter/jats/index.d.ts.map +1 -1
- package/dist/exporter/jats/index.js +21 -5
- package/dist/exporter/jats/index.js.map +1 -1
- package/dist/exporter/jats/templates.d.ts +17 -15
- package/dist/exporter/jats/templates.d.ts.map +1 -1
- package/dist/exporter/jats/templates.js.map +1 -1
- package/dist/exporter/jats/text.d.ts +3 -2
- package/dist/exporter/jats/text.d.ts.map +1 -1
- package/dist/exporter/jats/text.js +4 -4
- package/dist/exporter/jats/text.js.map +1 -1
- package/dist/exporter/latex/convert.d.ts +12 -15
- package/dist/exporter/latex/convert.d.ts.map +1 -1
- package/dist/exporter/latex/convert.js +70 -54
- package/dist/exporter/latex/convert.js.map +1 -1
- package/dist/exporter/latex/escape_latex.d.ts +1 -1
- package/dist/exporter/latex/escape_latex.d.ts.map +1 -1
- package/dist/exporter/latex/escape_latex.js +1 -1
- package/dist/exporter/latex/escape_latex.js.map +1 -1
- package/dist/exporter/latex/index.d.ts +20 -19
- package/dist/exporter/latex/index.d.ts.map +1 -1
- package/dist/exporter/latex/index.js +15 -5
- package/dist/exporter/latex/index.js.map +1 -1
- package/dist/exporter/latex/readme.d.ts +1 -1
- package/dist/exporter/latex/readme.d.ts.map +1 -1
- package/dist/exporter/latex/readme.js +2 -2
- package/dist/exporter/latex/readme.js.map +1 -1
- package/dist/exporter/native/copy.d.ts +30 -0
- package/dist/exporter/native/copy.d.ts.map +1 -0
- package/dist/exporter/native/copy.js +151 -0
- package/dist/exporter/native/copy.js.map +1 -0
- package/dist/exporter/native/file.d.ts +12 -0
- package/dist/exporter/native/file.d.ts.map +1 -0
- package/dist/exporter/native/file.js +38 -0
- package/dist/exporter/native/file.js.map +1 -0
- package/dist/exporter/native/index.d.ts +5 -0
- package/dist/exporter/native/index.d.ts.map +1 -0
- package/dist/exporter/native/index.js +5 -0
- package/dist/exporter/native/index.js.map +1 -0
- package/dist/exporter/native/revision.d.ts +18 -0
- package/dist/exporter/native/revision.d.ts.map +1 -0
- package/dist/exporter/native/revision.js +39 -0
- package/dist/exporter/native/revision.js.map +1 -0
- package/dist/exporter/native/shrink.d.ts +29 -14
- package/dist/exporter/native/shrink.d.ts.map +1 -1
- package/dist/exporter/native/shrink.js +27 -18
- package/dist/exporter/native/shrink.js.map +1 -1
- package/dist/exporter/native/zip.d.ts +25 -0
- package/dist/exporter/native/zip.d.ts.map +1 -0
- package/dist/exporter/native/zip.js +56 -0
- package/dist/exporter/native/zip.js.map +1 -0
- package/dist/exporter/odt/citations.d.ts +18 -15
- package/dist/exporter/odt/citations.d.ts.map +1 -1
- package/dist/exporter/odt/citations.js +21 -4
- package/dist/exporter/odt/citations.js.map +1 -1
- package/dist/exporter/odt/footnotes.d.ts +25 -19
- package/dist/exporter/odt/footnotes.d.ts.map +1 -1
- package/dist/exporter/odt/footnotes.js +23 -6
- package/dist/exporter/odt/footnotes.js.map +1 -1
- package/dist/exporter/odt/images.d.ts +23 -11
- package/dist/exporter/odt/images.d.ts.map +1 -1
- package/dist/exporter/odt/images.js +34 -26
- package/dist/exporter/odt/images.js.map +1 -1
- package/dist/exporter/odt/index.d.ts +12 -18
- package/dist/exporter/odt/index.d.ts.map +1 -1
- package/dist/exporter/odt/index.js +16 -7
- package/dist/exporter/odt/index.js.map +1 -1
- package/dist/exporter/odt/math.d.ts +10 -8
- package/dist/exporter/odt/math.d.ts.map +1 -1
- package/dist/exporter/odt/math.js +27 -4
- package/dist/exporter/odt/math.js.map +1 -1
- package/dist/exporter/odt/metadata.d.ts +13 -9
- package/dist/exporter/odt/metadata.d.ts.map +1 -1
- package/dist/exporter/odt/metadata.js +36 -15
- package/dist/exporter/odt/metadata.js.map +1 -1
- package/dist/exporter/odt/render.d.ts +17 -15
- package/dist/exporter/odt/render.d.ts.map +1 -1
- package/dist/exporter/odt/render.js +25 -18
- package/dist/exporter/odt/render.js.map +1 -1
- package/dist/exporter/odt/richtext.d.ts +9 -9
- package/dist/exporter/odt/richtext.d.ts.map +1 -1
- package/dist/exporter/odt/richtext.js +55 -40
- package/dist/exporter/odt/richtext.js.map +1 -1
- package/dist/exporter/odt/styles.d.ts +29 -21
- package/dist/exporter/odt/styles.d.ts.map +1 -1
- package/dist/exporter/odt/styles.js +44 -22
- package/dist/exporter/odt/styles.js.map +1 -1
- package/dist/exporter/odt/track.d.ts +14 -7
- package/dist/exporter/odt/track.d.ts.map +1 -1
- package/dist/exporter/odt/track.js +7 -0
- package/dist/exporter/odt/track.js.map +1 -1
- package/dist/exporter/pandoc/citations.d.ts +20 -14
- package/dist/exporter/pandoc/citations.d.ts.map +1 -1
- package/dist/exporter/pandoc/citations.js +18 -4
- package/dist/exporter/pandoc/citations.js.map +1 -1
- package/dist/exporter/pandoc/convert.d.ts +10 -29
- package/dist/exporter/pandoc/convert.d.ts.map +1 -1
- package/dist/exporter/pandoc/convert.js +45 -40
- package/dist/exporter/pandoc/convert.js.map +1 -1
- package/dist/exporter/pandoc/index.d.ts +20 -33
- package/dist/exporter/pandoc/index.d.ts.map +1 -1
- package/dist/exporter/pandoc/index.js +20 -8
- package/dist/exporter/pandoc/index.js.map +1 -1
- package/dist/exporter/pandoc/readme.d.ts +1 -1
- package/dist/exporter/pandoc/readme.d.ts.map +1 -1
- package/dist/exporter/pandoc/readme.js +0 -1
- package/dist/exporter/pandoc/readme.js.map +1 -1
- package/dist/exporter/pandoc/tools.d.ts +21 -5
- package/dist/exporter/pandoc/tools.d.ts.map +1 -1
- package/dist/exporter/pandoc/tools.js +2 -2
- package/dist/exporter/pandoc/tools.js.map +1 -1
- package/dist/exporter/print/index.d.ts +18 -7
- package/dist/exporter/print/index.d.ts.map +1 -1
- package/dist/exporter/print/index.js +12 -10
- package/dist/exporter/print/index.js.map +1 -1
- package/dist/exporter/tools/doc_content.d.ts +5 -6
- package/dist/exporter/tools/doc_content.d.ts.map +1 -1
- package/dist/exporter/tools/doc_content.js +17 -16
- package/dist/exporter/tools/doc_content.js.map +1 -1
- package/dist/exporter/tools/svg.d.ts +7 -1
- package/dist/exporter/tools/svg.d.ts.map +1 -1
- package/dist/exporter/tools/svg.js.map +1 -1
- package/dist/exporter/tools/xml.d.ts +39 -38
- package/dist/exporter/tools/xml.d.ts.map +1 -1
- package/dist/exporter/tools/xml.js +82 -55
- package/dist/exporter/tools/xml.js.map +1 -1
- package/dist/exporter/tools/xml_zip.d.ts +15 -14
- package/dist/exporter/tools/xml_zip.d.ts.map +1 -1
- package/dist/exporter/tools/xml_zip.js +8 -2
- package/dist/exporter/tools/xml_zip.js.map +1 -1
- package/dist/exporter/tools/zip.d.ts +28 -14
- package/dist/exporter/tools/zip.d.ts.map +1 -1
- package/dist/exporter/tools/zip.js +13 -6
- package/dist/exporter/tools/zip.js.map +1 -1
- package/dist/exporter/tools/zotero_csl.d.ts +19 -6
- package/dist/exporter/tools/zotero_csl.d.ts.map +1 -1
- package/dist/exporter/tools/zotero_csl.js +9 -9
- package/dist/exporter/tools/zotero_csl.js.map +1 -1
- package/dist/importer/citations.d.ts +25 -22
- package/dist/importer/citations.d.ts.map +1 -1
- package/dist/importer/citations.js +1 -49
- package/dist/importer/citations.js.map +1 -1
- package/dist/importer/docx/citations.d.ts +8 -30
- package/dist/importer/docx/citations.d.ts.map +1 -1
- package/dist/importer/docx/citations.js +1 -26
- package/dist/importer/docx/citations.js.map +1 -1
- package/dist/importer/docx/convert.d.ts +38 -116
- package/dist/importer/docx/convert.d.ts.map +1 -1
- package/dist/importer/docx/convert.js +99 -82
- package/dist/importer/docx/convert.js.map +1 -1
- package/dist/importer/docx/helpers.d.ts +1 -1
- package/dist/importer/docx/helpers.d.ts.map +1 -1
- package/dist/importer/docx/helpers.js +1 -1
- package/dist/importer/docx/helpers.js.map +1 -1
- package/dist/importer/docx/index.d.ts +27 -0
- package/dist/importer/docx/index.d.ts.map +1 -0
- package/dist/importer/docx/index.js +77 -0
- package/dist/importer/docx/index.js.map +1 -0
- package/dist/importer/docx/omml2mathml.d.ts +2 -3
- package/dist/importer/docx/omml2mathml.d.ts.map +1 -1
- package/dist/importer/docx/omml2mathml.js +23 -116
- package/dist/importer/docx/omml2mathml.js.map +1 -1
- package/dist/importer/docx/parse.d.ts +22 -131
- package/dist/importer/docx/parse.d.ts.map +1 -1
- package/dist/importer/docx/parse.js +73 -55
- package/dist/importer/docx/parse.js.map +1 -1
- package/dist/importer/native/extract_template.d.ts +6 -0
- package/dist/importer/native/extract_template.d.ts.map +1 -0
- package/dist/importer/native/extract_template.js +80 -0
- package/dist/importer/native/extract_template.js.map +1 -0
- package/dist/importer/native/file.d.ts +37 -0
- package/dist/importer/native/file.d.ts.map +1 -0
- package/dist/importer/native/file.js +162 -0
- package/dist/importer/native/file.js.map +1 -0
- package/dist/importer/native/get_images.d.ts +18 -8
- package/dist/importer/native/get_images.d.ts.map +1 -1
- package/dist/importer/native/get_images.js +39 -45
- package/dist/importer/native/get_images.js.map +1 -1
- package/dist/importer/native/importer.d.ts +41 -0
- package/dist/importer/native/importer.d.ts.map +1 -0
- package/dist/importer/native/importer.js +170 -0
- package/dist/importer/native/importer.js.map +1 -0
- package/dist/importer/native/index.d.ts +7 -0
- package/dist/importer/native/index.d.ts.map +1 -0
- package/dist/importer/native/index.js +7 -0
- package/dist/importer/native/index.js.map +1 -0
- package/dist/importer/native/update.d.ts +5 -4
- package/dist/importer/native/update.d.ts.map +1 -1
- package/dist/importer/native/update.js +4 -3
- package/dist/importer/native/update.js.map +1 -1
- package/dist/importer/native/update_template.d.ts +12 -0
- package/dist/importer/native/update_template.d.ts.map +1 -0
- package/dist/importer/native/update_template.js +19 -0
- package/dist/importer/native/update_template.js.map +1 -0
- package/dist/importer/odt/citations.d.ts +7 -27
- package/dist/importer/odt/citations.d.ts.map +1 -1
- package/dist/importer/odt/citations.js +0 -22
- package/dist/importer/odt/citations.js.map +1 -1
- package/dist/importer/odt/convert.d.ts +53 -237
- package/dist/importer/odt/convert.d.ts.map +1 -1
- package/dist/importer/odt/convert.js +162 -138
- package/dist/importer/odt/convert.js.map +1 -1
- package/dist/importer/odt/index.d.ts +30 -0
- package/dist/importer/odt/index.d.ts.map +1 -0
- package/dist/importer/odt/index.js +124 -0
- package/dist/importer/odt/index.js.map +1 -0
- package/dist/importer/pandoc/convert.d.ts +25 -77
- package/dist/importer/pandoc/convert.d.ts.map +1 -1
- package/dist/importer/pandoc/convert.js +65 -52
- package/dist/importer/pandoc/convert.js.map +1 -1
- package/dist/importer/pandoc/helpers.d.ts +4 -3
- package/dist/importer/pandoc/helpers.d.ts.map +1 -1
- package/dist/importer/pandoc/helpers.js +24 -26
- package/dist/importer/pandoc/helpers.js.map +1 -1
- package/dist/importer/pandoc/index.d.ts +31 -0
- package/dist/importer/pandoc/index.d.ts.map +1 -0
- package/dist/importer/pandoc/index.js +114 -0
- package/dist/importer/pandoc/index.js.map +1 -0
- package/dist/importer/registry.d.ts +21 -0
- package/dist/importer/registry.d.ts.map +1 -0
- package/dist/importer/registry.js +41 -0
- package/dist/importer/registry.js.map +1 -0
- package/dist/importer/zip_analyzer.d.ts +27 -21
- package/dist/importer/zip_analyzer.d.ts.map +1 -1
- package/dist/importer/zip_analyzer.js +10 -5
- package/dist/importer/zip_analyzer.js.map +1 -1
- package/dist/mathlive/opf_includes.d.ts +1 -1
- package/dist/mathlive/opf_includes.d.ts.map +1 -1
- package/dist/mathlive/opf_includes.js.map +1 -1
- package/dist/schema/common/annotate.d.ts +37 -49
- package/dist/schema/common/annotate.d.ts.map +1 -1
- package/dist/schema/common/annotate.js +2 -2
- package/dist/schema/common/annotate.js.map +1 -1
- package/dist/schema/common/base.d.ts +63 -81
- package/dist/schema/common/base.d.ts.map +1 -1
- package/dist/schema/common/base.js.map +1 -1
- package/dist/schema/common/citation.d.ts +23 -22
- package/dist/schema/common/citation.d.ts.map +1 -1
- package/dist/schema/common/citation.js +4 -5
- package/dist/schema/common/citation.js.map +1 -1
- package/dist/schema/common/equation.d.ts +13 -14
- package/dist/schema/common/equation.d.ts.map +1 -1
- package/dist/schema/common/equation.js +1 -1
- package/dist/schema/common/equation.js.map +1 -1
- package/dist/schema/common/figure.d.ts +72 -93
- package/dist/schema/common/figure.d.ts.map +1 -1
- package/dist/schema/common/figure.js +11 -9
- package/dist/schema/common/figure.js.map +1 -1
- package/dist/schema/common/heading.d.ts +8 -32
- package/dist/schema/common/heading.d.ts.map +1 -1
- package/dist/schema/common/heading.js +2 -2
- package/dist/schema/common/heading.js.map +1 -1
- package/dist/schema/common/index.d.ts +2 -2
- package/dist/schema/common/index.d.ts.map +1 -1
- package/dist/schema/common/index.js.map +1 -1
- package/dist/schema/common/list.d.ts +52 -72
- package/dist/schema/common/list.d.ts.map +1 -1
- package/dist/schema/common/list.js +3 -3
- package/dist/schema/common/list.js.map +1 -1
- package/dist/schema/common/reference.d.ts +51 -59
- package/dist/schema/common/reference.d.ts.map +1 -1
- package/dist/schema/common/reference.js +5 -5
- package/dist/schema/common/reference.js.map +1 -1
- package/dist/schema/common/table.d.ts +59 -75
- package/dist/schema/common/table.d.ts.map +1 -1
- package/dist/schema/common/table.js +3 -2
- package/dist/schema/common/table.js.map +1 -1
- package/dist/schema/common/track.d.ts +83 -97
- package/dist/schema/common/track.d.ts.map +1 -1
- package/dist/schema/common/track.js +18 -17
- package/dist/schema/common/track.js.map +1 -1
- package/dist/schema/convert.d.ts +2 -2
- package/dist/schema/convert.d.ts.map +1 -1
- package/dist/schema/convert.js +2 -2
- package/dist/schema/convert.js.map +1 -1
- package/dist/schema/document/content.d.ts +95 -122
- package/dist/schema/document/content.d.ts.map +1 -1
- package/dist/schema/document/content.js +9 -9
- package/dist/schema/document/content.js.map +1 -1
- package/dist/schema/document/index.d.ts +173 -257
- package/dist/schema/document/index.d.ts.map +1 -1
- package/dist/schema/document/index.js.map +1 -1
- package/dist/schema/document/structure.d.ts +149 -258
- package/dist/schema/document/structure.d.ts.map +1 -1
- package/dist/schema/document/structure.js +2 -2
- package/dist/schema/document/structure.js.map +1 -1
- package/dist/schema/export.d.ts +4 -877
- package/dist/schema/export.d.ts.map +1 -1
- package/dist/schema/export.js +1 -0
- package/dist/schema/export.js.map +1 -1
- package/dist/schema/footnotes.d.ts +110 -155
- package/dist/schema/footnotes.d.ts.map +1 -1
- package/dist/schema/footnotes.js +4 -2
- package/dist/schema/footnotes.js.map +1 -1
- package/dist/schema/footnotes_convert.d.ts +3 -3
- package/dist/schema/footnotes_convert.d.ts.map +1 -1
- package/dist/schema/footnotes_convert.js +10 -6
- package/dist/schema/footnotes_convert.js.map +1 -1
- package/dist/schema/i18n.d.ts +3 -534
- package/dist/schema/i18n.d.ts.map +1 -1
- package/dist/schema/i18n.js +1 -0
- package/dist/schema/i18n.js.map +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/mini_json.d.ts +3 -4
- package/dist/schema/mini_json.d.ts.map +1 -1
- package/dist/schema/mini_json.js +2 -0
- package/dist/schema/mini_json.js.map +1 -1
- package/dist/schema/text.d.ts +2 -1
- package/dist/schema/text.d.ts.map +1 -1
- package/dist/schema/text.js +1 -1
- package/dist/schema/text.js.map +1 -1
- package/dist/types.d.ts +167 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +24 -1
- package/src/bibliography/{common.js → common.ts} +15 -12
- package/src/bibliography/{csl_bib.js → csl_bib.ts} +16 -15
- package/src/citations/{citeproc_sys.js → citeproc_sys.ts} +26 -6
- package/src/citations/{format.js → format.ts} +80 -24
- package/src/editor/e2ee/{encryptor.js → encryptor.ts} +76 -44
- package/src/exporter/docx/{citations.js → citations.ts} +51 -23
- package/src/exporter/docx/{comments.js → comments.ts} +69 -26
- package/src/exporter/docx/{footnotes.js → footnotes.ts} +81 -42
- package/src/exporter/docx/images.ts +128 -0
- package/src/exporter/docx/{index.js → index.ts} +48 -25
- package/src/exporter/docx/{lists.js → lists.ts} +89 -46
- package/src/exporter/docx/{math.js → math.ts} +29 -9
- package/src/exporter/docx/{metadata.js → metadata.ts} +78 -42
- package/src/exporter/docx/{rels.js → rels.ts} +71 -50
- package/src/exporter/docx/{render.js → render.ts} +124 -87
- package/src/exporter/docx/{richtext.js → richtext.ts} +107 -84
- package/src/exporter/docx/{tables.js → tables.ts} +33 -23
- package/src/exporter/docx/{tools.js → tools.ts} +4 -3
- package/src/exporter/epub/{index.js → index.ts} +44 -15
- package/src/exporter/epub/{templates.js → templates.ts} +71 -7
- package/src/exporter/epub/{tools.js → tools.ts} +31 -25
- package/src/exporter/html/{citations.js → citations.ts} +79 -31
- package/src/exporter/html/{convert.js → convert.ts} +118 -71
- package/src/exporter/html/{index.js → index.ts} +63 -29
- package/src/exporter/html/{templates.js → templates.ts} +22 -2
- package/src/exporter/html/{tools.js → tools.ts} +9 -6
- package/src/exporter/jats/bibliography.ts +199 -0
- package/src/exporter/jats/{citations.js → citations.ts} +56 -20
- package/src/exporter/jats/{convert.js → convert.ts} +72 -53
- package/src/exporter/jats/index.ts +132 -0
- package/src/exporter/jats/{templates.js → templates.ts} +19 -3
- package/src/exporter/jats/{text.js → text.ts} +8 -6
- package/src/exporter/latex/{convert.js → convert.ts} +160 -125
- package/src/exporter/latex/{escape_latex.js → escape_latex.ts} +1 -1
- package/src/exporter/latex/{index.js → index.ts} +27 -12
- package/src/exporter/latex/{readme.js → readme.ts} +2 -2
- package/src/exporter/native/copy.ts +231 -0
- package/src/exporter/native/file.ts +65 -0
- package/src/exporter/native/index.ts +4 -0
- package/src/exporter/native/revision.ts +76 -0
- package/src/exporter/native/{shrink.js → shrink.ts} +64 -29
- package/src/exporter/native/zip.ts +85 -0
- package/src/exporter/odt/{citations.js → citations.ts} +35 -15
- package/src/exporter/odt/{footnotes.js → footnotes.ts} +53 -30
- package/src/exporter/odt/images.ts +135 -0
- package/src/exporter/odt/{index.js → index.ts} +49 -27
- package/src/exporter/odt/{math.js → math.ts} +38 -9
- package/src/exporter/odt/{metadata.js → metadata.ts} +54 -29
- package/src/exporter/odt/{render.js → render.ts} +89 -60
- package/src/exporter/odt/{richtext.js → richtext.ts} +102 -72
- package/src/exporter/odt/{styles.js → styles.ts} +98 -66
- package/src/exporter/odt/{track.js → track.ts} +22 -6
- package/src/exporter/pandoc/{citations.js → citations.ts} +31 -15
- package/src/exporter/pandoc/{convert.js → convert.ts} +98 -79
- package/src/exporter/pandoc/{index.js → index.ts} +36 -13
- package/src/exporter/pandoc/{readme.js → readme.ts} +0 -1
- package/src/exporter/pandoc/{tools.js → tools.ts} +28 -5
- package/src/exporter/print/{index.js → index.ts} +38 -19
- package/src/exporter/tools/{doc_content.js → doc_content.ts} +34 -24
- package/src/exporter/tools/{svg.js → svg.ts} +9 -3
- package/src/exporter/tools/{xml.js → xml.ts} +187 -138
- package/src/exporter/tools/{xml_zip.js → xml_zip.ts} +19 -11
- package/src/exporter/tools/{zip.js → zip.ts} +35 -11
- package/src/exporter/tools/{zotero_csl.js → zotero_csl.ts} +35 -18
- package/src/global.d.ts +2 -0
- package/src/importer/citations.ts +116 -0
- package/src/importer/docx/{citations.js → citations.ts} +22 -37
- package/src/importer/docx/{convert.js → convert.ts} +176 -141
- package/src/importer/docx/{helpers.js → helpers.ts} +1 -1
- package/src/importer/docx/index.ts +124 -0
- package/src/importer/docx/{omml2mathml.js → omml2mathml.ts} +154 -176
- package/src/importer/docx/{parse.js → parse.ts} +103 -81
- package/src/importer/native/extract_template.ts +83 -0
- package/src/importer/native/file.ts +282 -0
- package/src/importer/native/get_images.ts +82 -0
- package/src/importer/native/importer.ts +244 -0
- package/src/importer/native/index.ts +6 -0
- package/src/importer/native/{update.js → update.ts} +13 -5
- package/src/importer/native/update_template.ts +32 -0
- package/src/importer/odt/{citations.js → citations.ts} +17 -29
- package/src/importer/odt/{convert.js → convert.ts} +261 -237
- package/src/importer/odt/index.ts +202 -0
- package/src/importer/pandoc/{convert.js → convert.ts} +116 -94
- package/src/importer/pandoc/{helpers.js → helpers.ts} +24 -12
- package/src/importer/pandoc/index.ts +171 -0
- package/src/importer/registry.ts +69 -0
- package/src/importer/{zip_analyzer.js → zip_analyzer.ts} +44 -18
- package/src/mathlive/{opf_includes.js → opf_includes.ts} +1 -1
- package/src/modules.d.ts +40 -0
- package/src/schema/common/{annotate.js → annotate.ts} +10 -8
- package/src/schema/common/{base.js → base.ts} +12 -10
- package/src/schema/common/{citation.js → citation.ts} +17 -8
- package/src/schema/common/{equation.js → equation.ts} +6 -4
- package/src/schema/common/{figure.js → figure.ts} +43 -23
- package/src/schema/common/{heading.js → heading.ts} +7 -5
- package/src/schema/common/{list.js → list.ts} +15 -13
- package/src/schema/common/{reference.js → reference.ts} +14 -12
- package/src/schema/common/{table.js → table.ts} +16 -14
- package/src/schema/common/{track.js → track.ts} +42 -31
- package/src/schema/{convert.js → convert.ts} +6 -2
- package/src/schema/document/{content.js → content.ts} +22 -20
- package/src/schema/document/{structure.js → structure.ts} +15 -9
- package/src/schema/{export.js → export.ts} +4 -2
- package/src/schema/{footnotes.js → footnotes.ts} +11 -8
- package/src/schema/{footnotes_convert.js → footnotes_convert.ts} +11 -8
- package/src/schema/{i18n.js → i18n.ts} +7 -1
- package/src/schema/{mini_json.js → mini_json.ts} +11 -12
- package/src/schema/{text.js → text.ts} +6 -2
- package/src/types.ts +185 -7
- package/src/exporter/docx/images.js +0 -101
- package/src/exporter/jats/bibliography.js +0 -183
- package/src/exporter/jats/index.js +0 -92
- package/src/exporter/odt/images.js +0 -115
- package/src/importer/citations.js +0 -129
- package/src/importer/native/get_images.js +0 -76
- /package/src/schema/common/{index.js → index.ts} +0 -0
- /package/src/schema/document/{index.js → index.ts} +0 -0
- /package/src/schema/{index.js → index.ts} +0 -0
|
@@ -1,61 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
xhtml: any;
|
|
9
|
-
epub: any;
|
|
10
|
-
}) => string);
|
|
11
|
-
doc: any;
|
|
12
|
-
bibDB: any;
|
|
13
|
-
imageDB: any;
|
|
14
|
-
csl: any;
|
|
1
|
+
import type { BibDB, CSL, ExportDoc, ImageDB } from "../../types.js";
|
|
2
|
+
import { htmlExportTemplate } from "./templates.js";
|
|
3
|
+
export declare class HTMLExporter {
|
|
4
|
+
doc: ExportDoc;
|
|
5
|
+
bibDB: BibDB;
|
|
6
|
+
imageDB: ImageDB;
|
|
7
|
+
csl: CSL;
|
|
15
8
|
updated: any;
|
|
16
|
-
documentStyles:
|
|
17
|
-
|
|
9
|
+
documentStyles: Array<{
|
|
10
|
+
slug: string;
|
|
11
|
+
contents: string;
|
|
12
|
+
documentstylefile_set: Array<[string, string]>;
|
|
13
|
+
}>;
|
|
14
|
+
converterOptions: Record<string, unknown>;
|
|
18
15
|
docTitle: string;
|
|
19
|
-
docContent:
|
|
20
|
-
zipFileName:
|
|
21
|
-
textFiles:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
16
|
+
docContent: any;
|
|
17
|
+
zipFileName: string | false;
|
|
18
|
+
textFiles: Array<{
|
|
19
|
+
filename: string;
|
|
20
|
+
contents?: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
}>;
|
|
23
|
+
httpFiles: Array<{
|
|
24
|
+
filename: string;
|
|
25
|
+
url: string;
|
|
26
|
+
}>;
|
|
27
|
+
includeZips: Array<{
|
|
28
|
+
directory: string;
|
|
29
|
+
url: string;
|
|
30
|
+
}>;
|
|
31
|
+
metaData: any;
|
|
32
|
+
htmlExportTemplate: typeof htmlExportTemplate;
|
|
34
33
|
contentFileName: string;
|
|
35
34
|
fileEnding: string;
|
|
36
35
|
mimeType: string;
|
|
37
|
-
styleSheets: {
|
|
38
|
-
url
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
styleSheets: Array<{
|
|
37
|
+
url?: string;
|
|
38
|
+
filename?: string;
|
|
39
|
+
contents?: string;
|
|
40
|
+
}>;
|
|
41
|
+
constructor(doc: ExportDoc, bibDB: BibDB, imageDB: ImageDB, csl: CSL, updated: any, documentStyles: Array<{
|
|
42
|
+
slug: string;
|
|
43
|
+
contents: string;
|
|
44
|
+
documentstylefile_set: Array<[string, string]>;
|
|
45
|
+
}>, converterOptions?: Record<string, unknown>, template?: typeof htmlExportTemplate);
|
|
46
|
+
init(): Promise<void>;
|
|
41
47
|
process(): Promise<void>;
|
|
42
|
-
converter:
|
|
43
|
-
getProcessedFiles():
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
converter: HTMLExporterConvert | undefined;
|
|
49
|
-
};
|
|
50
|
-
addDoc(html: any): void;
|
|
51
|
-
addImages(imageIds: any): void;
|
|
52
|
-
getDocStyle(doc: any): false | {
|
|
53
|
-
contents: any;
|
|
48
|
+
converter: any;
|
|
49
|
+
getProcessedFiles(): any;
|
|
50
|
+
addDoc(html: string): void;
|
|
51
|
+
addImages(imageIds: string[]): void;
|
|
52
|
+
getDocStyle(doc: ExportDoc): {
|
|
53
|
+
contents: string;
|
|
54
54
|
filename: string;
|
|
55
|
-
};
|
|
56
|
-
loadStyle(sheet:
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
} | false;
|
|
56
|
+
loadStyle(sheet: {
|
|
57
|
+
url?: string;
|
|
58
|
+
filename?: string;
|
|
59
|
+
contents?: string;
|
|
60
|
+
}): Promise<any>;
|
|
61
|
+
createZip(): Promise<void>;
|
|
62
|
+
download(blob: Blob): void;
|
|
59
63
|
}
|
|
60
|
-
import { HTMLExporterConvert } from "./convert.js";
|
|
61
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exporter/html/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exporter/html/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAa,OAAO,EAAC,MAAM,gBAAgB,CAAA;AAK7E,OAAO,EAAC,kBAAkB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,CAAA;gBAGpE,GAAG,EAAE,SAAS,EACd,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,KAAK,CAAC;QAClB,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;QAChB,qBAAqB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;KACjD,CAAC,EACF,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EAC9C,QAAQ,GAAE,OAAO,kBAAuC;IAgCtD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAyC9B,SAAS,EAAE,GAAG,CAAA;IAEd,iBAAiB,IAAI,GAAG;IAYxB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAO1B,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI;IAUnC,WAAW,CAAC,GAAG,EAAE,SAAS,GAAG;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,GAAG,KAAK;IA2BnE,SAAS,CACX,KAAK,EAAE;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAC,GAC5D,OAAO,CAAC,GAAG,CAAC;IAmBT,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAYhC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;CAG7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import download from "downloadjs";
|
|
2
2
|
import pretty from "pretty";
|
|
3
|
-
import { shortFileTitle } from "fwtoolkit";
|
|
3
|
+
import { shortFileTitle, staticUrl } from "fwtoolkit";
|
|
4
4
|
import { removeHidden } from "../tools/doc_content.js";
|
|
5
5
|
import { createSlug } from "../tools/file.js";
|
|
6
6
|
import { ZipFileCreator } from "../tools/zip.js";
|
|
@@ -10,6 +10,25 @@ import { htmlExportTemplate } from "./templates.js";
|
|
|
10
10
|
Exporter to HTML
|
|
11
11
|
*/
|
|
12
12
|
export class HTMLExporter {
|
|
13
|
+
doc;
|
|
14
|
+
bibDB;
|
|
15
|
+
imageDB;
|
|
16
|
+
csl;
|
|
17
|
+
updated;
|
|
18
|
+
documentStyles;
|
|
19
|
+
converterOptions;
|
|
20
|
+
docTitle;
|
|
21
|
+
docContent;
|
|
22
|
+
zipFileName;
|
|
23
|
+
textFiles;
|
|
24
|
+
httpFiles;
|
|
25
|
+
includeZips;
|
|
26
|
+
metaData;
|
|
27
|
+
htmlExportTemplate;
|
|
28
|
+
contentFileName;
|
|
29
|
+
fileEnding;
|
|
30
|
+
mimeType;
|
|
31
|
+
styleSheets;
|
|
13
32
|
constructor(doc, bibDB, imageDB, csl, updated, documentStyles, converterOptions = {}, template = htmlExportTemplate) {
|
|
14
33
|
this.doc = doc;
|
|
15
34
|
this.bibDB = bibDB;
|
|
@@ -18,7 +37,7 @@ export class HTMLExporter {
|
|
|
18
37
|
this.updated = updated;
|
|
19
38
|
this.documentStyles = documentStyles;
|
|
20
39
|
this.converterOptions = converterOptions;
|
|
21
|
-
this.docTitle = shortFileTitle(this.doc.title, this.doc.path);
|
|
40
|
+
this.docTitle = shortFileTitle(this.doc.title, this.doc.path || "");
|
|
22
41
|
this.docContent = false;
|
|
23
42
|
this.zipFileName = false;
|
|
24
43
|
this.textFiles = [];
|
|
@@ -63,6 +82,7 @@ export class HTMLExporter {
|
|
|
63
82
|
this.addImages(imageIds);
|
|
64
83
|
await Promise.all(extraStyleSheets.map(async (sheet) => await this.loadStyle(sheet)));
|
|
65
84
|
}
|
|
85
|
+
converter;
|
|
66
86
|
getProcessedFiles() {
|
|
67
87
|
// Return the processed files and metadata. Used when using the
|
|
68
88
|
// exporter in a different context than creating a zip file.
|
|
@@ -84,7 +104,7 @@ export class HTMLExporter {
|
|
|
84
104
|
imageIds.forEach(id => {
|
|
85
105
|
const image = this.imageDB.db[id];
|
|
86
106
|
this.httpFiles.push({
|
|
87
|
-
filename: `images/${image.image.split("/").pop()}`,
|
|
107
|
+
filename: `images/${image.image.toString().split("/").pop()}`,
|
|
88
108
|
url: image.image
|
|
89
109
|
});
|
|
90
110
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exporter/html/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exporter/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,MAAM,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAC,cAAc,EAAE,SAAS,EAAC,MAAM,WAAW,CAAA;AAEnD,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAC,cAAc,EAAmB,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAA;AAChD,OAAO,EAAC,kBAAkB,EAAC,MAAM,gBAAgB,CAAA;AAEjD;;EAEE;AAEF,MAAM,OAAO,YAAY;IACrB,GAAG,CAAW;IACd,KAAK,CAAO;IACZ,OAAO,CAAS;IAChB,GAAG,CAAK;IACR,OAAO,CAAK;IACZ,cAAc,CAIZ;IACF,gBAAgB,CAAyB;IAEzC,QAAQ,CAAQ;IAChB,UAAU,CAAK;IACf,WAAW,CAAgB;IAC3B,SAAS,CAA4D;IACrE,SAAS,CAAwC;IACjD,WAAW,CAAyC;IACpD,QAAQ,CAAK;IACb,kBAAkB,CAA2B;IAC7C,eAAe,CAAQ;IACvB,UAAU,CAAQ;IAClB,QAAQ,CAAQ;IAChB,WAAW,CAA6D;IAExE,Y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G,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;YAClC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAA;YACrB,KAAK,CAAC,QAAQ,GAAG,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;YACnE,OAAO,KAAK,CAAC,GAAG,CAAA;QACpB,CAAC;QACD,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACjB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAA8C,CAAC,CAAA;QACvE,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACjC,CAAC;IAED,KAAK,CAAC,SAAS;QACX,MAAM,MAAM,GAAG,IAAI,cAAc,CAC7B,IAAI,CAAC,SAA0B,EAC/B,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,OAAO,CACf,CAAA;QACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAA;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC9B,CAAC;IAED,QAAQ,CAAC,IAAU;QACf,OAAO,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,WAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACpE,CAAC;CACJ"}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { DocSettings } from "../../types.js";
|
|
2
|
+
export interface HtmlExportSettings extends DocSettings {
|
|
3
|
+
copyright?: {
|
|
4
|
+
holder?: string;
|
|
5
|
+
year?: number;
|
|
6
|
+
licenses?: Array<{
|
|
7
|
+
url: string;
|
|
8
|
+
title: string;
|
|
9
|
+
start?: number;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface HtmlExportTemplateOptions {
|
|
14
|
+
head: string;
|
|
15
|
+
body: string;
|
|
16
|
+
back: string;
|
|
17
|
+
settings: HtmlExportSettings;
|
|
18
|
+
lang: string;
|
|
19
|
+
xhtml?: boolean;
|
|
20
|
+
epub?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** A template for HTML export of a document. */
|
|
23
|
+
export declare const htmlExportTemplate: ({ head, body, back, settings, lang, xhtml, epub }: HtmlExportTemplateOptions) => string;
|
|
10
24
|
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/exporter/html/templates.
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/exporter/html/templates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAE/C,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACnD,SAAS,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAC,CAAC,CAAA;KACjE,CAAA;CACJ;AAED,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,gDAAgD;AAChD,eAAO,MAAM,kBAAkB,GAAI,mDAQhC,yBAAyB,KAAG,MAsBvB,CAAA"}
|
|
@@ -13,7 +13,7 @@ export const htmlExportTemplate = ({ head, body, back, settings, lang, xhtml, ep
|
|
|
13
13
|
${settings.copyright && settings.copyright.holder
|
|
14
14
|
? `<div>© ${settings.copyright.year ? settings.copyright.year : new Date().getFullYear()} ${escapeText(settings.copyright.holder)}</div>`
|
|
15
15
|
: ""}
|
|
16
|
-
${settings.copyright && settings.copyright.licenses
|
|
16
|
+
${settings.copyright && settings.copyright.licenses?.length
|
|
17
17
|
? `<div>${settings.copyright.licenses.map(license => `<a rel="license" href="${escapeText(license.url)}">${escapeText(license.title)}${license.start ? ` (${license.start})` : ""}</a>`).join("</div><div>")}</div>`
|
|
18
18
|
: ""}
|
|
19
19
|
</body>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../src/exporter/html/templates.
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../src/exporter/html/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAA;AAsBpC,gDAAgD;AAChD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAC/B,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,EACoB,EAAU,EAAE,CACpC,GAAG,KAAK,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAC,iBAAiB;YAC/D,KAAK,CAAC,CAAC,CAAC,wCAAwC,IAAI,CAAC,CAAC,CAAC,2CAA2C,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,cAAc,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;;+BAE/I,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC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umber: (number: number, system?: string) => string | number;
|
|
2
2
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/exporter/html/tools.
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/exporter/html/tools.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,aAAa,GACtB,QAAQ,MAAM,EACd,SAAS,MAAM,KAChB,MAAM,GAAG,MAQX,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const numberToRoman = number => {
|
|
1
|
+
const numberToRoman = (number) => {
|
|
2
2
|
let roman = "";
|
|
3
3
|
const romanNumList = {
|
|
4
4
|
M: 1000,
|
|
@@ -27,7 +27,7 @@ const numberToRoman = number => {
|
|
|
27
27
|
}
|
|
28
28
|
return roman;
|
|
29
29
|
};
|
|
30
|
-
const numberToAlpha = number => {
|
|
30
|
+
const numberToAlpha = (number) => {
|
|
31
31
|
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
32
32
|
let alpha = "";
|
|
33
33
|
let a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/exporter/html/tools.
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/exporter/html/tools.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,CAAC,MAAc,EAAU,EAAE;IAC7C,IAAI,KAAK,GAAG,EAAE,CAAA;IACd,MAAM,YAAY,GAA2B;QACzC,CAAC,EAAE,IAAI;QACP,EAAE,EAAE,GAAG;QACP,CAAC,EAAE,GAAG;QACN,EAAE,EAAE,GAAG;QACP,CAAC,EAAE,GAAG;QACN,EAAE,EAAE,EAAE;QACN,CAAC,EAAE,EAAE;QACL,EAAE,EAAE,EAAE;QACN,CAAC,EAAE,EAAE;QACL,EAAE,EAAE,CAAC;QACL,CAAC,EAA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|
|
1
|
-
{"version":3,"file":"bibliography.d.ts","sourceRoot":"","sources":["../../../src/exporter/jats/bibliography.
|
|
1
|
+
{"version":3,"file":"bibliography.d.ts","sourceRoot":"","sources":["../../../src/exporter/jats/bibliography.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,UAAU,EAAY,MAAM,gBAAgB,CAAA;AAoDzD,wBAAgB,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAgJ3D"}
|
|
@@ -45,22 +45,24 @@ export function jatsBib(bib, id) {
|
|
|
45
45
|
start += `<ref id="ref-${id}">`;
|
|
46
46
|
end = "</ref>" + end;
|
|
47
47
|
// Type
|
|
48
|
-
const publicationType = PUBLICATION_TYPES[bib.bib_type] ?? "standard";
|
|
48
|
+
const publicationType = PUBLICATION_TYPES[bib.bib_type || ""] ?? "standard";
|
|
49
49
|
start += `<element-citation publication-type="${publicationType}">`;
|
|
50
50
|
end = "</element-citation>" + end;
|
|
51
|
+
const fields = (bib.fields || {});
|
|
51
52
|
// authors
|
|
52
|
-
if (
|
|
53
|
-
start += `<person-group person-group-type="author">${
|
|
54
|
-
.map(author => {
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
if (fields.author && Array.isArray(fields.author) && fields.author.length) {
|
|
54
|
+
start += `<person-group person-group-type="author">${fields.author
|
|
55
|
+
.map((author) => {
|
|
56
|
+
const a = author;
|
|
57
|
+
if (a.literal) {
|
|
58
|
+
return `<collab>${convertTexts((a.literal))}</collab>`;
|
|
57
59
|
}
|
|
58
|
-
let nameStart = `<name><surname>${convertTexts(
|
|
59
|
-
if (
|
|
60
|
-
nameStart += ` <prefix>${convertTexts(
|
|
60
|
+
let nameStart = `<name><surname>${convertTexts((a.family || ""))}</surname> <given-names>${convertTexts((a.given || ""))}</given-names>`;
|
|
61
|
+
if (a.prefix && a.prefix.length) {
|
|
62
|
+
nameStart += ` <prefix>${convertTexts((a.prefix))}</prefix>`;
|
|
61
63
|
}
|
|
62
|
-
if (
|
|
63
|
-
nameStart += ` <suffix>${convertTexts(
|
|
64
|
+
if (a.suffix && a.suffix.length) {
|
|
65
|
+
nameStart += ` <suffix>${convertTexts((a.suffix))}</suffix>`;
|
|
64
66
|
}
|
|
65
67
|
const nameEnd = "</name>";
|
|
66
68
|
return nameStart + nameEnd;
|
|
@@ -68,83 +70,86 @@ export function jatsBib(bib, id) {
|
|
|
68
70
|
.join(", ")}</person-group>`;
|
|
69
71
|
}
|
|
70
72
|
// title && container title
|
|
71
|
-
if (
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
start += `<source>${convertTexts(
|
|
76
|
-
start += `<article-title>${convertTexts(
|
|
73
|
+
if (fields.title) {
|
|
74
|
+
if (fields.shortjournal ||
|
|
75
|
+
fields.booktitle ||
|
|
76
|
+
fields.journaltitle) {
|
|
77
|
+
start += `<source>${convertTexts(String(fields.shortjournal || fields.booktitle || fields.journaltitle))}</source>`;
|
|
78
|
+
start += `<article-title>${convertTexts(String(fields.title))}</article-title>`;
|
|
77
79
|
}
|
|
78
80
|
else {
|
|
79
|
-
start += `<source>${convertTexts(
|
|
81
|
+
start += `<source>${convertTexts(String(fields.title))}</source>`;
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
// editors
|
|
83
|
-
if (
|
|
84
|
-
start += `<person-group person-group-type="editor">${
|
|
85
|
-
.map(editor => {
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
if (fields.editor && Array.isArray(fields.editor) && fields.editor.length) {
|
|
86
|
+
start += `<person-group person-group-type="editor">${fields.editor
|
|
87
|
+
.map((editor) => {
|
|
88
|
+
const e = editor;
|
|
89
|
+
if (e.literal) {
|
|
90
|
+
return `<collab>${convertTexts((e.literal))}</collab>`;
|
|
88
91
|
}
|
|
89
|
-
let nameStart = `<name><surname>${convertTexts(
|
|
92
|
+
let nameStart = `<name><surname>${convertTexts((e.family || ""))}</surname> <given-names>${convertTexts((e.given || ""))}</given-names>`;
|
|
90
93
|
const nameEnd = "</name>";
|
|
91
|
-
if (
|
|
92
|
-
nameStart
|
|
94
|
+
if (e.prefix && e.prefix.length) {
|
|
95
|
+
nameStart += ` <prefix>${convertTexts((e.prefix))}</prefix>`;
|
|
93
96
|
}
|
|
94
|
-
if (
|
|
95
|
-
nameStart
|
|
97
|
+
if (e.suffix && e.suffix.length) {
|
|
98
|
+
nameStart += ` <suffix>${convertTexts((e.suffix))}</suffix>`;
|
|
96
99
|
}
|
|
97
100
|
return nameStart + nameEnd;
|
|
98
101
|
})
|
|
99
102
|
.join(", ")}</person-group>`;
|
|
100
103
|
}
|
|
101
104
|
// publisher
|
|
102
|
-
if (
|
|
103
|
-
start +=
|
|
104
|
-
.map(publisher => `<publisher-name>${convertTexts(publisher)}</publisher-name>`)
|
|
105
|
+
if (fields.publisher && Array.isArray(fields.publisher) && fields.publisher.length) {
|
|
106
|
+
start += fields.publisher
|
|
107
|
+
.map(publisher => `<publisher-name>${convertTexts(String(publisher))}</publisher-name>`)
|
|
105
108
|
.join("");
|
|
106
109
|
}
|
|
107
110
|
// location
|
|
108
|
-
if (
|
|
109
|
-
start +=
|
|
110
|
-
.map(location => `<publisher-loc>${convertTexts(location)}</publisher-loc>`)
|
|
111
|
+
if (fields.location && Array.isArray(fields.location) && fields.location.length) {
|
|
112
|
+
start += fields.location
|
|
113
|
+
.map(location => `<publisher-loc>${convertTexts(String(location))}</publisher-loc>`)
|
|
111
114
|
.join("");
|
|
112
115
|
}
|
|
113
116
|
// date
|
|
114
|
-
if (
|
|
115
|
-
const date =
|
|
117
|
+
if (fields.date && String(fields.date).length) {
|
|
118
|
+
const date = String(fields.date);
|
|
116
119
|
const dateParts = date.split("-");
|
|
117
120
|
start += `<date iso-8601-date="${date}" date-type="published">${dateParts.length > 2 ? `<day>${dateParts[2]}</day>` : ""}${dateParts.length > 1 ? `<month>${dateParts[1]}</month>` : ""}<year>${dateParts[0]}</year></date>`;
|
|
118
121
|
}
|
|
119
122
|
// volume
|
|
120
|
-
if (
|
|
121
|
-
start += `<volume>${convertTexts(
|
|
123
|
+
if (fields.volume && String(fields.volume).length) {
|
|
124
|
+
start += `<volume>${convertTexts(String(fields.volume))}</volume>`;
|
|
122
125
|
}
|
|
123
126
|
// issue
|
|
124
|
-
if (
|
|
125
|
-
start += `<issue>${convertTexts(
|
|
127
|
+
if (fields.issue && String(fields.issue).length) {
|
|
128
|
+
start += `<issue>${convertTexts(String(fields.issue))}</issue>`;
|
|
126
129
|
}
|
|
127
130
|
// pages
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
start += `<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
if (fields.pages && Array.isArray(fields.pages) && fields.pages.length) {
|
|
132
|
+
const pages = fields.pages;
|
|
133
|
+
start += `<fpage>${convertTexts((pages[0][0]))}</fpage>`;
|
|
134
|
+
const lastPageGroup = pages.slice(-1)[0];
|
|
135
|
+
start += `<lpage>${convertTexts((lastPageGroup.slice(-1)[0]))}</lpage>`;
|
|
136
|
+
if (pages.length > 1) {
|
|
137
|
+
start += `<page-range>${pages
|
|
138
|
+
.map(pageGroup => pageGroup.map(page => convertTexts((page))).join("-"))
|
|
134
139
|
.join(", ")}</page-range>`;
|
|
135
140
|
}
|
|
136
141
|
}
|
|
137
142
|
// doi
|
|
138
|
-
if (
|
|
139
|
-
start += `<pub-id pub-id-type="doi">${escapeText(
|
|
143
|
+
if (fields.doi && String(fields.doi).length) {
|
|
144
|
+
start += `<pub-id pub-id-type="doi">${escapeText(String(fields.doi))}</pub-id>`;
|
|
140
145
|
}
|
|
141
146
|
// url
|
|
142
|
-
if (
|
|
143
|
-
start += `<ext-link ext-link-type="web" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${escapeText(
|
|
147
|
+
if (fields.url && String(fields.url).length) {
|
|
148
|
+
start += `<ext-link ext-link-type="web" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${escapeText(String(fields.url))}"/>`;
|
|
144
149
|
}
|
|
145
150
|
// url date
|
|
146
|
-
if (
|
|
147
|
-
const date =
|
|
151
|
+
if (fields.urldate && String(fields.urldate).length) {
|
|
152
|
+
const date = String(fields.urldate);
|
|
148
153
|
const dateParts = date.split("-");
|
|
149
154
|
start += `<date-in-citation content-type="access-date" iso-8601-date="${date}">${dateParts.length > 2 ? `<day>${dateParts[2]}</day>` : ""}${dateParts.length > 1 ? `<month>${dateParts[1]}</month>` : ""}<year>${dateParts[0]}</year></date-in-citation>`;
|
|
150
155
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bibliography.js","sourceRoot":"","sources":["../../../src/exporter/jats/bibliography.
|
|
1
|
+
{"version":3,"file":"bibliography.js","sourceRoot":"","sources":["../../../src/exporter/jats/bibliography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAA;AAGpC,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAA;AAEtC,4HAA4H;AAC5H,0EAA0E;AAC1E,MAAM,iBAAiB,GAA2B;IAC9C,OAAO,EAAE,SAAS;IAClB,iBAAiB,EAAE,SAAS;IAC5B,kBAAkB,EAAE,SAAS;IAC7B,mBAAmB,EAAE,SAAS;IAC9B,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,UAAU;IACtB,OAAO,EAAE,SAAS;IAClB,kBAAkB,EAAE,UAAU;IAC9B,oBAAoB,EAAE,UAAU;IAChC,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,MAAM;IACpB,aAAa,EAAE,UAAU;IACzB,WAAW,EAAE,UAAU;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,UAAU;IACxB,aAAa,EAAE,MAAM;IACrB,WAAW,EAAE,UAAU;IACvB,MAAM,EAAE,UAAU;IAClB,MAA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AC,WAAW,CAAA;IACnF,CAAC;IAED,MAAM;IACN,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1C,KAAK,IAAI,wFAAwF,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAA;IACxI,CAAC;IAED,WAAW;IACX,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;QAClD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QACnC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QACjC,KAAK,IAAI,+DAA+D,IAAI,KACxE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAC1D,GACI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAC9D,SAAS,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAA;IACrD,CAAC;IAED,OAAO,KAAK,GAAG,GAAG,CAAA;AACtB,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { FormatCitations } from "../../citations/format.js";
|
|
2
|
+
import type { BibDB, CSL, ExportDoc } from "../../types.js";
|
|
3
|
+
export declare class JATSExporterCitations {
|
|
4
|
+
doc: ExportDoc;
|
|
5
|
+
bibDB: BibDB;
|
|
6
|
+
csl: CSL;
|
|
7
|
+
citationTexts: string[];
|
|
8
|
+
citFm: FormatCitations | false;
|
|
8
9
|
jatsBib: string;
|
|
9
|
-
jatsIdConvert:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
jatsIdConvert: Record<string, number>;
|
|
11
|
+
citInfos: Record<string, unknown>[];
|
|
12
|
+
constructor(doc: ExportDoc, bibDB: BibDB, csl: CSL);
|
|
13
|
+
init(citInfos: Record<string, unknown>[]): Promise<void>;
|
|
14
|
+
formatCitations(): Promise<void>;
|
|
13
15
|
}
|
|
14
16
|
//# sourceMappingURL=citations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citations.d.ts","sourceRoot":"","sources":["../../../src/exporter/jats/citations.
|
|
1
|
+
{"version":3,"file":"citations.d.ts","sourceRoot":"","sources":["../../../src/exporter/jats/citations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAA;AAEzD,OAAO,KAAK,EAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAezD,qBAAa,qBAAqB;IAC9B,GAAG,EAAE,SAAS,CAAA;IACd,KAAK,EAAE,KAAK,CAAA;IACZ,GAAG,EAAE,GAAG,CAAA;IAER,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,KAAK,EAAE,eAAe,GAAG,KAAK,CAAA;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;gBAEvB,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG;IAYlD,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAWxD,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CA6FnC"}
|