@silurus/ooxml 0.85.0 → 0.85.2

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.
Files changed (40) hide show
  1. package/README.md +11 -7
  2. package/dist/assets/render-worker-CV9Mg4j9.js +10 -0
  3. package/dist/assets/{render-worker-BRKOyWVH.js → render-worker-DHP0rgcW.js} +16 -16
  4. package/dist/assets/render-worker-DdvOGyrn.js +11 -0
  5. package/dist/{canvas-viewer-mechanics-C-yTGbFC.js → canvas-viewer-mechanics-CDNMJ-Yz.js} +3 -3
  6. package/dist/{document-pull-client-BdYrjAep.js → document-pull-client-BssAk95w.js} +3877 -3867
  7. package/dist/{docx-qK0Qmyey.js → docx-BY7oyoml.js} +40 -41
  8. package/dist/docx.mjs +5 -5
  9. package/dist/{dom-interaction-boundary-CMDDgICk.js → dom-interaction-boundary-CDGegIB5.js} +1 -1
  10. package/dist/index.mjs +3 -3
  11. package/dist/line-distribute-BsV4MVZ2.js +1023 -0
  12. package/dist/{line-metrics-u87yCAfV.js → line-metrics-BGtFM-ec.js} +650 -607
  13. package/dist/node.mjs +30 -30
  14. package/dist/{pptx-DxZwhOWr.js → pptx-C4z96sAA.js} +29 -25
  15. package/dist/pptx.mjs +6 -6
  16. package/dist/pptx_parser_bg.wasm +0 -0
  17. package/dist/{raster-target-whZhvVMt.js → raster-target-ojDdQizC.js} +11 -7
  18. package/dist/{render-DrAAZWwH.js → render-Dxvwes39.js} +1 -1
  19. package/dist/{render-worker-host-GZ7ez-l3.js → render-worker-host-BAXcBGq3.js} +1 -1
  20. package/dist/{render-worker-host-CHlwYJdK.js → render-worker-host-CNKQ76tu.js} +1 -1
  21. package/dist/{render-worker-host-XDMsyVsv.js → render-worker-host-CXTCU4PO.js} +1 -1
  22. package/dist/{resource-measurement-6uR3Huao.js → resource-measurement-D41R-0Bl.js} +4 -4
  23. package/dist/{session-DoPwA4gv.js → session-BmP4lcEo.js} +6 -6
  24. package/dist/{slide-pull-client-8i8C4VyD.js → slide-pull-client-RTwQbJiy.js} +707 -697
  25. package/dist/tiff.mjs +1 -1
  26. package/dist/types/chart-ex.d.ts +2 -2
  27. package/dist/types/docx.d.ts +11 -11
  28. package/dist/types/index.d.ts +16 -15
  29. package/dist/types/node.d.ts +5 -5
  30. package/dist/types/pptx.d.ts +10 -8
  31. package/dist/types/region-map.d.ts +2 -2
  32. package/dist/types/three-d.d.ts +2 -2
  33. package/dist/types/xlsx.d.ts +9 -8
  34. package/dist/{worksheet-pull-client-Btydoxto.js → worksheet-pull-client-C9sC36Vu.js} +20 -20
  35. package/dist/{xlsx-57OZsbD9.js → xlsx-DSU6pV1O.js} +1214 -1208
  36. package/dist/xlsx.mjs +6 -6
  37. package/package.json +1 -1
  38. package/dist/assets/render-worker-DnU-PxZ1.js +0 -10
  39. package/dist/assets/render-worker-NZPOUOTU.js +0 -11
  40. package/dist/line-distribute-CiKeWjBF.js +0 -1023
package/dist/tiff.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as e, i as t, o as n, r, s as i } from "./pixel-budget-Dgjw269h.js";
2
- import { i as a, o, s, t as c } from "./raster-target-whZhvVMt.js";
2
+ import { i as a, o, s, t as c } from "./raster-target-ojDdQizC.js";
3
3
  import { t as l } from "./renderer-module-contract-Cu-GKuPd.js";
4
4
  //#region packages/core/src/image/tiff.ts
5
5
  var u = 1, d = 3, f = 4, p = {
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-D5f5lUUP.d.ts
1
+ //#region dist/.types-work/chart-CX4ml5hj.d.ts
2
2
  interface Duotone {
3
3
  clr1: string;
4
4
  clr2: string;
@@ -938,7 +938,7 @@ interface ChartRect {
938
938
  h: number;
939
939
  }
940
940
  //#endregion
941
- //#region dist/.types-work/chart-ex-contract-BkjyVy4_.d.ts
941
+ //#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
942
942
  interface ChartExRenderer {
943
943
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
944
944
  }
@@ -1,8 +1,9 @@
1
- //#region dist/.types-work/chart-D5f5lUUP.d.ts
1
+ //#region dist/.types-work/chart-CX4ml5hj.d.ts
2
2
  type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
3
3
  interface ImageResourceOptions {
4
4
  decodedByteBudget?: number;
5
5
  strategy?: DecodedImageBudgetStrategy;
6
+ resolution?: 'native-if-fit' | 'display';
6
7
  }
7
8
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
8
9
  interface MathRun {
@@ -1047,7 +1048,7 @@ interface ChartRect {
1047
1048
  h: number;
1048
1049
  }
1049
1050
  //#endregion
1050
- //#region dist/.types-work/chart-ex-contract-BkjyVy4_.d.ts
1051
+ //#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
1051
1052
  interface ChartExRenderer {
1052
1053
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1053
1054
  }
@@ -1064,12 +1065,12 @@ interface MathRenderer {
1064
1065
  mathMLToSvg(mathml: string): Promise<MathSvg>;
1065
1066
  }
1066
1067
  //#endregion
1067
- //#region dist/.types-work/three-d-contract-3rYMiY6u.d.ts
1068
+ //#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
1068
1069
  interface ChartThreeDRenderer {
1069
1070
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1070
1071
  }
1071
1072
  //#endregion
1072
- //#region dist/.types-work/region-map-contract-fx_imRHE.d.ts
1073
+ //#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
1073
1074
  interface ChartRegionMapRenderer {
1074
1075
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1075
1076
  }
@@ -1089,7 +1090,7 @@ interface TiffRenderer {
1089
1090
  render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
1090
1091
  }
1091
1092
  //#endregion
1092
- //#region dist/.types-work/hyperlink-DmJyne_y.d.ts
1093
+ //#region dist/.types-work/hyperlink-92bQUogu.d.ts
1093
1094
  type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
1094
1095
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
1095
1096
  declare class OoxmlError extends Error {
@@ -1204,7 +1205,7 @@ type HyperlinkTarget = {
1204
1205
  };
1205
1206
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
1206
1207
  //#endregion
1207
- //#region dist/.types-work/find-highlight-Ms93pOo5.d.ts
1208
+ //#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
1208
1209
  interface TextSelectionContextOptions {
1209
1210
  readonly maxTextCharacters?: number;
1210
1211
  readonly maxRunLocators?: number;
@@ -1265,7 +1266,7 @@ interface FindHighlightColors {
1265
1266
  active?: string;
1266
1267
  }
1267
1268
  //#endregion
1268
- //#region dist/.types-work/types-BK3zrOsk.d.ts
1269
+ //#region dist/.types-work/types-CKbbBm9J.d.ts
1269
1270
  interface DocxDocumentModel {
1270
1271
  section: SectionProps;
1271
1272
  body: BodyElement[];
@@ -2012,7 +2013,7 @@ interface RenderPageOptions {
2012
2013
  showTrackedChanges?: boolean;
2013
2014
  }
2014
2015
  //#endregion
2015
- //#region dist/.types-work/docx-CqOGGhG7.d.ts
2016
+ //#region dist/.types-work/docx-8nLAF_CE.d.ts
2016
2017
  interface CommentAnchorRange {
2017
2018
  readonly commentId: string;
2018
2019
  readonly source: Readonly<DocxStorySource>;
@@ -2401,7 +2402,6 @@ declare class DocxScrollViewer implements ZoomableViewer {
2401
2402
  private _lastReportedLayoutComplete;
2402
2403
  private _layoutUnsubscribe;
2403
2404
  private _presentedPageCount;
2404
- private _pendingLayoutPublication;
2405
2405
  private _scrollListener;
2406
2406
  private _selectionChangeListener;
2407
2407
  private _selectionContextKey;
@@ -2455,8 +2455,6 @@ declare class DocxScrollViewer implements ZoomableViewer {
2455
2455
  private _onLayoutViewPublication;
2456
2456
  private _refreshCommentSurface;
2457
2457
  private _applyLayoutPublication;
2458
- private _revealPendingLayoutAtPresentedTail;
2459
- private _revealPendingLayoutThroughPage;
2460
2458
  private _pageWidthPx;
2461
2459
  private _pageHeightPx;
2462
2460
  private _fitWidthPx;
@@ -2468,6 +2466,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
2468
2466
  private _commentsOptions;
2469
2467
  private _commentSide;
2470
2468
  private _syncCommentMarginGeometry;
2469
+ private _widestPageWidthPt;
2471
2470
  private _baseScale;
2472
2471
  relayout(): void;
2473
2472
  private _relayout;
@@ -2499,6 +2498,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
2499
2498
  getScale(): number;
2500
2499
  zoomIn(): void;
2501
2500
  zoomOut(): void;
2501
+ private _effectiveZoomMin;
2502
2502
  fitWidth(): void;
2503
2503
  fitPage(): void;
2504
2504
  private _fit;
@@ -1,8 +1,9 @@
1
- //#region dist/.types-work/chart-D5f5lUUP.d.ts
1
+ //#region dist/.types-work/chart-CX4ml5hj.d.ts
2
2
  type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
3
3
  interface ImageResourceOptions {
4
4
  decodedByteBudget?: number;
5
5
  strategy?: DecodedImageBudgetStrategy;
6
+ resolution?: 'native-if-fit' | 'display';
6
7
  }
7
8
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
8
9
  interface MathRun {
@@ -1254,7 +1255,7 @@ interface ChartRect {
1254
1255
  h: number;
1255
1256
  }
1256
1257
  //#endregion
1257
- //#region dist/.types-work/chart-ex-contract-BkjyVy4_.d.ts
1258
+ //#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
1258
1259
  interface ChartExRenderer {
1259
1260
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1260
1261
  }
@@ -1271,12 +1272,12 @@ interface MathRenderer {
1271
1272
  mathMLToSvg(mathml: string): Promise<MathSvg>;
1272
1273
  }
1273
1274
  //#endregion
1274
- //#region dist/.types-work/three-d-contract-3rYMiY6u.d.ts
1275
+ //#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
1275
1276
  interface ChartThreeDRenderer {
1276
1277
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1277
1278
  }
1278
1279
  //#endregion
1279
- //#region dist/.types-work/region-map-contract-fx_imRHE.d.ts
1280
+ //#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
1280
1281
  interface ChartRegionMapRenderer {
1281
1282
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1282
1283
  }
@@ -1296,7 +1297,7 @@ interface TiffRenderer {
1296
1297
  render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
1297
1298
  }
1298
1299
  //#endregion
1299
- //#region dist/.types-work/hyperlink-DmJyne_y.d.ts
1300
+ //#region dist/.types-work/hyperlink-92bQUogu.d.ts
1300
1301
  type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
1301
1302
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
1302
1303
  declare class OoxmlError extends Error {
@@ -1411,7 +1412,7 @@ type HyperlinkTarget = {
1411
1412
  };
1412
1413
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
1413
1414
  //#endregion
1414
- //#region dist/.types-work/find-highlight-Ms93pOo5.d.ts
1415
+ //#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
1415
1416
  interface TextSelectionContextOptions {
1416
1417
  readonly maxTextCharacters?: number;
1417
1418
  readonly maxRunLocators?: number;
@@ -1472,7 +1473,7 @@ interface FindHighlightColors {
1472
1473
  active?: string;
1473
1474
  }
1474
1475
  //#endregion
1475
- //#region dist/.types-work/types-BK3zrOsk.d.ts
1476
+ //#region dist/.types-work/types-CKbbBm9J.d.ts
1476
1477
  interface DocxDocumentModel {
1477
1478
  section: SectionProps;
1478
1479
  body: BodyElement[];
@@ -2219,7 +2220,7 @@ interface RenderPageOptions {
2219
2220
  showTrackedChanges?: boolean;
2220
2221
  }
2221
2222
  //#endregion
2222
- //#region dist/.types-work/docx-CqOGGhG7.d.ts
2223
+ //#region dist/.types-work/docx-8nLAF_CE.d.ts
2223
2224
  interface CommentAnchorRange {
2224
2225
  readonly commentId: string;
2225
2226
  readonly source: Readonly<DocxStorySource>;
@@ -2608,7 +2609,6 @@ declare class DocxScrollViewer implements ZoomableViewer {
2608
2609
  private _lastReportedLayoutComplete;
2609
2610
  private _layoutUnsubscribe;
2610
2611
  private _presentedPageCount;
2611
- private _pendingLayoutPublication;
2612
2612
  private _scrollListener;
2613
2613
  private _selectionChangeListener;
2614
2614
  private _selectionContextKey;
@@ -2662,8 +2662,6 @@ declare class DocxScrollViewer implements ZoomableViewer {
2662
2662
  private _onLayoutViewPublication;
2663
2663
  private _refreshCommentSurface;
2664
2664
  private _applyLayoutPublication;
2665
- private _revealPendingLayoutAtPresentedTail;
2666
- private _revealPendingLayoutThroughPage;
2667
2665
  private _pageWidthPx;
2668
2666
  private _pageHeightPx;
2669
2667
  private _fitWidthPx;
@@ -2675,6 +2673,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
2675
2673
  private _commentsOptions;
2676
2674
  private _commentSide;
2677
2675
  private _syncCommentMarginGeometry;
2676
+ private _widestPageWidthPt;
2678
2677
  private _baseScale;
2679
2678
  relayout(): void;
2680
2679
  private _relayout;
@@ -2706,6 +2705,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
2706
2705
  getScale(): number;
2707
2706
  zoomIn(): void;
2708
2707
  zoomOut(): void;
2708
+ private _effectiveZoomMin;
2709
2709
  fitWidth(): void;
2710
2710
  fitPage(): void;
2711
2711
  private _fit;
@@ -2766,7 +2766,7 @@ declare namespace docx_d_exports {
2766
2766
  export { AnchorHostMetrics, AutoResizeOptions, BodyElement, BorderSpec, CellBorders, CellElement, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartErrBars, ChartExElementStyle, ChartExRenderer, ChartLabelBox, ChartLegendEntryOverride, ChartLineDashSegment, ChartLineGroupDecorations, ChartManualLayout, ChartModel, ChartOfPie, ChartPlotGroup, ChartPlotGroupAxisSlot, ChartPlotGroupKind, ChartRect, ChartRegionMapRenderer, ChartRun, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartSurfaceBandFormat, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDPictureOptions, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, ColSpec, CollectPageRunsOptions, ColumnsSpec, CommentAnchorGeometryFallback, CommentAnchorPoint, CommentAnchorRange, DecodedImageBudgetStrategy, DocComment, DocNote, DocParagraph, DocRevision, DocRun, DocSettings, DocTable, DocTableCell, DocTableRow, DocxCommentAnchorKind, DocxCommentHighlightRect, DocxCommentMark, DocxCommentSelectionContext, DocxCommentsOptions, DocxDocument, DocxDocumentModel, DocxElementContext, DocxElementContextOptions, DocxHighlightColors, DocxHighlightMatch, DocxMatchLocation, DocxPageCommentThreadsOptions, DocxPagePoint, DocxRunBorder, DocxScrollViewer, DocxScrollViewerOptions, DocxSelectionContext, DocxSelectionContextOptions, DocxSelectionRunLocator, DocxSelectionSourceLocator, DocxStorySource, DocxTextRun, DocxTextRunInfo, DocxTextSelectionContext, DocxViewer, DocxViewerOptions, DrawingMLCustomDashSegment, Duotone$1 as Duotone, EmbeddedFontRef, FieldRun, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, FramePr, GradientFill, GradientStop, HeaderFooter, HeadersFooters, HyperlinkTarget, ImageFill, ImageResourceOptions, ImageRun, LegendManualLayout, LineEnd, LineNumbering, LineSpacing, LoadOptions$2 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, NoFill, NoteRef, NumberingInfo, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, PTabRun, PageBorderEdge, PageBorders, PageNumType, ParaBorderEdge, ParagraphBorders, PathCmd$1 as PathCmd, PatternFill, RenderPageOptions, RenderPageToBitmapOptions, ResolveDocxCommentThreadsOptions, ResolvedDocxCommentAnchor, ResolvedDocxCommentThread, RevisionAnchorGeometryFallback, RevisionAnchorRange, RubyAnnotation, RunRevision, SecondaryValueAxis, SectionGeom, SectionProps, ShapeFill$1 as ShapeFill, ShapeRun, ShapeStrokeFill, ShapeText$1 as ShapeText, ShapeTextRun$1 as ShapeTextRun, SolidFill, SrcRect, TabStop, TableBorders, TblpPr, TextPath, TextSelectionContextOptions, TiffDecodeError, TiffRenderOptions, TiffRenderer, TileInfo, ViewerCommentConnectorOptions, ViewerCommentConnectorRoute, ViewerCommentConnectorStroke, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, noteText, openExternalHyperlink, readDocxTextSelectionContext, resolveCommentAnchorRuns, resolveDocxCommentThreads, resolveRevisionAnchorRuns };
2767
2767
  }
2768
2768
  //#endregion
2769
- //#region dist/.types-work/types-CaGxG9gJ.d.ts
2769
+ //#region dist/.types-work/types-BYLigRmk.d.ts
2770
2770
  interface BlipBullet {
2771
2771
  type: 'blip';
2772
2772
  imagePath: string;
@@ -3028,7 +3028,7 @@ interface PictureElement {
3028
3028
  sp3d?: Sp3d;
3029
3029
  }
3030
3030
  //#endregion
3031
- //#region dist/.types-work/pptx-oIBDGE9O.d.ts
3031
+ //#region dist/.types-work/pptx-BlT4_QTU.d.ts
3032
3032
  interface PptxTextRunInfo {
3033
3033
  elementIndex?: number;
3034
3034
  origin?: SlideElementOrigin;
@@ -3539,6 +3539,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
3539
3539
  getScale(): number;
3540
3540
  zoomIn(): void;
3541
3541
  zoomOut(): void;
3542
+ private _effectiveZoomMin;
3542
3543
  fitWidth(): void;
3543
3544
  fitPage(): void;
3544
3545
  private _fit;
@@ -3601,7 +3602,7 @@ declare namespace pptx_d_exports {
3601
3602
  export { ArrowEnd, AutoResizeOptions, Bevel3d, BlipBullet, Bullet, Camera3d, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartElement, ChartErrBars, ChartExElementStyle, ChartExRenderer, ChartLabelBox, ChartLegendEntryOverride, ChartLineDashSegment, ChartLineGroupDecorations, ChartManualLayout, ChartModel, ChartOfPie, ChartPlotGroup, ChartPlotGroupAxisSlot, ChartPlotGroupKind, ChartRect, ChartRegionMapRenderer, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartSurfaceBandFormat, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDPictureOptions, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, DecodedImageBudgetStrategy, DimOptions, DrawingMLCustomDashSegment, Duotone$1 as Duotone, EquationRun, Fill, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, Glow, GradientFill, GradientStop$1 as GradientStop, HiddenSlideMode, HyperlinkTarget, ImageFill, ImageResourceOptions, LegendManualLayout, LightRig, LineBreak, LoadOptions$1 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MediaElement, NoFill, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, Paragraph, PathCmd$2 as PathCmd, PatternFill, PictureElement, PptxComment, PptxCommentAnchor, PptxCommentReply, PptxCommentSelectionContext, PptxCommentsOptions, PptxElementBounds, PptxElementContext, PptxElementContextOptions, PptxHighlightColors, PptxHighlightMatch, PptxMatchLocation, PptxPresentation, PptxScrollViewer, PptxScrollViewerOptions, PptxSelectionContext, PptxSelectionContextOptions, PptxSelectionRunLocator, PptxSlidePoint, PptxTextRunInfo, PptxTextSelectionContext, PptxViewer, PptxViewerOptions, PresentSlideOptions, Presentation, PresentationHandle, Reflection, RenderOptions, RenderSlideOptions, RenderSlideToBitmapOptions, Rot3d, Scene3d, SecondaryValueAxis, Shadow, ShapeElement, Slide, SlideElement, SlideElementOrigin, SlideElementSource, SlideRenderOptions, SoftEdge, SolidFill, Sp3d, SpaceLine, SrcRect, Stroke, TabStop$1 as TabStop, TableCell, TableElement, TableRow, TextBody, TextOutline, TextRect, TextRun, TextRunCallback, TextRunData, TextSelectionContextOptions, TiffDecodeError, TiffRenderOptions, TiffRenderer, TileInfo, ViewerCommentConnectorOptions, ViewerCommentConnectorRoute, ViewerCommentConnectorStroke, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
3602
3603
  }
3603
3604
  //#endregion
3604
- //#region dist/.types-work/types-BsHNWyrm.d.ts
3605
+ //#region dist/.types-work/types-BzjMGMnI.d.ts
3605
3606
  type ShapeFill = Exclude<Fill, {
3606
3607
  fillType: 'image';
3607
3608
  } | {
@@ -4355,7 +4356,7 @@ interface XlsxRenderViewportOptions {
4355
4356
  } | null;
4356
4357
  }
4357
4358
  //#endregion
4358
- //#region dist/.types-work/xlsx-BsCgvd8W.d.ts
4359
+ //#region dist/.types-work/xlsx-Bryt4758.d.ts
4359
4360
  type ResolvedList = {
4360
4361
  kind: 'values';
4361
4362
  values: string[];
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-D5f5lUUP.d.ts
1
+ //#region dist/.types-work/chart-CX4ml5hj.d.ts
2
2
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
3
3
  interface MathRun {
4
4
  kind: 'run';
@@ -1231,7 +1231,7 @@ interface ChartLegendEntryOverride {
1231
1231
  fontBold?: boolean | null;
1232
1232
  }
1233
1233
  //#endregion
1234
- //#region dist/.types-work/hyperlink-DmJyne_y.d.ts
1234
+ //#region dist/.types-work/hyperlink-92bQUogu.d.ts
1235
1235
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
1236
1236
  type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
1237
1237
  interface OoxmlResourceUsageSnapshot {
@@ -1317,7 +1317,7 @@ type HyperlinkTarget = {
1317
1317
  slideIndex?: number;
1318
1318
  };
1319
1319
  //#endregion
1320
- //#region dist/.types-work/types-BK3zrOsk.d.ts
1320
+ //#region dist/.types-work/types-CKbbBm9J.d.ts
1321
1321
  interface DocxDocumentModel {
1322
1322
  section: SectionProps;
1323
1323
  body: BodyElement[];
@@ -2054,7 +2054,7 @@ interface DocxTextRunInfo {
2054
2054
  eastAsianVert?: boolean;
2055
2055
  }
2056
2056
  //#endregion
2057
- //#region dist/.types-work/types-CaGxG9gJ.d.ts
2057
+ //#region dist/.types-work/types-BYLigRmk.d.ts
2058
2058
  interface Paragraph extends Paragraph$1 {
2059
2059
  eaLnBrk: boolean;
2060
2060
  defTabSz?: number;
@@ -2304,7 +2304,7 @@ interface PictureElement {
2304
2304
  sp3d?: Sp3d;
2305
2305
  }
2306
2306
  //#endregion
2307
- //#region dist/.types-work/types-BsHNWyrm.d.ts
2307
+ //#region dist/.types-work/types-BzjMGMnI.d.ts
2308
2308
  type ShapeFill = Exclude<Fill, {
2309
2309
  fillType: 'image';
2310
2310
  } | {
@@ -1,8 +1,9 @@
1
- //#region dist/.types-work/chart-D5f5lUUP.d.ts
1
+ //#region dist/.types-work/chart-CX4ml5hj.d.ts
2
2
  type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
3
3
  interface ImageResourceOptions {
4
4
  decodedByteBudget?: number;
5
5
  strategy?: DecodedImageBudgetStrategy;
6
+ resolution?: 'native-if-fit' | 'display';
6
7
  }
7
8
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
8
9
  interface MathRun {
@@ -1254,7 +1255,7 @@ interface ChartRect {
1254
1255
  h: number;
1255
1256
  }
1256
1257
  //#endregion
1257
- //#region dist/.types-work/chart-ex-contract-BkjyVy4_.d.ts
1258
+ //#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
1258
1259
  interface ChartExRenderer {
1259
1260
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1260
1261
  }
@@ -1271,12 +1272,12 @@ interface MathRenderer {
1271
1272
  mathMLToSvg(mathml: string): Promise<MathSvg>;
1272
1273
  }
1273
1274
  //#endregion
1274
- //#region dist/.types-work/three-d-contract-3rYMiY6u.d.ts
1275
+ //#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
1275
1276
  interface ChartThreeDRenderer {
1276
1277
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1277
1278
  }
1278
1279
  //#endregion
1279
- //#region dist/.types-work/region-map-contract-fx_imRHE.d.ts
1280
+ //#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
1280
1281
  interface ChartRegionMapRenderer {
1281
1282
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1282
1283
  }
@@ -1296,7 +1297,7 @@ interface TiffRenderer {
1296
1297
  render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
1297
1298
  }
1298
1299
  //#endregion
1299
- //#region dist/.types-work/hyperlink-DmJyne_y.d.ts
1300
+ //#region dist/.types-work/hyperlink-92bQUogu.d.ts
1300
1301
  type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
1301
1302
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
1302
1303
  declare class OoxmlError extends Error {
@@ -1411,7 +1412,7 @@ type HyperlinkTarget = {
1411
1412
  };
1412
1413
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
1413
1414
  //#endregion
1414
- //#region dist/.types-work/find-highlight-Ms93pOo5.d.ts
1415
+ //#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
1415
1416
  interface TextSelectionContextOptions {
1416
1417
  readonly maxTextCharacters?: number;
1417
1418
  readonly maxRunLocators?: number;
@@ -1472,7 +1473,7 @@ interface FindHighlightColors {
1472
1473
  active?: string;
1473
1474
  }
1474
1475
  //#endregion
1475
- //#region dist/.types-work/types-CaGxG9gJ.d.ts
1476
+ //#region dist/.types-work/types-BYLigRmk.d.ts
1476
1477
  interface BlipBullet {
1477
1478
  type: 'blip';
1478
1479
  imagePath: string;
@@ -1734,7 +1735,7 @@ interface PictureElement {
1734
1735
  sp3d?: Sp3d;
1735
1736
  }
1736
1737
  //#endregion
1737
- //#region dist/.types-work/pptx-oIBDGE9O.d.ts
1738
+ //#region dist/.types-work/pptx-BlT4_QTU.d.ts
1738
1739
  interface PptxTextRunInfo {
1739
1740
  elementIndex?: number;
1740
1741
  origin?: SlideElementOrigin;
@@ -2245,6 +2246,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
2245
2246
  getScale(): number;
2246
2247
  zoomIn(): void;
2247
2248
  zoomOut(): void;
2249
+ private _effectiveZoomMin;
2248
2250
  fitWidth(): void;
2249
2251
  fitPage(): void;
2250
2252
  private _fit;
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-D5f5lUUP.d.ts
1
+ //#region dist/.types-work/chart-CX4ml5hj.d.ts
2
2
  interface Duotone {
3
3
  clr1: string;
4
4
  clr2: string;
@@ -938,7 +938,7 @@ interface ChartRect {
938
938
  h: number;
939
939
  }
940
940
  //#endregion
941
- //#region dist/.types-work/region-map-contract-fx_imRHE.d.ts
941
+ //#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
942
942
  interface ChartRegionMapRenderer {
943
943
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
944
944
  }
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-D5f5lUUP.d.ts
1
+ //#region dist/.types-work/chart-CX4ml5hj.d.ts
2
2
  interface Duotone {
3
3
  clr1: string;
4
4
  clr2: string;
@@ -938,7 +938,7 @@ interface ChartRect {
938
938
  h: number;
939
939
  }
940
940
  //#endregion
941
- //#region dist/.types-work/three-d-contract-3rYMiY6u.d.ts
941
+ //#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
942
942
  interface ChartThreeDRenderer {
943
943
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
944
944
  }
@@ -1,8 +1,9 @@
1
- //#region dist/.types-work/chart-D5f5lUUP.d.ts
1
+ //#region dist/.types-work/chart-CX4ml5hj.d.ts
2
2
  type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
3
3
  interface ImageResourceOptions {
4
4
  decodedByteBudget?: number;
5
5
  strategy?: DecodedImageBudgetStrategy;
6
+ resolution?: 'native-if-fit' | 'display';
6
7
  }
7
8
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
8
9
  interface MathRun {
@@ -1059,7 +1060,7 @@ interface ChartRect {
1059
1060
  h: number;
1060
1061
  }
1061
1062
  //#endregion
1062
- //#region dist/.types-work/chart-ex-contract-BkjyVy4_.d.ts
1063
+ //#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
1063
1064
  interface ChartExRenderer {
1064
1065
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1065
1066
  }
@@ -1076,12 +1077,12 @@ interface MathRenderer {
1076
1077
  mathMLToSvg(mathml: string): Promise<MathSvg>;
1077
1078
  }
1078
1079
  //#endregion
1079
- //#region dist/.types-work/three-d-contract-3rYMiY6u.d.ts
1080
+ //#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
1080
1081
  interface ChartThreeDRenderer {
1081
1082
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1082
1083
  }
1083
1084
  //#endregion
1084
- //#region dist/.types-work/region-map-contract-fx_imRHE.d.ts
1085
+ //#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
1085
1086
  interface ChartRegionMapRenderer {
1086
1087
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1087
1088
  }
@@ -1101,7 +1102,7 @@ interface TiffRenderer {
1101
1102
  render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
1102
1103
  }
1103
1104
  //#endregion
1104
- //#region dist/.types-work/hyperlink-DmJyne_y.d.ts
1105
+ //#region dist/.types-work/hyperlink-92bQUogu.d.ts
1105
1106
  type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
1106
1107
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
1107
1108
  declare class OoxmlError extends Error {
@@ -1208,7 +1209,7 @@ type HyperlinkTarget = {
1208
1209
  };
1209
1210
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
1210
1211
  //#endregion
1211
- //#region dist/.types-work/find-highlight-Ms93pOo5.d.ts
1212
+ //#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
1212
1213
  interface ViewerContextMenuEvent<TContext> {
1213
1214
  readonly originalEvent: MouseEvent;
1214
1215
  getContext(): Promise<TContext | null>;
@@ -1252,7 +1253,7 @@ interface FindHighlightColors {
1252
1253
  active?: string;
1253
1254
  }
1254
1255
  //#endregion
1255
- //#region dist/.types-work/types-BsHNWyrm.d.ts
1256
+ //#region dist/.types-work/types-BzjMGMnI.d.ts
1256
1257
  type ShapeFill = Exclude<Fill, {
1257
1258
  fillType: 'image';
1258
1259
  } | {
@@ -2006,7 +2007,7 @@ interface XlsxRenderViewportOptions {
2006
2007
  } | null;
2007
2008
  }
2008
2009
  //#endregion
2009
- //#region dist/.types-work/xlsx-BsCgvd8W.d.ts
2010
+ //#region dist/.types-work/xlsx-Bryt4758.d.ts
2010
2011
  type ResolvedList = {
2011
2012
  kind: 'values';
2012
2013
  values: string[];
@@ -1,8 +1,8 @@
1
- import { $t as e, F as t, I as n, K as r, N as i, P as a, Qt as o, U as s, an as c, en as l, in as u, nn as d, rn as f, sn as p, tn as m } from "./line-metrics-u87yCAfV.js";
2
- import { n as h, r as g, t as _ } from "./resource-measurement-6uR3Huao.js";
1
+ import { $t as e, F as t, I as n, K as r, N as i, P as a, U as o, an as s, cn as c, en as l, in as u, nn as d, on as f, rn as p, tn as m } from "./line-metrics-BGtFM-ec.js";
2
+ import { n as h, r as g, t as _ } from "./resource-measurement-D41R-0Bl.js";
3
3
  import { t as v } from "./transfer-mIj7E7NB.js";
4
4
  //#region packages/xlsx/src/worksheet-resource-limits.ts
5
- var y = c, b = d, x = f, S = u, C = m, w = o, T = e, E = l, D = Object.freeze({
5
+ var y = f, b = p, x = u, S = s, C = d, w = e, T = l, E = m, D = Object.freeze({
6
6
  archiveEntryCount: 0,
7
7
  declaredInflatedBytes: 0,
8
8
  distinctInflatedBytes: 0,
@@ -45,7 +45,7 @@ function j(e, t, n = {}) {
45
45
  }
46
46
  function M(e, t, n, r, i, a, o) {
47
47
  let s = n === "worksheet-json" ? "serialization" : "parsing";
48
- return new p(`OOXML resource limit exceeded${t ? ` for ${t}` : ""}: ${r} ${a} > ${i}`, {
48
+ return new c(`OOXML resource limit exceeded${t ? ` for ${t}` : ""}: ${r} ${a} > ${i}`, {
49
49
  stage: s,
50
50
  violation: {
51
51
  format: "xlsx",
@@ -172,7 +172,7 @@ var z = 64 * 1024 * 1024, B = class {
172
172
  rows: 0,
173
173
  cells: 0,
174
174
  ownedUtf8Bytes: 0
175
- }, c, l = !1, u = new t({
175
+ }, l, u = !1, d = new t({
176
176
  ...r,
177
177
  maxByteCredit: z,
178
178
  coordinator: this.coordinator,
@@ -185,12 +185,12 @@ var z = 64 * 1024 * 1024, B = class {
185
185
  if (n.kind === "rows") {
186
186
  let e = A(s, O(n.rows));
187
187
  N(e, "get-worksheet-worker", void 0, this.readResourceUsage()), o.push(...n.rows), s = e;
188
- } else c = n.worksheet;
188
+ } else l = n.worksheet;
189
189
  } catch (e) {
190
- throw e instanceof p && (this.resourceFailure ??= e), e;
190
+ throw e instanceof c && (this.resourceFailure ??= e), e;
191
191
  }
192
192
  }
193
- l = t;
193
+ u = t;
194
194
  let n = v(e);
195
195
  return {
196
196
  payload: n,
@@ -201,26 +201,26 @@ var z = 64 * 1024 * 1024, B = class {
201
201
  },
202
202
  measureChunk: ({ payload: e }) => e.byteLength,
203
203
  acknowledge: () => {
204
- if (!l) return;
204
+ if (!u) return;
205
205
  let t, n;
206
206
  try {
207
207
  if (this.acceptWorksheet) {
208
- if (!c) throw Error("worksheet terminal payload is missing");
209
- c.rows = c.parseError ? [] : o;
210
- let r = c.parseError ? {
208
+ if (!l) throw Error("worksheet terminal payload is missing");
209
+ l.rows = l.parseError ? [] : o;
210
+ let r = l.parseError ? {
211
211
  rows: 0,
212
212
  cells: 0,
213
213
  ownedUtf8Bytes: 0
214
- } : s, i = k(c, r), a = this.readResourceUsage();
214
+ } : s, i = k(l, r), a = this.readResourceUsage();
215
215
  N(i, "get-worksheet-worker", void 0, a), P(i.jsonBytes, "get-worksheet-worker", void 0, a);
216
- let l = this.acceptWorksheet(e, c, i, a);
217
- typeof l == "function" ? t = l : l && ({rollback: t, commit: n} = l);
216
+ let c = this.acceptWorksheet(e, l, i, a);
217
+ typeof c == "function" ? t = c : c && ({rollback: t, commit: n} = c);
218
218
  }
219
219
  this.executeArchive((e) => e.acknowledge_sheet_cursor_terminal()), n?.();
220
220
  } catch (e) {
221
- throw t?.(), e instanceof p && (this.resourceFailure ??= e), e;
221
+ throw t?.(), e instanceof c && (this.resourceFailure ??= e), e;
222
222
  }
223
- l = !1, this.sessions.delete(r.sessionId), a();
223
+ u = !1, this.sessions.delete(r.sessionId), a();
224
224
  },
225
225
  cancel: () => {
226
226
  try {
@@ -240,7 +240,7 @@ var z = 64 * 1024 * 1024, B = class {
240
240
  }
241
241
  });
242
242
  this.sessions.set(r.sessionId, {
243
- host: u,
243
+ host: d,
244
244
  identity: r
245
245
  }), this.pendingOpens.delete(r.sessionId);
246
246
  }));
@@ -329,7 +329,7 @@ var z = 64 * 1024 * 1024, B = class {
329
329
  if (this.resourceFailure) throw this.resourceFailure;
330
330
  return e();
331
331
  })).catch((e) => {
332
- throw e instanceof p && (this.resourceFailure ??= e), e;
332
+ throw e instanceof c && (this.resourceFailure ??= e), e;
333
333
  });
334
334
  return this.operationTail = t.then(() => void 0, () => void 0), t;
335
335
  }
@@ -365,7 +365,7 @@ var z = 64 * 1024 * 1024, B = class {
365
365
  }
366
366
  readResourceUsage() {
367
367
  try {
368
- return s(this.executeArchive((e) => e.sheet_cursor_resource_usage()));
368
+ return o(this.executeArchive((e) => e.sheet_cursor_resource_usage()));
369
369
  } catch (e) {
370
370
  if (String(e).includes("worksheet cursor usage is unavailable")) return;
371
371
  throw e;