@docx-editor.dev/core 2.29.0 → 2.30.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.
Files changed (99) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +18 -13
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +46 -38
  6. package/dist/binding.js +1 -1
  7. package/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-BM3Js-6X.d.ts} +276 -227
  8. package/dist/{chunk-BCXH4BXB.js → chunk-2PV5L5NJ.js} +3 -3
  9. package/dist/chunk-5OTS2EJ7.js +7 -0
  10. package/dist/chunk-5P4223J4.cjs +27 -0
  11. package/dist/{chunk-MM5QBMTE.cjs → chunk-5RRAZMBU.cjs} +1 -1
  12. package/dist/chunk-5SPITS5F.js +18 -0
  13. package/dist/{chunk-236O4YQW.js → chunk-7ATNKARV.js} +1 -1
  14. package/dist/{chunk-6JPL6ZAS.cjs → chunk-BGCUTKWE.cjs} +5 -5
  15. package/dist/chunk-EBCXSH2W.js +3 -0
  16. package/dist/{chunk-JLVBDYVQ.cjs → chunk-ERECKTIR.cjs} +1 -1
  17. package/dist/{chunk-BY2ACZZ6.cjs → chunk-FLBEJC6X.cjs} +1 -1
  18. package/dist/{chunk-W35WTWAO.cjs → chunk-HYASLE2G.cjs} +1 -1
  19. package/dist/chunk-JC47NRJC.cjs +3 -0
  20. package/dist/{chunk-7WQ7AAHW.cjs → chunk-KJRTNY2Q.cjs} +1 -1
  21. package/dist/chunk-NKPUH3QJ.js +1 -0
  22. package/dist/chunk-PF5NJWS3.js +2 -0
  23. package/dist/chunk-PWTRJSES.cjs +18 -0
  24. package/dist/chunk-QFKGI242.cjs +30 -0
  25. package/dist/{chunk-G4HOFIKJ.js → chunk-RJCQGJR7.js} +1 -1
  26. package/dist/chunk-RPPV4S6T.cjs +4 -0
  27. package/dist/{chunk-LSZ6KPKK.js → chunk-T32MGBJS.js} +1 -1
  28. package/dist/chunk-UM26GH5B.js +30 -0
  29. package/dist/chunk-VRCZBFLH.js +27 -0
  30. package/dist/{chunk-UHHYFIDT.cjs → chunk-WF7JZ755.cjs} +1 -1
  31. package/dist/chunk-WK5X2MMA.cjs +7 -0
  32. package/dist/{chunk-RCLZXP3B.js → chunk-WPDD2Y32.js} +1 -1
  33. package/dist/chunk-YBMWBXST.cjs +2 -0
  34. package/dist/{chunk-OMCG63ZF.js → chunk-YZGUBCHP.js} +1 -1
  35. package/dist/chunk-ZOS2PM4A.js +4 -0
  36. package/dist/collaboration/replication.cjs +1 -1
  37. package/dist/collaboration/replication.d.ts +4 -4
  38. package/dist/collaboration/replication.js +1 -1
  39. package/dist/collaboration.d.ts +3 -3
  40. package/dist/contracts/document.d.ts +2 -2
  41. package/dist/contracts/editor.d.ts +8 -8
  42. package/dist/contracts/modules.d.ts +11 -11
  43. package/dist/contracts/types.d.ts +1 -1
  44. package/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-0v0Kgw1T.d.ts} +2 -2
  45. package/dist/{diagnostic-context-B8M79cfK.d.ts → diagnostic-context-CcAO4q1s.d.ts} +1 -1
  46. package/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-2Bke6H_w.d.ts} +11 -4
  47. package/dist/{document-protection-CUb55pl_.d.ts → document-protection-8eyMWIJ0.d.ts} +1 -1
  48. package/dist/{editor-CZQZmTIU.d.ts → editor-DaEJd2so.d.ts} +84 -10
  49. package/dist/editor.cjs +1 -1
  50. package/dist/editor.d.ts +31 -30
  51. package/dist/editor.js +1 -1
  52. package/dist/export.cjs +2 -2
  53. package/dist/export.d.ts +16 -13
  54. package/dist/export.js +2 -2
  55. package/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-CL9BVKZo.d.ts} +1 -1
  56. package/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
  57. package/dist/{headless-document-view-pp3q7wIh.d.ts → headless-document-view-DZQN8Bnx.d.ts} +2 -2
  58. package/dist/{image-resources-tXLQShoC.d.ts → image-resources-Bipz8toD.d.ts} +1 -1
  59. package/dist/index.cjs +1 -1
  60. package/dist/index.d.ts +24 -23
  61. package/dist/index.js +1 -1
  62. package/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-cEnVrhWg.d.ts} +3 -2
  63. package/dist/layout.cjs +1 -1
  64. package/dist/layout.d.ts +41 -38
  65. package/dist/layout.js +1 -1
  66. package/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-9FH8zAeG.d.ts} +1 -1
  67. package/dist/{omml-equation-BUbU0utM.d.ts → omml-equation-DP2WpUbK.d.ts} +13 -1
  68. package/dist/output.cjs +1 -1
  69. package/dist/output.d.ts +7 -7
  70. package/dist/output.js +1 -1
  71. package/dist/{protocol-DYzzz2ej.d.ts → protocol-CZ1uUlPO.d.ts} +2 -2
  72. package/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-CqVelc5A.d.ts} +1 -1
  73. package/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-Dr9yxFZt.d.ts} +2 -2
  74. package/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-Dc3pf3hr.d.ts} +1 -1
  75. package/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-Bz3FBAoH.d.ts} +3 -3
  76. package/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-Bx0pl6kL.d.ts} +1 -1
  77. package/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-CjcF26ZL.d.ts} +86 -61
  78. package/dist/store.cjs +1 -1
  79. package/dist/store.d.ts +17 -130
  80. package/dist/store.js +1 -1
  81. package/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-DKhdEVym.d.ts} +158 -4
  82. package/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-CwnTEVLF.d.ts} +7 -5
  83. package/dist/{types-barrel-DuC5QBNC.d.ts → types-barrel-CA0xB8kH.d.ts} +2 -2
  84. package/package.json +2 -2
  85. package/dist/chunk-6ZQP4HQ7.js +0 -3
  86. package/dist/chunk-CAJEXXVG.cjs +0 -4
  87. package/dist/chunk-CPWLFPWC.js +0 -30
  88. package/dist/chunk-D7ZMDMPX.cjs +0 -3
  89. package/dist/chunk-DOHF6FA7.cjs +0 -30
  90. package/dist/chunk-DVX32P2P.js +0 -27
  91. package/dist/chunk-E4LOMDNL.js +0 -1
  92. package/dist/chunk-EKLM7NWB.cjs +0 -7
  93. package/dist/chunk-G3K63G7P.cjs +0 -27
  94. package/dist/chunk-LQX36Z5P.js +0 -7
  95. package/dist/chunk-OSFOJTHU.cjs +0 -18
  96. package/dist/chunk-T6K2QYNZ.cjs +0 -2
  97. package/dist/chunk-TRGAVV2Y.js +0 -4
  98. package/dist/chunk-U4JZVSOE.js +0 -2
  99. package/dist/chunk-YQ5G6LC7.js +0 -18
@@ -1,13 +1,13 @@
1
- import { q as ResolvedRevisionMarkup, a as ReviewDisplayMode } from './semantic-records-DQmumPgL.js';
2
- import { t as DocAnchor, g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem, aI as SourceCrop, Y as DrawingKind, a1 as ImageWrapTarget, _ as DrawingPositionInput, Z as DrawingLocks, r as ColorValue, x as ExecErrorCode, a5 as ParagraphFormatCommand, af as Watermark, E as ExecResult, n as ContentControlFilter, o as DocRange, k as RunFormatting, p as Revision, a7 as Rect, ab as SelectionPin, ae as Unsubscribe } from './types-barrel-DuC5QBNC.js';
1
+ import { q as ResolvedRevisionMarkup, a as ReviewDisplayMode } from './semantic-records-CjcF26ZL.js';
2
+ import { t as DocAnchor, g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem, aJ as SourceCrop, Y as DrawingKind, a1 as ImageWrapTarget, _ as DrawingPositionInput, Z as DrawingLocks, r as ColorValue, x as ExecErrorCode, a5 as ParagraphFormatCommand, af as Watermark, E as ExecResult, n as ContentControlFilter, o as DocRange, k as RunFormatting, p as Revision, a7 as Rect, ab as SelectionPin, ae as Unsubscribe } from './types-barrel-CA0xB8kH.js';
3
3
  import { H as HistoryDiagnostic, V as ViewScope, b as HistoryGroup, a as EditorExecOptions, E as EditorScope } from './editor-scope-7o9xweiJ.js';
4
4
  import { DocEdits, DocQueries, DocQueryResults, ContentControlSummary } from './contracts/document.js';
5
5
  import { InteractionOutcome } from './contracts/interaction.js';
6
- import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-kR_QB845.js';
7
- import { I as ImageResourceState, S as SupportedImageMime } from './image-resources-tXLQShoC.js';
8
- import { a as DocumentProtectionState } from './document-protection-CUb55pl_.js';
6
+ import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-Dc3pf3hr.js';
7
+ import { I as ImageResourceState, S as SupportedImageMime } from './image-resources-Bipz8toD.js';
8
+ import { a as DocumentProtectionState } from './document-protection-8eyMWIJ0.js';
9
9
  import { C as CollaborationStatus } from './failure-NS2lsya4.js';
10
- import { C as CollaborationDiagnosticCode, c as CustomNodeDiagnosticCode, D as DiagnosticErrorName, F as FailureStage, B as ByteSizeBucket, b as CountBucket, f as DocumentOpenDiagnosticCode, a as DocumentPartKind, E as EditDiagnosticCode, i as ReviewDiagnosticCode, j as ReviewOperation, R as ReviewChangeKind, h as FormattingChangeKind, g as FontDiagnosticCode, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode } from './diagnostic-hints-BeVjfNOv.js';
10
+ import { C as CollaborationDiagnosticCode, c as CustomNodeDiagnosticCode, D as DiagnosticErrorName, F as FailureStage, B as ByteSizeBucket, b as CountBucket, f as DocumentOpenDiagnosticCode, a as DocumentPartKind, g as DocumentSaveDiagnosticCode, E as EditDiagnosticCode, j as ReviewDiagnosticCode, k as ReviewOperation, R as ReviewChangeKind, i as FormattingChangeKind, h as FontDiagnosticCode, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode } from './diagnostic-hints-2Bke6H_w.js';
11
11
 
12
12
  /**
13
13
  * When the review pane opens by itself.
@@ -246,6 +246,76 @@ type DocumentOpenDiagnostic = DiagnosticBase & {
246
246
  /** The role of the part that failed, such as `'header'`. Never its name. */
247
247
  readonly part?: DocumentPartKind;
248
248
  }));
249
+ /**
250
+ * A `save()` call returned the document, or failed. Reported for each call, by the editor that
251
+ * saved. A save the host does afterwards, such as an upload, is the host's to measure.
252
+ *
253
+ * @public
254
+ */
255
+ type DocumentSaveDiagnostic = DiagnosticBase & {
256
+ readonly kind: 'document.save';
257
+ } & ({
258
+ readonly outcome: 'saved';
259
+ /** Size of the saved bytes. */
260
+ readonly sizeBucket: ByteSizeBucket;
261
+ /** Milliseconds from the `save()` call to the bytes, pending edits included. */
262
+ readonly durationMs: number;
263
+ } | (DiagnosticFailureDetail & {
264
+ readonly outcome: 'rejected';
265
+ readonly code: DocumentSaveDiagnosticCode;
266
+ /** Milliseconds from the `save()` call to the failure. */
267
+ readonly durationMs: number;
268
+ }));
269
+ /**
270
+ * What an editor did over a window of use or over its whole session. Counts and milliseconds
271
+ * only: no key, position, command argument or text.
272
+ *
273
+ * @public
274
+ */
275
+ interface SessionActivity {
276
+ /**
277
+ * For `active`, milliseconds from the window's first activity to the summary. For `end`,
278
+ * milliseconds from the editor's creation to its end, idle time included.
279
+ */
280
+ readonly durationMs: number;
281
+ /**
282
+ * Milliseconds of use: the time between key presses, pointer presses and edits that are at
283
+ * most 30 seconds apart. A longer pause counts as idle.
284
+ */
285
+ readonly activeMs: number;
286
+ /**
287
+ * Edits from typing, the clipboard, drag and drop, keyboard undo, and other input that changed
288
+ * the document. Each committed change counts once: typing commits about one change per
289
+ * character, and characters typed faster than the editor paints commit together.
290
+ */
291
+ readonly inputEdits: number;
292
+ /** Editor commands, from `exec(...)` or the toolbar, that changed the document. */
293
+ readonly commandEdits: number;
294
+ /** Editing API batches that changed the document. */
295
+ readonly automationEdits: number;
296
+ }
297
+ /**
298
+ * The lifecycle and activity of one editor instance, without any content.
299
+ *
300
+ * - `start`: the editor was created.
301
+ * - `active`: a summary of one window of use. Sent after a minute of activity, when the page is
302
+ * hidden, and before `end`, if anything happened since the last summary. An idle editor sends
303
+ * none, so `active` is not a heartbeat.
304
+ * - `end`: the editor was destroyed, or the page closed. Carries totals for the whole session.
305
+ *
306
+ * Edits count changes this editor committed. Refused edits are in `edit.rejected`, and edits
307
+ * that collaborators made are not counted. Sum `active` summaries or read `end` totals, not
308
+ * both: the totals include every summary.
309
+ *
310
+ * @public
311
+ */
312
+ type SessionDiagnostic = DiagnosticBase & {
313
+ readonly kind: 'session';
314
+ } & ({
315
+ readonly phase: 'start';
316
+ } | (SessionActivity & {
317
+ readonly phase: 'active' | 'end';
318
+ }));
249
319
  /** Where a refused edit came from. @public */
250
320
  type EditRejectionOrigin = 'command' | 'input' | 'automation';
251
321
  /** An edit, a command or a tracked change was refused. @public */
@@ -364,7 +434,11 @@ interface PerformanceDiagnostic extends DiagnosticBase {
364
434
  * presses were timed and more than one in 20 took over 200 ms.
365
435
  */
366
436
  readonly code?: PerformanceDiagnosticCode;
367
- /** Milliseconds from the window's first timing to the summary. */
437
+ /**
438
+ * Milliseconds from the window's first timing to the summary, one minute or less. Idle time
439
+ * inside the window counts, so this is not active editing time. Use the `count` of
440
+ * `interaction` to measure activity.
441
+ */
368
442
  readonly windowMs: number;
369
443
  /** Pages in the document at the last paint. */
370
444
  readonly pagesBucket?: CountBucket;
@@ -398,7 +472,7 @@ interface PerformanceDiagnostic extends DiagnosticBase {
398
472
  *
399
473
  * @public
400
474
  */
401
- type EditorDiagnostic = DocumentOpenDiagnostic | EditRejectedDiagnostic | ReviewSkippedDiagnostic | FontFailedDiagnostic | HistoryDiagnosticEvent | CustomNodeDiagnosticEvent | CollaborationStatusDiagnostic | CollaborationParticipantsDiagnostic | PerformanceDiagnostic;
475
+ type EditorDiagnostic = DocumentOpenDiagnostic | EditRejectedDiagnostic | ReviewSkippedDiagnostic | FontFailedDiagnostic | HistoryDiagnosticEvent | CustomNodeDiagnosticEvent | CollaborationStatusDiagnostic | CollaborationParticipantsDiagnostic | PerformanceDiagnostic | DocumentSaveDiagnostic | SessionDiagnostic;
402
476
  /** The `kind` of every {@link EditorDiagnostic}. @public */
403
477
  type EditorDiagnosticKind = EditorDiagnostic['kind'];
404
478
 
@@ -2821,5 +2895,5 @@ interface EditorError extends Error {
2821
2895
  readonly code?: string;
2822
2896
  }
2823
2897
 
2824
- export { DIAGNOSTIC_SCHEMA_VERSION as D, validateImageCropPercent as a$, DEFAULT_REVIEW_PANE as aN, cropPercentFromCropPermille as aT, cropPercentFromPermille as aU, cropPercentFromSourceCrop as aV, cropPermilleFromCropPercent as aW, cropPermilleFromPercent as aX, resolveReviewPane as aY, reviewPaneListsItem as aZ, sourceCropFromCropPercent as a_, EditorFontError as y };
2825
- export type { HighlightHit as $, AnchorHighlightAnimation as A, EditorFormatPainterCommands as B, CanResult as C, EditorDiagnostic as E, EditorHeaderFooterCommands as F, EditorHighlights as G, EditorNoteCommands as H, EditorPosition as I, EditorQueries as J, EditorQuery as K, EditorQueryResults as L, EditorReviewHits as M, EditorSelection as N, EditorSnapshot as O, FontConfiguration as P, FontFaceRequest as Q, ReviewPaneOptions as R, FontFailedDiagnostic as S, FontSource as T, FontSourceSubstitution as U, FormatPainterLevel as V, FormatPainterMode as W, FormatPainterSurfaceState as X, FurnitureVariant as Y, HeaderFooterSlotArgs as Z, HeaderFooterState as _, EditorDiagnosticKind as a, HighlightOptions as a0, HighlightRange as a1, HighlightRect as a2, HighlightResult as a3, HistoryDiagnosticEvent as a4, HyperlinkInfo as a5, ImageContext as a6, ImageCropPercent as a7, NoteKind as a8, NotePropertiesSide as a9, TableColumnDividerResizeTarget as aA, TableColumnOccurrenceTarget as aB, TableContext as aC, TableRightEdgeResizeTarget as aD, TableRowOccurrenceTarget as aE, TextMatch as aF, TimingSummary as aG, TrackedChangeFilterMode as aH, TrackedChangePredicate as aI, ZoomFitTarget as aJ, ZoomMode as aK, ReviewPaneOverflow as aL, CommentMarkerStyle as aM, ImageCropPermille as aO, ResolvedReviewPane as aP, ReviewPaneItemFields as aQ, ReviewPaneOpening as aR, RevisionDisplay as aS, NotePropertiesState as aa, PageSetup as ab, PerformanceDiagnostic as ac, ResolveReviewChangesOptions as ad, ResolvedNoteNumbering as ae, ReviewActivationOptions as af, ReviewChangesAttribution as ag, ReviewCommentPlacement as ah, ReviewCustomPlacement as ai, ReviewItemHit as aj, ReviewItemPlacement as ak, ReviewItemPlacementBase as al, ReviewItemQuery as am, ReviewItemRevealEvent as an, ReviewItemRevealSource as ao, ReviewRevisionPlacement as ap, ReviewSkippedDiagnostic as aq, ScrollPlacement as ar, ScrollToAnchorOptions as as, SelectedImageState as at, SetReviewChangesAuthorOptions as au, TableBorderEdgeTarget as av, TableBorderSpec as aw, TableBorderStyle as ax, TableBorderTarget as ay, TableCellVerticalAlignment as az, EditorCommand as b, AnchorHighlightOptions as c, AuthoredNoteNumbering as d, ClearAnchorHighlightOptions as e, CollaborationParticipantsDiagnostic as f, CollaborationStatusDiagnostic as g, CustomNodeDiagnosticEvent as h, DiagnosticBase as i, DiagnosticFailureDetail as j, DocumentChange as k, DocumentEditingMode as l, DocumentHandle as m, DocumentOpenDiagnostic as n, DocumentShape as o, DocumentSource as p, EditRejectedDiagnostic as q, EditRejectionOrigin as r, Editor as s, EditorAnchorNavigation as t, EditorCommandShape as u, EditorCommands as v, EditorError as w, EditorEvents as x, EditorFontErrorCode as z };
2898
+ export { DIAGNOSTIC_SCHEMA_VERSION as D, resolveReviewPane as a$, DEFAULT_REVIEW_PANE as aQ, cropPercentFromCropPermille as aW, cropPercentFromPermille as aX, cropPercentFromSourceCrop as aY, cropPermilleFromCropPercent as aZ, cropPermilleFromPercent as a_, reviewPaneListsItem as b0, sourceCropFromCropPercent as b1, validateImageCropPercent as b2, EditorFontError as z };
2899
+ export type { HeaderFooterState as $, AnchorHighlightAnimation as A, EditorFontErrorCode as B, CanResult as C, EditorDiagnostic as E, EditorFormatPainterCommands as F, EditorHeaderFooterCommands as G, EditorHighlights as H, EditorNoteCommands as I, EditorPosition as J, EditorQueries as K, EditorQuery as L, EditorQueryResults as M, EditorReviewHits as N, EditorSelection as O, EditorSnapshot as P, FontConfiguration as Q, ReviewPaneOptions as R, FontFaceRequest as S, FontFailedDiagnostic as T, FontSource as U, FontSourceSubstitution as V, FormatPainterLevel as W, FormatPainterMode as X, FormatPainterSurfaceState as Y, FurnitureVariant as Z, HeaderFooterSlotArgs as _, EditorDiagnosticKind as a, HighlightHit as a0, HighlightOptions as a1, HighlightRange as a2, HighlightRect as a3, HighlightResult as a4, HistoryDiagnosticEvent as a5, HyperlinkInfo as a6, ImageContext as a7, ImageCropPercent as a8, NoteKind as a9, TableBorderStyle as aA, TableBorderTarget as aB, TableCellVerticalAlignment as aC, TableColumnDividerResizeTarget as aD, TableColumnOccurrenceTarget as aE, TableContext as aF, TableRightEdgeResizeTarget as aG, TableRowOccurrenceTarget as aH, TextMatch as aI, TimingSummary as aJ, TrackedChangeFilterMode as aK, TrackedChangePredicate as aL, ZoomFitTarget as aM, ZoomMode as aN, ReviewPaneOverflow as aO, CommentMarkerStyle as aP, ImageCropPermille as aR, ResolvedReviewPane as aS, ReviewPaneItemFields as aT, ReviewPaneOpening as aU, RevisionDisplay as aV, NotePropertiesSide as aa, NotePropertiesState as ab, PageSetup as ac, PerformanceDiagnostic as ad, ResolveReviewChangesOptions as ae, ResolvedNoteNumbering as af, ReviewActivationOptions as ag, ReviewChangesAttribution as ah, ReviewCommentPlacement as ai, ReviewCustomPlacement as aj, ReviewItemHit as ak, ReviewItemPlacement as al, ReviewItemPlacementBase as am, ReviewItemQuery as an, ReviewItemRevealEvent as ao, ReviewItemRevealSource as ap, ReviewRevisionPlacement as aq, ReviewSkippedDiagnostic as ar, ScrollPlacement as as, ScrollToAnchorOptions as at, SelectedImageState as au, SessionActivity as av, SessionDiagnostic as aw, SetReviewChangesAuthorOptions as ax, TableBorderEdgeTarget as ay, TableBorderSpec as az, EditorCommand as b, AnchorHighlightOptions as c, AuthoredNoteNumbering as d, ClearAnchorHighlightOptions as e, CollaborationParticipantsDiagnostic as f, CollaborationStatusDiagnostic as g, CustomNodeDiagnosticEvent as h, DiagnosticBase as i, DiagnosticFailureDetail as j, DocumentChange as k, DocumentEditingMode as l, DocumentHandle as m, DocumentOpenDiagnostic as n, DocumentSaveDiagnostic as o, DocumentShape as p, DocumentSource as q, EditRejectedDiagnostic as r, EditRejectionOrigin as s, Editor as t, EditorAnchorNavigation as u, EditorCommandShape as v, EditorCommands as w, EditorError as x, EditorEvents as y };
package/dist/editor.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkG3K63G7P_cjs=require('./chunk-G3K63G7P.cjs'),chunkV3N4SOAK_cjs=require('./chunk-V3N4SOAK.cjs');require('./chunk-CAJEXXVG.cjs');var chunkJLVBDYVQ_cjs=require('./chunk-JLVBDYVQ.cjs'),chunkD7ZMDMPX_cjs=require('./chunk-D7ZMDMPX.cjs');require('./chunk-EKLM7NWB.cjs'),require('./chunk-W35WTWAO.cjs');var chunkDOHF6FA7_cjs=require('./chunk-DOHF6FA7.cjs');require('./chunk-6JPL6ZAS.cjs'),require('./chunk-BY2ACZZ6.cjs'),require('./chunk-7WQ7AAHW.cjs'),require('./chunk-MM5QBMTE.cjs'),require('./chunk-T6K2QYNZ.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-UHHYFIDT.cjs');var chunkOSFOJTHU_cjs=require('./chunk-OSFOJTHU.cjs');require('./chunk-UKVVUHZL.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.zb}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Fb}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ta}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Xa}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkG3K63G7P_cjs._a}});Object.defineProperty(exports,"CONTENT_CONTROL_PICTURE_ACCEPT",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.db}});Object.defineProperty(exports,"ChromeExportError",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.qc}});Object.defineProperty(exports,"ChromePrintError",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.sc}});Object.defineProperty(exports,"DEFAULT_REVIEW_PANE",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.c}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.$}});Object.defineProperty(exports,"DocumentRefreshError",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.hc}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.N}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ab}});Object.defineProperty(exports,"HIGHLIGHT_REFRESH_MS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.jc}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.W}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.X}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.f}});Object.defineProperty(exports,"NO_MIXED_FIELDS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.$b}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.o}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.n}});Object.defineProperty(exports,"REVIEW_MARKERS_GUTTER_PX",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.wb}});Object.defineProperty(exports,"SEARCH_DEBOUNCE_MS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.lc}});Object.defineProperty(exports,"SEARCH_HIGHLIGHT_PRIORITY",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.oc}});Object.defineProperty(exports,"SEARCH_HIGHLIGHT_SET",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.nc}});Object.defineProperty(exports,"SEARCH_MATCH_LIMIT",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.mc}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.u}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.t}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.fa}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ea}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ga}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.aa}});Object.defineProperty(exports,"TAB_ALIGNMENT_LABELS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Xb}});Object.defineProperty(exports,"TOOLBAR_COLLAPSE_ORDER",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.za}});Object.defineProperty(exports,"TOOLBAR_OVERFLOW_HYSTERESIS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ba}});Object.defineProperty(exports,"TOOLBAR_PANEL_EDGE_MARGIN",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Fa}});Object.defineProperty(exports,"TOOLBAR_PINNED_GROUPS",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Aa}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.s}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.r}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.yb}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.xb}});Object.defineProperty(exports,"alignmentAfterDirectionChange",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.dc}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ha}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.B}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.A}});Object.defineProperty(exports,"arrangeToolbarGroups",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ea}});Object.defineProperty(exports,"barRoomWidth",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Pa}});Object.defineProperty(exports,"bindHistoryGroup",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.gc}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.g}});Object.defineProperty(exports,"calendarDateForKey",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.lb}});Object.defineProperty(exports,"calendarDateFromText",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.nb}});Object.defineProperty(exports,"calendarDateText",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.mb}});Object.defineProperty(exports,"calendarMonth",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.jb}});Object.defineProperty(exports,"calendarMonthNames",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ob}});Object.defineProperty(exports,"calendarMonthTitle",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.hb}});Object.defineProperty(exports,"calendarWeekdays",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ib}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.U}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.T}});Object.defineProperty(exports,"changedFields",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.cc}});Object.defineProperty(exports,"chordLetter",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Sa}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Za}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ya}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.la}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ua}});Object.defineProperty(exports,"chromeSlotIsToggle",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ra}});Object.defineProperty(exports,"clipboardDropLandsText",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.i}});Object.defineProperty(exports,"clipboardPasteLandsContent",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.h}});Object.defineProperty(exports,"collapseOrder",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Da}});Object.defineProperty(exports,"collapsibleGroupCost",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.La}});Object.defineProperty(exports,"commandExecOptions",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.y}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ma}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.oa}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.na}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Rb}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.R}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Q}});Object.defineProperty(exports,"contentControlPopupKeyDown",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.bb}});Object.defineProperty(exports,"contentControlPopupOpener",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.cb}});Object.defineProperty(exports,"controlsOverflow",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Qa}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Gb}});Object.defineProperty(exports,"createContentControlListNavigation",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.pb}});Object.defineProperty(exports,"createDocumentRefresh",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ic}});Object.defineProperty(exports,"createDocumentSearch",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.pc}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Eb}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.l}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Sb}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.L}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.J}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.G}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.K}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.I}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Nb}});Object.defineProperty(exports,"customFonts",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.m}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Va}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ba}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.x}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ya}});Object.defineProperty(exports,"editorInstanceScope",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Hb}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.P}});Object.defineProperty(exports,"equationAtPosition",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.qb}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.V}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Tb}});Object.defineProperty(exports,"firstDayOfWeek",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.gb}});Object.defineProperty(exports,"formatInches",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Vb}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Wa}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.p}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.v}});Object.defineProperty(exports,"hasOpenNestedPopup",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Jb}});Object.defineProperty(exports,"inchesToTwips",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Wb}});Object.defineProperty(exports,"isChromePrintShortcut",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.tc}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Z}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ca}});Object.defineProperty(exports,"isoDateOf",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.eb}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Mb}});Object.defineProperty(exports,"listenForPopupEscape",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ib}});Object.defineProperty(exports,"listenForPopupFocusLeave",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Kb}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.k}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.D}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.E}});Object.defineProperty(exports,"mixedFieldsOf",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ac}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.sb}});Object.defineProperty(exports,"observeContentControlPopup",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ab}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ob}});Object.defineProperty(exports,"overlayHostOrigin",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Pb}});Object.defineProperty(exports,"parseIsoDate",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.fb}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.j}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.O}});Object.defineProperty(exports,"positionContentControlPopup",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.$a}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ia}});Object.defineProperty(exports,"readAvailableWidth",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ra}});Object.defineProperty(exports,"readColumnGap",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Oa}});Object.defineProperty(exports,"readInlineMargins",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Na}});Object.defineProperty(exports,"reportAutomationException",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.vb}});Object.defineProperty(exports,"reportAutomationRefusal",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ub}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Qb}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.F}});Object.defineProperty(exports,"resolveReviewPane",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.d}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.C}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Bb}});Object.defineProperty(exports,"reviewPaneEntitledZoom",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Db}});Object.defineProperty(exports,"reviewPaneListsItem",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.e}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.q}});Object.defineProperty(exports,"runChromeExport",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.rc}});Object.defineProperty(exports,"runChromePrint",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.uc}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.va}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ta}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.xa}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ua}});Object.defineProperty(exports,"sameOverflow",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ha}});Object.defineProperty(exports,"sameTabStops",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.bc}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Cb}});Object.defineProperty(exports,"seedFields",{enumerable:true,get:function(){return chunkG3K63G7P_cjs._b}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Y}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.S}});Object.defineProperty(exports,"separatorLeadingCost",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ka}});Object.defineProperty(exports,"shiftMonth",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.kb}});Object.defineProperty(exports,"signedFirstLineOf",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Zb}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.w}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.H}});Object.defineProperty(exports,"specialOf",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Yb}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.rb}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Lb}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ka}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ja}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.pa}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.da}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkG3K63G7P_cjs._}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.wa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.qa}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.sa}});Object.defineProperty(exports,"toolbarGroupPriority",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ca}});Object.defineProperty(exports,"toolbarOverflowGroups",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ia}});Object.defineProperty(exports,"toolbarPanelPlacement",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ga}});Object.defineProperty(exports,"toolbarPopupLeft",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ja}});Object.defineProperty(exports,"trailingGapCost",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ma}});Object.defineProperty(exports,"trapTabWithin",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.fc}});Object.defineProperty(exports,"twipsToInches",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.Ub}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.M}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.z}});Object.defineProperty(exports,"watchHighlights",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.kc}});Object.defineProperty(exports,"withTabStop",{enumerable:true,get:function(){return chunkG3K63G7P_cjs.ec}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunkV3N4SOAK_cjs.a}});Object.defineProperty(exports,"DEFAULT_FONT",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.d}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.i}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.h}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.c}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.e}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.f}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.n}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.j}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkJLVBDYVQ_cjs.k}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkD7ZMDMPX_cjs.s}});Object.defineProperty(exports,"DEFAULT_REVISION_MARKUP",{enumerable:true,get:function(){return chunkDOHF6FA7_cjs.Ua}});Object.defineProperty(exports,"REVISION_MARKUP_COLORS",{enumerable:true,get:function(){return chunkDOHF6FA7_cjs.Ta}});Object.defineProperty(exports,"resolveRevisionMarkup",{enumerable:true,get:function(){return chunkDOHF6FA7_cjs.Va}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.r}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.Mk}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.Nk}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.Ed}});Object.defineProperty(exports,"TEXT_FORM_FORMATS",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.Qi}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.Pk}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.Ok}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.s}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.he}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.de}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.Lk}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.ie}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkOSFOJTHU_cjs.Qk}});
1
+ 'use strict';var chunk5P4223J4_cjs=require('./chunk-5P4223J4.cjs'),chunkV3N4SOAK_cjs=require('./chunk-V3N4SOAK.cjs');require('./chunk-RPPV4S6T.cjs');var chunkERECKTIR_cjs=require('./chunk-ERECKTIR.cjs'),chunkJC47NRJC_cjs=require('./chunk-JC47NRJC.cjs');require('./chunk-WK5X2MMA.cjs'),require('./chunk-HYASLE2G.cjs');var chunkQFKGI242_cjs=require('./chunk-QFKGI242.cjs');require('./chunk-BGCUTKWE.cjs'),require('./chunk-FLBEJC6X.cjs'),require('./chunk-KJRTNY2Q.cjs'),require('./chunk-5RRAZMBU.cjs'),require('./chunk-YBMWBXST.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-WF7JZ755.cjs');var chunkPWTRJSES_cjs=require('./chunk-PWTRJSES.cjs');require('./chunk-UKVVUHZL.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunk5P4223J4_cjs.zb}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Fb}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ta}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Xa}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunk5P4223J4_cjs._a}});Object.defineProperty(exports,"CONTENT_CONTROL_PICTURE_ACCEPT",{enumerable:true,get:function(){return chunk5P4223J4_cjs.db}});Object.defineProperty(exports,"ChromeExportError",{enumerable:true,get:function(){return chunk5P4223J4_cjs.qc}});Object.defineProperty(exports,"ChromePrintError",{enumerable:true,get:function(){return chunk5P4223J4_cjs.sc}});Object.defineProperty(exports,"DEFAULT_REVIEW_PANE",{enumerable:true,get:function(){return chunk5P4223J4_cjs.c}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunk5P4223J4_cjs.$}});Object.defineProperty(exports,"DocumentRefreshError",{enumerable:true,get:function(){return chunk5P4223J4_cjs.hc}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunk5P4223J4_cjs.N}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ab}});Object.defineProperty(exports,"HIGHLIGHT_REFRESH_MS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.jc}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunk5P4223J4_cjs.W}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunk5P4223J4_cjs.X}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunk5P4223J4_cjs.f}});Object.defineProperty(exports,"NO_MIXED_FIELDS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.$b}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunk5P4223J4_cjs.o}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunk5P4223J4_cjs.n}});Object.defineProperty(exports,"REVIEW_MARKERS_GUTTER_PX",{enumerable:true,get:function(){return chunk5P4223J4_cjs.wb}});Object.defineProperty(exports,"SEARCH_DEBOUNCE_MS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.lc}});Object.defineProperty(exports,"SEARCH_HIGHLIGHT_PRIORITY",{enumerable:true,get:function(){return chunk5P4223J4_cjs.oc}});Object.defineProperty(exports,"SEARCH_HIGHLIGHT_SET",{enumerable:true,get:function(){return chunk5P4223J4_cjs.nc}});Object.defineProperty(exports,"SEARCH_MATCH_LIMIT",{enumerable:true,get:function(){return chunk5P4223J4_cjs.mc}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunk5P4223J4_cjs.u}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunk5P4223J4_cjs.t}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.fa}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ea}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ga}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.aa}});Object.defineProperty(exports,"TAB_ALIGNMENT_LABELS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Xb}});Object.defineProperty(exports,"TOOLBAR_COLLAPSE_ORDER",{enumerable:true,get:function(){return chunk5P4223J4_cjs.za}});Object.defineProperty(exports,"TOOLBAR_OVERFLOW_HYSTERESIS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ba}});Object.defineProperty(exports,"TOOLBAR_PANEL_EDGE_MARGIN",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Fa}});Object.defineProperty(exports,"TOOLBAR_PINNED_GROUPS",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Aa}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunk5P4223J4_cjs.s}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunk5P4223J4_cjs.r}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunk5P4223J4_cjs.yb}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunk5P4223J4_cjs.xb}});Object.defineProperty(exports,"alignmentAfterDirectionChange",{enumerable:true,get:function(){return chunk5P4223J4_cjs.dc}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ha}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunk5P4223J4_cjs.B}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunk5P4223J4_cjs.A}});Object.defineProperty(exports,"arrangeToolbarGroups",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ea}});Object.defineProperty(exports,"barRoomWidth",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Pa}});Object.defineProperty(exports,"bindHistoryGroup",{enumerable:true,get:function(){return chunk5P4223J4_cjs.gc}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunk5P4223J4_cjs.g}});Object.defineProperty(exports,"calendarDateForKey",{enumerable:true,get:function(){return chunk5P4223J4_cjs.lb}});Object.defineProperty(exports,"calendarDateFromText",{enumerable:true,get:function(){return chunk5P4223J4_cjs.nb}});Object.defineProperty(exports,"calendarDateText",{enumerable:true,get:function(){return chunk5P4223J4_cjs.mb}});Object.defineProperty(exports,"calendarMonth",{enumerable:true,get:function(){return chunk5P4223J4_cjs.jb}});Object.defineProperty(exports,"calendarMonthNames",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ob}});Object.defineProperty(exports,"calendarMonthTitle",{enumerable:true,get:function(){return chunk5P4223J4_cjs.hb}});Object.defineProperty(exports,"calendarWeekdays",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ib}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunk5P4223J4_cjs.U}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunk5P4223J4_cjs.T}});Object.defineProperty(exports,"changedFields",{enumerable:true,get:function(){return chunk5P4223J4_cjs.cc}});Object.defineProperty(exports,"chordLetter",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Sa}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Za}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ya}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunk5P4223J4_cjs.la}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ua}});Object.defineProperty(exports,"chromeSlotIsToggle",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ra}});Object.defineProperty(exports,"clipboardDropLandsText",{enumerable:true,get:function(){return chunk5P4223J4_cjs.i}});Object.defineProperty(exports,"clipboardPasteLandsContent",{enumerable:true,get:function(){return chunk5P4223J4_cjs.h}});Object.defineProperty(exports,"collapseOrder",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Da}});Object.defineProperty(exports,"collapsibleGroupCost",{enumerable:true,get:function(){return chunk5P4223J4_cjs.La}});Object.defineProperty(exports,"commandExecOptions",{enumerable:true,get:function(){return chunk5P4223J4_cjs.y}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ma}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunk5P4223J4_cjs.oa}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunk5P4223J4_cjs.na}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Rb}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunk5P4223J4_cjs.R}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Q}});Object.defineProperty(exports,"contentControlPopupKeyDown",{enumerable:true,get:function(){return chunk5P4223J4_cjs.bb}});Object.defineProperty(exports,"contentControlPopupOpener",{enumerable:true,get:function(){return chunk5P4223J4_cjs.cb}});Object.defineProperty(exports,"controlsOverflow",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Qa}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Gb}});Object.defineProperty(exports,"createContentControlListNavigation",{enumerable:true,get:function(){return chunk5P4223J4_cjs.pb}});Object.defineProperty(exports,"createDocumentRefresh",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ic}});Object.defineProperty(exports,"createDocumentSearch",{enumerable:true,get:function(){return chunk5P4223J4_cjs.pc}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Eb}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunk5P4223J4_cjs.l}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Sb}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunk5P4223J4_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunk5P4223J4_cjs.L}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunk5P4223J4_cjs.J}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunk5P4223J4_cjs.G}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunk5P4223J4_cjs.K}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunk5P4223J4_cjs.I}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Nb}});Object.defineProperty(exports,"customFonts",{enumerable:true,get:function(){return chunk5P4223J4_cjs.m}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Va}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ba}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunk5P4223J4_cjs.x}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ya}});Object.defineProperty(exports,"editorInstanceScope",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Hb}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunk5P4223J4_cjs.P}});Object.defineProperty(exports,"equationAtPosition",{enumerable:true,get:function(){return chunk5P4223J4_cjs.qb}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunk5P4223J4_cjs.V}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Tb}});Object.defineProperty(exports,"firstDayOfWeek",{enumerable:true,get:function(){return chunk5P4223J4_cjs.gb}});Object.defineProperty(exports,"formatInches",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Vb}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Wa}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunk5P4223J4_cjs.p}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunk5P4223J4_cjs.v}});Object.defineProperty(exports,"hasOpenNestedPopup",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Jb}});Object.defineProperty(exports,"inchesToTwips",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Wb}});Object.defineProperty(exports,"isChromePrintShortcut",{enumerable:true,get:function(){return chunk5P4223J4_cjs.tc}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Z}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ca}});Object.defineProperty(exports,"isoDateOf",{enumerable:true,get:function(){return chunk5P4223J4_cjs.eb}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Mb}});Object.defineProperty(exports,"listenForPopupEscape",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ib}});Object.defineProperty(exports,"listenForPopupFocusLeave",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Kb}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunk5P4223J4_cjs.k}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunk5P4223J4_cjs.D}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunk5P4223J4_cjs.E}});Object.defineProperty(exports,"mixedFieldsOf",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ac}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunk5P4223J4_cjs.sb}});Object.defineProperty(exports,"observeContentControlPopup",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ab}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ob}});Object.defineProperty(exports,"overlayHostOrigin",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Pb}});Object.defineProperty(exports,"parseIsoDate",{enumerable:true,get:function(){return chunk5P4223J4_cjs.fb}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunk5P4223J4_cjs.j}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunk5P4223J4_cjs.O}});Object.defineProperty(exports,"positionContentControlPopup",{enumerable:true,get:function(){return chunk5P4223J4_cjs.$a}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ia}});Object.defineProperty(exports,"readAvailableWidth",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ra}});Object.defineProperty(exports,"readColumnGap",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Oa}});Object.defineProperty(exports,"readInlineMargins",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Na}});Object.defineProperty(exports,"reportAutomationException",{enumerable:true,get:function(){return chunk5P4223J4_cjs.vb}});Object.defineProperty(exports,"reportAutomationRefusal",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ub}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Qb}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunk5P4223J4_cjs.F}});Object.defineProperty(exports,"resolveReviewPane",{enumerable:true,get:function(){return chunk5P4223J4_cjs.d}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunk5P4223J4_cjs.C}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Bb}});Object.defineProperty(exports,"reviewPaneEntitledZoom",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Db}});Object.defineProperty(exports,"reviewPaneListsItem",{enumerable:true,get:function(){return chunk5P4223J4_cjs.e}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunk5P4223J4_cjs.q}});Object.defineProperty(exports,"runChromeExport",{enumerable:true,get:function(){return chunk5P4223J4_cjs.rc}});Object.defineProperty(exports,"runChromePrint",{enumerable:true,get:function(){return chunk5P4223J4_cjs.uc}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunk5P4223J4_cjs.va}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ta}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunk5P4223J4_cjs.xa}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ua}});Object.defineProperty(exports,"sameOverflow",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ha}});Object.defineProperty(exports,"sameTabStops",{enumerable:true,get:function(){return chunk5P4223J4_cjs.bc}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Cb}});Object.defineProperty(exports,"seedFields",{enumerable:true,get:function(){return chunk5P4223J4_cjs._b}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Y}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunk5P4223J4_cjs.S}});Object.defineProperty(exports,"separatorLeadingCost",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ka}});Object.defineProperty(exports,"shiftMonth",{enumerable:true,get:function(){return chunk5P4223J4_cjs.kb}});Object.defineProperty(exports,"signedFirstLineOf",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Zb}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunk5P4223J4_cjs.w}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunk5P4223J4_cjs.H}});Object.defineProperty(exports,"specialOf",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Yb}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunk5P4223J4_cjs.rb}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Lb}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ka}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ja}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunk5P4223J4_cjs.pa}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunk5P4223J4_cjs.da}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunk5P4223J4_cjs._}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunk5P4223J4_cjs.wa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunk5P4223J4_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunk5P4223J4_cjs.qa}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunk5P4223J4_cjs.sa}});Object.defineProperty(exports,"toolbarGroupPriority",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ca}});Object.defineProperty(exports,"toolbarOverflowGroups",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ia}});Object.defineProperty(exports,"toolbarPanelPlacement",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ga}});Object.defineProperty(exports,"toolbarPopupLeft",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ja}});Object.defineProperty(exports,"trailingGapCost",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ma}});Object.defineProperty(exports,"trapTabWithin",{enumerable:true,get:function(){return chunk5P4223J4_cjs.fc}});Object.defineProperty(exports,"twipsToInches",{enumerable:true,get:function(){return chunk5P4223J4_cjs.Ub}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunk5P4223J4_cjs.M}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunk5P4223J4_cjs.z}});Object.defineProperty(exports,"watchHighlights",{enumerable:true,get:function(){return chunk5P4223J4_cjs.kc}});Object.defineProperty(exports,"withTabStop",{enumerable:true,get:function(){return chunk5P4223J4_cjs.ec}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunkV3N4SOAK_cjs.a}});Object.defineProperty(exports,"DEFAULT_FONT",{enumerable:true,get:function(){return chunkERECKTIR_cjs.d}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkERECKTIR_cjs.i}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkERECKTIR_cjs.h}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkERECKTIR_cjs.c}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkERECKTIR_cjs.e}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkERECKTIR_cjs.f}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkERECKTIR_cjs.n}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkERECKTIR_cjs.j}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkERECKTIR_cjs.k}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkJC47NRJC_cjs.u}});Object.defineProperty(exports,"DEFAULT_REVISION_MARKUP",{enumerable:true,get:function(){return chunkQFKGI242_cjs.Ua}});Object.defineProperty(exports,"REVISION_MARKUP_COLORS",{enumerable:true,get:function(){return chunkQFKGI242_cjs.Ta}});Object.defineProperty(exports,"resolveRevisionMarkup",{enumerable:true,get:function(){return chunkQFKGI242_cjs.Va}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.r}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.Nk}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.Ok}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.Ed}});Object.defineProperty(exports,"TEXT_FORM_FORMATS",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.Qi}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.Qk}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.Pk}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.s}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.he}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.de}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.Mk}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.ie}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkPWTRJSES_cjs.Rk}});
package/dist/editor.d.ts CHANGED
@@ -9,43 +9,44 @@
9
9
  * @packageDocumentation
10
10
  * @public
11
11
  */
12
- export { F as FieldResultsMode } from './tree-package-store-CovjNARF.js';
13
- import { O as OoxmlPart, aJ as TreeDocColorValue, r as ColorValue, _ as DrawingPositionInput, A as ParagraphTabStop } from './types-barrel-DuC5QBNC.js';
14
- export { aK as IMAGE_WRAP_TARGETS, a1 as ImageWrapTarget, z as ParagraphFlags, R as ReviewModelInput, aL as TEXT_FORM_FORMATS } from './types-barrel-DuC5QBNC.js';
15
- export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, c as ImageDecodePort, b as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-tXLQShoC.js';
12
+ export { C as ContentLockPolicy, F as FieldResultsMode } from './tree-package-store-DKhdEVym.js';
13
+ import { O as OoxmlPart, aK as TreeDocColorValue, r as ColorValue, _ as DrawingPositionInput, A as ParagraphTabStop } from './types-barrel-CA0xB8kH.js';
14
+ export { aL as IMAGE_WRAP_TARGETS, a1 as ImageWrapTarget, z as ParagraphFlags, R as ReviewModelInput, aM as TEXT_FORM_FORMATS } from './types-barrel-CA0xB8kH.js';
15
+ export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, c as ImageDecodePort, b as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-Bipz8toD.js';
16
+ import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-CwnTEVLF.js';
17
+ export { a as TreeApplyResult } from './tree-session-contract-CwnTEVLF.js';
16
18
  export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, RevisionMarkupDialog, RevisionMarkupDialogHost, resolveEditorModules } from './contracts/modules.js';
17
- import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-CZVAGl51.js';
18
- export { a as TreeApplyResult } from './tree-session-contract-CZVAGl51.js';
19
- import { P as FontConfiguration, y as EditorFontError, O as EditorSnapshot, b as EditorCommand, C as CanResult, aK as ZoomMode, aL as ReviewPaneOverflow, e as ClearAnchorHighlightOptions, c as AnchorHighlightOptions, as as ScrollToAnchorOptions, ar as ScrollPlacement, A as AnchorHighlightAnimation, a1 as HighlightRange, s as Editor, a3 as HighlightResult, a0 as HighlightOptions, aF as TextMatch } from './editor-CZQZmTIU.js';
20
- export { aM as CommentMarkerStyle, aN as DEFAULT_REVIEW_PANE, $ as HighlightHit, a2 as HighlightRect, a6 as ImageContext, a7 as ImageCropPercent, aO as ImageCropPermille, aP as ResolvedReviewPane, aj as ReviewItemHit, aQ as ReviewPaneItemFields, aR as ReviewPaneOpening, R as ReviewPaneOptions, aS as RevisionDisplay, at as SelectedImageState, aH as TrackedChangeFilterMode, aI as TrackedChangePredicate, aT as cropPercentFromCropPermille, aU as cropPercentFromPermille, aV as cropPercentFromSourceCrop, aW as cropPermilleFromCropPercent, aX as cropPermilleFromPercent, aY as resolveReviewPane, aZ as reviewPaneListsItem, a_ as sourceCropFromCropPercent, a$ as validateImageCropPercent } from './editor-CZQZmTIU.js';
21
- import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-BD-dF_rn.js';
22
- export { d as disposeLayoutShaping } from './layout-shaping-BD-dF_rn.js';
23
- export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, F as FONT_RESOLVER_BRAND, a as FONT_RESOLVER_MARK_KEY, b as FontConfigurationBase, c as FontConfigurationFragment, d as FontOrigin, e as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, m as MAX_RESOLVER_FAMILIES, M as MarkedFontResolver, W as WORD_DEFAULT_FONT, i as composeFontConfiguration, j as composeFontOrigins, k as defineFontResolver, l as isFontResolver } from './font-resolver-lSBLirLR.js';
24
- import { V as PaginatedSurfaceOptions, W as OpenPaginatedResult, X as PaginatedSurface, Y as TableCommandPlan, s as DocxEditorInstance } from './chrome-print-CAs51cpq.js';
25
- export { Z as AnchorFrameOrigin, C as CHROME_GROUPS, a as CHROME_MENUS, _ as CHROME_UNAVAILABLE_KEY, $ as ChromeControl, a0 as ChromeControlId, a1 as ChromeControlState, b as ChromeExportError, c as ChromeExportFormat, d as ChromeExportHandlers, e as ChromeExportResult, a2 as ChromeExportView, a3 as ChromeGroup, a4 as ChromeGroupId, f as ChromeMenu, g as ChromeMenuEntry, h as ChromeMenuId, i as ChromeMenuItemEntry, j as ChromeMenuSeparatorEntry, k as ChromeMenuSubmenuEntry, l as ChromePrintError, m as ChromePrintErrorCode, n as ChromePrintJob, o as ChromePrintOptions, p as ChromeSlotId, a5 as ContentControlWidgetChromeHandlers, a6 as ContentControlWidgetSession, q as CustomFontsOptions, r as CustomFontsResolver, a7 as DEFAULT_TABLE_CHROME_DRAFT, D as DocxEditorConfig, a8 as DrawingSelectionIntent, a9 as EMU_PER_POINT, aa as EditorCommandExecute, ab as EquationActivation, ac as EquationChromeHandlers, ad as EquationOps, ae as FinalizedImageOverlayInteraction, F as FontLoadFailure, t as FontLoadFailureReason, u as FontMeasurementState, v as FontUrlSource, H as HistoryGroupBinding, w as HistoryGroupBindingOptions, x as HyperlinkActivation, y as HyperlinkChromeHandlers, af as HyperlinkOps, ag as IMAGE_OVERLAY_NUDGE_PT, ah as IMAGE_OVERLAY_NUDGE_SHIFT_PT, ai as ImageInteractionSession, aj as ImageOverlayScrollPort, ak as ImageResizeHandle, al as ImageResizeResult, am as InvalidTextFormFieldChromeHandlers, an as InvalidTextFormFieldSession, L as LoadFontsRequest, z as LoadFontsResult, ao as OpeningIndicatorHost, ap as OverlayFrameRect, aq as PaginatedSurfaceState, ar as ParagraphPropertyEdit, as as PopupChromeRegistrationOptions, at as RemoteCaretLabelAnchor, au as RemoteCaretLabelHost, av as ReviewWriteIntent, aw as RunTableChromeCommandResult, ax as SectionAnchor, ay as SectionBreakInsertType, az as SelectedDrawingOverlayTarget, aA as SurfaceEquation, aB as SurfaceFormatting, S as SurfaceHyperlink, aC as SurfaceInsertImageInput, aD as SurfaceNavigation, aE as SurfaceOverlayCoordinates, aF as SurfaceParagraphFormat, aG as TABLE_BORDER_STYLE_OPTIONS, aH as TABLE_BORDER_TARGET_OPTIONS, aI as TABLE_BORDER_WIDTH_OPTIONS, aJ as TABLE_CHROME_SLOT_IDS, aK as TableBorderStyleOption, aL as TableBorderTargetOption, aM as TableBorderTargetValue, aN as TableBorderWidthOption, aO as TableChromeDraft, aP as TableChromePick, aQ as TableChromeSlotId, aR as TableInteractionLabelKey, aS as TextFormFieldChromeHandlers, aT as TextFormFieldDialogSession, T as ToolbarCommandState, aU as ToolbarSlotValue, aV as ToolbarValueMap, aW as ToolbarValueSlot, aX as applyTableChromePick, A as bindHistoryGroup, B as blankDocumentBytes, aY as canExecuteImageCommand, aZ as captureImageMutationPreconditions, a_ as chromeControlCount, E as chromeMenuSlots, a$ as chromeProbeForSlot, b0 as chromeSlotId, b1 as chromeSlotIsToggle, b2 as commandExecOptions, G as commandForSlot, I as commandForSlotValue, b3 as commandForTableChromeSlotValue, b4 as computeImageResizeResult, b5 as computeMovedImagePosition, b6 as computeResizedImageExtentEmu, J as createDocxEditor, K as createFontSource, b7 as createImageOverlayScrollPort, b8 as cssPixelsToLayoutPoints, M as customFonts, b9 as defaultChromeGroups, ba as defaultTableLabel, bb as emuToOverlayPoints, bc as equationAtPosition, bd as executeImageCommand, be as finalizeImageOverlayInteraction, bf as formattingBarChromeGroups, N as isChromePrintShortcut, bg as isStaleImageInteractionCommit, bh as isTableChromeSlot, bi as layoutPointsToCssPixels, O as loadFonts, bj as overlayFrameToSheetCssPixels, bk as overlayHostOrigin, bl as pointsToEmu, bm as probeTableChromeCommand, bn as resizePreservesAspect, P as runChromeExport, Q as runChromePrint, bo as runSave, bp as runTableChromeCommand, bq as runTableCommand, R as runToolbarCommand, br as selectedDrawingOverlayTargetOf, bs as selectedImageStateOf, bt as surfacePaintScale, bu as tableChromeIconPaths, bv as tableChromeLabelKeyForTarget, bw as tableChromeToolbarState, bx as tableChromeVisible, by as tableCommandToolbarState, U as toolbarCommandState, bz as toolbarCommandStates } from './chrome-print-CAs51cpq.js';
26
- import { a as AutomationCapabilities, b as AutomationHost } from './protocol-DYzzz2ej.js';
27
- import { E as EditDiagnosticCode } from './diagnostic-hints-BeVjfNOv.js';
28
- import { S as SemanticLayout } from './semantic-records-DQmumPgL.js';
29
- export { D as DEFAULT_REVISION_MARKUP, w as REVISION_MARKUP_COLORS, q as ResolvedRevisionMarkup, a as ReviewDisplayMode, x as RevisionChangedLinesMark, y as RevisionDeletionMark, z as RevisionMarkupChromeHandlers, E as RevisionMarkupColor, R as RevisionMarkupDialogSession, G as RevisionMarkupMark, J as RevisionMarkupNamedColor, t as RevisionMarkupOptions, K as RevisionMarkupStyle, M as RevisionMarkupTextStyle, O as SectionProperties, T as TextMeasurer, Q as resolveRevisionMarkup } from './semantic-records-DQmumPgL.js';
30
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-kR_QB845.js';
31
- export { F as FieldShadingMode, R as ReviewAuthorInfo, b as RevisionAuthorAssignments, c as RevisionAuthorStyle, d as RevisionStyles } from './semantic-paint-ZayFF3tD.js';
19
+ import { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
20
+ import { Q as FontConfiguration, z as EditorFontError, P as EditorSnapshot, b as EditorCommand, C as CanResult, aN as ZoomMode, aO as ReviewPaneOverflow, e as ClearAnchorHighlightOptions, c as AnchorHighlightOptions, at as ScrollToAnchorOptions, as as ScrollPlacement, A as AnchorHighlightAnimation, a2 as HighlightRange, t as Editor, a4 as HighlightResult, a1 as HighlightOptions, aI as TextMatch } from './editor-DaEJd2so.js';
21
+ export { aP as CommentMarkerStyle, aQ as DEFAULT_REVIEW_PANE, a0 as HighlightHit, a3 as HighlightRect, a7 as ImageContext, a8 as ImageCropPercent, aR as ImageCropPermille, aS as ResolvedReviewPane, ak as ReviewItemHit, aT as ReviewPaneItemFields, aU as ReviewPaneOpening, R as ReviewPaneOptions, aV as RevisionDisplay, au as SelectedImageState, aK as TrackedChangeFilterMode, aL as TrackedChangePredicate, aW as cropPercentFromCropPermille, aX as cropPercentFromPermille, aY as cropPercentFromSourceCrop, aZ as cropPermilleFromCropPercent, a_ as cropPermilleFromPercent, a$ as resolveReviewPane, b0 as reviewPaneListsItem, b1 as sourceCropFromCropPercent, b2 as validateImageCropPercent } from './editor-DaEJd2so.js';
22
+ import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-cEnVrhWg.js';
23
+ export { d as disposeLayoutShaping } from './layout-shaping-cEnVrhWg.js';
24
+ export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, F as FONT_RESOLVER_BRAND, a as FONT_RESOLVER_MARK_KEY, b as FontConfigurationBase, c as FontConfigurationFragment, d as FontOrigin, e as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, m as MAX_RESOLVER_FAMILIES, M as MarkedFontResolver, W as WORD_DEFAULT_FONT, i as composeFontConfiguration, j as composeFontOrigins, k as defineFontResolver, l as isFontResolver } from './font-resolver-CL9BVKZo.js';
25
+ import { W as PaginatedSurfaceOptions, X as OpenPaginatedResult, Y as PaginatedSurface, Z as TableCommandPlan, s as DocxEditorInstance } from './chrome-print-BM3Js-6X.js';
26
+ export { _ as AnchorFrameOrigin, C as CHROME_GROUPS, a as CHROME_MENUS, $ as CHROME_UNAVAILABLE_KEY, a0 as ChromeControl, a1 as ChromeControlId, a2 as ChromeControlState, b as ChromeExportError, c as ChromeExportFormat, d as ChromeExportHandlers, e as ChromeExportResult, a3 as ChromeExportView, a4 as ChromeGroup, a5 as ChromeGroupId, f as ChromeMenu, g as ChromeMenuEntry, h as ChromeMenuId, i as ChromeMenuItemEntry, j as ChromeMenuSeparatorEntry, k as ChromeMenuSubmenuEntry, l as ChromePrintError, m as ChromePrintErrorCode, n as ChromePrintJob, o as ChromePrintOptions, p as ChromeSlotId, a6 as ContentControlWidgetChromeHandlers, a7 as ContentControlWidgetSession, q as CustomFontsOptions, r as CustomFontsResolver, a8 as DEFAULT_TABLE_CHROME_DRAFT, D as DocxEditorConfig, a9 as DrawingSelectionIntent, aa as EMU_PER_POINT, ab as EditorCommandExecute, ac as EquationActivation, ad as EquationChromeHandlers, ae as EquationOps, af as FinalizedImageOverlayInteraction, F as FontLoadFailure, t as FontLoadFailureReason, u as FontMeasurementState, v as FontUrlSource, H as HistoryGroupBinding, w as HistoryGroupBindingOptions, x as HyperlinkActivation, y as HyperlinkChromeHandlers, ag as HyperlinkOps, ah as IMAGE_OVERLAY_NUDGE_PT, ai as IMAGE_OVERLAY_NUDGE_SHIFT_PT, aj as ImageInteractionSession, ak as ImageOverlayScrollPort, al as ImageResizeHandle, am as ImageResizeResult, an as InvalidTextFormFieldChromeHandlers, ao as InvalidTextFormFieldSession, L as LoadFontsRequest, z as LoadFontsResult, A as LockedControlNavigation, ap as OpeningIndicatorHost, aq as OverlayFrameRect, ar as PaginatedSurfaceState, as as ParagraphPropertyEdit, at as PopupChromeRegistrationOptions, au as RemoteCaretLabelAnchor, av as RemoteCaretLabelHost, aw as ReviewWriteIntent, ax as RunTableChromeCommandResult, ay as SectionAnchor, az as SectionBreakInsertType, aA as SelectedDrawingOverlayTarget, aB as SurfaceEquation, aC as SurfaceFormatting, S as SurfaceHyperlink, aD as SurfaceInsertImageInput, aE as SurfaceNavigation, aF as SurfaceOverlayCoordinates, aG as SurfaceParagraphFormat, aH as TABLE_BORDER_STYLE_OPTIONS, aI as TABLE_BORDER_TARGET_OPTIONS, aJ as TABLE_BORDER_WIDTH_OPTIONS, aK as TABLE_CHROME_SLOT_IDS, aL as TableBorderStyleOption, aM as TableBorderTargetOption, aN as TableBorderTargetValue, aO as TableBorderWidthOption, aP as TableChromeDraft, aQ as TableChromePick, aR as TableChromeSlotId, aS as TableInteractionLabelKey, aT as TextFormFieldChromeHandlers, aU as TextFormFieldDialogSession, T as ToolbarCommandState, aV as ToolbarSlotValue, aW as ToolbarValueMap, aX as ToolbarValueSlot, aY as applyTableChromePick, B as bindHistoryGroup, E as blankDocumentBytes, aZ as canExecuteImageCommand, a_ as captureImageMutationPreconditions, a$ as chromeControlCount, G as chromeMenuSlots, b0 as chromeProbeForSlot, b1 as chromeSlotId, b2 as chromeSlotIsToggle, b3 as commandExecOptions, I as commandForSlot, J as commandForSlotValue, b4 as commandForTableChromeSlotValue, b5 as computeImageResizeResult, b6 as computeMovedImagePosition, b7 as computeResizedImageExtentEmu, K as createDocxEditor, M as createFontSource, b8 as createImageOverlayScrollPort, b9 as cssPixelsToLayoutPoints, N as customFonts, ba as defaultChromeGroups, bb as defaultTableLabel, bc as emuToOverlayPoints, bd as equationAtPosition, be as executeImageCommand, bf as finalizeImageOverlayInteraction, bg as formattingBarChromeGroups, O as isChromePrintShortcut, bh as isStaleImageInteractionCommit, bi as isTableChromeSlot, bj as layoutPointsToCssPixels, P as loadFonts, bk as overlayFrameToSheetCssPixels, bl as overlayHostOrigin, bm as pointsToEmu, bn as probeTableChromeCommand, bo as resizePreservesAspect, Q as runChromeExport, R as runChromePrint, bp as runSave, bq as runTableChromeCommand, br as runTableCommand, U as runToolbarCommand, bs as selectedDrawingOverlayTargetOf, bt as selectedImageStateOf, bu as surfacePaintScale, bv as tableChromeIconPaths, bw as tableChromeLabelKeyForTarget, bx as tableChromeToolbarState, by as tableChromeVisible, bz as tableCommandToolbarState, V as toolbarCommandState, bA as toolbarCommandStates } from './chrome-print-BM3Js-6X.js';
27
+ import { a as AutomationCapabilities, b as AutomationHost } from './protocol-CZ1uUlPO.js';
28
+ import { E as EditDiagnosticCode } from './diagnostic-hints-2Bke6H_w.js';
29
+ import { S as SemanticLayout } from './semantic-records-CjcF26ZL.js';
30
+ export { D as DEFAULT_REVISION_MARKUP, w as REVISION_MARKUP_COLORS, q as ResolvedRevisionMarkup, a as ReviewDisplayMode, x as RevisionChangedLinesMark, y as RevisionDeletionMark, z as RevisionMarkupChromeHandlers, E as RevisionMarkupColor, R as RevisionMarkupDialogSession, G as RevisionMarkupMark, J as RevisionMarkupNamedColor, t as RevisionMarkupOptions, K as RevisionMarkupStyle, M as RevisionMarkupTextStyle, O as SectionProperties, T as TextMeasurer, Q as resolveRevisionMarkup } from './semantic-records-CjcF26ZL.js';
31
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Dc3pf3hr.js';
32
+ export { F as FieldShadingMode, R as ReviewAuthorInfo, b as RevisionAuthorAssignments, c as RevisionAuthorStyle, d as RevisionStyles } from './semantic-paint-Bz3FBAoH.js';
32
33
  export { CollaborationModuleContribution } from './collaboration.js';
33
34
  import './editor-scope-7o9xweiJ.js';
34
- import './omml-equation-BUbU0utM.js';
35
+ import './custom-node-writes-0v0Kgw1T.js';
36
+ import './headless-document-view-DZQN8Bnx.js';
37
+ import 'prosemirror-model';
38
+ import './collaboration/replication.js';
39
+ import './omml-equation-DP2WpUbK.js';
35
40
  import './contracts/document.js';
36
41
  import './contracts/interaction.js';
37
- import './document-protection-CUb55pl_.js';
42
+ import './document-protection-8eyMWIJ0.js';
38
43
  import './failure-NS2lsya4.js';
39
- import './collaboration/replication.js';
40
- import './custom-node-writes-Bn6uciLb.js';
41
- import './headless-document-view-pp3q7wIh.js';
42
- import 'prosemirror-model';
43
- import './note-properties-qQUjO1GQ.js';
44
- import './semantic-cell-selection-eYag3P47.js';
45
- import './semantic-record-queries-Bsgth6lv.js';
44
+ import './note-properties-9FH8zAeG.js';
45
+ import './semantic-cell-selection-Dr9yxFZt.js';
46
+ import './semantic-record-queries-Bx0pl6kL.js';
46
47
 
47
48
  declare function toEditorFontError(error: unknown): EditorFontError;
48
- declare function createLayoutShaping(configuration: FontConfiguration, instrumentation?: LayoutShapingInstrumentation): Promise<LayoutShapingOptions>;
49
+ declare function createLayoutShaping(configuration: FontConfiguration, instrumentation?: LayoutShapingInstrumentation, execution?: FontShapingOptions): Promise<LayoutShapingOptions>;
49
50
 
50
51
  /**
51
52
  * What `snapshot()` reports before an editor exists: loading, not editable, nothing
@@ -1411,5 +1412,5 @@ interface DocumentSearch {
1411
1412
  */
1412
1413
  declare function createDocumentSearch(editor: Editor): DocumentSearch;
1413
1414
 
1414
- export { AUTO_ZOOM_MODE, AnchorHighlightAnimation, AnchorHighlightOptions, BROWSER_AUTOMATION_CAPABILITIES, CONTENT_CONTROL_PICTURE_ACCEPT, ClearAnchorHighlightOptions, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocumentRefreshError, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, HIGHLIGHT_REFRESH_MS, HighlightOptions, HighlightRange, HighlightResult, LOADING_SNAPSHOT, NO_MIXED_FIELDS, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, ParagraphTabStop, REVIEW_MARKERS_GUTTER_PX, ReviewPaneOverflow, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, ScrollPlacement, ScrollToAnchorOptions, TAB_ALIGNMENT_LABELS, TOOLBAR_COLLAPSE_ORDER, TOOLBAR_OVERFLOW_HYSTERESIS, TOOLBAR_PANEL_EDGE_MARGIN, TOOLBAR_PINNED_GROUPS, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, alignmentAfterDirectionChange, applyThemeShade, applyThemeTint, arrangeToolbarGroups, barRoomWidth, calendarDateForKey, calendarDateFromText, calendarDateText, calendarMonth, calendarMonthNames, calendarMonthTitle, calendarWeekdays, changedFields, chordLetter, clipboardDropLandsText, clipboardPasteLandsContent, collapseOrder, collapsibleGroupCost, contentControlPopupKeyDown, contentControlPopupOpener, controlsOverflow, createBrowserAutomationHost, createContentControlListNavigation, createDocumentRefresh, createDocumentSearch, createLayoutShaping, dragIndent, editorCommandKey, editorInstanceScope, firstDayOfWeek, formatInches, generateRulerTicks, handlePosition, hasOpenNestedPopup, inchesToTwips, isoDateOf, listenForPopupEscape, listenForPopupFocusLeave, lowerColorValueForBorder, lowerColorValueForFill, mixedFieldsOf, mountPaginatedSurface, observeContentControlPopup, parseIsoDate, partOfNodeId, positionContentControlPopup, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, readAvailableWidth, readColumnGap, readInlineMargins, reportAutomationException, reportAutomationRefusal, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, reviewPaneEntitledZoom, rulerPageBox, sameOverflow, sameTabStops, sameZoomMode, seedFields, separatorLeadingCost, shiftMonth, signedFirstLineOf, snapTwips, specialOf, surfaceExtent, tableCommandState, toEditorFontError, toolbarGroupPriority, toolbarOverflowGroups, toolbarPanelPlacement, toolbarPopupLeft, trailingGapCost, trapTabWithin, twipsToInches, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier, watchHighlights, withTabStop };
1415
+ export { AUTO_ZOOM_MODE, AnchorHighlightAnimation, AnchorHighlightOptions, BROWSER_AUTOMATION_CAPABILITIES, CONTENT_CONTROL_PICTURE_ACCEPT, ClearAnchorHighlightOptions, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocumentRefreshError, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, FontShapingOptions, HIGHLIGHT_REFRESH_MS, HighlightOptions, HighlightRange, HighlightResult, LOADING_SNAPSHOT, NO_MIXED_FIELDS, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, ParagraphTabStop, REVIEW_MARKERS_GUTTER_PX, ReviewPaneOverflow, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, ScrollPlacement, ScrollToAnchorOptions, TAB_ALIGNMENT_LABELS, TOOLBAR_COLLAPSE_ORDER, TOOLBAR_OVERFLOW_HYSTERESIS, TOOLBAR_PANEL_EDGE_MARGIN, TOOLBAR_PINNED_GROUPS, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, alignmentAfterDirectionChange, applyThemeShade, applyThemeTint, arrangeToolbarGroups, barRoomWidth, calendarDateForKey, calendarDateFromText, calendarDateText, calendarMonth, calendarMonthNames, calendarMonthTitle, calendarWeekdays, changedFields, chordLetter, clipboardDropLandsText, clipboardPasteLandsContent, collapseOrder, collapsibleGroupCost, contentControlPopupKeyDown, contentControlPopupOpener, controlsOverflow, createBrowserAutomationHost, createContentControlListNavigation, createDocumentRefresh, createDocumentSearch, createLayoutShaping, dragIndent, editorCommandKey, editorInstanceScope, firstDayOfWeek, formatInches, generateRulerTicks, handlePosition, hasOpenNestedPopup, inchesToTwips, isoDateOf, listenForPopupEscape, listenForPopupFocusLeave, lowerColorValueForBorder, lowerColorValueForFill, mixedFieldsOf, mountPaginatedSurface, observeContentControlPopup, parseIsoDate, partOfNodeId, positionContentControlPopup, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, readAvailableWidth, readColumnGap, readInlineMargins, reportAutomationException, reportAutomationRefusal, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, reviewPaneEntitledZoom, rulerPageBox, sameOverflow, sameTabStops, sameZoomMode, seedFields, separatorLeadingCost, shiftMonth, signedFirstLineOf, snapTwips, specialOf, surfaceExtent, tableCommandState, toEditorFontError, toolbarGroupPriority, toolbarOverflowGroups, toolbarPanelPlacement, toolbarPopupLeft, trailingGapCost, trapTabWithin, twipsToInches, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier, watchHighlights, withTabStop };
1415
1416
  export type { BarRoomInput, CalendarDay, CalendarMonth, CalendarMonthOptions, ClearRefreshHighlightsOptions, ColorLowerResult, ContentControlListNavigation, DocumentRefresh, DocumentRefreshState, DocumentSearch, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, DocumentSearchState, HighlightSource, HighlightWatch, NavigateToChangeOptions, ParagraphDialogFields, ParagraphDialogMixed, ParagraphFlagKey, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, PopupEscapeOptions, PopupFocusLeaveOptions, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, RulerDragOptions, RulerIndent, RulerIndentHandle, RulerPageMetrics, RulerTick, RulerUnit, SpecialIndent, SurfaceExtent, TabAlignment, TabLeaderName, ToolbarFitInput, ToolbarHostGroupPlacement, ToolbarPanelPlacement, WatchHighlightsOptions };
package/dist/editor.js CHANGED
@@ -1 +1 @@
1
- export{zb as AUTO_ZOOM_MODE,Fb as BROWSER_AUTOMATION_CAPABILITIES,Ta as CHROME_GROUPS,Xa as CHROME_MENUS,_a as CHROME_UNAVAILABLE_KEY,db as CONTENT_CONTROL_PICTURE_ACCEPT,qc as ChromeExportError,sc as ChromePrintError,c as DEFAULT_REVIEW_PANE,$ as DEFAULT_TABLE_CHROME_DRAFT,hc as DocumentRefreshError,N as EMU_PER_POINT,Ab as FIT_WIDTH_ZOOM_MODE,jc as HIGHLIGHT_REFRESH_MS,W as IMAGE_OVERLAY_NUDGE_PT,X as IMAGE_OVERLAY_NUDGE_SHIFT_PT,f as LOADING_SNAPSHOT,$b as NO_MIXED_FIELDS,o as PX_PER_CM,n as PX_PER_INCH,wb as REVIEW_MARKERS_GUTTER_PX,lc as SEARCH_DEBOUNCE_MS,oc as SEARCH_HIGHLIGHT_PRIORITY,nc as SEARCH_HIGHLIGHT_SET,mc as SEARCH_MATCH_LIMIT,u as SNAP_TWIPS_CM,t as SNAP_TWIPS_INCH,fa as TABLE_BORDER_STYLE_OPTIONS,ea as TABLE_BORDER_TARGET_OPTIONS,ga as TABLE_BORDER_WIDTH_OPTIONS,aa as TABLE_CHROME_SLOT_IDS,Xb as TAB_ALIGNMENT_LABELS,za as TOOLBAR_COLLAPSE_ORDER,Ba as TOOLBAR_OVERFLOW_HYSTERESIS,Fa as TOOLBAR_PANEL_EDGE_MARGIN,Aa as TOOLBAR_PINNED_GROUPS,s as TWIPS_PER_CM,r as TWIPS_PER_INCH,yb as ZOOM_MAX,xb as ZOOM_MIN,dc as alignmentAfterDirectionChange,ha as applyTableChromePick,B as applyThemeShade,A as applyThemeTint,Ea as arrangeToolbarGroups,Pa as barRoomWidth,gc as bindHistoryGroup,g as blankDocumentBytes,lb as calendarDateForKey,nb as calendarDateFromText,mb as calendarDateText,jb as calendarMonth,ob as calendarMonthNames,hb as calendarMonthTitle,ib as calendarWeekdays,U as canExecuteImageCommand,T as captureImageMutationPreconditions,cc as changedFields,Sa as chordLetter,Za as chromeControlCount,Ya as chromeMenuSlots,la as chromeProbeForSlot,Ua as chromeSlotId,ra as chromeSlotIsToggle,i as clipboardDropLandsText,h as clipboardPasteLandsContent,Da as collapseOrder,La as collapsibleGroupCost,y as commandExecOptions,ma as commandForSlot,oa as commandForSlotValue,na as commandForTableChromeSlotValue,Rb as computeImageResizeResult,R as computeMovedImagePosition,Q as computeResizedImageExtentEmu,bb as contentControlPopupKeyDown,cb as contentControlPopupOpener,Qa as controlsOverflow,Gb as createBrowserAutomationHost,pb as createContentControlListNavigation,ic as createDocumentRefresh,pc as createDocumentSearch,Eb as createDocxEditor,l as createFontSource,Sb as createImageOverlayScrollPort,b as createLayoutShaping,L as cropPercentFromCropPermille,J as cropPercentFromPermille,G as cropPercentFromSourceCrop,K as cropPermilleFromCropPercent,I as cropPermilleFromPercent,Nb as cssPixelsToLayoutPoints,m as customFonts,Va as defaultChromeGroups,ba as defaultTableLabel,x as dragIndent,ya as editorCommandKey,Hb as editorInstanceScope,P as emuToOverlayPoints,qb as equationAtPosition,V as executeImageCommand,Tb as finalizeImageOverlayInteraction,gb as firstDayOfWeek,Vb as formatInches,Wa as formattingBarChromeGroups,p as generateRulerTicks,v as handlePosition,Jb as hasOpenNestedPopup,Wb as inchesToTwips,tc as isChromePrintShortcut,Z as isStaleImageInteractionCommit,ca as isTableChromeSlot,eb as isoDateOf,Mb as layoutPointsToCssPixels,Ib as listenForPopupEscape,Kb as listenForPopupFocusLeave,k as loadFonts,D as lowerColorValueForBorder,E as lowerColorValueForFill,ac as mixedFieldsOf,sb as mountPaginatedSurface,ab as observeContentControlPopup,Ob as overlayFrameToSheetCssPixels,Pb as overlayHostOrigin,fb as parseIsoDate,j as partOfNodeId,O as pointsToEmu,$a as positionContentControlPopup,ia as probeTableChromeCommand,Ra as readAvailableWidth,Oa as readColumnGap,Na as readInlineMargins,vb as reportAutomationException,ub as reportAutomationRefusal,Qb as resizePreservesAspect,F as resolveColorValueToCss,d as resolveReviewPane,C as resolveThemeColorHex,Bb as resolveZoomMode,Db as reviewPaneEntitledZoom,e as reviewPaneListsItem,q as rulerPageBox,rc as runChromeExport,uc as runChromePrint,va as runSave,ta as runTableChromeCommand,xa as runTableCommand,ua as runToolbarCommand,Ha as sameOverflow,bc as sameTabStops,Cb as sameZoomMode,_b as seedFields,Y as selectedDrawingOverlayTargetOf,S as selectedImageStateOf,Ka as separatorLeadingCost,kb as shiftMonth,Zb as signedFirstLineOf,w as snapTwips,H as sourceCropFromCropPercent,Yb as specialOf,rb as surfaceExtent,Lb as surfacePaintScale,ka as tableChromeIconPaths,ja as tableChromeLabelKeyForTarget,pa as tableChromeToolbarState,da as tableChromeVisible,_ as tableCommandState,wa as tableCommandToolbarState,a as toEditorFontError,qa as toolbarCommandState,sa as toolbarCommandStates,Ca as toolbarGroupPriority,Ia as toolbarOverflowGroups,Ga as toolbarPanelPlacement,Ja as toolbarPopupLeft,Ma as trailingGapCost,fc as trapTabWithin,Ub as twipsToInches,M as validateImageCropPercent,z as validateThemeModifier,kc as watchHighlights,ec as withTabStop}from'./chunk-DVX32P2P.js';export{a as resolveEditorModules}from'./chunk-4HENIAFG.js';import'./chunk-TRGAVV2Y.js';export{d as DEFAULT_FONT,i as FONT_RESOLVER_BRAND,h as FONT_RESOLVER_MARK_KEY,c as MAX_RESOLVER_FAMILIES,e as WORD_DEFAULT_FONT,f as composeFontConfiguration,n as composeFontOrigins,j as defineFontResolver,k as isFontResolver}from'./chunk-236O4YQW.js';export{r as disposeLayoutShaping}from'./chunk-6ZQP4HQ7.js';import'./chunk-RIYSCEFQ.js';import'./chunk-LQX36Z5P.js';import'./chunk-E4LOMDNL.js';export{Ua as DEFAULT_REVISION_MARKUP,Ta as REVISION_MARKUP_COLORS,Va as resolveRevisionMarkup}from'./chunk-CPWLFPWC.js';import'./chunk-BCXH4BXB.js';import'./chunk-G4HOFIKJ.js';import'./chunk-RCLZXP3B.js';import'./chunk-LSZ6KPKK.js';import'./chunk-U4JZVSOE.js';import'./chunk-6JIJOZDW.js';import'./chunk-OMCG63ZF.js';export{r as DEFAULT_IMAGE_RESOURCE_LIMITS,Mk as DRAWING_REL_FROM_H,Nk as DRAWING_REL_FROM_V,Ed as IMAGE_WRAP_TARGETS,Qi as TEXT_FORM_FORMATS,Pk as positionInputFromPropertiesCommand,Ok as propertiesCommandHasPositionFields,s as resolveImageResourceLimits,he as resolveSvgIntrinsicSize,de as sniffImageMime,Lk as validateDrawingPositionInput,ie as validateRasterHeader,Qk as validateSetImagePositionCommand}from'./chunk-YQ5G6LC7.js';import'./chunk-S6J4O5XP.js';
1
+ export{zb as AUTO_ZOOM_MODE,Fb as BROWSER_AUTOMATION_CAPABILITIES,Ta as CHROME_GROUPS,Xa as CHROME_MENUS,_a as CHROME_UNAVAILABLE_KEY,db as CONTENT_CONTROL_PICTURE_ACCEPT,qc as ChromeExportError,sc as ChromePrintError,c as DEFAULT_REVIEW_PANE,$ as DEFAULT_TABLE_CHROME_DRAFT,hc as DocumentRefreshError,N as EMU_PER_POINT,Ab as FIT_WIDTH_ZOOM_MODE,jc as HIGHLIGHT_REFRESH_MS,W as IMAGE_OVERLAY_NUDGE_PT,X as IMAGE_OVERLAY_NUDGE_SHIFT_PT,f as LOADING_SNAPSHOT,$b as NO_MIXED_FIELDS,o as PX_PER_CM,n as PX_PER_INCH,wb as REVIEW_MARKERS_GUTTER_PX,lc as SEARCH_DEBOUNCE_MS,oc as SEARCH_HIGHLIGHT_PRIORITY,nc as SEARCH_HIGHLIGHT_SET,mc as SEARCH_MATCH_LIMIT,u as SNAP_TWIPS_CM,t as SNAP_TWIPS_INCH,fa as TABLE_BORDER_STYLE_OPTIONS,ea as TABLE_BORDER_TARGET_OPTIONS,ga as TABLE_BORDER_WIDTH_OPTIONS,aa as TABLE_CHROME_SLOT_IDS,Xb as TAB_ALIGNMENT_LABELS,za as TOOLBAR_COLLAPSE_ORDER,Ba as TOOLBAR_OVERFLOW_HYSTERESIS,Fa as TOOLBAR_PANEL_EDGE_MARGIN,Aa as TOOLBAR_PINNED_GROUPS,s as TWIPS_PER_CM,r as TWIPS_PER_INCH,yb as ZOOM_MAX,xb as ZOOM_MIN,dc as alignmentAfterDirectionChange,ha as applyTableChromePick,B as applyThemeShade,A as applyThemeTint,Ea as arrangeToolbarGroups,Pa as barRoomWidth,gc as bindHistoryGroup,g as blankDocumentBytes,lb as calendarDateForKey,nb as calendarDateFromText,mb as calendarDateText,jb as calendarMonth,ob as calendarMonthNames,hb as calendarMonthTitle,ib as calendarWeekdays,U as canExecuteImageCommand,T as captureImageMutationPreconditions,cc as changedFields,Sa as chordLetter,Za as chromeControlCount,Ya as chromeMenuSlots,la as chromeProbeForSlot,Ua as chromeSlotId,ra as chromeSlotIsToggle,i as clipboardDropLandsText,h as clipboardPasteLandsContent,Da as collapseOrder,La as collapsibleGroupCost,y as commandExecOptions,ma as commandForSlot,oa as commandForSlotValue,na as commandForTableChromeSlotValue,Rb as computeImageResizeResult,R as computeMovedImagePosition,Q as computeResizedImageExtentEmu,bb as contentControlPopupKeyDown,cb as contentControlPopupOpener,Qa as controlsOverflow,Gb as createBrowserAutomationHost,pb as createContentControlListNavigation,ic as createDocumentRefresh,pc as createDocumentSearch,Eb as createDocxEditor,l as createFontSource,Sb as createImageOverlayScrollPort,b as createLayoutShaping,L as cropPercentFromCropPermille,J as cropPercentFromPermille,G as cropPercentFromSourceCrop,K as cropPermilleFromCropPercent,I as cropPermilleFromPercent,Nb as cssPixelsToLayoutPoints,m as customFonts,Va as defaultChromeGroups,ba as defaultTableLabel,x as dragIndent,ya as editorCommandKey,Hb as editorInstanceScope,P as emuToOverlayPoints,qb as equationAtPosition,V as executeImageCommand,Tb as finalizeImageOverlayInteraction,gb as firstDayOfWeek,Vb as formatInches,Wa as formattingBarChromeGroups,p as generateRulerTicks,v as handlePosition,Jb as hasOpenNestedPopup,Wb as inchesToTwips,tc as isChromePrintShortcut,Z as isStaleImageInteractionCommit,ca as isTableChromeSlot,eb as isoDateOf,Mb as layoutPointsToCssPixels,Ib as listenForPopupEscape,Kb as listenForPopupFocusLeave,k as loadFonts,D as lowerColorValueForBorder,E as lowerColorValueForFill,ac as mixedFieldsOf,sb as mountPaginatedSurface,ab as observeContentControlPopup,Ob as overlayFrameToSheetCssPixels,Pb as overlayHostOrigin,fb as parseIsoDate,j as partOfNodeId,O as pointsToEmu,$a as positionContentControlPopup,ia as probeTableChromeCommand,Ra as readAvailableWidth,Oa as readColumnGap,Na as readInlineMargins,vb as reportAutomationException,ub as reportAutomationRefusal,Qb as resizePreservesAspect,F as resolveColorValueToCss,d as resolveReviewPane,C as resolveThemeColorHex,Bb as resolveZoomMode,Db as reviewPaneEntitledZoom,e as reviewPaneListsItem,q as rulerPageBox,rc as runChromeExport,uc as runChromePrint,va as runSave,ta as runTableChromeCommand,xa as runTableCommand,ua as runToolbarCommand,Ha as sameOverflow,bc as sameTabStops,Cb as sameZoomMode,_b as seedFields,Y as selectedDrawingOverlayTargetOf,S as selectedImageStateOf,Ka as separatorLeadingCost,kb as shiftMonth,Zb as signedFirstLineOf,w as snapTwips,H as sourceCropFromCropPercent,Yb as specialOf,rb as surfaceExtent,Lb as surfacePaintScale,ka as tableChromeIconPaths,ja as tableChromeLabelKeyForTarget,pa as tableChromeToolbarState,da as tableChromeVisible,_ as tableCommandState,wa as tableCommandToolbarState,a as toEditorFontError,qa as toolbarCommandState,sa as toolbarCommandStates,Ca as toolbarGroupPriority,Ia as toolbarOverflowGroups,Ga as toolbarPanelPlacement,Ja as toolbarPopupLeft,Ma as trailingGapCost,fc as trapTabWithin,Ub as twipsToInches,M as validateImageCropPercent,z as validateThemeModifier,kc as watchHighlights,ec as withTabStop}from'./chunk-VRCZBFLH.js';export{a as resolveEditorModules}from'./chunk-4HENIAFG.js';import'./chunk-ZOS2PM4A.js';export{d as DEFAULT_FONT,i as FONT_RESOLVER_BRAND,h as FONT_RESOLVER_MARK_KEY,c as MAX_RESOLVER_FAMILIES,e as WORD_DEFAULT_FONT,f as composeFontConfiguration,n as composeFontOrigins,j as defineFontResolver,k as isFontResolver}from'./chunk-7ATNKARV.js';export{t as disposeLayoutShaping}from'./chunk-EBCXSH2W.js';import'./chunk-RIYSCEFQ.js';import'./chunk-5OTS2EJ7.js';import'./chunk-NKPUH3QJ.js';export{Ua as DEFAULT_REVISION_MARKUP,Ta as REVISION_MARKUP_COLORS,Va as resolveRevisionMarkup}from'./chunk-UM26GH5B.js';import'./chunk-2PV5L5NJ.js';import'./chunk-RJCQGJR7.js';import'./chunk-WPDD2Y32.js';import'./chunk-T32MGBJS.js';import'./chunk-PF5NJWS3.js';import'./chunk-6JIJOZDW.js';import'./chunk-YZGUBCHP.js';export{r as DEFAULT_IMAGE_RESOURCE_LIMITS,Nk as DRAWING_REL_FROM_H,Ok as DRAWING_REL_FROM_V,Ed as IMAGE_WRAP_TARGETS,Qi as TEXT_FORM_FORMATS,Qk as positionInputFromPropertiesCommand,Pk as propertiesCommandHasPositionFields,s as resolveImageResourceLimits,he as resolveSvgIntrinsicSize,de as sniffImageMime,Mk as validateDrawingPositionInput,ie as validateRasterHeader,Rk as validateSetImagePositionCommand}from'./chunk-5SPITS5F.js';import'./chunk-S6J4O5XP.js';
package/dist/export.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkJLVBDYVQ_cjs=require('./chunk-JLVBDYVQ.cjs'),chunkD7ZMDMPX_cjs=require('./chunk-D7ZMDMPX.cjs'),chunkW35WTWAO_cjs=require('./chunk-W35WTWAO.cjs'),chunkDOHF6FA7_cjs=require('./chunk-DOHF6FA7.cjs'),chunkBY2ACZZ6_cjs=require('./chunk-BY2ACZZ6.cjs');require('./chunk-MM5QBMTE.cjs');var chunkT6K2QYNZ_cjs=require('./chunk-T6K2QYNZ.cjs'),chunkOSFOJTHU_cjs=require('./chunk-OSFOJTHU.cjs');function _(e,o,t){if(o.environment.features.smcp!==1||!/\p{Ll}/u.test(o.text))return t;let n={...o,environment:{...o.environment,features:{...o.environment.features,smcp:0}}},r=e.shape(n);if(t.glyphs.length!==r.glyphs.length||t.glyphs.some((u,c)=>u.id!==r.glyphs[c]?.id))return t;let i=[],s=0;for(let u of o.text){let c=u.toUpperCase()!==u,y=i.at(-1);y&&(y.lower===c||/\p{M}/u.test(u))?y.text+=u:i.push({text:u,start:s,lower:c}),s+=u.length;}let a=[],p=[],l=[],d=true,g=0;for(let u of o.environment.direction==="rtl"?i.reverse():i){let c=u.lower?.8:1,y=[],b=[],R="",f=u.start;for(let x of u.text){let m=u.lower?x.toUpperCase():x;for(let E=0;E<m.length;E++)y.push(f),b.push(f+x.length);R+=m,f+=x.length;}let h=e.shape({...n,text:R}),F=a.length;for(let[x,m]of h.glyphs.entries()){let E=h.exactAdvancesX?.[x];E===void 0?d=false:l.push(E*c),a.push({...m,cluster:y[m.cluster]??u.start,originX:chunkDOHF6FA7_cjs.n(g+Math.round(m.originX*c)),originY:chunkDOHF6FA7_cjs.n(Math.round(m.originY*c)),offsetX:chunkDOHF6FA7_cjs.n(Math.round(m.offsetX*c)),offsetY:chunkDOHF6FA7_cjs.n(Math.round(m.offsetY*c)),advanceX:chunkDOHF6FA7_cjs.n(Math.round(m.advanceX*c)),advanceY:chunkDOHF6FA7_cjs.n(Math.round(m.advanceY*c)),drawScale:c});}for(let x of h.clusters){let m=y[x.textStart]??u.start,E=b[x.textEnd-1]??f,L=chunkDOHF6FA7_cjs.n(Math.round(x.advance*c)),A=p.at(-1);A&&A.textStart===m&&A.textEnd===E?p[p.length-1]={...A,glyphEnd:F+x.glyphEnd,advance:chunkDOHF6FA7_cjs.n(A.advance+L),caretEdges:[chunkDOHF6FA7_cjs.n(0),chunkDOHF6FA7_cjs.n(A.advance+L)]}:p.push({...x,textStart:m,textEnd:E,glyphStart:F+x.glyphStart,glyphEnd:F+x.glyphEnd,advance:L,caretEdges:x.caretEdges.map(V=>chunkDOHF6FA7_cjs.n(Math.round(V*c))),fontSpan:0});}g+=h.glyphs.reduce((x,m)=>x+Math.round(m.advanceX*c),0);}return {...t,glyphs:a,clusters:p,fontSpans:[{...t.fontSpans[0],glyphStart:0,glyphEnd:a.length}],exactAdvancesX:d&&l.length===a.length?l:void 0}}var ut=new WeakMap;function zt(e){let o=ut.get(e);return o===void 0&&(o=Xt(e.bytes,e.faceIndex),ut.set(e,o)),o}var jt=new Set(["COLR","CBDT","sbix"]),Ht=512;function Xt(e,o){let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e.byteLength<12)return false;let n=0;if(ct(e,0)==="ttcf"){let i=t.getUint32(8);if(o<0||o>=i||12+4*o+4>e.byteLength||(n=t.getUint32(12+4*o),n+12>e.byteLength))return false}let r=Math.min(t.getUint16(n+4),Ht);for(let i=0;i<r;i++){let s=n+12+i*16;if(s+4>e.byteLength)return false;if(jt.has(ct(e,s)))return true}return false}function ct(e,o){return String.fromCharCode(e[o],e[o+1],e[o+2],e[o+3])}var Gt=/\p{Emoji_Presentation}|️/u;function Vt(e){return Gt.test(e)}function q(e,o){if(e.length<2)return e;let t=e.filter(zt);if(t.length===0||t.length===e.length)return e;let n=e.filter(r=>!t.includes(r));return Vt(o)?[...t,...n]:[...n,...t]}var Wt=2048;function pt(e,o,t,n){if(!t.clusters.length||t.clusters.length>Wt)return null;let r=(f,h)=>{let{context:F,...x}=o,m={...x,text:h,environment:chunkDOHF6FA7_cjs.p({...o.environment,font:f})};return _(e,m,e.shape(m))},i=[],s=new Map;for(let f of [...t.clusters].sort((h,F)=>h.textStart-F.textStart)){let h=o.environment.font,F=o.text.slice(f.textStart,f.textEnd),x=i.at(-1);if(/^[\uFE0E\uFE0F]$/.test(F)&&x&&x.end===f.textStart){x.end=f.textEnd;continue}if(o.environment.script==="Hebr"&&/^\s+$/u.test(F)&&x&&x.font!==o.environment.font&&x.end===f.textStart){x.end=f.textEnd;continue}if(t.glyphs.slice(f.glyphStart,f.glyphEnd).some(E=>E.id===0)){let E=o.text.slice(f.textStart,f.textEnd+1),L=s.get(F)??q(n,E).find(A=>{try{return !r(A,F).glyphs.some(V=>V.id===0)}catch{return false}});if(!L)return null;s.set(F,L),h=L;}let m=i.at(-1);m&&m.font===h&&m.end===f.textStart?m.end=f.textEnd:i.push({start:f.textStart,end:f.textEnd,font:h});}let a=[],p=[],l=[],d=[],g=true,u=0,c=0,y=0,b=0,R=0;for(let f of o.environment.direction==="rtl"?i.reverse():i){let h=r(f.font,o.text.slice(f.start,f.end));if(h.glyphs.some(m=>m.id===0))return null;let F=a.length,x=l.length;for(let m of h.glyphs)a.push({...m,cluster:f.start+m.cluster,originX:chunkDOHF6FA7_cjs.n(u+m.originX),originY:chunkDOHF6FA7_cjs.n(c+m.originY)});if(h.exactAdvancesX===void 0)g=false;else for(let m of h.exactAdvancesX)d.push(m);for(let m of h.clusters)p.push({...m,textStart:f.start+m.textStart,textEnd:f.start+m.textEnd,glyphStart:F+m.glyphStart,glyphEnd:F+m.glyphEnd,fontSpan:x});h.glyphs.length&&l.push({font:f.font,glyphStart:F,glyphEnd:a.length,fallbackIndex:f.font===o.environment.font?null:n.indexOf(f.font)}),u+=h.glyphs.reduce((m,E)=>m+E.advanceX,0),c+=h.glyphs.reduce((m,E)=>m+E.advanceY,0),y=Math.max(y,h.metrics.ascent),b=Math.max(b,h.metrics.descent),R=Math.max(R,h.metrics.lineGap);}return chunkDOHF6FA7_cjs.s({...t,glyphs:a,clusters:p,fontSpans:l,exactAdvancesX:g&&d.length===a.length?d:void 0,metrics:{ascent:chunkDOHF6FA7_cjs.n(y),descent:chunkDOHF6FA7_cjs.n(b),lineGap:chunkDOHF6FA7_cjs.n(R)}},{...o.environment,fallbackOrder:n})}var Yt=new Map([["Beng",["bng2","beng"]],["Deva",["dev2","deva"]],["Gujr",["gjr2","gujr"]],["Guru",["gur2","guru"]],["Knda",["knd2","knda"]],["Mlym",["mlm2","mlym"]],["Orya",["ory2","orya"]],["Taml",["tml2","taml"]],["Telu",["tel2","telu"]],["Nkoo",["nko "]]]),$t=512,ft=new WeakMap;function Kt(e,o){let t=new Set,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=c=>c+2<=n.byteLength?n.getUint16(c):-1,i=c=>c+4<=n.byteLength?n.getUint32(c):-1,s=c=>c+4<=n.byteLength?String.fromCharCode(n.getUint8(c),n.getUint8(c+1),n.getUint8(c+2),n.getUint8(c+3)):"",a=0;if(s(0)==="ttcf"){let c=i(8);if(c<0||o<0||o>=c||(a=i(12+o*4),a<0))return t}let p=r(a+4);if(p<0||p>1024)return t;let l=-1;for(let c=0;c<p;c+=1){let y=a+12+c*16;if(s(y)==="GSUB"){l=i(y+8);break}}if(l<0)return t;let d=r(l+4);if(d<=0)return t;let g=l+d,u=r(g);if(u<0)return t;for(let c=0;c<Math.min(u,$t);c+=1){let y=s(g+2+c*6);y&&t.add(y);}return t}function Zt(e,o){let t=ft.get(e);return t||(t=Kt(e.bytes,e.faceIndex),ft.set(e,t)),(Yt.get(o)??[o.toLowerCase()]).some(r=>t.has(r))}function mt(e,o){let t=e.filter(n=>Zt(n,o));return t.length===0||t.length===e.length?e:[...t,...e.filter(n=>!t.includes(n))]}function Q(e,o,t){if(!o.text.includes("\u2011"))return t;let n=new Set(t.glyphs.filter(i=>i.id===0).map(i=>i.cluster));if(!n.size)return t;let r=o.text.replace(/\u2011/g,(i,s)=>n.has(s)?"-":i);if(r===o.text)return t;try{let i=e.shape({...o,text:r});return chunkDOHF6FA7_cjs.s({...i,text:o.text},o.environment)}catch{return t}}function yt(e,o){if(o.length===0)return e;if(o.length>16)throw new RangeError("At most 16 glyph fallback faces are supported");let t=o.map(a=>e.fonts.resolve(a)).filter(a=>!(a instanceof chunkDOHF6FA7_cjs.d)),n={shape(a){return Q(e.shaper,a,e.shaper.shape(a))}},r=new WeakMap,i={shape(a){let p=e.shaper.shape(a),l=r.get(p);if(l&&l.input.text===a.text&&l.input.fontSizeHalfPoints===a.fontSizeHalfPoints&&l.input.bidiLevel===a.bidiLevel&&l.input.context?.before===a.context?.before&&l.input.context?.after===a.context?.after&&l.input.environment===a.environment)return l.run;let d=s(a,Q(e.shaper,a,p));return r.set(p,{input:a,run:d}),d}},s=(a,p)=>{let l=_(n,a,p);if(!l.glyphs.some(d=>d.id===0)||/^[\t\n\r\f]*$/.test(a.text))return l;if(/^(Latn|Cyrl|Grek|Hebr|Hani|Hira|Kana|Hang|Zyyy|Zinh)$/.test(a.environment.script)){let d=pt(n,a,l,t);if(d)return d}for(let d of mt(q(t,a.text),a.environment.script))if(!(d.hash===a.environment.font.hash&&d.faceIndex===a.environment.font.faceIndex))try{let g={...a,environment:chunkDOHF6FA7_cjs.p({...a.environment,font:d})},u=_(n,g,n.shape(g));if(!u.glyphs.some(c=>c.id===0))return u}catch{}return l};return {...e,shaper:i}}var ee=chunkDOHF6FA7_cjs.b;function te(e){return typeof e.admittedFontFace=="function"}var Jt=Object.freeze([{weight:400,style:"normal"},{weight:700,style:"normal"},{weight:400,style:"italic"},{weight:700,style:"italic"}]);function z(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}var ht=new WeakMap;function j(e){let o=ht.get(e);return o||ht.set(e,o=Qt(e)),o}function Qt(e){let o=e.substitution;return Object.freeze({id:e.id,identity:e.identity,family:e.family,request:z(e.request),byteLength:e.byteLength,hash:e.hash,faceIndex:e.faceIndex,substitution:o?Object.freeze({requested:z(o.requested),resolved:z(o.resolved),...o.lineMetrics?{lineMetrics:Object.freeze({...o.lineMetrics})}:{}}):null})}function eo(e){return Object.freeze({...j(e),bytes:chunkDOHF6FA7_cjs.i(e)})}function to(e,o){if(!e)return null;try{let t=e(o);return !t||t instanceof chunkDOHF6FA7_cjs.d?null:eo(t)}catch{return null}}function gt(e){return o=>{if(e.status()!=="active")throw e.unavailable();return to(e.resolve(),o)}}function oo(e){return Object.freeze(e.slice(0,ee).map(o=>Object.freeze({request:z(o.request),partName:o.partName,reason:o.reason})))}function oe(e,o,t,n,r=[]){let i=new Map;for(let a of [...e,o]){let p=a.toLowerCase();i.has(p)||i.set(p,a);}let s=[...i.values()].map(a=>{let p=[];for(let l of Jt){let d=n?.({family:a,...l});!d||d instanceof chunkDOHF6FA7_cjs.d||p.push(Object.freeze({...l,sourceFamily:d.family,via:d.substitution?"substitution":"direct",identity:d.identity,id:d.id,hash:d.hash,faceIndex:d.faceIndex,substitution:d.substitution}));}return Object.freeze({family:a,coverage:p.length===4?"complete":p.length>0?"partial":"none",faces:Object.freeze(p)})});return Object.freeze({requestedFamilies:Object.freeze([...e]),defaultFamily:o,families:Object.freeze(s),originFailures:Object.freeze([...t]),droppedEmbeddedFonts:oo(r)})}function ne(e,o){if(o.onFontResolution){try{let t=o.onFontResolution(e);Promise.resolve(t).catch(n=>{console.warn("[fonts] font-resolution diagnostics callback failed",n);});}catch(t){console.warn("[fonts] font-resolution diagnostics callback failed",t);}return}for(let t of e.originFailures)console.warn("[fonts] a document export font origin failed and was skipped",t);for(let t of e.droppedEmbeddedFonts??[])console.warn("[fonts] a document embedded font face was dropped during export",t);}function re(e,o,t=[]){let n=l=>l.trim().toLowerCase(),r=new Set([...e.requestedFamilies,e.defaultFamily].map(n)),i=new Set(t.map(l=>n(l.family))),s=l=>{if(!(l instanceof chunkJLVBDYVQ_cjs.l))return true;let d=n(l.request.family);return r.has(d)||!i.has(d)},a=e.originFailures.some(({cause:l})=>l instanceof chunkJLVBDYVQ_cjs.m?l.causes.length===0||l.causes.some(s):s(l));if(o.fontPolicy!=="strict"||!a&&e.families.every(l=>l.coverage==="complete"))return;let p=e.families.filter(l=>l.coverage!=="complete").map(l=>l.family).join(", ");throw new chunkW35WTWAO_cjs.d("layoutFailed",`Strict font policy refused export${p?`; incomplete families: ${p}`:"; a font origin failed"}`)}function H(){return new Map}function X(e,o,t,n){if(t.trim().length===0)return null;let r={family:t,weight:n.bold?700:400,style:n.italic?"italic":"normal"},i=chunkDOHF6FA7_cjs.h(r),s=o.get(i);if(!s){try{s=e.fonts.resolve(r);}catch{return null}o.set(i,s);}return s instanceof chunkDOHF6FA7_cjs.d?null:s}function xt(e,o,t){let n=t.fontFamily??e.defaultFont.family;return X(e,o,n,t)}function ie(e){return typeof e.shapeLaidOutText=="function"}function no(e){for(let o of e){let t=o.codePointAt(0);if(t!==32&&(t<=255||t>=61440&&t<=61695))return false}return true}function ae(e){let o=H(),t=new WeakMap;return n=>{let r=chunkDOHF6FA7_cjs.ua(n.style,n.fontSlot),i=chunkDOHF6FA7_cjs.dd(n)?chunkDOHF6FA7_cjs.ed(n):chunkDOHF6FA7_cjs.ba(n.text,r);if(i.length===0)return null;let s=r.fontFamily??e.defaultFont.family,a=X(e,o,s,r)??(chunkOSFOJTHU_cjs.b(s)&&no(i)?X(e,o,e.defaultFont.family,r):null);if(!a)return null;try{if(r.smallCaps&&!chunkD7ZMDMPX_cjs.$(e.shaper,e.environment,a,r,t))return null;let p=chunkD7ZMDMPX_cjs._(e.shaper,e.environment,a,r,i);return Object.freeze({run:p,font:j(p.fontSpans[0]?.font??a),...p.fontSpans.length>1?{fonts:Object.freeze(p.fontSpans.map(l=>j(l.font)))}:{},fixedPointScale:e.environment.fixedPointScale})}catch{return null}}}function Ft(e){return o=>{if(e.status()!=="active")throw e.unavailable();return e.shaping()?.shapeLaidOutText(o)??null}}var N=new Map,G=new WeakMap,se=0,M,le=32,Et=chunkDOHF6FA7_cjs.c;function bt(){if(M)return M;let e=(async()=>(await chunkD7ZMDMPX_cjs.d(),chunkD7ZMDMPX_cjs.h(chunkD7ZMDMPX_cjs.i)))();return M=e,e.catch(()=>{M===e&&(M=void 0);}),e}function Rt(e){let o=H();return chunkD7ZMDMPX_cjs.ba(e,{resolveFont(t){return xt(e,o,t)},fallback:chunkDOHF6FA7_cjs.ha()})}async function St(e,o,t=[],n=false){if(!chunkD7ZMDMPX_cjs.k(e))throw new TypeError("Session exporter shaping requires a prepared font handle");let r=await bt(),i=yt(await chunkD7ZMDMPX_cjs.r(e,r,chunkD7ZMDMPX_cjs.i,o,n),t);return Object.freeze({createMeasurer:()=>Rt(i),resolveFont:s=>i.fonts.resolve(s),shapeLaidOutText:ae(i),producer:["node-export-session",JSON.stringify(t),e.fingerprint,i.operation.shapingHash,`producer:${i.operation.producerVersion}`,`fallback:${chunkDOHF6FA7_cjs.ga}`].join("|"),extensionFingerprint:e.fingerprint})}function ro(e,o){if(!chunkD7ZMDMPX_cjs.k(e))return Promise.reject(new TypeError("Shared exporter shaping requires a prepared font handle"));let t=G.get(e);if(t)return t;let n=chunkD7ZMDMPX_cjs.m(e),r=N.get(n);if(!r){if(N.size>=le)return Promise.reject(new RangeError(`Shared exporter shaping is limited to ${le} process-wide configurations`));r=(async()=>{let p=chunkD7ZMDMPX_cjs.l(e).sources.reduce((d,g)=>d+(g.availability==="forbidden"?0:g.bytes.byteLength),0);if(se+p>Et)throw new RangeError(`Shared exporter shaping font bytes are limited to ${Et} process-wide`);se+=p;let l;try{let d=await bt();l=await chunkD7ZMDMPX_cjs.r(e,d,chunkD7ZMDMPX_cjs.i,o);}catch(d){throw se-=p,d}return Object.freeze({createMeasurer:()=>Rt(l),shapeLaidOutText:ae(l),shapingHash:l.operation.shapingHash,producerVersion:l.operation.producerVersion})})(),N.set(n,r),r.catch(()=>{N.get(n)===r&&N.delete(n);});}let i=e.fingerprint,s=r.then(a=>Object.freeze({createMeasurer:a.createMeasurer,shapeLaidOutText:a.shapeLaidOutText,producer:["node-export",i,a.shapingHash,`producer:${a.producerVersion}`,`fallback:${chunkDOHF6FA7_cjs.ga}`].join("|"),extensionFingerprint:i}));return G.set(e,s),s.catch(()=>{G.get(e)===s&&G.delete(e);}),s}var io="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable";function ao(e){let o=e.currentPackage(),t=(o.relationships.get(o.mainDocumentPart)??[]).find(r=>r.type===io),n;if(t){let r=chunkOSFOJTHU_cjs.J(t);r.mode==="Internal"&&r.target.ok&&(n=o.parts.get(r.target.partName));}return n??=o.parts.get("/word/fontTable.xml"),chunkOSFOJTHU_cjs.if(o,n)}function Ot(e,o){let t=ao(e);if(t.length!==0)return chunkJLVBDYVQ_cjs.j(n=>{let r=new Set((n.resolvedFaces??[]).map(s=>chunkDOHF6FA7_cjs.h(s))),i=chunkJLVBDYVQ_cjs.C(t,{maxFontBytes:chunkDOHF6FA7_cjs.a,aggregateBudget:so(n),shadowedRequests:r});if(o)for(let s of i.dropped){if(o.dropped.length>=ee)break;o.dropped.push(s);}return {sources:i.sources}})}function so(e){let o=e.committedSourceBytes;return o===void 0||!Number.isSafeInteger(o)||o<=0?chunkDOHF6FA7_cjs.c:Math.max(0,chunkDOHF6FA7_cjs.c-o)}function lo(e){return te(e)&&ie(e)}var w=0,vt=Symbol("font-resolution-timeout");function uo(e){let o=0,t=false;return e?.(w),{reserve:r=>{if(t)throw new Error("Document font-byte lease is already released");if(w+r>chunkDOHF6FA7_cjs.c)throw new chunkW35WTWAO_cjs.d("layoutFailed",`Active document export font bytes are limited to ${chunkDOHF6FA7_cjs.c}; requested ${r} bytes with ${w} bytes already active`);w+=r,o+=r,e?.(w);let i=false;return ()=>{i||t||(i=true,w-=r,o-=r,e?.(w));}},release:()=>{t||(t=true,w-=o,o=0,e?.(w));}}}function ue(e,o){return e.attributes.find(t=>t.localName===o)?.value}function co(e,o){return e.attributes.find(t=>t.localName===o&&(t.namespaceUri===chunkOSFOJTHU_cjs.la||t.namespaceUri===""))?.value}async function po(e,o){if(o.reuseAcrossRevisions===true)throw new TypeError("reuseAcrossRevisions requires a live view or caller-supplied measurer; document-aware byte sessions are immutable");if(o.signal?.aborted)return {ok:false,reason:"aborted"};let t=chunkT6K2QYNZ_cjs.Ba(e);if(!t.ok)return t;let{fonts:n,lastResortFonts:r,fontResolutionTimeoutMs:i,fontPolicy:s,onFontResolution:a,glyphFallbacks:p,documentLigatures:l,...d}=o,g=Array.isArray(n)?n:[n],u=r===void 0?[]:Array.isArray(r)?r:[r],c,y;try{y=await fo(t.view,g,{signal:o.signal,timeoutMs:i??o.resourceTimeoutMs,fontPolicy:s,glyphFallbacks:p,documentLigatures:l,lastResortFonts:u,onFontResolution:E=>(c=E,a?.(E))});}catch(E){if(E instanceof chunkW35WTWAO_cjs.d&&E.code==="aborted")return {ok:false,reason:"aborted"};throw E}if(!c)throw y?.dispose(),new chunkW35WTWAO_cjs.d("layoutFailed","Document font resolution completed without publishing its evidence");let b;try{b=chunkW35WTWAO_cjs.e(t.view,{...d,reuseAcrossRevisions:!1,...y?{measurer:y.createMeasurer(),producer:o.producer??y.producer}:o.producer?{producer:o.producer}:{}});}catch(E){throw y?.dispose(),E}if(!b.ok)return y?.dispose(),b;let R=b.session,f=y,h="active",F=()=>h==="aborted"?new chunkW35WTWAO_cjs.d("aborted","Export resource settlement was aborted"):new chunkW35WTWAO_cjs.d("disposed","Export session has been disposed"),x=E=>{if(h==="active"){h=E,o.signal?.removeEventListener("abort",m);try{R.dispose();}finally{f?.dispose(),f=void 0;}}},m=()=>x("aborted");return o.signal?.addEventListener("abort",m,{once:true}),o.signal?.aborted&&m(),{ok:true,session:Object.freeze({fontResolution:c,layout:()=>h==="active"?R.layout():Promise.reject(F()),layoutFor:E=>h==="active"?R.layoutFor(E):Promise.reject(F()),validatedImageBytes:E=>h==="active"?R.validatedImageBytes(E):null,admittedFontFace:gt({status:()=>h,unavailable:F,resolve:()=>f?.resolveFont}),shapeLaidOutText:Ft({status:()=>h,unavailable:F,shaping:()=>f}),dispose:()=>x("disposed")})}}async function fo(e,o,t={}){if((t.glyphFallbacks?.length??0)>16)throw new RangeError("At most 16 glyph fallback faces are supported");let n=mo(t.timeoutMs),r=new AbortController,i=()=>r.abort(t.signal?.reason);t.signal?.addEventListener("abort",i,{once:true}),t.signal?.aborted&&i();let s=setTimeout(()=>r.abort(vt),n);try{de(r.signal);let a=(async()=>{let p=uo(t.onActiveFontBytesChange),l=!1;try{let d=ho(e).slice(0,chunkJLVBDYVQ_cjs.c),g=chunkJLVBDYVQ_cjs.x(e,d),u=[],c={dropped:[]},y=Ot(e,c),b=[...o,...y?[y]:[],...t.lastResortFonts??[]],R=await chunkJLVBDYVQ_cjs.o(b,{families:[...new Set([...(t.glyphFallbacks??[]).map(x=>x.family),...g.families])].slice(0,chunkJLVBDYVQ_cjs.c),defaultFamily:chunkJLVBDYVQ_cjs.d.family,signal:r.signal},{onOriginFailure:x=>u.push(x),reserveOwnedBytes:p.reserve,maxExecutionFontBytes:chunkD7ZMDMPX_cjs.i.maxFontBytes});de(r.signal);let f=chunkJLVBDYVQ_cjs.z(chunkJLVBDYVQ_cjs.f(R??{}),g);if(f.sources.length===0){let x=oe(d,f.defaultFont.family,u,void 0,c.dropped);ne(x,t),re(x,t,t.glyphFallbacks);return}let h=await St(chunkD7ZMDMPX_cjs.o(f),void 0,t.glyphFallbacks,t.documentLigatures);de(r.signal);let F=oe(d,f.defaultFont.family,u,h.resolveFont,c.dropped);return ne(F,t),re(F,t,t.glyphFallbacks),l=!0,Object.freeze({...h,dispose:p.release})}finally{l||p.release();}})();return await Promise.race([a,yo(r.signal)])}finally{clearTimeout(s),t.signal?.removeEventListener("abort",i);}}function mo(e){if(e===void 0)return 6e4;if(!Number.isFinite(e)||e<=0)throw new RangeError("timeoutMs must be a positive finite number");return Math.max(1,e)}function yo(e){return new Promise((o,t)=>{let n=()=>{t(wt(e));};e.aborted?n():e.addEventListener("abort",n,{once:true});})}function wt(e){let o=e.reason===vt;return new chunkW35WTWAO_cjs.d(o?"timedOut":"aborted",o?"Font resolution timed out":"Font resolution was aborted",o?void 0:{cause:e.reason})}function de(e){if(e.aborted)throw wt(e)}function ho(e){let o=[e.part().root],t=[],n=[],r=new Set([e.part().name]),i=(d,g)=>{!g||r.has(g.name)||(r.add(g.name),d.push(g.root));};for(let d of e.headerFooterPartsBySection()){for(let g of d.headers.values())i(t,g);for(let g of d.footers.values())i(t,g);}for(let d of ["footnote","endnote"])n.push(...go(e,d));let s=e.documentThemeFonts(),a={...s,major:s.major,minor:s.minor,majorEastAsia:s.majorEastAsia??null,minorEastAsia:s.minorEastAsia??null},p=new Map,l=(d,g)=>{let u=chunkBY2ACZZ6_cjs.e(d,e.stylesRoot(),a,Fo(d,g)),c=chunkJLVBDYVQ_cjs.v(d,e.numberingRoot(),e.stylesRoot(),a);for(let y of [...u.direct,...Ro(d),...c,...chunkJLVBDYVQ_cjs.s(d,e.stylesRoot(),a),...u.inherited]){let b=y.toLowerCase();p.has(b)||p.set(b,y);}};return l(o,"body"),l(t,"furniture"),l(n,"note"),[...p.values()]}function go(e,o){let t=chunkOSFOJTHU_cjs.ch(e.currentPackage(),o);if(!t)return [];let n=new Set(chunkOSFOJTHU_cjs.dh(e.part()).filter(i=>i.noteKind===o).map(i=>i.noteId)),r=[];for(let i of t.root.children){if(i.kind==="textValue")continue;let s=chunkOSFOJTHU_cjs.zc(i),a=chunkOSFOJTHU_cjs.yc(i);(s==="separator"||s==="continuationSeparator"||a!==null&&n.has(a))&&r.push(i);}return r}var xo="http://schemas.openxmlformats.org/officeDocument/2006/math";function Fo(e,o){let t=new Set;for(let n of e){let r=[],i=[{node:n,context:o}];for(;i.length>0;){let{node:s,context:a}=i.pop();s.namespaceUri===chunkOSFOJTHU_cjs.la&&s.localName==="p"&&r.push({paragraph:s,context:a});let p=s.namespaceUri===chunkOSFOJTHU_cjs.la&&s.localName==="txbxContent"&&(a==="body"||a==="note")?"detached":a;for(let l=s.children.length-1;l>=0;l-=1){let d=s.children[l];d.kind!=="textValue"&&i.push({node:d,context:p});}}for(let s of r)Eo(s.paragraph,t,s.context);}return t}function Eo(e,o,t){let n=chunkDOHF6FA7_cjs.Vb(),r=null,i=null,s="",a=false,p=false,l=false,d=0,g=[];for(let u=e.children.length-1;u>=0;u-=1){let c=e.children[u];c.kind!=="textValue"&&g.push({node:c,runId:null,visibility:D,containerDepth:0});}for(;g.length>0;){let{node:u,runId:c,visibility:y,containerDepth:b}=g.pop();if(b>=chunkOSFOJTHU_cjs.wa||u.namespaceUri===chunkOSFOJTHU_cjs.la&&u.localName==="p")continue;let R=u.namespaceUri===chunkOSFOJTHU_cjs.la&&u.localName==="r"?u.id:c;if(u.namespaceUri===chunkOSFOJTHU_cjs.la&&u.localName==="fldSimple"){let f=ue(u,"instr")??"";chunkDOHF6FA7_cjs.Yc(f,{allowPageFields:t==="body"||t==="furniture",allowRefFields:t==="body"||t==="note",allowPageRef:t==="body",allowAutonum:t==="body"||t==="note"})&&bo(u)!==D&&o.add(u.id);}if(u.namespaceUri===chunkOSFOJTHU_cjs.la&&u.localName==="fldChar"){let f=ue(u,"fldCharType");if(f==="begin")chunkDOHF6FA7_cjs.Yb(n),n.nesting===1&&(r=R,i=null,s="",a=false,p=false,l=chunkOSFOJTHU_cjs.Bf(u),d=0);else if(f==="separate"){let h=n.nesting===1;if(chunkDOHF6FA7_cjs._b(n),h){let F=chunkDOHF6FA7_cjs.Xb(n);s=F.instruction,a=F.overflow||n.nestingOverflow,i=R,p=true;}}else if(f==="end"){if(n.nesting===1){if(n.phase==="instruction"){let F=chunkDOHF6FA7_cjs.Xb(n);s=F.instruction,a=F.overflow||n.nestingOverflow;}if(!a&&chunkDOHF6FA7_cjs.Xc(s,{hasSeparate:p,hasLegacyFormData:l,allowPageFields:t==="body"||t==="furniture",allowRefFields:t==="body"||t==="note",allowPageRef:t==="body",allowAutonum:t==="body"||t==="note"})&&d!==D){let F=i??r;F&&o.add(F);}}chunkDOHF6FA7_cjs.$b(n);}continue}if(u.namespaceUri===chunkOSFOJTHU_cjs.la&&(u.localName==="instrText"||u.localName==="delInstrText")){chunkDOHF6FA7_cjs.Zb(n,Dt(u),u.localName==="delInstrText");continue}n.nesting>0&&chunkDOHF6FA7_cjs.ac(n)&&u.namespaceUri===chunkOSFOJTHU_cjs.la&&At(u)&&(d|=y);for(let f=u.children.length-1;f>=0;f-=1){let h=u.children[f];h.kind!=="textValue"&&g.push({node:h,runId:R,visibility:y&Pt(u),containerDepth:chunkOSFOJTHU_cjs.xa(u,b)});}}chunkDOHF6FA7_cjs.Wb(n);}function At(e){return e.localName==="t"||e.localName==="delText"?Dt(e).length>0:e.localName==="sym"||e.localName==="tab"||e.localName==="br"}var ce=1,Tt=2,Lt=4,D=ce|Tt|Lt;function bo(e){let o=[];for(let n of e.children)n.kind!=="textValue"&&o.push({node:n,visibility:D});let t=0;for(;o.length>0;){let{node:n,visibility:r}=o.pop();if(!(n.namespaceUri===chunkOSFOJTHU_cjs.la&&n.localName==="p")){if(n.namespaceUri===chunkOSFOJTHU_cjs.la&&At(n)&&(t|=r,t===D))return t;for(let i of n.children)i.kind!=="textValue"&&o.push({node:i,visibility:r&Pt(n)});}}return t}function Pt(e){return e.namespaceUri!==chunkOSFOJTHU_cjs.la?D:e.localName==="ins"||e.localName==="moveTo"?ce|Tt:e.localName==="del"||e.localName==="moveFrom"?ce|Lt:D}function Ro(e){let o=new Map,t=n=>{let r=chunkBY2ACZZ6_cjs.b(n??void 0);if(r===null)return;let i=r.toLowerCase();o.has(i)||o.set(i,r);};for(let n of e){let r=[n];for(;r.length>0;){let i=r.pop();if(i.namespaceUri===xo&&t(chunkDOHF6FA7_cjs.$c),i.namespaceUri===chunkOSFOJTHU_cjs.la&&i.localName==="sym"&&t(chunkBY2ACZZ6_cjs.c(co(i,"font"))),i.namespaceUri===chunkOSFOJTHU_cjs.la&&i.localName==="fldSimple"){let s=ue(i,"instr");t(chunkDOHF6FA7_cjs.Wc(s??"")?.font??null);}if(i.namespaceUri===chunkOSFOJTHU_cjs.la&&i.localName==="p")for(let s of chunkJLVBDYVQ_cjs.u(i))t(s);for(let s=i.children.length-1;s>=0;s-=1){let a=i.children[s];a.kind!=="textValue"&&r.push(a);}}}return [...o.values()]}function Dt(e){let o="",t=[...e.children].reverse();for(;t.length>0&&o.length<=256;){let n=t.pop();if(n.kind==="textValue")o+=n.value;else for(let r=n.children.length-1;r>=0;r-=1)t.push(n.children[r]);}return o}var _t="FILE_TOO_LARGE",kt=8;function So(e){return typeof e=="object"&&e!==null}function Nt(e){if(!(!So(e)||typeof e.code!="string"))return e.code}function Mt(e){return e===""||e.toLowerCase()==="localhost"}function Oo(e){try{let o=decodeURIComponent(e);return o.includes("\0")?null:o}catch{return null}}function Ct(e){let o=Oo(e);if(o===null)return null;let t=[];for(let n of o.split(/[/\\]/))if(!(n===""||n===".")){if(n===".."){if(t.length===0)return null;t.pop();continue}t.push(n);}return `/${t.join("/")}`}function Ut(e){let o=Ct(e);return o===null?null:o.endsWith("/")?o:`${o}/`}function vo(e){return e==="/"||/^\/[A-Za-z]:\/$/.test(e)}function wo(e){let o;try{o=typeof e=="string"?new URL(e):new URL("href"in e?e.href:String(e));}catch{throw new TypeError("trustedRoot must be an absolute file: URL")}if(o.protocol!=="file:")throw new TypeError("trustedRoot must use the file: protocol");if(o.username!==""||o.password!=="")throw new TypeError("trustedRoot must not include credentials");if(!Mt(o.host))throw new TypeError("trustedRoot must be a local file: URL");let t=Ut(o.pathname);if(t===null||vo(t))throw new TypeError("trustedRoot must be a directory inside the filesystem");let n=new URL("file:///");return n.pathname=t,n}function Ao(e){if(typeof e=="string")return [e];if(typeof e=="object"&&e!==null&&"href"in e)return [e];if(Array.isArray(e))return e;throw new TypeError("trustedRoot must be an absolute file: URL")}function To(e){let o=Ao(e);if(o.length===0)throw new TypeError("trustedRoot must name at least one directory");if(o.length>kt)throw new TypeError(`trustedRoot must not exceed ${kt} directories`);return o.map(wo)}function Lo(e){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError("maxBytes must be a positive safe integer");if(e>chunkDOHF6FA7_cjs.a)throw new TypeError(`maxBytes must not exceed ${chunkDOHF6FA7_cjs.a}`);return e}function Po(e,o){if(e.protocol!=="file:"||e.username!==""||e.password!==""||!Mt(e.host))return null;let t=Ct(e.pathname);if(t===null)return null;for(let n of o){let r=Ut(n.pathname);if(r===null||!t.startsWith(r)||t.length<=r.length)continue;let i=new URL("file:///");return i.pathname=t,i}return null}function Do(e){return typeof e=="string"?new URL(e):"href"in e&&typeof e.href=="string"?new URL(e.href):new URL("url"in e?e.url:String(e))}function ko(e,o,t){let n=t.relative(t.resolve(e),t.resolve(o));return n!==""&&!n.startsWith("..")&&!t.isAbsolute(n)}function It(e,o,t){return e.some(n=>ko(n,o,t))}async function Io(e,o){let t=[];for(let n of e)try{t.push(await o(n));}catch(r){if(Nt(r)==="ENOENT")continue;throw r}return t}function _o(e){return async(o,{signal:t,maxBytes:n})=>{if(t?.aborted)throw t.reason;let[{open:r,realpath:i},{constants:s},{fileURLToPath:a},p]=await Promise.all([import('fs/promises'),import('fs'),import('url'),import('path')]),l=e.map(y=>p.resolve(a(y.href))),d=p.resolve(a(typeof o=="string"?o:o.href));if(!It(l,d,p))throw Object.assign(new Error("packaged file is outside trustedRoot"),{code:"ENOENT"});let g=typeof s.O_NOFOLLOW=="number"?s.O_RDONLY|s.O_NOFOLLOW:"r",u=await r(d,g),c=()=>{u.close();};t?.addEventListener("abort",c,{once:true});try{if(t?.aborted)throw t.reason;let y=await i(d);if(!It(await Io(l,i),y,p))throw Object.assign(new Error("packaged file is outside trustedRoot"),{code:"ENOENT"});let b=(await u.stat()).size;if(!Number.isSafeInteger(b)||b<0||b>n)throw Object.assign(new Error("packaged file exceeds maxBytes"),{code:_t});let R=new Uint8Array(b),f=0;for(;f<R.byteLength;){if(t?.aborted)throw t.reason;let{bytesRead:h}=await u.read(R,f,R.byteLength-f,f);if(h===0)break;f+=h;}if(t?.aborted)throw t.reason;return f===R.byteLength?R:R.slice(0,f)}catch(y){throw t?.aborted?t.reason:y}finally{t?.removeEventListener("abort",c),await u.close().catch(()=>{});}}}function No(e){if(e===null||typeof e!="object")throw new TypeError("createPackagedFileFetch requires trustedRoot and maxBytes");if(e.trustedRoot===void 0||e.maxBytes===void 0)throw new TypeError("createPackagedFileFetch requires trustedRoot and maxBytes");let o=To(e.trustedRoot),t=Lo(e.maxBytes),n=e.read??_o(o),r=e.networkFetch??fetch;return(async(i,s)=>{let a=s?.signal;if(a?.aborted)throw a.reason;let p=Do(i);if(p.protocol!=="file:")return r(p,s);let l=Po(p,o);if(!l)return new Response(null,{status:404});let d=a?new AbortController:void 0,g=()=>d?.abort(a?.reason);a?.addEventListener("abort",g,{once:true});let u;try{if(u=await n(l,{maxBytes:t,...d?{signal:d.signal}:{}}),a?.aborted)throw a.reason;if(u.byteLength>t)return new Response(null,{status:413})}catch(c){if(a?.aborted)throw a.reason;if(d?.signal.aborted)throw d.signal.reason??c;if(c instanceof DOMException&&c.name==="AbortError"||c instanceof Error&&c.name==="AbortError")throw c;let y=Nt(c);if(y===_t)return new Response(null,{status:413});if(y==="ENOENT"||y==="ENOTDIR"||y==="ELOOP")return new Response(null,{status:404});throw c}finally{a?.removeEventListener("abort",g);}return new Response(u,{status:200})})}
2
- Object.defineProperty(exports,"ExportResourceError",{enumerable:true,get:function(){return chunkW35WTWAO_cjs.d}});Object.defineProperty(exports,"createNodeImageDecodePort",{enumerable:true,get:function(){return chunkW35WTWAO_cjs.c}});Object.defineProperty(exports,"exportDestinationNamed",{enumerable:true,get:function(){return chunkW35WTWAO_cjs.b}});Object.defineProperty(exports,"openDocumentForExport",{enumerable:true,get:function(){return chunkW35WTWAO_cjs.e}});exports.MAX_SHARED_EXPORT_SHAPING_CONFIGURATIONS=le;exports.acquireSharedExportShaping=ro;exports.createPackagedFileFetch=No;exports.hasExportAdmittedFont=te;exports.hasExportLaidOutText=ie;exports.hasFontBackedExportCapabilities=lo;exports.openFontBackedDocumentForExport=po;
1
+ 'use strict';var chunkERECKTIR_cjs=require('./chunk-ERECKTIR.cjs'),chunkJC47NRJC_cjs=require('./chunk-JC47NRJC.cjs'),chunkHYASLE2G_cjs=require('./chunk-HYASLE2G.cjs'),chunkQFKGI242_cjs=require('./chunk-QFKGI242.cjs'),chunkFLBEJC6X_cjs=require('./chunk-FLBEJC6X.cjs');require('./chunk-5RRAZMBU.cjs');var chunkYBMWBXST_cjs=require('./chunk-YBMWBXST.cjs'),chunkPWTRJSES_cjs=require('./chunk-PWTRJSES.cjs');function M(e,o,t){if(o.environment.features.smcp!==1||!/\p{Ll}/u.test(o.text))return t;let n={...o,environment:{...o.environment,features:{...o.environment.features,smcp:0}}},a=e.shape(n);if(t.glyphs.length!==a.glyphs.length||t.glyphs.some((d,c)=>d.id!==a.glyphs[c]?.id))return t;let r=[],s=0;for(let d of o.text){let c=d.toUpperCase()!==d,y=r.at(-1);y&&(y.lower===c||/\p{M}/u.test(d))?y.text+=d:r.push({text:d,start:s,lower:c}),s+=d.length;}let i=[],p=[],l=[],u=true,h=0;for(let d of o.environment.direction==="rtl"?r.reverse():r){let c=d.lower?.8:1,y=[],E=[],b="",f=d.start;for(let F of d.text){let m=d.lower?F.toUpperCase():F;for(let S=0;S<m.length;S++)y.push(f),E.push(f+F.length);b+=m,f+=F.length;}let g=e.shape({...n,text:b}),x=i.length;for(let[F,m]of g.glyphs.entries()){let S=g.exactAdvancesX?.[F];S===void 0?u=false:l.push(S*c),i.push({...m,cluster:y[m.cluster]??d.start,originX:chunkQFKGI242_cjs.n(h+Math.round(m.originX*c)),originY:chunkQFKGI242_cjs.n(Math.round(m.originY*c)),offsetX:chunkQFKGI242_cjs.n(Math.round(m.offsetX*c)),offsetY:chunkQFKGI242_cjs.n(Math.round(m.offsetY*c)),advanceX:chunkQFKGI242_cjs.n(Math.round(m.advanceX*c)),advanceY:chunkQFKGI242_cjs.n(Math.round(m.advanceY*c)),drawScale:c});}for(let F of g.clusters){let m=y[F.textStart]??d.start,S=E[F.textEnd-1]??f,R=chunkQFKGI242_cjs.n(Math.round(F.advance*c)),T=p.at(-1);T&&T.textStart===m&&T.textEnd===S?p[p.length-1]={...T,glyphEnd:x+F.glyphEnd,advance:chunkQFKGI242_cjs.n(T.advance+R),caretEdges:[chunkQFKGI242_cjs.n(0),chunkQFKGI242_cjs.n(T.advance+R)]}:p.push({...F,textStart:m,textEnd:S,glyphStart:x+F.glyphStart,glyphEnd:x+F.glyphEnd,advance:R,caretEdges:F.caretEdges.map(V=>chunkQFKGI242_cjs.n(Math.round(V*c))),fontSpan:0});}h+=g.glyphs.reduce((F,m)=>F+Math.round(m.advanceX*c),0);}return {...t,glyphs:i,clusters:p,fontSpans:[{...t.fontSpans[0],glyphStart:0,glyphEnd:i.length}],exactAdvancesX:u&&l.length===i.length?l:void 0}}var ut=new WeakMap;function Ht(e){let o=ut.get(e);return o===void 0&&(o=Vt(e.bytes,e.faceIndex),ut.set(e,o)),o}var Xt=new Set(["COLR","CBDT","sbix"]),Gt=512;function Vt(e,o){let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e.byteLength<12)return false;let n=0;if(pt(e,0)==="ttcf"){let r=t.getUint32(8);if(o<0||o>=r||12+4*o+4>e.byteLength||(n=t.getUint32(12+4*o),n+12>e.byteLength))return false}let a=Math.min(t.getUint16(n+4),Gt);for(let r=0;r<a;r++){let s=n+12+r*16;if(s+4>e.byteLength)return false;if(Xt.has(pt(e,s)))return true}return false}function pt(e,o){return String.fromCharCode(e[o],e[o+1],e[o+2],e[o+3])}var Wt=/\p{Emoji_Presentation}|️/u;function Yt(e){return Wt.test(e)}function z(e,o){if(e.length<2)return e;let t=e.filter(Ht);if(t.length===0||t.length===e.length)return e;let n=e.filter(a=>!t.includes(a));return Yt(o)?[...t,...n]:[...n,...t]}var $t=2048;function ft(e,o,t,n){if(!t.clusters.length||t.clusters.length>$t)return null;let a=(f,g)=>{let{context:x,...F}=o,m={...F,text:g,environment:chunkQFKGI242_cjs.p({...o.environment,font:f})};return M(e,m,e.shape(m))},r=[],s=new Map;for(let f of [...t.clusters].sort((g,x)=>g.textStart-x.textStart)){let g=o.environment.font,x=o.text.slice(f.textStart,f.textEnd),F=r.at(-1);if(/^[\uFE0E\uFE0F]$/.test(x)&&F&&F.end===f.textStart){F.end=f.textEnd;continue}if(o.environment.script==="Hebr"&&/^\s+$/u.test(x)&&F&&F.font!==o.environment.font&&F.end===f.textStart){F.end=f.textEnd;continue}if(t.glyphs.slice(f.glyphStart,f.glyphEnd).some(S=>S.id===0)){let S=o.text.slice(f.textStart,f.textEnd+1),R=s.get(x)??z(n,S).find(T=>{try{return !a(T,x).glyphs.some(V=>V.id===0)}catch{return false}});if(!R)return null;s.set(x,R),g=R;}let m=r.at(-1);m&&m.font===g&&m.end===f.textStart?m.end=f.textEnd:r.push({start:f.textStart,end:f.textEnd,font:g});}let i=[],p=[],l=[],u=[],h=true,d=0,c=0,y=0,E=0,b=0;for(let f of o.environment.direction==="rtl"?r.reverse():r){let g=a(f.font,o.text.slice(f.start,f.end));if(g.glyphs.some(m=>m.id===0))return null;let x=i.length,F=l.length;for(let m of g.glyphs)i.push({...m,cluster:f.start+m.cluster,originX:chunkQFKGI242_cjs.n(d+m.originX),originY:chunkQFKGI242_cjs.n(c+m.originY)});if(g.exactAdvancesX===void 0)h=false;else for(let m of g.exactAdvancesX)u.push(m);for(let m of g.clusters)p.push({...m,textStart:f.start+m.textStart,textEnd:f.start+m.textEnd,glyphStart:x+m.glyphStart,glyphEnd:x+m.glyphEnd,fontSpan:F});g.glyphs.length&&l.push({font:f.font,glyphStart:x,glyphEnd:i.length,fallbackIndex:f.font===o.environment.font?null:n.indexOf(f.font)}),d+=g.glyphs.reduce((m,S)=>m+S.advanceX,0),c+=g.glyphs.reduce((m,S)=>m+S.advanceY,0),y=Math.max(y,g.metrics.ascent),E=Math.max(E,g.metrics.descent),b=Math.max(b,g.metrics.lineGap);}return chunkQFKGI242_cjs.s({...t,glyphs:i,clusters:p,fontSpans:l,exactAdvancesX:h&&u.length===i.length?u:void 0,metrics:{ascent:chunkQFKGI242_cjs.n(y),descent:chunkQFKGI242_cjs.n(E),lineGap:chunkQFKGI242_cjs.n(b)}},{...o.environment,fallbackOrder:n})}var Kt=new Map([["Beng",["bng2","beng"]],["Deva",["dev2","deva"]],["Gujr",["gjr2","gujr"]],["Guru",["gur2","guru"]],["Knda",["knd2","knda"]],["Mlym",["mlm2","mlym"]],["Orya",["ory2","orya"]],["Taml",["tml2","taml"]],["Telu",["tel2","telu"]],["Nkoo",["nko "]]]),Zt=512,mt=new WeakMap;function Jt(e,o){let t=new Set,n=new DataView(e.buffer,e.byteOffset,e.byteLength),a=c=>c+2<=n.byteLength?n.getUint16(c):-1,r=c=>c+4<=n.byteLength?n.getUint32(c):-1,s=c=>c+4<=n.byteLength?String.fromCharCode(n.getUint8(c),n.getUint8(c+1),n.getUint8(c+2),n.getUint8(c+3)):"",i=0;if(s(0)==="ttcf"){let c=r(8);if(c<0||o<0||o>=c||(i=r(12+o*4),i<0))return t}let p=a(i+4);if(p<0||p>1024)return t;let l=-1;for(let c=0;c<p;c+=1){let y=i+12+c*16;if(s(y)==="GSUB"){l=r(y+8);break}}if(l<0)return t;let u=a(l+4);if(u<=0)return t;let h=l+u,d=a(h);if(d<0)return t;for(let c=0;c<Math.min(d,Zt);c+=1){let y=s(h+2+c*6);y&&t.add(y);}return t}function Qt(e,o){let t=mt.get(e);return t||(t=Jt(e.bytes,e.faceIndex),mt.set(e,t)),(Kt.get(o)??[o.toLowerCase()]).some(a=>t.has(a))}function yt(e,o){let t=e.filter(n=>Qt(n,o));return t.length===0||t.length===e.length?e:[...t,...e.filter(n=>!t.includes(n))]}function Q(e,o,t){if(!o.text.includes("\u2011"))return t;let n=new Set(t.glyphs.filter(r=>r.id===0).map(r=>r.cluster));if(!n.size)return t;let a=o.text.replace(/\u2011/g,(r,s)=>n.has(s)?"-":r);if(a===o.text)return t;try{let r=e.shape({...o,text:a});return chunkQFKGI242_cjs.s({...r,text:o.text},o.environment)}catch{return t}}function ht(e,o){if(o.length===0)return e;if(o.length>16)throw new RangeError("At most 16 glyph fallback faces are supported");let t=o.map(i=>e.fonts.resolve(i)).filter(i=>!(i instanceof chunkQFKGI242_cjs.d)),n={shape(i){return Q(e.shaper,i,e.shaper.shape(i))}},a=new WeakMap,r={shape(i){let p=e.shaper.shape(i),l=a.get(p);if(l&&l.input.text===i.text&&l.input.fontSizeHalfPoints===i.fontSizeHalfPoints&&l.input.bidiLevel===i.bidiLevel&&l.input.context?.before===i.context?.before&&l.input.context?.after===i.context?.after&&l.input.environment===i.environment)return l.run;let u=s(i,Q(e.shaper,i,p));return a.set(p,{input:i,run:u}),u}},s=(i,p)=>{let l=M(n,i,p);if(!l.glyphs.some(u=>u.id===0)||/^[\t\n\r\f]*$/.test(i.text))return l;if(/^(Latn|Cyrl|Grek|Hebr|Hani|Hira|Kana|Hang|Zyyy|Zinh)$/.test(i.environment.script)){let u=ft(n,i,l,t);if(u)return u}for(let u of yt(z(t,i.text),i.environment.script))if(!(u.hash===i.environment.font.hash&&u.faceIndex===i.environment.font.faceIndex))try{let h={...i,environment:chunkQFKGI242_cjs.p({...i.environment,font:u})},d=M(n,h,n.shape(h));if(!d.glyphs.some(c=>c.id===0))return d}catch{}return l};return {...e,shaper:r}}var ee=chunkQFKGI242_cjs.b;function te(e){return typeof e.admittedFontFace=="function"}var eo=Object.freeze([{weight:400,style:"normal"},{weight:700,style:"normal"},{weight:400,style:"italic"},{weight:700,style:"italic"}]);function j(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}var gt=new WeakMap;function H(e){let o=gt.get(e);return o||gt.set(e,o=to(e)),o}function to(e){let o=e.substitution;return Object.freeze({id:e.id,identity:e.identity,family:e.family,request:j(e.request),byteLength:e.byteLength,hash:e.hash,faceIndex:e.faceIndex,substitution:o?Object.freeze({requested:j(o.requested),resolved:j(o.resolved),...o.lineMetrics?{lineMetrics:Object.freeze({...o.lineMetrics})}:{}}):null})}function oo(e){return Object.freeze({...H(e),bytes:chunkQFKGI242_cjs.i(e)})}function no(e,o){if(!e)return null;try{let t=e(o);return !t||t instanceof chunkQFKGI242_cjs.d?null:oo(t)}catch{return null}}function xt(e){return o=>{if(e.status()!=="active")throw e.unavailable();return no(e.resolve(),o)}}function ro(e){return Object.freeze(e.slice(0,ee).map(o=>Object.freeze({request:j(o.request),partName:o.partName,reason:o.reason})))}function oe(e,o,t,n,a=[]){let r=new Map;for(let i of [...e,o]){let p=i.toLowerCase();r.has(p)||r.set(p,i);}let s=[...r.values()].map(i=>{let p=[];for(let l of eo){let u=n?.({family:i,...l});!u||u instanceof chunkQFKGI242_cjs.d||p.push(Object.freeze({...l,sourceFamily:u.family,via:u.substitution?"substitution":"direct",identity:u.identity,id:u.id,hash:u.hash,faceIndex:u.faceIndex,substitution:u.substitution}));}return Object.freeze({family:i,coverage:p.length===4?"complete":p.length>0?"partial":"none",faces:Object.freeze(p)})});return Object.freeze({requestedFamilies:Object.freeze([...e]),defaultFamily:o,families:Object.freeze(s),originFailures:Object.freeze([...t]),droppedEmbeddedFonts:ro(a)})}function ne(e,o){if(o.onFontResolution){try{let t=o.onFontResolution(e);Promise.resolve(t).catch(n=>{console.warn("[fonts] font-resolution diagnostics callback failed",n);});}catch(t){console.warn("[fonts] font-resolution diagnostics callback failed",t);}return}for(let t of e.originFailures)console.warn("[fonts] a document export font origin failed and was skipped",t);for(let t of e.droppedEmbeddedFonts??[])console.warn("[fonts] a document embedded font face was dropped during export",t);}function re(e,o,t=[]){let n=l=>l.trim().toLowerCase(),a=new Set([...e.requestedFamilies,e.defaultFamily].map(n)),r=new Set(t.map(l=>n(l.family))),s=l=>{if(!(l instanceof chunkERECKTIR_cjs.l))return true;let u=n(l.request.family);return a.has(u)||!r.has(u)},i=e.originFailures.some(({cause:l})=>l instanceof chunkERECKTIR_cjs.m?l.causes.length===0||l.causes.some(s):s(l));if(o.fontPolicy!=="strict"||!i&&e.families.every(l=>l.coverage==="complete"))return;let p=e.families.filter(l=>l.coverage!=="complete").map(l=>l.family).join(", ");throw new chunkHYASLE2G_cjs.d("layoutFailed",`Strict font policy refused export${p?`; incomplete families: ${p}`:"; a font origin failed"}`)}function X(){return new Map}function G(e,o,t,n){if(t.trim().length===0)return null;let a={family:t,weight:n.bold?700:400,style:n.italic?"italic":"normal"},r=chunkQFKGI242_cjs.h(a),s=o.get(r);if(!s){try{s=e.fonts.resolve(a);}catch{return null}o.set(r,s);}return s instanceof chunkQFKGI242_cjs.d?null:s}function Ft(e,o,t){let n=t.fontFamily??e.defaultFont.family;return G(e,o,n,t)}function ie(e){return typeof e.shapeLaidOutText=="function"}function io(e){for(let o of e){let t=o.codePointAt(0);if(t!==32&&(t<=255||t>=61440&&t<=61695))return false}return true}function ae(e){let o=X(),t=new WeakMap;return n=>{let a=chunkQFKGI242_cjs.ua(n.style,n.fontSlot),r=chunkQFKGI242_cjs.ed(n)?chunkQFKGI242_cjs.fd(n):chunkQFKGI242_cjs.ba(n.text,a);if(r.length===0)return null;let s=a.fontFamily??e.defaultFont.family,i=G(e,o,s,a)??(chunkPWTRJSES_cjs.b(s)&&io(r)?G(e,o,e.defaultFont.family,a):null);if(!i)return null;try{if(a.smallCaps&&!chunkJC47NRJC_cjs.aa(e.shaper,e.environment,i,a,t))return null;let p=chunkJC47NRJC_cjs.$(e.shaper,e.environment,i,a,r);return Object.freeze({run:p,font:H(p.fontSpans[0]?.font??i),...p.fontSpans.length>1?{fonts:Object.freeze(p.fontSpans.map(l=>H(l.font)))}:{},fixedPointScale:e.environment.fixedPointScale})}catch{return null}}}function Et(e){return o=>{if(e.status()!=="active")throw e.unavailable();return e.shaping()?.shapeLaidOutText(o)??null}}var N=new Map,bt=new WeakMap,se=0,C;var le=32,Rt=chunkQFKGI242_cjs.c;function St(){if(C)return C;let e=(async()=>(await chunkJC47NRJC_cjs.d(),chunkJC47NRJC_cjs.h({...chunkJC47NRJC_cjs.i,maxFontBytes:chunkQFKGI242_cjs.a})))();return C=e,e.catch(()=>{C===e&&(C=void 0);}),e}function Ot(e){let o=X();return chunkJC47NRJC_cjs.ca(e,{resolveFont(t){return Ft(e,o,t)},fallback:chunkQFKGI242_cjs.ha()})}async function vt(e,o,t=[],n=false,a){if(!chunkJC47NRJC_cjs.m(e))throw new TypeError("Session exporter shaping requires a prepared font handle");let r=chunkJC47NRJC_cjs.k(a,chunkJC47NRJC_cjs.i),s=await St(),i=ht(await chunkJC47NRJC_cjs.t(e,s,r,o,n),t);return Object.freeze({createMeasurer:()=>Ot(i),resolveFont:p=>i.fonts.resolve(p),shapeLaidOutText:ae(i),producer:["node-export-session",JSON.stringify(t),e.fingerprint,i.operation.shapingHash,`producer:${i.operation.producerVersion}`,`fallback:${chunkQFKGI242_cjs.ga}`].join("|"),extensionFingerprint:e.fingerprint})}function ao(e,o,t){if(!chunkJC47NRJC_cjs.m(e))return Promise.reject(new TypeError("Shared exporter shaping requires a prepared font handle"));let n=chunkJC47NRJC_cjs.k(t,chunkJC47NRJC_cjs.i),a=chunkJC47NRJC_cjs.j(n),r=bt.get(e),s=r?.get(a);if(s)return s;let i=`${chunkJC47NRJC_cjs.o(e)}|${a}`,p=N.get(i);if(!p){if(N.size>=le)return Promise.reject(new RangeError(`Shared exporter shaping is limited to ${le} process-wide configurations`));p=(async()=>{let d=chunkJC47NRJC_cjs.n(e).sources.reduce((y,E)=>y+(E.availability==="forbidden"?0:E.bytes.byteLength),0);if(se+d>Rt)throw new RangeError(`Shared exporter shaping font bytes are limited to ${Rt} process-wide`);se+=d;let c;try{let y=await St();c=await chunkJC47NRJC_cjs.t(e,y,n,o);}catch(y){throw se-=d,y}return Object.freeze({createMeasurer:()=>Ot(c),shapeLaidOutText:ae(c),shapingHash:c.operation.shapingHash,producerVersion:c.operation.producerVersion})})(),N.set(i,p),p.catch(()=>{N.get(i)===p&&N.delete(i);});}let l=e.fingerprint,u=p.then(h=>Object.freeze({createMeasurer:h.createMeasurer,shapeLaidOutText:h.shapeLaidOutText,producer:["node-export",l,h.shapingHash,`producer:${h.producerVersion}`,`fallback:${chunkQFKGI242_cjs.ga}`].join("|"),extensionFingerprint:l}));return r||bt.set(e,r=new Map),r.set(a,u),u.catch(()=>{r?.get(a)===u&&r.delete(a);}),u}var so="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable";function lo(e){let o=e.currentPackage(),t=(o.relationships.get(o.mainDocumentPart)??[]).find(a=>a.type===so),n;if(t){let a=chunkPWTRJSES_cjs.J(t);a.mode==="Internal"&&a.target.ok&&(n=o.parts.get(a.target.partName));}return n??=o.parts.get("/word/fontTable.xml"),chunkPWTRJSES_cjs.if(o,n)}function wt(e,o){let t=lo(e);if(t.length!==0)return chunkERECKTIR_cjs.j(n=>{let a=new Set((n.resolvedFaces??[]).map(s=>chunkQFKGI242_cjs.h(s))),r=chunkERECKTIR_cjs.C(t,{maxFontBytes:chunkQFKGI242_cjs.a,aggregateBudget:co(n),shadowedRequests:a});if(o)for(let s of r.dropped){if(o.dropped.length>=ee)break;o.dropped.push(s);}return {sources:r.sources}})}function co(e){let o=e.committedSourceBytes;return o===void 0||!Number.isSafeInteger(o)||o<=0?chunkQFKGI242_cjs.c:Math.max(0,chunkQFKGI242_cjs.c-o)}function uo(e){return te(e)&&ie(e)}var A=0,At=Symbol("font-resolution-timeout");function po(e){let o=0,t=false;return e?.(A),{reserve:a=>{if(t)throw new Error("Document font-byte lease is already released");if(A+a>chunkQFKGI242_cjs.c)throw new chunkHYASLE2G_cjs.d("layoutFailed",`Active document export font bytes are limited to ${chunkQFKGI242_cjs.c}; requested ${a} bytes with ${A} bytes already active`);A+=a,o+=a,e?.(A);let r=false;return ()=>{r||t||(r=true,A-=a,o-=a,e?.(A));}},release:()=>{t||(t=true,A-=o,o=0,e?.(A));}}}function ce(e,o){return e.attributes.find(t=>t.localName===o)?.value}function fo(e,o){return e.attributes.find(t=>t.localName===o&&(t.namespaceUri===chunkPWTRJSES_cjs.la||t.namespaceUri===""))?.value}async function mo(e,o){if(o.reuseAcrossRevisions===true)throw new TypeError("reuseAcrossRevisions requires a live view or caller-supplied measurer; document-aware byte sessions are immutable");if(o.signal?.aborted)return {ok:false,reason:"aborted"};let t=chunkYBMWBXST_cjs.Ca(e);if(!t.ok)return t;let{fonts:n,lastResortFonts:a,fontResolutionTimeoutMs:r,fontPolicy:s,onFontResolution:i,glyphFallbacks:p,documentLigatures:l,fontShaping:u,...h}=o,d=Array.isArray(n)?n:[n],c=a===void 0?[]:Array.isArray(a)?a:[a],y,E;try{E=await yo(t.view,d,{signal:o.signal,timeoutMs:r??o.resourceTimeoutMs,fontPolicy:s,glyphFallbacks:p,documentLigatures:l,fontShaping:u,lastResortFonts:c,onFontResolution:R=>(y=R,i?.(R))});}catch(R){if(R instanceof chunkHYASLE2G_cjs.d&&R.code==="aborted")return {ok:false,reason:"aborted"};throw R}if(!y)throw E?.dispose(),new chunkHYASLE2G_cjs.d("layoutFailed","Document font resolution completed without publishing its evidence");let b;try{b=chunkHYASLE2G_cjs.e(t.view,{...h,reuseAcrossRevisions:!1,...E?{measurer:E.createMeasurer(),producer:o.producer??E.producer}:o.producer?{producer:o.producer}:{}});}catch(R){throw E?.dispose(),R}if(!b.ok)return E?.dispose(),b;let f=b.session,g=E,x="active",F=()=>x==="aborted"?new chunkHYASLE2G_cjs.d("aborted","Export resource settlement was aborted"):new chunkHYASLE2G_cjs.d("disposed","Export session has been disposed"),m=R=>{if(x==="active"){x=R,o.signal?.removeEventListener("abort",S);try{f.dispose();}finally{g?.dispose(),g=void 0;}}},S=()=>m("aborted");return o.signal?.addEventListener("abort",S,{once:true}),o.signal?.aborted&&S(),{ok:true,session:Object.freeze({fontResolution:y,layout:()=>x==="active"?f.layout():Promise.reject(F()),layoutFor:R=>x==="active"?f.layoutFor(R):Promise.reject(F()),validatedImageBytes:R=>x==="active"?f.validatedImageBytes(R):null,admittedFontFace:xt({status:()=>x,unavailable:F,resolve:()=>g?.resolveFont}),shapeLaidOutText:Et({status:()=>x,unavailable:F,shaping:()=>g}),dispose:()=>m("disposed")})}}async function yo(e,o,t={}){let n=chunkJC47NRJC_cjs.k(t.fontShaping,chunkJC47NRJC_cjs.i);if((t.glyphFallbacks?.length??0)>16)throw new RangeError("At most 16 glyph fallback faces are supported");let a=ho(t.timeoutMs),r=new AbortController,s=()=>r.abort(t.signal?.reason);t.signal?.addEventListener("abort",s,{once:true}),t.signal?.aborted&&s();let i=setTimeout(()=>r.abort(At),a);try{de(r.signal);let p=(async()=>{let l=po(t.onActiveFontBytesChange),u=!1;try{let h=xo(e).slice(0,chunkERECKTIR_cjs.c),d=chunkERECKTIR_cjs.x(e,h),c=[],y={dropped:[]},E=wt(e,y),b=[...o,...E?[E]:[],...t.lastResortFonts??[]],f=await chunkERECKTIR_cjs.o(b,{families:[...new Set([...(t.glyphFallbacks??[]).map(m=>m.family),...d.families])].slice(0,chunkERECKTIR_cjs.c),defaultFamily:chunkERECKTIR_cjs.d.family,signal:r.signal},{onOriginFailure:m=>c.push(m),reserveOwnedBytes:l.reserve,maxExecutionFontBytes:n.maxFontBytes});de(r.signal);let g=chunkERECKTIR_cjs.z(chunkERECKTIR_cjs.f(f??{}),d);if(g.sources.length===0){let m=oe(h,g.defaultFont.family,c,void 0,y.dropped);ne(m,t),re(m,t,t.glyphFallbacks);return}let x=await vt(chunkJC47NRJC_cjs.q(g),void 0,t.glyphFallbacks,t.documentLigatures,{maxFontBytes:n.maxFontBytes});de(r.signal);let F=oe(h,g.defaultFont.family,c,x.resolveFont,y.dropped);return ne(F,t),re(F,t,t.glyphFallbacks),u=!0,Object.freeze({...x,dispose:l.release})}finally{u||l.release();}})();return await Promise.race([p,go(r.signal)])}finally{clearTimeout(i),t.signal?.removeEventListener("abort",s);}}function ho(e){if(e===void 0)return 6e4;if(!Number.isFinite(e)||e<=0)throw new RangeError("timeoutMs must be a positive finite number");return Math.max(1,e)}function go(e){return new Promise((o,t)=>{let n=()=>{t(Tt(e));};e.aborted?n():e.addEventListener("abort",n,{once:true});})}function Tt(e){let o=e.reason===At;return new chunkHYASLE2G_cjs.d(o?"timedOut":"aborted",o?"Font resolution timed out":"Font resolution was aborted",o?void 0:{cause:e.reason})}function de(e){if(e.aborted)throw Tt(e)}function xo(e){let o=[e.part().root],t=[],n=[],a=new Set([e.part().name]),r=(u,h)=>{!h||a.has(h.name)||(a.add(h.name),u.push(h.root));};for(let u of e.headerFooterPartsBySection()){for(let h of u.headers.values())r(t,h);for(let h of u.footers.values())r(t,h);}for(let u of ["footnote","endnote"])n.push(...Fo(e,u));let s=e.documentThemeFonts(),i={...s,major:s.major,minor:s.minor,majorEastAsia:s.majorEastAsia??null,minorEastAsia:s.minorEastAsia??null},p=new Map,l=(u,h)=>{let d=chunkFLBEJC6X_cjs.e(u,e.stylesRoot(),i,bo(u,h)),c=chunkERECKTIR_cjs.v(u,e.numberingRoot(),e.stylesRoot(),i);for(let y of [...d.direct,...Oo(u),...c,...chunkERECKTIR_cjs.s(u,e.stylesRoot(),i),...d.inherited]){let E=y.toLowerCase();p.has(E)||p.set(E,y);}};return l(o,"body"),l(t,"furniture"),l(n,"note"),[...p.values()]}function Fo(e,o){let t=chunkPWTRJSES_cjs.ch(e.currentPackage(),o);if(!t)return [];let n=new Set(chunkPWTRJSES_cjs.dh(e.part()).filter(r=>r.noteKind===o).map(r=>r.noteId)),a=[];for(let r of t.root.children){if(r.kind==="textValue")continue;let s=chunkPWTRJSES_cjs.zc(r),i=chunkPWTRJSES_cjs.yc(r);(s==="separator"||s==="continuationSeparator"||i!==null&&n.has(i))&&a.push(r);}return a}var Eo="http://schemas.openxmlformats.org/officeDocument/2006/math";function bo(e,o){let t=new Set;for(let n of e){let a=[],r=[{node:n,context:o}];for(;r.length>0;){let{node:s,context:i}=r.pop();s.namespaceUri===chunkPWTRJSES_cjs.la&&s.localName==="p"&&a.push({paragraph:s,context:i});let p=s.namespaceUri===chunkPWTRJSES_cjs.la&&s.localName==="txbxContent"&&(i==="body"||i==="note")?"detached":i;for(let l=s.children.length-1;l>=0;l-=1){let u=s.children[l];u.kind!=="textValue"&&r.push({node:u,context:p});}}for(let s of a)Ro(s.paragraph,t,s.context);}return t}function Ro(e,o,t){let n=chunkQFKGI242_cjs.Vb(),a=null,r=null,s="",i=false,p=false,l=false,u=0,h=[];for(let d=e.children.length-1;d>=0;d-=1){let c=e.children[d];c.kind!=="textValue"&&h.push({node:c,runId:null,visibility:k,containerDepth:0});}for(;h.length>0;){let{node:d,runId:c,visibility:y,containerDepth:E}=h.pop();if(E>=chunkPWTRJSES_cjs.wa||d.namespaceUri===chunkPWTRJSES_cjs.la&&d.localName==="p")continue;let b=d.namespaceUri===chunkPWTRJSES_cjs.la&&d.localName==="r"?d.id:c;if(d.namespaceUri===chunkPWTRJSES_cjs.la&&d.localName==="fldSimple"){let f=ce(d,"instr")??"";chunkQFKGI242_cjs.Yc(f,{allowPageFields:t==="body"||t==="furniture",allowRefFields:t==="body"||t==="note",allowPageRef:t==="body",allowAutonum:t==="body"||t==="note"})&&So(d)!==k&&o.add(d.id);}if(d.namespaceUri===chunkPWTRJSES_cjs.la&&d.localName==="fldChar"){let f=ce(d,"fldCharType");if(f==="begin")chunkQFKGI242_cjs.Yb(n),n.nesting===1&&(a=b,r=null,s="",i=false,p=false,l=chunkPWTRJSES_cjs.Bf(d),u=0);else if(f==="separate"){let g=n.nesting===1;if(chunkQFKGI242_cjs._b(n),g){let x=chunkQFKGI242_cjs.Xb(n);s=x.instruction,i=x.overflow||n.nestingOverflow,r=b,p=true;}}else if(f==="end"){if(n.nesting===1){if(n.phase==="instruction"){let x=chunkQFKGI242_cjs.Xb(n);s=x.instruction,i=x.overflow||n.nestingOverflow;}if(!i&&chunkQFKGI242_cjs.Xc(s,{hasSeparate:p,hasLegacyFormData:l,allowPageFields:t==="body"||t==="furniture",allowRefFields:t==="body"||t==="note",allowPageRef:t==="body",allowAutonum:t==="body"||t==="note"})&&u!==k){let x=r??a;x&&o.add(x);}}chunkQFKGI242_cjs.$b(n);}continue}if(d.namespaceUri===chunkPWTRJSES_cjs.la&&(d.localName==="instrText"||d.localName==="delInstrText")){chunkQFKGI242_cjs.Zb(n,It(d),d.localName==="delInstrText");continue}n.nesting>0&&chunkQFKGI242_cjs.ac(n)&&d.namespaceUri===chunkPWTRJSES_cjs.la&&Lt(d)&&(u|=y);for(let f=d.children.length-1;f>=0;f-=1){let g=d.children[f];g.kind!=="textValue"&&h.push({node:g,runId:b,visibility:y&kt(d),containerDepth:chunkPWTRJSES_cjs.xa(d,E)});}}chunkQFKGI242_cjs.Wb(n);}function Lt(e){return e.localName==="t"||e.localName==="delText"?It(e).length>0:e.localName==="sym"||e.localName==="tab"||e.localName==="br"}var ue=1,Pt=2,Dt=4,k=ue|Pt|Dt;function So(e){let o=[];for(let n of e.children)n.kind!=="textValue"&&o.push({node:n,visibility:k});let t=0;for(;o.length>0;){let{node:n,visibility:a}=o.pop();if(!(n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName==="p")){if(n.namespaceUri===chunkPWTRJSES_cjs.la&&Lt(n)&&(t|=a,t===k))return t;for(let r of n.children)r.kind!=="textValue"&&o.push({node:r,visibility:a&kt(n)});}}return t}function kt(e){return e.namespaceUri!==chunkPWTRJSES_cjs.la?k:e.localName==="ins"||e.localName==="moveTo"?ue|Pt:e.localName==="del"||e.localName==="moveFrom"?ue|Dt:k}function Oo(e){let o=new Map,t=n=>{let a=chunkFLBEJC6X_cjs.b(n??void 0);if(a===null)return;let r=a.toLowerCase();o.has(r)||o.set(r,a);};for(let n of e){let a=[n];for(;a.length>0;){let r=a.pop();if(r.namespaceUri===Eo&&t(chunkQFKGI242_cjs.$c),r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="sym"&&t(chunkFLBEJC6X_cjs.c(fo(r,"font"))),r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="fldSimple"){let s=ce(r,"instr");t(chunkQFKGI242_cjs.Wc(s??"")?.font??null);}if(r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="p")for(let s of chunkERECKTIR_cjs.u(r))t(s);for(let s=r.children.length-1;s>=0;s-=1){let i=r.children[s];i.kind!=="textValue"&&a.push(i);}}}return [...o.values()]}function It(e){let o="",t=[...e.children].reverse();for(;t.length>0&&o.length<=256;){let n=t.pop();if(n.kind==="textValue")o+=n.value;else for(let a=n.children.length-1;a>=0;a-=1)t.push(n.children[a]);}return o}var Nt="FILE_TOO_LARGE",_t=8;function vo(e){return typeof e=="object"&&e!==null}function Ct(e){if(!(!vo(e)||typeof e.code!="string"))return e.code}function Ut(e){return e===""||e.toLowerCase()==="localhost"}function wo(e){try{let o=decodeURIComponent(e);return o.includes("\0")?null:o}catch{return null}}function Bt(e){let o=wo(e);if(o===null)return null;let t=[];for(let n of o.split(/[/\\]/))if(!(n===""||n===".")){if(n===".."){if(t.length===0)return null;t.pop();continue}t.push(n);}return `/${t.join("/")}`}function qt(e){let o=Bt(e);return o===null?null:o.endsWith("/")?o:`${o}/`}function Ao(e){return e==="/"||/^\/[A-Za-z]:\/$/.test(e)}function To(e){let o;try{o=typeof e=="string"?new URL(e):new URL("href"in e?e.href:String(e));}catch{throw new TypeError("trustedRoot must be an absolute file: URL")}if(o.protocol!=="file:")throw new TypeError("trustedRoot must use the file: protocol");if(o.username!==""||o.password!=="")throw new TypeError("trustedRoot must not include credentials");if(!Ut(o.host))throw new TypeError("trustedRoot must be a local file: URL");let t=qt(o.pathname);if(t===null||Ao(t))throw new TypeError("trustedRoot must be a directory inside the filesystem");let n=new URL("file:///");return n.pathname=t,n}function Lo(e){if(typeof e=="string")return [e];if(typeof e=="object"&&e!==null&&"href"in e)return [e];if(Array.isArray(e))return e;throw new TypeError("trustedRoot must be an absolute file: URL")}function Po(e){let o=Lo(e);if(o.length===0)throw new TypeError("trustedRoot must name at least one directory");if(o.length>_t)throw new TypeError(`trustedRoot must not exceed ${_t} directories`);return o.map(To)}function Do(e){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError("maxBytes must be a positive safe integer");if(e>chunkQFKGI242_cjs.a)throw new TypeError(`maxBytes must not exceed ${chunkQFKGI242_cjs.a}`);return e}function ko(e,o){if(e.protocol!=="file:"||e.username!==""||e.password!==""||!Ut(e.host))return null;let t=Bt(e.pathname);if(t===null)return null;for(let n of o){let a=qt(n.pathname);if(a===null||!t.startsWith(a)||t.length<=a.length)continue;let r=new URL("file:///");return r.pathname=t,r}return null}function Io(e){return typeof e=="string"?new URL(e):"href"in e&&typeof e.href=="string"?new URL(e.href):new URL("url"in e?e.url:String(e))}function _o(e,o,t){let n=t.relative(t.resolve(e),t.resolve(o));return n!==""&&!n.startsWith("..")&&!t.isAbsolute(n)}function Mt(e,o,t){return e.some(n=>_o(n,o,t))}async function Mo(e,o){let t=[];for(let n of e)try{t.push(await o(n));}catch(a){if(Ct(a)==="ENOENT")continue;throw a}return t}function No(e){return async(o,{signal:t,maxBytes:n})=>{if(t?.aborted)throw t.reason;let[{open:a,realpath:r},{constants:s},{fileURLToPath:i},p]=await Promise.all([import('fs/promises'),import('fs'),import('url'),import('path')]),l=e.map(y=>p.resolve(i(y.href))),u=p.resolve(i(typeof o=="string"?o:o.href));if(!Mt(l,u,p))throw Object.assign(new Error("packaged file is outside trustedRoot"),{code:"ENOENT"});let h=typeof s.O_NOFOLLOW=="number"?s.O_RDONLY|s.O_NOFOLLOW:"r",d=await a(u,h),c=()=>{d.close();};t?.addEventListener("abort",c,{once:true});try{if(t?.aborted)throw t.reason;let y=await r(u);if(!Mt(await Mo(l,r),y,p))throw Object.assign(new Error("packaged file is outside trustedRoot"),{code:"ENOENT"});let E=(await d.stat()).size;if(!Number.isSafeInteger(E)||E<0||E>n)throw Object.assign(new Error("packaged file exceeds maxBytes"),{code:Nt});let b=new Uint8Array(E),f=0;for(;f<b.byteLength;){if(t?.aborted)throw t.reason;let{bytesRead:g}=await d.read(b,f,b.byteLength-f,f);if(g===0)break;f+=g;}if(t?.aborted)throw t.reason;return f===b.byteLength?b:b.slice(0,f)}catch(y){throw t?.aborted?t.reason:y}finally{t?.removeEventListener("abort",c),await d.close().catch(()=>{});}}}function Co(e){if(e===null||typeof e!="object")throw new TypeError("createPackagedFileFetch requires trustedRoot and maxBytes");if(e.trustedRoot===void 0||e.maxBytes===void 0)throw new TypeError("createPackagedFileFetch requires trustedRoot and maxBytes");let o=Po(e.trustedRoot),t=Do(e.maxBytes),n=e.read??No(o),a=e.networkFetch??fetch;return(async(r,s)=>{let i=s?.signal;if(i?.aborted)throw i.reason;let p=Io(r);if(p.protocol!=="file:")return a(p,s);let l=ko(p,o);if(!l)return new Response(null,{status:404});let u=i?new AbortController:void 0,h=()=>u?.abort(i?.reason);i?.addEventListener("abort",h,{once:true});let d;try{if(d=await n(l,{maxBytes:t,...u?{signal:u.signal}:{}}),i?.aborted)throw i.reason;if(d.byteLength>t)return new Response(null,{status:413})}catch(c){if(i?.aborted)throw i.reason;if(u?.signal.aborted)throw u.signal.reason??c;if(c instanceof DOMException&&c.name==="AbortError"||c instanceof Error&&c.name==="AbortError")throw c;let y=Ct(c);if(y===Nt)return new Response(null,{status:413});if(y==="ENOENT"||y==="ENOTDIR"||y==="ELOOP")return new Response(null,{status:404});throw c}finally{i?.removeEventListener("abort",h);}return new Response(d,{status:200})})}
2
+ Object.defineProperty(exports,"ExportResourceError",{enumerable:true,get:function(){return chunkHYASLE2G_cjs.d}});Object.defineProperty(exports,"createNodeImageDecodePort",{enumerable:true,get:function(){return chunkHYASLE2G_cjs.c}});Object.defineProperty(exports,"exportDestinationNamed",{enumerable:true,get:function(){return chunkHYASLE2G_cjs.b}});Object.defineProperty(exports,"openDocumentForExport",{enumerable:true,get:function(){return chunkHYASLE2G_cjs.e}});exports.MAX_SHARED_EXPORT_SHAPING_CONFIGURATIONS=le;exports.acquireSharedExportShaping=ao;exports.createPackagedFileFetch=Co;exports.hasExportAdmittedFont=te;exports.hasExportLaidOutText=ie;exports.hasFontBackedExportCapabilities=uo;exports.openFontBackedDocumentForExport=mo;