@docx-editor.dev/core 2.31.0 → 2.33.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 (140) hide show
  1. package/README.md +25 -1
  2. package/THIRD_PARTY_NOTICES.md +1 -0
  3. package/dist/automation.cjs +1 -1
  4. package/dist/automation.d.ts +16 -54
  5. package/dist/automation.js +1 -1
  6. package/dist/binding.cjs +1 -1
  7. package/dist/binding.d.ts +17 -15
  8. package/dist/binding.js +1 -1
  9. package/dist/{chrome-print-BWvaVEhD.d.ts → chrome-print-CrPI9ZQc.d.ts} +128 -38
  10. package/dist/chunk-23MKR33J.js +4 -0
  11. package/dist/chunk-2CWQY27B.cjs +1 -0
  12. package/dist/chunk-2DEY5NUC.cjs +32 -0
  13. package/dist/chunk-2DR4TH6B.js +1 -0
  14. package/dist/chunk-2F2UEAE2.js +2 -0
  15. package/dist/chunk-2GPGAFOJ.cjs +5 -0
  16. package/dist/chunk-ALD626VU.cjs +2 -0
  17. package/dist/chunk-AU33YWEJ.js +236 -0
  18. package/dist/chunk-AXU63LYW.cjs +1 -0
  19. package/dist/chunk-CM5VZRBV.js +32 -0
  20. package/dist/chunk-D7FAFFTN.js +1 -0
  21. package/dist/chunk-DYUVJNDD.cjs +1 -0
  22. package/dist/chunk-ESYUKD5D.js +2 -0
  23. package/dist/chunk-F7TGQMVR.js +5 -0
  24. package/dist/chunk-FLW7KIQX.js +30 -0
  25. package/dist/chunk-JG4A6W6I.js +7 -0
  26. package/dist/chunk-JNGLSBPH.js +2 -0
  27. package/dist/chunk-KE6ZWRIY.cjs +236 -0
  28. package/dist/chunk-L3YXJDPX.js +1 -0
  29. package/dist/chunk-LI42N7OW.cjs +4 -0
  30. package/dist/chunk-PLKDS4JT.js +1 -0
  31. package/dist/chunk-PXMTQ73F.cjs +2 -0
  32. package/dist/chunk-R4R3AAE4.js +1 -0
  33. package/dist/chunk-RFUNFTGV.cjs +1 -0
  34. package/dist/chunk-SVM6PGMS.js +3 -0
  35. package/dist/chunk-SZURLHR3.cjs +3 -0
  36. package/dist/chunk-UYCGCVZ2.cjs +1 -0
  37. package/dist/chunk-WN7ICTA5.js +1 -0
  38. package/dist/chunk-X34QRAUU.cjs +1 -0
  39. package/dist/chunk-XNBYG4XJ.cjs +30 -0
  40. package/dist/chunk-ZDFJW5XS.cjs +2 -0
  41. package/dist/chunk-ZWO4JHNN.cjs +7 -0
  42. package/dist/collaboration/replication.cjs +1 -1
  43. package/dist/collaboration/replication.d.ts +29 -4
  44. package/dist/collaboration/replication.js +1 -1
  45. package/dist/collaboration.cjs +1 -1
  46. package/dist/collaboration.d.ts +5 -5
  47. package/dist/collaboration.js +1 -1
  48. package/dist/contracts/document.d.ts +3 -3
  49. package/dist/contracts/editor.d.ts +13 -9
  50. package/dist/contracts/interaction.d.ts +2 -2
  51. package/dist/contracts/modules.d.ts +15 -12
  52. package/dist/contracts/types.d.ts +135 -2
  53. package/dist/{custom-node-writes-TeUvMP13.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
  54. package/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
  55. package/dist/{diagnostic-hints-C9JlLz1L.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +4 -4
  56. package/dist/{document-protection-C8x3P2J6.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
  57. package/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
  58. package/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
  59. package/dist/{editor-B2ShlO23.d.ts → editor-B7OOAAie.d.ts} +181 -244
  60. package/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
  61. package/dist/{editor-scope-C7ke1KJG.d.ts → editor-scope-CA6egMaK.d.ts} +6 -2
  62. package/dist/editor.cjs +1 -1
  63. package/dist/editor.css +4 -4
  64. package/dist/editor.d.ts +259 -31
  65. package/dist/editor.js +1 -1
  66. package/dist/export.cjs +2 -2
  67. package/dist/export.d.ts +48 -19
  68. package/dist/export.js +2 -2
  69. package/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
  70. package/dist/{font-resolver-CWh40DYp.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
  71. package/dist/index.cjs +1 -1
  72. package/dist/index.d.ts +43 -26
  73. package/dist/index.js +1 -1
  74. package/dist/{layout-shaping-CWS3j0Xr.d.ts → layout-shaping-Ci_BTnSU.d.ts} +1 -1
  75. package/dist/layout.cjs +1 -1
  76. package/dist/layout.d.ts +181 -99
  77. package/dist/layout.js +1 -1
  78. package/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
  79. package/dist/{note-properties-QsKh24sM.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
  80. package/dist/output.cjs +1 -1
  81. package/dist/output.d.ts +11 -7
  82. package/dist/output.js +1 -1
  83. package/dist/{protocol-COZJUKUY.d.ts → protocol-Cp_QzVxS.d.ts} +75 -5
  84. package/dist/{review-paragraph-order-C_QbCKcH.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
  85. package/dist/revision-projection-OVusTS77.d.ts +258 -0
  86. package/dist/{semantic-cell-selection-Cub9FDa8.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
  87. package/dist/{semantic-interaction-dApRIYpt.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
  88. package/dist/{semantic-paint-DLzA8sjP.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
  89. package/dist/{semantic-record-queries-3yp9o11g.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
  90. package/dist/{semantic-records-B-akgRch.d.ts → semantic-records-DoK0lNjS.d.ts} +439 -418
  91. package/dist/store.cjs +1 -1
  92. package/dist/store.d.ts +511 -20
  93. package/dist/store.js +1 -1
  94. package/dist/{types-barrel-CkF2JbU4.d.ts → tree-op-types-Df4oY2u4.d.ts} +1081 -524
  95. package/dist/{tree-package-store-B8l8DX3Z.d.ts → tree-package-store-DXhX1PE-.d.ts} +8 -3
  96. package/dist/{tree-session-contract-DeLRqohz.d.ts → tree-session-contract-CF2625mv.d.ts} +5 -5
  97. package/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
  98. package/docs/accept-reject-without-scrolling.md +95 -0
  99. package/docs/comment-on-found-text.md +72 -0
  100. package/docs/custom-review-cards.md +178 -0
  101. package/docs/highlight-ranges.md +48 -0
  102. package/docs/index.md +36 -0
  103. package/docs/propose-rewrite.md +247 -0
  104. package/docs/tracked-replacement.md +68 -0
  105. package/licenses/ECMA-376.md +29 -0
  106. package/package.json +3 -2
  107. package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
  108. package/dist/chunk-243W4WW2.cjs +0 -2
  109. package/dist/chunk-2E2RPEKX.js +0 -1
  110. package/dist/chunk-4S24UOPG.js +0 -30
  111. package/dist/chunk-5JPIEN54.cjs +0 -3
  112. package/dist/chunk-5SO5QDMV.cjs +0 -2
  113. package/dist/chunk-6IDOVU6L.cjs +0 -1
  114. package/dist/chunk-6JIJOZDW.js +0 -1
  115. package/dist/chunk-BTQKU64Q.cjs +0 -1
  116. package/dist/chunk-DBOOTED4.cjs +0 -30
  117. package/dist/chunk-EOTAXOJY.cjs +0 -5
  118. package/dist/chunk-FDAKJ2SJ.cjs +0 -30
  119. package/dist/chunk-FNNOJNGY.js +0 -3
  120. package/dist/chunk-FT33HRZP.js +0 -5
  121. package/dist/chunk-HC6YNKUI.cjs +0 -1
  122. package/dist/chunk-HZ66UCIS.js +0 -2
  123. package/dist/chunk-IBRBNT37.cjs +0 -1
  124. package/dist/chunk-IVIN7X43.js +0 -30
  125. package/dist/chunk-LZY6B6IV.js +0 -4
  126. package/dist/chunk-MOYYRVFV.cjs +0 -2
  127. package/dist/chunk-N6B3BXCL.js +0 -1
  128. package/dist/chunk-Q5K2GGNG.js +0 -2
  129. package/dist/chunk-R2XINWVE.js +0 -7
  130. package/dist/chunk-SUEXVBPR.js +0 -1
  131. package/dist/chunk-T2QQHG5C.js +0 -18
  132. package/dist/chunk-VWIJKH4A.js +0 -1
  133. package/dist/chunk-WO4V6PNS.cjs +0 -18
  134. package/dist/chunk-XMJKFURD.cjs +0 -4
  135. package/dist/chunk-XSTGE3NI.cjs +0 -1
  136. package/dist/chunk-YQWMI6J5.cjs +0 -7
  137. package/dist/chunk-ZCJS7D7S.js +0 -2
  138. package/dist/diagnostic-context-DJ0P1uZE.d.ts +0 -31
  139. package/dist/headless-document-view-qOpaCF82.d.ts +0 -143
  140. package/dist/omml-equation-BsLAa2lX.d.ts +0 -115
package/dist/export.d.ts CHANGED
@@ -7,22 +7,18 @@
7
7
  * @packageDocumentation
8
8
  * @public
9
9
  */
10
- import { S as SemanticLayout, a as ReviewDisplayMode, q as ResolvedRevisionMarkup, r as SemanticReviewArtifactRecord, I as InlineDrawingRecord, A as AnchoredDrawingRecord, s as ListMarkerPictureRecord, t as RevisionMarkupOptions, T as TextMeasurer, p as FontRequest, u as FontSubstitution, v as ShapedRun, g as StyleSpanRecord } from './semantic-records-B-akgRch.js';
11
- import { a8 as PreservedImageMime, aD as ImageResourceLimits, af as SupportedImageMime, aE as ImageDecodePort } from './types-barrel-CkF2JbU4.js';
12
- import { D as DocumentProperties, H as HeadlessDocumentView, a as HeadlessDocumentRejection } from './headless-document-view-qOpaCF82.js';
10
+ import { a as ReviewDisplayMode, d as ResolvedRevisionMarkup, k as RevisionMarkupOptions } from './revision-projection-OVusTS77.js';
11
+ import { aj as PreservedImageMime, ae as ImageResourceLimits, an as SupportedImageMime, ad as ImageDecodePort } from './tree-op-types-Df4oY2u4.js';
12
+ import { S as SemanticLayout, p as SemanticReviewArtifactRecord, I as InlineDrawingRecord, A as AnchoredDrawingRecord, q as ListMarkerPictureRecord, T as TextMeasurer, o as FontRequest, r as FontSubstitution, s as ShapedRun, g as StyleSpanRecord } from './semantic-records-DoK0lNjS.js';
13
+ import { c as DocumentProperties, H as HeadlessDocumentView, d as HeadlessDocumentRejection } from './drawing-graphic-kind-CXYGYbB3.js';
14
+ import { M as MetafileFont, a as MetafileReplay } from './metafile-drawing-DtMFyMKq.js';
15
+ export { b as MetafileCommand, c as MetafileDrawing, d as MetafileMatrix, e as MetafilePaint, f as MetafilePathCommand, g as MetafileRaster } from './metafile-drawing-DtMFyMKq.js';
13
16
  import { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
14
- import { P as PreparedLayoutFontConfiguration, L as LayoutShapingInstrumentation } from './layout-shaping-CWS3j0Xr.js';
15
- import { e as FontOriginFailure, d as FontOrigin } from './font-resolver-CWh40DYp.js';
16
- import './omml-equation-BsLAa2lX.js';
17
- import './editor-scope-C7ke1KJG.js';
18
- import './tree-package-store-B8l8DX3Z.js';
19
- import './editor-B2ShlO23.js';
20
- import './diagnostic-hints-C9JlLz1L.js';
21
- import './failure-NS2lsya4.js';
22
- import './contracts/document.js';
23
- import './contracts/interaction.js';
24
- import './semantic-interaction-dApRIYpt.js';
25
- import './document-protection-C8x3P2J6.js';
17
+ import { P as PreparedLayoutFontConfiguration, L as LayoutShapingInstrumentation } from './layout-shaping-Ci_BTnSU.js';
18
+ import { e as FontOriginFailure, d as FontOrigin } from './font-resolver-Bm9XqTNO.js';
19
+ import './editor-scope-CA6egMaK.js';
20
+ import './tree-package-store-DXhX1PE-.js';
21
+ import './editor-fonts-D_-vjuJi.js';
26
22
 
27
23
  /** Source content that cannot be certified by the layout snapshot. @public */
28
24
  interface ExportContentWarning {
@@ -73,8 +69,8 @@ signal?: AbortSignal) => Promise<Readonly<{
73
69
  }> | null>;
74
70
  /**
75
71
  * Decode raster dimensions from validated headers, with no native image dependency or DOM.
76
- * SVG sizing is handled by the resource registry; preserved formats stay placeholders unless
77
- * the caller supplies `convertPreserved`.
72
+ * SVG sizing is handled by the resource registry. TIFF converts to PNG unless the caller
73
+ * supplies `convertPreserved`, which then handles every preserved format.
78
74
  * @public
79
75
  */
80
76
  declare function createNodeImageDecodePort(options?: {
@@ -167,6 +163,26 @@ interface ExportSession {
167
163
  * a list marker's picture bullet. A resource that is not `ready` answers null.
168
164
  */
169
165
  validatedImageBytes(source: InlineDrawingRecord | AnchoredDrawingRecord | ListMarkerPictureRecord): Uint8Array | null;
166
+ /**
167
+ * A defensive copy of the original bytes of an EMF or WMF picture that has no raster in this
168
+ * session, for an exporter that draws the metafile itself. Null for any other resource, and
169
+ * when the part's signature does not match the metafile format it claims.
170
+ *
171
+ * @internal
172
+ */
173
+ metafileBytes?(source: InlineDrawingRecord | AnchoredDrawingRecord): {
174
+ readonly mime: 'image/x-emf' | 'image/x-wmf';
175
+ readonly bytes: Uint8Array;
176
+ } | null;
177
+ /**
178
+ * The settled resource of the picture saved in a drawn chart's `mc:Fallback`, for an
179
+ * exporter that exports the chart as that picture. Layout never reads it, so a drawn chart
180
+ * never waits for it; this reads it on request. Undefined for a record without one, and
181
+ * after disposal.
182
+ *
183
+ * @internal
184
+ */
185
+ chartFallbackResource?(source: InlineDrawingRecord | AnchoredDrawingRecord): Promise<InlineDrawingRecord['resource'] | undefined>;
170
186
  /**
171
187
  * Release per-document caches, pending resource work, and image-byte capabilities. Idempotent.
172
188
  * Previously resolved layout snapshots remain immutable and traversable after disposal.
@@ -185,6 +201,19 @@ type OpenDocumentForExportResult = {
185
201
  /** Open bytes or a live neutral view into one reusable layout session. @public */
186
202
  declare function openDocumentForExport(source: ExportDocumentSource, options?: OpenDocumentForExportOptions): OpenDocumentForExportResult;
187
203
 
204
+ /** Options for {@link replayMetafile}. @internal */
205
+ interface MetafileReplayOptions {
206
+ /** Advance width of `text` in `font`, in pixels at `font.sizePx`. */
207
+ readonly measureText: (text: string, font: MetafileFont) => number;
208
+ }
209
+ /**
210
+ * Replay an EMF or WMF picture into vector drawing commands in canvas pixels, through the
211
+ * installed metafile renderer. Null when the bytes do not replay, or when no metafile renderer
212
+ * is installed. Text keeps its face and position; the caller shapes and draws it.
213
+ * @internal
214
+ */
215
+ declare function replayMetafile(bytes: Uint8Array, mime: 'image/x-emf' | 'image/x-wmf', options: MetafileReplayOptions): Promise<MetafileReplay | null>;
216
+
188
217
  /** One paintable face in an export font-resolution report. @public */
189
218
  interface ExportFontFaceResolution {
190
219
  readonly weight: 400 | 700;
@@ -388,5 +417,5 @@ interface PackagedFileFetchOptions {
388
417
  */
389
418
  declare function createPackagedFileFetch(options: PackagedFileFetchOptions): typeof fetch;
390
419
 
391
- export { ExportResourceError, FontOrigin, FontOriginFailure, FontRequest, FontSubstitution, MAX_SHARED_EXPORT_SHAPING_CONFIGURATIONS, acquireSharedExportShaping, createNodeImageDecodePort, createPackagedFileFetch, exportDestinationNamed, hasExportAdmittedFont, hasExportLaidOutText, hasFontBackedExportCapabilities, openDocumentForExport, openFontBackedDocumentForExport };
392
- export type { ExportAdmittedFontApi, ExportAdmittedFontFace, ExportAdmittedFontIdentity, ExportContentWarning, ExportDestinationAnchor, ExportDestinationGeometry, ExportDocumentMetadata, ExportDocumentSource, ExportDroppedEmbeddedFont, ExportFontFaceResolution, ExportFontFamilyResolution, ExportFontResolutionReport, ExportLaidOutText, ExportLaidOutTextApi, ExportSemanticLayout, ExportSession, FontBackedExportCapabilities, FontBackedExportSession, OpenDocumentForExportOptions, OpenDocumentForExportResult, OpenFontBackedDocumentForExportOptions, OpenFontBackedDocumentForExportResult, PackagedFileFetchOptions, PackagedFileRead, PreservedImageConverter, SharedExportShaping, SharedExportShapingCapabilities };
420
+ export { ExportResourceError, FontOrigin, FontOriginFailure, FontRequest, FontSubstitution, MAX_SHARED_EXPORT_SHAPING_CONFIGURATIONS, MetafileFont, MetafileReplay, acquireSharedExportShaping, createNodeImageDecodePort, createPackagedFileFetch, exportDestinationNamed, hasExportAdmittedFont, hasExportLaidOutText, hasFontBackedExportCapabilities, openDocumentForExport, openFontBackedDocumentForExport, replayMetafile };
421
+ export type { ExportAdmittedFontApi, ExportAdmittedFontFace, ExportAdmittedFontIdentity, ExportContentWarning, ExportDestinationAnchor, ExportDestinationGeometry, ExportDocumentMetadata, ExportDocumentSource, ExportDroppedEmbeddedFont, ExportFontFaceResolution, ExportFontFamilyResolution, ExportFontResolutionReport, ExportLaidOutText, ExportLaidOutTextApi, ExportSemanticLayout, ExportSession, FontBackedExportCapabilities, FontBackedExportSession, MetafileReplayOptions, OpenDocumentForExportOptions, OpenDocumentForExportResult, OpenFontBackedDocumentForExportOptions, OpenFontBackedDocumentForExportResult, PackagedFileFetchOptions, PackagedFileRead, PreservedImageConverter, SharedExportShaping, SharedExportShapingCapabilities };
package/dist/export.js CHANGED
@@ -1,2 +1,2 @@
1
- import {c as c$1,x,o,d as d$1,f,z as z$1,A as A$1,v,s as s$1,j as j$2,E,m as m$1,u,l as l$1}from'./chunk-HZ66UCIS.js';import {l,j as j$1,h,i,n,m,s,p,c as c$2,g,da as da$1,ca,fa}from'./chunk-FNNOJNGY.js';import'./chunk-RIYSCEFQ.js';import {d,e}from'./chunk-SUEXVBPR.js';export{d as ExportResourceError,c as createNodeImageDecodePort,b as exportDestinationNamed,e as openDocumentForExport}from'./chunk-SUEXVBPR.js';import {c,ia,a,wa,gd,hd,da,ja,h as h$1,d as d$2,Yc,b as b$1,i as i$1,Xb,_c,_b,ac,Zb,Zc,bc,$b,cc,Yb,r,u as u$1,n as n$1,bd}from'./chunk-4S24UOPG.js';import {e as e$1,c as c$3,b as b$2}from'./chunk-2E2RPEKX.js';import'./chunk-VWIJKH4A.js';import {Ca}from'./chunk-Q5K2GGNG.js';import {lh,mh,zc,yc,b,la,pd,J,lf,wa as wa$1,Ef,xa}from'./chunk-T2QQHG5C.js';function N(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}}},i=e.shape(n);if(t.glyphs.length!==i.glyphs.length||t.glyphs.some((l,c)=>l.id!==i.glyphs[c]?.id))return t;let r=[],s=0;for(let l of o.text){let c=l.toUpperCase()!==l,h=r.at(-1);h&&(h.lower===c||/\p{M}/u.test(l))?h.text+=l:r.push({text:l,start:s,lower:c}),s+=l.length;}let a=[],p=[],d=[],u=true,m=0;for(let l of o.environment.direction==="rtl"?r.reverse():r){let c=l.lower?.8:1,h=[],E=[],R="",f=l.start;for(let F of l.text){let y=l.lower?F.toUpperCase():F;for(let S=0;S<y.length;S++)h.push(f),E.push(f+F.length);R+=y,f+=F.length;}let g=e.shape({...n,text:R}),x=a.length;for(let[F,y]of g.glyphs.entries()){let S=g.exactAdvancesX?.[F];S===void 0?u=false:d.push(S*c),a.push({...y,cluster:h[y.cluster]??l.start,originX:n$1(m+Math.round(y.originX*c)),originY:n$1(Math.round(y.originY*c)),offsetX:n$1(Math.round(y.offsetX*c)),offsetY:n$1(Math.round(y.offsetY*c)),advanceX:n$1(Math.round(y.advanceX*c)),advanceY:n$1(Math.round(y.advanceY*c)),drawScale:c});}for(let F of g.clusters){let y=h[F.textStart]??l.start,S=E[F.textEnd-1]??f,b=n$1(Math.round(F.advance*c)),T=p.at(-1);T&&T.textStart===y&&T.textEnd===S?p[p.length-1]={...T,glyphEnd:x+F.glyphEnd,advance:n$1(T.advance+b),caretEdges:[n$1(0),n$1(T.advance+b)]}:p.push({...F,textStart:y,textEnd:S,glyphStart:x+F.glyphStart,glyphEnd:x+F.glyphEnd,advance:b,caretEdges:F.caretEdges.map(V=>n$1(Math.round(V*c))),fontSpan:0});}m+=g.glyphs.reduce((F,y)=>F+Math.round(y.advanceX*c),0);}return {...t,glyphs:a,clusters:p,fontSpans:[{...t.fontSpans[0],glyphStart:0,glyphEnd:a.length}],exactAdvancesX:u&&d.length===a.length?d:void 0}}var ft=new WeakMap;function Gt(e){let o=ft.get(e);return o===void 0&&(o=Yt(e.bytes,e.faceIndex),ft.set(e,o)),o}var Vt=new Set(["COLR","CBDT","sbix"]),Wt=512;function Yt(e,o){let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e.byteLength<12)return false;let n=0;if(mt(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 i=Math.min(t.getUint16(n+4),Wt);for(let r=0;r<i;r++){let s=n+12+r*16;if(s+4>e.byteLength)return false;if(Vt.has(mt(e,s)))return true}return false}function mt(e,o){return String.fromCharCode(e[o],e[o+1],e[o+2],e[o+3])}var $t=/\p{Emoji_Presentation}|️/u;function Kt(e){return $t.test(e)}function z(e,o){if(e.length<2)return e;let t=e.filter(Gt);if(t.length===0||t.length===e.length)return e;let n=e.filter(i=>!t.includes(i));return Kt(o)?[...t,...n]:[...n,...t]}var Zt=2048;function yt(e,o,t,n){if(!t.clusters.length||t.clusters.length>Zt)return null;let i=(f,g)=>{let{context:x,...F}=o,y={...F,text:g,environment:r({...o.environment,font:f})};return N(e,y,e.shape(y))},r$1=[],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$1.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),b=s.get(x)??z(n,S).find(T=>{try{return !i(T,x).glyphs.some(V=>V.id===0)}catch{return false}});if(!b)return null;s.set(x,b),g=b;}let y=r$1.at(-1);y&&y.font===g&&y.end===f.textStart?y.end=f.textEnd:r$1.push({start:f.textStart,end:f.textEnd,font:g});}let a=[],p=[],d=[],u=[],m=true,l=0,c=0,h=0,E=0,R=0;for(let f of o.environment.direction==="rtl"?r$1.reverse():r$1){let g=i(f.font,o.text.slice(f.start,f.end));if(g.glyphs.some(y=>y.id===0))return null;let x=a.length,F=d.length;for(let y of g.glyphs)a.push({...y,cluster:f.start+y.cluster,originX:n$1(l+y.originX),originY:n$1(c+y.originY)});if(g.exactAdvancesX===void 0)m=false;else for(let y of g.exactAdvancesX)u.push(y);for(let y of g.clusters)p.push({...y,textStart:f.start+y.textStart,textEnd:f.start+y.textEnd,glyphStart:x+y.glyphStart,glyphEnd:x+y.glyphEnd,fontSpan:F});g.glyphs.length&&d.push({font:f.font,glyphStart:x,glyphEnd:a.length,fallbackIndex:f.font===o.environment.font?null:n.indexOf(f.font)}),l+=g.glyphs.reduce((y,S)=>y+S.advanceX,0),c+=g.glyphs.reduce((y,S)=>y+S.advanceY,0),h=Math.max(h,g.metrics.ascent),E=Math.max(E,g.metrics.descent),R=Math.max(R,g.metrics.lineGap);}return u$1({...t,glyphs:a,clusters:p,fontSpans:d,exactAdvancesX:m&&u.length===a.length?u:void 0,metrics:{ascent:n$1(h),descent:n$1(E),lineGap:n$1(R)}},{...o.environment,fallbackOrder:n})}var Jt=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 "]]]),Qt=512,ht=new WeakMap;function eo(e,o){let t=new Set,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i=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)):"",a=0;if(s(0)==="ttcf"){let c=r(8);if(c<0||o<0||o>=c||(a=r(12+o*4),a<0))return t}let p=i(a+4);if(p<0||p>1024)return t;let d=-1;for(let c=0;c<p;c+=1){let h=a+12+c*16;if(s(h)==="GSUB"){d=r(h+8);break}}if(d<0)return t;let u=i(d+4);if(u<=0)return t;let m=d+u,l=i(m);if(l<0)return t;for(let c=0;c<Math.min(l,Qt);c+=1){let h=s(m+2+c*6);h&&t.add(h);}return t}function to(e,o){let t=ht.get(e);return t||(t=eo(e.bytes,e.faceIndex),ht.set(e,t)),(Jt.get(o)??[o.toLowerCase()]).some(i=>t.has(i))}function gt(e,o){let t=e.filter(n=>to(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 i=o.text.replace(/\u2011/g,(r,s)=>n.has(s)?"-":r);if(i===o.text)return t;try{let r=e.shape({...o,text:i});return u$1({...r,text:o.text},o.environment)}catch{return t}}function xt(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 d$2)),n={shape(a){return Q(e.shaper,a,e.shaper.shape(a))}},i=new WeakMap,r$1={shape(a){let p=e.shaper.shape(a),d=i.get(p);if(d&&d.input.text===a.text&&d.input.fontSizeHalfPoints===a.fontSizeHalfPoints&&d.input.bidiLevel===a.bidiLevel&&d.input.context?.before===a.context?.before&&d.input.context?.after===a.context?.after&&d.input.environment===a.environment)return d.run;let u=s(a,Q(e.shaper,a,p));return i.set(p,{input:a,run:u}),u}},s=(a,p)=>{let d=N(n,a,p);if(!d.glyphs.some(u=>u.id===0)||/^[\t\n\r\f]*$/.test(a.text))return d;if(/^(Latn|Cyrl|Grek|Hebr|Hani|Hira|Kana|Hang|Zyyy|Zinh)$/.test(a.environment.script)){let u=yt(n,a,d,t);if(u)return u}for(let u of gt(z(t,a.text),a.environment.script))if(!(u.hash===a.environment.font.hash&&u.faceIndex===a.environment.font.faceIndex))try{let m={...a,environment:r({...a.environment,font:u})},l=N(n,m,n.shape(m));if(!l.glyphs.some(c=>c.id===0))return l}catch{}return d};return {...e,shaper:r$1}}var ee=b$1;function te(e){return typeof e.admittedFontFace=="function"}var oo=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 Ft=new WeakMap;function H(e){let o=Ft.get(e);return o||Ft.set(e,o=no(e)),o}function no(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 ro(e){return Object.freeze({...H(e),bytes:i$1(e)})}function io(e,o){if(!e)return null;try{let t=e(o);return !t||t instanceof d$2?null:ro(t)}catch{return null}}function Et(e){return o=>{if(e.status()!=="active")throw e.unavailable();return io(e.resolve(),o)}}function ao(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,i=[],r=new Set){let s=new Map;for(let p of [...e,o]){let d=p.toLowerCase();s.has(d)||s.set(d,p);}let a=[...s.values()].map(p=>{let d=[];for(let m of oo){let l=n?.({family:p,...m});!l||l instanceof d$2||d.push(Object.freeze({...m,sourceFamily:l.family,via:l.substitution?"substitution":"direct",identity:l.identity,id:l.id,hash:l.hash,faceIndex:l.faceIndex,substitution:l.substitution}));}let u=r.has(p.trim().toLowerCase())?d.filter(m=>m.via==="direct").length:d.length;return Object.freeze({family:p,coverage:u===4?"complete":u>0?"partial":"none",faces:Object.freeze(d)})});return Object.freeze({requestedFamilies:Object.freeze([...e]),defaultFamily:o,families:Object.freeze(a),originFailures:Object.freeze([...t]),droppedEmbeddedFonts:ao(i)})}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=d=>d.trim().toLowerCase(),i=new Set([...e.requestedFamilies,e.defaultFamily].map(n)),r=new Set(t.map(d=>n(d.family))),s=d=>{if(!(d instanceof l$1))return true;let u=n(d.request.family);return i.has(u)||!r.has(u)},a=e.originFailures.some(({cause:d})=>d instanceof m$1?d.causes.length===0||d.causes.some(s):s(d));if(o.fontPolicy!=="strict"||!a&&e.families.every(d=>d.coverage==="complete"))return;let p=e.families.filter(d=>d.coverage!=="complete").map(d=>d.family).join(", ");throw new 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 i={family:t,weight:n.bold?700:400,style:n.italic?"italic":"normal"},r=h$1(i),s=o.get(r);if(!s){try{s=e.fonts.resolve(i);}catch{return null}o.set(r,s);}return s instanceof d$2?null:s}function bt(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 so(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 i=wa(n.style,n.fontSlot),r=gd(n)?hd(n):da(n.text,i);if(r.length===0)return null;let s=i.fontFamily??e.defaultFont.family,a=G(e,o,s,i)??(b(s)&&so(r)?G(e,o,e.defaultFont.family,i):null);if(!a)return null;try{if(i.smallCaps&&!da$1(e.shaper,e.environment,a,i,t))return null;let p=ca(e.shaper,e.environment,a,i,r);return Object.freeze({run:p,font:H(p.fontSpans[0]?.font??a),...p.fontSpans.length>1?{fonts:Object.freeze(p.fontSpans.map(d=>H(d.font)))}:{},fixedPointScale:e.environment.fixedPointScale})}catch{return null}}}function Rt(e){return o=>{if(e.status()!=="active")throw e.unavailable();return e.shaping()?.shapeLaidOutText(o)??null}}var M=new Map,St=new WeakMap,se=0,C;var le=32,Ot=c;function vt(){if(C)return C;let e=(async()=>(await c$2(),g({...h,maxFontBytes:a})))();return C=e,e.catch(()=>{C===e&&(C=void 0);}),e}function wt(e){let o=X();return fa(e,{resolveFont(t){return bt(e,o,t)},fallback:ja()})}async function At(e,o,t=[],n=false,i){if(!l(e))throw new TypeError("Session exporter shaping requires a prepared font handle");let r=j$1(i,h),s$1=await vt(),a=xt(await s(e,s$1,r,o,n),t);return Object.freeze({createMeasurer:()=>wt(a),resolveFont:p=>a.fonts.resolve(p),shapeLaidOutText:ae(a),producer:["node-export-session",JSON.stringify(t),e.fingerprint,a.operation.shapingHash,`producer:${a.operation.producerVersion}`,`fallback:${ia}`].join("|"),extensionFingerprint:e.fingerprint})}function lo(e,o,t){if(!l(e))return Promise.reject(new TypeError("Shared exporter shaping requires a prepared font handle"));let n$1=j$1(t,h),i$1=i(n$1),r=St.get(e),s$1=r?.get(i$1);if(s$1)return s$1;let a=`${n(e)}|${i$1}`,p=M.get(a);if(!p){if(M.size>=le)return Promise.reject(new RangeError(`Shared exporter shaping is limited to ${le} process-wide configurations`));p=(async()=>{let l=m(e).sources.reduce((h,E)=>h+(E.availability==="forbidden"?0:E.bytes.byteLength),0);if(se+l>Ot)throw new RangeError(`Shared exporter shaping font bytes are limited to ${Ot} process-wide`);se+=l;let c;try{let h=await vt();c=await s(e,h,n$1,o);}catch(h){throw se-=l,h}return Object.freeze({createMeasurer:()=>wt(c),shapeLaidOutText:ae(c),shapingHash:c.operation.shapingHash,producerVersion:c.operation.producerVersion})})(),M.set(a,p),p.catch(()=>{M.get(a)===p&&M.delete(a);});}let d=e.fingerprint,u=p.then(m=>Object.freeze({createMeasurer:m.createMeasurer,shapeLaidOutText:m.shapeLaidOutText,producer:["node-export",d,m.shapingHash,`producer:${m.producerVersion}`,`fallback:${ia}`].join("|"),extensionFingerprint:d}));return r||St.set(e,r=new Map),r.set(i$1,u),u.catch(()=>{r?.get(i$1)===u&&r.delete(i$1);}),u}var co="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable";function uo(e){let o=e.currentPackage(),t=(o.relationships.get(o.mainDocumentPart)??[]).find(i=>i.type===co),n;if(t){let i=J(t);i.mode==="Internal"&&i.target.ok&&(n=o.parts.get(i.target.partName));}return n??=o.parts.get("/word/fontTable.xml"),lf(o,n)}function Tt(e,o){let t=uo(e);if(t.length!==0)return j$2(n=>{let i=new Set((n.resolvedFaces??[]).map(s=>h$1(s))),r=E(t,{maxFontBytes:a,aggregateBudget:po(n),shadowedRequests:i});if(o)for(let s of r.dropped){if(o.dropped.length>=ee)break;o.dropped.push(s);}return {sources:r.sources}})}function po(e){let o=e.committedSourceBytes;return o===void 0||!Number.isSafeInteger(o)||o<=0?c:Math.max(0,c-o)}function fo(e){return te(e)&&ie(e)}var A=0,Lt=Symbol("font-resolution-timeout");function mo(e){let o=0,t=false;return e?.(A),{reserve:i=>{if(t)throw new Error("Document font-byte lease is already released");if(A+i>c)throw new d("layoutFailed",`Active document export font bytes are limited to ${c}; requested ${i} bytes with ${A} bytes already active`);A+=i,o+=i,e?.(A);let r=false;return ()=>{r||t||(r=true,A-=i,o-=i,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 yo(e,o){return e.attributes.find(t=>t.localName===o&&(t.namespaceUri===la||t.namespaceUri===""))?.value}async function ho(e$1,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=Ca(e$1);if(!t.ok)return t;let{fonts:n,lastResortFonts:i,fontResolutionTimeoutMs:r,fontPolicy:s,onFontResolution:a,glyphFallbacks:p,documentLigatures:d$1,fontShaping:u,...m}=o,l=Array.isArray(n)?n:[n],c=i===void 0?[]:Array.isArray(i)?i:[i],h,E;try{E=await go(t.view,l,{signal:o.signal,timeoutMs:r??o.resourceTimeoutMs,fontPolicy:s,glyphFallbacks:p,documentLigatures:d$1,fontShaping:u,lastResortFonts:c,onFontResolution:b=>(h=b,a?.(b))});}catch(b){if(b instanceof d&&b.code==="aborted")return {ok:false,reason:"aborted"};throw b}if(!h)throw E?.dispose(),new d("layoutFailed","Document font resolution completed without publishing its evidence");let R;try{R=e(t.view,{...m,reuseAcrossRevisions:!1,...E?{measurer:E.createMeasurer(),producer:o.producer??E.producer}:o.producer?{producer:o.producer}:{}});}catch(b){throw E?.dispose(),b}if(!R.ok)return E?.dispose(),R;let f=R.session,g=E,x="active",F=()=>x==="aborted"?new d("aborted","Export resource settlement was aborted"):new d("disposed","Export session has been disposed"),y=b=>{if(x==="active"){x=b,o.signal?.removeEventListener("abort",S);try{f.dispose();}finally{g?.dispose(),g=void 0;}}},S=()=>y("aborted");return o.signal?.addEventListener("abort",S,{once:true}),o.signal?.aborted&&S(),{ok:true,session:Object.freeze({fontResolution:h,layout:()=>x==="active"?f.layout():Promise.reject(F()),layoutFor:b=>x==="active"?f.layoutFor(b):Promise.reject(F()),validatedImageBytes:b=>x==="active"?f.validatedImageBytes(b):null,admittedFontFace:Et({status:()=>x,unavailable:F,resolve:()=>g?.resolveFont}),shapeLaidOutText:Rt({status:()=>x,unavailable:F,shaping:()=>g}),dispose:()=>y("disposed")})}}async function go(e,o$1,t={}){let n=j$1(t.fontShaping,h);if((t.glyphFallbacks?.length??0)>16)throw new RangeError("At most 16 glyph fallback faces are supported");let i=xo(t.timeoutMs),r=new AbortController,s=()=>r.abort(t.signal?.reason);t.signal?.addEventListener("abort",s,{once:true}),t.signal?.aborted&&s();let a=setTimeout(()=>r.abort(Lt),i);try{de(r.signal);let p$1=(async()=>{let d=mo(t.onActiveFontBytesChange),u=!1;try{let m=Eo(e).slice(0,c$1),l=x(e,m),c=[],h={dropped:[]},E=Tt(e,h),R=[...o$1,...E?[E]:[],...t.lastResortFonts??[]],f$1=await o(R,{families:[...new Set([...(t.glyphFallbacks??[]).map(b=>b.family),...l.families])].slice(0,c$1),defaultFamily:d$1.family,signal:r.signal},{onOriginFailure:b=>c.push(b),reserveOwnedBytes:d.reserve,maxExecutionFontBytes:n.maxFontBytes});de(r.signal);let g=f(f$1??{}),x$1=z$1(g,l),F=A$1(g,x$1,l);if(x$1.sources.length===0){let b=oe(m,x$1.defaultFont.family,c,void 0,h.dropped);ne(b,t),re(b,t,t.glyphFallbacks);return}let y=await At(p(x$1),void 0,t.glyphFallbacks,t.documentLigatures,{maxFontBytes:n.maxFontBytes});de(r.signal);let S=oe(m,x$1.defaultFont.family,c,y.resolveFont,h.dropped,F);return ne(S,t),re(S,t,t.glyphFallbacks),u=!0,Object.freeze({...y,dispose:d.release})}finally{u||d.release();}})();return await Promise.race([p$1,Fo(r.signal)])}finally{clearTimeout(a),t.signal?.removeEventListener("abort",s);}}function xo(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 Fo(e){return new Promise((o,t)=>{let n=()=>{t(Pt(e));};e.aborted?n():e.addEventListener("abort",n,{once:true});})}function Pt(e){let o=e.reason===Lt;return new 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 Pt(e)}function Eo(e){let o=[e.part().root],t=[],n=[],i=new Set([e.part().name]),r=(u,m)=>{!m||i.has(m.name)||(i.add(m.name),u.push(m.root));};for(let u of e.headerFooterPartsBySection()){for(let m of u.headers.values())r(t,m);for(let m of u.footers.values())r(t,m);}for(let u of ["footnote","endnote"])n.push(...bo(e,u));let s=e.documentThemeFonts(),a={...s,major:s.major,minor:s.minor,majorEastAsia:s.majorEastAsia??null,minorEastAsia:s.minorEastAsia??null},p=new Map,d=(u,m)=>{let l=e$1(u,e.stylesRoot(),a,So(u,m)),c=v(u,e.numberingRoot(),e.stylesRoot(),a);for(let h of [...l.direct,...wo(u),...c,...s$1(u,e.stylesRoot(),a),...l.inherited]){let E=h.toLowerCase();p.has(E)||p.set(E,h);}};return d(o,"body"),d(t,"furniture"),d(n,"note"),[...p.values()]}function bo(e,o){let t=lh(e.currentPackage(),o);if(!t)return [];let n=new Set(mh(e.part()).filter(r=>r.noteKind===o).map(r=>r.noteId)),i=[];for(let r of t.root.children){if(r.kind==="textValue")continue;let s=zc(r),a=yc(r);(s==="separator"||s==="continuationSeparator"||a!==null&&n.has(a))&&i.push(r);}return i}var Ro="http://schemas.openxmlformats.org/officeDocument/2006/math";function So(e,o){let t=new Set;for(let n of e){let i=[],r=[{node:n,context:o}];for(;r.length>0;){let{node:s,context:a}=r.pop();s.namespaceUri===la&&s.localName==="p"&&i.push({paragraph:s,context:a});let p=s.namespaceUri===la&&s.localName==="txbxContent"&&(a==="body"||a==="note")?"detached":a;for(let d=s.children.length-1;d>=0;d-=1){let u=s.children[d];u.kind!=="textValue"&&r.push({node:u,context:p});}}for(let s of i)Oo(s.paragraph,t,s.context);}return t}function Oo(e,o,t){let n=Xb(),i=null,r=null,s="",a=false,p=false,d=false,u=0,m=[];for(let l=e.children.length-1;l>=0;l-=1){let c=e.children[l];c.kind!=="textValue"&&m.push({node:c,runId:null,visibility:k,containerDepth:0});}for(;m.length>0;){let{node:l,runId:c,visibility:h,containerDepth:E}=m.pop();if(E>=wa$1||l.namespaceUri===la&&l.localName==="p")continue;let R=l.namespaceUri===la&&l.localName==="r"?l.id:c;if(l.namespaceUri===la&&l.localName==="fldSimple"){let f=ce(l,"instr")??"";_c(f,{allowPageFields:t==="body"||t==="furniture",allowRefFields:t==="body"||t==="note",allowPageRef:t==="body",allowAutonum:t==="body"||t==="note"})&&vo(l)!==k&&o.add(l.id);}if(l.namespaceUri===la&&l.localName==="fldChar"){let f=ce(l,"fldCharType");if(f==="begin")_b(n),n.nesting===1&&(i=R,r=null,s="",a=false,p=false,d=Ef(l),u=0);else if(f==="separate"){let g=n.nesting===1;if(ac(n),g){let x=Zb(n);s=x.instruction,a=x.overflow||n.nestingOverflow,r=R,p=true;}}else if(f==="end"){if(n.nesting===1){if(n.phase==="instruction"){let x=Zb(n);s=x.instruction,a=x.overflow||n.nestingOverflow;}if(!a&&Zc(s,{hasSeparate:p,hasLegacyFormData:d,allowPageFields:t==="body"||t==="furniture",allowRefFields:t==="body"||t==="note",allowPageRef:t==="body",allowAutonum:t==="body"||t==="note"})&&u!==k){let x=r??i;x&&o.add(x);}}bc(n);}continue}if(l.namespaceUri===la&&(l.localName==="instrText"||l.localName==="delInstrText")){$b(n,Nt(l),l.localName==="delInstrText");continue}n.nesting>0&&cc(n)&&l.namespaceUri===la&&Dt(l)&&(u|=h);for(let f=l.children.length-1;f>=0;f-=1){let g=l.children[f];g.kind!=="textValue"&&m.push({node:g,runId:R,visibility:h&_t(l),containerDepth:xa(l,E)});}}Yb(n);}function Dt(e){return e.localName==="t"||e.localName==="delText"?Nt(e).length>0:e.localName==="sym"||e.localName==="tab"||e.localName==="br"}var ue=1,kt=2,It=4,k=ue|kt|It;function vo(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:i}=o.pop();if(!(n.namespaceUri===la&&n.localName==="p")){if(n.namespaceUri===la&&Dt(n)&&(t|=i,t===k))return t;for(let r of n.children)r.kind!=="textValue"&&o.push({node:r,visibility:i&_t(n)});}}return t}function _t(e){return e.namespaceUri!==la?k:e.localName==="ins"||e.localName==="moveTo"?ue|kt:e.localName==="del"||e.localName==="moveFrom"?ue|It:k}function wo(e){let o=new Map,t=n=>{let i=b$2(n??void 0);if(i===null)return;let r=i.toLowerCase();o.has(r)||o.set(r,i);};for(let n of e){let i=[n];for(;i.length>0;){let r=i.pop();if(r.namespaceUri===Ro&&t(bd),r.namespaceUri===la&&r.localName==="sym"&&t(c$3(yo(r,"font"))),r.localName==="textpath"&&t(pd(r)),r.namespaceUri===la&&r.localName==="fldSimple"){let s=ce(r,"instr");t(Yc(s??"")?.font??null);}if(r.namespaceUri===la&&r.localName==="p")for(let s of u(r))t(s);for(let s=r.children.length-1;s>=0;s-=1){let a=r.children[s];a.kind!=="textValue"&&i.push(a);}}}return [...o.values()]}function Nt(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 i=n.children.length-1;i>=0;i-=1)t.push(n.children[i]);}return o}var Ut="FILE_TOO_LARGE",Mt=8;function Ao(e){return typeof e=="object"&&e!==null}function Bt(e){if(!(!Ao(e)||typeof e.code!="string"))return e.code}function qt(e){return e===""||e.toLowerCase()==="localhost"}function To(e){try{let o=decodeURIComponent(e);return o.includes("\0")?null:o}catch{return null}}function zt(e){let o=To(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 jt(e){let o=zt(e);return o===null?null:o.endsWith("/")?o:`${o}/`}function Lo(e){return e==="/"||/^\/[A-Za-z]:\/$/.test(e)}function Po(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(!qt(o.host))throw new TypeError("trustedRoot must be a local file: URL");let t=jt(o.pathname);if(t===null||Lo(t))throw new TypeError("trustedRoot must be a directory inside the filesystem");let n=new URL("file:///");return n.pathname=t,n}function Do(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 ko(e){let o=Do(e);if(o.length===0)throw new TypeError("trustedRoot must name at least one directory");if(o.length>Mt)throw new TypeError(`trustedRoot must not exceed ${Mt} directories`);return o.map(Po)}function Io(e){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError("maxBytes must be a positive safe integer");if(e>a)throw new TypeError(`maxBytes must not exceed ${a}`);return e}function _o(e,o){if(e.protocol!=="file:"||e.username!==""||e.password!==""||!qt(e.host))return null;let t=zt(e.pathname);if(t===null)return null;for(let n of o){let i=jt(n.pathname);if(i===null||!t.startsWith(i)||t.length<=i.length)continue;let r=new URL("file:///");return r.pathname=t,r}return null}function No(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 Mo(e,o,t){let n=t.relative(t.resolve(e),t.resolve(o));return n!==""&&!n.startsWith("..")&&!t.isAbsolute(n)}function Ct(e,o,t){return e.some(n=>Mo(n,o,t))}async function Co(e,o){let t=[];for(let n of e)try{t.push(await o(n));}catch(i){if(Bt(i)==="ENOENT")continue;throw i}return t}function Uo(e){return async(o,{signal:t,maxBytes:n})=>{if(t?.aborted)throw t.reason;let[{open:i,realpath:r},{constants:s},{fileURLToPath:a},p]=await Promise.all([import('fs/promises'),import('fs'),import('url'),import('path')]),d=e.map(h=>p.resolve(a(h.href))),u=p.resolve(a(typeof o=="string"?o:o.href));if(!Ct(d,u,p))throw Object.assign(new Error("packaged file is outside trustedRoot"),{code:"ENOENT"});let m=typeof s.O_NOFOLLOW=="number"?s.O_RDONLY|s.O_NOFOLLOW:"r",l=await i(u,m),c=()=>{l.close();};t?.addEventListener("abort",c,{once:true});try{if(t?.aborted)throw t.reason;let h=await r(u);if(!Ct(await Co(d,r),h,p))throw Object.assign(new Error("packaged file is outside trustedRoot"),{code:"ENOENT"});let E=(await l.stat()).size;if(!Number.isSafeInteger(E)||E<0||E>n)throw Object.assign(new Error("packaged file exceeds maxBytes"),{code:Ut});let R=new Uint8Array(E),f=0;for(;f<R.byteLength;){if(t?.aborted)throw t.reason;let{bytesRead:g}=await l.read(R,f,R.byteLength-f,f);if(g===0)break;f+=g;}if(t?.aborted)throw t.reason;return f===R.byteLength?R:R.slice(0,f)}catch(h){throw t?.aborted?t.reason:h}finally{t?.removeEventListener("abort",c),await l.close().catch(()=>{});}}}function Bo(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=ko(e.trustedRoot),t=Io(e.maxBytes),n=e.read??Uo(o),i=e.networkFetch??fetch;return(async(r,s)=>{let a=s?.signal;if(a?.aborted)throw a.reason;let p=No(r);if(p.protocol!=="file:")return i(p,s);let d=_o(p,o);if(!d)return new Response(null,{status:404});let u=a?new AbortController:void 0,m=()=>u?.abort(a?.reason);a?.addEventListener("abort",m,{once:true});let l;try{if(l=await n(d,{maxBytes:t,...u?{signal:u.signal}:{}}),a?.aborted)throw a.reason;if(l.byteLength>t)return new Response(null,{status:413})}catch(c){if(a?.aborted)throw a.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 h=Bt(c);if(h===Ut)return new Response(null,{status:413});if(h==="ENOENT"||h==="ENOTDIR"||h==="ELOOP")return new Response(null,{status:404});throw c}finally{a?.removeEventListener("abort",m);}return new Response(l,{status:200})})}
2
- export{le as MAX_SHARED_EXPORT_SHAPING_CONFIGURATIONS,lo as acquireSharedExportShaping,Bo as createPackagedFileFetch,te as hasExportAdmittedFont,ie as hasExportLaidOutText,fo as hasFontBackedExportCapabilities,ho as openFontBackedDocumentForExport};
1
+ import {c as c$1,D,t,d,f,F,G as G$1,u,B,y,o,K,r,A as A$1,q}from'./chunk-ESYUKD5D.js';import {l,j,h,i,n,m,s,p,c as c$2,g,da,ca,ha}from'./chunk-SVM6PGMS.js';import'./chunk-RIYSCEFQ.js';import {h as h$1,i as i$1}from'./chunk-R4R3AAE4.js';export{h as ExportResourceError,d as createNodeImageDecodePort,c as exportDestinationNamed,i as openDocumentForExport}from'./chunk-R4R3AAE4.js';import {c,la,a,za,ld,md,ga,ma,h as h$2,d as d$1,Rd,b as b$1,i as i$2,Gc,Td,Jc as Jc$1,Lc,Ic as Ic$1,Sd,Mc,Kc,Nc,Hc,r as r$1,u as u$1,n as n$1,sc}from'./chunk-CM5VZRBV.js';import {e,c as c$3,b as b$2}from'./chunk-D7FAFFTN.js';import'./chunk-L3YXJDPX.js';import'./chunk-PLKDS4JT.js';import {va}from'./chunk-JNGLSBPH.js';import {Wd,ti,ui,Jc,Ic,b,pa,Ud,N,qg,Aa,Jg,Ba}from'./chunk-AU33YWEJ.js';function Yt(e,o,t){let n=Wd().metafile;return n?n.replay(e,o,{textAdvance:t.measureText}):Promise.resolve(null)}function $t(e){return !Number.isFinite(e)||e<=0?.8:Math.max(1,Math.round(e*.8))/e}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}}},a=e.shape(n);if(t.glyphs.length!==a.glyphs.length||t.glyphs.some((d,f)=>d.id!==a.glyphs[f]?.id))return t;let r=[],s=0;for(let d of o.text){let f=d===" "||d.toUpperCase()!==d,E=r.at(-1);E&&(E.lower===f||/\p{M}/u.test(d))?E.text+=d:r.push({text:d,start:s,lower:f}),s+=d.length;}let i=[],p=[],l=[],u=true,y=0,c=$t(o.fontSizeHalfPoints);for(let d of o.environment.direction==="rtl"?r.reverse():r){let f=d.lower?c:1,E=[],R=[],m="",x=d.start;for(let h of d.text){let b=d.lower?h.toUpperCase():h;for(let F=0;F<b.length;F++)E.push(x),R.push(x+h.length);m+=b,x+=h.length;}let g=e.shape({...n,text:m}),S=i.length;for(let[h,b]of g.glyphs.entries()){let F=g.exactAdvancesX?.[h];F===void 0?u=false:l.push(F*f),i.push({...b,cluster:E[b.cluster]??d.start,originX:n$1(y+Math.round(b.originX*f)),originY:n$1(Math.round(b.originY*f)),offsetX:n$1(Math.round(b.offsetX*f)),offsetY:n$1(Math.round(b.offsetY*f)),advanceX:n$1(Math.round(b.advanceX*f)),advanceY:n$1(Math.round(b.advanceY*f)),drawScale:f});}for(let h of g.clusters){let b=E[h.textStart]??d.start,F=R[h.textEnd-1]??x,I=n$1(Math.round(h.advance*f)),T=p.at(-1);T&&T.textStart===b&&T.textEnd===F?p[p.length-1]={...T,glyphEnd:S+h.glyphEnd,advance:n$1(T.advance+I),caretEdges:[n$1(0),n$1(T.advance+I)]}:p.push({...h,textStart:b,textEnd:F,glyphStart:S+h.glyphStart,glyphEnd:S+h.glyphEnd,advance:I,caretEdges:h.caretEdges.map(Gt=>n$1(Math.round(Gt*f))),fontSpan:0});}y+=g.glyphs.reduce((h,b)=>h+Math.round(b.advanceX*f),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 yt=new WeakMap;function Kt(e){let o=yt.get(e);return o===void 0&&(o=Qt(e.bytes,e.faceIndex),yt.set(e,o)),o}var Zt=new Set(["COLR","CBDT","sbix"]),Jt=512;function Qt(e,o){let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e.byteLength<12)return false;let n=0;if(ht(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),Jt);for(let r=0;r<a;r++){let s=n+12+r*16;if(s+4>e.byteLength)return false;if(Zt.has(ht(e,s)))return true}return false}function ht(e,o){return String.fromCharCode(e[o],e[o+1],e[o+2],e[o+3])}var eo=/\p{Emoji_Presentation}|️/u;function to(e){return eo.test(e)}function z(e,o){if(e.length<2)return e;let t=e.filter(Kt);if(t.length===0||t.length===e.length)return e;let n=e.filter(a=>!t.includes(a));return to(o)?[...t,...n]:[...n,...t]}var oo=2048;function gt(e,o,t,n){if(!t.clusters.length||t.clusters.length>oo)return null;let a=(m,x)=>{let{context:g,...S}=o,h={...S,text:x,environment:r$1({...o.environment,font:m})};return _(e,h,e.shape(h))},r=[],s=new Map;for(let m of [...t.clusters].sort((x,g)=>x.textStart-g.textStart)){let x=o.environment.font,g=o.text.slice(m.textStart,m.textEnd),S=r.at(-1);if(/^[\uFE0E\uFE0F]$/.test(g)&&S&&S.end===m.textStart){S.end=m.textEnd;continue}if(o.environment.script==="Hebr"&&/^\s+$/u.test(g)&&S&&S.font!==o.environment.font&&S.end===m.textStart){S.end=m.textEnd;continue}if(t.glyphs.slice(m.glyphStart,m.glyphEnd).some(b=>b.id===0)){let b=o.text.slice(m.textStart,m.textEnd+1),F=s.get(g)??z(n,b).find(I=>{try{return !a(I,g).glyphs.some(T=>T.id===0)}catch{return false}});if(!F)return null;s.set(g,F),x=F;}let h=r.at(-1);h&&h.font===x&&h.end===m.textStart?h.end=m.textEnd:r.push({start:m.textStart,end:m.textEnd,font:x});}let i=[],p=[],l=[],u=[],y=true,c=0,d=0,f=0,E=0,R=0;for(let m of o.environment.direction==="rtl"?r.reverse():r){let x=a(m.font,o.text.slice(m.start,m.end));if(x.glyphs.some(h=>h.id===0))return null;let g=i.length,S=l.length;for(let h of x.glyphs)i.push({...h,cluster:m.start+h.cluster,originX:n$1(c+h.originX),originY:n$1(d+h.originY)});if(x.exactAdvancesX===void 0)y=false;else for(let h of x.exactAdvancesX)u.push(h);for(let h of x.clusters)p.push({...h,textStart:m.start+h.textStart,textEnd:m.start+h.textEnd,glyphStart:g+h.glyphStart,glyphEnd:g+h.glyphEnd,fontSpan:S});x.glyphs.length&&l.push({font:m.font,glyphStart:g,glyphEnd:i.length,fallbackIndex:m.font===o.environment.font?null:n.indexOf(m.font)}),c+=x.glyphs.reduce((h,b)=>h+b.advanceX,0),d+=x.glyphs.reduce((h,b)=>h+b.advanceY,0),f=Math.max(f,x.metrics.ascent),E=Math.max(E,x.metrics.descent),R=Math.max(R,x.metrics.lineGap);}return u$1({...t,glyphs:i,clusters:p,fontSpans:l,exactAdvancesX:y&&u.length===i.length?u:void 0,metrics:{ascent:n$1(f),descent:n$1(E),lineGap:n$1(R)}},{...o.environment,fallbackOrder:n})}var no=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 "]]]),ro=512,xt=new WeakMap;function io(e,o){let t=new Set,n=new DataView(e.buffer,e.byteOffset,e.byteLength),a=d=>d+2<=n.byteLength?n.getUint16(d):-1,r=d=>d+4<=n.byteLength?n.getUint32(d):-1,s=d=>d+4<=n.byteLength?String.fromCharCode(n.getUint8(d),n.getUint8(d+1),n.getUint8(d+2),n.getUint8(d+3)):"",i=0;if(s(0)==="ttcf"){let d=r(8);if(d<0||o<0||o>=d||(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 d=0;d<p;d+=1){let f=i+12+d*16;if(s(f)==="GSUB"){l=r(f+8);break}}if(l<0)return t;let u=a(l+4);if(u<=0)return t;let y=l+u,c=a(y);if(c<0)return t;for(let d=0;d<Math.min(c,ro);d+=1){let f=s(y+2+d*6);f&&t.add(f);}return t}function ao(e,o){let t=xt.get(e);return t||(t=io(e.bytes,e.faceIndex),xt.set(e,t)),(no.get(o)??[o.toLowerCase()]).some(a=>t.has(a))}function Ft(e,o){let t=e.filter(n=>ao(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 u$1({...r,text:o.text},o.environment)}catch{return t}}function Et(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 d$1)),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=_(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)||/^(Arab|Syrc|Nkoo|Mong)$/.test(i.environment.script)&&lo(i.text,l)){let u=gt(n,i,l,t);if(u)return u}for(let u of Ft(z(t,i.text),i.environment.script))if(!(u.hash===i.environment.font.hash&&u.faceIndex===i.environment.font.faceIndex))try{let y={...i,environment:r$1({...i.environment,font:u})},c=_(n,y,n.shape(y));if(!c.glyphs.some(d=>d.id===0))return c}catch{}return l};return {...e,shaper:r}}var so=/[\p{Script=Arabic}\p{Script=Syriac}\p{Script=Nko}\p{Script=Mongolian}ـ‌‍]/u;function lo(e,o){let t=false;for(let n of o.clusters)if(o.glyphs.slice(n.glyphStart,n.glyphEnd).some(a=>a.id===0)&&(t=true,so.test(e.slice(n.textStart,n.textEnd))))return false;return t}var ee=b$1;function te(e){return typeof e.admittedFontFace=="function"}var co=Object.freeze([{weight:400,style:"normal"},{weight:700,style:"normal"},{weight:400,style:"italic"},{weight:700,style:"italic"}]);function H(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}var bt=new WeakMap;function X(e){let o=bt.get(e);return o||bt.set(e,o=uo(e)),o}function uo(e){let o=e.substitution;return Object.freeze({id:e.id,identity:e.identity,family:e.family,request:H(e.request),byteLength:e.byteLength,hash:e.hash,faceIndex:e.faceIndex,substitution:o?Object.freeze({requested:H(o.requested),resolved:H(o.resolved),...o.lineMetrics?{lineMetrics:Object.freeze({...o.lineMetrics})}:{}}):null})}function po(e){return Object.freeze({...X(e),bytes:i$2(e)})}function fo(e,o){if(!e)return null;try{let t=e(o);return !t||t instanceof d$1?null:po(t)}catch{return null}}function Rt(e){return o=>{if(e.status()!=="active")throw e.unavailable();return fo(e.resolve(),o)}}function mo(e){return Object.freeze(e.slice(0,ee).map(o=>Object.freeze({request:H(o.request),partName:o.partName,reason:o.reason})))}function oe(e,o,t,n,a=[],r=new Set){let s=new Map;for(let p of [...e,o]){let l=p.toLowerCase();s.has(l)||s.set(l,p);}let i=[...s.values()].map(p=>{let l=[];for(let y of co){let c=n?.({family:p,...y});!c||c instanceof d$1||l.push(Object.freeze({...y,sourceFamily:c.family,via:c.substitution?"substitution":"direct",identity:c.identity,id:c.id,hash:c.hash,faceIndex:c.faceIndex,substitution:c.substitution}));}let u=r.has(p.trim().toLowerCase())?l.filter(y=>y.via==="direct").length:l.length;return Object.freeze({family:p,coverage:u===4?"complete":u>0?"partial":"none",faces:Object.freeze(l)})});return Object.freeze({requestedFamilies:Object.freeze([...e]),defaultFamily:o,families:Object.freeze(i),originFailures:Object.freeze([...t]),droppedEmbeddedFonts:mo(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$1=new Set(t.map(l=>n(l.family))),s=l=>{if(!(l instanceof q))return true;let u=n(l.request.family);return a.has(u)||!r$1.has(u)},i=e.originFailures.some(({cause:l})=>l instanceof r?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 h$1("layoutFailed",`Strict font policy refused export${p?`; incomplete families: ${p}`:"; a font origin failed"}`)}function G(){return new Map}function V(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=h$2(a),s=o.get(r);if(!s){try{s=e.fonts.resolve(a);}catch{return null}o.set(r,s);}return s instanceof d$1?null:s}function St(e,o,t){let n=t.fontFamily??e.defaultFont.family;return V(e,o,n,t)}function ie(e){return typeof e.shapeLaidOutText=="function"}function yo(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=G(),t=new WeakMap;return n=>{let a=za(n.style,n.fontSlot),r=ld(n)?md(n):ga(n.text,a);if(r.length===0)return null;let s=a.fontFamily??e.defaultFont.family,i=V(e,o,s,a)??(b(s)&&yo(r)?V(e,o,e.defaultFont.family,a):null);if(!i)return null;try{if(a.smallCaps&&!da(e.shaper,e.environment,i,a,t))return null;let p=ca(e.shaper,e.environment,i,a,r);return Object.freeze({run:p,font:X(p.fontSpans[0]?.font??i),...p.fontSpans.length>1?{fonts:Object.freeze(p.fontSpans.map(l=>X(l.font)))}:{},fixedPointScale:e.environment.fixedPointScale})}catch{return null}}}function Ot(e){return o=>{if(e.status()!=="active")throw e.unavailable();return e.shaping()?.shapeLaidOutText(o)??null}}var C=new Map,vt=new WeakMap,se=0,U;var le=32,wt=c;function At(){if(U)return U;let e=(async()=>(await c$2(),g({...h,maxFontBytes:a})))();return U=e,e.catch(()=>{U===e&&(U=void 0);}),e}function Tt(e){let o=G();return ha(e,{resolveFont(t){return St(e,o,t)},fallback:ma()})}async function Lt(e,o,t=[],n=false,a){if(!l(e))throw new TypeError("Session exporter shaping requires a prepared font handle");let r=j(a,h),s$1=await At(),i=Et(await s(e,s$1,r,o,n),t);return Object.freeze({createMeasurer:()=>Tt(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:${la}`].join("|"),extensionFingerprint:e.fingerprint})}function ho(e,o,t){if(!l(e))return Promise.reject(new TypeError("Shared exporter shaping requires a prepared font handle"));let n$1=j(t,h),a=i(n$1),r=vt.get(e),s$1=r?.get(a);if(s$1)return s$1;let i$1=`${n(e)}|${a}`,p=C.get(i$1);if(!p){if(C.size>=le)return Promise.reject(new RangeError(`Shared exporter shaping is limited to ${le} process-wide configurations`));p=(async()=>{let c=m(e).sources.reduce((f,E)=>f+(E.availability==="forbidden"?0:E.bytes.byteLength),0);if(se+c>wt)throw new RangeError(`Shared exporter shaping font bytes are limited to ${wt} process-wide`);se+=c;let d;try{let f=await At();d=await s(e,f,n$1,o);}catch(f){throw se-=c,f}return Object.freeze({createMeasurer:()=>Tt(d),shapeLaidOutText:ae(d),shapingHash:d.operation.shapingHash,producerVersion:d.operation.producerVersion})})(),C.set(i$1,p),p.catch(()=>{C.get(i$1)===p&&C.delete(i$1);});}let l$1=e.fingerprint,u=p.then(y=>Object.freeze({createMeasurer:y.createMeasurer,shapeLaidOutText:y.shapeLaidOutText,producer:["node-export",l$1,y.shapingHash,`producer:${y.producerVersion}`,`fallback:${la}`].join("|"),extensionFingerprint:l$1}));return r||vt.set(e,r=new Map),r.set(a,u),u.catch(()=>{r?.get(a)===u&&r.delete(a);}),u}var go="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable";function xo(e){let o=e.currentPackage(),t=(o.relationships.get(o.mainDocumentPart)??[]).find(a=>a.type===go),n;if(t){let a=N(t);a.mode==="Internal"&&a.target.ok&&(n=o.parts.get(a.target.partName));}return n??=o.parts.get("/word/fontTable.xml"),qg(o,n)}function Pt(e,o$1){let t=xo(e);if(t.length!==0)return o(n=>{let a$1=new Set((n.resolvedFaces??[]).map(s=>h$2(s))),r=K(t,{maxFontBytes:a,aggregateBudget:Fo(n),shadowedRequests:a$1});if(o$1)for(let s of r.dropped){if(o$1.dropped.length>=ee)break;o$1.dropped.push(s);}return {sources:r.sources}})}function Fo(e){let o=e.committedSourceBytes;return o===void 0||!Number.isSafeInteger(o)||o<=0?c:Math.max(0,c-o)}function Eo(e){return te(e)&&ie(e)}var A=0,Mt=Symbol("font-resolution-timeout");function bo(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>c)throw new h$1("layoutFailed",`Active document export font bytes are limited to ${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 Ro(e,o){return e.attributes.find(t=>t.localName===o&&(t.namespaceUri===pa||t.namespaceUri===""))?.value}async function So(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=va(e);if(!t.ok)return t;let{fonts:n,lastResortFonts:a,fontResolutionTimeoutMs:r,fontPolicy:s,onFontResolution:i,glyphFallbacks:p,documentLigatures:l,fontShaping:u,...y}=o,c=Array.isArray(n)?n:[n],d=a===void 0?[]:Array.isArray(a)?a:[a],f,E;try{E=await Oo(t.view,c,{signal:o.signal,timeoutMs:r??o.resourceTimeoutMs,fontPolicy:s,glyphFallbacks:p,documentLigatures:l,fontShaping:u,lastResortFonts:d,onFontResolution:F=>(f=F,i?.(F))});}catch(F){if(F instanceof h$1&&F.code==="aborted")return {ok:false,reason:"aborted"};throw F}if(!f)throw E?.dispose(),new h$1("layoutFailed","Document font resolution completed without publishing its evidence");let R;try{R=i$1(t.view,{...y,reuseAcrossRevisions:!1,...E?{measurer:E.createMeasurer(),producer:o.producer??E.producer}:o.producer?{producer:o.producer}:{}});}catch(F){throw E?.dispose(),F}if(!R.ok)return E?.dispose(),R;let m=R.session,x=E,g="active",S=()=>g==="aborted"?new h$1("aborted","Export resource settlement was aborted"):new h$1("disposed","Export session has been disposed"),h=F=>{if(g==="active"){g=F,o.signal?.removeEventListener("abort",b);try{m.dispose();}finally{x?.dispose(),x=void 0;}}},b=()=>h("aborted");return o.signal?.addEventListener("abort",b,{once:true}),o.signal?.aborted&&b(),{ok:true,session:Object.freeze({fontResolution:f,layout:()=>g==="active"?m.layout():Promise.reject(S()),layoutFor:F=>g==="active"?m.layoutFor(F):Promise.reject(S()),validatedImageBytes:F=>g==="active"?m.validatedImageBytes(F):null,metafileBytes:F=>g==="active"?m.metafileBytes?.(F)??null:null,chartFallbackResource:F=>g==="active"?m.chartFallbackResource?.(F)??Promise.resolve(void 0):Promise.resolve(void 0),admittedFontFace:Rt({status:()=>g,unavailable:S,resolve:()=>x?.resolveFont}),shapeLaidOutText:Ot({status:()=>g,unavailable:S,shaping:()=>x}),dispose:()=>h("disposed")})}}async function Oo(e,o,t$1={}){let n=j(t$1.fontShaping,h);if((t$1.glyphFallbacks?.length??0)>16)throw new RangeError("At most 16 glyph fallback faces are supported");let a=vo(t$1.timeoutMs),r=new AbortController,s=()=>r.abort(t$1.signal?.reason);t$1.signal?.addEventListener("abort",s,{once:true}),t$1.signal?.aborted&&s();let i=setTimeout(()=>r.abort(Mt),a);try{de(r.signal);let p$1=(async()=>{let l=bo(t$1.onActiveFontBytesChange),u=!1;try{let y=Ao(e).slice(0,c$1),c=D(e,y),d$1=[],f$1={dropped:[]},E=Pt(e,f$1),R=[...o,...E?[E]:[],...t$1.lastResortFonts??[]],m=await t(R,{families:[...new Set([...(t$1.glyphFallbacks??[]).map(F=>F.family),...c.families])].slice(0,c$1),defaultFamily:d.family,signal:r.signal},{onOriginFailure:F=>d$1.push(F),reserveOwnedBytes:l.reserve,maxExecutionFontBytes:n.maxFontBytes,awaitDeferred:!0});de(r.signal);let x=f(m??{}),g=F(x,c),S=G$1(x,g,c);if(g.sources.length===0){let F=oe(y,g.defaultFont.family,d$1,void 0,f$1.dropped);ne(F,t$1),re(F,t$1,t$1.glyphFallbacks);return}let h=await Lt(p(g),void 0,t$1.glyphFallbacks,t$1.documentLigatures,{maxFontBytes:n.maxFontBytes});de(r.signal);let b=oe(y,g.defaultFont.family,d$1,h.resolveFont,f$1.dropped,S);return ne(b,t$1),re(b,t$1,t$1.glyphFallbacks),u=!0,Object.freeze({...h,dispose:l.release})}finally{u||l.release();}})();return await Promise.race([p$1,wo(r.signal)])}finally{clearTimeout(i),t$1.signal?.removeEventListener("abort",s);}}function vo(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 wo(e){return new Promise((o,t)=>{let n=()=>{t(kt(e));};e.aborted?n():e.addEventListener("abort",n,{once:true});})}function kt(e){let o=e.reason===Mt;return new h$1(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 kt(e)}function Ao(e$1){let o=[e$1.part().root],t=[],n=[],a=new Set([e$1.part().name]),r=(u,y)=>{!y||a.has(y.name)||(a.add(y.name),u.push(y.root));};for(let u of e$1.headerFooterPartsBySection()){for(let y of u.headers.values())r(t,y);for(let y of u.footers.values())r(t,y);}for(let u of ["footnote","endnote"])n.push(...To(e$1,u));let s=e$1.documentThemeFonts(),i={...s,major:s.major,minor:s.minor,majorEastAsia:s.majorEastAsia??null,minorEastAsia:s.minorEastAsia??null},p=new Map,l=(u,y$1)=>{let c=e(u,e$1.stylesRoot(),i,Po(u,y$1)),d=B(u,e$1.numberingRoot(),e$1.stylesRoot(),i);for(let f of [...c.direct,...Do(u),...d,...y(u,e$1.stylesRoot(),i),...c.inherited]){let E=f.toLowerCase();p.has(E)||p.set(E,f);}};l(o,"body");for(let u$1 of u(e$1.currentPackage(),i)){let y=u$1.toLowerCase();p.has(y)||p.set(y,u$1);}return l(t,"furniture"),l(n,"note"),[...p.values()]}function To(e,o){let t=ti(e.currentPackage(),o);if(!t)return [];let n=new Set(ui(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=Jc(r),i=Ic(r);(s==="separator"||s==="continuationSeparator"||i!==null&&n.has(i))&&a.push(r);}return a}var Lo="http://schemas.openxmlformats.org/officeDocument/2006/math";function Po(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===pa&&s.localName==="p"&&a.push({paragraph:s,context:i});let p=s.namespaceUri===pa&&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)Mo(s.paragraph,t,s.context);}return t}function Mo(e,o,t){let n=Gc(),a=null,r=null,s="",i=false,p=false,l=false,u=0,y=[];for(let c=e.children.length-1;c>=0;c-=1){let d=e.children[c];d.kind!=="textValue"&&y.push({node:d,runId:null,visibility:k,containerDepth:0});}for(;y.length>0;){let{node:c,runId:d,visibility:f,containerDepth:E}=y.pop();if(E>=Aa||c.namespaceUri===pa&&c.localName==="p")continue;let R=c.namespaceUri===pa&&c.localName==="r"?c.id:d;if(c.namespaceUri===pa&&c.localName==="fldSimple"){let m=ce(c,"instr")??"";Td(m,{allowPageFields:t==="body"||t==="furniture",allowRefFields:t==="body"||t==="note",allowPageRef:t==="body",allowAutonum:t==="body"||t==="note"})&&ko(c)!==k&&o.add(c.id);}if(c.namespaceUri===pa&&c.localName==="fldChar"){let m=ce(c,"fldCharType");if(m==="begin")Jc$1(n),n.nesting===1&&(a=R,r=null,s="",i=false,p=false,l=Jg(c),u=0);else if(m==="separate"){let x=n.nesting===1;if(Lc(n),x){let g=Ic$1(n);s=g.instruction,i=g.overflow||n.nestingOverflow,r=R,p=true;}}else if(m==="end"){if(n.nesting===1){if(n.phase==="instruction"){let g=Ic$1(n);s=g.instruction,i=g.overflow||n.nestingOverflow;}if(!i&&Sd(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 g=r??a;g&&o.add(g);}}Mc(n);}continue}if(c.namespaceUri===pa&&(c.localName==="instrText"||c.localName==="delInstrText")){Kc(n,Ct(c),c.localName==="delInstrText");continue}n.nesting>0&&Nc(n)&&c.namespaceUri===pa&&Dt(c)&&(u|=f);for(let m=c.children.length-1;m>=0;m-=1){let x=c.children[m];x.kind!=="textValue"&&y.push({node:x,runId:R,visibility:f&_t(c),containerDepth:Ba(c,E)});}}Hc(n);}function Dt(e){return e.localName==="t"||e.localName==="delText"?Ct(e).length>0:e.localName==="sym"||e.localName==="tab"||e.localName==="br"}var ue=1,It=2,Nt=4,k=ue|It|Nt;function ko(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===pa&&n.localName==="p")){if(n.namespaceUri===pa&&Dt(n)&&(t|=a,t===k))return t;for(let r of n.children)r.kind!=="textValue"&&o.push({node:r,visibility:a&_t(n)});}}return t}function _t(e){return e.namespaceUri!==pa?k:e.localName==="ins"||e.localName==="moveTo"?ue|It:e.localName==="del"||e.localName==="moveFrom"?ue|Nt:k}function Do(e){let o=new Map,t=n=>{let a=b$2(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===Lo&&t(sc),r.namespaceUri===pa&&r.localName==="sym"&&t(c$3(Ro(r,"font"))),r.localName==="textpath"&&t(Ud(r)),r.namespaceUri===pa&&r.localName==="fldSimple"){let s=ce(r,"instr");t(Rd(s??"")?.font??null);}if(r.namespaceUri===pa&&r.localName==="p")for(let s of A$1(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 Ct(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 qt="FILE_TOO_LARGE",Ut=8;function Io(e){return typeof e=="object"&&e!==null}function jt(e){if(!(!Io(e)||typeof e.code!="string"))return e.code}function zt(e){return e===""||e.toLowerCase()==="localhost"}function No(e){try{let o=decodeURIComponent(e);return o.includes("\0")?null:o}catch{return null}}function Ht(e){let o=No(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 Xt(e){let o=Ht(e);return o===null?null:o.endsWith("/")?o:`${o}/`}function _o(e){return e==="/"||/^\/[A-Za-z]:\/$/.test(e)}function Co(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(!zt(o.host))throw new TypeError("trustedRoot must be a local file: URL");let t=Xt(o.pathname);if(t===null||_o(t))throw new TypeError("trustedRoot must be a directory inside the filesystem");let n=new URL("file:///");return n.pathname=t,n}function Uo(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 Bo(e){let o=Uo(e);if(o.length===0)throw new TypeError("trustedRoot must name at least one directory");if(o.length>Ut)throw new TypeError(`trustedRoot must not exceed ${Ut} directories`);return o.map(Co)}function qo(e){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError("maxBytes must be a positive safe integer");if(e>a)throw new TypeError(`maxBytes must not exceed ${a}`);return e}function jo(e,o){if(e.protocol!=="file:"||e.username!==""||e.password!==""||!zt(e.host))return null;let t=Ht(e.pathname);if(t===null)return null;for(let n of o){let a=Xt(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 zo(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 Ho(e,o,t){let n=t.relative(t.resolve(e),t.resolve(o));return n!==""&&!n.startsWith("..")&&!t.isAbsolute(n)}function Bt(e,o,t){return e.some(n=>Ho(n,o,t))}async function Xo(e,o){let t=[];for(let n of e)try{t.push(await o(n));}catch(a){if(jt(a)==="ENOENT")continue;throw a}return t}function Go(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(f=>p.resolve(i(f.href))),u=p.resolve(i(typeof o=="string"?o:o.href));if(!Bt(l,u,p))throw Object.assign(new Error("packaged file is outside trustedRoot"),{code:"ENOENT"});let y=typeof s.O_NOFOLLOW=="number"?s.O_RDONLY|s.O_NOFOLLOW:"r",c=await a(u,y),d=()=>{c.close();};t?.addEventListener("abort",d,{once:true});try{if(t?.aborted)throw t.reason;let f=await r(u);if(!Bt(await Xo(l,r),f,p))throw Object.assign(new Error("packaged file is outside trustedRoot"),{code:"ENOENT"});let E=(await c.stat()).size;if(!Number.isSafeInteger(E)||E<0||E>n)throw Object.assign(new Error("packaged file exceeds maxBytes"),{code:qt});let R=new Uint8Array(E),m=0;for(;m<R.byteLength;){if(t?.aborted)throw t.reason;let{bytesRead:x}=await c.read(R,m,R.byteLength-m,m);if(x===0)break;m+=x;}if(t?.aborted)throw t.reason;return m===R.byteLength?R:R.slice(0,m)}catch(f){throw t?.aborted?t.reason:f}finally{t?.removeEventListener("abort",d),await c.close().catch(()=>{});}}}function Vo(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=Bo(e.trustedRoot),t=qo(e.maxBytes),n=e.read??Go(o),a=e.networkFetch??fetch;return(async(r,s)=>{let i=s?.signal;if(i?.aborted)throw i.reason;let p=zo(r);if(p.protocol!=="file:")return a(p,s);let l=jo(p,o);if(!l)return new Response(null,{status:404});let u=i?new AbortController:void 0,y=()=>u?.abort(i?.reason);i?.addEventListener("abort",y,{once:true});let c;try{if(c=await n(l,{maxBytes:t,...u?{signal:u.signal}:{}}),i?.aborted)throw i.reason;if(c.byteLength>t)return new Response(null,{status:413})}catch(d){if(i?.aborted)throw i.reason;if(u?.signal.aborted)throw u.signal.reason??d;if(d instanceof DOMException&&d.name==="AbortError"||d instanceof Error&&d.name==="AbortError")throw d;let f=jt(d);if(f===qt)return new Response(null,{status:413});if(f==="ENOENT"||f==="ENOTDIR"||f==="ELOOP")return new Response(null,{status:404});throw d}finally{i?.removeEventListener("abort",y);}return new Response(c,{status:200})})}
2
+ export{le as MAX_SHARED_EXPORT_SHAPING_CONFIGURATIONS,ho as acquireSharedExportShaping,Vo as createPackagedFileFetch,te as hasExportAdmittedFont,ie as hasExportLaidOutText,Eo as hasFontBackedExportCapabilities,So as openFontBackedDocumentForExport,Yt as replayMetafile};
@@ -112,4 +112,4 @@ interface CollaborationStatusTracker {
112
112
  declare function createCollaborationStatusTracker(initial?: CollaborationStatus): CollaborationStatusTracker;
113
113
 
114
114
  export { createCollaborationStatusTracker as d, isCollaborationFailureCode as i };
115
- export type { CollaborationStatus as C, CollaborationStatusSnapshot as a, CollaborationFailureCode as b, CollaborationFailure as c };
115
+ export type { CollaborationFailureCode as C, CollaborationStatus as a, CollaborationStatusSnapshot as b, CollaborationFailure as c };
@@ -1,4 +1,4 @@
1
- import { _ as FontFaceRequest, Z as FontConfiguration, a0 as FontSource, a1 as FontSourceSubstitution } from './editor-B2ShlO23.js';
1
+ import { a as FontFaceRequest, F as FontConfiguration, b as FontSource, c as FontSourceSubstitution } from './editor-fonts-D_-vjuJi.js';
2
2
 
3
3
  /**
4
4
  * A partial font configuration one origin contributes: sources, substitutions, or both.
@@ -11,6 +11,20 @@ interface FontConfigurationFragment {
11
11
  readonly supportedFamilies?: readonly string[];
12
12
  readonly sources?: readonly FontSource[];
13
13
  readonly substitutions?: readonly FontSourceSubstitution[];
14
+ /**
15
+ * Faces that arrive after the document first paints. The editor lays the document out
16
+ * with `sources` and `substitutions`, then lays it out again once this settles. Use it
17
+ * for large faces, such as CJK fonts, that would otherwise hold back the first paint.
18
+ *
19
+ * Late faces add faces only: the configuration settings (`defaultFont`, `maxFontBytes`) come
20
+ * from the origins that answer at once, so the default font never changes after the paint.
21
+ * Settings on a late answer, including `language`, are ignored.
22
+ *
23
+ * It must never reject: report failures and settle with what loaded, or `undefined`.
24
+ * `composeFontOrigins()` keeps it on the merged result. A synchronous merge, such as
25
+ * `composeFontConfiguration()`, drops it.
26
+ */
27
+ readonly deferred?: Promise<FontConfigurationFragment | undefined>;
14
28
  }
15
29
  /**
16
30
  * The base of a composition: everything a `FontConfiguration` carries, all optional.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkFDAKJ2SJ_cjs=require('./chunk-FDAKJ2SJ.cjs');require('./chunk-V3N4SOAK.cjs'),require('./chunk-XMJKFURD.cjs');var chunkMOYYRVFV_cjs=require('./chunk-MOYYRVFV.cjs');require('./chunk-5JPIEN54.cjs');var chunkYQWMI6J5_cjs=require('./chunk-YQWMI6J5.cjs');require('./chunk-HC6YNKUI.cjs'),require('./chunk-DBOOTED4.cjs'),require('./chunk-EOTAXOJY.cjs'),require('./chunk-XSTGE3NI.cjs'),require('./chunk-5SO5QDMV.cjs'),require('./chunk-IBRBNT37.cjs'),require('./chunk-243W4WW2.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-6IDOVU6L.cjs'),require('./chunk-WO4V6PNS.cjs'),require('./chunk-UKVVUHZL.cjs');var P=1;var O={acceptAllRevisions:true,acceptRevision:true,addComment:true,addRepeatingSectionItem:true,adjustIndent:true,applyFormatting:true,applyVariables:true,clearFormatting:true,commitTableColumnDividerResize:true,commitTableRightEdgeResize:true,convertAllNotes:true,convertNote:true,copy:true,copyFormatting:true,cut:true,deleteBookmark:true,deleteColumn:true,deleteImage:true,deleteNote:true,deleteRow:true,deleteTable:true,deleteText:true,editHeaderFooter:true,editTextFormField:true,exitHeaderFooter:true,insertBreak:true,goToBookmark:true,keepFirstBookmark:true,insertBookmark:true,insertColumn:true,insertContentControl:true,insertHyperlink:true,insertImage:true,insertNote:true,insertPageField:true,insertRow:true,insertTable:true,insertText:true,insertTextBox:true,insertToc:true,linkHeaderFooterToPrevious:true,mergeCells:true,mergeParagraphs:true,navigateReviewChange:true,openBookmarkDialog:true,openGoTo:true,openRevisionMarkupDialog:true,paste:true,pasteFormatting:true,pasteWithoutFormatting:true,proposeDeletion:true,proposeInsertion:true,proposeReplacement:true,redo:true,refreshToc:true,rejectAllRevisions:true,rejectRevision:true,removeContentControl:true,removeHeaderFooter:true,removeHyperlink:true,removeRepeatingSectionItem:true,removeTabMark:true,replaceAllMatches:true,replaceImage:true,replaceMatch:true,replaceText:true,replyComment:true,resolveAllReviewChanges:true,resolveComment:true,selectAll:true,selectTableRegion:true,setAlignment:true,setCellFill:true,setContentControlValue:true,setEditingMode:true,setHeaderFooterOptions:true,setImagePosition:true,setImageProperties:true,setImageWrapType:true,setIndent:true,setLineSpacing:true,setMarkAttr:true,setNoteProperties:true,setPageSetup:true,setParagraphDirection:true,setParagraphFormat:true,setParagraphSpacing:true,setParagraphStyle:true,setReviewChangesAuthor:true,setReviewDisplayMode:true,setSelection:true,setTableBorders:true,setTableCellVerticalAlignment:true,setTableProperties:true,setVariable:true,setWatermark:true,splitCell:true,splitParagraph:true,toggleDocumentProtection:true,toggleHeaderRow:true,toggleList:true,toggleBookmarks:true,toggleMark:true,toggleParagraphMarks:true,toggleReviewPane:true,transformImage:true,undo:true,unlinkHeaderFooterFromPrevious:true};function T(){return Object.keys(O)}Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.kb}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.ob}});Object.defineProperty(exports,"ChromeExportError",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Pc}});Object.defineProperty(exports,"ChromePrintError",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Rc}});Object.defineProperty(exports,"bindHistoryGroup",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Cc}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.g}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.pb}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Ea}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Ga}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs._b}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.B}});Object.defineProperty(exports,"customFonts",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.C}});Object.defineProperty(exports,"diagnosticCodeOfRefusal",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Nb}});Object.defineProperty(exports,"isChromePrintShortcut",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Sc}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.A}});Object.defineProperty(exports,"runChromeExport",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Qc}});Object.defineProperty(exports,"runChromePrint",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Tc}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Ma}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkFDAKJ2SJ_cjs.Ia}});Object.defineProperty(exports,"DEFAULT_FONT",{enumerable:true,get:function(){return chunkMOYYRVFV_cjs.d}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkMOYYRVFV_cjs.i}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkMOYYRVFV_cjs.h}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkMOYYRVFV_cjs.e}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkMOYYRVFV_cjs.f}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkMOYYRVFV_cjs.n}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkMOYYRVFV_cjs.j}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkMOYYRVFV_cjs.k}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.y}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.r}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.q}});exports.DIAGNOSTIC_SCHEMA_VERSION=P;exports.diagnosticCommands=T;
1
+ 'use strict';var chunkXNBYG4XJ_cjs=require('./chunk-XNBYG4XJ.cjs');require('./chunk-V3N4SOAK.cjs'),require('./chunk-LI42N7OW.cjs');var chunkALD626VU_cjs=require('./chunk-ALD626VU.cjs');require('./chunk-SZURLHR3.cjs');var chunkZWO4JHNN_cjs=require('./chunk-ZWO4JHNN.cjs');require('./chunk-AXU63LYW.cjs'),require('./chunk-2DEY5NUC.cjs'),require('./chunk-2GPGAFOJ.cjs'),require('./chunk-UYCGCVZ2.cjs'),require('./chunk-PXMTQ73F.cjs'),require('./chunk-RFUNFTGV.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-2CWQY27B.cjs'),require('./chunk-X34QRAUU.cjs'),require('./chunk-KE6ZWRIY.cjs'),require('./chunk-UKVVUHZL.cjs');var H=1;var I={acceptAllRevisions:true,acceptRevision:true,addComment:true,addRepeatingSectionItem:true,adjustIndent:true,applyFormatting:true,applyVariables:true,clearFormatting:true,commitTableColumnDividerResize:true,commitTableRightEdgeResize:true,convertAllNotes:true,convertNote:true,copy:true,copyFormatting:true,cut:true,deleteBookmark:true,deleteColumn:true,deleteImage:true,deleteNote:true,deleteRow:true,deleteTable:true,deleteText:true,editHeaderFooter:true,editTextFormField:true,exitHeaderFooter:true,insertBreak:true,goToBookmark:true,keepFirstBookmark:true,insertBookmark:true,insertColumn:true,insertContentControl:true,insertHyperlink:true,insertImage:true,insertNote:true,insertPageField:true,insertRow:true,insertTable:true,insertText:true,insertTextBox:true,insertToc:true,linkHeaderFooterToPrevious:true,mergeCells:true,mergeParagraphs:true,navigateReviewChange:true,openBookmarkDialog:true,openGoTo:true,openRevisionMarkupDialog:true,paste:true,pasteFormatting:true,pasteWithoutFormatting:true,proposeDeletion:true,proposeInsertion:true,proposeReplacement:true,redo:true,refreshToc:true,rejectAllRevisions:true,rejectRevision:true,removeContentControl:true,removeHeaderFooter:true,removeHyperlink:true,removeRepeatingSectionItem:true,removeTabMark:true,replaceAllMatches:true,replaceImage:true,replaceMatch:true,replaceText:true,replyComment:true,resolveAllReviewChanges:true,resolveComment:true,selectAll:true,selectTableRegion:true,setAlignment:true,setCellFill:true,setContentControlValue:true,setEditingMode:true,setHeaderFooterOptions:true,setImagePosition:true,setImageProperties:true,setImageWrapType:true,setIndent:true,setLineSpacing:true,setMarkAttr:true,setNoteProperties:true,setPageSetup:true,setParagraphDirection:true,setParagraphFormat:true,setParagraphSpacing:true,setParagraphStyle:true,setReviewChangesAuthor:true,setReviewDisplayMode:true,setSelection:true,setTableBorders:true,setTableCellVerticalAlignment:true,setTableProperties:true,setVariable:true,setWatermark:true,splitCell:true,splitParagraph:true,toggleDocumentProtection:true,toggleHeaderRow:true,toggleList:true,toggleBookmarks:true,toggleMark:true,toggleParagraphMarks:true,toggleReviewPane:true,transformImage:true,undo:true,unlinkHeaderFooterFromPrevious:true};function w(){return Object.keys(I)}Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.ub}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.yb}});Object.defineProperty(exports,"ChromeExportError",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.dd}});Object.defineProperty(exports,"ChromePrintError",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.fd}});Object.defineProperty(exports,"bindHistoryGroup",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.Sc}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.h}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.zb}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.Oa}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.Qa}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.kc}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.J}});Object.defineProperty(exports,"customFonts",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.K}});Object.defineProperty(exports,"deferFonts",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.g}});Object.defineProperty(exports,"diagnosticCodeOfRefusal",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.Xb}});Object.defineProperty(exports,"isChromePrintShortcut",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.gd}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.I}});Object.defineProperty(exports,"reviewCodeOfRefusal",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.Yb}});Object.defineProperty(exports,"runChromeExport",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.ed}});Object.defineProperty(exports,"runChromePrint",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.hd}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.Wa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkXNBYG4XJ_cjs.Sa}});Object.defineProperty(exports,"DEFAULT_FONT",{enumerable:true,get:function(){return chunkALD626VU_cjs.d}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkALD626VU_cjs.n}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkALD626VU_cjs.m}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkALD626VU_cjs.e}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkALD626VU_cjs.f}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkALD626VU_cjs.s}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkALD626VU_cjs.o}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkALD626VU_cjs.p}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.B}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.t}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.s}});Object.defineProperty(exports,"reviewCodeOfSkip",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.w}});exports.DIAGNOSTIC_SCHEMA_VERSION=H;exports.diagnosticCommands=w;
package/dist/index.d.ts CHANGED
@@ -24,36 +24,38 @@
24
24
  * @packageDocumentation
25
25
  * @public
26
26
  */
27
- import { x as ExecErrorCode } from './types-barrel-CkF2JbU4.js';
28
- export { B as Block, r as ColorValue, C as CommentRecord, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, W as DocxDocumentJSON, X as DrawingHorizontalReferenceFrame, Y as DrawingKind, Z as DrawingLocks, _ as DrawingPositionInput, $ as DrawingVerticalReferenceFrame, E as ExecResult, l as Extent, a0 as FontDefinition, H as HeaderFooterSet, a1 as ImageResourceState, a2 as ImageWrapTarget, y as IndentFormatting, I as InsertableContentControlType, a3 as NumberingRef, a4 as PageMargins, P as Paragraph, a5 as ParagraphDisagreements, z as ParagraphFlags, a6 as ParagraphFormatCommand, A as ParagraphTabStop, a7 as Point, a8 as PreservedImageMime, a9 as Rect, aa as RenderableImageMime, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, ab as RevisionAuthorResult, ac as RevisionBatchResult, F as RevisionType, ad as Run, k as RunFormatting, G as Section, J as SectionProperties, ae as SelectionPin, K as StyleDefinition, S as StyleDefinitions, af as SupportedImageMime, T as Table, ag as TableCell, ah as TableRow, L as Theme, M as ThemeColorScheme, ai as Unsubscribe, aj as ValidatedImageBytesHandle, ak as VectorImageMime, al as Watermark, am as WatermarkLayout, an as WatermarkState } from './types-barrel-CkF2JbU4.js';
29
- export { C as ContentLockPolicy, F as FieldResultsMode } from './tree-package-store-B8l8DX3Z.js';
30
- export { D as DocumentProtectionEdit, a as DocumentProtectionState } from './document-protection-C8x3P2J6.js';
31
- import { b as EditorCommand } from './editor-B2ShlO23.js';
32
- export { A as AnchorHighlightAnimation, c as AnchorHighlightOptions, d as AuthoredNoteNumbering, B as BookmarkPlace, e as BookmarkStory, f as BookmarkSummary, C as CanResult, g as ClearAnchorHighlightOptions, h as CollaborationParticipantsDiagnostic, i as CollaborationStatusDiagnostic, j as CustomNodeDiagnosticEvent, D as DIAGNOSTIC_SCHEMA_VERSION, k as DiagnosticBase, l as DiagnosticFailureDetail, m as DocumentChange, n as DocumentEditingMode, o as DocumentHandle, p as DocumentOpenDiagnostic, q as DocumentOpenFailure, r as DocumentOpenFailureReason, s as DocumentSaveDiagnostic, t as DocumentShape, u as DocumentSource, v as EditRejectedDiagnostic, w as EditRejectionOrigin, x as Editor, y as EditorAnchorNavigation, z as EditorBookmarkCommands, F as EditorCommandShape, G as EditorCommands, E as EditorDiagnostic, a as EditorDiagnosticKind, H as EditorError, I as EditorEvents, J as EditorFontError, K as EditorFontErrorCode, L as EditorFormatPainterCommands, M as EditorHeaderFooterCommands, N as EditorHighlights, O as EditorHostChange, P as EditorHostDocument, Q as EditorNoteCommands, S as EditorPosition, T as EditorQueries, U as EditorQuery, V as EditorQueryResults, W as EditorReviewHits, X as EditorSelection, Y as EditorSnapshot, Z as FontConfiguration, _ as FontFaceRequest, $ as FontFailedDiagnostic, a0 as FontSource, a1 as FontSourceSubstitution, a2 as FormatPainterLevel, a3 as FormatPainterMode, a4 as FormatPainterSurfaceState, a5 as FurnitureVariant, a6 as HeaderFooterSlotArgs, a7 as HeaderFooterState, a8 as HighlightHit, a9 as HighlightOptions, aa as HighlightRange, ab as HighlightRect, ac as HighlightResult, ad as HistoryDiagnosticEvent, ae as HyperlinkInfo, af as ImageContext, ag as ImageCropPercent, ah as NoteKind, ai as NotePropertiesSide, aj as NotePropertiesState, ak as PageSetup, al as PerformanceDiagnostic, am as ResolveReviewChangesOptions, an as ResolvedNoteNumbering, ao as ReviewActivationOptions, ap as ReviewChangesAttribution, aq as ReviewCommentPlacement, ar as ReviewCustomPlacement, as as ReviewItemHit, at as ReviewItemPlacement, au as ReviewItemPlacementBase, av as ReviewItemQuery, aw as ReviewItemRevealEvent, ax as ReviewItemRevealSource, ay as ReviewRevisionPlacement, az as ReviewSkippedDiagnostic, aA as ScrollPlacement, aB as ScrollToAnchorOptions, aC as SelectedImageState, aD as SessionActivity, aE as SessionDiagnostic, aF as SetReviewChangesAuthorOptions, aG as TableBorderEdgeTarget, aH as TableBorderSpec, aI as TableBorderStyle, aJ as TableBorderTarget, aK as TableCellVerticalAlignment, aL as TableColumnDividerResizeTarget, aM as TableColumnOccurrenceTarget, aN as TableContext, aO as TableRightEdgeResizeTarget, aP as TableRowOccurrenceTarget, aQ as TextMatch, aR as TimingSummary, aS as TrackedChangeFilterMode, aT as TrackedChangePredicate, aU as ZoomFitTarget, aV as ZoomMode } from './editor-B2ShlO23.js';
33
- export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.js';
27
+ import { x as ExecErrorCode } from './tree-op-types-Df4oY2u4.js';
28
+ export { B as Block, r as ColorValue, C as CommentRecord, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, a7 as DrawingHorizontalReferenceFrame, a8 as DrawingKind, a9 as DrawingLocks, aa as DrawingPositionInput, ab as DrawingVerticalReferenceFrame, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, ad as ImageDecodePort, ae as ImageResourceLimits, af as ImageResourceState, ag as ImageWrapTarget, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, aj as PreservedImageMime, ak as Rect, al as RenderableImageMime, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, an as SupportedImageMime, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ap as ValidatedImageBytesHandle, aq as VectorImageMime, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from './tree-op-types-Df4oY2u4.js';
29
+ export { C as ContentLockPolicy, F as FieldResultsMode } from './tree-package-store-DXhX1PE-.js';
30
+ export { D as DocumentProtectionEdit, a as DocumentProtectionState } from './document-protection-BvbpSXbQ.js';
31
+ import { b as EditorCommand } from './editor-B7OOAAie.js';
32
+ export { A as AnchorHighlightAnimation, c as AnchorHighlightOptions, d as AuthoredNoteNumbering, B as BookmarkPlace, e as BookmarkStory, f as BookmarkSummary, C as CanResult, g as ClearAnchorHighlightOptions, h as CollaborationParticipantsDiagnostic, i as CollaborationStatusDiagnostic, j as CustomNodeDiagnosticEvent, D as DIAGNOSTIC_SCHEMA_VERSION, k as DiagnosticBase, l as DiagnosticFailureDetail, m as DocumentChange, n as DocumentEditingMode, o as DocumentHandle, p as DocumentOpenDiagnostic, q as DocumentOpenFailure, r as DocumentOpenFailureReason, s as DocumentSaveDiagnostic, t as DocumentShape, u as DocumentSource, v as EditRejectedDiagnostic, w as EditRejectionOrigin, x as Editor, y as EditorAnchorNavigation, z as EditorBookmarkCommands, F as EditorCommandShape, G as EditorCommands, E as EditorDiagnostic, a as EditorDiagnosticKind, H as EditorError, I as EditorEvents, J as EditorFontError, K as EditorFormatPainterCommands, L as EditorHeaderFooterCommands, M as EditorHighlights, N as EditorHostChange, O as EditorHostDocument, P as EditorNoteCommands, Q as EditorPosition, R as EditorQueries, S as EditorQuery, T as EditorQueryResults, U as EditorReviewHits, V as EditorSelection, W as EditorSnapshot, X as FontFailedDiagnostic, Y as FormatPainterLevel, Z as FormatPainterMode, _ as FormatPainterSurfaceState, $ as FurnitureVariant, a0 as HeaderFooterSlotArgs, a1 as HeaderFooterState, a2 as HighlightHit, a3 as HighlightOptions, a4 as HighlightRange, a5 as HighlightRect, a6 as HighlightResult, a7 as HistoryDiagnosticEvent, a8 as HyperlinkInfo, a9 as ImageContext, aa as ImageCropPercent, ab as NoteKind, ac as NotePropertiesSide, ad as NotePropertiesState, ae as PageSetup, af as PerformanceDiagnostic, ag as ResolveReviewChangesOptions, ah as ResolvedNoteNumbering, ai as ReviewActivationOptions, aj as ReviewChangesAttribution, ak as ReviewChangesResolvedEvent, al as ReviewCommentPlacement, am as ReviewCustomPlacement, an as ReviewItemHit, ao as ReviewItemPlacement, ap as ReviewItemPlacementBase, aq as ReviewItemQuery, ar as ReviewItemRevealEvent, as as ReviewItemRevealSource, at as ReviewRevisionPlacement, au as ReviewSkippedDiagnostic, av as ScrollPlacement, aw as ScrollToAnchorOptions, ax as SelectedImageState, ay as SessionActivity, az as SessionDiagnostic, aA as SetReviewChangesAuthorOptions, aB as TableBorderEdgeTarget, aC as TableBorderSpec, aD as TableBorderStyle, aE as TableBorderTarget, aF as TableCellVerticalAlignment, aG as TableColumnDividerResizeTarget, aH as TableColumnOccurrenceTarget, aI as TableContext, aJ as TableRightEdgeResizeTarget, aK as TableRowOccurrenceTarget, aL as TextMatch, aM as TimingSummary, aN as TrackedChangeFilterMode, aO as TrackedChangePredicate, aP as ZoomFitTarget, aQ as ZoomMode } from './editor-B7OOAAie.js';
33
+ export { CollectReviewItems, EditorModule, ReviewModuleContribution, RevisionMarkupDialog, RevisionMarkupDialogHost } from './contracts/modules.js';
34
34
  export { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
35
- export { a as ReviewDisplayMode, b as RevisionDisplayMode } from './semantic-records-B-akgRch.js';
36
- export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-dApRIYpt.js';
37
- 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 MarkedFontResolver, W as WORD_DEFAULT_FONT, i as composeFontConfiguration, j as composeFontOrigins, k as defineFontResolver, l as isFontResolver } from './font-resolver-CWh40DYp.js';
38
- export { B as BookmarkMarkInfo, a as BookmarkMarkOptions, C as CHROME_GROUPS, b as CHROME_MENUS, c as ChromeExportError, d as ChromeExportFormat, e as ChromeExportHandlers, f as ChromeExportResult, g as ChromeMenu, h as ChromeMenuEntry, i as ChromeMenuId, j as ChromeMenuItemEntry, k as ChromeMenuSeparatorEntry, l as ChromeMenuSubmenuEntry, m as ChromePrintError, n as ChromePrintErrorCode, o as ChromePrintJob, p as ChromePrintOptions, q as ChromeSlotId, r as CommentDraftChromeHandlers, s as CustomFontsOptions, t as CustomFontsResolver, D as DocxEditorConfig, u as DocxEditorInstance, F as FontLoadFailure, v as FontLoadFailureReason, w as FontMeasurementState, x as FontUrlSource, G as GoToChromeHandlers, H as HistoryGroupBinding, y as HistoryGroupBindingOptions, z as HyperlinkActivation, A as HyperlinkChromeHandlers, L as LoadFontsRequest, E as LoadFontsResult, I as LockedControlNavigation, S as SurfaceHyperlink, T as ToolbarCommandState, J as bindHistoryGroup, K as blankDocumentBytes, M as chromeMenuSlots, N as commandForSlot, O as commandForSlotValue, P as createDocxEditor, Q as createFontSource, R as customFonts, U as isChromePrintShortcut, V as loadFonts, W as runChromeExport, X as runChromePrint, Y as runToolbarCommand, Z as toolbarCommandState } from './chrome-print-BWvaVEhD.js';
35
+ export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, a as ReviewDisplayMode, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from './revision-projection-OVusTS77.js';
36
+ export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-BbA4dgEo.js';
37
+ 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 MarkedFontResolver, W as WORD_DEFAULT_FONT, i as composeFontConfiguration, j as composeFontOrigins, k as defineFontResolver, l as isFontResolver } from './font-resolver-Bm9XqTNO.js';
38
+ export { A as AttachOptions, B as BlankDocumentOptions, a as BookmarkChromeHandlers, b as BookmarkMarkInfo, c as BookmarkMarkOptions, C as CHROME_GROUPS, d as CHROME_MENUS, e as ChromeExportError, f as ChromeExportFormat, g as ChromeExportHandlers, h as ChromeExportResult, i as ChromeExportView, j as ChromeMenu, k as ChromeMenuEntry, l as ChromeMenuId, m as ChromeMenuItemEntry, n as ChromeMenuSeparatorEntry, o as ChromeMenuSubmenuEntry, p as ChromePrintError, q as ChromePrintErrorCode, r as ChromePrintJob, s as ChromePrintOptions, t as ChromeSlotId, u as CommentDraftChromeHandlers, v as ContentControlWidgetChromeHandlers, w as ContentControlWidgetSession, x as CustomFontsOptions, y as CustomFontsResolver, D as DocxEditorConfig, z as DocxEditorInstance, E as EquationActivation, F as EquationChromeHandlers, G as FontLoadFailure, H as FontLoadFailureReason, I as FontMeasurementState, J as FontUrlSource, K as GoToChromeHandlers, L as HistoryGroupBinding, M as HistoryGroupBindingOptions, N as HyperlinkActivation, O as HyperlinkChromeHandlers, P as InvalidTextFormFieldChromeHandlers, Q as InvalidTextFormFieldSession, R as LoadFontsRequest, S as LoadFontsResult, T as LockedControlNavigation, U as PopupChromeRegistrationOptions, V as SurfaceEquation, W as SurfaceHyperlink, X as TableChromeSlotId, Y as ToolbarCommandState, Z as ToolbarValueMap, _ as ToolbarValueSlot, $ as bindHistoryGroup, a0 as blankDocumentBytes, a1 as chromeMenuSlots, a2 as commandForSlot, a3 as commandForSlotValue, a4 as createDocxEditor, a5 as createFontSource, a6 as customFonts, a7 as deferFonts, a8 as isChromePrintShortcut, a9 as loadFonts, aa as runChromeExport, ab as runChromePrint, ac as runToolbarCommand, ad as toolbarCommandState } from './chrome-print-CrPI9ZQc.js';
39
+ export { R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-B5JcIv9c.js';
40
+ export { CollaborationModuleContribution } from './collaboration.js';
39
41
  export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.js';
40
- import { E as EditDiagnosticCode } from './diagnostic-hints-C9JlLz1L.js';
41
- export { B as ByteSizeBucket, C as CollaborationDiagnosticCode, b as CountBucket, c as CustomNodeDiagnosticCode, d as DiagnosticCode, D as DiagnosticErrorName, e as DiagnosticExplanation, f as DocumentOpenDiagnosticCode, a as DocumentPartKind, g as DocumentSaveDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, R as ReviewChangeKind, j as ReviewDiagnosticCode, k as ReviewOperation, l as diagnosticCodes, m as explainDiagnostic } from './diagnostic-hints-C9JlLz1L.js';
42
- export { d as diagnosticCauses } from './diagnostic-context-DJ0P1uZE.js';
43
- export { a as EditorExecOptions, E as EditorScope, H as HistoryDiagnostic, b as HistoryGroup, c as HistoryGroupOptions, d as HistoryGroupOutcome, V as ViewScope } from './editor-scope-C7ke1KJG.js';
42
+ export { d as diagnosticCauses, r as reviewCodeOfSkip } from './diagnostic-context-CuzhOX0g.js';
43
+ import { E as EditDiagnosticCode, R as ReviewDiagnosticCode } from './diagnostic-hints-BtCaCqQC.js';
44
+ export { B as ByteSizeBucket, C as CollaborationDiagnosticCode, a as CountBucket, b as CustomNodeDiagnosticCode, D as DiagnosticCode, c as DiagnosticErrorName, d as DiagnosticExplanation, e as DocumentOpenDiagnosticCode, f as DocumentPartKind, g as DocumentSaveDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, j as ReviewChangeKind, k as ReviewOperation, l as diagnosticCodes, m as explainDiagnostic } from './diagnostic-hints-BtCaCqQC.js';
45
+ export { a as EditorExecOptions, E as EditorScope, b as HistoryDiagnostic, c as HistoryGroup, d as HistoryGroupOptions, H as HistoryGroupOutcome, V as ViewScope } from './editor-scope-CA6egMaK.js';
46
+ export { CommentMarkerStyle, DEFAULT_REVIEW_PANE, ResolvedReviewPane, ReviewPaneItemFields, ReviewPaneOpening, ReviewPaneOptions, ReviewPaneOverflow, RevisionDisplay, resolveReviewPane, reviewPaneListsItem } from './contracts/types.js';
47
+ export { C as CollaborationFailureCode, a as CollaborationStatus } from './failure-6KGFrDO9.js';
48
+ export { E as EditorFontErrorCode, F as FontConfiguration, a as FontFaceRequest, b as FontSource, c as FontSourceSubstitution } from './editor-fonts-D_-vjuJi.js';
44
49
  export { InteractionAffinity, InteractionOutcome, InteractionOutcomeCode, SemanticIdentity, SemanticTarget } from './contracts/interaction.js';
45
- import './failure-NS2lsya4.js';
46
- import './collaboration.js';
50
+ import './semantic-records-DoK0lNjS.js';
51
+ import './drawing-graphic-kind-CXYGYbB3.js';
47
52
  import './collaboration/replication.js';
48
- import './omml-equation-BsLAa2lX.js';
49
- import './semantic-paint-DLzA8sjP.js';
50
- import './semantic-record-queries-3yp9o11g.js';
51
- import './note-properties-QsKh24sM.js';
52
- import './custom-node-writes-TeUvMP13.js';
53
- import './semantic-cell-selection-Cub9FDa8.js';
54
- import './tree-session-contract-DeLRqohz.js';
55
- import './headless-document-view-qOpaCF82.js';
53
+ import './note-properties-DCIJUKIy.js';
54
+ import './custom-node-writes-AqY5KpVx.js';
55
+ import './semantic-cell-selection-CoI5hHBm.js';
56
+ import './tree-session-contract-CF2625mv.js';
56
57
  import 'prosemirror-model';
58
+ import './semantic-record-queries-DnO8J5_j.js';
57
59
 
58
60
  /**
59
61
  * The editor's own command types, as a closed list for anonymous diagnostics.
@@ -94,5 +96,20 @@ declare function diagnosticCommands(): readonly EditorCommand['type'][];
94
96
  * @public
95
97
  */
96
98
  declare function diagnosticCodeOfRefusal(reason: string, execCode?: ExecErrorCode): EditDiagnosticCode;
99
+ /**
100
+ * The review code a tracked-change refusal leads with, such as `retained-structure: ...` for a
101
+ * row that stays to keep a nested table, or null when the refusal names no review reason. A
102
+ * card or an Accept All or Reject All that a content control lock or a data binding keeps gives
103
+ * `review.locked-content` or `review.bound-content`.
104
+ *
105
+ * @example
106
+ * ```ts
107
+ * const result = editor.exec({ type: 'resolveAllReviewChanges', action: 'reject' });
108
+ * if (!result.ok) console.warn(reviewCodeOfRefusal(result.reason));
109
+ * ```
110
+ *
111
+ * @public
112
+ */
113
+ declare function reviewCodeOfRefusal(reason: string): ReviewDiagnosticCode | null;
97
114
 
98
- export { EditDiagnosticCode, EditorCommand, ExecErrorCode, diagnosticCodeOfRefusal, diagnosticCommands };
115
+ export { EditDiagnosticCode, EditorCommand, ExecErrorCode, ReviewDiagnosticCode, diagnosticCodeOfRefusal, diagnosticCommands, reviewCodeOfRefusal };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{kb as CHROME_GROUPS,ob as CHROME_MENUS,Pc as ChromeExportError,Rc as ChromePrintError,Cc as bindHistoryGroup,g as blankDocumentBytes,pb as chromeMenuSlots,Ea as commandForSlot,Ga as commandForSlotValue,_b as createDocxEditor,B as createFontSource,C as customFonts,Nb as diagnosticCodeOfRefusal,Sc as isChromePrintShortcut,A as loadFonts,Qc as runChromeExport,Tc as runChromePrint,Ma as runToolbarCommand,Ia as toolbarCommandState}from'./chunk-IVIN7X43.js';import'./chunk-4HENIAFG.js';import'./chunk-LZY6B6IV.js';export{d as DEFAULT_FONT,i as FONT_RESOLVER_BRAND,h as FONT_RESOLVER_MARK_KEY,e as WORD_DEFAULT_FONT,f as composeFontConfiguration,n as composeFontOrigins,j as defineFontResolver,k as isFontResolver}from'./chunk-HZ66UCIS.js';import'./chunk-FNNOJNGY.js';import'./chunk-RIYSCEFQ.js';export{y as diagnosticCauses,r as diagnosticCodes,q as explainDiagnostic}from'./chunk-R2XINWVE.js';import'./chunk-SUEXVBPR.js';import'./chunk-4S24UOPG.js';import'./chunk-FT33HRZP.js';import'./chunk-2E2RPEKX.js';import'./chunk-ZCJS7D7S.js';import'./chunk-VWIJKH4A.js';import'./chunk-Q5K2GGNG.js';import'./chunk-6JIJOZDW.js';import'./chunk-N6B3BXCL.js';import'./chunk-T2QQHG5C.js';import'./chunk-S6J4O5XP.js';var P=1;var O={acceptAllRevisions:true,acceptRevision:true,addComment:true,addRepeatingSectionItem:true,adjustIndent:true,applyFormatting:true,applyVariables:true,clearFormatting:true,commitTableColumnDividerResize:true,commitTableRightEdgeResize:true,convertAllNotes:true,convertNote:true,copy:true,copyFormatting:true,cut:true,deleteBookmark:true,deleteColumn:true,deleteImage:true,deleteNote:true,deleteRow:true,deleteTable:true,deleteText:true,editHeaderFooter:true,editTextFormField:true,exitHeaderFooter:true,insertBreak:true,goToBookmark:true,keepFirstBookmark:true,insertBookmark:true,insertColumn:true,insertContentControl:true,insertHyperlink:true,insertImage:true,insertNote:true,insertPageField:true,insertRow:true,insertTable:true,insertText:true,insertTextBox:true,insertToc:true,linkHeaderFooterToPrevious:true,mergeCells:true,mergeParagraphs:true,navigateReviewChange:true,openBookmarkDialog:true,openGoTo:true,openRevisionMarkupDialog:true,paste:true,pasteFormatting:true,pasteWithoutFormatting:true,proposeDeletion:true,proposeInsertion:true,proposeReplacement:true,redo:true,refreshToc:true,rejectAllRevisions:true,rejectRevision:true,removeContentControl:true,removeHeaderFooter:true,removeHyperlink:true,removeRepeatingSectionItem:true,removeTabMark:true,replaceAllMatches:true,replaceImage:true,replaceMatch:true,replaceText:true,replyComment:true,resolveAllReviewChanges:true,resolveComment:true,selectAll:true,selectTableRegion:true,setAlignment:true,setCellFill:true,setContentControlValue:true,setEditingMode:true,setHeaderFooterOptions:true,setImagePosition:true,setImageProperties:true,setImageWrapType:true,setIndent:true,setLineSpacing:true,setMarkAttr:true,setNoteProperties:true,setPageSetup:true,setParagraphDirection:true,setParagraphFormat:true,setParagraphSpacing:true,setParagraphStyle:true,setReviewChangesAuthor:true,setReviewDisplayMode:true,setSelection:true,setTableBorders:true,setTableCellVerticalAlignment:true,setTableProperties:true,setVariable:true,setWatermark:true,splitCell:true,splitParagraph:true,toggleDocumentProtection:true,toggleHeaderRow:true,toggleList:true,toggleBookmarks:true,toggleMark:true,toggleParagraphMarks:true,toggleReviewPane:true,transformImage:true,undo:true,unlinkHeaderFooterFromPrevious:true};function T(){return Object.keys(O)}export{P as DIAGNOSTIC_SCHEMA_VERSION,T as diagnosticCommands};
1
+ export{ub as CHROME_GROUPS,yb as CHROME_MENUS,dd as ChromeExportError,fd as ChromePrintError,Sc as bindHistoryGroup,h as blankDocumentBytes,zb as chromeMenuSlots,Oa as commandForSlot,Qa as commandForSlotValue,kc as createDocxEditor,J as createFontSource,K as customFonts,g as deferFonts,Xb as diagnosticCodeOfRefusal,gd as isChromePrintShortcut,I as loadFonts,Yb as reviewCodeOfRefusal,ed as runChromeExport,hd as runChromePrint,Wa as runToolbarCommand,Sa as toolbarCommandState}from'./chunk-FLW7KIQX.js';import'./chunk-4HENIAFG.js';import'./chunk-23MKR33J.js';export{d as DEFAULT_FONT,n as FONT_RESOLVER_BRAND,m as FONT_RESOLVER_MARK_KEY,e as WORD_DEFAULT_FONT,f as composeFontConfiguration,s as composeFontOrigins,o as defineFontResolver,p as isFontResolver}from'./chunk-ESYUKD5D.js';import'./chunk-SVM6PGMS.js';import'./chunk-RIYSCEFQ.js';export{B as diagnosticCauses,t as diagnosticCodes,s as explainDiagnostic,w as reviewCodeOfSkip}from'./chunk-JG4A6W6I.js';import'./chunk-R4R3AAE4.js';import'./chunk-CM5VZRBV.js';import'./chunk-F7TGQMVR.js';import'./chunk-D7FAFFTN.js';import'./chunk-2F2UEAE2.js';import'./chunk-L3YXJDPX.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-WN7ICTA5.js';import'./chunk-2DR4TH6B.js';import'./chunk-AU33YWEJ.js';import'./chunk-S6J4O5XP.js';var H=1;var I={acceptAllRevisions:true,acceptRevision:true,addComment:true,addRepeatingSectionItem:true,adjustIndent:true,applyFormatting:true,applyVariables:true,clearFormatting:true,commitTableColumnDividerResize:true,commitTableRightEdgeResize:true,convertAllNotes:true,convertNote:true,copy:true,copyFormatting:true,cut:true,deleteBookmark:true,deleteColumn:true,deleteImage:true,deleteNote:true,deleteRow:true,deleteTable:true,deleteText:true,editHeaderFooter:true,editTextFormField:true,exitHeaderFooter:true,insertBreak:true,goToBookmark:true,keepFirstBookmark:true,insertBookmark:true,insertColumn:true,insertContentControl:true,insertHyperlink:true,insertImage:true,insertNote:true,insertPageField:true,insertRow:true,insertTable:true,insertText:true,insertTextBox:true,insertToc:true,linkHeaderFooterToPrevious:true,mergeCells:true,mergeParagraphs:true,navigateReviewChange:true,openBookmarkDialog:true,openGoTo:true,openRevisionMarkupDialog:true,paste:true,pasteFormatting:true,pasteWithoutFormatting:true,proposeDeletion:true,proposeInsertion:true,proposeReplacement:true,redo:true,refreshToc:true,rejectAllRevisions:true,rejectRevision:true,removeContentControl:true,removeHeaderFooter:true,removeHyperlink:true,removeRepeatingSectionItem:true,removeTabMark:true,replaceAllMatches:true,replaceImage:true,replaceMatch:true,replaceText:true,replyComment:true,resolveAllReviewChanges:true,resolveComment:true,selectAll:true,selectTableRegion:true,setAlignment:true,setCellFill:true,setContentControlValue:true,setEditingMode:true,setHeaderFooterOptions:true,setImagePosition:true,setImageProperties:true,setImageWrapType:true,setIndent:true,setLineSpacing:true,setMarkAttr:true,setNoteProperties:true,setPageSetup:true,setParagraphDirection:true,setParagraphFormat:true,setParagraphSpacing:true,setParagraphStyle:true,setReviewChangesAuthor:true,setReviewDisplayMode:true,setSelection:true,setTableBorders:true,setTableCellVerticalAlignment:true,setTableProperties:true,setVariable:true,setWatermark:true,splitCell:true,splitParagraph:true,toggleDocumentProtection:true,toggleHeaderRow:true,toggleList:true,toggleBookmarks:true,toggleMark:true,toggleParagraphMarks:true,toggleReviewPane:true,transformImage:true,undo:true,unlinkHeaderFooterFromPrevious:true};function w(){return Object.keys(I)}export{H as DIAGNOSTIC_SCHEMA_VERSION,w as diagnosticCommands};
@@ -1,4 +1,4 @@
1
- import { j as ShapingEnvironmentInput, k as TextShaper, l as ResolvedRunStyle, m as ResolvedFont, T as TextMeasurer, F as FontResourceSnapshot, V as VersionedShapingLibrary, n as NormalizationPolicy, o as FixedPointRoundingMode, p as FontRequest } from './semantic-records-B-akgRch.js';
1
+ import { j as ShapingEnvironmentInput, k as TextShaper, R as ResolvedRunStyle, l as ResolvedFont, T as TextMeasurer, F as FontResourceSnapshot, V as VersionedShapingLibrary, m as NormalizationPolicy, n as FixedPointRoundingMode, o as FontRequest } from './semantic-records-DoK0lNjS.js';
2
2
  import { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
3
3
 
4
4
  /** Immutable per-operation environment. Configuration, extension, shaping, and producer changes are