allyhub 0.12.0 → 0.13.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/CHANGELOG.md +8 -0
- package/dist/commands/frames/report.js +1 -1
- package/dist/commands/frames.js +11 -11
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/audio/dist/render.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/build/package.json +1 -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 +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +3 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.js +2 -1
- package/dist/node_modules/@allyhub/chart/dist/color.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/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/call.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +1 -1
- 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/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-print/package.json +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/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +130 -0
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/gen.d.ts +3 -1
- package/dist/node_modules/@allyhub/formats/dist/data/gen.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +512 -166
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +2523 -136
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +931 -87
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
- 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/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
- 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/dist/run.d.ts +6 -1
- package/dist/node_modules/@allyhub/media/dist/run.js +2 -2
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- 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/ooxml/dist/color.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/transform.js +2 -0
- package/dist/node_modules/@allyhub/ooxml/package.json +5 -1
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +4 -4
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +2 -2
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/part-keys.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +19 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +35 -20
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +3 -3
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +28 -2
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +73 -10
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +9 -9
- 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/report-extension/dist/cli/find.js +1 -1
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +3 -3
- package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +29 -1
- package/dist/node_modules/@allyhub/report-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +11 -4
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +6 -2
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +1 -1
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +3 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- 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/annotations.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/rules.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/arrange.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/data-tools.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/edit.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/fill.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.js +1 -1
- 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/outline.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/rich.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/rules.js +1 -1
- 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/workbook.js +1 -1
- 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/runs.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.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/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +3 -3
- 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/check.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/generated/table-styles.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/numbering.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/patterns.js +2 -0
- 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/sdk.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/table-style.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/audio-icon.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 +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +2 -1
- 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/table-styles.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/timing.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 +2 -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/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/ink.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- 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/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +101 -49
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +3 -3
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
- 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 +12 -12
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-BKmMA6gn.js → abnfDiagram-WEYOIA3C-D70jg8mE.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-BEFBgb4k.js → architecture-WOLXFQ4H-CrXS3E8e.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-_u5YfCjY.js → architectureDiagram-ZHVYKT53-JrBljCOx.js} +1 -1
- package/editor-web/assets/arrow-down-DzZjFrBL.js +1 -0
- package/editor-web/assets/arrow-up-hdmh9LVD.js +1 -0
- package/editor-web/assets/{article-BUmD3xtR.js → article-BWrfVMRA.js} +6 -6
- package/editor-web/assets/article-hxHjqzV1.js +7 -0
- package/editor-web/assets/{audio-lines-CzuzsGjI.js → audio-lines-1s1eRs4Q.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DybfaO3Z.js → blockDiagram-RJAE7QA3-BzfC1xTS.js} +1 -1
- package/editor-web/assets/{bookmark-Dsd3kHJJ.js → bookmark-Dfji3syX.js} +1 -1
- package/editor-web/assets/{button-eGxLxbv9.js → button-EftXSfev.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-BfqLHB5i.js → c4Diagram-XDPPPE54-s2TpXKgH.js} +1 -1
- package/editor-web/assets/calc-worker-jImBXoeb.js +45 -0
- package/editor-web/assets/channel-BFbXY6R0.js +1 -0
- package/editor-web/assets/chart-BC3kUUDD.js +2 -0
- package/editor-web/assets/{chart-no-axes-column-BVkeF_Mr.js → chart-no-axes-column-CJmeYOSo.js} +1 -1
- package/editor-web/assets/{chunk-2E7WHVMD-BVp1I_d0.js → chunk-2E7WHVMD-DyE9v6UX.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-CTdgWEMr.js → chunk-4EMNKR2T-CCunMMcT.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-7pnsxeaP.js → chunk-55XCU76K-CZgJYrN4.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-Dc0Dvkq7.js → chunk-7S6XSTFO-B01FlTFf.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-VAILIsfx.js → chunk-AQDTSKZB-latWUvVu.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-CUDx1Rv5.js → chunk-DSNLSHJZ-BHFiQInN.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-DAoEe-dJ.js → chunk-HAGFOTED-C4hR36ab.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-g0akya12.js → chunk-HNE4Q36P-CNrxiD2Q.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-hTGjzXdJ.js → chunk-NQOKRVIF-DpyEHKEY.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-BgLV8BIJ.js → chunk-UHW7PFBP-SIEJdixh.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-Bw19OOSD.js → chunk-VQ5W62QI-CxWnQRxx.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-CMST9dyE.js → chunk-WQQL4CDK-CbRuCBm6.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Bbpu36XF.js → chunk-YZO67HFG-Cgu-EQvs.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-C48Ri0Gs.js → chunk-ZAUX2LTX-pAl5CV3o.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-DN1g01Oe.js → chunk-ZCHMQSOR-Du5hY-FP.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-U6jbPr2d.js → classDiagram-v2-4MYWR3UA-CevU94T6.js} +1 -1
- package/editor-web/assets/{collaborator-B1u2td9m.js → collaborator-C6IJkcGR.js} +1 -1
- package/editor-web/assets/copy-DvOiv9Ra.js +1 -0
- package/editor-web/assets/{createLucideIcon-GFZ_fxLc.js → createLucideIcon-REX213UO.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-gzkai_7-.js → cynefin-EF2NZ3EQ-DBHwpMRJ.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-DtSekSr6.js → cynefinDiagram-WF24UDRP-CxUzpjvG.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-CiUwYVT6.js → dagre-NK4GIZVX-BAJNBDYO.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-r9XHCV-k.js → diagram-CBK3MWTC-BQW9Fbw-.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-DxVsDZ34.js → diagram-I5XIIV2D-DQBROUfn.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-B0eNQoHV.js → diagram-ODIL2UCW-DEoK31qy.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-C7f2MfJT.js → diagram-PFBEJUXE-BTCa2We1.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-CSXcnvct.js → diagram-RJA3I4VV-DNM8qWC3.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-DXzOD_ii.js → diagram-TYUNFSNR-BcKpED4d.js} +1 -1
- package/editor-web/assets/dist-90dg0B0d.js +2 -0
- package/editor-web/assets/dist-BSPs7tZR.js +1 -0
- package/editor-web/assets/dist-CP9XwbBS.js +45 -0
- package/editor-web/assets/dist-CRxtC7DG.js +24 -0
- package/editor-web/assets/{dist-CC7OeU1e.js → dist-Cmnq14RO.js} +3 -3
- package/editor-web/assets/dist-CrZwqOm2.js +1 -0
- package/editor-web/assets/dist-CzUWTcvC.js +38 -0
- package/editor-web/assets/dist-D2a_y4AE.js +1 -0
- package/editor-web/assets/{dist-DDv_SbKw.js → dist-DMZ1VHPK.js} +1 -1
- package/editor-web/assets/dist-DYnXIW8F.js +16 -0
- package/editor-web/assets/{dist-BuWaZ3Y4.js → dist-Dpet39Yp.js} +30 -30
- package/editor-web/assets/dist-Dre4Cwpz.js +1 -0
- package/editor-web/assets/dist-RkxskWGK.js +5 -0
- package/editor-web/assets/dist-aANR6S2I.js +3 -0
- package/editor-web/assets/{dist-Gz6NDS0J.js → dist-qSuFWuVB.js} +3 -3
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-Cs4YRvDD.js → ebnfDiagram-V4P3TTPT-D-1x27Eh.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Bh3LZ9WI.js → elk-QONTBCTQ-BJSCxiTH.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-C4vYTYXp.js → erDiagram-KYQIGQAA-C7Q357iD.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-BN1kkHWS.js → eventmodeling-K75KTNOO-kXrQLSF5.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-GSC4btef.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CA1LkkC5.js → ganttDiagram-R7GPNTJY-Bt3SRgK7.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-Dy5tA7dG.js → gitGraph-VSP46ZUC-DS4CkhfK.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-hJIB8EkH.js → gitGraphDiagram-PDYL7XHY-BgfmSVdI.js} +1 -1
- package/editor-web/assets/group-pebHQTdP.js +1 -0
- package/editor-web/assets/{hint-B8JpEypy.js → hint-BmRKl2nL.js} +1 -1
- package/editor-web/assets/index-D8qc_ipi.js +28 -0
- package/editor-web/assets/index-DDtZpLDF.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-DvzSf7rQ.js → info-OHQRW6UA-BZjctF3x.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-BjIMm4Af.js → infoDiagram-MVDRKAX5-BAp5oUXk.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Bpz71S40.js → ishikawaDiagram-HPEHV2GE-DGL7ZfUu.js} +1 -1
- package/editor-web/assets/{italic-D10w8n6C.js → italic-CtlNOXN9.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-DAB-pZjD.js → journeyDiagram-BOSHW7O7-DOOoBGx-.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-cYeyh3P6.js → kanban-definition-FNSA4HC5-lbLuUiMW.js} +1 -1
- package/editor-web/assets/katex-UWCZofcd.js +257 -0
- package/editor-web/assets/{link-BC5xK1-1.js → link-CW2KxKT_.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-req5LE0X.js → mermaid-parser.core-RkCFmJcg.js} +3 -3
- package/editor-web/assets/{mermaid.core-zFwZug4C.js → mermaid.core-BVUl-afX.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-TStWb7DG.js → mindmap-definition-6OY57UG3-C3DC4T1J.js} +1 -1
- package/editor-web/assets/minus-D1tgAHbU.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-smFhVKcB.js → packet-JDAUHWVQ-Bkd6YpX8.js} +1 -1
- package/editor-web/assets/{palette-BIOudGkm.js → palette-INFK0Zsr.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-DvSNRv0-.js → pegDiagram-ECIUJNBX-B5Seh4Oe.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-qjaGsBZG.js → pie-XZMESJXO-BNbb4Q8k.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-Dd9P-Pdc.js → pieDiagram-GNMPY74T-_hnbUloZ.js} +1 -1
- package/editor-web/assets/play-DvMyq5xW.js +1 -0
- package/editor-web/assets/{progress-DE4C5_3x.js → progress-D6wSFdpY.js} +1 -1
- package/editor-web/assets/props-form-BfwEi6jW.js +1 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-h2IIKUUA.js → quadrantDiagram-D57K4MC3-1rbqW-KO.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-DlVrSA1d.js → radar-ABXABTNO-BWSnhBSp.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-nFbuLAtc.js → railroad-I3PHUGI6-BNB-OKs1.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-Daj8h2iV.js → railroad-abnf-LNEFI6M7-BKgidf_B.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-eYJyl5PH.js → railroad-ebnf-DWYD2UWJ-CNCnxtHp.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-BTRhKZQq.js → railroad-peg-JR7BVNR7-CyBW6_0o.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-CeLGUjdp.js → railroadDiagram-Y72NRBL7-Cud3SJ7O.js} +1 -1
- package/editor-web/assets/{react-WA6wlt8S.js → react-Bk7NnOLX.js} +1 -1
- package/editor-web/assets/{repeat-2-VQP1EVOZ.js → repeat-2-DfPmKp4w.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dmk9XRM5.js → requirementDiagram-EQYSW5RA-BrSCcpqV.js} +1 -1
- package/editor-web/assets/{row-BRlEWRrK.js → row-VwyPfa1b.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-Yn4zlrAM.js → sankeyDiagram-SY24JHO5-rJV4dJFn.js} +1 -1
- package/editor-web/assets/scissors-D9WmgvNP.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-BTRnp_PW.js → sequenceDiagram-BLEHNHQU-CEUuD2n6.js} +1 -1
- package/editor-web/assets/{session-Do9AqS38.js → session-DE0fvAcs.js} +1 -1
- package/editor-web/assets/sigma-CY2Chbro.js +1 -0
- package/editor-web/assets/slides-BgacyjJW.js +1 -0
- package/editor-web/assets/{snapshots-BUGlKQIB.js → snapshots-D8TtZp1x.js} +1 -1
- package/editor-web/assets/{sound-Bj3o9_Fa.js → sound-DUCxe9eC.js} +1 -1
- package/editor-web/assets/split-Cx2MMnC_.js +3 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-kstrRKv2.js → stateDiagram-v2-A6IESKWZ-BRE_C2he.js} +1 -1
- package/editor-web/assets/sticky-note-C5qUDHhC.js +1 -0
- package/editor-web/assets/{strikethrough-CfXx6IYH.js → strikethrough-DP-7tMz0.js} +1 -1
- package/editor-web/assets/svg-nJtFNJ-7.js +1 -0
- package/editor-web/assets/{swatch-WeJD41aW.js → swatch-lxK4C8fD.js} +1 -1
- package/editor-web/assets/{swimlanes-B3ENRKFQ-DaZsZkeP.js → swimlanes-B3ENRKFQ-BEPqWgVe.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DAcNszZ6.js +8 -0
- package/editor-web/assets/{switch-N0G_sbqt.js → switch-DaG6OuAi.js} +1 -1
- package/editor-web/assets/{syntax-oWsKBWFw.js → syntax-9LD8MzGy.js} +1 -1
- package/editor-web/assets/{syntax-BVsgRJ4I.js → syntax-CLaCSmoi.js} +1 -1
- package/editor-web/assets/{table-B6hVZAMi.js → table-CTjNpE4W.js} +1 -1
- package/editor-web/assets/tabs-DjhzblAG.js +1 -0
- package/editor-web/assets/{textarea-tEWvBY9p.js → textarea-DBwRbOyF.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-CLCvY-Yf.js → timeline-definition-JXYKGLGB-p8Qeg4pS.js} +1 -1
- package/editor-web/assets/{trash-2-BP6nqpg2.js → trash-2-DrnRa91l.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-BmN0gwdC.js → treeView-D4JQ5SDB-C9FTdXKq.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-DN29G_E_.js → treemap-SAJKECNS-XAeLVOtI.js} +1 -1
- package/editor-web/assets/{undo-2-CHR0nvWL.js → undo-2-DUGGyBdX.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DTRS54cB.js → usecaseDiagram-WPOLBNNX-BV3AMRuH.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DAAc11Hx.js → vennDiagram-Q3Y3IDCW-CJdKcYyA.js} +1 -1
- package/editor-web/assets/{video-BlvmR8BK.js → video-He8p6dr6.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-B-UYkmdB.js → wardley-7MLQ67FV-DZh6Mf22.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BmbwCaky.js → wardleyDiagram-IVAIDKWA-XtvKSX-m.js} +1 -1
- package/editor-web/assets/{words-D_4T9Adq.js → words-CPHp_0tt.js} +1 -1
- package/editor-web/assets/{words-WgdEQdYP.js → words-CjW-1tZI.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-ChAfAq1U.js → xychartDiagram-4URNHDU4-CGkL42sz.js} +1 -1
- package/editor-web/assets/zoom-in-C4lxmIDE.js +1 -0
- package/editor-web/index.html +6 -6
- package/package.json +2 -2
- package/editor-web/assets/arrow-up-B5rJbBv0.js +0 -1
- package/editor-web/assets/article-DNioBb3p.js +0 -7
- package/editor-web/assets/calc-worker-D2pGis6e.js +0 -45
- package/editor-web/assets/channel-TNPgFDrw.js +0 -1
- package/editor-web/assets/chart-C37xvZT2.js +0 -1
- package/editor-web/assets/dist-BGRwhCQO.js +0 -1
- package/editor-web/assets/dist-BW4X7BrF.js +0 -1
- package/editor-web/assets/dist-BgDRE85b.js +0 -2
- package/editor-web/assets/dist-Blq5nJnU.js +0 -24
- package/editor-web/assets/dist-C1emZ9wX.js +0 -37
- package/editor-web/assets/dist-CX-fiPSn.js +0 -38
- package/editor-web/assets/dist-C_VvG-_9.js +0 -5
- package/editor-web/assets/dist-Ce7HrBxv.js +0 -3
- package/editor-web/assets/dist-D2k6w-_a.js +0 -1
- package/editor-web/assets/dist-DEoEO4zs.js +0 -1
- package/editor-web/assets/dist-DlDxxPIP.js +0 -16
- package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +0 -1
- package/editor-web/assets/index-CgB5osVc.js +0 -28
- package/editor-web/assets/index-Daytem9N.css +0 -2
- package/editor-web/assets/katex-5Z2zF-9g.js +0 -257
- package/editor-web/assets/minus-DaWs5i8B.js +0 -1
- package/editor-web/assets/play-CrMmPghG.js +0 -1
- package/editor-web/assets/props-form-CsmDBqzy.js +0 -1
- package/editor-web/assets/schemas-VikZYZIK.js +0 -1
- package/editor-web/assets/slides-diTEQ3C5.js +0 -1
- package/editor-web/assets/split-CNU1RHcX.js +0 -3
- package/editor-web/assets/svg-Cx50MpxK.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +0 -8
- package/editor-web/assets/tabs-DIFDqj-l.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const TABLE_STYLES=[{id:"{2D5ABB26-0587-4C30-8999-92F81FD0307C}",name:"No Style, No Grid",family:"themed1",parts:{wholeTbl:{text:"dk1",fill:null},firstRow:{bold:!0},lastRow:{bold:!0},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{3C2FFA5D-87B4-456A-9821-1D502468CF0F}",name:"Themed Style 1 - Accent 1",family:"themed1",accent:1,parts:{wholeTbl:{text:"dk1",fill:null,borders:{left:{color:"accent1",width:6350},right:{color:"accent1",width:6350},top:{color:"accent1",width:6350},bottom:{color:"accent1",width:6350},insideH:{color:"accent1",width:6350},insideV:{color:"accent1",width:6350}}},band1H:{fill:{theme_color:"accent1",transforms:[{name:"alpha",value:.4}]}},band1V:{fill:{theme_color:"accent1",transforms:[{name:"alpha",value:.4}]},borders:{top:{color:"accent1",width:6350},bottom:{color:"accent1",width:6350}}},lastCol:{bold:!0,borders:{left:{color:"accent1",width:12700},right:{color:"accent1",width:6350},top:{color:"accent1",width:6350},bottom:{color:"accent1",width:6350},insideH:{color:"accent1",width:6350},insideV:null}},firstCol:{bold:!0,borders:{left:{color:"accent1",width:6350},right:{color:"accent1",width:12700},top:{color:"accent1",width:6350},bottom:{color:"accent1",width:6350},insideH:{color:"accent1",width:6350},insideV:null}},lastRow:{bold:!0,fill:null,borders:{left:{color:"accent1",width:6350},right:{color:"accent1",width:6350},top:{color:"accent1",width:12700},bottom:{color:"accent1",width:12700},insideH:null,insideV:null}},firstRow:{bold:!0,text:"lt1",fill:"accent1",borders:{left:{color:"accent1",width:6350},right:{color:"accent1",width:6350},top:{color:"accent1",width:6350},bottom:{color:"lt1",width:12700},insideH:null,insideV:null}}}},{id:"{284E427A-3D55-4303-BF80-6455036E1DE7}",name:"Themed Style 1 - Accent 2",family:"themed1",accent:2,parts:{wholeTbl:{text:"dk1",fill:null,borders:{left:{color:"accent2",width:6350},right:{color:"accent2",width:6350},top:{color:"accent2",width:6350},bottom:{color:"accent2",width:6350},insideH:{color:"accent2",width:6350},insideV:{color:"accent2",width:6350}}},band1H:{fill:{theme_color:"accent2",transforms:[{name:"alpha",value:.4}]}},band1V:{fill:{theme_color:"accent2",transforms:[{name:"alpha",value:.4}]},borders:{top:{color:"accent2",width:6350},bottom:{color:"accent2",width:6350}}},lastCol:{bold:!0,borders:{left:{color:"accent2",width:12700},right:{color:"accent2",width:6350},top:{color:"accent2",width:6350},bottom:{color:"accent2",width:6350},insideH:{color:"accent2",width:6350},insideV:null}},firstCol:{bold:!0,borders:{left:{color:"accent2",width:6350},right:{color:"accent2",width:12700},top:{color:"accent2",width:6350},bottom:{color:"accent2",width:6350},insideH:{color:"accent2",width:6350},insideV:null}},lastRow:{bold:!0,fill:null,borders:{left:{color:"accent2",width:6350},right:{color:"accent2",width:6350},top:{color:"accent2",width:12700},bottom:{color:"accent2",width:12700},insideH:null,insideV:null}},firstRow:{bold:!0,text:"lt1",fill:"accent2",borders:{left:{color:"accent2",width:6350},right:{color:"accent2",width:6350},top:{color:"accent2",width:6350},bottom:{color:"lt1",width:12700},insideH:null,insideV:null}}}},{id:"{69C7853C-536D-4A76-A0AE-DD22124D55A5}",name:"Themed Style 1 - Accent 3",family:"themed1",accent:3,parts:{wholeTbl:{text:"dk1",fill:null,borders:{left:{color:"accent3",width:6350},right:{color:"accent3",width:6350},top:{color:"accent3",width:6350},bottom:{color:"accent3",width:6350},insideH:{color:"accent3",width:6350},insideV:{color:"accent3",width:6350}}},band1H:{fill:{theme_color:"accent3",transforms:[{name:"alpha",value:.4}]}},band1V:{fill:{theme_color:"accent3",transforms:[{name:"alpha",value:.4}]},borders:{top:{color:"accent3",width:6350},bottom:{color:"accent3",width:6350}}},lastCol:{bold:!0,borders:{left:{color:"accent3",width:12700},right:{color:"accent3",width:6350},top:{color:"accent3",width:6350},bottom:{color:"accent3",width:6350},insideH:{color:"accent3",width:6350},insideV:null}},firstCol:{bold:!0,borders:{left:{color:"accent3",width:6350},right:{color:"accent3",width:12700},top:{color:"accent3",width:6350},bottom:{color:"accent3",width:6350},insideH:{color:"accent3",width:6350},insideV:null}},lastRow:{bold:!0,fill:null,borders:{left:{color:"accent3",width:6350},right:{color:"accent3",width:6350},top:{color:"accent3",width:12700},bottom:{color:"accent3",width:12700},insideH:null,insideV:null}},firstRow:{bold:!0,text:"lt1",fill:"accent3",borders:{left:{color:"accent3",width:6350},right:{color:"accent3",width:6350},top:{color:"accent3",width:6350},bottom:{color:"lt1",width:12700},insideH:null,insideV:null}}}},{id:"{775DCB02-9BB8-47FD-8907-85C794F793BA}",name:"Themed Style 1 - Accent 4",family:"themed1",accent:4,parts:{wholeTbl:{text:"dk1",fill:null,borders:{left:{color:"accent4",width:6350},right:{color:"accent4",width:6350},top:{color:"accent4",width:6350},bottom:{color:"accent4",width:6350},insideH:{color:"accent4",width:6350},insideV:{color:"accent4",width:6350}}},band1H:{fill:{theme_color:"accent4",transforms:[{name:"alpha",value:.4}]}},band1V:{fill:{theme_color:"accent4",transforms:[{name:"alpha",value:.4}]},borders:{top:{color:"accent4",width:6350},bottom:{color:"accent4",width:6350}}},lastCol:{bold:!0,borders:{left:{color:"accent4",width:12700},right:{color:"accent4",width:6350},top:{color:"accent4",width:6350},bottom:{color:"accent4",width:6350},insideH:{color:"accent4",width:6350},insideV:null}},firstCol:{bold:!0,borders:{left:{color:"accent4",width:6350},right:{color:"accent4",width:12700},top:{color:"accent4",width:6350},bottom:{color:"accent4",width:6350},insideH:{color:"accent4",width:6350},insideV:null}},lastRow:{bold:!0,fill:null,borders:{left:{color:"accent4",width:6350},right:{color:"accent4",width:6350},top:{color:"accent4",width:12700},bottom:{color:"accent4",width:12700},insideH:null,insideV:null}},firstRow:{bold:!0,text:"lt1",fill:"accent4",borders:{left:{color:"accent4",width:6350},right:{color:"accent4",width:6350},top:{color:"accent4",width:6350},bottom:{color:"lt1",width:12700},insideH:null,insideV:null}}}},{id:"{35758FB7-9AC5-4552-8A53-C91805E547FA}",name:"Themed Style 1 - Accent 5",family:"themed1",accent:5,parts:{wholeTbl:{text:"dk1",fill:null,borders:{left:{color:"accent5",width:6350},right:{color:"accent5",width:6350},top:{color:"accent5",width:6350},bottom:{color:"accent5",width:6350},insideH:{color:"accent5",width:6350},insideV:{color:"accent5",width:6350}}},band1H:{fill:{theme_color:"accent5",transforms:[{name:"alpha",value:.4}]}},band1V:{fill:{theme_color:"accent5",transforms:[{name:"alpha",value:.4}]},borders:{top:{color:"accent5",width:6350},bottom:{color:"accent5",width:6350}}},lastCol:{bold:!0,borders:{left:{color:"accent5",width:12700},right:{color:"accent5",width:6350},top:{color:"accent5",width:6350},bottom:{color:"accent5",width:6350},insideH:{color:"accent5",width:6350},insideV:null}},firstCol:{bold:!0,borders:{left:{color:"accent5",width:6350},right:{color:"accent5",width:12700},top:{color:"accent5",width:6350},bottom:{color:"accent5",width:6350},insideH:{color:"accent5",width:6350},insideV:null}},lastRow:{bold:!0,fill:null,borders:{left:{color:"accent5",width:6350},right:{color:"accent5",width:6350},top:{color:"accent5",width:12700},bottom:{color:"accent5",width:12700},insideH:null,insideV:null}},firstRow:{bold:!0,text:"lt1",fill:"accent5",borders:{left:{color:"accent5",width:6350},right:{color:"accent5",width:6350},top:{color:"accent5",width:6350},bottom:{color:"lt1",width:12700},insideH:null,insideV:null}}}},{id:"{08FB837D-C827-4EFA-A057-4D05807E0F7C}",name:"Themed Style 1 - Accent 6",family:"themed1",accent:6,parts:{wholeTbl:{text:"dk1",fill:null,borders:{left:{color:"accent6",width:6350},right:{color:"accent6",width:6350},top:{color:"accent6",width:6350},bottom:{color:"accent6",width:6350},insideH:{color:"accent6",width:6350},insideV:{color:"accent6",width:6350}}},band1H:{fill:{theme_color:"accent6",transforms:[{name:"alpha",value:.4}]}},band1V:{fill:{theme_color:"accent6",transforms:[{name:"alpha",value:.4}]},borders:{top:{color:"accent6",width:6350},bottom:{color:"accent6",width:6350}}},lastCol:{bold:!0,borders:{left:{color:"accent6",width:12700},right:{color:"accent6",width:6350},top:{color:"accent6",width:6350},bottom:{color:"accent6",width:6350},insideH:{color:"accent6",width:6350},insideV:null}},firstCol:{bold:!0,borders:{left:{color:"accent6",width:6350},right:{color:"accent6",width:12700},top:{color:"accent6",width:6350},bottom:{color:"accent6",width:6350},insideH:{color:"accent6",width:6350},insideV:null}},lastRow:{bold:!0,fill:null,borders:{left:{color:"accent6",width:6350},right:{color:"accent6",width:6350},top:{color:"accent6",width:12700},bottom:{color:"accent6",width:12700},insideH:null,insideV:null}},firstRow:{bold:!0,text:"lt1",fill:"accent6",borders:{left:{color:"accent6",width:6350},right:{color:"accent6",width:6350},top:{color:"accent6",width:6350},bottom:{color:"lt1",width:12700},insideH:null,insideV:null}}}},{id:"{5940675A-B579-460E-94D1-54222C63F5DA}",name:"No Style, Table Grid",family:"themed2",parts:{wholeTbl:{text:"dk1",fill:null,borders:{left:{color:"tx1",width:12700},right:{color:"tx1",width:12700},top:{color:"tx1",width:12700},bottom:{color:"tx1",width:12700},insideH:{color:"tx1",width:12700},insideV:{color:"tx1",width:12700}}},firstRow:{bold:!0},lastRow:{bold:!0},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{D113A9D2-9D6B-4929-AA2D-F23B5EE8CBE7}",name:"Themed Style 2 - Accent 1",family:"themed2",accent:1,background:"accent1",parts:{wholeTbl:{text:"lt1",borders:{left:{color:{theme_color:"accent1",transforms:[{name:"tint",value:.5}]},width:6350},right:{color:{theme_color:"accent1",transforms:[{name:"tint",value:.5}]},width:6350},top:{color:{theme_color:"accent1",transforms:[{name:"tint",value:.5}]},width:6350},bottom:{color:{theme_color:"accent1",transforms:[{name:"tint",value:.5}]},width:6350}}},band1H:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"lt1",borders:{bottom:{color:"lt1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"lt1",width:12700}}},firstCol:{bold:!0,borders:{right:{color:"lt1",width:12700}}},lastCol:{bold:!0,borders:{left:{color:"lt1",width:12700}}}}},{id:"{18603FDC-E32A-4AB5-989C-0864C3EAD2B8}",name:"Themed Style 2 - Accent 2",family:"themed2",accent:2,background:"accent2",parts:{wholeTbl:{text:"lt1",borders:{left:{color:{theme_color:"accent2",transforms:[{name:"tint",value:.5}]},width:6350},right:{color:{theme_color:"accent2",transforms:[{name:"tint",value:.5}]},width:6350},top:{color:{theme_color:"accent2",transforms:[{name:"tint",value:.5}]},width:6350},bottom:{color:{theme_color:"accent2",transforms:[{name:"tint",value:.5}]},width:6350}}},band1H:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"lt1",borders:{bottom:{color:"lt1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"lt1",width:12700}}},firstCol:{bold:!0,borders:{right:{color:"lt1",width:12700}}},lastCol:{bold:!0,borders:{left:{color:"lt1",width:12700}}}}},{id:"{306799F8-075E-4A3A-A7F6-7FBC6576F1A4}",name:"Themed Style 2 - Accent 3",family:"themed2",accent:3,background:"accent3",parts:{wholeTbl:{text:"lt1",borders:{left:{color:{theme_color:"accent3",transforms:[{name:"tint",value:.5}]},width:6350},right:{color:{theme_color:"accent3",transforms:[{name:"tint",value:.5}]},width:6350},top:{color:{theme_color:"accent3",transforms:[{name:"tint",value:.5}]},width:6350},bottom:{color:{theme_color:"accent3",transforms:[{name:"tint",value:.5}]},width:6350}}},band1H:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"lt1",borders:{bottom:{color:"lt1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"lt1",width:12700}}},firstCol:{bold:!0,borders:{right:{color:"lt1",width:12700}}},lastCol:{bold:!0,borders:{left:{color:"lt1",width:12700}}}}},{id:"{E269D01E-BC32-4049-B463-5C60D7B0CCD2}",name:"Themed Style 2 - Accent 4",family:"themed2",accent:4,background:"accent4",parts:{wholeTbl:{text:"lt1",borders:{left:{color:{theme_color:"accent4",transforms:[{name:"tint",value:.5}]},width:6350},right:{color:{theme_color:"accent4",transforms:[{name:"tint",value:.5}]},width:6350},top:{color:{theme_color:"accent4",transforms:[{name:"tint",value:.5}]},width:6350},bottom:{color:{theme_color:"accent4",transforms:[{name:"tint",value:.5}]},width:6350}}},band1H:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"lt1",borders:{bottom:{color:"lt1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"lt1",width:12700}}},firstCol:{bold:!0,borders:{right:{color:"lt1",width:12700}}},lastCol:{bold:!0,borders:{left:{color:"lt1",width:12700}}}}},{id:"{327F97BB-C833-4FB7-BDE5-3F7075034690}",name:"Themed Style 2 - Accent 5",family:"themed2",accent:5,background:"accent5",parts:{wholeTbl:{text:"lt1",borders:{left:{color:{theme_color:"accent5",transforms:[{name:"tint",value:.5}]},width:6350},right:{color:{theme_color:"accent5",transforms:[{name:"tint",value:.5}]},width:6350},top:{color:{theme_color:"accent5",transforms:[{name:"tint",value:.5}]},width:6350},bottom:{color:{theme_color:"accent5",transforms:[{name:"tint",value:.5}]},width:6350}}},band1H:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"lt1",borders:{bottom:{color:"lt1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"lt1",width:12700}}},firstCol:{bold:!0,borders:{right:{color:"lt1",width:12700}}},lastCol:{bold:!0,borders:{left:{color:"lt1",width:12700}}}}},{id:"{638B1855-1B75-4FBE-930C-398BA8C253C6}",name:"Themed Style 2 - Accent 6",family:"themed2",accent:6,background:"accent6",parts:{wholeTbl:{text:"lt1",borders:{left:{color:{theme_color:"accent6",transforms:[{name:"tint",value:.5}]},width:6350},right:{color:{theme_color:"accent6",transforms:[{name:"tint",value:.5}]},width:6350},top:{color:{theme_color:"accent6",transforms:[{name:"tint",value:.5}]},width:6350},bottom:{color:{theme_color:"accent6",transforms:[{name:"tint",value:.5}]},width:6350}}},band1H:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"lt1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"lt1",borders:{bottom:{color:"lt1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"lt1",width:12700}}},firstCol:{bold:!0,borders:{right:{color:"lt1",width:12700}}},lastCol:{bold:!0,borders:{left:{color:"lt1",width:12700}}}}},{id:"{9D7B26C5-4107-4FEC-AEDC-1716B250A1EF}",name:"Light Style 1",family:"light1",parts:{wholeTbl:{text:"tx1",fill:null,borders:{top:{color:"dk1",width:12700},bottom:{color:"dk1",width:12700}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"tx1",borders:{bottom:{color:"dk1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"dk1",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0,text:"tx1"}}},{id:"{3B4B98B0-60AC-42C2-AFA5-B58CD77FA1E5}",name:"Light Style 1 - Accent 1",family:"light1",accent:1,parts:{wholeTbl:{text:"tx1",fill:null,borders:{top:{color:"accent1",width:12700},bottom:{color:"accent1",width:12700}}},band1H:{fill:{theme_color:"accent1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"tx1",borders:{bottom:{color:"accent1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent1",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0,text:"tx1"}}},{id:"{0E3FDE45-AF77-4B5C-9715-49D594BDF05E}",name:"Light Style 1 - Accent 2",family:"light1",accent:2,parts:{wholeTbl:{text:"tx1",fill:null,borders:{top:{color:"accent2",width:12700},bottom:{color:"accent2",width:12700}}},band1H:{fill:{theme_color:"accent2",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent2",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"tx1",borders:{bottom:{color:"accent2",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent2",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0,text:"tx1"}}},{id:"{C083E6E3-FA7D-4D7B-A595-EF9225AFEA82}",name:"Light Style 1 - Accent 3",family:"light1",accent:3,parts:{wholeTbl:{text:"tx1",fill:null,borders:{top:{color:"accent3",width:12700},bottom:{color:"accent3",width:12700}}},band1H:{fill:{theme_color:"accent3",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent3",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"tx1",borders:{bottom:{color:"accent3",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent3",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0,text:"tx1"}}},{id:"{D27102A9-8310-4765-A935-A1911B00CA55}",name:"Light Style 1 - Accent 4",family:"light1",accent:4,parts:{wholeTbl:{text:"tx1",fill:null,borders:{top:{color:"accent4",width:12700},bottom:{color:"accent4",width:12700}}},band1H:{fill:{theme_color:"accent4",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent4",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"tx1",borders:{bottom:{color:"accent4",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent4",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0,text:"tx1"}}},{id:"{5FD0F851-EC5A-4D38-B0AD-8093EC10F338}",name:"Light Style 1 - Accent 5",family:"light1",accent:5,parts:{wholeTbl:{text:"tx1",fill:null,borders:{top:{color:"accent5",width:12700},bottom:{color:"accent5",width:12700}}},band1H:{fill:{theme_color:"accent5",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent5",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"tx1",borders:{bottom:{color:"accent5",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent5",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0,text:"tx1"}}},{id:"{68D230F3-CF80-4859-8CE7-A43EE81993B5}",name:"Light Style 1 - Accent 6",family:"light1",accent:6,parts:{wholeTbl:{text:"tx1",fill:null,borders:{top:{color:"accent6",width:12700},bottom:{color:"accent6",width:12700}}},band1H:{fill:{theme_color:"accent6",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent6",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"tx1",borders:{bottom:{color:"accent6",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent6",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0,text:"tx1"}}},{id:"{7E9639D4-E3E2-4D34-9284-5A2195B3D0D7}",name:"Light Style 2",family:"light2",parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"dk1",width:12700},right:{color:"dk1",width:12700},top:{color:"dk1",width:12700},bottom:{color:"dk1",width:12700}}},band1H:{borders:{top:{color:"dk1",width:12700},bottom:{color:"dk1",width:12700}}},band1V:{borders:{left:{color:"dk1",width:12700},right:{color:"dk1",width:12700}}},band2V:{borders:{left:{color:"dk1",width:12700},right:{color:"dk1",width:12700}}},firstRow:{bold:!0,text:"bg1",fill:"dk1"},lastRow:{bold:!0,borders:{top:{color:"dk1",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{69012ECD-51FC-41F1-AA8D-1B2483CD663E}",name:"Light Style 2 - Accent 1",family:"light2",accent:1,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent1",width:12700},right:{color:"accent1",width:12700},top:{color:"accent1",width:12700},bottom:{color:"accent1",width:12700}}},band1H:{borders:{top:{color:"accent1",width:12700},bottom:{color:"accent1",width:12700}}},band1V:{borders:{left:{color:"accent1",width:12700},right:{color:"accent1",width:12700}}},band2V:{borders:{left:{color:"accent1",width:12700},right:{color:"accent1",width:12700}}},firstRow:{bold:!0,text:"bg1",fill:"accent1"},lastRow:{bold:!0,borders:{top:{color:"accent1",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{72833802-FEF1-4C79-8D5D-14CF1EAF98D9}",name:"Light Style 2 - Accent 2",family:"light2",accent:2,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent2",width:12700},right:{color:"accent2",width:12700},top:{color:"accent2",width:12700},bottom:{color:"accent2",width:12700}}},band1H:{borders:{top:{color:"accent2",width:12700},bottom:{color:"accent2",width:12700}}},band1V:{borders:{left:{color:"accent2",width:12700},right:{color:"accent2",width:12700}}},band2V:{borders:{left:{color:"accent2",width:12700},right:{color:"accent2",width:12700}}},firstRow:{bold:!0,text:"bg1",fill:"accent2"},lastRow:{bold:!0,borders:{top:{color:"accent2",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{F2DE63D5-997A-4646-A377-4702673A728D}",name:"Light Style 2 - Accent 3",family:"light2",accent:3,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent3",width:12700},right:{color:"accent3",width:12700},top:{color:"accent3",width:12700},bottom:{color:"accent3",width:12700}}},band1H:{borders:{top:{color:"accent3",width:12700},bottom:{color:"accent3",width:12700}}},band1V:{borders:{left:{color:"accent3",width:12700},right:{color:"accent3",width:12700}}},band2V:{borders:{left:{color:"accent3",width:12700},right:{color:"accent3",width:12700}}},firstRow:{bold:!0,text:"bg1",fill:"accent3"},lastRow:{bold:!0,borders:{top:{color:"accent3",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{17292A2E-F333-43FB-9621-5CBBE7FDCDCB}",name:"Light Style 2 - Accent 4",family:"light2",accent:4,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent4",width:12700},right:{color:"accent4",width:12700},top:{color:"accent4",width:12700},bottom:{color:"accent4",width:12700}}},band1H:{borders:{top:{color:"accent4",width:12700},bottom:{color:"accent4",width:12700}}},band1V:{borders:{left:{color:"accent4",width:12700},right:{color:"accent4",width:12700}}},band2V:{borders:{left:{color:"accent4",width:12700},right:{color:"accent4",width:12700}}},firstRow:{bold:!0,text:"bg1",fill:"accent4"},lastRow:{bold:!0,borders:{top:{color:"accent4",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{5A111915-BE36-4E01-A7E5-04B1672EAD32}",name:"Light Style 2 - Accent 5",family:"light2",accent:5,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent5",width:12700},right:{color:"accent5",width:12700},top:{color:"accent5",width:12700},bottom:{color:"accent5",width:12700}}},band1H:{borders:{top:{color:"accent5",width:12700},bottom:{color:"accent5",width:12700}}},band1V:{borders:{left:{color:"accent5",width:12700},right:{color:"accent5",width:12700}}},band2V:{borders:{left:{color:"accent5",width:12700},right:{color:"accent5",width:12700}}},firstRow:{bold:!0,text:"bg1",fill:"accent5"},lastRow:{bold:!0,borders:{top:{color:"accent5",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{912C8C85-51F0-491E-9774-3900AFEF0FD7}",name:"Light Style 2 - Accent 6",family:"light2",accent:6,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent6",width:12700},right:{color:"accent6",width:12700},top:{color:"accent6",width:12700},bottom:{color:"accent6",width:12700}}},band1H:{borders:{top:{color:"accent6",width:12700},bottom:{color:"accent6",width:12700}}},band1V:{borders:{left:{color:"accent6",width:12700},right:{color:"accent6",width:12700}}},band2V:{borders:{left:{color:"accent6",width:12700},right:{color:"accent6",width:12700}}},firstRow:{bold:!0,text:"bg1",fill:"accent6"},lastRow:{bold:!0,borders:{top:{color:"accent6",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{616DA210-FB5B-4158-B5E0-FEB733F419BA}",name:"Light Style 3",family:"light3",parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"dk1",width:12700},right:{color:"dk1",width:12700},top:{color:"dk1",width:12700},bottom:{color:"dk1",width:12700},insideH:{color:"dk1",width:12700},insideV:{color:"dk1",width:12700}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"dk1",borders:{bottom:{color:"dk1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"dk1",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{BC89EF96-8CEA-46FF-86C4-4CE0E7609802}",name:"Light Style 3 - Accent 1",family:"light3",accent:1,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent1",width:12700},right:{color:"accent1",width:12700},top:{color:"accent1",width:12700},bottom:{color:"accent1",width:12700},insideH:{color:"accent1",width:12700},insideV:{color:"accent1",width:12700}}},band1H:{fill:{theme_color:"accent1",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent1",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"accent1",borders:{bottom:{color:"accent1",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent1",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{5DA37D80-6434-44D0-A028-1B22A696006F}",name:"Light Style 3 - Accent 2",family:"light3",accent:2,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent2",width:12700},right:{color:"accent2",width:12700},top:{color:"accent2",width:12700},bottom:{color:"accent2",width:12700},insideH:{color:"accent2",width:12700},insideV:{color:"accent2",width:12700}}},band1H:{fill:{theme_color:"accent2",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent2",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"accent2",borders:{bottom:{color:"accent2",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent2",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{8799B23B-EC83-4686-B30A-512413B5E67A}",name:"Light Style 3 - Accent 3",family:"light3",accent:3,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent3",width:12700},right:{color:"accent3",width:12700},top:{color:"accent3",width:12700},bottom:{color:"accent3",width:12700},insideH:{color:"accent3",width:12700},insideV:{color:"accent3",width:12700}}},band1H:{fill:{theme_color:"accent3",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent3",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"accent3",borders:{bottom:{color:"accent3",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent3",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{ED083AE6-46FA-4A59-8FB0-9F97EB10719F}",name:"Light Style 3 - Accent 4",family:"light3",accent:4,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent4",width:12700},right:{color:"accent4",width:12700},top:{color:"accent4",width:12700},bottom:{color:"accent4",width:12700},insideH:{color:"accent4",width:12700},insideV:{color:"accent4",width:12700}}},band1H:{fill:{theme_color:"accent4",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent4",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"accent4",borders:{bottom:{color:"accent4",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent4",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{BDBED569-4797-4DF1-A0F4-6AAB3CD982D8}",name:"Light Style 3 - Accent 5",family:"light3",accent:5,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent5",width:12700},right:{color:"accent5",width:12700},top:{color:"accent5",width:12700},bottom:{color:"accent5",width:12700},insideH:{color:"accent5",width:12700},insideV:{color:"accent5",width:12700}}},band1H:{fill:{theme_color:"accent5",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent5",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"accent5",borders:{bottom:{color:"accent5",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent5",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{E8B1032C-EA38-4F05-BA0D-38AFFFC7BED3}",name:"Light Style 3 - Accent 6",family:"light3",accent:6,parts:{wholeTbl:{text:"tx1",fill:null,borders:{left:{color:"accent6",width:12700},right:{color:"accent6",width:12700},top:{color:"accent6",width:12700},bottom:{color:"accent6",width:12700},insideH:{color:"accent6",width:12700},insideV:{color:"accent6",width:12700}}},band1H:{fill:{theme_color:"accent6",transforms:[{name:"alpha",value:.2}]}},band1V:{fill:{theme_color:"accent6",transforms:[{name:"alpha",value:.2}]}},firstRow:{bold:!0,text:"accent6",borders:{bottom:{color:"accent6",width:12700}}},lastRow:{bold:!0,borders:{top:{color:"accent6",width:12700}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{793D81CF-94F2-401A-BA57-92F5A7B2D0C5}",name:"Medium Style 1",family:"medium1",parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{left:{color:"dk1",width:12700},right:{color:"dk1",width:12700},top:{color:"dk1",width:12700},bottom:{color:"dk1",width:12700},insideH:{color:"dk1",width:12700}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},firstRow:{bold:!0,text:"lt1",fill:"dk1"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"dk1",width:38100}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{B301B821-A1FF-4177-AEE7-76D212191A09}",name:"Medium Style 1 - Accent 1",family:"medium1",accent:1,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{left:{color:"accent1",width:12700},right:{color:"accent1",width:12700},top:{color:"accent1",width:12700},bottom:{color:"accent1",width:12700},insideH:{color:"accent1",width:12700}}},band1H:{fill:{theme_color:"accent1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"accent1",transforms:[{name:"tint",value:.2}]}},firstRow:{bold:!0,text:"lt1",fill:"accent1"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"accent1",width:38100}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{9DCAF9ED-07DC-4A11-8D7F-57B35C25682E}",name:"Medium Style 1 - Accent 2",family:"medium1",accent:2,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{left:{color:"accent2",width:12700},right:{color:"accent2",width:12700},top:{color:"accent2",width:12700},bottom:{color:"accent2",width:12700},insideH:{color:"accent2",width:12700}}},band1H:{fill:{theme_color:"accent2",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"accent2",transforms:[{name:"tint",value:.2}]}},firstRow:{bold:!0,text:"lt1",fill:"accent2"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"accent2",width:38100}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{1FECB4D8-DB02-4DC6-A0A2-4F2EBAE1DC90}",name:"Medium Style 1 - Accent 3",family:"medium1",accent:3,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{left:{color:"accent3",width:12700},right:{color:"accent3",width:12700},top:{color:"accent3",width:12700},bottom:{color:"accent3",width:12700},insideH:{color:"accent3",width:12700}}},band1H:{fill:{theme_color:"accent3",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"accent3",transforms:[{name:"tint",value:.2}]}},firstRow:{bold:!0,text:"lt1",fill:"accent3"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"accent3",width:38100}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{1E171933-4619-4E11-9A3F-F7608DF75F80}",name:"Medium Style 1 - Accent 4",family:"medium1",accent:4,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{left:{color:"accent4",width:12700},right:{color:"accent4",width:12700},top:{color:"accent4",width:12700},bottom:{color:"accent4",width:12700},insideH:{color:"accent4",width:12700}}},band1H:{fill:{theme_color:"accent4",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"accent4",transforms:[{name:"tint",value:.2}]}},firstRow:{bold:!0,text:"lt1",fill:"accent4"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"accent4",width:38100}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{FABFCF23-3B69-468F-B69F-88F6DE6A72F2}",name:"Medium Style 1 - Accent 5",family:"medium1",accent:5,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{left:{color:"accent5",width:12700},right:{color:"accent5",width:12700},top:{color:"accent5",width:12700},bottom:{color:"accent5",width:12700},insideH:{color:"accent5",width:12700}}},band1H:{fill:{theme_color:"accent5",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"accent5",transforms:[{name:"tint",value:.2}]}},firstRow:{bold:!0,text:"lt1",fill:"accent5"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"accent5",width:38100}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{10A1B5D5-9B99-4C35-A422-299274C87663}",name:"Medium Style 1 - Accent 6",family:"medium1",accent:6,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{left:{color:"accent6",width:12700},right:{color:"accent6",width:12700},top:{color:"accent6",width:12700},bottom:{color:"accent6",width:12700},insideH:{color:"accent6",width:12700}}},band1H:{fill:{theme_color:"accent6",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"accent6",transforms:[{name:"tint",value:.2}]}},firstRow:{bold:!0,text:"lt1",fill:"accent6"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"accent6",width:38100}}},firstCol:{bold:!0},lastCol:{bold:!0}}},{id:"{073A0DAA-6AF3-43AB-8588-CEC1D06C72B9}",name:"Medium Style 2",family:"medium2",parts:{wholeTbl:{text:"dk1",fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"lt1",width:12700},right:{color:"lt1",width:12700},top:{color:"lt1",width:12700},bottom:{color:"lt1",width:12700},insideH:{color:"lt1",width:12700},insideV:{color:"lt1",width:12700}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0,text:"lt1",fill:"dk1"},firstCol:{bold:!0,text:"lt1",fill:"dk1"},lastRow:{bold:!0,text:"lt1",fill:"dk1",borders:{top:{color:"lt1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"dk1",borders:{bottom:{color:"lt1",width:38100}}}}},{id:"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}",name:"Medium Style 2 - Accent 1",family:"medium2",accent:1,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent1",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"lt1",width:12700},right:{color:"lt1",width:12700},top:{color:"lt1",width:12700},bottom:{color:"lt1",width:12700},insideH:{color:"lt1",width:12700},insideV:{color:"lt1",width:12700}}},band1H:{fill:{theme_color:"accent1",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent1",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0,text:"lt1",fill:"accent1"},firstCol:{bold:!0,text:"lt1",fill:"accent1"},lastRow:{bold:!0,text:"lt1",fill:"accent1",borders:{top:{color:"lt1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent1",borders:{bottom:{color:"lt1",width:38100}}}}},{id:"{21E4AEA4-8DFA-4A89-87EB-49C32662AFE0}",name:"Medium Style 2 - Accent 2",family:"medium2",accent:2,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent2",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"lt1",width:12700},right:{color:"lt1",width:12700},top:{color:"lt1",width:12700},bottom:{color:"lt1",width:12700},insideH:{color:"lt1",width:12700},insideV:{color:"lt1",width:12700}}},band1H:{fill:{theme_color:"accent2",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent2",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0,text:"lt1",fill:"accent2"},firstCol:{bold:!0,text:"lt1",fill:"accent2"},lastRow:{bold:!0,text:"lt1",fill:"accent2",borders:{top:{color:"lt1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent2",borders:{bottom:{color:"lt1",width:38100}}}}},{id:"{F5AB1C69-6EDB-4FF4-983F-18BD219EF322}",name:"Medium Style 2 - Accent 3",family:"medium2",accent:3,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent3",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"lt1",width:12700},right:{color:"lt1",width:12700},top:{color:"lt1",width:12700},bottom:{color:"lt1",width:12700},insideH:{color:"lt1",width:12700},insideV:{color:"lt1",width:12700}}},band1H:{fill:{theme_color:"accent3",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent3",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0,text:"lt1",fill:"accent3"},firstCol:{bold:!0,text:"lt1",fill:"accent3"},lastRow:{bold:!0,text:"lt1",fill:"accent3",borders:{top:{color:"lt1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent3",borders:{bottom:{color:"lt1",width:38100}}}}},{id:"{00A15C55-8517-42AA-B614-E9B94910E393}",name:"Medium Style 2 - Accent 4",family:"medium2",accent:4,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent4",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"lt1",width:12700},right:{color:"lt1",width:12700},top:{color:"lt1",width:12700},bottom:{color:"lt1",width:12700},insideH:{color:"lt1",width:12700},insideV:{color:"lt1",width:12700}}},band1H:{fill:{theme_color:"accent4",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent4",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0,text:"lt1",fill:"accent4"},firstCol:{bold:!0,text:"lt1",fill:"accent4"},lastRow:{bold:!0,text:"lt1",fill:"accent4",borders:{top:{color:"lt1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent4",borders:{bottom:{color:"lt1",width:38100}}}}},{id:"{7DF18680-E054-41AD-8BC1-D1AEF772440D}",name:"Medium Style 2 - Accent 5",family:"medium2",accent:5,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent5",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"lt1",width:12700},right:{color:"lt1",width:12700},top:{color:"lt1",width:12700},bottom:{color:"lt1",width:12700},insideH:{color:"lt1",width:12700},insideV:{color:"lt1",width:12700}}},band1H:{fill:{theme_color:"accent5",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent5",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0,text:"lt1",fill:"accent5"},firstCol:{bold:!0,text:"lt1",fill:"accent5"},lastRow:{bold:!0,text:"lt1",fill:"accent5",borders:{top:{color:"lt1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent5",borders:{bottom:{color:"lt1",width:38100}}}}},{id:"{93296810-A885-4BE3-A3E7-6D5BEEA58F35}",name:"Medium Style 2 - Accent 6",family:"medium2",accent:6,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent6",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"lt1",width:12700},right:{color:"lt1",width:12700},top:{color:"lt1",width:12700},bottom:{color:"lt1",width:12700},insideH:{color:"lt1",width:12700},insideV:{color:"lt1",width:12700}}},band1H:{fill:{theme_color:"accent6",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent6",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0,text:"lt1",fill:"accent6"},firstCol:{bold:!0,text:"lt1",fill:"accent6"},lastRow:{bold:!0,text:"lt1",fill:"accent6",borders:{top:{color:"lt1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent6",borders:{bottom:{color:"lt1",width:38100}}}}},{id:"{8EC20E35-A176-4012-BC5E-935CFFF8708E}",name:"Medium Style 3",family:"medium3",parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{top:{color:"dk1",width:25400},bottom:{color:"dk1",width:25400}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},lastCol:{bold:!0,text:"lt1",fill:"dk1"},firstCol:{bold:!0,text:"lt1",fill:"dk1"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"dk1",borders:{bottom:{color:"dk1",width:25400}}}}},{id:"{6E25E649-3F16-4E02-A733-19D2CDBF48F0}",name:"Medium Style 3 - Accent 1",family:"medium3",accent:1,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{top:{color:"dk1",width:25400},bottom:{color:"dk1",width:25400}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},lastCol:{bold:!0,text:"lt1",fill:"accent1"},firstCol:{bold:!0,text:"lt1",fill:"accent1"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent1",borders:{bottom:{color:"dk1",width:25400}}}}},{id:"{85BE263C-DBD7-4A20-BB59-AAB30ACAA65A}",name:"Medium Style 3 - Accent 2",family:"medium3",accent:2,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{top:{color:"dk1",width:25400},bottom:{color:"dk1",width:25400}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},lastCol:{bold:!0,text:"lt1",fill:"accent2"},firstCol:{bold:!0,text:"lt1",fill:"accent2"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent2",borders:{bottom:{color:"dk1",width:25400}}}}},{id:"{EB344D84-9AFB-497E-A393-DC336BA19D2E}",name:"Medium Style 3 - Accent 3",family:"medium3",accent:3,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{top:{color:"dk1",width:25400},bottom:{color:"dk1",width:25400}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},lastCol:{bold:!0,text:"lt1",fill:"accent3"},firstCol:{bold:!0,text:"lt1",fill:"accent3"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent3",borders:{bottom:{color:"dk1",width:25400}}}}},{id:"{EB9631B5-78F2-41C9-869B-9F39066F8104}",name:"Medium Style 3 - Accent 4",family:"medium3",accent:4,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{top:{color:"dk1",width:25400},bottom:{color:"dk1",width:25400}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},lastCol:{bold:!0,text:"lt1",fill:"accent4"},firstCol:{bold:!0,text:"lt1",fill:"accent4"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent4",borders:{bottom:{color:"dk1",width:25400}}}}},{id:"{74C1A8A3-306A-4EB7-A6B1-4F7E0EB9C5D6}",name:"Medium Style 3 - Accent 5",family:"medium3",accent:5,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{top:{color:"dk1",width:25400},bottom:{color:"dk1",width:25400}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},lastCol:{bold:!0,text:"lt1",fill:"accent5"},firstCol:{bold:!0,text:"lt1",fill:"accent5"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent5",borders:{bottom:{color:"dk1",width:25400}}}}},{id:"{2A488322-F2BA-4B5B-9748-0D474271808F}",name:"Medium Style 3 - Accent 6",family:"medium3",accent:6,parts:{wholeTbl:{text:"dk1",fill:"lt1",borders:{top:{color:"dk1",width:25400},bottom:{color:"dk1",width:25400}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},lastCol:{bold:!0,text:"lt1",fill:"accent6"},firstCol:{bold:!0,text:"lt1",fill:"accent6"},lastRow:{bold:!0,fill:"lt1",borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent6",borders:{bottom:{color:"dk1",width:25400}}}}},{id:"{D7AC3CCA-C797-4891-BE02-D94E43425B78}",name:"Medium Style 4",family:"medium4",parts:{wholeTbl:{text:"dk1",fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"dk1",width:12700},right:{color:"dk1",width:12700},top:{color:"dk1",width:12700},bottom:{color:"dk1",width:12700},insideH:{color:"dk1",width:12700},insideV:{color:"dk1",width:12700}}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:25400}}},firstRow:{bold:!0,text:"dk1",fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}}}},{id:"{69CF1AB2-1976-4502-BF36-3FF5EA218861}",name:"Medium Style 4 - Accent 1",family:"medium4",accent:1,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent1",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"accent1",width:12700},right:{color:"accent1",width:12700},top:{color:"accent1",width:12700},bottom:{color:"accent1",width:12700},insideH:{color:"accent1",width:12700},insideV:{color:"accent1",width:12700}}},band1H:{fill:{theme_color:"accent1",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent1",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:25400}}},firstRow:{bold:!0,text:"accent1",fill:{theme_color:"accent1",transforms:[{name:"tint",value:.2}]}}}},{id:"{8A107856-5554-42FB-B03E-39F5DBC370BA}",name:"Medium Style 4 - Accent 2",family:"medium4",accent:2,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent2",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"accent2",width:12700},right:{color:"accent2",width:12700},top:{color:"accent2",width:12700},bottom:{color:"accent2",width:12700},insideH:{color:"accent2",width:12700},insideV:{color:"accent2",width:12700}}},band1H:{fill:{theme_color:"accent2",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent2",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:25400}}},firstRow:{bold:!0,text:"accent2",fill:{theme_color:"accent2",transforms:[{name:"tint",value:.2}]}}}},{id:"{0505E3EF-67EA-436B-97B2-0124C06EBD24}",name:"Medium Style 4 - Accent 3",family:"medium4",accent:3,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent3",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"accent3",width:12700},right:{color:"accent3",width:12700},top:{color:"accent3",width:12700},bottom:{color:"accent3",width:12700},insideH:{color:"accent3",width:12700},insideV:{color:"accent3",width:12700}}},band1H:{fill:{theme_color:"accent3",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent3",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:25400}}},firstRow:{bold:!0,text:"accent3",fill:{theme_color:"accent3",transforms:[{name:"tint",value:.2}]}}}},{id:"{C4B1156A-380E-4F78-BDF5-A606A8083BF9}",name:"Medium Style 4 - Accent 4",family:"medium4",accent:4,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent4",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"accent4",width:12700},right:{color:"accent4",width:12700},top:{color:"accent4",width:12700},bottom:{color:"accent4",width:12700},insideH:{color:"accent4",width:12700},insideV:{color:"accent4",width:12700}}},band1H:{fill:{theme_color:"accent4",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent4",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:25400}}},firstRow:{bold:!0,text:"accent4",fill:{theme_color:"accent4",transforms:[{name:"tint",value:.2}]}}}},{id:"{22838BEF-8BB2-4498-84A7-C5851F593DF1}",name:"Medium Style 4 - Accent 5",family:"medium4",accent:5,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent5",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"accent5",width:12700},right:{color:"accent5",width:12700},top:{color:"accent5",width:12700},bottom:{color:"accent5",width:12700},insideH:{color:"accent5",width:12700},insideV:{color:"accent5",width:12700}}},band1H:{fill:{theme_color:"accent5",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent5",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:25400}}},firstRow:{bold:!0,text:"accent5",fill:{theme_color:"accent5",transforms:[{name:"tint",value:.2}]}}}},{id:"{16D9F66E-5EB9-4882-86FB-DCBF35E3C3E4}",name:"Medium Style 4 - Accent 6",family:"medium4",accent:6,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent6",transforms:[{name:"tint",value:.2}]},borders:{left:{color:"accent6",width:12700},right:{color:"accent6",width:12700},top:{color:"accent6",width:12700},bottom:{color:"accent6",width:12700},insideH:{color:"accent6",width:12700},insideV:{color:"accent6",width:12700}}},band1H:{fill:{theme_color:"accent6",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent6",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:25400}}},firstRow:{bold:!0,text:"accent6",fill:{theme_color:"accent6",transforms:[{name:"tint",value:.2}]}}}},{id:"{E8034E78-7F5D-4C2E-B375-FC64B27BC917}",name:"Dark Style 1",family:"dark1",parts:{wholeTbl:{text:"lt1",fill:{theme_color:"dk1",transforms:[{name:"tint",value:.8}]},borders:{left:null,right:null,top:null,bottom:null,insideH:null,insideV:null}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.6}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.6}]}},lastCol:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.4}]},borders:{left:{color:"lt1",width:25400}}},firstCol:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.4}]},borders:{right:{color:"lt1",width:25400}}},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.8}]},borders:{top:{color:"lt1",width:25400}}},firstRow:{bold:!0,fill:"dk1",borders:{bottom:{color:"lt1",width:25400}}}}},{id:"{125E5076-3810-47DD-B79F-674D7AD40C01}",name:"Dark Style 1 - Accent 1",family:"dark1",accent:1,parts:{wholeTbl:{text:"lt1",fill:{theme_color:"accent1",transforms:[{name:"shade",value:.2}]},borders:{left:null,right:null,top:null,bottom:null,insideH:null,insideV:null}},band1H:{fill:{theme_color:"accent1",transforms:[{name:"shade",value:.4}]}},band1V:{fill:{theme_color:"accent1",transforms:[{name:"shade",value:.4}]}},lastCol:{bold:!0,fill:{theme_color:"accent1",transforms:[{name:"shade",value:.6}]},borders:{left:{color:"lt1",width:25400}}},firstCol:{bold:!0,fill:{theme_color:"accent1",transforms:[{name:"shade",value:.6}]},borders:{right:{color:"lt1",width:25400}}},lastRow:{bold:!0,fill:{theme_color:"accent1",transforms:[{name:"shade",value:.2}]},borders:{top:{color:"lt1",width:25400}}},firstRow:{bold:!0,fill:"dk1",borders:{bottom:{color:"lt1",width:25400}}}}},{id:"{37CE84F3-28C3-443E-9E96-99CF82512B78}",name:"Dark Style 1 - Accent 2",family:"dark1",accent:2,parts:{wholeTbl:{text:"lt1",fill:{theme_color:"accent2",transforms:[{name:"shade",value:.2}]},borders:{left:null,right:null,top:null,bottom:null,insideH:null,insideV:null}},band1H:{fill:{theme_color:"accent2",transforms:[{name:"shade",value:.4}]}},band1V:{fill:{theme_color:"accent2",transforms:[{name:"shade",value:.4}]}},lastCol:{bold:!0,fill:{theme_color:"accent2",transforms:[{name:"shade",value:.6}]},borders:{left:{color:"lt1",width:25400}}},firstCol:{bold:!0,fill:{theme_color:"accent2",transforms:[{name:"shade",value:.6}]},borders:{right:{color:"lt1",width:25400}}},lastRow:{bold:!0,fill:{theme_color:"accent2",transforms:[{name:"shade",value:.2}]},borders:{top:{color:"lt1",width:25400}}},firstRow:{bold:!0,fill:"dk1",borders:{bottom:{color:"lt1",width:25400}}}}},{id:"{D03447BB-5D67-496B-8E87-E561075AD55C}",name:"Dark Style 1 - Accent 3",family:"dark1",accent:3,parts:{wholeTbl:{text:"lt1",fill:{theme_color:"accent3",transforms:[{name:"shade",value:.2}]},borders:{left:null,right:null,top:null,bottom:null,insideH:null,insideV:null}},band1H:{fill:{theme_color:"accent3",transforms:[{name:"shade",value:.4}]}},band1V:{fill:{theme_color:"accent3",transforms:[{name:"shade",value:.4}]}},lastCol:{bold:!0,fill:{theme_color:"accent3",transforms:[{name:"shade",value:.6}]},borders:{left:{color:"lt1",width:25400}}},firstCol:{bold:!0,fill:{theme_color:"accent3",transforms:[{name:"shade",value:.6}]},borders:{right:{color:"lt1",width:25400}}},lastRow:{bold:!0,fill:{theme_color:"accent3",transforms:[{name:"shade",value:.2}]},borders:{top:{color:"lt1",width:25400}}},firstRow:{bold:!0,fill:"dk1",borders:{bottom:{color:"lt1",width:25400}}}}},{id:"{E929F9F4-4A8F-4326-A1B4-22849713DDAB}",name:"Dark Style 1 - Accent 4",family:"dark1",accent:4,parts:{wholeTbl:{text:"lt1",fill:{theme_color:"accent4",transforms:[{name:"shade",value:.2}]},borders:{left:null,right:null,top:null,bottom:null,insideH:null,insideV:null}},band1H:{fill:{theme_color:"accent4",transforms:[{name:"shade",value:.4}]}},band1V:{fill:{theme_color:"accent4",transforms:[{name:"shade",value:.4}]}},lastCol:{bold:!0,fill:{theme_color:"accent4",transforms:[{name:"shade",value:.6}]},borders:{left:{color:"lt1",width:25400}}},firstCol:{bold:!0,fill:{theme_color:"accent4",transforms:[{name:"shade",value:.6}]},borders:{right:{color:"lt1",width:25400}}},lastRow:{bold:!0,fill:{theme_color:"accent4",transforms:[{name:"shade",value:.2}]},borders:{top:{color:"lt1",width:25400}}},firstRow:{bold:!0,fill:"dk1",borders:{bottom:{color:"lt1",width:25400}}}}},{id:"{8FD4443E-F989-4FC4-A0C8-D5A2AF1F390B}",name:"Dark Style 1 - Accent 5",family:"dark1",accent:5,parts:{wholeTbl:{text:"lt1",fill:{theme_color:"accent5",transforms:[{name:"shade",value:.2}]},borders:{left:null,right:null,top:null,bottom:null,insideH:null,insideV:null}},band1H:{fill:{theme_color:"accent5",transforms:[{name:"shade",value:.4}]}},band1V:{fill:{theme_color:"accent5",transforms:[{name:"shade",value:.4}]}},lastCol:{bold:!0,fill:{theme_color:"accent5",transforms:[{name:"shade",value:.6}]},borders:{left:{color:"lt1",width:25400}}},firstCol:{bold:!0,fill:{theme_color:"accent5",transforms:[{name:"shade",value:.6}]},borders:{right:{color:"lt1",width:25400}}},lastRow:{bold:!0,fill:{theme_color:"accent5",transforms:[{name:"shade",value:.2}]},borders:{top:{color:"lt1",width:25400}}},firstRow:{bold:!0,fill:"dk1",borders:{bottom:{color:"lt1",width:25400}}}}},{id:"{AF606853-7671-496A-8E4F-DF71F8EC918B}",name:"Dark Style 1 - Accent 6",family:"dark1",accent:6,parts:{wholeTbl:{text:"lt1",fill:{theme_color:"accent6",transforms:[{name:"shade",value:.2}]},borders:{left:null,right:null,top:null,bottom:null,insideH:null,insideV:null}},band1H:{fill:{theme_color:"accent6",transforms:[{name:"shade",value:.4}]}},band1V:{fill:{theme_color:"accent6",transforms:[{name:"shade",value:.4}]}},lastCol:{bold:!0,fill:{theme_color:"accent6",transforms:[{name:"shade",value:.6}]},borders:{left:{color:"lt1",width:25400}}},firstCol:{bold:!0,fill:{theme_color:"accent6",transforms:[{name:"shade",value:.6}]},borders:{right:{color:"lt1",width:25400}}},lastRow:{bold:!0,fill:{theme_color:"accent6",transforms:[{name:"shade",value:.2}]},borders:{top:{color:"lt1",width:25400}}},firstRow:{bold:!0,fill:"dk1",borders:{bottom:{color:"lt1",width:25400}}}}},{id:"{5202B0CA-FC54-4496-8BCA-5EF66A818D29}",name:"Dark Style 2",family:"dark2",parts:{wholeTbl:{text:"dk1",fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]}},band1H:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"dk1",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"dk1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"dk1"}}},{id:"{0660B408-B3CF-4A94-85FC-2B1E0A45F4A2}",name:"Dark Style 2 - Accent 1/Accent 2",family:"dark2",accent:1,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent1",transforms:[{name:"tint",value:.2}]}},band1H:{fill:{theme_color:"accent1",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent1",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"accent1",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent2"}}},{id:"{91EBBBCC-DAD2-459C-BE2E-F6DE35CF9A28}",name:"Dark Style 2 - Accent 3/Accent 4",family:"dark2",accent:3,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent3",transforms:[{name:"tint",value:.2}]}},band1H:{fill:{theme_color:"accent3",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent3",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"accent3",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent4"}}},{id:"{46F890A9-2807-4EBB-B81D-B2AA78EC7F39}",name:"Dark Style 2 - Accent 5/Accent 6",family:"dark2",accent:5,parts:{wholeTbl:{text:"dk1",fill:{theme_color:"accent5",transforms:[{name:"tint",value:.2}]}},band1H:{fill:{theme_color:"accent5",transforms:[{name:"tint",value:.4}]}},band1V:{fill:{theme_color:"accent5",transforms:[{name:"tint",value:.4}]}},lastCol:{bold:!0},firstCol:{bold:!0},lastRow:{bold:!0,fill:{theme_color:"accent5",transforms:[{name:"tint",value:.2}]},borders:{top:{color:"dk1",width:38100}}},firstRow:{bold:!0,text:"lt1",fill:"accent6"}}}];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export*from"./units.js";export*from"./lang.js";export*from"./enums.js";export*from"./strict.js";export*from"./animation.js";export*from"@allyhub/chart";export*from"./chart-api.js";export*from"./office.js";export*from"./path.js";export*from"./placeholders.js";export*from"./theme.js";export*from"./model.js";export*from"./connect.js";export*from"./api.js";export*from"./code.js";export*from"./resolve.js";export*from"./identity.js";export*from"./file.js";export*from"./script.js";export*from"./merge.js";export*from"./stage.js";export*from"./components.js";export*from"./check.js";export*from"./capabilities.js";export*from"./measure.js";export*from"./fact.js";
|
|
2
|
+
export*from"./units.js";export*from"./lang.js";export*from"./enums.js";export*from"./strict.js";export*from"./animation.js";export*from"@allyhub/chart";export*from"./chart-api.js";export*from"./office.js";export*from"./numbering.js";export*from"./path.js";export*from"./patterns.js";export*from"./placeholders.js";export*from"./theme.js";export*from"./model.js";export*from"./table-style.js";export*from"./connect.js";export*from"./api.js";export*from"./code.js";export*from"./resolve.js";export*from"./identity.js";export*from"./file.js";export*from"./script.js";export*from"./merge.js";export*from"./stage.js";export*from"./components.js";export*from"./check.js";export*from"./capabilities.js";export*from"./measure.js";export*from"./fact.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readDataFile as T}from"@allyhub/formats";import{editSlidesFile as I,readSlidesFile as
|
|
2
|
+
import{readDataFile as T}from"@allyhub/formats";import{editSlidesFile as I,readSlidesFile as K,slidesEdits as O}from"./file.js";import{deckScriptEdits as _,editDeckScript as C,readScript as R}from"./script.js";import{commonPairs as E,isRecord as $,sameValue as y,valueKey as F}from"./values.js";const N="order";function M(e,n,i,t,r,c){if(y(t,r))return t;if(y(i,t))return r;if(y(i,r))return t;if(t===void 0||r===void 0)return c.push({path:n,mine:t,theirs:r,kept:t===void 0?"theirs":"mine"}),t??r;if($(t)&&$(r)&&(i===void 0||$(i))&&!e.whole(n)){const s={};for(const d of new Set([...Object.keys(r),...Object.keys(t)])){const f=M(e,[...n,d],i?.[d],t[d],r[d],c);f!==void 0&&(s[d]=f)}return s}if(Array.isArray(t)&&Array.isArray(r)&&(i===void 0||Array.isArray(i))){const s=e.list(n),d=i??[];if(s==="lines")return B(n,d,t,r,c);if(s)return z(e,n,d,t,r,s,c)}return c.push({path:n,mine:t,theirs:r,kept:"mine"}),t}function b(e,n){const i=[],t=new Map,r=new Map;for(const c of e){const s=n(c),d=(r.get(s)??0)+1;r.set(s,d);const f=d===1?s:`${s}#${String(d)}`;i.push(f),t.set(f,c)}return{order:i,byKey:t}}function v(e,n){const i=new Set(n),t=new Set(e),r=e.filter(s=>i.has(s)),c=n.filter(s=>t.has(s));return new Set(E(r,c).map(([s])=>r[s]??""))}function z(e,n,i,t,r,c,s){const d=b(i,c),f=b(t,c),a=b(r,c),g=new Map;for(const o of new Set([...a.order,...f.order,...d.order])){const m=M(e,[...n,o],d.byKey.get(o),f.byKey.get(o),a.byKey.get(o),s);m!==void 0&&g.set(o,m)}const S=new Set(d.order),u=v(d.order,f.order),l=v(d.order,a.order),p=a.order.filter(o=>g.has(o));return f.order.forEach((o,m)=>{if(!g.has(o))return;const h=p.indexOf(o);if(h>=0&&S.has(o)&&u.has(o))return;h>=0&&p.splice(h,1);let x=0;for(let w=m-1;w>=0;w--){const k=p.indexOf(f.order[w]??"");if(k>=0){x=k+1;break}}if(p.splice(x,0,o),S.has(o)&&h>=0&&!l.has(o)){const w=(k,L)=>k[k.indexOf(L)-1]??null;w(a.order,o)!==w(f.order,o)&&s.push({path:[...n,o,N],mine:{after:w(f.order,o)},theirs:{after:w(a.order,o)},kept:"mine"})}}),p.map(o=>g.get(o))}function B(e,n,i,t,r){const c=u=>u.map(F),s=new Map(E(c(n),c(i))),d=new Map(E(c(n),c(t))),f=[];let a=0,g=0,S=0;for(;;){let u=a;for(;u<n.length&&!(s.has(u)&&d.has(u));)u++;const l=u<n.length?s.get(u)??i.length:i.length,p=u<n.length?d.get(u)??t.length:t.length;if(u===a&&l===g&&p===S){if(u>=n.length)break;f.push(i[g]),a++,g++,S++;continue}const o=n.slice(a,u),m=i.slice(g,l),h=t.slice(S,p);y(o,m)?f.push(...h):y(o,h)||y(m,h)?f.push(...m):o.length===0?f.push(...m,...h):(r.push({path:e,mine:m,theirs:h,kept:"mine"}),f.push(...m)),a=u,g=l,S=p}return f}function A(e,n,i){let t=[...e],r=[...n],c=[...i];const s=d=>({...d,id:""});for(const d of["theirs","mine"]){const f=d==="theirs"?c:r,a=d==="theirs"?r:c,g=new Set(f.map(l=>l.id)),S=new Set(t.map(l=>l.id)),u=f.filter(l=>!S.has(l.id));for(const l of t.filter(p=>!g.has(p.id))){const p=u.filter(h=>y(s(h),s(l))),[o]=p;if(p.length!==1||!o||!a.some(h=>h.id===l.id)||a.some(h=>h.id===o.id))continue;const m=h=>h.map(x=>x.id===l.id?{...x,id:o.id}:x);t=m(t),d==="theirs"?r=m(r):c=m(c)}}return[t,r,c]}const P=e=>{const n=e;return`${n.shape??""}${n.paragraph===void 0?"":`[${String(n.paragraph)}]`}:${n.effect??""}`},U=e=>{const n=e;return`${String(n.row??"")},${String(n.column??"")}`},q={list(e){if(e.length===1)return n=>$(n)?String(n.id):"";if(e.length===3&&e[2]==="animations")return P;if(e.length===3&&e[2]==="hidden")return n=>String(n);if(e.length===6&&e[4]==="table"&&e[5]==="merged")return U},whole:e=>e.length===5&&e[4]==="path"||e.length===3&&e[2]==="background"},V={list(e){if(e.length===1)return n=>$(n)?String(n.id):"";if(e.length>=4&&e[2]==="text")return"lines"},whole:()=>!1},j=e=>({...e.mine===void 0?{}:{mine:e.mine},...e.theirs===void 0?{}:{theirs:e.theirs},kept:e.kept});function Z(e){const[,n="",...i]=e.path,t=i[0]==="shapes"&&i.length>=2,r=(t?i.slice(2):i).join(".");return{slide:n,...t&&i[1]!==void 0?{shape:i[1]}:{},...r===""?{}:{field:r},...j(e)}}function G(e){const[,n="",...i]=e.path,t=i[0]==="text"&&i.length>=2,r=(t?i.slice(2):i).join(".");return{slide:n,...t&&i[1]!==void 0?{shape:i[1]}:{},...r===""?{}:{field:r},...j(e)}}export function mergeSlides(e,n,i){const t=K(e).file??{slides:[]},r=K(i).file;if(!r)return;const[c,s,d]=A(t.slides,n.slides,r.slides),f=[],a=M(q,["slides"],c,s,d,f)??[],g=T("slides",{slides:a});if(!g.ok)for(const u of new Set(g.problems.flatMap(l=>{const[p,o]=l.path.split(".");return p==="slides"&&o!==void 0?[Number(o)]:[]}))){const l=a[u]?.id,p=s.find(o=>o.id===l)??d.find(o=>o.id===l);l===void 0||!p||(a[u]=p,f.push({path:["slides",l],mine:s.find(o=>o.id===l),theirs:d.find(o=>o.id===l),kept:s.some(o=>o.id===l)?"mine":"theirs"}))}return{text:O(r,{slides:a}).reduce((u,l)=>I(u,l),i),conflicts:f.map(Z)}}export function mergeDeckScript(e,n,i){const t=R(e)??{parts:[],slides:[],boards:[]},r=R(i);if(!r)return;const[c,s,d]=A(t.slides,n.slides,r.slides),f=[],a=M(V,["slides"],c,s,d,f)??[];return{text:_(r,{...r,slides:a}).reduce((S,u)=>C(S,u),i),conflicts:f.map(G)}}const D="abcdefghijkmnpqrstuvwxyz23456789";export function newSlideId(e,n="slide",i=Math.random){const t=new Set(e),r=n.replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,"")||"slide";for(;;){let c="";for(let d=0;d<4;d++)c+=D[Math.floor(i()*D.length)]??"a";const s=`${r}-${c}`;if(!t.has(s))return s}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const NUMBERINGS_DRAWN_AS_ARABIC=new Set(["arabic1Minus","arabic2Minus","hebrew2Minus","thaiAlphaPeriod","thaiAlphaParenR","thaiAlphaParenBoth","hindiAlphaPeriod","hindiAlpha1Period"]);const l=r=>String.fromCharCode(97+(r-1)%26).repeat(Math.floor((r-1)/26)+1),p=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];function u(r){let e="",i=r;for(const[t,a]of p)for(;i>=t;)e+=a,i-=t;return e}const o=(r,e)=>String(r).replace(/\d/gu,i=>String.fromCodePoint(e+Number(i))),h="〇一二三四五六七八九";function f(r){if(r<1||r>99999)return String(r);const e=["","十","百","千","万"],i=Array.from(String(r),Number);let t="",a=!1;return i.forEach((n,c)=>{const s=i.length-1-c;if(n===0){a=!0;return}a&&(t+="零"),a=!1,n===1&&s===1&&c===0||(t+=h[n]??""),t+=e[s]??""}),t}const P=r=>String(r).replace(/\d/gu,e=>h[Number(e)]??e);function d(r,e){return r<1||r>20?String(r):e?String.fromCodePoint(r<=10?10102+r-1:9451+r-11):String.fromCodePoint(9312+r-1)}export function numberText(r,e){const i=(a,n)=>n==="ParenBoth"?`(${a})`:n==="ParenR"?`${a})`:n==="Plain"?a:`${a}.`,t=/^(alphaLc|alphaUc|romanLc|romanUc|arabic|thaiNum|hindiNum)(ParenBoth|ParenR|Period|Plain)$/u.exec(r);if(t&&!NUMBERINGS_DRAWN_AS_ARABIC.has(r)){const[,a="",n=""]=t,c=a==="alphaLc"?l(e):a==="alphaUc"?l(e).toUpperCase():a==="romanLc"?u(e):a==="romanUc"?u(e).toUpperCase():a==="thaiNum"?o(e,3664):a==="hindiNum"?o(e,2406):String(e);return i(c,n)}switch(r){case"circleNumDbPlain":case"circleNumWdWhitePlain":return d(e,!1);case"circleNumWdBlackPlain":return d(e,!0);case"arabicDbPeriod":return`${o(e,65296)}.`;case"arabicDbPlain":return o(e,65296);case"ea1ChsPeriod":case"ea1ChtPeriod":return`${f(e)}.`;case"ea1JpnChsDbPeriod":case"ea1JpnKorPeriod":return`${P(e)}.`;case"ea1ChsPlain":case"ea1ChtPlain":return f(e);case"ea1JpnKorPlain":return P(e);default:return`${String(e)}.`}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{Emu as o,Inches as r,Pt as e}from"./units.js";const
|
|
2
|
+
import{Emu as o,Inches as r,Pt as e}from"./units.js";const s=9,c=t=>Array.from({length:s},(n,l)=>t(l));export const OFFICE_TEXT_STYLES={title:c(()=>({alignment:"l",line_spacing:{lines:.9},space_before:0,bullet:null,font:{name:"+mj-lt",size:e(44),color:"tx1"}})),body:c(t=>({alignment:"l",line_spacing:{lines:.9},space_before:t===0?e(10):e(5),bullet:"•",bullet_font:"Arial",margin_left:o(228600+t*457200),indent:o(-228600),font:{name:"+mn-lt",size:e([28,24,20][t]??18),color:"tx1"}})),other:c(t=>({alignment:"l",margin_left:o(t*457200),font:{name:"+mn-lt",size:e(18),color:"tx1"}}))},SINGLE_SPACING=1.2,spaceLength=(t,n)=>t===void 0?0:typeof t=="number"?t:t.lines*n*SINGLE_SPACING,TEXT_FALLBACK={alignment:"l",line_spacing:{lines:1},space_before:0,space_after:0,indent:0,font:{name:"+mn-lt",size:e(18),color:"tx1"}},TEXT_INSETS={left:r(.1),top:r(.05),right:r(.1),bottom:r(.05)},styleKindOf=t=>t===void 0||t==="dt"||t==="ftr"||t==="sldNum"?"other":t==="title"||t==="ctrTitle"?"title":"body";export function placeholderFrame(t){const n=t==="dt"||t==="ftr"||t==="sldNum";return{vertical_anchor:t==="title"||t==="ctrTitle"||n?"ctr":"t",auto_size:n?"none":"text",word_wrap:!0}}export const placeholderLevels=t=>c(t==="subTitle"?n=>({bullet:null,margin_left:r(.5*n),indent:0}):()=>({})),FOOTER_IDX={dt:10,ftr:11,sldNum:12},TEXTBOX_FRAME={word_wrap:!1,auto_size:"shape"},DRAWN_TEXTBOX_FRAME={word_wrap:!0,auto_size:"shape"},AUTOSHAPE_STYLE={fill:"accent1",line:"accent1",line_width:o(6350),font_color:"lt1",vertical_anchor:"ctr",alignment:"ctr"},CONNECTOR_STYLE={line:"accent1",line_width:o(12700)},CONNECTOR_GEOMETRIES=["line","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5"];const a=new Set(CONNECTOR_GEOMETRIES);export const isConnectorGeometry=t=>t!==void 0&&a.has(t),PLAYBACK_DEFAULTS={start:"auto",volume:.8,icon:457200},SHADOW_DEFAULTS={color:{rgb:"#000000"},blur:e(4),distance:e(3),angle:45,transparency:.6},LINE_DEFAULTS={cap:"flat",join:"miter",compound:"sng"},PATTERN_DEFAULTS={fg:"accent1",bg:"bg1"},TILE_DEFAULTS={scale_x:1,scale_y:1,offset_x:0,offset_y:0,align:"tl"},INNER_SHADOW_DEFAULTS={color:{rgb:"#000000"},blur:e(5),distance:e(4),angle:45,transparency:.5},GLOW_DEFAULTS={color:"accent1",size:e(5),transparency:.6},REFLECTION_DEFAULTS={transparency:.5,size:.35,distance:0,blur:e(.5)};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
const d=[[0,32,8,40,2,34,10,42],[48,16,56,24,50,18,58,26],[12,44,4,36,14,46,6,38],[60,28,52,20,62,30,54,22],[3,35,11,43,1,33,9,41],[51,19,59,27,49,17,57,25],[15,47,7,39,13,45,5,37],[63,31,55,23,61,29,53,21]],a=(t,r)=>(t%r+r)%r,n=t=>(r,o)=>(d[o]?.[r]??64)<Math.round(t*64),c=(...t)=>(r,o)=>t.some(([e,s])=>e===r&&s===o),p={pct5:n(.05),pct10:n(.1),pct20:n(.2),pct25:n(.25),pct30:n(.3),pct40:n(.4),pct50:n(.5),pct60:n(.6),pct70:n(.7),pct75:n(.75),pct80:n(.8),pct90:n(.9),horz:(t,r)=>r===0,vert:t=>t===0,ltHorz:(t,r)=>r%4===0,ltVert:t=>t%4===0,dkHorz:(t,r)=>r%4<2,dkVert:t=>t%4<2,narHorz:(t,r)=>r%2===0,narVert:t=>t%2===0,dashHorz:(t,r)=>r===0&&t<4||r===4&&t>=4,dashVert:(t,r)=>t===0&&r<4||t===4&&r>=4,cross:(t,r)=>t===0||r===0,dnDiag:(t,r)=>a(t-r,8)===0,upDiag:(t,r)=>a(t+r,8)===7,ltDnDiag:(t,r)=>a(t-r,4)===0,ltUpDiag:(t,r)=>a(t+r,4)===3,dkDnDiag:(t,r)=>a(t-r,4)<2,dkUpDiag:(t,r)=>a(t+r,4)>=2,wdDnDiag:(t,r)=>a(t-r,8)<3,wdUpDiag:(t,r)=>a(t+r,8)>=5,dashDnDiag:(t,r)=>a(t-r,4)===0&&r%4<2,dashUpDiag:(t,r)=>a(t+r,4)===3&&r%4<2,diagCross:(t,r)=>a(t-r,8)===0||a(t+r,8)===7,smCheck:(t,r)=>(Math.floor(t/2)+Math.floor(r/2))%2===0,lgCheck:(t,r)=>(Math.floor(t/4)+Math.floor(r/4))%2===0,smGrid:(t,r)=>t%4===0||r%4===0,lgGrid:(t,r)=>t===0||r===0,dotGrid:(t,r)=>r===0&&t%2===0||t===0&&r%2===0,smConfetti:c([0,0],[4,1],[7,3],[2,4],[5,6],[1,7]),lgConfetti:c([0,0],[1,0],[0,1],[1,1],[4,2],[5,2],[4,3],[5,3],[2,5],[3,5],[7,6],[6,6]),horzBrick:(t,r)=>r===0||r===4||r<4&&t===0||r>4&&t===4,diagBrick:(t,r)=>a(t+r,8)===7||r===7-a(t,4)-4&&t<4,solidDmnd:(t,r)=>Math.abs(t-3.5)+Math.abs(r-3.5)<=3.5,openDmnd:(t,r)=>{const o=Math.abs(t-3.5)+Math.abs(r-3.5);return o>=3&&o<4},dotDmnd:c([0,0],[4,4],[2,6],[6,2]),plaid:(t,r)=>t<2&&r<2||(t<2||r<2)&&(t+r)%2===0,sphere:(t,r)=>{const o=(t-3.5)**2+(r-3.5)**2;return o<=12&&!(t<=2&&r<=2&&o>4)},weave:(t,r)=>r%8<4?a(t+r,4)===0:a(t-r,4)===0,divot:c([1,1],[2,2],[1,3],[5,5],[6,6],[5,7]),shingle:(t,r)=>a(t+r,8)===7||r===3&&t>=4,wave:(t,r)=>r%4===[0,1,1,2,2,1,1,0][t]||r%4===3&&(t===0||t===7),trellis:(t,r)=>r%2===0?t%4<2:a(t-2,4)<2,zigZag:(t,r)=>r%4===Math.abs(t%4-2)||r%4===0&&t%4===2};export function patternCells(t){const r=p[t];return Array.from({length:8},(o,e)=>Array.from({length:8},(s,i)=>r(i,e)))}export function patternPath(t){return patternCells(t).flatMap((r,o)=>r.flatMap((e,s)=>e?[`M${String(s)} ${String(o)}h1v1h-1z`]:[])).join("")}export const PATTERN_CELL=9525;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{colorOfFile as ee}from"@allyhub/formats";import{readMarks as _e,markRuns as be}from"@allyhub/piece";import{chartOfFile as ye}from"@allyhub/chart";import{AUTOSHAPE_STYLE as C,SHADOW_DEFAULTS as H,CONNECTOR_STYLE as ne,DRAWN_TEXTBOX_FRAME as te,TEXT_FALLBACK as ie,TEXT_INSETS as W,isConnectorGeometry as $e,placeholderFrame as xe,styleKindOf as we}from"./office.js";import{resolveAnimation as ke,resolveTransition as oe}from"./animation.js";import{glued as ve}from"./connect.js";import{pathSteps as Se}from"./path.js";import{masterPlaceholder as Ae}from"./placeholders.js";import{DECK_FONTS as Oe,OFFICE_THEME as ze,themeOver as Te}from"./theme.js";import{Pt as O}from"./units.js";export function joinPath(i,t){if(t.startsWith("/"))return t.slice(1);const u=[];for(const r of[...i.split("/"),...t.split("/")])r===""||r==="."||(r===".."?u.pop():u.push(r));return u.join("/")}const re={left:0,top:0,width:0,height:0},U=()=>Array.from({length:9},()=>({...ie,font:{...ie.font},margin_left:0}));export function levelsOver(i,...t){return i.map((u,r)=>{let o={...u,font:{...u.font}};for(const $ of t){const l=$?.[r];l&&(o={...o,...l.alignment===void 0?{}:{alignment:l.alignment},...l.line_spacing===void 0?{}:{line_spacing:l.line_spacing},...l.space_before===void 0?{}:{space_before:l.space_before},...l.space_after===void 0?{}:{space_after:l.space_after},...l.margin_left===void 0?{}:{margin_left:l.margin_left},...l.indent===void 0?{}:{indent:l.indent},font:{...o.font,...l.font}},l.numbered!==void 0&&(o.numbered=l.numbered,delete o.bullet),l.bullet===null?(delete o.bullet,delete o.numbered):l.bullet!==void 0?(delete o.numbered,o.bullet={char:l.bullet,...l.bullet_font===void 0?{}:{font:l.bullet_font}}):l.bullet_font!==void 0&&o.bullet&&(o.bullet={...o.bullet,font:l.bullet_font}))}return o})}function I(i,...t){const u=t.filter(o=>o!==void 0),r=o=>{for(let $=u.length-1;$>=0;$--){const l=u[$]?.[o];if(l!==void 0)return l}};return{vertical_anchor:r("vertical_anchor")??i.vertical_anchor,auto_size:r("auto_size")??i.auto_size,word_wrap:r("word_wrap")??i.word_wrap,margins:{left:r("margin_left")??W.left,top:r("margin_top")??W.top,right:r("margin_right")??W.right,bottom:r("margin_bottom")??W.bottom}}}const ae={vertical_anchor:"t",auto_size:"none",word_wrap:!0};export const plainLevels=i=>levelsOver(U(),i.text_styles.other);function V(i,t){return{...I(ae,t),levels:levelsOver(U(),i.text_styles.other,t.levels)}}function je(i,t,...u){return{...I(xe(t),...u),levels:levelsOver(U(),i.text_styles[we(t)],...u.map(r=>r?.levels))}}const Ee=Array.from({length:9},()=>({font:{color:C.font_color}})),de={vertical_anchor:C.vertical_anchor};function le(i,t){return{...I(ae,t),levels:levelsOver(U(),i.text_styles.other,Ee,t.levels)}}const X=i=>{const t={...i};return delete t.paragraphs,t},G=i=>({paragraphs:[],levels:[],...i}),N=i=>i==="none"?null:colorOfFile(i),Fe=/<span((?:\s+(?:color|font|size|bold|italic|underline|link|highlight|baseline|strike)="[^"\n]*")+)\s*>(.*?)<\/span>/gu,Ne=/(color|font|size|bold|italic|underline|link|highlight|baseline|strike)="([^"\n]*)"/gu,K=57344,Me=256,se="",Ce=/[\ue000-\ue100]|[^\ue000-\ue100]+/gu;export const colorOfFile=i=>ee(i)??"dk1";function Z(i){const{shadow:t,gradient:u}=i;return{...i.fill_transparency===void 0?{}:{fill_transparency:i.fill_transparency},...u?{gradient:{angle:u.angle??0,stops:u.stops.map(r=>({at:r.at,color:colorOfFile(r.color),...r.transparency===void 0?{}:{transparency:r.transparency}}))}}:{},...t?{shadow:{color:t.color===void 0?H.color:colorOfFile(t.color),blur:t.blur===void 0?H.blur:O(t.blur),distance:t.distance===void 0?H.distance:O(t.distance),angle:t.angle??H.angle,transparency:t.transparency??H.transparency}}:{}}}function fe(i,t,u=[]){return{...i,rows:i.rows.map((r,o)=>({height:r.height,cells:r.cells.map($=>{const l=u[o];return{...$,text:{paragraphs:$.text.paragraphs,style:B({...V(t,$.text),auto_size:"shape"},l),own:X($.text),empty:!1},...l?{fileText:l}:{}}})}))}}function B(i,t){return t?{...i,...t.anchor===void 0?{}:{vertical_anchor:t.anchor},levels:i.levels.map(u=>{const r={...u.font,...t.size===void 0?{}:{size:O(t.size)},...t.bold===void 0?{}:{bold:t.bold},...t.italic===void 0?{}:{italic:t.italic},...t.underline===void 0?{}:{underline:t.underline},...t.strike===void 0?{}:{strike:t.strike},...t.font===void 0?{}:{name:t.font}};t.color!==void 0&&(r.color=colorOfFile(t.color));const o={...u,font:r,...t.align===void 0?{}:{alignment:t.align},...t.line_spacing===void 0?{}:{line_spacing:{lines:t.line_spacing}},...t.space_before===void 0?{}:{space_before:O(t.space_before)},...t.space_after===void 0?{}:{space_after:O(t.space_after)}};return t.numbered!==void 0?(o.numbered=t.numbered,delete o.bullet):t.bullet===!1?(delete o.bullet,delete o.numbered):t.bullet!==void 0&&(o.bullet={char:t.bullet},delete o.numbered),(t.numbered!==void 0||t.bullet!==void 0&&t.bullet!==!1)&&u.margin_left===0?{...o,margin_left:ue,indent:-ue}:o})}:i}function Pe(i,t){if(!t)return[...i];const u=t.numbered!==void 0||t.bullet!==void 0;return i.map(r=>{const o={...r};return t.align!==void 0&&delete o.alignment,t.line_spacing!==void 0&&delete o.line_spacing,t.space_before!==void 0&&delete o.space_before,t.space_after!==void 0&&delete o.space_after,u&&(delete o.bullet,delete o.bullet_font,delete o.numbered),o})}function Le(i){const t={};for(const[,u,r=""]of i.matchAll(Ne))if(u==="font")t.name=r.trim();else if(u==="link")t.link=r.trim();else if(u==="highlight")t.highlight=r.trim().toUpperCase();else if(u==="bold")t.bold=r.trim()!=="false";else if(u==="italic")t.italic=r.trim()!=="false";else if(u==="strike")t.strike=r.trim()!=="false";else if(u==="underline")t.underline=r.trim()!=="false";else if(u==="size"){const o=Number(r);Number.isFinite(o)&&o>0&&(t.size=O(o))}else if(u==="baseline"){const o=Number(r);Number.isFinite(o)&&(t.baseline=o)}else{const o=ee(r.trim());o!==void 0&&(t.color=o)}return t}const ue=342900;export function paragraphsOfWords(i,t=0,u=Oe.code){return i===void 0?[]:typeof i=="string"?i.split(/\r?\n/u).map(r=>{const o=[],$=r.replace(Fe,(j,F,P)=>(o.push(Le(F)),`${String.fromCharCode(K+o.length-1)}${P}${se}`)),l=_e($);let E;const M=be(l.text,l.marks).flatMap(j=>{const F=j.kinds.includes("code"),P={...j.kinds.includes("strong")?{bold:!0}:{},...j.kinds.includes("em")?{italic:!0}:{},...F?{name:u}:{}};return[...j.text.matchAll(Ce)].flatMap(Y=>{const L=Y[0],R=L.charCodeAt(0);if(L===se)return E=void 0,[];if(R>=K&&R<K+Me)return E=o[R-K],[];const D={...E,...P};return[{text:L,...Object.keys(D).length>0?{font:D}:{},...F?{code:!0}:{}}]})});return{runs:M.length>0?M:[{text:""}],level:t}}):i.flatMap(r=>paragraphsOfWords(r,Array.isArray(r)?Math.min(t+1,8):t,u))}const ce=i=>({left:O(i.x),top:O(i.y),width:O(i.w),height:O(i.h)}),Re=new Set(["dt","ftr","sldNum"]),pe=i=>({...i.locked?{locked:!0}:{},...i.rotation===void 0||i.rotation===0?{}:{rotation:i.rotation},...i.flip_h||i.flip_v?{flip:{...i.flip_h?{h:!0}:{},...i.flip_v?{v:!0}:{}}}:{}});function he(i,t,u){if(!t)return;t.fill!==void 0&&(i.background=colorOfFile(t.fill));const r=t.gradient&&Z({gradient:t.gradient}).gradient;r&&(i.background_gradient=r),t.picture!==void 0&&(i.background_picture=joinPath(u,t.picture))}const me=i=>i===void 0?void 0:{left:i.left??0,top:i.top??0,right:i.right??0,bottom:i.bottom??0};export function resolveDeck(i){const{code:t,file:u,words:r,prefix:o,base:$}=i,l=[],E=Te(i.theme??ze,t.theme),M=new Map;for(const e of t.masters)for(const n of e.layouts)M.set(n.name,{layout:n,master:e});const j=[],F=(e,n,a)=>({name:e.name,kind:e.kind,frame:{...e.frame??re},...e.flip?{flip:{...e.flip}}:{},...e.connect?{connect:{...e.connect.begin?{begin:{...e.connect.begin}}:{},...e.connect.end?{end:{...e.connect.end}}:{}}}:{},...e.rotation===void 0?{}:{rotation:e.rotation},level:n,...e.text?{text:{paragraphs:e.text.paragraphs,style:e.kind==="autoshape"?le(a,e.text):V(a,e.text),own:X(e.text),empty:!1}}:{},...e.fill===void 0?{}:{fill:e.fill},...e.fill_transparency===void 0?{}:{fill_transparency:e.fill_transparency},...e.gradient?{gradient:e.gradient}:{},...e.shadow===void 0?{}:{shadow:e.shadow},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{line_width:e.line_width},...e.line_dash===void 0?{}:{line_dash:e.line_dash},...e.line_begin===void 0?{}:{line_begin:e.line_begin},...e.line_end===void 0?{}:{line_end:e.line_end},...e.line_begin_size===void 0?{}:{line_begin_size:e.line_begin_size},...e.line_end_size===void 0?{}:{line_end_size:e.line_end_size},...e.path?{path:e.path}:{},...e.table?{table:fe(e.table,a)}:{},...e.chart?{chart:e.chart}:{},...e.group===void 0?{}:{group:e.group},...e.geometry?{geometry:e.geometry}:{},...e.adjustments?{adjustments:[...e.adjustments]}:{},...e.media?{media:{path:joinPath(e.media.base,e.media.path),...e.media.poster===void 0?{}:{poster:e.media.poster}}}:{},...e.component?{component:{...e.component}}:{},sources:{frame:{from:n}}}),P=(e,n)=>{const a=e.placeholder?.type??"body",m=Ae(n,a),_=e.frame??m?.frame??re;return{name:e.name,kind:"placeholder",frame:{..._},level:"slide",...e.placeholder?{placeholder:{...e.placeholder}}:{},text:{paragraphs:[],style:je(n,a,m?.text,e.text),empty:!0},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},sources:{frame:{from:e.frame||!m?"layout":"master"},text:{from:"layout"}}}},Y=(e,n,a,m)=>{const _=t.components[e];if(!_){l.push({...a,message:/\.[cm]?[jt]sx?(?:#|$)/u.test(e)?`${e} names no component: its module has no such export, or the export is not made with defineComponent.`:`There is no component ${e} in the deck's module (it has ${Object.keys(t.components).join(", ")||"none"}).`});return}for(const b of Object.keys(n??{}))Object.hasOwn(_.props,b)||l.push({...a,message:`Component ${e} has no prop ${b} a person sets (it has ${Object.keys(_.props).join(", ")||"none"}).`});return{name:e,props:{...n??{}},...m===void 0?{}:{dur:m}}},L=(e,n,a,m,_)=>{const b={slide:m,shape:e,path:a};if(!n.frame){l.push({...b,message:`Shape ${e} is the slide's own: it needs a frame { x, y, w, h } in points.`});return}const w=ce(n.frame),s={frame:{from:"slide",path:`${a}.frame`}},y={name:e,frame:w,level:"slide",...n.fill===void 0?{}:{fill:N(n.fill)},...Z(n),...n.line===void 0?{}:{line:N(n.line)},...n.line_dash===void 0?{}:{line_dash:n.line_dash},...n.line_begin===void 0?{}:{line_begin:n.line_begin},...n.line_end===void 0?{}:{line_end:n.line_end},...n.line_begin_size===void 0?{}:{line_begin_size:n.line_begin_size},...n.line_end_size===void 0?{}:{line_end_size:n.line_end_size},...n.group===void 0?{}:{group:n.group},...pe(n)};if(n.textbox)return{...y,kind:"textbox",text:{paragraphs:paragraphsOfWords(r(`${o}.${m}.${e}`),0,E.fonts.code),style:B(V(_,G(te)),n.text),own:X(G(te)),empty:!1},...n.text?{fileText:{...n.text}}:{},sources:{...s,text:{from:"slide",path:`${a}.text`}}};if(n.picture!==void 0){const f=me(n.crop);return{...y,kind:"picture",media:{path:joinPath($,n.picture),...f?{crop:f}:{}},sources:{...s,media:{from:"slide",path:`${a}.picture`}}}}if(n.movie!==void 0)return{...y,kind:"movie",media:{path:joinPath($,n.movie),...n.poster===void 0?{}:{poster:n.poster}},sources:{...s,media:{from:"slide",path:`${a}.movie`}}};if(n.chart){const f=r(`${o}.${m}.${e}`),S=ye(n.chart,{title:typeof f=="string"?f:void 0,base:$,rows:g=>i.data?.(g),problem:g=>{l.push({...b,message:`Chart ${e}: ${g}`})}});return S?{...y,kind:"chart",chart:S,sources:s}:void 0}if(n.table){const f=n.table,S=w.width/f.columns.reduce((d,c)=>d+c,0),g=w.height/f.rows.reduce((d,c)=>d+c.height,0),v=r(`${o}.${m}.${e}`),z=Array.isArray(v)?v:[];return z.length>f.rows.length&&l.push({...b,message:`Table ${e} has ${String(f.rows.length)} rows and its words ${String(z.length)}.`}),{...y,kind:"table",table:fe({columns:f.columns.map(d=>Math.round(d*S)),rows:f.rows.map((d,c)=>{const p=z[c],x=Array.isArray(p)?p:p===void 0?[]:[p];return{height:Math.round(d.height*g),cells:f.columns.map((k,A)=>({text:{levels:[],paragraphs:paragraphsOfWords(x[A],0,E.fonts.code)},...d.fill===void 0?{}:{fill:colorOfFile(d.fill)},...d.line===void 0?{}:{borders:{bottom:{color:colorOfFile(d.line),width:O(1)}}}}))}})},_,f.rows.map(d=>d.text)),sources:s}}const h=n.path&&Se(n.path.d);if(n.path&&!h){l.push({...b,message:`Shape ${e}'s path starts with M and says only M, L, C and Z, absolute.`});return}if(n.geometry!==void 0||n.path&&h){const f=!n.path&&$e(n.geometry);return{...y,kind:"autoshape",...n.path&&h?{path:{w:n.path.w,h:n.path.h,steps:h}}:n.geometry===void 0?{}:{geometry:n.geometry,...n.adjustments?{adjustments:[...n.adjustments]}:{}},...f?{line:n.line===void 0?ne.line:N(n.line),line_width:n.line_width===void 0?ne.line_width:O(n.line_width)}:{fill:n.fill===void 0?C.fill:N(n.fill),line:n.line===void 0?C.line:N(n.line),line_width:n.line_width===void 0?C.line_width:O(n.line_width)},...n.text&&!f?{fileText:{...n.text}}:{},...f?{}:{text:{paragraphs:paragraphsOfWords(r(`${o}.${m}.${e}`)).map(S=>n.text?.align===void 0?{alignment:C.alignment,...S}:S),style:B(le(_,G(de)),n.text),own:X(G(de)),empty:!1}},sources:{...s,fill:{from:"slide",path:`${a}.fill`}}}}if(n.component!==void 0){const f=Y(n.component,n.props,b,n.dur);return f?{...y,kind:"component",component:f,sources:s}:void 0}},R=(e,n,a)=>{if(n.frame&&(e.frame=ce(n.frame),e.sources.frame={from:"slide",path:`${a}.frame`}),Object.assign(e,pe(n)),n.dur!==void 0&&e.component&&(e.component={...e.component,dur:n.dur}),n.text&&e.text&&(e.text.style=B(e.text.style,n.text),e.text.paragraphs=Pe(e.text.paragraphs,n.text),e.fileText={...n.text},e.sources.text={from:"slide",path:`${a}.text`}),n.line!==void 0&&(e.line=N(n.line),e.sources.line={from:"slide",path:`${a}.line`}),n.line_width!==void 0&&(e.line_width=O(n.line_width)),n.line_dash!==void 0&&(e.line_dash=n.line_dash),n.line_begin!==void 0&&(e.line_begin=n.line_begin),n.line_end!==void 0&&(e.line_end=n.line_end),n.line_begin_size!==void 0&&(e.line_begin_size=n.line_begin_size),n.line_end_size!==void 0&&(e.line_end_size=n.line_end_size),n.fill!==void 0&&(e.fill=N(n.fill),e.sources.fill={from:"slide",path:`${a}.fill`}),Object.assign(e,Z(n)),(n.picture!==void 0||n.movie!==void 0)&&(e.placeholder?.type==="pic"||e.placeholder?.type==="media"||e.placeholder?.type==="obj")){const m=me(n.crop);e.kind=n.picture!==void 0?"picture":"movie",e.media={path:joinPath($,n.picture??n.movie??""),...m?{crop:m}:{},...n.poster===void 0?{}:{poster:n.poster}},e.sources.media={from:"slide",path:`${a}.${n.picture!==void 0?"picture":"movie"}`},delete e.text}},D=(e,n,a,m,_)=>{const b=M.get(n);if(!b){l.push({slide:e,path:`slides.${String(a)}.layout`,message:`Slide ${e} is on the layout "${n}", which the deck's module does not have (it has ${[...M.keys()].join(", ")||"none"}).`});return}const{layout:w,master:s}=b,y=[...(w.display_master_shapes===!1?[]:s.shapes).filter(f=>f.kind!=="placeholder").map(f=>F(f,"master",s)),...w.shapes.filter(f=>f.kind!=="placeholder").map(f=>F(f,"layout",s))],h=w.shapes.filter(f=>f.kind==="placeholder").map((f,S)=>({shape:P(f,s),order:S}));return{slide:{id:e,layout:w.name,master:s.name,hidden:m,background:w.background??s.background,shapes:y,animations:[],file:{index:a,..._===void 0?{}:{generate:_}}},placed:h,master:s}},q=(e,n,a)=>{if(!n)return;const m=w=>{const s=n[w];if(s===void 0)return e.connect?.[w];const y=s==="none"?void 0:a(s.shape);return s==="none"||y===void 0?void 0:{shape:y,site:s.site}},_=m("begin"),b=m("end");_||b?e.connect={..._?{begin:_}:{},...b?{end:b}:{}}:delete e.connect},J=(e,n,a,m,_,b,w,s,y,h=()=>{})=>{const f=new Set(a.map(d=>d.shape.name));let S=a.length;for(const[d,c]of Object.entries(m??{})){const p=b(d);if(p===void 0)continue;const x=`${_}.shapes.${d}`,k=c.textbox!==void 0||c.geometry!==void 0||c.path!==void 0||c.table!==void 0||c.chart!==void 0||c.component!==void 0||(c.picture!==void 0||c.movie!==void 0)&&!f.has(p),A=a.find(ge=>ge.shape.name===p);if(A&&!k){R(A.shape,c,x),q(A.shape,c.connect,b),A.shown=!0,c.z!==void 0&&(A.z=c.z);continue}if(A){l.push({slide:e.id,shape:p,path:x,message:`Slide ${e.id} has a ${A.shape.kind} ${p} already: a shape of its own needs another name.`});continue}if(!k){l.push({slide:e.id,shape:p,path:x,message:`Slide ${e.id} has no shape ${p} to change (its layout's placeholders and its own shapes are ${[...f].join(", ")||"none"}).`});continue}const T=L(p,c,x,e.id,n);T&&q(T,c.connect,b),T&&(a.push({shape:T,order:S++,...c.z===void 0?{}:{z:c.z}}),f.add(p))}const g=a.filter(d=>d.shown===!0||!Re.has(d.shape.placeholder?.type??"")||w(d.shape)!==void 0);a.splice(0,a.length,...g),a.sort((d,c)=>(d.z??0)-(c.z??0)||d.order-c.order);const v=new Map(a.flatMap((d,c)=>d.shape.group===void 0?[]:[[d.shape.group,c]])),z=a.flatMap((d,c)=>{const p=d.shape.group;return p===void 0?[d]:v.get(p)===c?a.filter(x=>x.shape.group===p):[]});a.splice(0,a.length,...z);for(const d of a){const c=h(d.shape);c!==void 0&&(d.shape.alt=c);const p=d.shape.text;if(d.shape.kind==="placeholder"&&p){const x=w(d.shape);p.paragraphs=paragraphsOfWords(x,0,E.fonts.code),p.empty=p.paragraphs.length===0||p.paragraphs.every(k=>k.runs.every(A=>A.text===""))}}e.shapes.push(...a.map(d=>d.shape));for(const d of e.shapes){const c=d.connect;if(!c)continue;const p=ve(d,x=>e.shapes.find(k=>k.name===x&&k.level===d.level&&k!==d));d.frame=p.frame,p.flip?d.flip=p.flip:delete d.flip;for(const x of p.lost){const k=c[x];k&&d.level==="slide"&&l.push({slide:e.id,shape:d.name,message:`Connector ${d.name}'s ${x} is glued to site ${String(k.site)} of ${k.shape}, which slide ${e.id} has not: it stays where it is.`})}}s!==void 0&&s.trim()!==""&&(e.notes=s);for(const[d,c]of(y??[]).entries()){const p=b(c.shape);if(p===void 0)continue;const x={slide:e.id,shape:p,path:`${_}.animations.${String(d)}`},k=e.shapes.find(T=>T.name===p&&T.level==="slide");if(!k){l.push({...x,message:`Slide ${e.id} has no shape ${p} to animate (it has ${e.shapes.filter(T=>T.level==="slide").map(T=>T.name).join(", ")}).`});continue}if(c.paragraph!==void 0&&c.paragraph>=(k.text?.paragraphs.length??0)){l.push({...x,message:`Shape ${p} has no paragraph ${String(c.paragraph)} to animate (it has ${String(k.text?.paragraphs.length??0)}).`});continue}const A=ke({...c,shape:p});A?e.animations.push(A):l.push({...x,message:`The animation of ${p} needs a path that starts with M and says only M, L and C, absolute.`})}},Q=new Set;return u.slides.forEach((e,n)=>{const a=`slides.${String(n)}`;if(e.layout!==void 0){const s=D(e.id,e.layout,n,e.hidden===!0);if(!s)return;const y=r(`${o}.${e.id}.notes`);e.transition&&(s.slide.transition=oe(e.transition)),e.advance_after!==void 0&&(s.slide.advance=e.advance_after),he(s.slide,e.background,$),J(s.slide,s.master,s.placed,e.shapes,a,h=>h,h=>r(`${o}.${e.id}.${h.name}`),typeof y=="string"?y:void 0,e.animations,h=>{const f=r(`${o}.${e.id}.alt.${h.name}`);return typeof f=="string"?f:void 0}),j.push(s.slide),Q.add(e.id);return}const m=e.generate??"",_=t.generators[m];if(_===void 0){l.push({slide:e.id,path:`${a}.generate`,message:`There is no generator ${m} in the deck's module (it has ${Object.keys(t.generators).join(", ")||"none"}).`});return}if(!Array.isArray(_)){l.push({slide:e.id,path:`${a}.generate`,message:`Generator ${m} threw: ${_.error}`,..._.stack===void 0?{}:{stack:_.stack}});return}const b=_,w=new Set(Array.isArray(e.hidden)?e.hidden:[]);for(const s of b){const y=`${e.id}/${s.id}`,h=D(y,s.layout,n,w.has(s.id),m);if(!h)continue;for(const g of s.shapes){const v=g.placeholder?h.placed.find(z=>z.shape.placeholder?.idx===g.placeholder?.idx):void 0;if(v)g.frame&&(v.shape.frame={...g.frame}),v.shape.sources.frame={from:"code"},v.shown=!0;else{const z=F(g,"layout",h.master);h.placed.push({shape:{...z,level:"slide",sources:{frame:{from:"code"}}},order:h.placed.length})}}const f=`${s.id}/`,S=s.transition??(s===b[0]?e.transition:void 0);he(h.slide,e.background,$),S&&(h.slide.transition=oe(S)),J(h.slide,h.master,h.placed,e.shapes,a,g=>g.startsWith(f)?g.slice(f.length):void 0,g=>{const v=g.placeholder===void 0?void 0:s.text[g.placeholder.idx];return v===void 0?void 0:v.map(z=>z.runs.map(d=>d.text).join(""))},s.notes,[...(s.animations??[]).map(g=>({...g,shape:`${f}${g.shape}`})),...e.animations??[]]);for(const g of h.slide.shapes){const v=g.placeholder===void 0?void 0:s.text[g.placeholder.idx];v&&g.text&&(g.text.paragraphs=v,g.text.empty=!1)}j.push(h.slide),Q.add(y)}for(const s of Object.keys(e.shapes??{})){const[y]=s.split("/");y!==void 0&&!b.some(h=>h.id===y)&&l.push({slide:e.id,path:`${a}.shapes.${s}`,message:`Generator ${m} makes no slide ${y}: ${s} changes nothing.`})}}),j.forEach((e,n)=>{for(const a of e.shapes)a.placeholder?.type==="sldNum"&&a.text&&(a.text.paragraphs=[{level:0,runs:[{text:String(n+1),field:"slidenum"}]}],a.text.empty=!1)}),{deck:{width:t.slide_width,height:t.slide_height,theme:E,slides:j},problems:l}}
|
|
2
|
+
import{CAPS as ze,colorOfFile as de,groupLevels as Ae,SHOW_JUMPS as Te,showJumpOf as je,slideLinkOf as Ee,UNDERLINES as Fe}from"@allyhub/formats";import{readMarks as Ne,markRuns as Le}from"@allyhub/piece";import{chartOfFile as Me}from"@allyhub/chart";import{AUTOSHAPE_STYLE as R,SHADOW_DEFAULTS as I,PATTERN_DEFAULTS as se,TILE_DEFAULTS as W,INNER_SHADOW_DEFAULTS as H,GLOW_DEFAULTS as q,REFLECTION_DEFAULTS as X,CONNECTOR_STYLE as fe,DRAWN_TEXTBOX_FRAME as ce,TEXT_FALLBACK as ue,TEXT_INSETS as B,isConnectorGeometry as Ce,placeholderFrame as Pe,styleKindOf as Re}from"./office.js";import{resolveAnimation as De,resolveTransition as Ue,unitsAcross as Ie,EFFECT_OPTIONS as We,TRANSITION_OPTIONS as He}from"./animation.js";import{glued as Ge}from"./connect.js";import{pathSteps as Xe}from"./path.js";import{CHART_AXIS_WORDS as Be}from"./script.js";import{cellLook as Ke,tableStyleOf as Q}from"./table-style.js";import{masterPlaceholder as Je}from"./placeholders.js";import{DECK_FONTS as Ye,OFFICE_THEME as Ve,themeOver as Ze}from"./theme.js";import{Pt as S}from"./units.js";export function joinPath(i,t){if(t.startsWith("/"))return t.slice(1);const l=[];for(const r of[...i.split("/"),...t.split("/")])r===""||r==="."||(r===".."?l.pop():l.push(r));return l.join("/")}const pe={left:0,top:0,width:0,height:0};function qe(i,t){const l={...i.color_map,...t.color_map};return Object.keys(l).length>0?{color_map:l}:{}}const K=()=>Array.from({length:9},()=>({...ue,font:{...ue.font},margin_left:0}));export function levelsOver(i,...t){return i.map((l,r)=>{let o={...l,font:{...l.font}};for(const y of t){const a=y?.[r];a&&(o={...o,...a.alignment===void 0?{}:{alignment:a.alignment},...a.line_spacing===void 0?{}:{line_spacing:a.line_spacing},...a.space_before===void 0?{}:{space_before:a.space_before},...a.space_after===void 0?{}:{space_after:a.space_after},...a.margin_left===void 0?{}:{margin_left:a.margin_left},...a.indent===void 0?{}:{indent:a.indent},font:{...o.font,...a.font}},a.numbered!==void 0&&(o.numbered=a.numbered,delete o.bullet),a.bullet===null?(delete o.bullet,delete o.numbered):a.bullet!==void 0?(delete o.numbered,o.bullet={char:a.bullet,...a.bullet_font===void 0?{}:{font:a.bullet_font}}):a.bullet_font!==void 0&&o.bullet&&(o.bullet={...o.bullet,font:a.bullet_font}),o=bulletLookOver(o,a))}return o})}export function bulletLookOver(i,t){const l={...i};return t.bullet_color===null?delete l.bullet_color:t.bullet_color!==void 0&&(l.bullet_color=t.bullet_color),t.bullet_size===null?delete l.bullet_size:t.bullet_size!==void 0&&(l.bullet_size=t.bullet_size),t.start_at!==void 0&&(l.start_at=t.start_at),l}function ee(i,...t){const l=t.filter(o=>o!==void 0),r=o=>{for(let y=l.length-1;y>=0;y--){const a=l[y]?.[o];if(a!==void 0)return a}};return{vertical_anchor:r("vertical_anchor")??i.vertical_anchor,orientation:r("orientation")??"horz",auto_size:r("auto_size")??i.auto_size,word_wrap:r("word_wrap")??i.word_wrap,margins:{left:r("margin_left")??B.left,top:r("margin_top")??B.top,right:r("margin_right")??B.right,bottom:r("margin_bottom")??B.bottom}}}const he={vertical_anchor:"t",auto_size:"none",word_wrap:!0};export const plainLevels=i=>levelsOver(K(),i.text_styles.other);function ne(i,t){return{...ee(he,t),levels:levelsOver(K(),i.text_styles.other,t.levels)}}function Qe(i,t,...l){return{...ee(Pe(t),...l),levels:levelsOver(K(),i.text_styles[Re(t)],...l.map(r=>r?.levels))}}const en=Array.from({length:9},()=>({font:{color:R.font_color}})),me={vertical_anchor:R.vertical_anchor};function _e(i,t){return{...ee(he,t),levels:levelsOver(K(),i.text_styles.other,en,t.levels)}}const J=i=>{const t={...i};return delete t.paragraphs,t},Y=i=>({paragraphs:[],levels:[],...i}),C=i=>i==="none"?null:colorOfFile(i),nn=/<span((?:\s+(?:color|font|size|bold|italic|underline|link|highlight|baseline|strike|spacing|caps)="[^"\n]*")+)\s*>(.*?)<\/span>/gu,tn=/(color|font|size|bold|italic|underline|link|highlight|baseline|strike|spacing|caps)="([^"\n]*)"/gu,V=57344,on=256,ge="",rn=/[\ue000-\ue100]|[^\ue000-\ue100]+/gu;export const spaceOfFile=i=>typeof i=="number"?S(i):{lines:i.lines},colorOfFile=i=>de(i)??"dk1";function te(i){const{shadow:t,gradient:l,inner_shadow:r,glow:o,reflection:y}=i;return{...r?{inner_shadow:{color:r.color===void 0?H.color:colorOfFile(r.color),blur:r.blur===void 0?H.blur:S(r.blur),distance:r.distance===void 0?H.distance:S(r.distance),angle:r.angle??H.angle,transparency:r.transparency??H.transparency}}:{},...o?{glow:{color:o.color===void 0?q.color:colorOfFile(o.color),size:o.size===void 0?q.size:S(o.size),transparency:o.transparency??q.transparency}}:{},...i.soft_edges===void 0?{}:{soft_edges:S(i.soft_edges)},...y?{reflection:{transparency:y.transparency??X.transparency,size:y.size??X.size,distance:y.distance===void 0?X.distance:S(y.distance),blur:y.blur===void 0?X.blur:S(y.blur)}}:{},...i.fill_transparency===void 0?{}:{fill_transparency:i.fill_transparency},...l?{gradient:{angle:l.angle??0,...l.path===void 0?{}:{path:l.path},...l.focus===void 0?{}:{focus:{left:l.focus.left??.5,top:l.focus.top??.5,right:l.focus.right??.5,bottom:l.focus.bottom??.5}},stops:l.stops.map(a=>({at:a.at,color:colorOfFile(a.color),...a.transparency===void 0?{}:{transparency:a.transparency}}))}}:{},...t?{shadow:{color:t.color===void 0?I.color:colorOfFile(t.color),blur:t.blur===void 0?I.blur:S(t.blur),distance:t.distance===void 0?I.distance:S(t.distance),angle:t.angle??I.angle,transparency:t.transparency??I.transparency}}:{}}}const an=i=>({...i.tile?{tile:{...i.tile}}:{},...i.transparency===void 0?{}:{transparency:i.transparency}});function be(i,t){const{pattern:l,picture_fill:r}=i;return{...l?{pattern:{preset:l.preset,fg:colorOfFile(l.fg??se.fg),bg:colorOfFile(l.bg??se.bg)}}:{},...r?{picture_fill:{path:joinPath(t,r.path),...r.tile?{tile:{scale_x:r.tile.scale_x??W.scale_x,scale_y:r.tile.scale_y??W.scale_y,offset_x:r.tile.x===void 0?W.offset_x:S(r.tile.x),offset_y:r.tile.y===void 0?W.offset_y:S(r.tile.y),align:r.tile.align??W.align}}:{},...r.transparency===void 0?{}:{transparency:r.transparency}}}:{}}}function ye(i,t,l=[]){const r=Q(i.style);return{...i,rows:i.rows.map((o,y)=>({height:o.height,cells:o.cells.map((a,E)=>{const N=l[y],v=r?Ke(r,i,y,E,i.rows.length,i.columns.length,y+(a.span_height??1)-1,E+(a.span_width??1)-1):void 0,F=ne(t,a.text),L=v&&(v.bold!==void 0||v.text!==void 0)?{...F,levels:F.levels.map(P=>({...P,font:{...P.font,...v.bold===void 0?{}:{bold:v.bold},...v.text===void 0?{}:{color:v.text}}}))}:F;return{...a,text:{paragraphs:a.text.paragraphs,style:Z({...L,auto_size:"shape"},N),own:J(a.text),empty:!1},...N?{fileText:N}:{}}})}))}}function Z(i,t){return t?{...i,...t.anchor===void 0?{}:{vertical_anchor:t.anchor},...t.orientation===void 0?{}:{orientation:t.orientation},levels:i.levels.map(l=>{const r={...l.font,...t.size===void 0?{}:{size:S(t.size)},...t.bold===void 0?{}:{bold:t.bold},...t.italic===void 0?{}:{italic:t.italic},...t.underline===void 0?{}:{underline:t.underline},...t.strike===void 0?{}:{strike:t.strike},...t.caps===void 0?{}:{caps:t.caps},...t.font===void 0?{}:{name:t.font}};t.color!==void 0&&(r.color=colorOfFile(t.color));const o={...l,font:r,...t.align===void 0?{}:{alignment:t.align},...t.line_spacing===void 0?{}:{line_spacing:{lines:t.line_spacing}},...t.space_before===void 0?{}:{space_before:spaceOfFile(t.space_before)},...t.space_after===void 0?{}:{space_after:spaceOfFile(t.space_after)}};return t.bullet_color!==void 0&&(o.bullet_color=colorOfFile(t.bullet_color)),t.bullet_size!==void 0&&(o.bullet_size=t.bullet_size),t.start_at!==void 0&&(o.start_at=t.start_at),t.numbered!==void 0?(o.numbered=t.numbered,delete o.bullet):t.bullet===!1?(delete o.bullet,delete o.numbered):t.bullet!==void 0&&(o.bullet={char:t.bullet},delete o.numbered),(t.numbered!==void 0||t.bullet!==void 0&&t.bullet!==!1)&&l.margin_left===0?{...o,margin_left:$e,indent:-$e}:o})}:i}function ln(i,t){if(!t)return[...i];const l=t.numbered!==void 0||t.bullet!==void 0;return i.map(r=>{const o={...r};return t.align!==void 0&&delete o.alignment,t.line_spacing!==void 0&&delete o.line_spacing,t.space_before!==void 0&&delete o.space_before,t.space_after!==void 0&&delete o.space_after,t.bullet_color!==void 0&&delete o.bullet_color,t.bullet_size!==void 0&&delete o.bullet_size,t.start_at!==void 0&&delete o.start_at,l&&(delete o.bullet,delete o.bullet_font,delete o.numbered),o})}const dn=i=>Fe.includes(i),sn=i=>ze.includes(i);function fn(i){const t={};for(const[,l,r=""]of i.matchAll(tn))if(l==="font")t.name=r.trim();else if(l==="link")t.link=r.trim();else if(l==="highlight")t.highlight=r.trim().toUpperCase();else if(l==="bold")t.bold=r.trim()!=="false";else if(l==="italic")t.italic=r.trim()!=="false";else if(l==="strike"){const o=r.trim();t.strike=o==="dblStrike"?o:o!=="false"}else if(l==="underline"){const o=r.trim();t.underline=dn(o)&&o!=="sng"?o:o!=="false"}else if(l==="caps"){const o=r.trim();sn(o)&&(t.caps=o)}else if(l==="size"){const o=Number(r);Number.isFinite(o)&&o>0&&(t.size=S(o))}else if(l==="baseline"){const o=Number(r);Number.isFinite(o)&&(t.baseline=o)}else if(l==="spacing"){const o=Number(r);Number.isFinite(o)&&(t.spacing=S(o))}else{const o=de(r.trim());o!==void 0&&(t.color=o)}return t}const $e=342900;export function paragraphsOfWords(i,t=0,l=Ye.code){return i===void 0?[]:typeof i=="string"?i.split(/\r?\n/u).map(r=>{const o=[],y=r.replace(nn,(v,F,L)=>(o.push(fn(F)),`${String.fromCharCode(V+o.length-1)}${L}${ge}`)),a=Ne(y);let E;const N=Le(a.text,a.marks).flatMap(v=>{const F=v.kinds.includes("code"),L={...v.kinds.includes("strong")?{bold:!0}:{},...v.kinds.includes("em")?{italic:!0}:{},...F?{name:l}:{}};return[...v.text.matchAll(rn)].flatMap(P=>{const D=P[0],U=D.charCodeAt(0);if(D===ge)return E=void 0,[];if(U>=V&&U<V+on)return E=o[U-V],[];const G={...E,...L};return[{text:D,...Object.keys(G).length>0?{font:G}:{},...F?{code:!0}:{}}]})});return{runs:N.length>0?N:[{text:""}],level:t}}):i.flatMap(r=>paragraphsOfWords(r,Array.isArray(r)?Math.min(t+1,8):t,l))}const ke=i=>({left:S(i.x),top:S(i.y),width:S(i.w),height:S(i.h)}),cn=new Set(["dt","ftr","sldNum"]),we=i=>({...i.locked?{locked:!0}:{},...i.link===void 0?{}:{link:i.link},...i.rotation===void 0||i.rotation===0?{}:{rotation:i.rotation},...i.flip_h||i.flip_v?{flip:{...i.flip_h?{h:!0}:{},...i.flip_v?{v:!0}:{}}}:{}});function xe(i,t,l){if(!t)return;t.fill!==void 0&&(i.background=colorOfFile(t.fill));const r=t.gradient&&te({gradient:t.gradient}).gradient;r&&(i.background_gradient=r),t.picture!==void 0&&(i.background_picture=joinPath(l,t.picture))}const un=i=>{const t=Q(i.style);return{...t?{style:t.id}:{},...i.first_row===void 0?{}:{first_row:i.first_row},...i.last_row===void 0?{}:{last_row:i.last_row},...i.first_col===void 0?{}:{first_col:i.first_col},...i.last_col===void 0?{}:{last_col:i.last_col},...i.horz_banding===void 0?{}:{horz_banding:i.horz_banding},...i.vert_banding===void 0?{}:{vert_banding:i.vert_banding}}},Se=i=>i===void 0?void 0:{left:i.left??0,top:i.top??0,right:i.right??0,bottom:i.bottom??0};export function resolveDeck(i){const{code:t,file:l,words:r,prefix:o,base:y}=i,a=[],E=Ze(i.theme??Ve,t.theme),N=new Map;for(const e of t.masters)for(const n of e.layouts)N.set(n.name,{layout:n,master:e});const v=[],F=(e,n,s)=>{const h=He[n.type];return n.direction!==void 0&&!h.directions.includes(n.direction)&&a.push({slide:e,path:`${s}.transition.direction`,message:h.directions.length===0?`A ${n.type} transition has no direction (${n.direction}).`:`A ${n.type} transition goes ${h.directions.join(", ")}, not ${n.direction}.`}),n.through_black===!0&&!h.throughBlack&&a.push({slide:e,path:`${s}.transition.through_black`,message:`A ${n.type} transition does not go through black: only a fade, a cut and a reveal do.`}),Ue(n)},L=(e,n,s)=>({name:e.name,kind:e.kind,frame:{...e.frame??pe},...e.flip?{flip:{...e.flip}}:{},...e.connect?{connect:{...e.connect.begin?{begin:{...e.connect.begin}}:{},...e.connect.end?{end:{...e.connect.end}}:{}}}:{},...e.rotation===void 0?{}:{rotation:e.rotation},level:n,...e.text?{text:{paragraphs:e.text.paragraphs,style:e.kind==="autoshape"?_e(s,e.text):ne(s,e.text),own:J(e.text),empty:!1}}:{},...e.fill===void 0?{}:{fill:e.fill},...e.fill_transparency===void 0?{}:{fill_transparency:e.fill_transparency},...e.gradient?{gradient:e.gradient}:{},...e.pattern?{pattern:e.pattern}:{},...e.picture_fill?{picture_fill:{...an(e.picture_fill),path:joinPath(e.picture_fill.base,e.picture_fill.path)}}:{},...e.shadow===void 0?{}:{shadow:e.shadow},...e.inner_shadow?{inner_shadow:e.inner_shadow}:{},...e.glow?{glow:e.glow}:{},...e.soft_edges===void 0?{}:{soft_edges:e.soft_edges},...e.reflection?{reflection:e.reflection}:{},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{line_width:e.line_width},...e.line_dash===void 0?{}:{line_dash:e.line_dash},...e.line_cap===void 0?{}:{line_cap:e.line_cap},...e.line_join===void 0?{}:{line_join:e.line_join},...e.line_compound===void 0?{}:{line_compound:e.line_compound},...e.line_begin===void 0?{}:{line_begin:e.line_begin},...e.line_end===void 0?{}:{line_end:e.line_end},...e.line_begin_size===void 0?{}:{line_begin_size:e.line_begin_size},...e.line_end_size===void 0?{}:{line_end_size:e.line_end_size},...e.path?{path:e.path}:{},...e.table?{table:ye(e.table,s)}:{},...e.chart?{chart:e.chart}:{},...e.link===void 0?{}:{link:e.link},...e.group===void 0?{}:{group:e.group},...e.geometry?{geometry:e.geometry}:{},...e.adjustments?{adjustments:[...e.adjustments]}:{},...e.media?{media:{path:joinPath(e.media.base,e.media.path),...e.media.poster===void 0?{}:{poster:e.media.poster},...e.media.playback?{playback:e.media.playback}:{}}}:{},...e.component?{component:{...e.component}}:{},sources:{frame:{from:n}}}),P=(e,n)=>{const s=e.placeholder?.type??"body",h=Je(n,s),g=e.frame??h?.frame??pe;return{name:e.name,kind:"placeholder",frame:{...g},level:"slide",...e.placeholder?{placeholder:{...e.placeholder}}:{},text:{paragraphs:[],style:Qe(n,s,h?.text,e.text),empty:!0},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},sources:{frame:{from:e.frame||!h?"layout":"master"},text:{from:"layout"}}}},D=(e,n,s,h)=>{const g=t.components[e];if(!g){a.push({...s,message:/\.[cm]?[jt]sx?(?:#|$)/u.test(e)?`${e} names no component: its module has no such export, or the export is not made with defineComponent.`:`There is no component ${e} in the deck's module (it has ${Object.keys(t.components).join(", ")||"none"}).`});return}for(const $ of Object.keys(n??{}))Object.hasOwn(g.props,$)||a.push({...s,message:`Component ${e} has no prop ${$} a person sets (it has ${Object.keys(g.props).join(", ")||"none"}).`});return{name:e,props:{...n??{}},...h===void 0?{}:{dur:h}}},U=(e,n,s,h,g)=>{const $={slide:h,shape:e,path:s};if(!n.frame){a.push({...$,message:`Shape ${e} is the slide's own: it needs a frame { x, y, w, h } in points.`});return}const T=ke(n.frame),u={frame:{from:"slide",path:`${s}.frame`}},x={name:e,frame:T,level:"slide",...n.fill===void 0?{}:{fill:C(n.fill)},...te(n),...be(n,y),...n.line===void 0?{}:{line:C(n.line)},...n.line_dash===void 0?{}:{line_dash:n.line_dash},...n.line_cap===void 0?{}:{line_cap:n.line_cap},...n.line_join===void 0?{}:{line_join:n.line_join},...n.line_compound===void 0?{}:{line_compound:n.line_compound},...n.line_begin===void 0?{}:{line_begin:n.line_begin},...n.line_end===void 0?{}:{line_end:n.line_end},...n.line_begin_size===void 0?{}:{line_begin_size:n.line_begin_size},...n.line_end_size===void 0?{}:{line_end_size:n.line_end_size},...n.group===void 0?{}:{group:n.group},...we(n)};if(n.textbox)return{...x,kind:"textbox",text:{paragraphs:paragraphsOfWords(r(`${o}.${h}.${e}`),0,E.fonts.code),style:Z(ne(g,Y(ce)),n.text),own:J(Y(ce)),empty:!1},...n.text?{fileText:{...n.text}}:{},sources:{...u,text:{from:"slide",path:`${s}.text`}}};if(n.picture!==void 0){const p=Se(n.crop);return{...x,kind:"picture",media:{path:joinPath(y,n.picture),...p?{crop:p}:{}},sources:{...u,media:{from:"slide",path:`${s}.picture`}}}}if(n.movie!==void 0)return{...x,kind:"movie",media:{path:joinPath(y,n.movie),...n.poster===void 0?{}:{poster:n.poster},...n.playback?{playback:n.playback}:{}},sources:{...u,media:{from:"slide",path:`${s}.movie`}}};if(n.audio!==void 0)return{...x,kind:"audio",media:{path:joinPath(y,n.audio),...n.playback?{playback:n.playback}:{}},sources:{...u,media:{from:"slide",path:`${s}.audio`}}};if(n.chart){const p=`${o}.${h}.${e}`,j=c=>typeof c=="string"?c:void 0,w=Object.fromEntries(Be.flatMap(c=>{const d=j(r(`${p}.${c}`));return d===void 0?[]:[[c,d]]})),O=Me(n.chart,{title:j(r(p))??j(r(`${p}.title`)),axisTitles:w,base:y,rows:c=>i.data?.(c),problem:c=>{a.push({...$,message:`Chart ${e}: ${c}`})}});return O?{...x,kind:"chart",chart:O,sources:u}:void 0}if(n.table){const p=n.table;p.style!==void 0&&!Q(p.style)&&a.push({...$,message:`Table ${e}'s style ${p.style} is none of PowerPoint's built-in table styles: name one as its gallery does (Medium Style 2 - Accent 1, Light Style 1, No Style, Table Grid) or by its id.`});const j=T.width/p.columns.reduce((f,m)=>f+m,0),w=T.height/p.rows.reduce((f,m)=>f+m.height,0),O=r(`${o}.${h}.${e}`),c=Array.isArray(O)?O:[],d=new Map;for(const f of p.merged??[]){const m=f.rows??1,_=f.columns??1;for(let k=f.row;k<f.row+m;k++)for(let z=f.column;z<f.column+_;z++)d.set(`${String(k)},${String(z)}`,"under");d.set(`${String(f.row)},${String(f.column)}`,{w:_,h:m})}return c.length>p.rows.length&&a.push({...$,message:`Table ${e} has ${String(p.rows.length)} rows and its words ${String(c.length)}.`}),{...x,kind:"table",table:ye({...un(p),columns:p.columns.map(f=>Math.round(f*j)),rows:p.rows.map((f,m)=>{const _=c[m],k=Array.isArray(_)?_:_===void 0?[]:[_];return{height:Math.round(f.height*w),cells:p.columns.map((z,M)=>{const A=d.get(`${String(m)},${String(M)}`);return{text:{levels:[],paragraphs:A==="under"?[]:paragraphsOfWords(k[M],0,E.fonts.code)},...A==="under"?{spanned:!0}:{},...A!==void 0&&A!=="under"&&A.w>1?{span_width:A.w}:{},...A!==void 0&&A!=="under"&&A.h>1?{span_height:A.h}:{},...f.fill===void 0?{}:{fill:colorOfFile(f.fill)},...f.line===void 0?{}:{borders:{bottom:{color:colorOfFile(f.line),width:S(1)}}}}})}})},g,p.rows.map(f=>f.text)),sources:u}}const b=n.path&&Xe(n.path.d);if(n.path&&!b){a.push({...$,message:`Shape ${e}'s path starts with M and says only M, L, C and Z, absolute.`});return}if(n.geometry!==void 0||n.path&&b){const p=!n.path&&Ce(n.geometry);return{...x,kind:"autoshape",...n.path&&b?{path:{w:n.path.w,h:n.path.h,steps:b}}:n.geometry===void 0?{}:{geometry:n.geometry,...n.adjustments?{adjustments:[...n.adjustments]}:{}},...p?{line:n.line===void 0?fe.line:C(n.line),line_width:n.line_width===void 0?fe.line_width:S(n.line_width)}:{fill:n.fill===void 0?R.fill:C(n.fill),line:n.line===void 0?R.line:C(n.line),line_width:n.line_width===void 0?R.line_width:S(n.line_width)},...n.text&&!p?{fileText:{...n.text}}:{},...p?{}:{text:{paragraphs:paragraphsOfWords(r(`${o}.${h}.${e}`)).map(j=>n.text?.align===void 0?{alignment:R.alignment,...j}:j),style:Z(_e(g,Y(me)),n.text),own:J(Y(me)),empty:!1}},sources:{...u,fill:{from:"slide",path:`${s}.fill`}}}}if(n.component!==void 0){const p=D(n.component,n.props,$,n.dur);return p?{...x,kind:"component",component:p,sources:u}:void 0}},G=(e,n,s)=>{if(n.frame&&(e.frame=ke(n.frame),e.sources.frame={from:"slide",path:`${s}.frame`}),Object.assign(e,we(n)),n.dur!==void 0&&e.component&&(e.component={...e.component,dur:n.dur}),n.text&&e.text&&(e.text.style=Z(e.text.style,n.text),e.text.paragraphs=ln(e.text.paragraphs,n.text),e.fileText={...n.text},e.sources.text={from:"slide",path:`${s}.text`}),n.line!==void 0&&(e.line=C(n.line),e.sources.line={from:"slide",path:`${s}.line`}),n.line_width!==void 0&&(e.line_width=S(n.line_width)),n.line_dash!==void 0&&(e.line_dash=n.line_dash),n.line_cap!==void 0&&(e.line_cap=n.line_cap),n.line_join!==void 0&&(e.line_join=n.line_join),n.line_compound!==void 0&&(e.line_compound=n.line_compound),n.line_begin!==void 0&&(e.line_begin=n.line_begin),n.line_end!==void 0&&(e.line_end=n.line_end),n.line_begin_size!==void 0&&(e.line_begin_size=n.line_begin_size),n.line_end_size!==void 0&&(e.line_end_size=n.line_end_size),(n.fill!==void 0||n.gradient!==void 0||n.pattern!==void 0||n.picture_fill!==void 0)&&(delete e.gradient,delete e.pattern,delete e.picture_fill),n.fill!==void 0&&(e.fill=C(n.fill),e.sources.fill={from:"slide",path:`${s}.fill`}),Object.assign(e,te(n),be(n,y)),(n.picture!==void 0||n.movie!==void 0)&&(e.placeholder?.type==="pic"||e.placeholder?.type==="media"||e.placeholder?.type==="obj")){const h=Se(n.crop);e.kind=n.picture!==void 0?"picture":"movie",e.media={path:joinPath(y,n.picture??n.movie??""),...h?{crop:h}:{},...n.poster===void 0?{}:{poster:n.poster},...n.playback&&n.movie!==void 0?{playback:n.playback}:{}},e.sources.media={from:"slide",path:`${s}.${n.picture!==void 0?"picture":"movie"}`},delete e.text}else n.playback&&e.media&&(e.kind==="movie"||e.kind==="audio")&&(e.media={...e.media,playback:{...e.media.playback,...n.playback}})},ie=(e,n,s,h,g)=>{const $=N.get(n);if(!$){a.push({slide:e,path:`slides.${String(s)}.layout`,message:`Slide ${e} is on the layout "${n}", which the deck's module does not have (it has ${[...N.keys()].join(", ")||"none"}).`});return}const{layout:T,master:u}=$,x=[...(T.display_master_shapes===!1?[]:u.shapes).filter(p=>p.kind!=="placeholder").map(p=>L(p,"master",u)),...T.shapes.filter(p=>p.kind!=="placeholder").map(p=>L(p,"layout",u))],b=T.shapes.filter(p=>p.kind==="placeholder").map((p,j)=>({shape:P(p,u),order:j}));return{slide:{id:e,layout:T.name,master:u.name,hidden:h,background:T.background??u.background,...qe(u,T),shapes:x,animations:[],file:{index:s,...g===void 0?{}:{generate:g}}},placed:b,master:u}},oe=(e,n,s)=>{if(!n)return;const h=T=>{const u=n[T];if(u===void 0)return e.connect?.[T];const x=u==="none"?void 0:s(u.shape);return u==="none"||x===void 0?void 0:{shape:x,site:u.site}},g=h("begin"),$=h("end");g||$?e.connect={...g?{begin:g}:{},...$?{end:$}:{}}:delete e.connect},re=(e,n,s,h,g,$,T,u,x,b=()=>{})=>{const p=new Set(s.map(c=>c.shape.name));let j=s.length;for(const[c,d]of Object.entries(h??{})){const f=$(c);if(f===void 0)continue;const m=`${g}.shapes.${c}`,_=d.textbox!==void 0||d.geometry!==void 0||d.path!==void 0||d.table!==void 0||d.chart!==void 0||d.component!==void 0||d.audio!==void 0||(d.picture!==void 0||d.movie!==void 0)&&!p.has(f),k=s.find(M=>M.shape.name===f);if(k&&!_){G(k.shape,d,m),oe(k.shape,d.connect,$),k.shown=!0,d.z!==void 0&&(k.z=d.z);continue}if(k){a.push({slide:e.id,shape:f,path:m,message:`Slide ${e.id} has a ${k.shape.kind} ${f} already: a shape of its own needs another name.`});continue}if(!_){a.push({slide:e.id,shape:f,path:m,message:`Slide ${e.id} has no shape ${f} to change (its layout's placeholders and its own shapes are ${[...p].join(", ")||"none"}).`});continue}const z=U(f,d,m,e.id,n);z&&oe(z,d.connect,$),z&&(s.push({shape:z,order:j++,...d.z===void 0?{}:{z:d.z}}),p.add(f))}const w=s.filter(c=>c.shown===!0||!cn.has(c.shape.placeholder?.type??"")||T(c.shape)!==void 0);s.splice(0,s.length,...w),s.sort((c,d)=>(c.z??0)-(d.z??0)||c.order-d.order);const O=(c,d)=>{const f=_=>{const k=_.shape.group;return k===void 0?void 0:Ae(k)[d]},m=new Map(c.flatMap((_,k)=>{const z=f(_);return z===void 0?[]:[[z,k]]}));return c.flatMap((_,k)=>{const z=f(_);return z===void 0?[_]:m.get(z)===k?O(c.filter(M=>f(M)===z),d+1):[]})};s.splice(0,s.length,...O(s,0));for(const c of s){const d=b(c.shape);d!==void 0&&(c.shape.alt=d);const f=c.shape.text;if(c.shape.kind==="placeholder"&&f){const m=T(c.shape);f.paragraphs=paragraphsOfWords(m,0,E.fonts.code),f.empty=f.paragraphs.length===0||f.paragraphs.every(_=>_.runs.every(k=>k.text===""))}}e.shapes.push(...s.map(c=>c.shape));for(const c of e.shapes){const d=c.connect;if(!d)continue;const f=Ge(c,m=>e.shapes.find(_=>_.name===m&&_.level===c.level&&_!==c));c.frame=f.frame,f.flip?c.flip=f.flip:delete c.flip;for(const m of f.lost){const _=d[m];_&&c.level==="slide"&&a.push({slide:e.id,shape:c.name,message:`Connector ${c.name}'s ${m} is glued to site ${String(_.site)} of ${_.shape}, which slide ${e.id} has not: it stays where it is.`})}}u!==void 0&&u.trim()!==""&&(e.notes=u);for(const[c,d]of(x??[]).entries()){const f=$(d.shape);if(f===void 0)continue;const m={slide:e.id,shape:f,path:`${g}.animations.${String(c)}`},_=e.shapes.find(A=>A.name===f&&A.level==="slide");if(!_){a.push({...m,message:`Slide ${e.id} has no shape ${f} to animate (it has ${e.shapes.filter(A=>A.level==="slide").map(A=>A.name).join(", ")}).`});continue}if(d.paragraph!==void 0&&d.paragraph>=(_.text?.paragraphs.length??0)){a.push({...m,message:`Shape ${f} has no paragraph ${String(d.paragraph)} to animate (it has ${String(_.text?.paragraphs.length??0)}).`});continue}const k=We[d.effect];d.direction!==void 0&&!k.directions.includes(d.direction)&&a.push({...m,path:`${m.path}.direction`,message:k.directions.length===0?`${f}'s ${d.effect} has no direction (${d.direction}).`:`${f}'s ${d.effect} goes ${k.directions.join(", ")}, not ${d.direction}.`}),d.amount!==void 0&&k.amount===void 0?a.push({...m,path:`${m.path}.amount`,message:`${f}'s ${d.effect} has no amount: only a Grow/Shrink, a spin and a Transparency do.`}):d.effect==="transparency"&&(d.amount??0)>1&&a.push({...m,path:`${m.path}.amount`,message:`${f}'s transparency is a share, at most 1 (it is ${String(d.amount)}).`}),d.animate_text!==void 0&&!_.text&&a.push({...m,path:`${m.path}.animate_text`,message:`${f} has no text to animate by ${d.animate_text}: it plays as one.`});const z=d.animate_text,M=De({...d,shape:f,..._.text?{}:{animate_text:void 0}},z===void 0?1:(d.paragraph===void 0?_.text?.paragraphs??[]:[_.text?.paragraphs[d.paragraph]]).reduce((A,ve)=>A+Ie(ve?.runs.map(Oe=>Oe.text)??[],z).length,0));M?e.animations.push(M):a.push({...m,message:`The animation of ${f} needs a path that starts with M and says only M, L and C, absolute.`})}},ae=new Set;l.slides.forEach((e,n)=>{const s=`slides.${String(n)}`;if(e.layout!==void 0){const u=ie(e.id,e.layout,n,e.hidden===!0);if(!u)return;const x=r(`${o}.${e.id}.notes`);e.transition&&(u.slide.transition=F(e.id,e.transition,s)),e.advance_after!==void 0&&(u.slide.advance=e.advance_after),e.section!==void 0&&(u.slide.section=e.section),xe(u.slide,e.background,y),re(u.slide,u.master,u.placed,e.shapes,s,b=>b,b=>r(`${o}.${e.id}.${b.name}`),typeof x=="string"?x:void 0,e.animations,b=>{const p=r(`${o}.${e.id}.alt.${b.name}`);return typeof p=="string"?p:void 0}),v.push(u.slide),ae.add(e.id);return}const h=e.generate??"",g=t.generators[h];if(g===void 0){a.push({slide:e.id,path:`${s}.generate`,message:`There is no generator ${h} in the deck's module (it has ${Object.keys(t.generators).join(", ")||"none"}).`});return}if(!Array.isArray(g)){a.push({slide:e.id,path:`${s}.generate`,message:`Generator ${h} threw: ${g.error}`,...g.stack===void 0?{}:{stack:g.stack}});return}const $=g,T=new Set(Array.isArray(e.hidden)?e.hidden:[]);for(const u of $){const x=`${e.id}/${u.id}`,b=ie(x,u.layout,n,T.has(u.id),h);if(!b)continue;for(const w of u.shapes){const O=w.placeholder?b.placed.find(c=>c.shape.placeholder?.idx===w.placeholder?.idx):void 0;if(O)w.frame&&(O.shape.frame={...w.frame}),O.shape.sources.frame={from:"code"},O.shown=!0;else{const c=L(w,"layout",b.master);b.placed.push({shape:{...c,level:"slide",sources:{frame:{from:"code"}}},order:b.placed.length})}}const p=`${u.id}/`,j=u.transition??(u===$[0]?e.transition:void 0);xe(b.slide,e.background,y),j&&(b.slide.transition=F(b.slide.id,j,s)),u===$[0]&&e.section!==void 0&&(b.slide.section=e.section),re(b.slide,b.master,b.placed,e.shapes,s,w=>w.startsWith(p)?w.slice(p.length):void 0,w=>{const O=w.placeholder===void 0?void 0:u.text[w.placeholder.idx];return O===void 0?void 0:O.map(c=>c.runs.map(d=>d.text).join(""))},u.notes,[...(u.animations??[]).map(w=>({...w,shape:`${p}${w.shape}`})),...e.animations??[]]);for(const w of b.slide.shapes){const O=w.placeholder===void 0?void 0:u.text[w.placeholder.idx];O&&w.text&&(w.text.paragraphs=O,w.text.empty=!1)}v.push(b.slide),ae.add(x)}for(const u of Object.keys(e.shapes??{})){const[x]=u.split("/");x!==void 0&&!$.some(b=>b.id===x)&&a.push({slide:e.id,path:`${s}.shapes.${u}`,message:`Generator ${h} makes no slide ${x}: ${u} changes nothing.`})}});const le=new Set(v.map(e=>e.id));for(const e of v)for(const n of e.shapes){if(n.level!=="slide")continue;const s=[...n.link===void 0?[]:[n.link],...(n.text?.paragraphs??[]).flatMap(h=>h.runs.flatMap(g=>g.font?.link===void 0?[]:[g.font.link]))];for(const h of new Set(s)){const g=Ee(h);(g!==void 0?!le.has(g):h.startsWith("ppaction://")&&je(h)===void 0)&&a.push({slide:e.id,shape:n.name,message:g!==void 0?`Shape ${n.name} links to slide ${g}, which the deck has not (it has ${[...le].join(", ")}).`:`Shape ${n.name} links to ${h}: a show jump is ppaction://hlinkshowjump?jump= and ${Te.join(", ")}.`})}}return v.forEach((e,n)=>{for(const s of e.shapes)s.placeholder?.type==="sldNum"&&s.text&&(s.text.paragraphs=[{level:0,runs:[{text:String(n+1),field:"slidenum"}]}],s.text.empty=!1)}),{deck:{width:t.slide_width,height:t.slide_height,theme:E,slides:v},problems:a}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readDataFile as
|
|
3
|
-
`:
|
|
2
|
+
import{readDataFile as w}from"@allyhub/formats";import{isCollection as m,isMap as a,isSeq as g,parseDocument as y}from"yaml";export function scriptWords(t,e){const s=new Map(t.slides.map(i=>[i.id,i])),o=i=>typeof i=="string"?i:Array.isArray(i)?i.map(o).filter(n=>n!==void 0):void 0;return i=>{if(!i.startsWith(`${e}.`))return;const[n="",...r]=i.slice(e.length+1).split("."),c=s.get(n);if(r.length===1&&r[0]==="notes")return typeof c?.notes=="string"?c.notes:void 0;if(r.length===2&&r[0]==="alt")return c?.alt?.[r[1]??""];let f=c?.text;for(const u of r)f=typeof f=="object"&&f!==null&&!Array.isArray(f)?f[u]:void 0;return o(f)}}export const CHART_AXIS_WORDS=["category_axis","value_axis","secondary_axis"];export function chartWordsOf(t){if(typeof t=="string")return{title:t};if(typeof t!="object"||Array.isArray(t))return{};const e={};for(const s of["title",...CHART_AXIS_WORDS]){const o=t[s];typeof o=="string"&&(e[s]=o)}return e}export function chartScriptText(t){const e=Object.fromEntries(Object.entries(t).filter(([,o])=>o!==void 0&&o!=="")),s=Object.keys(e);if(s.length!==0)return s.length===1&&e.title!==void 0?e.title:e}export function readScript(t){const e=y(t);if(e.errors.length>0)return;const s=w("script",e.toJS()??{});return s.ok?s.value:void 0}function S(t){let e=t.get("slides",!0);if(g(e)||(a(t.contents)?t.set("slides",t.createNode([])):t.contents=t.createNode({slides:[]}),e=t.get("slides",!0)),!g(e))throw new Error("The script has no slides list.");return e.flow===!0&&(e.flow=!1),e}function x(t,e){!m(t)||!m(e)||(e.flow===!0&&(t.flow=!0),t.items.forEach((s,o)=>{x(s,e.items[o])}))}export function editDeckScript(t,e){const s=y(t===void 0||t.trim()===""?`slides: []
|
|
3
|
+
`:t);if(s.errors.length>0)throw new Error("The script is not YAML: it is mended by hand first.");return editDeckScriptDocument(s,e),s.toString()}export function editDeckScriptDocument(t,e){const s=S(t),o=s.items.findIndex(r=>a(r)&&r.get("id")===e.slide);if(e.op==="remove"){o>=0&&s.items.splice(o,1);return}const i=e.op==="text"?e.words===void 0:e.op==="alt"?e.alt===void 0:e.notes===void 0;if(o<0&&i)return;let n=s.items[o];if(a(n)||(s.items.push(t.createNode({id:e.slide})),n=s.items.at(-1)),!!a(n)){if(e.op==="notes")e.notes===void 0?n.delete("notes"):n.set("notes",t.createNode(e.notes));else if(e.op==="alt")if(e.alt===void 0){n.deleteIn(["alt",e.shape]);const r=n.get("alt",!0);a(r)&&r.items.length===0&&n.delete("alt")}else n.setIn(["alt",e.shape],e.alt);else if(e.words===void 0){n.deleteIn(["text",e.shape]);const r=n.get("text",!0);a(r)&&r.items.length===0&&n.delete("text")}else{const r=t.createNode(e.words);x(r,n.getIn(["text",e.shape],!0)),n.setIn(["text",e.shape],r)}n.items.length===1&&s.items.splice(s.items.indexOf(n),1)}}const p=t=>JSON.stringify(t);export function deckScriptEdits(t,e){const s=[],o=new Map(t.slides.map(n=>[n.id,n])),i=new Map(e.slides.map(n=>[n.id,n]));for(const n of o.keys())i.has(n)||s.push({op:"remove",slide:n});for(const[n,r]of i){const c=o.get(n),f=c?.text??{},u=r.text??{};for(const l of new Set([...Object.keys(f),...Object.keys(u)]))p(f[l])!==p(u[l])&&s.push({op:"text",slide:n,shape:l,words:u[l]});const h=c?.alt??{},d=r.alt??{};for(const l of new Set([...Object.keys(h),...Object.keys(d)]))h[l]!==d[l]&&s.push({op:"alt",slide:n,shape:l,alt:d[l]});p(c?.notes)!==p(r.notes)&&s.push({op:"notes",slide:n,notes:r.notes})}return s}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{LENGTH_UNITS as O,presentationFor as _}from"./index.js";export const{Emu,Inches,Pt,Cm,Mm,Centipoints}=O;export{RGBColor,MSO_ANCHOR,CategoryChartData,MSO_ARROWHEAD,MSO_ARROWHEAD_SIZE,XL_CHART_TYPE,XL_LABEL_POSITION,XL_LEGEND_POSITION,MSO_AUTO_SIZE,MSO_CONNECTOR,MSO_FILL,MSO_LINE,MSO_LINE_DASH_STYLE,MSO_SHAPE,MSO_SHAPE_TYPE,MSO_THEME_COLOR,PP_ALIGN,PP_PARAGRAPH_ALIGNMENT,PP_PLACEHOLDER,THEME_FONT,SLIDE_SIZES,presentationFor,isDeck}from"./index.js";export const presentation=_(""),slidesFor=E=>({presentation:_(E.file)});
|
|
2
|
+
import{LENGTH_UNITS as O,presentationFor as _}from"./index.js";export const{Emu,Inches,Pt,Cm,Mm,Centipoints}=O;export{RGBColor,MSO_ANCHOR,CategoryChartData,MSO_ARROWHEAD,MSO_ARROWHEAD_SIZE,XL_CHART_TYPE,XL_LABEL_POSITION,XL_LEGEND_POSITION,MSO_AUTO_SIZE,MSO_CONNECTOR,MSO_FILL,MSO_LINE,MSO_LINE_DASH_STYLE,MSO_LINE_CAP,MSO_LINE_COMPOUND,MSO_LINE_JOIN,MSO_PATTERN,MSO_PATTERN_TYPE,TILE_ALIGNMENT,MSO_SHAPE,MSO_SHAPE_TYPE,MSO_TEXT_CAPS,MSO_TEXT_ORIENTATION,MSO_TEXT_STRIKE,MSO_TEXT_UNDERLINE_TYPE,MSO_THEME_COLOR,MSO_UNDERLINE,PP_ALIGN,PP_PARAGRAPH_ALIGNMENT,PP_PLACEHOLDER,THEME_FONT,SLIDE_SIZES,presentationFor,isDeck}from"./index.js";export const presentation=_(""),slidesFor=E=>({presentation:_(E.file)});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{TABLE_STYLES as b}from"./generated/table-styles.js";export{b as TABLE_STYLES};export const DEFAULT_TABLE_STYLE="{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}";const V=new Map(b.map(t=>[t.id.toUpperCase(),t])),R=new Map(b.map(t=>[B(t.name),t]));function B(t){return t.toLowerCase().replace(/[–—]/gu,"-").replace(/\s+/gu," ").trim()}export function tableStyleOf(t){if(t!==void 0)return V.get(t.trim().toUpperCase())??R.get(B(t))}export function cellLook(t,e,r,s,a,c,l=r,p=s){const f={borders:{}},_=e.first_row===!0?1:0,w=e.first_col===!0?1:0,C=e.last_row===!0&&l===a-1,h=e.last_col===!0&&p===c-1,i=["wholeTbl"];e.horz_banding===!0&&r>=_&&!C&&i.push((r-_)%2===0?"band1H":"band2H"),e.vert_banding===!0&&s>=w&&!h&&i.push((s-w)%2===0?"band1V":"band2V"),h&&i.push("lastCol"),e.first_col===!0&&s===0&&i.push("firstCol"),C&&i.push("lastRow"),e.first_row===!0&&r===0&&i.push("firstRow");for(const o of i){const n=t.parts[o];if(!n)continue;n.fill!==void 0&&(f.fill=n.fill),n.bold!==void 0&&(f.bold=n.bold),n.text!==void 0&&(f.text=n.text);const m=n.borders??{},x=o==="firstRow"||o==="lastRow"||o==="band1H"||o==="band2H",E=o==="firstCol"||o==="lastCol"||o==="band1V"||o==="band2V",d={top:x?r:0,bottom:x?l:a-1,left:E?s:0,right:E?p:c-1},u=(L,H,T)=>{const A=H?m[L]:m[T];A!==void 0&&(f.borders[L]=A)};u("left",s===d.left,"insideV"),u("right",p===d.right,"insideV"),u("top",r===d.top,"insideH"),u("bottom",l===d.bottom,"insideH")}return f}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{execFile as V}from"node:child_process";import{mkdir as q,mkdtemp as G,readFile as z,rm as H,writeFile as D}from"node:fs/promises";import{tmpdir as J}from"node:os";import{dirname as Q,join as l}from"node:path";import{promisify as R}from"node:util";import{cropImage as E,ffmpegOf as T,ffprobeOf as W,finalStill as I,readPng as $,writePng as j}from"@allyhub/render";import{clockOf as X,DECK_FPS as Y,componentSeconds as Z}from"@allyhub/slides-core";import{filesOf as ee,picturedShapes as te,writePptx as ie}from"@allyhub/slides-pptx";import{deckFonts as oe}from"./deck-fonts.js";const A=R(V),
|
|
2
|
+
import{execFile as V}from"node:child_process";import{mkdir as q,mkdtemp as G,readFile as z,rm as H,writeFile as D}from"node:fs/promises";import{tmpdir as J}from"node:os";import{dirname as Q,join as l}from"node:path";import{promisify as R}from"node:util";import{cropImage as E,ffmpegOf as T,ffprobeOf as W,finalStill as I,readPng as $,writePng as j}from"@allyhub/render";import{clockOf as X,DECK_FPS as Y,componentSeconds as Z}from"@allyhub/slides-core";import{filesOf as ee,picturedShapes as te,writePptx as ie}from"@allyhub/slides-pptx";import{deckFonts as oe}from"./deck-fonts.js";const A=R(V),k=Y/2;async function ne(t){const a=await G(l(J(),"allyhub-deck-movie-"));try{await Promise.all(t.map((c,u)=>D(l(a,`${String(u).padStart(5,"0")}.png`),c)));const d=l(a,"movie.mp4");return await A(await T(),["-y","-loglevel","error","-framerate",String(k),"-i",l(a,"%05d.png"),"-vf","pad=ceil(iw/2)*2:ceil(ih/2)*2","-c:v","libx264","-crf","18","-pix_fmt","yuv420p","-movflags","+faststart",d]),new Uint8Array(await z(d))}finally{await H(a,{recursive:!0,force:!0})}}async function re(t){return await t.graphics().deck?.()}export async function renderDeckPptx(t,a,d={}){const c=await re(t);if(!c)return;const u=d.only===void 0?void 0:c.slides[d.only];if(d.only!==void 0&&!u)return;const f=u?{...c,slides:[{...u,hidden:!1}]}:c,m=t.graphics(),s=m.timeline.width/f.width,w=new Map,y=te(f);for(const e of new Set(y.map(i=>i.slide))){const i=m.timeline.parts.find(r=>r.key===e);if(!i)continue;const o=$(await I(m,i.still,{target:t.target,look:t.look,media:t.media}));for(const r of y.filter(p=>p.slide===e)){const p=E(o,[r.frame.left*s,r.frame.top*s,r.frame.width*s,r.frame.height*s]);p&&w.set(r.key,j(p))}}const b=new Map;for(const e of y){const i=f.slides.find(n=>n.id===e.slide),o=i?.shapes.find(n=>n.name===e.shape),r=m.timeline.parts.find(n=>n.key===e.slide);if(!i||!r||!o?.component)continue;const p=[e.frame.left*s,e.frame.top*s,e.frame.width*s,e.frame.height*s],L=X(i,c.slides[0]?.id===i.id),N=r.start+L.comesOn(o.name),x=async n=>{const g=$(await I(m,n,{target:t.target,look:t.look,media:t.media})),v=E(g,p);return v?j(v):void 0},h=await x(N),_=w.get(e.key);if(!h||!_||Buffer.compare(h,_)===0)continue;const P=[h],U=Math.ceil(Z(o.component)*k);for(let n=1;n<U;n++){const g=await x(N+n/k);g&&P.push(g)}b.set(e.key,{bytes:await ne(P),seconds:P.length/k}),w.set(e.key,h)}const F=new Map;for(const e of ee(f))try{F.set(e,await z(l(t.prepared.root,e)))}catch{}const S=new Map,M=[],B=await W();for(const e of new Set(f.slides.flatMap(i=>i.shapes.flatMap(o=>(o.kind==="movie"||o.kind==="audio")&&o.media?[o.media.path]:[])))){const i=await A(B,["-v","error","-show_entries","format=duration","-of","csv=p=0",l(t.prepared.root,e)]).then(o=>Number(o.stdout.trim()),()=>Number.NaN);Number.isFinite(i)&&i>0?S.set(e,i):M.push(`${e}: its length could not be measured, so it plays on a click in PowerPoint`)}const O=m.timeline.parts[0]?.title,{fonts:C,left:K}=await oe(f,t.prepared.root,t.prepared.config);return await q(Q(a),{recursive:!0}),await D(a,ie({deck:f,file:e=>F.get(e),pictures:w,...b.size>0?{movies:b}:{},...S.size>0?{lengths:S}:{},fonts:C,...O===void 0?{}:{title:O},left:e=>M.push(e)})),{files:[a],fontsLeft:K,missing:M}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as m}from"node:fs/promises";import{join as h}from"node:path";import{LOCALE_MARK as v}from"@allyhub/formats";import{VIDEO_TOOLS as l}from"@allyhub/video-extension/tools";import{deckComponents as w,isDeckCode as g,readScript as S,readSlidesFile as y,resolveDeck as b,scriptWords as k}from"@allyhub/slides-core";import{SLIDES_TOOLS as O}from"./tools.js";export async function resolvedDeck(
|
|
2
|
+
import{readFile as m}from"node:fs/promises";import{join as h}from"node:path";import{LOCALE_MARK as v}from"@allyhub/formats";import{VIDEO_TOOLS as l}from"@allyhub/video-extension/tools";import{deckComponents as w,isDeckCode as g,readScript as S,readSlidesFile as y,resolveDeck as b,scriptWords as k}from"@allyhub/slides-core";import{SLIDES_TOOLS as O}from"./tools.js";export async function resolvedDeck(i,r,c,e){if(!g(e.code))return;const t=s=>m(h(i,s),"utf8").catch(()=>{}),f=await t(e.file),o=f===void 0?void 0:y(f).file;if(!o)return;const a=c.lang??Object.keys(e.scripts)[0],p=a===void 0?void 0:await t(e.scripts[a]??e.script.replace(v,a)),d=(p===void 0?void 0:S(p))??{parts:[],slides:[],boards:[]};return b({code:e.code,file:o,words:k(d,e.prefix),prefix:e.prefix,base:r,theme:e.theme,data:s=>e.data?.[s]}).deck}export async function deckSnapshot(i,{root:r,tool:c}){const e=(d,s)=>c(d,s).catch(()=>{}),t=l["video/versions"].result.safeParse(await e("video/versions",{item:i.id}));await e("video/stage",{item:i.id});for(const d of t.success?t.data.versions:[])await e("video/stage",{item:i.id,version:d.key});const f=O["slides/deck"].result.safeParse(await e("slides/deck",{item:i.id}));await e("slides/fonts",{item:i.id});const o=new Set,a=new Set,p=[];if(f.success&&t.success)for(const d of t.data.versions){const s=await resolvedDeck(r,i.dir,d,f.data);if(s){for(const u of s.slides){u.background_picture!==void 0&&o.add(u.background_picture);for(const n of u.shapes)n.media&&o.add(n.media.path),n.picture_fill&&o.add(n.picture_fill.path),n.chart?.source!==void 0&&a.add(n.chart.source)}p.push({version:d.key,components:w(s,t.data.width).map(u=>u.at)})}}return{shows:{media:[...o],data:[...a]},stills:p}}export function activate(i){i.subscriptions.push(i.allyhub.kinds.registerKindProvider("slides",{preview:async(r,{tool:c})=>{const e=l["video/still"].result.parse(await c("video/still",{item:r.id}));return{type:"picture",image:e.image,width:e.width,height:e.height}},snapshot:deckSnapshot}))}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const AUDIO_ICON=Uint8Array.from(Buffer.from("iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAACXElEQVR42u2dwXGEMAxFtwNK2BIoISXkzIkSKIESKMElUAIlUAIlUAKBGcgkOyTIxqwEvMO/7IExeli2ZUn7yLLsgfSEEQAAAAQAACAAAAABAAAIAABAAAAAAgAAEAC+lY6qRw2z6vk3ALxBn6P6H8Zf1CtDcLMuDaBcMfzwMhO0jL+MwV0RQPLicv6TpvEXVVcCMLmVVmj8wYDxF+VXAPCXv7cAwG2MI2hNOpO/1wSQC8fSnhGAj7+3PAOC1oOz+XvtNUD6oaRnABDi77UBJMIPprUOoIxgeK1taCr8cHKLAPb6ewsAJhWCcXXz+5oBEMPfWwEwqRGMrbQCIJa/twTgKZwF6gDKgwyvDUD6brkWgCP8/REAXGgYYX7Hfs+OSBp/t6xYh6v8wFmQ+gBID/TXlgC4SPcLyZ7T8Z7T3pkBuFixHGGYovMBMFwcgNu7dVzRR6gbuhsAib/u5y2mL4Ru47kFAOSxnJBrxmrjmQ0A5JuMXhJGWDlseo/1jgCksZwi4Lne68BdAUh8dsiOqPE9Fd8ZgOSa8Rl5HSgB8Ft9FiGm7+HaagD4nQmqyOeBBgB+bqiJDKAFgJ/BugN2QgDYYzAAAAAAAAAAizAA2IZyEOMgRiiCYBzBOMLRXMhwIcOVJJfyXMqTlkJiVqzELFITlVMTSc5VTs4lPV05PZ0CDQMFGpQoXaBEiSI9I0V6lKlSqE2hNq0KaNZBsw7a1dCwiYZNtCyjaR9N+2hbSeNWGrfSupjm3TTvpn09f+AAAABgBAAAAAEAAAgAAEAAAAACAAAQAACAAHALfQGGT9bymuye2AAAAABJRU5ErkJggg==","base64"));
|