allyhub 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/align.js +1 -1
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +1 -1
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/export.js +3 -0
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +9 -9
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/combos.js +1 -1
- package/dist/commands/inspect/common.js +2 -2
- package/dist/commands/inspect/facts.js +2 -2
- package/dist/commands/migrate.js +3 -0
- package/dist/commands/skills.js +3 -3
- package/dist/commands/upgrade.js +5 -0
- package/dist/commands.json +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
- package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
- package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
- package/dist/node_modules/@allyhub/blocks/package.json +19 -0
- package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +5 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
- package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
- package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
- package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
- package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
- package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
- package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
- package/dist/node_modules/@allyhub/doc/package.json +5 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
- package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
- package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +59 -0
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
- package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +12 -3
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
- package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
- package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
- package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
- package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
- package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
- package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +8 -2
- package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/html.js +10 -10
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
- package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
- package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/package.json +2 -25
- package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
- package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +3 -3
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -3
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +14 -14
- package/dist/self-upgrade.js +2 -0
- package/dist/text/batch-text.js +1 -1
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/update-notice.js +3 -0
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-DYaMS_BB.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-g_Tjfl_y.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-CqdhofOL.js → architectureDiagram-ZHVYKT53-D3vrh8LK.js} +1 -1
- package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
- package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
- package/editor-web/assets/article-DHf6mOY_.js +7 -0
- package/editor-web/assets/article-Dns1-Xh-.js +3 -0
- package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
- package/editor-web/assets/bar-button-CKPfx2AB.js +1 -0
- package/editor-web/assets/{blockDiagram-RJAE7QA3-Bc-28Bci.js → blockDiagram-RJAE7QA3-BKngt8H7.js} +1 -1
- package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CTGJb8FB.js → c4Diagram-XDPPPE54-j7sUELqF.js} +1 -1
- package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
- package/editor-web/assets/channel-CVWSV3su.js +1 -0
- package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
- package/editor-web/assets/chip-Bn_9JRRG.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-B2MPOVTU.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BUV1ZHP0.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BZlpspL5.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-CpKeisWE.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BJqwAPyo.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-D6oPWl_W.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-B5pk4MZF.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-DHbSPvxQ.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-CcL_GcRA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-YgiOL6XE.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-p14b4UYc.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-BWW0x-XH.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-oG3qd68C.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CpcheH0u.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-cWQvLl1w.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-7PG7YcdU.js → classDiagram-v2-4MYWR3UA-Cj74-fhM.js} +1 -1
- package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
- package/editor-web/assets/collaborator-XiHOxwGM.js +1 -0
- package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
- package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-CtcknEQ_.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-Ca7VIsjN.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BzcSLtsr.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
- package/editor-web/assets/deck-DQpNIS2p.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-DpRmTGlG.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-BTrs_AX8.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-CkIVjPqH.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BlFMbAG1.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-D3f8VJ-D.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-Bbpngj6F.js → diagram-TYUNFSNR-qXHUsauD.js} +1 -1
- package/editor-web/assets/dist--z0ZHp4T.js +16 -0
- package/editor-web/assets/dist-9kuRjUTN.js +41 -0
- package/editor-web/assets/dist-B3rd02Cg.js +6 -0
- package/editor-web/assets/dist-B5GOGGEe.js +1 -0
- package/editor-web/assets/dist-Bx6q9kCu.js +1 -0
- package/editor-web/assets/dist-C4hHtrJr.js +1 -0
- package/editor-web/assets/dist-CCXJewsi.js +19 -0
- package/editor-web/assets/dist-CfK2BLl8.js +4 -0
- package/editor-web/assets/dist-Cmux3oJ_.js +1 -0
- package/editor-web/assets/dist-Cspf85KV.js +6 -0
- package/editor-web/assets/dist-DA72-4WB.js +82 -0
- package/editor-web/assets/{dist-DruvDNQe.js → dist-DAhe-kFC.js} +5 -5
- package/editor-web/assets/dist-DIJnhQFK.js +9 -0
- package/editor-web/assets/dist-DOrGo1GD.js +19 -0
- package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
- package/editor-web/assets/dist-DjiCHlSu.js +35 -0
- package/editor-web/assets/dist-Do4a40Wn.js +19 -0
- package/editor-web/assets/dist-FKEWS3Co.js +547 -0
- package/editor-web/assets/dist-QKd2i6kG.js +5 -0
- package/editor-web/assets/dist-SGnOfLhx.js +24 -0
- package/editor-web/assets/dist-VmVB7tl4.js +3 -0
- package/editor-web/assets/{docx-draw-CoK1oqQD.js → docx-draw-L54blreB.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BaKj-yL6.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Cn2qv1_U.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-Bd7AEIDo.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
- package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-Sfp7_461.js → eventmodeling-K75KTNOO-elxVXXEe.js} +1 -1
- package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CBqcGdHI.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-WTokXKTW.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BIWZHD9q.js → gitGraphDiagram-PDYL7XHY-BQAvdM_V.js} +1 -1
- package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
- package/editor-web/assets/hint-CbwoSBMw.js +1 -0
- package/editor-web/assets/index-CXisi0Cj.css +2 -0
- package/editor-web/assets/index-wMlfx8aT.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-COC6G-_J.js → info-OHQRW6UA-CdPrqere.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-DpaqdKBD.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js → ishikawaDiagram-HPEHV2GE-rtfvqK7E.js} +1 -1
- package/editor-web/assets/iso-UwGLGD3F.js +1 -0
- package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-DeSVfmm7.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-Bfg0lj7B.js → kanban-definition-FNSA4HC5-Fe7jBsi-.js} +1 -1
- package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-CyhovuYE.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
- package/editor-web/assets/{mermaid.core-Dx1fBVUG.js → mermaid.core-BOln9YdH.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-QEU2HF_m.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
- package/editor-web/assets/minus-ngE8owxs.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-ReJTa_hw.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-Bo1jFrvb.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BrtYafNA.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-Cj0zQqs_.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
- package/editor-web/assets/progress-DZQTiRLv.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-D5npDAVn.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-C8RDrRqi.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-ebDrmYTK.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-BxKuqg6V.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DOclnfpr.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-DN0A1fpq.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-B3PjoVWw.js → railroadDiagram-Y72NRBL7-CTqSQ15w.js} +1 -1
- package/editor-web/assets/react-Byupo4pA.js +1 -0
- package/editor-web/assets/replace-CLLMtF4e.js +1 -0
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-DLdzkQk5.js → requirementDiagram-EQYSW5RA-CUblhR5M.js} +1 -1
- package/editor-web/assets/ribbon-DajdQ_Ya.js +1 -0
- package/editor-web/assets/row-Bei9HNEe.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-Dip4Piv_.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
- package/editor-web/assets/schemas-C21MyseF.js +1 -0
- package/editor-web/assets/{iso-DoC-ZoBr.js → schemas-DlRAoVtq.js} +1 -1
- package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
- package/editor-web/assets/search-D75Bi2GU.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-QnPcoybL.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
- package/editor-web/assets/{session-DMlLCFWg.js → session-BhClkDyr.js} +1 -1
- package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
- package/editor-web/assets/snapshots-DwGHDN3t.js +1 -0
- package/editor-web/assets/sound-DkR3qxSt.js +1 -0
- package/editor-web/assets/split-DBAbwPZ5.js +3 -0
- package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-D103CiMX.js → stateDiagram-v2-A6IESKWZ-C3e14iHY.js} +1 -1
- package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
- package/editor-web/assets/surface-CIF0Ae0z.js +1 -0
- package/editor-web/assets/swatch-BUzr_XmH.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-y4gCqEoa.js → swimlanes-B3ENRKFQ-DPPdzNzu.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +8 -0
- package/editor-web/assets/switch-DrZxoPQS.js +1 -0
- package/editor-web/assets/{syntax-CU_WPKxt.js → syntax-emXV4DnN.js} +1 -1
- package/editor-web/assets/table-BW43XXVd.js +1 -0
- package/editor-web/assets/tabs-BwU2E7bU.js +1 -0
- package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
- package/editor-web/assets/textarea-BX_ax3X8.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-BMp76v4V.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-Q_GYyk0b.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-B5lRWdQB.js → treemap-SAJKECNS-BcU6I6Rg.js} +1 -1
- package/editor-web/assets/type-CvZ0HZsV.js +41 -0
- package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX--QRllA-U.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CzkATPA3.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
- package/editor-web/assets/video-SJvDRCJK.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-BXzwcdJa.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BQvC8Agx.js → wardleyDiagram-IVAIDKWA-SppgC6xW.js} +1 -1
- package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
- package/editor-web/assets/{words-CaUHhQHf.js → words-BUlNNuH2.js} +3 -3
- package/editor-web/assets/words-zMedmPWc.js +3 -0
- package/editor-web/assets/workbook-BZKYx4WB.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-aY-lsD5o.js → xychartDiagram-4URNHDU4-BHMn_jwJ.js} +1 -1
- package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
- package/editor-web/index.html +9 -8
- package/package.json +3 -3
- package/CHANGELOG.md +0 -251
- package/dist/commands/render.js +0 -3
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
- package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
- package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
- package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
- package/editor-web/assets/article-8evPh712.js +0 -3
- package/editor-web/assets/article-BhRtWYMd.js +0 -7
- package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
- package/editor-web/assets/calc-worker-oEIqrrTM.js +0 -45
- package/editor-web/assets/channel-wIj_OqDm.js +0 -1
- package/editor-web/assets/chart-amT4lgX3.js +0 -2
- package/editor-web/assets/chart-file-dGiRgFcH.js +0 -1
- package/editor-web/assets/code-CD-CbJG9.js +0 -1
- package/editor-web/assets/collaborator-BU4qU7O3.js +0 -1
- package/editor-web/assets/deck-C7fN0Qtn.js +0 -1
- package/editor-web/assets/dist-3iovns9K.js +0 -16
- package/editor-web/assets/dist-BkHnbOEj.js +0 -4
- package/editor-web/assets/dist-BvOrNcK-.js +0 -19
- package/editor-web/assets/dist-CEIszq39.js +0 -1
- package/editor-web/assets/dist-CU5RbLNH.js +0 -1
- package/editor-web/assets/dist-CWZj8IAm.js +0 -1
- package/editor-web/assets/dist-C_Mtrnif.js +0 -17
- package/editor-web/assets/dist-CdqpwdCV.js +0 -24
- package/editor-web/assets/dist-CjT76RAw.js +0 -43
- package/editor-web/assets/dist-CpzEn9T8.js +0 -6
- package/editor-web/assets/dist-CrFYWl5-.js +0 -3
- package/editor-web/assets/dist-D3C6FyrO.js +0 -82
- package/editor-web/assets/dist-D4eBFGVL.js +0 -1
- package/editor-web/assets/dist-DTcjb3cP.js +0 -18
- package/editor-web/assets/dist-D_WSM29I.js +0 -17
- package/editor-web/assets/dist-Dp_9ISjP.js +0 -531
- package/editor-web/assets/dist-J-tPYKGS.js +0 -5
- package/editor-web/assets/dist-YW8hS4IM.js +0 -9
- package/editor-web/assets/esm-Cjv8ogpP.js +0 -21
- package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +0 -1
- package/editor-web/assets/hint-rlht0uxG.js +0 -1
- package/editor-web/assets/index-BQWZnyAQ.js +0 -28
- package/editor-web/assets/index-Dvh1t1om.css +0 -2
- package/editor-web/assets/minus-CbPnUIOy.js +0 -1
- package/editor-web/assets/progress-CwKcXARv.js +0 -6
- package/editor-web/assets/props-form-BpSXbrSF.js +0 -1
- package/editor-web/assets/react-Edyoga_4.js +0 -1
- package/editor-web/assets/row-C_svyL8o.js +0 -1
- package/editor-web/assets/schemas-CQ_UU8-Z.js +0 -1
- package/editor-web/assets/search-Ba2BbT6T.js +0 -1
- package/editor-web/assets/slides-7xWhREpt.js +0 -1
- package/editor-web/assets/snapshots-BLX4NTQC.js +0 -1
- package/editor-web/assets/sound-bTlco_K3.js +0 -1
- package/editor-web/assets/split-tFGKk-x8.js +0 -3
- package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
- package/editor-web/assets/surface-DtCjIlrq.js +0 -1
- package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
- package/editor-web/assets/swatch-DhztHwPU.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +0 -8
- package/editor-web/assets/switch-8MU4Nfxe.js +0 -1
- package/editor-web/assets/table-DRbddzx0.js +0 -1
- package/editor-web/assets/tabs-CuEawka3.js +0 -1
- package/editor-web/assets/tag-CIfWT8B_.js +0 -1
- package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
- package/editor-web/assets/textarea-D7TnPwv1.js +0 -1
- package/editor-web/assets/video-D0uTbHWx.js +0 -1
- package/editor-web/assets/words-XlXG79Ur.js +0 -3
- package/editor-web/assets/workbook-CiCXkjmN.js +0 -45
- package/editor-web/assets/x-DlhyIKuu.js +0 -41
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,o as i,s as a}from"./schemas-CQ_UU8-Z.js";import{a as o,i as s,t as c}from"./browser-C1XuTMlp.js";import{t as l}from"./chart-amT4lgX3.js";import{i as u,n as d,r as f}from"./dist-C_Mtrnif.js";import{An as p,Cn as m,En as h,Sn as g,Ut as _,Xt as v,Yt as y,Zt as b,_n as x,bn as S,fn as C,gn as w,jn as T,kn as ee,ln as E,mn as D,nn as O,tt as k,wn as A}from"./dist-D_WSM29I.js";var te=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function j(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e<a;e++)i.push(r[e]);n.push(i),r=t.exec(e)}return n}var ne=function(e){return te.exec(e)!=null};function re(e){return e!==void 0}var ie=[`hasOwnProperty`,`toString`,`valueOf`,`__defineGetter__`,`__defineSetter__`,`__lookupGetter__`,`__lookupSetter__`],ae=[`__proto__`,`constructor`,`prototype`],oe={allowBooleanAttributes:!1,unpairedTags:[]};function se(e,t){t=Object.assign({},oe,t);let n=[],r=!1,i=!1;e[0]===``&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]===`<`&&e[a+1]===`?`){if(a+=2,a=ce(e,a),a.err)return a}else if(e[a]===`<`){let o=a;if(a++,e[a]===`!`){a=le(e,a);continue}{let s=!1;e[a]===`/`&&(s=!0,a++);let c=``;for(;a<e.length&&e[a]!==`>`&&e[a]!==` `&&e[a]!==` `&&e[a]!==`
|
|
2
|
-
`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!ve(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,N(`InvalidTag`,t,P(e,a))}let l=fe(e,a);if(l===!1)return N(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,P(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=me(u,t);if(i===!0)r=!0;else return N(i.err.code,i.err.msg,P(e,n+i.err.line))}else if(s){if(!l.tagClosed)return N(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,P(e,a));if(u.trim().length>0)return N(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,P(e,o));if(n.length===0)return N(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,P(e,o));{let t=n.pop();if(c!==t.tagName){let n=P(e,t.tagStartPos);return N(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,P(e,o))}n.length==0&&(i=!0)}}else{let s=me(u,t);if(s!==!0)return N(s.err.code,s.err.msg,P(e,a-u.length+s.err.line));if(i===!0)return N(`InvalidXml`,`Multiple possible root nodes found.`,P(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a<e.length;a++)if(e[a]===`<`){if(e[a+1]===`!`){a++,a=le(e,a);continue}if(e[a+1]===`?`){if(a=ce(e,++a),a.err)return a}else break}else if(e[a]===`&`){let t=ge(e,a);if(t==-1)return N(`InvalidChar`,`char '&' is not expected.`,P(e,a));a=t}else if(i===!0&&!M(e[a]))return N(`InvalidXml`,`Extra text at the end`,P(e,a));e[a]===`<`&&a--}}else{if(M(e[a]))continue;return N(`InvalidChar`,`char '`+e[a]+`' is not expected.`,P(e,a))}return r?n.length==1?N(`InvalidTag`,`Unclosed tag '`+n[0].tagName+`'.`,P(e,n[0].tagStartPos)):n.length>0?N(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:N(`InvalidXml`,`Start tag expected.`,1)}function M(e){return e===` `||e===` `||e===`
|
|
3
|
-
`||e===`\r`}function ce(e,t){let n=t;for(;t<e.length;t++)if(e[t]==`?`||e[t]==` `){let r=e.substr(n,t-n);if(t>5&&r===`xml`)return N(`InvalidXml`,`XML declaration allowed only at the start of the document.`,P(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}continue}return t}function le(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t<e.length;t++)if(e[t]===`-`&&e[t+1]===`-`&&e[t+2]===`>`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t<e.length;t++)if(e[t]===`<`)n++;else if(e[t]===`>`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t<e.length;t++)if(e[t]===`]`&&e[t+1]===`]`&&e[t+2]===`>`){t+=2;break}}return t}var ue=`"`,de=`'`;function fe(e,t){let n=``,r=``,i=!1;for(;t<e.length;t++){if(e[t]===ue||e[t]===de)r===``?r=e[t]:r!==e[t]||(r=``);else if(e[t]===`>`&&r===``){i=!0;break}n+=e[t]}return r===``&&{value:n,index:t,tagClosed:i}}function pe(e){let t=[],n=e.length,r=0;for(;r<n;){let i=r;for(;r<n&&M(e[r]);)r++;if(r>=n)break;if(e[r]===`=`){r=i+1;continue}let a=e.slice(i,r),o=r;for(;r<n&&!M(e[r])&&e[r]!==`=`;)r++;let s=e.slice(o,r),c,l=r;for(;l<n&&M(e[l]);)l++;l<n&&e[l]===`=`&&(c=e.slice(r,l+1),r=l+1);let u,d,f=r;for(;f<n&&M(e[f]);)f++;if(f<n&&(e[f]===`"`||e[f]===`'`)){let t=f+1,n=e.indexOf(e[f],t);n!==-1&&(u=e[f],d=e.slice(t,n),r=n+1)}let p={startIndex:i};p[1]=a,p[2]=s,p[3]=c,p[4]=u!==void 0||void 0,p[5]=u,p[6]=d,t.push(p)}return t}function me(e,t){let n=pe(e),r={};for(let e=0;e<n.length;e++){if(n[e][1].length===0)return N(`InvalidAttr`,`Attribute '`+n[e][2]+`' has no space in starting.`,ye(n[e]));if(n[e][3]!==void 0&&n[e][4]===void 0)return N(`InvalidAttr`,`Attribute '`+n[e][2]+`' is without value.`,ye(n[e]));if(n[e][3]===void 0&&!t.allowBooleanAttributes)return N(`InvalidAttr`,`boolean attribute '`+n[e][2]+`' is not allowed.`,ye(n[e]));let i=n[e][2];if(!_e(i))return N(`InvalidAttr`,`Attribute '`+i+`' is an invalid name.`,ye(n[e]));if(!Object.prototype.hasOwnProperty.call(r,i))r[i]=1;else return N(`InvalidAttr`,`Attribute '`+i+`' is repeated.`,ye(n[e]))}return!0}function he(e,t){let n=/\d/;for(e[t]===`x`&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(e[t]===`;`)return t;if(!e[t].match(n))break}return-1}function ge(e,t){if(t++,e[t]===`;`)return-1;if(e[t]===`#`)return t++,he(e,t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(e[t]===`;`)break;return-1}return t}function N(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function _e(e){return ne(e)}function ve(e){return ne(e)}function P(e,t){let n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function ye(e){return e.startIndex+e[1].length}var be={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},xe={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Se={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},Ce=Object.freeze({ALLOW:`allow`,BLOCK:`block`,THROW:`throw`}),we=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Te(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(we.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Ee(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}var De=`external`,Oe=`base`,ke=`all`;function Ae(e){return!e||e===De?new Set([De]):e===ke?new Set([ke]):e===Oe?new Set([Oe]):Array.isArray(e)?new Set(e):new Set([De])}var F=Object.freeze({allow:0,leave:1,remove:2,throw:3}),je=new Set([9,10,13]);function Me(e){if(!e)return{xmlVersion:1,onLevel:F.allow,nullLevel:F.remove};let t=e.xmlVersion===1.1?1.1:1,n=F[e.onNCR]??F.allow,r=F[e.nullNCR]??F.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,F.remove)}}var Ne=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Ae(this._limit.applyLimitsTo??De),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ee(xe,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=Me(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel,this._onExternalEntity=typeof e.onExternalEntity==`function`?e.onExternalEntity:null,this._onInputEntity=typeof e.onInputEntity==`function`?e.onInputEntity:null}_applyRegistrationHook(e,t,n,r){if(!e)return!0;let i=e(t,n);if(i===Ce.BLOCK)return!1;if(i===Ce.THROW)throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);return!0}setExternalEntities(e){if(e)for(let t of Object.keys(e))Te(t);if(!this._onExternalEntity){this._externalMap=Ee(e);return}let t=Ee(e),n=Object.create(null);for(let[e,r]of Object.entries(t))this._applyRegistrationHook(this._onExternalEntity,e,r,`external`)&&(n[e]=r);this._externalMap=n}addExternalEntity(e,t){Te(e),typeof t==`string`&&t.indexOf(`&`)===-1&&this._applyRegistrationHook(this._onExternalEntity,e,t,`external`)&&(this._externalMap[e]=t)}addInputEntities(e){if(this._totalExpansions=0,this._expandedLength=0,!this._onInputEntity){this._inputMap=Ee(e);return}let t=Ee(e),n=Object.create(null);for(let[e,r]of Object.entries(t))this._applyRegistrationHook(this._onInputEntity,e,r,`input`)&&(n[e]=r);this._inputMap=n}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0||e.indexOf(`&`)===-1)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a<r;){if(e.charCodeAt(a)!==38){a++;continue}let t=a+1;for(;t<r&&e.charCodeAt(t)!==59&&t-a<=32;)t++;if(t>=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=De);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Oe}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0)a++;else if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i<r&&n.push(e.slice(i));let l=n.length===0?e:n.join(``);return this._postCheck(l,t)}_tierCounts(e){return this._limitTiers.has(ke)?!0:this._limitTiers.has(e)}_resolveName(e){if(e in this._inputMap)return{value:this._inputMap[e],tier:De};if(e in this._externalMap)return{value:this._externalMap[e],tier:De};if(e in this._baseMap)return{value:this._baseMap[e],tier:Oe}}_classifyNCR(e){return e===0?this._ncrNullLevel:e>=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!je.has(e)?F.remove:-1}_applyNCRAction(e,t,n){switch(e){case F.allow:return String.fromCodePoint(n);case F.remove:return``;case F.leave:return;case F.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r<F.remove)return;let i=r===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,r);return this._applyNCRAction(i,e,n)}},Pe=e=>ie.includes(e)?`__`+e:e,Fe={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0,unicode:!1},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Pe};function Ie(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(ie.some(e=>n===e.toLowerCase())||ae.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Le(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:Le(!0)}var Re=function(e){let t=Object.assign({},Fe,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&Ie(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=Pe),t.processEntities=Le(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t},ze=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`,I=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),this.addStartIndex(t)}addStartIndex(e){e!==void 0&&(this.child[this.child.length-1][ze]={startIndex:e})}addEndIndex(e){let t=this.child[this.child.length-1];t!==void 0&&t[ze]!==void 0&&t[ze].endIndex===void 0&&(t[ze].endIndex=e)}static getMetaDataSymbol(){return ze}},Be=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�`,Ve=Be+`\\-\\.\\d·̀-ͯ‿-⁀`,He=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,Ue=He+`\\-\\.\\d·̀-ͯ҇‿-⁀`,We=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},Ge=We(Be,Ve),Ke=We(He,Ue,`u`),qe=We(`:A-Za-z_`,`:A-Za-z_\\-\\.\\d`),Je=(e=`1.0`,t=!1)=>t?qe:e===`1.1`?Ke:Ge,Ye=(e,{xmlVersion:t=`1.0`,asciiOnly:n=!1}={})=>Je(t,n).qName.test(e),Xe=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=null,c=``;for(;t<e.length;t++)if(s!==null)e[t]===s&&(s=null),c+=e[t];else if(!a&&!o&&(e[t]===`"`||e[t]===`'`))s=e[t],c+=e[t];else if(e[t]===`<`&&!o){if(a&&Ze(e,`!ENTITY`,t)){t+=7;let i,a;if([i,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),a.indexOf(`&`)===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&r>=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&Ze(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&Ze(e,`!ATTLIST`,t))t+=8;else if(a&&Ze(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(Ze(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,c=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:c+=e[t];if(s!==null||i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=L(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t])&&e[t]!==`"`&&e[t]!==`'`;)t++;let r=e.substring(n,t);if(Qe(r,{xmlVersion:this.xmlVersion}),t=L(e,t),!this.suppressValidationErr){if(e.substring(t,t+6).toUpperCase()===`SYSTEM`)throw Error(`External entities are not supported`);if(e[t]===`%`)throw Error(`Parameter entities are not supported`)}let i=``;if([t,i]=this.readIdentifierVal(e,t,`entity`),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&i.length>this.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=L(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);!this.suppressValidationErr&&Qe(r,{xmlVersion:this.xmlVersion}),t=L(e,t);let i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&i!==`SYSTEM`&&i!==`PUBLIC`)throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=L(e,t);let a=null,o=null;if(i===`PUBLIC`)[t,a]=this.readIdentifierVal(e,t,`publicIdentifier`),t=L(e,t),(e[t]===`"`||e[t]===`'`)&&([t,o]=this.readIdentifierVal(e,t,`systemIdentifier`));else if(i===`SYSTEM`&&([t,o]=this.readIdentifierVal(e,t,`systemIdentifier`),!this.suppressValidationErr&&!o))throw Error(`Missing mandatory system identifier for SYSTEM notation`);return{notationName:r,publicIdentifier:a,systemIdentifier:o,index:--t}}readIdentifierVal(e,t,n){let r=``,i=e[t];if(i!==`"`&&i!==`'`)throw Error(`Expected quoted string, found "${i}"`);t++;let a=t;for(;t<e.length&&e[t]!==i;)t++;if(r=e.substring(a,t),e[t]!==i)throw Error(`Unterminated ${n} value`);return t++,[t,r]}readElementExp(e,t){t=L(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);if(!this.suppressValidationErr&&!Ye(r,{xmlVersion:this.xmlVersion}))throw Error(`Invalid element name: "${r}"`);t=L(e,t);let i=``;if(e[t]===`E`&&Ze(e,`MPTY`,t))t+=4;else if(e[t]===`A`&&Ze(e,`NY`,t))t+=2;else if(e[t]===`(`){t++;let n=t;for(;t<e.length&&e[t]!==`)`;)t++;if(i=e.substring(n,t),e[t]!==`)`)throw Error(`Unterminated content model`)}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:r,contentModel:i.trim(),index:t}}readAttlistExp(e,t){t=L(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);for(Qe(r,{xmlVersion:this.xmlVersion}),t=L(e,t),n=t;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!Qe(i,{xmlVersion:this.xmlVersion}))throw Error(`Invalid attribute name: "${i}"`);t=L(e,t);let a=``;if(e.substring(t,t+8).toUpperCase()===`NOTATION`){if(a=`NOTATION`,t+=8,t=L(e,t),e[t]!==`(`)throw Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&e[t]!==`)`;){let r=t;for(;t<e.length&&e[t]!==`|`&&e[t]!==`)`;)t++;let i=e.substring(r,t);if(i=i.trim(),!Qe(i,{xmlVersion:this.xmlVersion}))throw Error(`Invalid notation name: "${i}"`);n.push(i),e[t]===`|`&&(t++,t=L(e,t))}if(e[t]!==`)`)throw Error(`Unterminated list of notations`);t++,a+=` (`+n.join(`|`)+`)`}else{let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;if(a+=e.substring(n,t),!this.suppressValidationErr&&![`CDATA`,`ID`,`IDREF`,`IDREFS`,`ENTITY`,`ENTITIES`,`NMTOKEN`,`NMTOKENS`].includes(a.toUpperCase()))throw Error(`Invalid attribute type: "${a}"`)}t=L(e,t);let o=``;return e.substring(t,t+8).toUpperCase()===`#REQUIRED`?(o=`#REQUIRED`,t+=8):e.substring(t,t+7).toUpperCase()===`#IMPLIED`?(o=`#IMPLIED`,t+=7):[t,o]=this.readIdentifierVal(e,t,`ATTLIST`),{elementName:r,attributeName:i,attributeType:a,defaultValue:o,index:t}}},L=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function Ze(e,t,n){for(let r=0;r<t.length;r++)if(t[r]!==e[n+r+1])return!1;return!0}function Qe(e,t){if(Ye(e,{xmlVersion:t}))return e;throw Error(`Invalid entity name ${e}`)}var $e=[48,1632,1776,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,65296,120782,120792,120802,120812,120822,66720,68912,69734,69872,69942,70096,70384,70736,70864,71248,71360,71472,71904,72016,72688,72784,73040,73120,73552,92768,92864,93008,123200,123632,124144,125264,130032],et=new Map,tt=65535,nt=1632,rt=new Uint8Array(63904).fill(255);for(let e of $e)for(let t=0;t<10;t++){let n=e+t;n<=tt?rt[n-nt]=t:et.set(n,t)}var it=48,at=57,ot=45,st=new Set([8722,65293,65123]);function ct(e){if(typeof e!=`string`)return e;let t=e.length;if(t===0)return e;let n=-1;for(let r=0;r<t;r++){let i=e.charCodeAt(r);if(!(i>=it&&i<=at||i===ot)){if(i<1632){if(st.has(i)){n=r;break}}else if(i>=55296&&i<=56319){if(r+1<t){let t=e.charCodeAt(r+1);if(t>=56320&&t<=57343){let e=65536+(i-55296<<10)+(t-56320);if(et.has(e)){n=r;break}}}}else if(rt[i-1632]!==255||st.has(i)){n=r;break}}}if(n===-1)return e;let r=[];n>0&&r.push(e.slice(0,n));for(let i=n;i<t;i++){let n=e.charCodeAt(i);if(n>=it&&n<=at||n===ot){r.push(e[i]);continue}if(n<1632){r.push(st.has(n)?`-`:e[i]);continue}if(n>=55296&&n<=56319){if(i+1<t){let t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){let e=65536+(n-55296<<10)+(t-56320),a=et.get(e);if(a!==void 0){r.push(String.fromCharCode(a+48)),i++;continue}}}r.push(e[i]);continue}if(st.has(n)){r.push(`-`);continue}let a=rt[n-nt];r.push(a===255?e[i]:String.fromCharCode(a+48))}return r.join(``)}var lt=/^[-+]?0x[a-fA-F0-9]+$/,ut=/^0b[01]+$/,dt=/^0o[0-7]+$/,ft=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,pt={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:`.`,eNotation:!0,infinity:`original`,unicode:!1};function mt(e,t={}){if(t=Object.assign({},pt,t),!e||typeof e!=`string`)return e;let n=e.trim();if(n.length===0||t.skipLike!==void 0&&t.skipLike.test(n))return e;if(n===`0`||t.unicode&&(n=ct(n),n===`0`))return 0;if(t.hex&<.test(n))return vt(n,16);if(t.binary&&ut.test(n))return vt(n,2);if(t.octal&&dt.test(n))return vt(n,8);if(!isFinite(n)){let r=Number(n);return Number.isNaN(r)?e:yt(e,r,t)}if(n.includes(`e`)||n.includes(`E`))return gt(e,n,t);{let r=ft.exec(n);if(r){let i=r[1]||``,a=r[2],o=_t(r[3]),s=i?n[a.length+1]===`.`:n[a.length]===`.`;if(!t.leadingZeros&&(a.length>1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}return e}}var ht=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function gt(e,t,n){if(!n.eNotation)return e;let r=t.match(ht);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?t[o.length+1]===a:t[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?Number(t):e:Number(t)}return e}function _t(e){if(e&&e.indexOf(`.`)!==-1){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===48;)t--;return e=e.slice(0,t),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e}return e}function vt(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function yt(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function bt(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var xt=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(r.trim()&&(t.push(this._parseSegment(r.trim())),r=``),t.push({type:`deep-wildcard`}),n+=2):(r.trim()&&t.push(this._parseSegment(r.trim())),r=``,n++):(r+=e[n],n++);return r.trim()&&t.push(this._parseSegment(r.trim())),t}_parseSegment(e){let t={type:`tag`},n=null,r=e,i=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(i&&(r=i[1]+i[3],i[2])){let e=i[2].slice(1,-1);e&&(n=e)}let a,o=r;if(r.includes(`::`)){let t=r.indexOf(`::`);if(a=r.substring(0,t).trim(),o=r.substring(t+2).trim(),!a)throw Error(`Invalid namespace in pattern: ${e}`)}let s,c=null;if(o.includes(`:`)){let e=o.lastIndexOf(`:`),t=o.substring(0,e).trim(),n=o.substring(e+1).trim();[`first`,`last`,`odd`,`even`].includes(n)||/^nth\(\d+\)$/.test(n)?(s=t,c=n):s=o}else s=o;if(!s)throw Error(`Invalid segment pattern: ${e}`);if(t.tag=s,a&&(t.namespace=a),n){if(n.includes(`=`)){let e=n.indexOf(`=`);t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim()}if(c){let e=c.match(/^nth\((\d+)\)$/);e?(t.position=`nth`,t.positionValue=parseInt(e[1],10)):t.position=c}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}},St=class{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._deepByTerminalTag=new Map,this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw TypeError(`ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.`);if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard()){let t=e.segments[e.segments.length-1];if(t&&t.type!==`deep-wildcard`&&t.tag!==`*`){let n=t.tag;this._deepByTerminalTag.has(n)||this._deepByTerminalTag.set(n,[]),this._deepByTerminalTag.get(n).push(e)}else this._deepWildcards.push(e);return this}let t=e.length,n=e.segments[e.segments.length-1]?.tag;if(!n||n===`*`)this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);else{let r=`${t}:${n}`;this._byDepthAndTag.has(r)||this._byDepthAndTag.set(r,[]),this._byDepthAndTag.get(r).push(e)}return this}addAll(e){for(let t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return this.findMatch(e)!==null}findMatch(e){let t=e.getDepth(),n=e.getCurrentTag(),r=`${t}:${n}`,i=this._byDepthAndTag.get(r);if(i){for(let t=0;t<i.length;t++)if(e.matches(i[t]))return i[t]}let a=this._wildcardByDepth.get(t);if(a){for(let t=0;t<a.length;t++)if(e.matches(a[t]))return a[t]}let o=this._deepByTerminalTag.get(n);if(o){for(let t=0;t<o.length;t++)if(e.matches(o[t]))return o[t]}for(let t=0;t<this._deepWildcards.length;t++)if(e.matches(this._deepWildcards[t]))return this._deepWildcards[t];return null}},Ct=class{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getAnyParentAttr(e){return this._matcher.getAnyParentAttr(e)}hasAnyParentAttr(e){return this._matcher.hasAnyParentAttr(e)}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},wt=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Ct(this),this._keptAttrs=[]}push(e,t=null,n=null,r=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length,a=this.siblingStacks[i];a||(a={counts:new Map,total:0},this.siblingStacks[i]=a);let o=n?`${n}:${e}`:e,s=a.counts.get(o)||0,c=a.total;a.counts.set(o,s+1),a.total++;let l={tag:e,position:c,counter:s};n!=null&&(l.namespace=n),t!=null&&(l.values=t),this.path.push(l);let u=this.path.length,d=r===null?null:r.keep;if(d!=null&&d.length>0&&t)for(let e=0;e<d.length;e++){let n=d[e];t[n]!==void 0&&this._keptAttrs.push({depth:u,name:n,value:t[n]})}}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1);let t=this.path.length+1;for(;this._keptAttrs.length>0&&this._keptAttrs[this._keptAttrs.length-1].depth>=t;)this._keptAttrs.pop();return e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getAnyParentAttr(e){let t=this._keptAttrs;for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return t[n].value}hasAnyParentAttr(e){let t=this._keptAttrs;for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return!0;return!1}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[],this._keptAttrs=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),keptAttrs:this._keptAttrs.map(e=>({...e}))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),this._keptAttrs=(e.keptAttrs||[]).map(e=>({...e}))}readOnly(){return this._view}},Tt=[{id:`html-script-open`,description:`<script opening tag`,pattern:/<script[\s>/]/i},{id:`html-script-close`,description:`<\/script closing tag`,pattern:/<\/script[\s>]/i},{id:`html-javascript-protocol`,description:`javascript: URI scheme (with optional whitespace/encoding)`,pattern:/j[\t\n\r ]*a[\t\n\r ]*v[\t\n\r ]*a[\t\n\r ]*s[\t\n\r ]*c[\t\n\r ]*r[\t\n\r ]*i[\t\n\r ]*p[\t\n\r ]*t[\t\n\r ]*:/i},{id:`html-vbscript-protocol`,description:`vbscript: URI scheme`,pattern:/vbscript[\t\n\r ]*:/i},{id:`html-data-html`,description:`data:text/html URI — can execute scripts in browsers`,pattern:/data[\t\n\r ]*:[\t\n\r ]*text\/html/i},{id:`html-data-xhtml`,description:`data:application/xhtml+xml URI`,pattern:/data[\t\n\r ]*:[\t\n\r ]*application\/xhtml/i},{id:`html-data-svg`,description:`data:image/svg+xml URI — can execute scripts`,pattern:/data[\t\n\r ]*:[\t\n\r ]*image\/svg\+xml/i},{id:`html-inline-event-handler`,description:`Inline event handler attributes: onclick=, onerror=, onload=, etc.`,pattern:/\bon\w{1,30}\s*=/i},{id:`html-entity-obfuscated-script`,description:`HTML-entity-encoded <script (e.g. <script or <script)`,pattern:/(?:�*3[Cc];?|�*60;?|<)\s*script/i},{id:`html-entity-obfuscated-javascript`,description:`HTML-entity-encoded javascript: (partial — catches common j or j for "j")`,pattern:/(?:�*6[Aa];?|�*106;?)\s*(?:�*61;?|a)[\s\S]{0,80}script\s*:/i},{id:`html-style-expression`,description:`CSS expression() — IE-era code execution in style attributes`,pattern:/style[\s\S]{0,20}expression\s*\(/i},{id:`html-object-embed`,description:`<object or <embed tags that can load active content`,pattern:/<(?:object|embed)[\s>/]/i},{id:`html-base-tag`,description:`<base href= — can hijack all relative URLs on a page`,pattern:/<base[\s>]/i},{id:`html-meta-refresh`,description:`<meta http-equiv="refresh" — can redirect users`,pattern:/<meta[\s\S]{0,40}http-equiv[\s\S]{0,20}refresh/i},{id:`html-srcdoc`,description:`srcdoc= attribute on iframes — embeds HTML that can run scripts`,pattern:/srcdoc\s*=/i},{id:`html-iframe`,description:`<iframe tag`,pattern:/<iframe[\s>/]/i},{id:`html-form`,description:`<form tag — can be used for phishing / credential harvesting injection`,pattern:/<form[\s>/]/i}],Et=[{id:`xml-cdata-injection`,description:`CDATA section injection: <![CDATA[ breaks out of text node context`,pattern:/<!\[CDATA\[/i},{id:`xml-cdata-close`,description:`CDATA close sequence: ]]> can terminate an enclosing CDATA section`,pattern:/\]\]>/},{id:`xml-processing-instruction`,description:`XML processing instruction: <?xml-stylesheet or <?php etc.`,pattern:/<\?(?:xml[\- ]|php|asp)/i},{id:`xml-doctype-injection`,description:`DOCTYPE declaration embedded in content — can define entities`,pattern:/<!DOCTYPE(?:[\s[]|$)/i},{id:`xml-entity-system`,description:`SYSTEM keyword — used in external entity declarations (XXE)`,pattern:/\bSYSTEM\s+["']/i},{id:`xml-entity-public`,description:`PUBLIC keyword — used in external entity declarations (XXE)`,pattern:/\bPUBLIC\s+["']/i},{id:`xml-entity-declaration`,description:`<!ENTITY declaration — defines entities, potential XXE or entity expansion`,pattern:/<!ENTITY[\s%]/i},{id:`xml-billion-laughs`,description:`Entity reference chaining / billion laughs: repeated &eX; style references`,pattern:/(?:&\w{1,20};){3,}/},{id:`xml-namespace-confusion`,description:`xmlns: attribute injection — can redefine namespaces to confuse parsers`,pattern:/\bxmlns(?::\w{1,40})?\s*=/i},{id:`xml-comment-injection`,description:`<!-- comment injection — can hide content from some parsers`,pattern:/<!--/},{id:`xml-comment-close`,description:`--> closes an enclosing XML comment`,pattern:/-->/},{id:`xml-pi-close`,description:`?> closes an enclosing processing instruction`,pattern:/\?>/}],Dt=[{id:`svg-script-element`,description:`<script element inside SVG executes JavaScript`,pattern:/<script[\s>/]/i},{id:`svg-xlink-href-javascript`,description:`xlink:href with javascript: — classic SVG XSS via <a> or <use>`,pattern:/xlink\s*:\s*href\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-href-javascript`,description:`href= with javascript: in SVG context (<a>, <animate>, etc.)`,pattern:/href\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-foreignobject`,description:`<foreignObject embeds HTML inside SVG — can execute scripts`,pattern:/<foreignObject[\s>/]/i},{id:`svg-use-external`,description:`<use xlink:href or href pointing to external resource (non-fragment URL)`,pattern:/<use[\s\S]{0,60}(?:xlink\s*:\s*)?href\s*=\s*(?:["'][^#]|[^"'#\s>])/i},{id:`svg-animate-href`,description:`<animate attributeName="href" — can dynamically change href to javascript:`,pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*href["']/i},{id:`svg-animate-xlinkhref`,description:`<animate attributeName="xlink:href"`,pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*xlink\s*:\s*href["']/i},{id:`svg-set-javascript`,description:`<set to="javascript:..." — sets an attribute to a javascript: URI`,pattern:/<set[\s\S]{0,80}to\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-event-handler`,description:`SVG-specific event handler attributes: onload=, onerror=, onactivate=, etc.`,pattern:/\bon(?:load|error|activate|begin|end|repeat|focus|blur|click|mouse\w{1,20}|key\w{1,20})\s*=/i},{id:`svg-handler-generic`,description:`Generic on* handler catch-all for SVG attributes`,pattern:/\bon\w{1,30}\s*=/i},{id:`svg-filter-feimage`,description:`<feImage href= — filter primitive that can load external resources`,pattern:/<feImage[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=/i},{id:`svg-image-external`,description:`<image xlink:href with http/https or javascript protocol`,pattern:/<image[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=\s*["']?\s*(?:https?|javascript)\s*:/i},{id:`svg-style-javascript`,description:`style= attribute containing javascript: (e.g. background:url(javascript:...))`,pattern:/style\s*=[\s\S]{0,60}javascript\s*:/i}],Ot=[{id:`sql-block-comment-open`,description:`SQL block comment open: /* ... */ — unusual in legitimate user text`,pattern:/\/\*/},{id:`sql-union-select`,description:`UNION SELECT — most common SQL injection aggregation attack`,pattern:/\bUNION\s{1,20}(?:ALL\s{1,20})?SELECT\b/i},{id:`sql-drop-table`,description:`DROP TABLE — destructive DDL injection`,pattern:/\bDROP\s{1,20}TABLE\b/i},{id:`sql-drop-database`,description:`DROP DATABASE — destructive DDL injection`,pattern:/\bDROP\s{1,20}DATABASE\b/i},{id:`sql-insert-into`,description:`INSERT INTO — data injection`,pattern:/\bINSERT\s{1,20}INTO\b/i},{id:`sql-delete-from`,description:`DELETE FROM — data deletion injection`,pattern:/\bDELETE\s{1,20}FROM\b/i},{id:`sql-update-set`,description:`UPDATE ... SET — data modification injection`,pattern:/\bUPDATE\b[\s\S]{1,60}\bSET\b/i},{id:`sql-exec-xp`,description:`EXEC xp_ — MSSQL extended stored procedure execution`,pattern:/\bEXEC(?:UTE)?\s{1,20}xp_/i},{id:`sql-tautology-string`,description:`Classic string tautology: ' OR '1'='1 or " OR "1"="1"`,pattern:/'\s{0,10}OR\s{0,10}'[^']{0,20}'\s*=\s*'[^']{0,20}/i},{id:`sql-tautology-numeric`,description:`Numeric tautology: OR 1=1`,pattern:/\bOR\s{1,10}1\s*=\s*1\b/i},{id:`sql-always-true-zero`,description:`Numeric tautology: OR 0=0`,pattern:/\bOR\s{1,10}0\s*=\s*0\b/i},{id:`sql-sleep-benchmark`,description:`Time-based blind injection: SLEEP() or BENCHMARK()`,pattern:/\b(?:SLEEP|BENCHMARK)\s*\(/i},{id:`sql-waitfor-delay`,description:`MSSQL time-based blind injection: WAITFOR DELAY`,pattern:/\bWAITFOR\s{1,20}DELAY\b/i},{id:`sql-char-function`,description:`CHAR() function — used to obfuscate injected strings`,pattern:/\bCHAR\s*\(\s*\d{1,3}/i},{id:`sql-information-schema`,description:`INFORMATION_SCHEMA — reconnaissance query for table/column enumeration`,pattern:/\bINFORMATION_SCHEMA\b/i}],kt=[{id:`shell-path-traversal-unix`,description:`Unix path traversal: ../ — climbing the directory tree`,pattern:/\.\.\//},{id:`shell-path-traversal-windows`,description:`Windows path traversal: ..\\ — climbing the directory tree`,pattern:/\.\.\\/},{id:`shell-path-traversal-encoded`,description:`URL-encoded path traversal: %2e%2e or %2f variants`,pattern:/%2e%2e|%2f\.\.|\.\.%2f/i},{id:`shell-null-byte`,description:`Null byte injection: \\x00 or %00 — truncates strings in C-backed functions`,pattern:/\x00|%00/},{id:`shell-semicolon`,description:`Semicolon command separator: cmd1; cmd2`,pattern:/;/},{id:`shell-pipe`,description:`Pipe operator: cmd1 | cmd2`,pattern:/\|/},{id:`shell-and-operator`,description:`AND operator: cmd1 && cmd2`,pattern:/&&/},{id:`shell-or-operator`,description:`OR operator: cmd1 || cmd2`,pattern:/\|\|/},{id:`shell-backtick`,description:"Backtick command substitution: `cmd`",pattern:/`/},{id:`shell-dollar-paren`,description:`Dollar-paren command substitution: $(cmd)`,pattern:/\$\(/},{id:`shell-dollar-brace`,description:"Dollar-brace variable expansion: ${var} — can be abused for injection",pattern:/\$\{/},{id:`shell-redirect-out`,description:`Output redirection: cmd > file or cmd >> file`,pattern:/>{1,2}/},{id:`shell-redirect-in`,description:`Input redirection: cmd < file`,pattern:/</},{id:`shell-newline-injection`,description:`Newline injection: \\n or \\r — can inject new shell commands`,pattern:/[\n\r]/},{id:`shell-glob-star`,description:`Glob expansion: * or ? — can expand to unintended files`,pattern:/[/\\][*?]/},{id:`shell-absolute-root`,description:`Absolute root path injection: string starting with / or \\ (Windows UNC)`,pattern:/^(?:\/|\\\\)/},{id:`shell-windows-drive`,description:`Windows drive letter path injection: C:\\ or D:/`,pattern:/^[a-zA-Z]:[/\\]/},{id:`shell-curl-wget`,description:`curl/wget with URL or flags — can exfiltrate data or download payloads`,pattern:/\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i}],At=[{id:`redos-nested-quantifier-plus`,description:`Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.`,pattern:/\([^)]*\+[^)]*\)[+*]/},{id:`redos-nested-quantifier-star`,description:`Nested * quantifier: (a*)* or (a*)+ — catastrophic backtracking`,pattern:/\([^)]*\*[^)]*\)[*+]/},{id:`redos-nested-groups`,description:`Doubly nested quantified groups: ((a+)+) — guaranteed catastrophic`,pattern:/\(\([^)]{0,40}\)[+*]\)[+*]/},{id:`redos-alternation-overlap`,description:`Overlapping alternation under quantifier: (a|a)+ — ambiguous NFA paths`,pattern:/\(([^|()]{1,20})\|(?:\1)(?:\|[^|()]{1,20}){0,5}\)[+*?]{1,2}/},{id:`redos-star-plus-concat`,description:`(x*x)+ pattern — triggers super-linear backtracking`,pattern:/\([^)]{0,10}\*[^)]{0,10}\)[+*]/},{id:`redos-dot-star-greedy`,description:`(.*){n,} or (.+){n,} — repeated greedy dot quantifiers`,pattern:/\(\.[*+]\)\{?\d/},{id:`redos-large-repetition`,description:`Very large fixed or range repetition count {1000,} or {1000,n} — denial of service via backtracking`,pattern:/\{\d{4,}(?:,\d*)?\}/},{id:`redos-catastrophic-alternation`,description:`Long alternation with many similar branches — polynomial backtracking risk`,pattern:/\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/}],R=`["'\\s]*:`,jt=[{id:`nosql-where-operator`,description:`$where — executes arbitrary JavaScript server-side in MongoDB`,pattern:RegExp(`\\$where${R}`,`i`)},{id:`nosql-ne-operator`,description:`$ne — "not equal" operator used to bypass equality checks`,pattern:RegExp(`\\$ne${R}`,`i`)},{id:`nosql-gt-operator`,description:`$gt — "greater than" used to bypass password/value checks`,pattern:RegExp(`\\$gte?${R}`,`i`)},{id:`nosql-lt-operator`,description:`$lt / $lte — "less than" bypass variants`,pattern:RegExp(`\\$lte?${R}`,`i`)},{id:`nosql-regex-operator`,description:`$regex — can be used to extract data character by character (blind injection)`,pattern:RegExp(`\\$regex${R}`,`i`)},{id:`nosql-or-operator`,description:`$or — logical OR; used to create always-true conditions`,pattern:RegExp(`\\$or${R}\\s*\\[`,`i`)},{id:`nosql-and-operator`,description:`$and — logical AND operator injection`,pattern:RegExp(`\\$and${R}\\s*\\[`,`i`)},{id:`nosql-nor-operator`,description:`$nor — logical NOR operator injection`,pattern:RegExp(`\\$nor${R}\\s*\\[`,`i`)},{id:`nosql-exists-operator`,description:`$exists — can enumerate fields to determine schema`,pattern:RegExp(`\\$exists${R}`,`i`)},{id:`nosql-in-operator`,description:`$in — matches any value in a list; can enumerate values`,pattern:RegExp(`\\$in${R}\\s*\\[`,`i`)},{id:`nosql-expr-operator`,description:`$expr — allows aggregation expressions in queries (MongoDB 3.6+)`,pattern:RegExp(`\\$expr${R}`,`i`)},{id:`nosql-function-operator`,description:`$function — executes arbitrary JavaScript in MongoDB 4.4+`,pattern:RegExp(`\\$function${R}`,`i`)},{id:`nosql-accumulator-operator`,description:`$accumulator — custom aggregation with arbitrary JS execution`,pattern:RegExp(`\\$accumulator${R}`,`i`)},{id:`nosql-proto-pollution`,description:`__proto__ — prototype pollution via object key injection`,pattern:/__proto__/},{id:`nosql-constructor-prototype`,description:`constructor.prototype — alternative prototype pollution vector (dot notation or JSON key)`,pattern:/constructor[\s"':.,{\[]*prototype/i},{id:`nosql-proto-bracket`,description:`["__proto__"] — bracket-notation prototype pollution`,pattern:/\[["']__proto__["']\]/}],Mt=[{id:`log-crlf-injection`,description:`CRLF injection: literal \\r or \\n embeds fake log lines`,pattern:/[\r\n]/},{id:`log-url-encoded-crlf`,description:`URL-encoded CRLF: %0d, %0a, %0D, %0A — decoded by some log parsers`,pattern:/%0[dDaA]/},{id:`log-unicode-newline`,description:`Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)`,pattern:/[\u2028\u2029]/},{id:`log-log4shell-jndi`,description:"Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",pattern:/\$\{jndi\s*:/i},{id:`log-log4shell-obfuscated`,description:"Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",pattern:/\$\{::-/},{id:`log-log4j-lookup`,description:"Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} — data exfiltration",pattern:/\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i},{id:`log-ssti-double-brace`,description:`SSTI double-brace: {{expression}} — Jinja2, Twig, Handlebars, etc.`,pattern:/\{\{[\s\S]{0,80}\}\}/},{id:`log-ssti-hash-brace`,description:`SSTI hash-brace: #{expression} — Thymeleaf, Velocity, Ruby ERB`,pattern:/#\{[\s\S]{0,80}\}/},{id:`log-ssti-dollar-brace`,description:"SSTI/EL injection: ${expression with operators or method calls} — JSP EL, Freemarker, SpEL",pattern:/\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i},{id:`log-ssti-percent-tag`,description:`SSTI ERB/ASP tag: <%= expression %> — Ruby ERB, ASP`,pattern:/<%=[\s\S]{0,80}%>/},{id:`log-null-byte`,description:`Null byte: \\x00 or %00 — can truncate log entries in C-backed loggers`,pattern:/\x00|%00/},{id:`log-ansi-escape`,description:`ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed`,pattern:/\x1b\[/}],Nt=[{id:`sql-line-comment`,description:`SQL line comment: -- followed by whitespace or end of string`,pattern:/--(?:\s|$)/},{id:`sql-stacked-query`,description:`Stacked queries: semicolon immediately followed by a SQL keyword`,pattern:/;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i},{id:`sql-hex-encoding`,description:`Hex-encoded string injection: 0x41414141 style (MySQL)`,pattern:/\b0x[0-9a-f]{4,}/i}],Pt=[...Ot,...Nt];Tt.label=`HTML`,Et.label=`XML`,Dt.label=`SVG`,Ot.label=`SQL`,Pt.label=`SQL-STRICT`,kt.label=`SHELL`,At.label=`REDOS`,jt.label=`NOSQL`,Mt.label=`LOG`,Object.freeze({HTML:Tt,XML:Et,SVG:Dt,SQL:Ot,"SQL-STRICT":Pt,SHELL:kt,REDOS:At,NOSQL:jt,LOG:Mt});function Ft(e){if(typeof e!=`string`)throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`)}function It(e){if(!(e instanceof RegExp)){if(Array.isArray(e)){if(e.length===0)throw TypeError(`is-unsafe: context must not be an empty array`);if(Array.isArray(e[0])){for(let t of e)if(!Array.isArray(t)||t.length===0)throw TypeError(`is-unsafe: each context in the array must be a non-empty pattern array (PatternList)`)}}else throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`)}}function Lt(e){return e instanceof RegExp?{lists:null,regex:e}:Array.isArray(e[0])?{lists:e,regex:null}:{lists:[e],regex:null}}function Rt(e,t){let n=t.label??`CUSTOM`;for(let r of t)if(r.pattern.test(e))return{context:n,id:r.id,description:r.description,pattern:r.pattern};return null}function zt(e,t){Ft(e),It(t);let{lists:n,regex:r}=Lt(t);if(r)return r.test(e);for(let t of n)if(Rt(e,t)!==null)return!0;return!1}function Bt(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function Vt(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var Ht=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=qt,this.parseTextData=Ut,this.resolveNameSpace=Wt,this.buildAttributesMap=Kt,this.isItStopNode=Zt,this.replaceEntitiesValue=Yt,this.readStopNodeData=nn,this.saveTextToParentTag=Xt,this.addChild=Jt,this.ignoreAttributesFn=bt(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let n={...xe};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Se,...be}),this.entityDecoder=new Ne({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:(e,t)=>zt(t,[Tt,Et])?Ce.BLOCK:Ce.ALLOW})),this.matcher=new wt,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new St;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e<r.length;e++){let t=r[e];typeof t==`string`?this.stopNodeExpressionsSet.add(new xt(t)):t instanceof xt&&this.stopNodeExpressionsSet.add(t)}this.stopNodeExpressionsSet.seal()}}};function Ut(e,t,n,r,i,a,o){let s=this.options;if(e!==void 0&&(s.trimValues&&!r&&(e=e.trim()),e.length>0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?rn(e,s.parseTagValue,s.numberParseOptions):e}}function Wt(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}var Gt=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Kt(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=j(e,Gt),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e<a;e++){let t=this.resolveNameSpace(r[e][1]),a=r[e][4];if(t.length&&a!==void 0){let r=a;i.trimValues&&(r=r.trim()),r=this.replaceEntitiesValue(r,n,this.readonlyMatcher),s[e]=r,l[t]=r,c=!0}}c&&typeof t==`object`&&t.updateCurrent&&t.updateCurrent(l);let u=i.jPath?t.toString():this.readonlyMatcher,d=!1;for(let e=0;e<a;e++){let t=this.resolveNameSpace(r[e][1]);if(this.ignoreAttributesFn(t,u))continue;let n=i.attributeNamePrefix+t;if(t.length){if(i.transformAttributeName&&(n=i.transformAttributeName(n)),n=on(n,i),r[e][4]!==void 0){let r=s[e],a=i.attributeValueProcessor(t,r,u);a==null?o[n]=r:typeof a!=typeof r||a!==r?o[n]=a:o[n]=rn(r,i.parseAttributeValue,i.numberParseOptions),d=!0}else i.allowBooleanAttributes&&(o[n]=!0,d=!0)}}if(!d)return;if(i.attributesGroupName&&!i.preserveOrder){let e={};return e[i.attributesGroupName]=o,e}return o}}var qt=function(e){e=e.replace(/\r\n?/g,`
|
|
4
|
-
`);let t=new I(`!xml`),n=t,r=``;this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let i=this.options,a=new Xe(i.processEntities),o=e.length;for(let s=0;s<o;s++)if(e[s]===`<`){let c=e.charCodeAt(s+1);if(c===47){let a=$t(e,`>`,s,`Closing Tag is not closed.`),o=e.substring(s+2,a).trim();if(i.removeNSPrefix){let e=o.indexOf(`:`);e!==-1&&(o=o.substr(e+1))}o=an(i.transformTagName,o,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(o&&i.unpairedTagsSet.has(o))throw Error(`Unpaired tag can not be used as closing tag: </${o}>`);c&&i.unpairedTagsSet.has(c)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop()||t,i.captureMetaData&&n&&n.addEndIndex(a+1),r=``,s=a}else if(c===63){let t=tn(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new I(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s),i.captureMetaData&&n.addEndIndex(t.closeIndex+2)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=$t(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){if(this.doctypefound)throw Error(`Multiple DOCTYPE declarations found.`);this.doctypefound=!0;let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=$t(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=tn(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=an(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=Vt(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Bt(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new I(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_),i.captureMetaData&&n.addEndIndex(s+1)}else{if(m){({tagName:c,tagExp:u}=an(i.transformTagName,c,u,i));let e=new I(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),i.captureMetaData&&n.addEndIndex(f+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new I(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),i.captureMetaData&&n.addEndIndex(a.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new I(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Jt(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function Yt(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function Xt(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Zt(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Qt(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n<i;n++){let t=e.charCodeAt(n);if(r)t===r&&(r=0);else if(t===34||t===39)r=t;else if(t===a){if(o!==-1){if(e.charCodeAt(n+1)===o)return s+=e.substring(c,n),{data:s,index:n}}else return s+=e.substring(c,n),{data:s,index:n}}else t===9&&!r&&(s+=e.substring(c,n)+` `,c=n+1)}}function $t(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i+t.length-1}function en(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i}function tn(e,t,n,r=`>`){let i=Qt(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function nn(e,t,n){let r=n,i=1,a=e.length;for(;n<a;n++)if(e[n]===`<`){let a=e.charCodeAt(n+1);if(a===47){let a=en(e,`>`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=$t(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=$t(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=$t(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=tn(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function rn(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`||t!==`false`&&mt(e,n)}return re(e)?e:``}function an(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=on(t,r),{tagName:t,tagExp:n}}function on(e,t){if(ae.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return ie.includes(e)?t.onDangerousProperty(e):e}var sn=I.getMetaDataSymbol();function cn(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function ln(e,t,n,r){return un(e,t,n,r)}function un(e,t,n,r){let i,a={};for(let o=0;o<e.length;o++){let s=e[o],c=dn(s);if(c!==void 0&&c!==t.textNodeName){let e=cn(s[`:@`]||{},t.attributeNamePrefix);n.push(c,e)}if(c===t.textNodeName)i===void 0?i=s[c]:i+=``+s[c];else if(c===void 0)continue;else if(s[c]){let e=un(s[c],t,n,r),i=pn(e,t);if(Object.keys(e).length===0&&t.alwaysCreateTextNode&&(e[t.textNodeName]=``),s[`:@`]?fn(e,s[`:@`],r,t):Object.keys(e).length===1&&e[t.textNodeName]!==void 0&&!t.alwaysCreateTextNode?e=e[t.textNodeName]:Object.keys(e).length===0&&(t.alwaysCreateTextNode?e[t.textNodeName]=``:e=``),s[sn]!==void 0&&typeof e==`object`&&e&&(e[sn]=s[sn]),a[c]!==void 0&&Object.prototype.hasOwnProperty.call(a,c))Array.isArray(a[c])||(a[c]=[a[c]]),a[c].push(e);else{let n=t.jPath?r.toString():r;a[c]=t.isArray(c,n,i)?[e]:e}c!==void 0&&c!==t.textNodeName&&n.pop()}}return typeof i==`string`?i.length>0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function dn(e){let t=Object.keys(e);for(let e=0;e<t.length;e++){let n=t[e];if(n!==`:@`)return n}}function fn(e,t,n,r){if(t){let i=Object.keys(t),a=i.length;for(let o=0;o<a;o++){let a=i[o],s=a.startsWith(r.attributeNamePrefix)?a.substring(r.attributeNamePrefix.length):a,c=r.jPath?n.toString()+`.`+s:n;e[a]=r.isArray(a,c,!0,!0)?[t[a]]:t[a]}}}function pn(e,t){let{textNodeName:n}=t,r=Object.keys(e).length;return!!(r===0||r===1&&(e[n]||typeof e[n]==`boolean`||e[n]===0))}var mn=class{constructor(e){this.externalEntities={},this.options=Re(e)}parse(e,t){if(typeof e!=`string`&&e.toString)e=e instanceof Uint8Array&&!(typeof Buffer<`u`&&Buffer.isBuffer(e))?new TextDecoder(`utf-8`,{ignoreBOM:!0}).decode(e):e.toString();else if(typeof e!=`string`)throw Error(`XML data is accepted in String or Bytes[] form.`);if(t){t===!0&&(t={});let n=se(e,t);if(n!==!0)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}let n=new Ht(this.options,this.externalEntities),r=n.parseXml(e);return this.options.preserveOrder||r===void 0?r:ln(r,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(t.indexOf(`&`)!==-1)throw Error(`Entity value can't have '&'`);if(e.indexOf(`&`)!==-1||e.indexOf(`;`)!==-1)throw Error(`An entity must be set without '&' and ';'. Eg. use '#xD' for '
'`);if(t===`&`)throw Error(`An entity with value '&' is not permitted`);this.externalEntities[e]=t}static getMetaDataSymbol(){return I.getMetaDataSymbol()}},hn={"&":`&`,"<":`<`,">":`>`,'"':`"`},gn=e=>e<32&&e!==9&&e!==10||e===65534||e===65535||e>=55296&&e<=57343,_n=e=>e.toString(16).toUpperCase().padStart(4,`0`);function vn(e){let t=e.replace(/_(?=x[0-9A-Fa-f]{4}_)/gu,`_x005F_`),n=``;for(let e of t){let t=e.codePointAt(0)??0;n+=e.length===1&&gn(t)?`_x${_n(t)}_`:e}return n.replace(/[&<>"]/gu,e=>hn[e]??e)}var yn=e=>vn(e).replace(/[\t\n\r]/gu,e=>`_x${_n(e.charCodeAt(0))}_`),z=e=>e.includes(`_x`)?e.replace(/_x([0-9A-Fa-f]{4})_/gu,(e,t)=>String.fromCharCode(Number.parseInt(t,16))):e;function B(e,t={},...n){let r=``;for(let[e,n]of Object.entries(t))n!==void 0&&(r+=` ${e}="${yn(typeof n==`boolean`?n?`1`:`0`:String(n))}"`);let i=n.join(``);return i===``?`<${e}${r}/>`:`<${e}${r}>${i}</${e}>`}var bn={main:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,rel:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,pkg:`http://schemas.openxmlformats.org/package/2006/relationships`,types:`http://schemas.openxmlformats.org/package/2006/content-types`,drawing:`http://schemas.openxmlformats.org/drawingml/2006/main`},xn=new Set(`c.row.col.cols.si.r.rPh.sheet.definedName.font.fill.border.numFmt.xf.Relationship.Override.Default.mergeCell.tablePart.tableColumn.sheetView.pane.selection.conditionalFormatting.dataValidation.hyperlink.rgbColor.brk.filterColumn.externalReference.gsd`.split(`.`)),Sn=new mn({ignoreAttributes:!1,attributeNamePrefix:``,removeNSPrefix:!0,trimValues:!1,parseTagValue:!1,parseAttributeValue:!1,processEntities:!0,htmlEntities:!0,textNodeName:`#text`,isArray:(e,t,n,r)=>!r&&xn.has(e)});function Cn(e){return Sn.parse(e.replace(/\r\n?/gu,`
|
|
5
|
-
`))}var wn=e=>typeof e==`object`?e:{},V=e=>Array.isArray(e)?e.map(wn):e===void 0?[]:[wn(e)],H=e=>{let t=Array.isArray(e)?e[0]:e;return t===void 0?void 0:wn(t)};function U(e){if(typeof e==`string`)return e;if(e==null)return``;if(Array.isArray(e))return e.map(U).join(``);let t=e[`#text`];return typeof t==`string`?t:``}var W=(e,t)=>{let n=e?.[t];return typeof n==`string`?n:void 0},G=(e,t)=>{let n=W(e,t);if(n===void 0||n===``)return;let r=Number(n);return Number.isFinite(r)?r:void 0},K=(e,t)=>{let n=W(e,t);return n===void 0?void 0:n===`1`||n===`true`},Tn=9525;function En(e){if(Array.isArray(e))return e.map(En).join(``);if(typeof e!=`object`||!e)return``;let t=e,n=[];for(let[e,r]of Object.entries(t))e===`t`?n.push(U(r)):typeof r==`object`&&n.push(En(r));return n.join(``)}var Dn=e=>{let t=H(e?.solidFill),n=W(H(t?.srgbClr),`val`);return n===void 0?On[W(H(t?.schemeClr),`val`)??``]:`#${n.toUpperCase()}`},On={accent1:`#4472C4`,accent2:`#ED7D31`,accent3:`#A5A5A5`,accent4:`#FFC000`,accent5:`#5B9BD5`,accent6:`#70AD47`},q=(e,t)=>W(H(e?.[t]),`val`),kn=(e,t)=>G(H(e?.[t]),`val`),An=(e,t)=>K(H(e?.[t]),`val`),jn=e=>/^"(?:[^"]|"")*"$/u.test(e)?e.slice(1,-1).replaceAll(`""`,`"`):void 0,Mn=e=>jn(e)??`=${e}`;function Nn(e){if(!e)return;let t=H(e.tx),n=H(t?.strRef);if(n)return Mn(U(n.f));let r=En(t?.rich);return r===``?void 0:r}function Pn(e){if(!e)return;let t=H(e.scaling),n=H(e.numFmt),r=W(n,`formatCode`),i={},a=Nn(H(e.title));a!==void 0&&(i.title=a);let o=kn(t,`min`),s=kn(t,`max`),c=kn(e,`majorUnit`);return o!==void 0&&(i.min=o),s!==void 0&&(i.max=s),c!==void 0&&c>0&&(i.major=c),An(e,`delete`)===!0&&(i.visible=!1),q(t,`orientation`)===`maxMin`&&(i.reverse=!0),r!==void 0&&r!==`General`&&K(n,`sourceLinked`)!==!0&&(i.format=r),i}var Fn=e=>{let t=H(e?.numRef)??H(e?.strRef),n=t?U(t.f):``;return n===``?void 0:n};function In(e,t){let n=Fn(H(e[t?`yVal`:`val`]));if(n===void 0)return`its numbers are written in the chart`;let r={values:n},i=H(e.tx),a=Fn(i);if(a!==void 0)r.name=Mn(a);else{let e=U(i?.v);e!==``&&(r.name=e)}let o=H(e.spPr),s=H(o?.ln),c=H(e.marker),u=t||c!==void 0,d=Dn(o)??(u?Dn(s)??Dn(H(c?.spPr)):void 0);d!==void 0&&(r.color=d);let f=G(s,`w`);if(u&&f!==void 0&&s?.noFill===void 0){let e=Math.max(.25,Number((f/12700).toFixed(2)));e!==l.lineWidth&&(r.line_width=e)}An(e,`smooth`)===!0&&(r.smooth=!0);let p=kn(c,`size`);p!==void 0&&p!==l.marker&&(r.marker_size=p);let m=t?Fn(H(e.xVal)):void 0;m!==void 0&&(r.x=m);let h=t?void 0:Fn(H(e.cat));return{series:r,...h===void 0?{}:{categories:h}}}function Ln(e,t){let n=V(t.ser),r=e=>H(H(e.spPr)?.ln)?.noFill!==void 0,i=e=>q(H(e.marker),`symbol`)===`none`;switch(e){case`barChart`:return Rn(t);case`lineChart`:return n.every(i)?`line`:`line-markers`;case`areaChart`:return zn(t);case`pieChart`:return`pie`;case`doughnutChart`:return`doughnut`;case`scatterChart`:return n.every(r)?`scatter`:n.some(e=>An(e,`smooth`)===!0)?`scatter-smooth`:`scatter-lines`;default:return}}function Rn(e){let t=q(e,`barDir`)===`bar`?`bar`:`column`,n=q(e,`grouping`);return n===`stacked`?`${t}-stacked`:n===`percentStacked`?`${t}-stacked-100`:`${t}-clustered`}function zn(e){let t=q(e,`grouping`);return t===`stacked`?`area-stacked`:t===`percentStacked`?`area-stacked-100`:`area`}function Bn(e,t,n){if(e===void 0)return;let r=e.replace(/^=/u,``);if(/(?:^|[(,])'?\[\d+\]/u.test(r))return`it reads another workbook`;if(e.includes(`#REF!`))return`its cells were deleted (#REF!)`;let i=/^(?:'((?:[^']|'')+)'|([^!'(),]+))!/u.exec(r),a=i?.[1]?.replaceAll(`''`,`'`)??i?.[2];if(a!==void 0&&!t(a))return`it reads a sheet the workbook does not have (${a})`;let o=y(`=${r}`);if(!o.ok||!Vn(o.node,n))return`it names no cells (${r})`}function Vn(e,t){switch(e.kind){case`ref`:case`structured`:return!0;case`name`:return e.sheet!==void 0||t(e.name);case`paren`:return Vn(e.arg,t);case`binary`:return(e.op===`,`||e.op===`:`)&&Vn(e.left,t)&&Vn(e.right,t);default:return!1}}function Hn(e,t=[],n=()=>!0,r=()=>!0){let i=H(e?.chartSpace),a=H(i?.chart),o=H(a?.plotArea);if(!a||!o)return`it has no plot`;let s=Object.entries(o).filter(([e])=>e.endsWith(`Chart`)).flatMap(([e,t])=>V(t).map(t=>({kind:e,plot:t}))),[c]=s;if(!c)return`it has no plot`;let l=V(o.valAx),u=e=>V(e.axId).map(e=>W(e,`val`)),d=e=>{let t=l.find(t=>u(e).includes(W(H(t.axId),`val`)));return t!==void 0&&q(t,`axPos`)===`r`},f=s.length>1,p=s.map(({kind:e,plot:t})=>({kind:e,plot:t,type:Ln(e,t),secondary:f&&d(t)}));if(f&&p.some(e=>e.type===void 0||!(e.type.startsWith(`column`)||e.type.startsWith(`line`)||e.type.startsWith(`area`))))return`it combines several kinds of chart, not columns, lines and areas`;let{kind:m,plot:h}=p.find(e=>!e.secondary)??p[0]??c,g=m===`scatterChart`,_=[],v,y,b=p.flatMap(e=>V(e.plot.ser).map(t=>({s:t,of:e}))),x=b.filter(({s:e})=>e.trendline!==void 0).length;x>0&&t.push(x===1?`trendline`:`trendlines of ${String(x)} series`);let S=b.filter(({s:e})=>e.errBars!==void 0).length;S>0&&t.push(S===1?`error bars`:`error bars of ${String(S)} series`);for(let[e,{s:i,of:a}]of b.entries()){let o=In(i,g);if(typeof o==`string`)return o;if(f){let e=a.type;e!==void 0&&e!==Ln(m,h)&&(o.series.type=e),a.secondary&&(o.series.secondary=!0)}let s=Bn(o.series.values,n,r);s===void 0?(o.series.name?.startsWith(`=`)===!0&&Bn(o.series.name,n,r)!==void 0&&delete o.series.name,Bn(o.series.x,n,r)!==void 0&&delete o.series.x,_.push(o.series),Bn(o.categories,n,r)===void 0&&(v??=o.categories)):(t.push(`series ${String(e+1)}, as ${s}`),y=s)}if(_.length===0)return y===void 0?`it has no series`:`every series ${y.replace(/^it /u,``)}`;let C=Ln(m,h);if(!C)return`a sheet has no ${m.replace(/Chart$/u,``)} chart`;let w=Nn(H(a.title)),T=H(a.legend),ee=q(T,`legendPos`),E=H(h.dLbls),D=e=>An(E,e)===!0,O=D(`showVal`)||D(`showPercent`)||D(`showCatName`)||D(`showSerName`),k=q(E,`dLblPos`),A=kn(h,`gapWidth`),te=kn(h,`overlap`),j=kn(h,`holeSize`),ne=An(h,`varyColors`),re=C===`pie`||C===`doughnut`,ie=e=>u(h).includes(W(H(e.axId),`val`)),ae=[...V(o.catAx),...V(o.dateAx)],oe={value:f?l.find(ie)??l[0]:l.find((e,t,n)=>!g||t===n.length-1),category:g?l[0]:f?ae.find(ie)??ae[0]:H(o.catAx)??H(o.dateAx),second:p.some(e=>e.secondary)?l.find(e=>q(e,`axPos`)===`r`):void 0},se=Pn(oe.value),M=Pn(oe.category);se&&oe.value?.majorGridlines===void 0&&(se.gridlines=!1),M&&oe.category?.majorGridlines!==void 0&&(M.gridlines=!0);let ce=G(H(H(H(H(i?.txPr)?.p)?.pPr)?.defRPr),`sz`),le=e=>e&&Object.keys(e).length>0?e:void 0,ue=le(se),de=le(M),fe=Pn(oe.second);fe&&oe.second?.majorGridlines!==void 0&&(fe.gridlines=!0);let pe=le(fe);return{type:C,at:`A1`,...w===void 0?{}:{title:w},...v===void 0?{}:{categories:v},series:re?_.slice(0,1):_,...T?{legend:ee===`b`?`bottom`:ee===`t`?`top`:ee===`l`?`left`:`right`}:{},...O?{labels:{...D(`showVal`)?{value:!0}:{},...D(`showPercent`)?{percentage:!0}:{},...D(`showCatName`)?{category:!0}:{},...D(`showSerName`)?{series:!0}:{},...k===void 0?{}:{position:k}}}:{},...A===void 0||A===150?{}:{gap_width:A},...te===void 0||C.includes(`stacked`)?{}:{overlap:te},...j===void 0||j===50?{}:{hole_size:j},...ne===!0&&m===`barChart`?{vary_by_categories:!0}:{},...ne===!1&&re?{vary_by_categories:!1}:{},...ue?{value_axis:ue}:{},...de?{category_axis:de}:{},...pe?{secondary_axis:pe}:{},...ce===void 0||ce===900?{}:{size:ce/100}}}var Un=e=>Math.round(e/Tn);function Wn(e,t,n){let r=H(e?.wsDr),i=[],a=[],o=0,s=e=>({col:Number(U(e?.col)),row:Number(U(e?.row)),colOff:Un(Number(U(e?.colOff))),rowOff:Un(Number(U(e?.rowOff)))}),c=e=>W(H(H(H(H(e.graphicFrame)?.graphic)?.graphicData)?.chart),`id`),l=(e,t,n,r)=>{let s={at:{row:t.row,col:t.col},...t.colOff>0?{x:t.colOff}:{},...t.rowOff>0?{y:t.rowOff}:{},width:n,height:r},l=H(e.pic),u=W(H(H(l?.blipFill)?.blip),`embed`);if(l&&u!==void 0){let e=H(H(l.nvPicPr)?.cNvPr),t=W(e,`name`),n=W(e,`descr`);a.push({id:u,...s,...t===void 0?{}:{name:t},...n===void 0?{}:{descr:n}});return}let d=c(e);d===void 0?o+=1:i.push({id:d,...s})};for(let e of V(r?.oneCellAnchor)){let t=H(e.ext);l(e,s(H(e.from)),Un(G(t,`cx`)??0),Un(G(t,`cy`)??0))}for(let e of V(r?.twoCellAnchor)){let r=s(H(e.from)),i=s(H(e.to)),a=i.colOff-r.colOff;for(let e=r.col;e<i.col;e++)a+=t(e);let o=i.rowOff-r.rowOff;for(let e=r.row;e<i.row;e++)o+=n(e);l(e,r,a,o)}return{anchors:i,pictures:a,others:o}}var Gn=`_xlfn._xlws.FILTER _xlfn._xlws.PY
|
|
6
|
-
_xlfn._xlws.SORT _xlfn.ACOT _xlfn.ACOTH _xlfn.AGGREGATE _xlfn.ARABIC _xlfn.BASE
|
|
7
|
-
_xlfn.BETA.DIST _xlfn.BETA.INV _xlfn.BINOM.DIST _xlfn.BINOM.DIST.RANGE
|
|
8
|
-
_xlfn.BINOM.INV _xlfn.BITAND _xlfn.BITLSHIFT _xlfn.BITOR _xlfn.BITRSHIFT
|
|
9
|
-
_xlfn.BITXOR _xlfn.BYCOL _xlfn.BYROW _xlfn.CEILING.MATH _xlfn.CEILING.PRECISE
|
|
10
|
-
_xlfn.CHISQ.DIST _xlfn.CHISQ.DIST.RT _xlfn.CHISQ.INV _xlfn.CHISQ.INV.RT
|
|
11
|
-
_xlfn.CHISQ.TEST _xlfn.CHOOSECOLS _xlfn.CHOOSEROWS _xlfn.COMBINA _xlfn.CONCAT
|
|
12
|
-
_xlfn.CONFIDENCE.NORM _xlfn.CONFIDENCE.T _xlfn.COT _xlfn.COTH
|
|
13
|
-
_xlfn.COVARIANCE.P _xlfn.COVARIANCE.S _xlfn.CSC _xlfn.CSCH _xlfn.DAYS
|
|
14
|
-
_xlfn.DECIMAL _xlfn.DROP ECMA.CEILING _xlfn.ERF.PRECISE _xlfn.ERFC.PRECISE
|
|
15
|
-
_xlfn.EXPAND _xlfn.EXPON.DIST _xlfn.F.DIST _xlfn.F.DIST.RT _xlfn.F.INV
|
|
16
|
-
_xlfn.F.INV.RT _xlfn.F.TEST _xlfn.FIELDVALUE _xlfn.FILTERXML _xlfn.FLOOR.MATH
|
|
17
|
-
_xlfn.FLOOR.PRECISE _xlfn.FORECAST.ETS _xlfn.FORECAST.ETS.CONFINT
|
|
18
|
-
_xlfn.FORECAST.ETS.SEASONALITY _xlfn.FORECAST.ETS.STAT _xlfn.FORECAST.LINEAR
|
|
19
|
-
_xlfn.FORMULATEXT _xlfn.GAMMA _xlfn.GAMMA.DIST _xlfn.GAMMA.INV
|
|
20
|
-
_xlfn.GAMMALN.PRECISE _xlfn.GAUSS _xlfn.HSTACK _xlfn.HYPGEOM.DIST _xlfn.IFNA
|
|
21
|
-
_xlfn.IFS _xlfn.IMCOSH _xlfn.IMCOT _xlfn.IMCSC _xlfn.IMCSCH _xlfn.IMSEC
|
|
22
|
-
_xlfn.IMSECH _xlfn.IMSINH _xlfn.IMTAN _xlfn.ISFORMULA ISO.CEILING
|
|
23
|
-
_xlfn.ISOMITTED _xlfn.ISOWEEKNUM _xlfn.LAMBDA _xlfn.LET _xlfn.LOGNORM.DIST
|
|
24
|
-
_xlfn.LOGNORM.INV _xlfn.MAKEARRAY _xlfn.MAP _xlfn.MAXIFS _xlfn.MINIFS
|
|
25
|
-
_xlfn.MODE.MULT _xlfn.MODE.SNGL _xlfn.MUNIT _xlfn.NEGBINOM.DIST
|
|
26
|
-
NETWORKDAYS.INTL _xlfn.NORM.DIST _xlfn.NORM.INV _xlfn.NORM.S.DIST
|
|
27
|
-
_xlfn.NORM.S.INV _xlfn.NUMBERVALUE _xlfn.PDURATION _xlfn.PERCENTILE.EXC
|
|
28
|
-
_xlfn.PERCENTILE.INC _xlfn.PERCENTRANK.EXC _xlfn.PERCENTRANK.INC
|
|
29
|
-
_xlfn.PERMUTATIONA _xlfn.PHI _xlfn.POISSON.DIST _xlfn.PQSOURCE
|
|
30
|
-
_xlfn.PYTHON_STR _xlfn.PYTHON_TYPE _xlfn.PYTHON_TYPENAME _xlfn.QUARTILE.EXC
|
|
31
|
-
_xlfn.QUARTILE.INC _xlfn.QUERYSTRING _xlfn.RANDARRAY _xlfn.RANK.AVG
|
|
32
|
-
_xlfn.RANK.EQ _xlfn.REDUCE _xlfn.RRI _xlfn.SCAN _xlfn.SEC _xlfn.SECH
|
|
33
|
-
_xlfn.SEQUENCE _xlfn.SHEET _xlfn.SHEETS _xlfn.SKEW.P _xlfn.SORTBY
|
|
34
|
-
_xlfn.STDEV.P _xlfn.STDEV.S _xlfn.SWITCH _xlfn.T.DIST _xlfn.T.DIST.2T
|
|
35
|
-
_xlfn.T.DIST.RT _xlfn.T.INV _xlfn.T.INV.2T _xlfn.T.TEST _xlfn.TAKE
|
|
36
|
-
_xlfn.TEXTAFTER _xlfn.TEXTBEFORE _xlfn.TEXTJOIN _xlfn.TEXTSPLIT _xlfn.TOCOL
|
|
37
|
-
_xlfn.TOROW _xlfn.UNICHAR _xlfn.UNICODE _xlfn.UNIQUE _xlfn.VAR.P _xlfn.VAR.S
|
|
38
|
-
_xlfn.VSTACK _xlfn.WEBSERVICE _xlfn.WEIBULL.DIST WORKDAY.INTL _xlfn.WRAPCOLS
|
|
39
|
-
_xlfn.WRAPROWS _xlfn.XLOOKUP _xlfn.XOR _xlfn.Z.TEST`,Kn=`ENCODEURL ARRAYTOTEXT VALUETOTEXT IMAGE REGEXTEST
|
|
40
|
-
REGEXEXTRACT REGEXREPLACE GROUPBY PIVOTBY PERCENTOF TRIMRANGE`,qn=new Map;for(let e of Gn.split(/\s+/u)){let t=Jn(e);qn.set(t,e.startsWith(`_xlfn._xlws.`)?e:`_xlfn.${t}`)}for(let e of Kn.split(/\s+/u))qn.set(e,`_xlfn.${e}`);function Jn(e){return e.replace(/^(?:_xlfn\.|_xlws\.|_xludf\.)+/iu,``)}function Yn(e){switch(e.kind){case`ref`:return e.col2!==void 0||e.row2!==void 0;case`structured`:return!e.thisRow||e.columns.length>1;case`paren`:return Yn(e.arg);case`binary`:return e.op===`:`||e.op===`,`;default:return!1}}var Xn=new Set([`+`,`-`,`*`,`/`,`^`,`&`,`=`,`<>`,`<`,`<=`,`>`,`>=`]);new Set(`BYCOL BYROW CHOOSECOLS CHOOSEROWS DROP EXPAND FILTER HSTACK MAKEARRAY MAP
|
|
41
|
-
RANDARRAY SCAN SEQUENCE SORT SORTBY TAKE TEXTSPLIT TOCOL TOROW UNIQUE VSTACK
|
|
42
|
-
WRAPCOLS WRAPROWS`.split(/\s+/u));var Zn=new Set([`IF`,`IFERROR`,`IFNA`]);function Qn(e,t){let n=_.get(e);if(n?.kind===`scalar`)return!0;if(n?.kind!==`raw`)return!1;let{fixed:r,group:i}=n.params;return t<r.length?r[t]===`value`:i.length>0&&i[(t-r.length)%i.length]===`value`}function $n(e,t=()=>!1){let n=e=>e.kind!==`array`&&(Yn(e)||e.kind===`name`&&t(e.name))?{kind:`unary`,op:`@`,arg:e}:r(e),r=e=>{switch(e.kind){case`unary`:return e.op===`@`?e:{...e,arg:n(e.arg)};case`postfix`:return e.op===`%`?{...e,arg:n(e.arg)}:e;case`paren`:return{...e,arg:r(e.arg)};case`binary`:return Xn.has(e.op)?{...e,left:n(e.left),right:n(e.right)}:e;case`call`:{let[t,...r]=e.args;return Zn.has(e.name)&&t?{...e,args:[n(t),...r]}:e.args.some((t,n)=>Qn(e.name,n))?{...e,args:e.args.map((t,r)=>Qn(e.name,r)?n(t):t)}:e}default:return e}};return n(e)}function J(e){switch(e.kind){case`name`:return e.name.toLowerCase().startsWith(`_xlpm.`)?{...e,name:e.name.slice(6)}:e;case`structured`:return e;case`unary`:case`postfix`:case`paren`:return{...e,arg:J(e.arg)};case`binary`:return{...e,left:J(e.left),right:J(e.right)};case`call`:{let t=Jn(e.written).toUpperCase(),n=e.args.map(J),[r]=n;return t===`ANCHORARRAY`&&r&&n.length===1?{kind:`postfix`,op:`#`,arg:r}:t===`SINGLE`&&r&&n.length===1?{kind:`unary`,op:`@`,arg:r}:{...e,name:t,written:t,args:n}}case`invoke`:return{...e,callee:J(e.callee),args:e.args.map(J)};case`array`:return{...e,rows:e.rows.map(e=>e.map(J))};default:return e}}function er(e,t,n){let r=y(`=${e}`);if(!r.ok)return r;let i=J(r.node);return{ok:!0,node:t?i:$n(i,n)}}function tr(e){let t=y(`=${e}`);return t.ok&&Yn(J(t.node))}var nr=`000000 FFFFFF FF0000 00FF00 0000FF FFFF00 FF00FF 00FFFF 000000 FFFFFF FF0000 00FF00 0000FF FFFF00 FF00FF 00FFFF 800000 008000 000080 808000 800080 008080 C0C0C0 808080 9999FF 993366 FFFFCC CCFFFF 660066 FF8080 0066CC CCCCFF 000080 FF00FF FFFF00 00FFFF 800080 800000 008080 0000FF 00CCFF CCFFFF CCFFCC FFFF99 99CCFF FF99CC CC99FF FFCC99 3366FF 33CCCC 99CC00 FFCC00 FF9900 FF6600 666699 969696 003366 339966 003300 333300 993300 993366 333399 333333`.split(` `),rr=[`FFFFFF`,`000000`,`E7E6E6`,`44546A`,`4472C4`,`ED7D31`,`A5A5A5`,`FFC000`,`5B9BD5`,`70AD47`,`0563C1`,`954F72`];function ir(e){let t=H(H(H(Cn(e).theme)?.themeElements)?.clrScheme);if(!t)return[...rr];let n=(e,n)=>{let r=H(t[e]),i=H(r?.srgbClr),a=H(r?.sysClr);return(W(i,`val`)??W(a,`lastClr`)??rr[n]??`000000`).toUpperCase()};return[n(`lt1`,0),n(`dk1`,1),n(`lt2`,2),n(`dk2`,3),...[1,2,3,4,5,6].map(e=>n(`accent${String(e)}`,e+3)),n(`hlink`,10),n(`folHlink`,11)]}function ar(e){let t=Number.parseInt(e.slice(0,2),16)/255,n=Number.parseInt(e.slice(2,4),16)/255,r=Number.parseInt(e.slice(4,6),16)/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return[0,0,o];let s=i-a,c=o>.5?s/(2-i-a):s/(i+a);return[(i===t?(n-r)/s+(n<r?6:0):i===n?(r-t)/s+2:(t-n)/s+4)/6,c,o]}function or(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=e=>{let a=e<0?e+1:e>1?e-1:e,o=t===0?n:a<1/6?i+(r-i)*6*a:a<1/2?r:a<2/3?i+(r-i)*(2/3-a)*6:i;return Math.round(o*255).toString(16).toUpperCase().padStart(2,`0`)};return`${a(e+1/3)}${a(e)}${a(e-1/3)}`}function sr(e,t){if(t===0)return e;let[n,r,i]=ar(e),a=t<0?i*(1+t):i*(1-t)+t;return or(n,r,Math.min(1,Math.max(0,a)))}var cr=(e,t)=>{let n=V(H(H(t?.colors)?.indexedColors)?.rgbColor);return{theme:e,indexed:n.length>0?n.map(e=>(W(e,`rgb`)??`00000000`).slice(-6).toUpperCase()):nr}};function Y(e,t){if(!e||W(e,`auto`)===`1`)return;let n=W(e,`rgb`),r=Number(W(e,`tint`)??0),i;n!==void 0&&(i=n.slice(-6).toUpperCase());let a=W(e,`theme`);i===void 0&&a!==void 0&&(i=t.theme[Number(a)]);let o=W(e,`indexed`);if(i===void 0&&o!==void 0){let e=Number(o);i=e===64?`000000`:e===65?`FFFFFF`:t.indexed[e]}return i===void 0?void 0:`#${sr(i,r)}`}var lr={0:`General`,1:`0`,2:`0.00`,3:`#,##0`,4:`#,##0.00`,9:`0%`,10:`0.00%`,11:`0.00E+00`,12:`# ?/?`,13:`# ??/??`,14:`m/d/yyyy`,15:`d-mmm-yy`,16:`d-mmm`,17:`mmm-yy`,18:`h:mm AM/PM`,19:`h:mm:ss AM/PM`,20:`h:mm`,21:`h:mm:ss`,22:`m/d/yyyy h:mm`,37:`#,##0_);(#,##0)`,38:`#,##0_);[Red](#,##0)`,39:`#,##0.00_);(#,##0.00)`,40:`#,##0.00_);[Red](#,##0.00)`,41:`_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)`,42:`_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)`,43:`_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)`,44:`_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)`,45:`mm:ss`,46:`[h]:mm:ss`,47:`mmss.0`,48:`##0.0E+0`,49:`@`};new Map(Object.entries(lr).map(([e,t])=>[t,Number(e)]));var ur={lt:`<`,gt:`>`,amp:`&`,quot:`"`,apos:`'`};function dr(e){return e.includes(`&`)?e.replace(/&(#x[0-9A-Fa-f]+|#\d+|[A-Za-z]+);/gu,(e,t)=>t.startsWith(`#x`)?String.fromCodePoint(Number.parseInt(t.slice(2),16)):t.startsWith(`#`)?String.fromCodePoint(Number.parseInt(t.slice(1),10)):ur[t]??e):e}var fr=e=>{let t=e.indexOf(`:`);return t<0?e:e.slice(t+1)},pr=e=>e===32||e===9||e===10||e===13;function mr(e,t,n){let r=0,i=e.length;for(;r<i&&!pr(e.charCodeAt(r));)r++;let a=fr(e.slice(0,r)),o={};for(;r<i;){for(;r<i&&pr(e.charCodeAt(r));)r++;if(r>=i)break;let t=e.indexOf(`=`,r);if(t<0)throw Error(`An attribute of <${a}> has no value.`);let n=e.slice(r,t).trim(),s=t+1;for(;s<i&&pr(e.charCodeAt(s));)s++;let c=e[s];if(c!==`"`&&c!==`'`)throw Error(`An attribute of <${a}> is not quoted.`);let l=e.indexOf(c,s+1);if(l<0)throw Error(`An attribute of <${a}> is not closed.`);n!==`xmlns`&&!n.startsWith(`xmlns:`)&&(o[fr(n)]=dr(e.slice(s+1,l))),r=l+1}return t.open(a,o,n),a}var hr=class{capture;buffer=``;handler;depth=0;cr=!1;constructor(e){this.handler=e}push(e){let t=this.cr?`\r${e}`:e;this.cr=t.endsWith(`\r`),this.cr&&(t=t.slice(0,-1)),t=t.replace(/\r\n?/gu,`
|
|
43
|
-
`),this.buffer=this.buffer===``?t:this.buffer+t,this.run()}end(){if(this.cr&&(this.cr=!1,this.buffer+=`
|
|
44
|
-
`),this.run(),this.buffer.trim()!==``)throw Error(`The XML ends inside a tag or a comment.`);if(this.depth>0)throw Error(`The XML ends before its elements do.`)}emitText(e){e!==``&&(this.capture?.push(e),this.handler.text(dr(e)))}run(){let e=this.buffer,t=e.length,n=0;for(;;){let r=e.indexOf(`<`,n);if(r<0){let r=e.lastIndexOf(`&`),i=r>=n&&!e.includes(`;`,r)?r:t;this.emitText(e.slice(n,i)),n=i;break}r>n&&this.emitText(e.slice(n,r)),n=r;let i=e.charCodeAt(r+1);if(Number.isNaN(i))break;if(i===33){if(e.startsWith(`<!--`,r)){let t=e.indexOf(`-->`,r+4);if(t<0)break;this.capture?.push(e.slice(r,t+3)),n=t+3;continue}if(e.startsWith(`<![CDATA[`,r)){let t=e.indexOf(`]]>`,r+9);if(t<0)break;this.capture?.push(e.slice(r,t+3)),this.handler.text(e.slice(r+9,t)),n=t+3;continue}if(t-r<9)break;let i=e.indexOf(`>`,r);if(i<0)break;if(e.lastIndexOf(`[`,i)>r){let t=e.indexOf(`]>`,r);if(t<0)break;n=t+2}else n=i+1;continue}if(i===63){let t=e.indexOf(`?>`,r+2);if(t<0)break;this.capture?.push(e.slice(r,t+2)),n=t+2;continue}if(i===47){let t=e.indexOf(`>`,r+2);if(t<0)break;this.capture?.push(e.slice(r,t+1)),--this.depth,this.handler.close(fr(e.slice(r+2,t).trim())),n=t+1;continue}let a=r+1,o=0;for(;a<t;a++){let t=e.charCodeAt(a);if(o!==0)t===o&&(o=0);else if(t===34||t===39)o=t;else if(t===62)break}if(a>=t)break;let s=e.charCodeAt(a-1)===47,c=e.slice(r,a+1),l=mr(e.slice(r+1,s?a-1:a),this.handler,s);this.capture?.push(c),s?this.handler.close(l):this.depth+=1,n=a+1}this.buffer=n>=t?``:e.slice(n)}},gr=class{runs=[];inProps=!1;open(e,t){if(e===`r`)return this.runs.push({text:``,props:void 0}),!0;let n=this.runs[this.runs.length-1];return e===`rPr`&&n?(n.props={},this.inProps=!0,!0):this.inProps&&n?.props?(n.props[e]=t,!0):!1}close(e){e===`rPr`&&(this.inProps=!1)}text(e){let t=this.runs[this.runs.length-1];t&&(t.text+=e)}},_r=(e,t)=>{let n=e[t];if(n===void 0)return!1;let r=n.val;return r===void 0||r!==`0`&&r!==`false`},vr=new Set([`double`,`singleAccounting`,`doubleAccounting`]);function yr(e,t){return e.map(({text:e,props:n})=>{let r={text:z(e)};if(!n)return r;let i=n.u,a=i?.val,o=Number(n.sz?.val),s=n.vertAlign?.val;return r.font={bold:_r(n,`b`),italic:_r(n,`i`),strike:_r(n,`strike`),underline:i===void 0||a===`none`?!1:a!==void 0&&vr.has(a)?a:!0,size:Number.isFinite(o)&&o>0?o:void 0,color:Y(n.color,t),name:n.rFont?.val,script:s===`superscript`||s===`subscript`?s:void 0},r})}var br=65536,X=(e,t)=>(e[t]??0)|(e[t+1]??0)<<8,Z=(e,t)=>(X(e,t)|X(e,t+2)<<16)>>>0,xr=(e,t)=>Z(e,t)+Z(e,t+4)*4294967296,Sr=e=>{let t=``;for(let n of e)t+=String.fromCharCode(n);return t},Cr=class{bytes;entries=new Map;lower=new Map;constructor(e,t){this.bytes=e;let n=o(t);for(let e of this.directory())n({name:e.name,originalSize:e.size}),this.entries.set(e.name,e),this.lower.set(e.name.toLowerCase(),e)}get names(){return[...this.entries.keys()]}find(e){return this.entries.get(e)??this.lower.get(e.toLowerCase())}has(e){return this.find(e)!==void 0}*directory(){let e=this.bytes,t=-1;for(let n=e.length-22;n>=Math.max(0,e.length-22-65535);n--)if(Z(e,n)===101010256){t=n;break}if(t<0)throw Error(`It has no zip directory.`);let n=X(e,t+10),r=Z(e,t+16);if((n===65535||r===4294967295)&&Z(e,t-20)===117853008){let i=xr(e,t-12);if(Z(e,i)!==101075792)throw Error(`Its zip64 end is lost.`);n=xr(e,i+32),r=xr(e,i+48)}let i=new TextDecoder,a=r;for(let t=0;t<n;t++){if(Z(e,a)!==33639248)throw Error(`Its zip directory is damaged.`);let t=X(e,a+8),n=X(e,a+10),r=Z(e,a+20),o=Z(e,a+24),s=X(e,a+28),c=X(e,a+30),l=X(e,a+32),u=Z(e,a+42),d=e.subarray(a+46,a+46+s),f=t&2048?i.decode(d):Sr(d),p=a+46+s,m=p+c;for(;p+4<=m;){let t=X(e,p),n=X(e,p+2);if(t===1){let t=p+4;o===4294967295&&(o=xr(e,t),t+=8),r===4294967295&&(r=xr(e,t),t+=8),u===4294967295&&(u=xr(e,t))}p+=4+n}if(a=m+l,Z(e,u)!==67324752)throw Error(`Its part ${f} is lost.`);let h=u+30+X(e,u+26)+X(e,u+28);if(h+r>e.length)throw Error(`Its part ${f} is cut short.`);f.endsWith(`/`)||(yield{name:f,method:n,start:h,compressed:r,size:o})}}stream(e,t){let n=this.find(e);if(!n)return!1;let r=this.bytes.subarray(n.start,n.start+n.compressed);if(n.method===0){if(r.length>n.size)throw new s(`${n.name} holds more than it says.`);return t(r),!0}if(n.method!==8)throw Error(`${n.name} is compressed in a way a zip reader here does not know.`);let i=0,a=new c(e=>{if(i+=e.length,i>n.size)throw new s(`${n.name} unzips to more than it says.`);t(e)});for(let e=0;e<r.length;e+=br)a.push(r.subarray(e,e+br),e+br>=r.length);return r.length===0&&a.push(r,!0),!0}streamText(e,t){let n=new TextDecoder;if(!this.stream(e,e=>{let r=n.decode(e,{stream:!0});r!==``&&t(r)}))return!1;let r=n.decode();return r!==``&&t(r),!0}bytesOf(e){let t=this.find(e);if(!t)return;let n=new Uint8Array(t.size),r=0;return this.stream(e,e=>{n.set(e,r),r+=e.length}),r===n.length?n:n.subarray(0,r)}text(e){let t=this.bytesOf(e);return t===void 0?void 0:new TextDecoder().decode(t)}};function wr(e){if(K(e,`iterate`)!==!0)return;let t=G(e,`iterateCount`),n=G(e,`iterateDelta`),r=t===void 0?void 0:Math.min(32767,Math.max(1,Math.round(t))),i=n===void 0?void 0:Math.max(0,n),a={...r===void 0||r===k.max_iterations?{}:{max_iterations:r},...i===void 0||i===k.max_change?{}:{max_change:i}};return Object.keys(a).length>0?a:!0}var Tr=7,Er=e=>Math.floor((256*e+Math.floor(128/Tr))/256*Tr),Dr=e=>Math.round(e*4/3),Or=5;function kr(e){let t=e.slice(0,Or).join(`, `);return e.length>Or?`${t} and ${String(e.length-Or)} more`:t}var Ar=(e,t,n=`${t}s`)=>`${String(e)} ${e===1?t:n}`,jr=`Excel's grid ends at ${h(g-1)}${String(m)} (${m.toLocaleString(`en-US`)} rows, ${g.toLocaleString(`en-US`)} columns)`;function Mr(e,t){let n=0,r=0,i=e.length;for(;n<i;n++){let t=e.charCodeAt(n),i=t>=65&&t<=90;if(!i&&!(t>=97&&t<=122))break;r=r*26+(i?t-64:t-96)}if(n===0||n===i)return;let a=0;for(let t=n;t<i;t++){let n=e.charCodeAt(t);if(n<48||n>57)return;a=a*10+n-48}if(a!==0){if(n>3||r>16384||a>1048576)throw Error(`${t} has a cell at ${e}, and ${jr}.`);return{row:a-1,col:r-1}}}var Nr=class{zip;constructor(e,t){this.zip=new Cr(e,t)}get names(){return this.zip.names}has(e){return this.zip.has(e)}text(e){return this.zip.text(e)}bytes(e){return this.zip.bytesOf(e)}xml(e){let t=this.text(e);return t===void 0?void 0:Cn(t)}stream(e,t){let n=this.zip.streamText(e,e=>{t.push(e)});return n&&t.end(),n}rels(e){let t=e.lastIndexOf(`/`),n=`${e.slice(0,t+1)}_rels/${e.slice(t+1)}.rels`;return V(H(this.xml(n)?.Relationships)?.Relationship).map(t=>{let n=W(t,`Type`)??``,r=W(t,`Target`)??``,i=W(t,`TargetMode`)===`External`;return{id:W(t,`Id`)??``,type:n.slice(n.lastIndexOf(`/`)+1),target:i?r:Pr(e,r),external:i}})}count(e){return this.names.filter(t=>e.test(t)).length}};function Pr(e,t){if(t.startsWith(`/`))return t.slice(1);let n=e.split(`/`).slice(0,-1);for(let e of t.split(`/`))e===`..`?n.pop():e!==`.`&&n.push(e);return n.join(`/`)}function Fr(e,t,n){let r=[];if(t===void 0)return r;let i,a=0,o=!1;return e.stream(t,new hr({open(e,t){e===`si`?i={text:``,runs:new gr}:i&&(a>0||e===`rPh`||e===`phoneticPr`||e===`extLst`?a+=1:i.runs.open(e,t)||e===`t`&&(o=!0))},close(e){if(a>0)--a;else if(e===`si`){if(i){let{runs:e}=i.runs;r.push({text:z(i.text),...e.length>0?{runs:yr(e,n)}:{}})}i=void 0}else i?.runs.close(e),e===`t`&&(o=!1)},text(e){i&&o&&a===0&&(i.text+=e,i.runs.text(e))}})),r}function Ir(e,t){let n=e[t];if(n===void 0)return!1;let r=W(H(n),`val`);return r===void 0||r!==`0`&&r!==`false`}var Lr=new Set([`double`,`singleAccounting`,`doubleAccounting`]);function Rr(e,t,n){let r={},i=(e,t)=>W(H(e?.[t]),`val`);if(Ir(e,`b`)&&(r.bold=!0),Ir(e,`i`)&&(r.italic=!0),Ir(e,`strike`)&&(r.strike=!0),Ir(e,`u`)){let t=i(e,`u`);r.underline=t!==void 0&&Lr.has(t)?t:!0}let a=i(e,`name`);a!==void 0&&a!==i(t,`name`)&&(r.font=a);let o=i(e,`sz`);o!==void 0&&o!==i(t,`sz`)&&(r.size=Number(o));let s=Y(H(e.color),n);return s!==void 0&&s!==Y(H(t?.color),n)&&(r.color=s),r}function zr(e,t){let n=H(e.patternFill),r=W(n,`patternType`);if(r===void 0||r===`none`)return;let i=Y(H(n?.fgColor),t),a=Y(H(n?.bgColor),t);return r===`solid`&&i!==void 0?i:{pattern:r,...i===void 0?{}:{color:i},...a===void 0?{}:{background:a}}}function Br(e,t){let n={};for(let r of[`left`,`right`,`top`,`bottom`]){let i=H(e[r]),a=W(i,`style`);if(a===void 0||a===`none`)continue;let o=Y(H(i?.color),t);n[r]={style:a,...o===void 0?{}:{color:o}}}return Object.keys(n).length===0?void 0:n}function Vr(e){let t={},n=W(e,`horizontal`);n!==void 0&&n!==`general`&&(t.align=n);let r=W(e,`vertical`);r!==void 0&&r!==`bottom`&&(t.valign=r),K(e,`wrapText`)===!0&&(t.wrap=!0),K(e,`shrinkToFit`)===!0&&(t.shrink=!0);let i=G(e,`indent`);i!==void 0&&i>0&&(t.indent=i);let a=G(e,`textRotation`);return a!==void 0&&a>0&&a<=180&&(t.rotation=a),t}function Hr(e,t){let n={},r=H(e.font);if(r){let e=(e,t)=>{r[e]!==void 0&&(n[t]=Ir(r,e))};e(`b`,`bold`),e(`i`,`italic`),e(`strike`,`strike`),r.u!==void 0&&(n.underline=Ir(r,`u`));let i=Y(H(r.color),t);i!==void 0&&(n.color=i)}let i=H(H(e.fill)?.patternFill),a=Y(H(i?.bgColor),t)??Y(H(i?.fgColor),t);a!==void 0&&(n.fill=a);let o=H(e.border),s=o&&Br(o,t);s!==void 0&&(n.border=s);let c=H(e.numFmt),l=W(c,`formatCode`)??lr[G(c,`numFmtId`)??-1];return c&&l!==void 0&&l!==``&&l!==`General`&&(n.format=l),n}function Ur(e,t){let n=H(e?.styleSheet),r=cr(t,n),i=new Map(V(H(n?.numFmts)?.numFmt).map(e=>[G(e,`numFmtId`)??-1,W(e,`formatCode`)?.replace(/^$/u,`General`)??`General`])),a=V(H(n?.fonts)?.font),o=V(H(n?.fills)?.fill),s=V(H(n?.borders)?.border),c=V(H(n?.cellXfs)?.xf),l=a[G(c[0],`fontId`)??0],u=new Set;o.some(e=>e.gradientFill!==void 0)&&u.add(`gradient fills`);let d=V(H(n?.cellStyles)?.cellStyle),f=new Set(c.map(e=>G(e,`xfId`)??0)),p=d.filter(e=>G(e,`builtinId`)!==0&&f.has(G(e,`xfId`)??-1)).map(e=>z(W(e,`name`)??``)).filter(e=>e!==``);p.length>0&&u.add(`the names of cell styles (${p.slice(0,5).join(`, `)}${p.length>5?`, …`:``}): their looks are kept`);let m=c.map(e=>{let t={},n=a[G(e,`fontId`)??0];n&&(Object.assign(t,Rr(n,l,r)),n.vertAlign!==void 0&&u.add(`superscript and subscript`));let c=o[G(e,`fillId`)??0],d=c&&zr(c,r);d!==void 0&&(t.fill=d);let f=s[G(e,`borderId`)??0],p=f&&Br(f,r);p!==void 0&&(t.border=p),f&&W(H(f.diagonal),`style`)!==void 0&&u.add(`diagonal borders`);let m=H(e.alignment);m&&(Object.assign(t,Vr(m)),G(m,`textRotation`)===255&&u.add(`vertical text`));let h=H(e.protection);K(h,`locked`)===!1&&(t.locked=!1),K(h,`hidden`)===!0&&(t.hide_formula=!0);let g=G(e,`numFmtId`)??0,_=i.get(g)??lr[g];return _!==void 0&&_!==`General`&&(t.format=_),t}),h=W(H(l?.name),`val`),g=W(H(l?.sz),`val`);return{looks:m,dxfs:V(H(n?.dxfs)?.dxf).map(e=>Hr(e,r)),font:{...h===void 0?{}:{name:h},...g===void 0?{}:{size:Number(g)}},lost:[...u]}}var Wr=e=>{let t=Number(e);return e.trim()!==``&&Number.isFinite(t)?t:e};function Gr(e,t){let r=H(e.customFilters);if(r){let e=V(r.customFilter).map(e=>({operator:W(e,`operator`)??`equal`,value:Wr(z(W(e,`val`)??``))}));return e.length===0||e.length>2||e.some(e=>!n.includes(e.operator))?void 0:{conditions:e,...e.length===2&&K(r,`and`)!==!0?{or:!0}:{}}}let i=H(e.top10);if(i){let e=G(i,`val`);return e===void 0||e<=0?void 0:{top:{count:e,...K(i,`percent`)===!0?{percent:!0}:{},...K(i,`top`)===!1?{bottom:!0}:{}}}}let a=W(H(e.dynamicFilter),`type`);if(a===`aboveAverage`)return{average:`above`};if(a===`belowAverage`)return{average:`below`};let o=H(e.colorFilter);if(o){let e=t[G(o,`dxfId`)??-1];return K(o,`cellColor`)===!1?e?.color?{color:{font:e.color}}:void 0:typeof e?.fill==`string`?{color:{fill:e.fill}}:void 0}}function Kr(e,t=[]){let n=new Map,r=0;for(let i of V(e.filterColumn)){let e=G(i,`colId`)??0,a=H(i.filters);if(!a){let a=Gr(i,t);a?n.set(e,a):Object.keys(i).some(e=>e!==`colId`&&e!==`hiddenButton`)&&(r+=1);continue}if(a.dateGroupItem!==void 0){r+=1;continue}let o=V(a.filter).map(e=>z(W(e,`val`)??``));n.set(e,{...o.length===0?{}:{values:o},...K(a,`blank`)===!0?{blanks:!0}:{}})}return{columns:n,unread:r}}function qr(e,t=[]){let n=H(e?.table),r=p(W(n,`ref`)??``),i=W(n,`displayName`)??W(n,`name`);if(!r||i===void 0)return;let a=H(n?.tableStyleInfo),o=H(n?.autoFilter);return{name:i,ref:r,headers:G(n,`headerRowCount`)??1,totals:G(n,`totalsRowCount`)??0,columns:V(H(n?.tableColumns)?.tableColumn).map(e=>({name:z(W(e,`name`)??``).trim(),calculated:e.calculatedColumnFormula!==void 0})),style:W(a,`name`)??`none`,options:{...K(a,`showRowStripes`)===!1?{banded_rows:!1}:{},...K(a,`showColumnStripes`)===!0?{banded_columns:!0}:{},...K(a,`showFirstColumn`)===!0?{first_column:!0}:{},...K(a,`showLastColumn`)===!0?{last_column:!0}:{}},...o?{filter:Kr(o,t)}:{}}}function Jr(e){let t=e.trim();if(t===``)return;let n=/^"((?:[^"]|"")*)"$/u.exec(t);if(n)return(n[1]??``).replaceAll(`""`,`"`);let r=Number(t);if(!Number.isNaN(r))return r;let i=er(t,!0);return i.ok?E(i.node):void 0}var Yr=e=>e!==void 0&&a.includes(e);function Xr(e){let t=W(e,`type`)??`num`,n=W(e,`val`)??(e.f===void 0?void 0:U(e.f)),r=n===void 0?void 0:Jr(n);return{at:t,...r===void 0?{}:{value:r}}}var Zr=e,Qr=e=>{let t=e.formula??e.f;return(Array.isArray(t)?t:t===void 0?[]:[t]).map(U)};function $r(e,t,n,r){let i=W(e,`type`)??``,a={range:t,...K(e,`stopIfTrue`)===!0?{stop:!0}:{}},o={...n.bold===void 0?{}:{bold:n.bold},...n.italic===void 0?{}:{italic:n.italic},...n.underline===void 0?{}:{underline:n.underline!==!1},...n.strike===void 0?{}:{strike:n.strike},...n.color===void 0?{}:{color:n.color},...typeof n.fill==`string`?{fill:n.fill}:{},...n.border===void 0?{}:{border:n.border},...n.format===void 0?{}:{format:n.format}},s=Qr(e);switch(i){case`cellIs`:{let t=W(e,`operator`),n=s.flatMap(e=>{let t=Jr(e);return t===void 0?[]:[t]});return!Yr(t)||n.length===0?`a cellIs rule of ${t??`no operator`}`:{...a,...o,type:`cellIs`,operator:t,formula:n}}case`containsText`:case`notContainsText`:case`beginsWith`:case`endsWith`:{let t=W(e,`text`);return t===void 0?`a ${i} rule with no text`:{...a,...o,type:`containsText`,...i===`containsText`?{}:{operator:i===`notContainsText`?`notContains`:i},text:z(t)}}case`duplicateValues`:case`uniqueValues`:return{...a,...o,type:i};case`top10`:return{...a,...o,type:`top10`,rank:G(e,`rank`)??10,...K(e,`percent`)===!0?{percent:!0}:{},...K(e,`bottom`)===!0?{bottom:!0}:{}};case`aboveAverage`:return G(e,`stdDev`)===void 0?{...a,...o,type:`aboveAverage`,...K(e,`aboveAverage`)===!1?{below:!0}:{},...K(e,`equalAverage`)===!0?{equal:!0}:{}}:`an above or below average rule by standard deviations`;case`expression`:{let e=s[0]===void 0?void 0:er(s[0],!0);return e?.ok?{...a,...o,type:`expression`,formula:E(e.node)}:`an expression rule that cannot be read`}case`dataBar`:{let t=H(e.dataBar),n=Y(H(t?.color??t?.fillColor),r),[i,o]=V(t?.cfvo).map(Xr);return n===void 0?`a data bar with no colour`:{...a,type:`dataBar`,color:n,...i&&i.at!==`min`?{min:i}:{},...o&&o.at!==`max`?{max:o}:{},...K(t,`showValue`)===!1?{show:!1}:{}}}case`colorScale`:{let t=H(e.colorScale),n=V(t?.cfvo).map(Xr),i=V(t?.color).map(e=>Y(e,r)),o=n.flatMap((e,t)=>{let n=i[t];return n===void 0?[]:[{...e,color:n}]});return o.length<2?`a colour scale with too few stops`:{...a,type:`colorScale`,stops:o.slice(0,3)}}case`iconSet`:{let t=H(e.iconSet),n=W(t,`iconSet`)??`3TrafficLights1`;if(!Zr.includes(n))return`the icon set ${n}`;if(t?.cfIcon!==void 0)return`an icon set of icons chosen one by one`;let r=V(t?.cfvo).map(Xr);return{...a,type:`iconSet`,icons:n,...r.length>=3?{stops:r.slice(0,5)}:{},...K(t,`reverse`)===!0?{reverse:!0}:{},...K(t,`showValue`)===!1?{show:!1}:{}}}default:return`a ${i} rule`}}var ei={conditional:`{78C0D931-6437-407d-A8EE-F0AAD7539E65}`,validations:`{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}`},ti=(e,t)=>V(H(e.extLst)?.ext).find(e=>W(e,`uri`)?.toUpperCase()===t.toUpperCase());function ni(e,t,n){let r=[],i=[],a=new Set,o=(e,t,a)=>{let o=$r(e,t,a,n);typeof o==`string`?i.push(`${o} on ${t}`):r.push({priority:G(e,`priority`)??0,rule:o})};for(let n of V(e.conditionalFormatting)){let e=W(n,`sqref`)??``;if(!T(e))i.push(`a rule on ${e}`);else for(let r of V(n.cfRule)){let n=U(H(H(r.extLst)?.ext)?.id);n!==``&&a.add(n.toUpperCase());let i=G(r,`dxfId`);o(r,e,i===void 0?{}:t[i]??{})}}let s=H(ti(e,ei.conditional)?.conditionalFormattings);for(let e of V(s?.conditionalFormatting)){let t=U(e.sqref).trim();for(let r of V(e.cfRule)){if(a.has((W(r,`id`)??``).toUpperCase())){let e=ri(H(r.dataBar));e!==void 0&&i.push(`a data bar's ${e} on ${t}`);continue}if(!T(t)){i.push(`a rule on ${t}`);continue}let e=H(r.dxf);o(r,t,e?Hr(e,n):{})}}return{rules:r.sort((e,t)=>e.priority-t.priority).map(e=>e.rule),unread:i}}function ri(e){if(!e)return;let t=[];K(e,`gradient`)===!1&&t.push(`solid fill`),K(e,`border`)===!0&&t.push(`border`);let n=W(e,`axisPosition`);n!==void 0&&n!==`automatic`&&t.push(`axis ${n}`),K(e,`negativeBarColorSameAsPositive`)===!0&&t.push(`negative bars in its colour`);let r=W(H(e.negativeFillColor),`rgb`);return r!==void 0&&r.toUpperCase()!==`FFFF0000`&&t.push(`negative bars' colour`),W(e,`direction`)===`rightToLeft`&&t.push(`right to left`),t.length===0?void 0:t.join(`, `)}var ii=r;function ai(e,t,n,r){let i=W(e,`type`)??`none`;if(i===`none`&&W(e,`prompt`)===void 0)return;if(!ii.includes(i)||!T(t))return`a ${i} rule on ${t}`;let a=/^"((?:[^"]|"")*)"$/u.exec(n.trim()),o=i===`list`&&a?(a[1]??``).replaceAll(`""`,`"`).split(`,`):void 0,s=[n,r].flatMap(e=>{let t=Jr(e);return t===void 0?[]:[t]}),c=W(e,`operator`),l=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),u=l({title:W(e,`promptTitle`),message:W(e,`prompt`)}),d=l({style:W(e,`errorStyle`),title:W(e,`errorTitle`),message:W(e,`error`)}),f=K(e,`showInputMessage`)!==!0,p=K(e,`showErrorMessage`)!==!0;return{range:t,type:i,...Yr(c)&&c!==`between`?{operator:c}:{},...o?{values:o}:{formula:s},...K(e,`allowBlank`)===!0?{}:{blank:!1},...K(e,`showDropDown`)===!0?{dropdown:!1}:{},...f||Object.keys(u).length>0?{prompt:{...u,...f?{show:!1}:{}}}:{},...p||Object.keys(d).length>0?{error:{...d,...p?{show:!1}:{}}}:{}}}function oi(e){let t=[],n=[],r=e=>{typeof e==`string`?n.push(e):e&&t.push(e)};for(let t of V(H(e.dataValidations)?.dataValidation))r(ai(t,W(t,`sqref`)??``,U(t.formula1),U(t.formula2)));let i=H(ti(e,ei.validations)?.dataValidations);for(let e of V(i?.dataValidation))r(ai(e,U(e.sqref).trim(),U(H(e.formula1)?.f),U(H(e.formula2)?.f)));return{rules:t,unread:n}}function si(e){let t=/^(-?\d{4,})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/u.exec(e)??/^()()()(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?$/u.exec(e);if(!t)return;let n=t[1]===``,r=n?1899:Number(t[1]),i=n?12:Number(t[2]),a=n?30:Number(t[3]),o=Number(t[4]??0)*3600+Number(t[5]??0)*60+Number(t[6]??0)+Number(t[7]??0),s=new Date(Date.UTC(r,i-1,a)+o*1e3);if(Number.isNaN(s.getTime()))return;let c=S(s);return n?c-Math.floor(c):c}var ci;function li(e,t){let n=e.row-t.row,r=e.col-t.col;Object.defineProperty(e,"node",{get:()=>(ci?.cell!==e&&(ci={cell:e,node:v(t.node,n,r)}),ci.node),set:t=>{Object.defineProperty(e,"node",{value:t,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0}),e.key=t.key}function ui(e,t,n){let r=er(e,t,n);return r.ok?{node:r.node}:{unread:e}}function di(e){let t=p(e.ref??``),n=e=>{if(e===void 0||e===``)return``;let t=ee(e.replaceAll(`$`,``));return t?`$${h(t.col)}$${String(t.row+1)}`:void 0},r=n(e.r1),i=n(e.r2);if(!t||r===void 0||r===``||i===void 0)return;let a=e.dt2D===`1`||e.dt2D===`true`,o=e.dtr===`1`||e.dtr===`true`,s=a?`${r},${i}`:o?`${r},`:`,${r}`,c=y(`=TABLE(${s})`);return c.ok?{ref:t,node:c.node}:void 0}function fi(e){for(let{ref:t,node:n}of e.dataTables){let r=new Set;for(let i of e.cells)i.row<t.top||i.row>t.bottom||i.col<t.left||i.col>t.right||(i.node=n,Reflect.deleteProperty(i,`unread`),r.add(`${String(i.row)}:${String(i.col)}`));for(let i=t.top;i<=t.bottom;i++)for(let a=t.left;a<=t.right;a++)r.has(`${String(i)}:${String(a)}`)||e.cells.push({row:i,col:a,value:void 0,node:n,style:0})}}var pi=class{cells=[];rows=[];dataTables=[];outlined=!1;rest=[];xml;masters=new Map;above=new Map;left;strings;palette;name;isRangeName;inData=!1;row=-1;nextRow=0;nextCol=0;cell;target;buffer=``;skip=0;constructor(e,t,n,r){this.strings=e,this.palette=t,this.name=n,this.isRangeName=r,this.xml=new hr(this),this.xml.capture=this.rest}open(e,t){if(!this.inData){e===`sheetData`&&(this.inData=!0,this.xml.capture=void 0);return}let n=this.cell;if(n){if(this.skip>0){this.skip+=1;return}switch(e){case`v`:this.target=`v`,this.buffer=``;return;case`f`:n.f={...t,text:``},this.target=`f`,this.buffer=``;return;case`is`:n.inline={text:``,runs:new gr};return;case`t`:n.inline&&(this.target=`t`,this.buffer=``);return;case`rPh`:case`phoneticPr`:case`extLst`:this.skip=1;return;default:n.inline?.runs.open(e,t);return}}e===`row`?this.openRow(t):e===`c`&&(this.cell={r:t.r,s:t.s,t:t.t,cm:t.cm,v:void 0,f:void 0,inline:void 0})}close(e){if(!this.inData)return;let t=this.cell;t?this.skip>0?--this.skip:e===this.target?(e===`v`?t.v=this.buffer:e===`f`&&t.f?t.f.text=this.buffer:t.inline&&(t.inline.text+=this.buffer,t.inline.runs.text(this.buffer)),this.target=void 0):(t.inline?.runs.close(e),e===`c`&&(this.cell=void 0,this.readCell(t))):e===`sheetData`&&(this.inData=!1,this.xml.capture=this.rest)}text(e){this.target!==void 0&&this.skip===0&&(this.buffer+=e)}openRow(e){let t=e.r,n=t===void 0?void 0:Number(t);if(n!==void 0&&Number.isInteger(n)&&n>1048576)throw Error(`${this.name} has a row ${t??``}, and ${jr}.`);let r=n!==void 0&&Number.isInteger(n)&&n>0?n-1:this.nextRow;this.row=r,this.nextRow=r+1,this.nextCol=0;let i={row:r},a=e.ht===void 0?void 0:Number(e.ht),o=e=>e===`1`||e===`true`;a!==void 0&&Number.isFinite(a)&&o(e.customHeight)&&(i.height=Dr(a)),o(e.hidden)&&(i.hidden=!0);let s=e.s===void 0?void 0:Number(e.s);s!==void 0&&s!==0&&o(e.customFormat)&&(i.style=s);let c=Number(e.outlineLevel??0);c>0&&(i.level=Math.min(7,c),this.outlined=!0),Object.keys(i).length>1&&this.rows.push(i)}value(e,t){let n=e.t??`n`;if(n===`inlineStr`){let t=e.inline;if(!t)return{value:e.v===void 0?``:z(e.v)};let{runs:n}=t.runs;return{value:z(t.text),...n.length>0?{runs:yr(n,this.palette)}:{}}}let r=e.v;if(r===void 0)return{value:void 0};switch(n){case`s`:{let e=this.strings[Number(r)];return e?{value:e.text,...e.runs?{runs:e.runs}:{}}:{value:``}}case`str`:return{value:z(r)};case`b`:return{value:r.trim()===`1`||r.trim()===`true`};case`e`:return{value:x(r.trim())??w.VALUE};case`d`:return{value:si(r.trim())??r};default:{if(r.trim()===``)return{value:void 0};let e=Number(r);if(Number.isNaN(e))throw Error(`${t} says it holds a number and holds ${r}.`);return{value:e}}}}formula(e,t,n,r){let i=e.f;if(i===void 0)return;let a=i.t??`normal`,o=i.text;if(a===`dataTable`){let e=di(i);e?this.dataTables.push(e):r.unread=`a data table's {=TABLE(${i.r1??``})}`;return}if(a===`array`){Object.assign(r,ui(o,!0,this.isRangeName));let t=p(i.ref??``);t&&(r.array=t),e.cm!==void 0&&(r.dynamic=!0);return}if(a===`shared`){let e=i.si??``;if(o!==``){let i=ui(o,!1,this.isRangeName),a=i.node?b(i.node,t,n):``;this.masters.set(e,{node:i.node,unread:i.unread,row:t,col:n,key:a}),Object.assign(r,i),i.node&&(r.key=a);return}let a=this.masters.get(e);if(!a){r.unread=`a shared formula of a group that has no first cell (${e})`;return}a.node?li(r,{node:a.node,row:a.row,col:a.col,key:a.key}):a.unread!==void 0&&(r.unread=a.unread);return}if(o===``)return;let s=ui(o,!1,this.isRangeName);if(!s.node){Object.assign(r,s);return}let c=b(s.node,t,n),l=this.left?.row===t?this.left:void 0,u=[this.above.get(n),l].find(e=>e?.key===c);u?li(r,u):(r.node=s.node,r.key=c);let d=u??{node:s.node,row:t,col:n,key:c};this.above.set(n,d),this.left=d}readCell(e){let t=e.r===void 0?void 0:Mr(e.r,this.name),n=t?.row??this.row,r=t?.col??this.nextCol;if(r>=16384)throw Error(`${this.name} has a cell past its last column, and ${jr}.`);this.nextCol=r+1;let i=e.r??A({row:n,col:r}),{value:a,runs:o}=this.value(e,i),s={row:n,col:r,value:a,style:e.s===void 0?0:Number(e.s)||0};o&&(s.runs=o),this.formula(e,n,r,s),this.cells.push(s)}};function mi(e,t){let n=[],r=t=>n.push(`${e}: ${t}`),i=V(H(t.hyperlinks)?.hyperlink).filter(e=>W(e,`tooltip`)!==void 0);i.length>0&&r(`the tooltips of ${Ar(i.length,`link`)} (${kr(i.map(e=>W(e,`ref`)??``))})`),t.sortState!==void 0&&r(`a sort`);let a=H(t.sheetProtection);K(a,`sheet`)===!0&&(W(a,`password`)!==void 0||W(a,`hashValue`)!==void 0)&&r(`its protection's password: it is protected with none`),t.protectedRanges!==void 0&&r(`protected ranges`);let o=H(t.headerFooter);(o?.evenHeader!==void 0||o?.evenFooter!==void 0||o?.firstHeader!==void 0||o?.firstFooter!==void 0)&&r(`its print header and footer of the first or even pages`);let s=H(t.printOptions);s&&[`gridLines`,`headings`,`horizontalCentered`,`verticalCentered`].some(e=>K(s,e)===!0)&&r(`its print options (gridlines, headings, centring)`),t.oleObjects!==void 0&&r(`embedded objects`),t.controls!==void 0&&r(`form controls`),t.dataConsolidate!==void 0&&r(`a consolidation`),t.customSheetViews!==void 0&&r(`custom views`),V(H(t.sheetViews)?.sheetView).some(e=>W(H(e.pane),`state`)===`split`)&&r(`a split, not frozen, window`);let c=JSON.stringify(t.extLst??``);return c.includes(`sparklineGroups`)&&r(`sparklines`),c.includes(`slicerList`)&&r(`slicers`),n}function hi(e,t){let n=[],r=(t,r,i)=>{let a=e.count(t);a>0&&n.push(Ar(a,r,i))};e.has(`xl/vbaProject.bin`)&&n.push(`VBA macros`),r(/^xl\/pivotTables\/pivotTable\d*\.xml$/u,`pivot table`),r(/^xl\/chartsheets\/[^/]+\.xml$/u,`chart sheet`),r(/^xl\/dialogsheets\/[^/]+\.xml$/u,`dialog sheet`),r(/^xl\/macrosheets\/[^/]+\.xml$/u,`macro sheet`);let i=e.names.filter(e=>e.startsWith(`xl/media/`)&&!t.has(e)).length;return i>0&&n.push(Ar(i,`image`)),r(/^xl\/embeddings\//u,`embedded object`),r(/^xl\/slicers\/[^/]+\.xml$/u,`slicer part`),r(/^xl\/timelines\/[^/]+\.xml$/u,`timeline part`),r(/^xl\/ctrlProps\/[^/]+\.xml$/u,`form control`),r(/^xl\/activeX\/[^/]+\.xml$/u,`ActiveX control`),r(/^xl\/queryTables\/[^/]+\.xml$/u,`query table`),e.has(`xl/connections.xml`)&&n.push(`data connections`),e.names.some(e=>e.startsWith(`xl/richData/`))&&n.push(`rich values (data types, pictures in cells)`),e.names.some(t=>/^customXml\/item\d+\.xml$/u.test(t)&&(e.text(t)??``).includes(`DataMashup`))&&n.push(`Power Query queries`),n}function gi(e){let t={left:``,center:``,right:``},n=`center`,r=new Set;for(let i=0;i<e.length;i++){let a=e[i],o=e[i+1];a===`&`&&(o===`L`||o===`C`||o===`R`)?(n=o===`L`?`left`:o===`C`?`center`:`right`,r=new Set([...r,n]),i+=1):a===`&`&&o===`&`?(t[n]+=`&&`,i+=1):t[n]+=a??``}return Object.fromEntries(Object.entries(t).filter(([e,t])=>t!==``||r.has(e)))}var _i=new Map(Object.entries(t).map(([e,t])=>[t,e]));function vi(e,t,n){let r={},a=H(e.pageSetup),o=W(a,`orientation`);(o===`portrait`||o===`landscape`)&&(r.orientation=o);let s=G(a,`paperSize`);if(s!==void 0){let e=_i.get(s);e?r.paper=e:n.push(`${t}: its paper size, Excel's number ${String(s)}`)}K(H(H(e.sheetPr)?.pageSetUpPr),`fitToPage`)===!0&&(r.fit={width:G(a,`fitToWidth`)??1,height:G(a,`fitToHeight`)??1});let c=G(a,`scale`);c!==void 0&&c!==100&&c>=10&&c<=400&&(r.scale=Math.round(c));let l=t=>V(H(e[t])?.brk).filter(e=>K(e,`man`)===!0).map(e=>G(e,`id`)).filter(e=>e!==void 0&&e>0).sort((e,t)=>e-t),u=l(`rowBreaks`).map(e=>e+1),d=l(`colBreaks`).map(e=>h(e));(u.length>0||d.length>0)&&(r.breaks={...u.length>0?{rows:u}:{},...d.length>0?{cols:d}:{}});let f=H(e.pageMargins),p={};for(let e of Object.keys(i)){let t=G(f,e);t!==void 0&&t!==i[e]&&(p[e]=t)}Object.keys(p).length>0&&(r.margins=p);let m=H(e.headerFooter),g=U(m?.oddHeader),_=U(m?.oddFooter);return g!==``&&(r.header=gi(z(g))),_!==``&&(r.footer=gi(z(_))),r}function yi(e,t,n,r,i){let a=e.rels(t),o=new Map;for(let t of a.filter(e=>e.type===`comments`)){let n=H(e.xml(t.target)?.comments),r=H(n?.authors)?.author,i=(Array.isArray(r)?r:r===void 0?[]:[r]).map(e=>z(U(e)));for(let e of V(H(n?.commentList)?.comment)){let t=W(e,`ref`)??``,n=H(e.text),r=V(n?.r),a=z(r.length>0?r.map(e=>U(e.t)).join(``):U(n?.t)),s=i[G(e,`authorId`)??-1];t!==``&&a!==``&&o.set(t,{ref:t,text:a,...s===void 0||s===``?{}:{author:s}})}}let s=0;for(let t of a.filter(e=>e.type===`threadedComment`)){let n=H(e.xml(t.target)?.ThreadedComments),i=new Map;for(let e of V(n?.threadedComment)){let t=W(e,`ref`)??``,n=z(U(e.text)),a=i.get(t)??{texts:[]};if(a.texts.length===0){let t=r.get(W(e,`personId`)??``);t!==void 0&&(a.author=t)}a.texts.push(n),i.set(t,a)}for(let[e,t]of i)s+=1,o.set(e,{ref:e,text:t.texts.join(`
|
|
45
|
-
`),...t.author===void 0?{}:{author:t.author}})}return s>0&&i.push(`${n}: ${Ar(s,`threaded comment`)}, kept as notes, replies after the first line`),[...o.values()]}function bi(e,t,n,r,i,a,o,s,c,l,u,d){let f=new pi(i,a,n,c);if(!e.stream(t,f.xml))throw Error(`${t} is not in the file.`);fi(f);let m=H(Cn(f.rest.join(``)).worksheet);if(!m)throw Error(`${t} is not a worksheet.`);let h=V(H(m.cols)?.col).map(e=>{let t=G(e,`width`),r=G(e,`style`),i=G(e,`outlineLevel`)??0,a=(G(e,`min`)??1)-1,o=(G(e,`max`)??1)-1;if(o>=16384)throw Error(`${n} sets a column past its last, and ${jr}.`);let s=K(e,`customWidth`),c=t===void 0?void 0:Er(t);return{min:a,max:o,...c!==void 0&&(s===!0||s===void 0&&c!==Si)?{width:c}:{},...K(e,`hidden`)===!0?{hidden:!0}:{},...r===void 0||r===0?{}:{style:r},...i>0?{level:Math.min(7,i)}:{}}}),g=V(H(m.mergeCells)?.mergeCell).flatMap(e=>{let t=p(W(e,`ref`)??``);return t?[t]:[]}),_=V(H(m.sheetViews)?.sheetView)[0],v=H(_?.pane),y,b=W(v,`state`);if(b===`frozen`||b===`frozenSplit`){let e=ee(W(_,`topLeftCell`)??`A1`)??{row:0,col:0};y={row:e.row+(G(v,`ySplit`)??0),col:e.col+(G(v,`xSplit`)??0)}}let x=e.rels(t),S=x.filter(e=>e.type===`table`).flatMap(t=>{let n=qr(e.xml(t.target),o);return n?[n]:[]}),C=Y(H(H(m.sheetPr)?.tabColor),a),w=mi(n,m),T=ni(m,o,a),E=oi(m);for(let e of T.unread)w.push(`${n}: a conditional format, ${e}`);for(let e of E.unread)w.push(`${n}: a data validation, ${e}`);let D=H(m.autoFilter),O=p(W(D,`ref`)??``),k=D&&O?{ref:O,...Kr(D,o)}:void 0;k&&k.unread>0&&w.push(`${n}: ${Ar(k.unread,`filter`)} by condition on ${W(D,`ref`)??``}, its rows left as they were hidden`);let{charts:A,pictures:te}=wi(e,t,n,h,f.rows,w,l,u,d),j={},ne=new Map(x.map(e=>[e.id,e]));for(let e of V(H(m.hyperlinks)?.hyperlink)){let t=W(e,`ref`);if(t===void 0)continue;let n=W(e,`location`),r=W(e,`id`),i=r===void 0?void 0:ne.get(r)?.target;i===void 0?n!==void 0&&(j[t]=`#${n}`):j[t]=n===void 0?i:`${i}#${n}`}let re=H(m.sheetProtection),ie=vi(m,n,w);return{sheet:{name:n,state:r,cells:f.cells,merges:g,...y?{freeze:y}:{},...W(_,`showGridLines`)===`0`?{gridlines:!1}:{},...C===void 0?{}:{tab:C},columns:h,rows:f.rows,tables:S,conditional:T.rules,validations:E.rules,scenarios:V(H(m.scenarios)?.scenario).map(e=>({name:W(e,`name`)??``,cells:V(e.inputCells).map(e=>({at:W(e,`r`)??``,value:W(e,`val`)??``}))})),...k?{filter:k}:{},charts:A,links:j,notes:yi(e,t,n,s,w),pictures:te,...K(re,`sheet`)===!0?{protect:!0}:{},...Object.keys(ie).length>0?{print:ie}:{},...xi(H(H(m.sheetPr)?.outlinePr))},lost:w}}function xi(e){let t=K(e,`summaryBelow`)===!1,n=K(e,`summaryRight`)===!1;return t||n?{outline:{...t?{summary_below:!1}:{},...n?{summary_right:!1}:{}}}:{}}var Si=64,Ci=20;function wi(e,t,n,r,i,a,o,s,c){let l=e=>r.find(t=>e>=t.min&&e<=t.max)?.width??Si,u=new Map(i.map(e=>[e.row,e.height])),d=e=>u.get(e)??Ci,f=[],p=[];for(let r of e.rels(t).filter(e=>e.type===`drawing`)){let t=Wn(e.xml(r.target),l,d),i=e.rels(r.target);for(let r of t.anchors){let t=i.find(e=>e.id===r.id),o=A(r.at);if(r.width<=0||r.height<=0){a.push(`${n}: the chart at ${o}, of no size`);continue}let l=[],u=Hn(t?e.xml(t.target):void 0,l,s,c);if(typeof u==`string`)a.push(`${n}: the chart at ${o}, as ${u}`);else{for(let e of l)a.push(`${n}: the chart at ${o} without its ${e}`);f.push({...u,at:o,...r.x===void 0?{}:{x:r.x},...r.y===void 0?{}:{y:r.y},...r.width===O.width?{}:{width:r.width},...r.height===O.height?{}:{height:r.height}})}}for(let r of t.pictures){let t=i.find(e=>e.id===r.id),s=t&&!t.external?e.bytes(t.target):void 0;if(!t||!s){a.push(`${n}: the picture at ${A(r.at)}, whose image is not in the file`);continue}o.add(t.target);let c=t.target.slice(t.target.lastIndexOf(`.`)+1).toLowerCase();p.push({row:r.at.row,col:r.at.col,...r.x===void 0?{}:{x:r.x},...r.y===void 0?{}:{y:r.y},width:r.width,height:r.height,...r.name===void 0?{}:{name:r.name},...r.descr===void 0?{}:{descr:r.descr},bytes:s,type:c})}t.others>0&&a.push(`${n}: ${Ar(t.others,`shape`)} of its drawing`)}return{charts:f,pictures:p}}function Ti(e,t,n){for(let r of e){if(r.sheet===void 0)continue;let e=t[r.sheet];if(!e)continue;let i=r.text.split(`,`).map(e=>e.slice(e.lastIndexOf(`!`)+1).replaceAll(`$`,``));if(r.name===`_xlnm.Print_Area`){let[t]=i;i.length>1&&n.push(`${e.name}: its print area's ranges after the first`),t!==void 0&&p(t)&&(e.print={...e.print,area:t})}else if(r.name===`_xlnm.Print_Titles`)for(let t of i)/^\d+:\d+$/u.test(t)?e.print={...e.print,title_rows:t}:/^[A-Za-z]+:[A-Za-z]+$/u.test(t)&&(e.print={...e.print,title_cols:t})}}function Ei(e,t){let n;try{n=new Nr(e,t)}catch(e){throw e instanceof s?e:Error(`It is not a zip file, as an .xlsx file is.`)}let r=n.rels(``),i=r.find(e=>e.type===`officeDocument`)?.target??`xl/workbook.xml`;if(i.endsWith(`.bin`))throw Error(`It is a binary workbook (.xlsb): save it as .xlsx.`);let a=H(n.xml(i)?.workbook);if(!a)throw Error(`It has no workbook part.`);let o=n.rels(i),c=e=>o.find(t=>t.type===e)?.target,l=(()=>{let e=c(`theme`);return e===void 0?void 0:n.text(e)})(),u=l===void 0?rr:ir(l),d=c(`styles`),f=d===void 0?void 0:n.xml(d),p=Ur(f,u),m=cr(u,H(f?.styleSheet)),h=Fr(n,c(`sharedStrings`),m),g=[];for(let e of p.lost)g.push(e);let _=H(a.workbookPr),v=wr(H(a.calcPr));W(H(a.calcPr),`calcMode`)===`manual`&&g.push(`manual calculation: it computes as its cells change`);let y=H(a.workbookProtection);(K(y,`lockStructure`)===!0||K(y,`lockWindows`)===!0)&&g.push(`the workbook's protection`),a.fileSharing!==void 0&&g.push(`its write protection`);let b=new Map,x=c(`person`);if(x!==void 0)for(let e of V(H(n.xml(x)?.personList)?.person))b.set(W(e,`id`)??``,z(W(e,`displayName`)??``));let S=V(H(a.definedNames)?.definedName).map(e=>{let t=G(e,`localSheetId`);return{name:W(e,`name`)??``,text:z(U(e)),...t===void 0?{}:{sheet:t},...K(e,`hidden`)===!0?{hidden:!0}:{}}}),C=[],w=new Set,T=new Map(o.map(e=>[e.id,e])),ee=V(H(a.sheets)?.sheet),E=new Set(ee.filter(e=>T.get(W(e,`id`)??``)?.type===`worksheet`).map(e=>z(W(e,`name`)??``).toLowerCase()));for(let[e,t]of ee.entries()){let r=T.get(W(t,`id`)??``),i=z(W(t,`name`)??``);if(r?.type!==`worksheet`){r?.type!==`chartsheet`&&r?.type!==`dialogsheet`&&g.push(`${i}: a sheet of a kind this cannot read`);continue}let a=new Map;for(let t of S)t.sheet!==void 0&&t.sheet!==e||t.sheet===void 0&&a.has(t.name.toLowerCase())||a.set(t.name.toLowerCase(),tr(t.text));let o=W(t,`state`),s=bi(n,r.target,i,o===`hidden`||o===`veryHidden`?o:`visible`,h,m,p.dxfs,b,e=>a.get(e.toLowerCase())===!0,w,e=>E.has(e.toLowerCase()),e=>a.has(e.toLowerCase()));C[e]=s.sheet,g.push(...s.lost)}Ti(S,C,g);let D=r.find(e=>e.type===`core-properties`)?.target,O=D===void 0?void 0:U(H(n.xml(D)?.coreProperties)?.title).trim(),k=C.filter(e=>e!==void 0),A=new Map;return C.forEach((e,t)=>{e!==void 0&&A.set(t,k.indexOf(e))}),{sheets:k,names:S.flatMap(e=>{if(e.sheet===void 0)return[e];let t=A.get(e.sheet);return t===void 0?[]:[{...e,sheet:t}]}),looks:p.looks,dxfs:p.dxfs,date1904:K(_,`date1904`)===!0,font:p.font,...O===void 0||O===``?{}:{title:O},...v===void 0?{}:{iteration:v},lost:[...hi(n,w),...g]}}var Q=(e,t)=>`<a:${e}>${t}</a:${e}>`,$=e=>B(`a:srgbClr`,{val:e}),Di=[Q(`dk1`,B(`a:sysClr`,{val:`windowText`,lastClr:`000000`})),Q(`lt1`,B(`a:sysClr`,{val:`window`,lastClr:`FFFFFF`})),Q(`dk2`,$(`44546A`)),Q(`lt2`,$(`E7E6E6`)),Q(`accent1`,$(`4472C4`)),Q(`accent2`,$(`ED7D31`)),Q(`accent3`,$(`A5A5A5`)),Q(`accent4`,$(`FFC000`)),Q(`accent5`,$(`5B9BD5`)),Q(`accent6`,$(`70AD47`)),Q(`hlink`,$(`0563C1`)),Q(`folHlink`,$(`954F72`))].join(``),Oi=(e,t)=>`<a:${e}>${B(`a:latin`,{typeface:t})}${B(`a:ea`,{typeface:``})}${B(`a:cs`,{typeface:``})}</a:${e}>`,ki=B(`a:solidFill`,{},B(`a:schemeClr`,{val:`phClr`})),Ai=B(`a:ln`,{w:6350,cap:`flat`,cmpd:`sng`,algn:`ctr`},ki,B(`a:prstDash`,{val:`solid`})),ji=B(`a:effectStyle`,{},B(`a:effectLst`));B(`a:theme`,{"xmlns:a":bn.drawing,name:`Office Theme`},B(`a:themeElements`,{},`<a:clrScheme name="Office">${Di}</a:clrScheme>`,`<a:fontScheme name="Office">${Oi(`majorFont`,`Calibri Light`)}${Oi(`minorFont`,`Calibri`)}</a:fontScheme>`,B(`a:fmtScheme`,{name:`Office`},B(`a:fillStyleLst`,{},ki,ki,ki),B(`a:lnStyleLst`,{},Ai,Ai,Ai),B(`a:effectStyleLst`,{},ji,ji,ji),B(`a:bgFillStyleLst`,{},ki,ki,ki)))),`${bn.rel}`,B(`metadata`,{xmlns:bn.main,"xmlns:xda":`http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray`},B(`metadataTypes`,{count:1},B(`metadataType`,{name:`XLDAPR`,minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1})),B(`futureMetadata`,{name:`XLDAPR`,count:1},B(`bk`,{},B(`extLst`,{},B(`ext`,{uri:`{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}`},B(`xda:dynamicArrayProperties`,{fDynamic:1,fCollapsed:0}))))),B(`cellMetadata`,{count:1},B(`bk`,{},B(`rc`,{t:1,v:0})))),RegExp(`^${`AllyHub lists`.replace(/[.*+?^${}()|[\]\\]/gu,`\\$&`)}(?: \\(\\d+\\))?$`,`u`);var Mi=1462,Ni=/^#[0-9a-fA-F]{6}$/u,Pi=e=>typeof e==`string`&&Ni.test(e)?e:void 0;function Fi(e,t){let n=new Map,r=t.merges.filter(e=>e.bottom>e.top||e.right>e.left),i=new Set(r.map(e=>d(e.top,e.left))),a=[],o=0,s=0;for(let r of t.cells){let t=e.looks[r.style]??{},c=r.value??null,l=e.date1904&&typeof c==`number`&&C(t.format)?c+Mi:c,u=D(l,t.format),p=Pi(t.fill);if(u===``&&p===void 0)continue;let m=Pi(t.color),h=t.align===`left`||t.align===`right`||t.align===`center`?t.align:t.align===`centerContinuous`?`center`:typeof c==`number`?`right`:typeof c==`string`||c===null?void 0:`center`;n.set(d(r.row,r.col),{text:u,...h===void 0?{}:{align:h},...t.bold===!0?{bold:!0}:{},...t.italic===!0?{italic:!0}:{},...t.underline===void 0||t.underline===!1?{}:{underline:!0},...t.strike===!0?{strike:!0}:{},...m===void 0?{}:{color:m},...p===void 0?{}:{fill:p}}),o=Math.max(o,r.row+1),s=Math.max(s,r.col+1),r.row<200&&!i.has(d(r.row,r.col))&&(a[r.col]=Math.max(a[r.col]??0,f(u)))}for(let e of r)n.has(d(e.top,e.left))&&(o=Math.max(o,e.bottom+1),s=Math.max(s,e.right+1));let c=Array.from({length:s},(e,t)=>Math.max(64,u(a[t]??0)));for(let e of t.columns)if(e.width!==void 0)for(let t=e.min;t<=Math.min(e.max,s-1);t++)c[t]=Math.max(1,Math.round(e.width));return{name:t.name,rows:o,columns:s,widths:c,cells:n,merges:r}}function Ii(e){let t=e.sheets.filter(e=>e.state===`visible`);return{sheets:(t.length>0?t:e.sheets).map(t=>Fi(e,t))}}function Li(e){return Ii(Ei(e))}export{Li as tableOfWorkbook};
|