@docx-editor.dev/core 2.33.0 → 2.34.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 (111) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +11 -11
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +13 -13
  6. package/dist/binding.js +1 -1
  7. package/dist/{chrome-print-CrPI9ZQc.d.ts → chrome-print-DY0xsXm_.d.ts} +163 -112
  8. package/dist/{chunk-X34QRAUU.cjs → chunk-37IYWENL.cjs} +1 -1
  9. package/dist/chunk-37RNWL45.js +4 -0
  10. package/dist/chunk-5HUVQXET.cjs +4 -0
  11. package/dist/chunk-5JP3QQF7.js +7 -0
  12. package/dist/chunk-5KOLFKOB.cjs +5 -0
  13. package/dist/chunk-6MF5PN2E.js +236 -0
  14. package/dist/chunk-77JT2AU7.js +2 -0
  15. package/dist/{chunk-2F2UEAE2.js → chunk-7FUORGCW.js} +1 -1
  16. package/dist/chunk-A5BTVPET.cjs +236 -0
  17. package/dist/chunk-AFXFH2T2.js +3 -0
  18. package/dist/chunk-AVCYP7OY.js +5 -0
  19. package/dist/chunk-BL2E4QRA.js +1 -0
  20. package/dist/chunk-DB7X4Y6O.js +4 -0
  21. package/dist/chunk-DR6W23TB.cjs +2 -0
  22. package/dist/{chunk-2DR4TH6B.js → chunk-DYLB5U42.js} +1 -1
  23. package/dist/chunk-E5BKDHIP.cjs +1 -0
  24. package/dist/chunk-IWXBRUPG.cjs +4 -0
  25. package/dist/{chunk-L3YXJDPX.js → chunk-KCUXXO3Q.js} +1 -1
  26. package/dist/chunk-KYA4Y2YB.js +1 -0
  27. package/dist/{chunk-PXMTQ73F.cjs → chunk-L74TCGVH.cjs} +1 -1
  28. package/dist/chunk-NBSSQSKY.js +30 -0
  29. package/dist/{chunk-RFUNFTGV.cjs → chunk-NEM774E3.cjs} +1 -1
  30. package/dist/chunk-NKZVMMHU.cjs +1 -0
  31. package/dist/chunk-TXIO5WYQ.cjs +32 -0
  32. package/dist/chunk-UKG2TXWH.cjs +7 -0
  33. package/dist/chunk-V7CO55DO.cjs +3 -0
  34. package/dist/chunk-VLQDQNSS.js +1 -0
  35. package/dist/chunk-VQOAC3VI.cjs +30 -0
  36. package/dist/chunk-YWJSQA2O.js +32 -0
  37. package/dist/chunk-ZJ74LCFI.cjs +1 -0
  38. package/dist/collaboration/replication.cjs +1 -1
  39. package/dist/collaboration/replication.d.ts +3 -3
  40. package/dist/collaboration/replication.js +1 -1
  41. package/dist/collaboration.d.ts +2 -2
  42. package/dist/contracts/document.d.ts +2 -2
  43. package/dist/contracts/editor.d.ts +9 -9
  44. package/dist/contracts/modules.d.ts +11 -11
  45. package/dist/contracts/types.d.ts +3 -3
  46. package/dist/{custom-node-writes-AqY5KpVx.d.ts → custom-node-writes-DparEcZK.d.ts} +45 -7
  47. package/dist/{diagnostic-context-CuzhOX0g.d.ts → diagnostic-context-CkZKkKvB.d.ts} +1 -1
  48. package/dist/{diagnostic-hints-BtCaCqQC.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +1 -1
  49. package/dist/{document-protection-BvbpSXbQ.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
  50. package/dist/{drawing-graphic-kind-CXYGYbB3.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +91 -18
  51. package/dist/{drawing-preview-package-B9lSLRg4.d.ts → drawing-preview-package-fFjXpOMS.d.ts} +1 -1
  52. package/dist/{editor-B7OOAAie.d.ts → editor-DDCkWqfD.d.ts} +47 -15
  53. package/dist/editor.cjs +1 -1
  54. package/dist/editor.css +2 -2
  55. package/dist/editor.d.ts +200 -75
  56. package/dist/editor.js +1 -1
  57. package/dist/export.cjs +2 -2
  58. package/dist/export.d.ts +8 -8
  59. package/dist/export.js +1 -1
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.d.ts +20 -20
  62. package/dist/index.js +1 -1
  63. package/dist/{layout-shaping-Ci_BTnSU.d.ts → layout-shaping-Byj-TwsI.d.ts} +1 -1
  64. package/dist/layout.cjs +1 -1
  65. package/dist/layout.d.ts +289 -129
  66. package/dist/layout.js +1 -1
  67. package/dist/{metafile-drawing-DtMFyMKq.d.ts → metafile-drawing-Ce6TuWLm.d.ts} +9 -1
  68. package/dist/{note-properties-DCIJUKIy.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
  69. package/dist/output.cjs +1 -1
  70. package/dist/output.d.ts +76 -12
  71. package/dist/output.js +1 -1
  72. package/dist/{protocol-Cp_QzVxS.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
  73. package/dist/{review-paragraph-order-BJQ43_r0.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
  74. package/dist/{revision-projection-OVusTS77.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
  75. package/dist/{semantic-cell-selection-CoI5hHBm.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
  76. package/dist/{semantic-interaction-BbA4dgEo.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
  77. package/dist/{semantic-paint-B5JcIv9c.d.ts → semantic-paint-BYDZbTiY.d.ts} +4 -4
  78. package/dist/{semantic-record-queries-DnO8J5_j.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
  79. package/dist/{semantic-records-DoK0lNjS.d.ts → semantic-records-CzZiWMY8.d.ts} +99 -94
  80. package/dist/store.cjs +1 -1
  81. package/dist/store.d.ts +31 -16
  82. package/dist/store.js +1 -1
  83. package/dist/{tree-op-types-Df4oY2u4.d.ts → tree-op-types-DKvJSH8T.d.ts} +204 -147
  84. package/dist/{tree-package-store-DXhX1PE-.d.ts → tree-package-store-Cl3BkWXF.d.ts} +1 -1
  85. package/dist/{tree-session-contract-CF2625mv.d.ts → tree-session-contract-BL50pqs8.d.ts} +14 -7
  86. package/dist/{unsupported-elements-CUojsaCr.d.ts → unsupported-elements-Bra4QTOM.d.ts} +1 -1
  87. package/package.json +2 -2
  88. package/dist/chunk-23MKR33J.js +0 -4
  89. package/dist/chunk-2DEY5NUC.cjs +0 -32
  90. package/dist/chunk-2GPGAFOJ.cjs +0 -5
  91. package/dist/chunk-ALD626VU.cjs +0 -2
  92. package/dist/chunk-AU33YWEJ.js +0 -236
  93. package/dist/chunk-AXU63LYW.cjs +0 -1
  94. package/dist/chunk-CM5VZRBV.js +0 -32
  95. package/dist/chunk-D7FAFFTN.js +0 -1
  96. package/dist/chunk-DYUVJNDD.cjs +0 -1
  97. package/dist/chunk-ESYUKD5D.js +0 -2
  98. package/dist/chunk-F7TGQMVR.js +0 -5
  99. package/dist/chunk-FLW7KIQX.js +0 -30
  100. package/dist/chunk-JG4A6W6I.js +0 -7
  101. package/dist/chunk-JNGLSBPH.js +0 -2
  102. package/dist/chunk-KE6ZWRIY.cjs +0 -236
  103. package/dist/chunk-LI42N7OW.cjs +0 -4
  104. package/dist/chunk-PLKDS4JT.js +0 -1
  105. package/dist/chunk-R4R3AAE4.js +0 -1
  106. package/dist/chunk-SVM6PGMS.js +0 -3
  107. package/dist/chunk-SZURLHR3.cjs +0 -3
  108. package/dist/chunk-UYCGCVZ2.cjs +0 -1
  109. package/dist/chunk-XNBYG4XJ.cjs +0 -30
  110. package/dist/chunk-ZDFJW5XS.cjs +0 -2
  111. package/dist/chunk-ZWO4JHNN.cjs +0 -7
@@ -0,0 +1 @@
1
+ 'use strict';var chunkTXIO5WYQ_cjs=require('./chunk-TXIO5WYQ.cjs'),chunkNEM774E3_cjs=require('./chunk-NEM774E3.cjs'),chunk5HUVQXET_cjs=require('./chunk-5HUVQXET.cjs'),chunkA5BTVPET_cjs=require('./chunk-A5BTVPET.cjs'),fflate=require('fflate');var Hr=Object.freeze({}),$r=Object.freeze([]);function Gr(e){let t=Object.keys(e);if(t.length===0)return Hr;let n={};for(let r of t){let o=e[r];o!==void 0&&(n[r]=o);}return Object.freeze(n)}function Yr(e){let t=new Map(chunkA5BTVPET_cjs.zi(e.part())),n=new Set([e.part()]);for(let o of e.headerFooterPartsBySection())for(let a of [o.headers,o.footers])for(let i of a.values())if(!n.has(i)){n.add(i);for(let[s,c]of chunkA5BTVPET_cjs.zi(i))t.has(s)||t.set(s,c);}let r=e.currentPackage();for(let o of ["footnote","endnote"]){let a=chunkA5BTVPET_cjs.gj(r,o);if(!(!a||n.has(a))){n.add(a);for(let[i,s]of chunkA5BTVPET_cjs.zi(a))t.has(i)||t.set(i,s);}}return t}function Xr(e,t){let n=chunkTXIO5WYQ_cjs.Qe(e,t);if(!n)return null;let r=e.pages[n.pageIndex];if(!r)return null;let o=chunkTXIO5WYQ_cjs.$e(r),a=chunkTXIO5WYQ_cjs.bf(e,t.paragraphId,n.pageIndex),i=Object.freeze({x:n.x+a.x,y:n.y+a.y,height:n.height});return Object.freeze({anchor:Object.freeze({...t}),pageIndex:n.pageIndex,pageContent:i,pageStack:Object.freeze({x:o.x+i.x,y:o.y+i.y})})}function qr(e,t){let n=[];for(let r of t.values()){let o=Xr(e,r);o&&n.push(o);}return n.length===0?$r:Object.freeze(n)}function Zt(e,t){return {documentMetadata:Gr(e.documentProperties()),destinations:qr(t,Yr(e))}}function ro(e,t){let n=e.destinations;if(n){for(let r of n)if(r.anchor.name===t)return r}}function er(e,t){let n=e[t];if(!Array.isArray(n)||n.length===0)return null;let r=Number(n[0]);return Number.isSafeInteger(r)&&r>0?r:null}var Qr={1:1,2:1,3:2,4:4,5:8,6:1,7:1,8:2,9:4,10:8,11:4,12:8,13:4},Jr=new Set([330,34665,34853,37500,50740,61440]);function Zr(e){if(e.length<8)return false;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=String.fromCharCode(e[0],e[1]);if(n!=="II"&&n!=="MM")return false;let r=n==="II";if(t.getUint16(2,r)!==42)return false;let o=t.getUint32(4,r);if(o<8||o+2>e.length)return false;let a=t.getUint16(o,r),i=o+2+a*12;if(i+4>e.length)return false;t.setUint32(i,0,r);for(let s=0;s<a;s+=1){let c=o+2+s*12;Jr.has(t.getUint16(c,r))&&t.setUint16(c,0,r);let d=Qr[t.getUint16(c+2,r)];if(d===void 0)continue;let u=t.getUint32(c+4,r)*d;u>4&&t.getUint32(c+8,r)+u>e.length&&t.setUint32(c+4,0,r);}return true}async function tr(e,t){let n=e.slice();if(!Zr(n))return null;let r=n.buffer,o=await import('utif2'),a=o.default??o,i=a.decode(r)[0];if(!i)return null;let s=er(i,"t256"),c=er(i,"t257");if(s===null||c===null||s>t.maxDimension||c>t.maxDimension||s>t.maxPixels/c)return null;let d=s*c;if(d*4>t.maxDecodedBytes||(a.decodeImage(r,i),i.width!==s||i.height!==c))return null;let u=a.toRGBA8(i);return u.length!==d*4?null:Object.freeze({rgba:u,pixelWidth:s,pixelHeight:c})}var me=null;function tn(e){if(!me){me=new Uint32Array(256);for(let n=0;n<256;n+=1){let r=n;for(let o=0;o<8;o+=1)r=r&1?3988292384^r>>>1:r>>>1;me[n]=r>>>0;}}let t=4294967295;for(let n of e)t=me[(t^n)&255]^t>>>8;return (t^4294967295)>>>0}function Oe(e,t){let n=new Uint8Array(12+t.length),r=new DataView(n.buffer);r.setUint32(0,t.length);for(let o=0;o<4;o+=1)n[4+o]=e.charCodeAt(o);return n.set(t,8),r.setUint32(8+t.length,tn(n.subarray(4,8+t.length))),n}function rn(e){let t=true;for(let n=0;n<e.length;n+=4){let r=e[n];if(e[n+3]!==255||e[n+1]!==r||e[n+2]!==r)return "rgba";r!==0&&r!==255&&(t=false);}return t?"bilevel":"grey"}function nn(e,t,n,r){let o=r==="bilevel"?Math.ceil(t/8):r==="grey"?t:t*4,a=new Uint8Array((o+1)*n);for(let i=0;i<n;i+=1){let s=i*(o+1)+1,c=i*t*4;if(r==="rgba")a.set(e.subarray(c,c+t*4),s);else if(r==="grey")for(let d=0;d<t;d+=1)a[s+d]=e[c+d*4];else for(let d=0;d<t;d+=1)e[c+d*4]===255&&(a[s+(d>>3)]|=128>>(d&7));}return r==="rgba"?{raw:a,depth:8,colour:6}:{raw:a,depth:r==="bilevel"?1:8,colour:0}}function rr(e,t,n){let{raw:r,depth:o,colour:a}=nn(e,t,n,rn(e)),i=new Uint8Array(13),s=new DataView(i.buffer);s.setUint32(0,t),s.setUint32(4,n),i[8]=o,i[9]=a;let c=[new Uint8Array([137,80,78,71,13,10,26,10]),Oe("IHDR",i),Oe("IDAT",fflate.zlibSync(r,{level:6})),Oe("IEND",new Uint8Array(0))],d=new Uint8Array(c.reduce((l,g)=>l+g.length,0)),u=0;for(let l of c)d.set(l,u),u+=l.length;return d}async function on(e,t,n){if(t!=="image/tiff")return null;let r=await tr(e,n);if(!r)return null;let o=rr(r.rgba,r.pixelWidth,r.pixelHeight);return Object.freeze({bytes:o,mime:"image/png"})}function nr(e={}){return Object.freeze({async decode(t,n,r){let o=chunkA5BTVPET_cjs.Of(t,n);if(!o)throw new Error(`Unsupported or malformed ${n} image`);if(o.pixelWidth>r.maxDimension||o.pixelHeight>r.maxDimension||o.pixelWidth>r.maxPixels/o.pixelHeight)throw new Error("Image dimensions exceed resource limits");return Object.freeze({pixelWidth:o.pixelWidth,pixelHeight:o.pixelHeight,dpiX:o.dpiX??96,dpiY:o.dpiY??96})},convertPreserved:e.convertPreserved??on})}var or=new WeakMap;function ar(e,t){let n=or.get(e);n||(n=chunkTXIO5WYQ_cjs.zf(e),or.set(e,n));let r=n.styleCascade(),o=new Set;if(t===e.part())for(let c of chunkTXIO5WYQ_cjs.tf(t,void 0,void 0,r,n.numberingIndex()))for(let d of chunkTXIO5WYQ_cjs.if(c)?.slice(0,-1)??[])o.add(d.paragraph.id);let a=c=>{if(c.kind==="textValue")return false;let d=c.children.find(l=>l.kind!=="textValue"&&l.namespaceUri===chunkA5BTVPET_cjs.pa&&l.localName==="pPr"),u=d?.kind!=="textValue"?d?.children.find(l=>l.kind!=="textValue"&&l.namespaceUri===chunkA5BTVPET_cjs.pa&&l.localName==="rPr"):void 0;return u!==void 0&&chunkA5BTVPET_cjs.Ea(u,"vanish")},i=0,s=(c,d)=>{if(++i>chunkA5BTVPET_cjs.Me||d>chunkA5BTVPET_cjs.da||c.kind==="textValue")return false;if(c.kind==="paragraph"&&!o.has(c.id)&&(chunkTXIO5WYQ_cjs.rf(c,r,false)||a(c))&&chunkA5BTVPET_cjs.ui(c).length>0)return true;for(let u of c.children){if(i>=chunkA5BTVPET_cjs.Me)break;if(s(u,d+1))return true}return false};return s(t.root,0)}var ir=new WeakMap,an=new Set(["shape","rect","roundrect","oval","line","group","arc","curve","polyline","image"]);function sn(e,t){let n=ir.get(e.root);if(n&&n.stylesPart===t)return n.codes;let r=new Set,o=[{node:e.root,scope:chunkA5BTVPET_cjs.Nd(),depth:0,mcSelected:false}],a=0;for(;o.length;){let{node:s,scope:c,depth:d,mcSelected:u}=o.pop();if(++a>chunkA5BTVPET_cjs.Me||d>chunkA5BTVPET_cjs.da){r.add("scan-limit");break}if(s.kind==="textValue")continue;if(a+o.length+s.children.length>chunkA5BTVPET_cjs.Me){r.add("scan-limit");break}let l=chunkA5BTVPET_cjs.Md(c,s),g=chunkA5BTVPET_cjs.Ld(s)?s:void 0;if(g){if(chunkA5BTVPET_cjs.Qe(g,l).drawing)continue;let f=chunkA5BTVPET_cjs.Se(g,{ownerPartName:e.name,namespaceScope:l,supportedMcRequires:chunkA5BTVPET_cjs.Le,limits:chunkA5BTVPET_cjs.Ke});if(f){let y=f.textboxStory?.content;y&&o.push({node:y,scope:l,depth:d+1,mcSelected:false});continue}let h=chunkA5BTVPET_cjs.Pe(g,l);h.refused&&r.add("scan-limit"),h.branch&&o.push({node:h.branch,scope:l,depth:d+1,mcSelected:true});continue}if(!u&&chunkA5BTVPET_cjs.Zd(s)){let f=chunkA5BTVPET_cjs.$d(s,e.name)?.textboxStory?.content;f&&o.push({node:f,scope:l,depth:d+1,mcSelected:u});continue}if(s.namespaceUri==="urn:schemas-microsoft-com:vml"&&s.localName==="textbox"){r.add("legacy-textbox");continue}s.namespaceUri==="urn:schemas-microsoft-com:vml"&&an.has(s.localName)&&!s.children.some(f=>f.kind!=="textValue"&&f.namespaceUri==="urn:schemas-microsoft-com:vml"&&f.localName==="textbox")&&r.add("legacy-drawing");for(let f of s.children)o.push({node:f,scope:l,depth:d+1,mcSelected:u});}let i=Object.freeze([...r]);return ir.set(e.root,{stylesPart:t,codes:i}),i}function sr(e){let t=new Set([e.part()]);for(let n of e.headerFooterPartsBySection())for(let r of [n.headers,n.footers])for(let o of r.values())t.add(o);for(let n of ["footnote","endnote"]){let r=chunkA5BTVPET_cjs.gj(e.currentPackage(),n);r&&t.add(r);}return Object.freeze([...t].flatMap(n=>[...sn(n,chunkA5BTVPET_cjs.ld(e.currentPackage())),...ar(e,n)?["unsupported-style-separator"]:[]].map(r=>Object.freeze({code:r,partName:n.name}))))}function cr(e){return chunkA5BTVPET_cjs.Ng(e.fieldResults,()=>chunkTXIO5WYQ_cjs.Wf(cn(e)))}function cn(e){return chunkTXIO5WYQ_cjs.Xf(e.fieldResults,dn(e))}function*dn(e){let t=e.defaultTabStopPt?.(),n=e.view.part().name,r={view:e.view,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,compatibilityMode:e.compatibilityMode?.(),inlineDrawingLayoutForPart:e.inlineDrawingLayoutForPart,drawingTokenForParagraphForPart:e.drawingTokenForParagraphForPart,drawingLayoutEpochForPart:e.drawingLayoutEpochForPart,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter},o=chunkTXIO5WYQ_cjs.Of(r),a={view:e.view,revision:e.revision,measurer:e.measurer,cache:e.cache,session:e.session,producer:e.producer,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,furniture:e.furniture,compatibilityMode:e.compatibilityMode,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,fieldResults:e.fieldResults,inlineDrawingLayout:e.inlineDrawingLayout,drawingTokenForParagraph:e.drawingTokenForParagraph,drawingLayoutEpoch:e.drawingLayoutEpoch,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,bodyBlockLimit:e.bodyBlockLimit},i={measurer:a.measurer,cache:a.cache,session:a.session,producer:a.producer,styleCascade:a.styleCascade?.(),defaultTabStopPt:a.defaultTabStopPt,compatibilityMode:a.compatibilityMode?.(),numberingIndex:a.numberingIndex?.(),sectionFurniture:a.furniture.sectionFurniture(),furniture:a.furniture.furniture(),evenAndOddHeaders:a.view.headerFooterPartsBySection()[0]?.evenAndOddHeaders===true,projectLink:a.linkProjectors.projectLink,projectFieldLink:a.projectFieldLink,showFieldCodes:a.showFieldCodes,fieldResults:a.fieldResults,documentProperties:a.view.documentProperties(),inlineDrawingLayout:a.inlineDrawingLayout,drawingTokenForParagraph:a.drawingTokenForParagraph,drawingLayoutEpoch:a.drawingLayoutEpoch,projectionTokenForParagraph:s=>a.linkProjectors.tokenForParagraphForPart(n,s),projectionTokenForTable:s=>a.linkProjectors.tokenForTableForPart(n,s),projectionEpoch:a.linkProjectors.epochForPart(n),notes:o,displayMode:a.displayMode,revisionAuthorFilter:a.revisionAuthorFilter,bodyBlockLimit:a.bodyBlockLimit};return yield*chunkTXIO5WYQ_cjs.Eg(a.view.part(),a.revision,i)}var ln=65536;function ur(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function un(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}function pn(e,t,n){return e.rootStory!==t?false:t==="footnote"||t==="endnote"?e.noteScopeId===n:true}function mn(e,t){if(t.story!=="textbox"||t.textboxPath.length===0)return null;let n=null;return chunkTXIO5WYQ_cjs.Na(e,r=>{if(n||!pn(t,r.story,r.noteScopeId))return;let o=r.story==="header"||r.story==="footer"?a=>chunkTXIO5WYQ_cjs.Ia(a,r.origin,{x:e.box.x,y:e.box.y}):void 0;chunkTXIO5WYQ_cjs.Ra(r.host,(a,i)=>{if(n||i.textboxDepth===0)return;let s=i.textboxPath.map(c=>c.drawingNodeId);un(s,t.textboxPath)&&(n=ur(e,i.storyOrigin));},r.origin,o);}),n}function fn(e,t){if(t.story==="textbox")return mn(e,t)??{x:0,y:0};switch(t.rootStory){case "body":return {x:0,y:0};case "header":return e.header?chunkTXIO5WYQ_cjs.af(e,e.header.box):{x:0,y:0};case "footer":return e.footer?chunkTXIO5WYQ_cjs.af(e,e.footer.box):{x:0,y:0};case "footnote":case "endnote":{let r=(t.rootStory==="footnote"?e.footnotes:e.endnotes)?.notes.find(o=>o.scopeId===t.noteScopeId);return r?chunkTXIO5WYQ_cjs.af(e,r.box):{x:0,y:0}}case "note-separator":{let n=t.noteAreaKind==="endnotes"?e.endnotes:e.footnotes,r=n?.separator?.box;return n?.continuationNotice&&chunkTXIO5WYQ_cjs.Ra(n.continuationNotice,o=>{o.paragraphId===t.source.start.paragraphId&&(r=n.continuationNotice.box);}),r?chunkTXIO5WYQ_cjs.af(e,r):{x:0,y:0}}default:return {x:0,y:0}}}function pr(e){return Object.freeze({x:e.x,y:e.y,width:e.width,height:e.height})}function mr(e,t){let n=chunkTXIO5WYQ_cjs.$e(e);return Object.freeze({x:n.x+t.x,y:n.y+t.y,width:t.width,height:t.height})}function yn(e,t){let n=chunkTXIO5WYQ_cjs.Qe(e,{paragraphId:t.source.start.paragraphId,offset:t.source.start.offset},{preferredPageIndex:t.pageIndex});if(!n||n.pageIndex!==t.pageIndex)return;let r=e.pages[n.pageIndex];if(!r)return;let o=fn(r,t),a=Object.freeze([pr({x:n.x+o.x,y:n.y+o.y,width:0,height:n.height})]);return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>mr(r,i)))})}function gn(e,t,n){let r=n.filter(i=>i.pageIndex===t.pageIndex);if(r.length===0)return fr(t)?yn(e,t):void 0;let o=e.pages[t.pageIndex];if(!o)return;let a=Object.freeze(r.map(i=>pr(i)));return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>mr(o,i)))})}function fr(e){return e.source.start.paragraphId===e.source.end.paragraphId&&e.source.start.offset===e.source.end.offset}function lr(e,t){return `${e}\0${t}`}function hn(e,t,n){let r=Math.max(e.start,t.offset),o=Math.min(e.end,n.offset);return o>r?{start:r,end:o}:null}function xn(e,t){let n=new Map,r=new Map,o=new Set,a=0;let i=(s,c)=>{if(a>=ln)return false;a+=1;let d=lr(s.pageIndex,c),u=r.get(d);return u?u.push(s):r.set(d,[s]),true};for(let[s,c]of t.entries())for(let[d,u]of c.occurrences.entries()){if(fr(u)||u.source.start.paragraphId!==u.source.end.paragraphId)continue;o.add(u.pageIndex);let l=`${s}\0${d}`,g={paragraphId:u.source.start.paragraphId,offset:u.source.start.offset},f={paragraphId:u.source.end.paragraphId,offset:u.source.end.offset},h=g.offset<=f.offset?{from:g,to:f}:{from:f,to:g};i({key:l,from:h.from,to:h.to,pageIndex:u.pageIndex},h.from.paragraphId);}if(r.size===0)return n;for(let s of e.pages)o.has(s.index)&&chunkTXIO5WYQ_cjs.Na(s,c=>{let d=c.story==="header"||c.story==="footer"?u=>chunkTXIO5WYQ_cjs.Ia(u,c.origin,{x:s.box.x,y:s.box.y}):void 0;chunkTXIO5WYQ_cjs.Ra(c.host,(u,l)=>{let g=ur(s,l.storyOrigin);for(let f of u.lines)for(let h of chunkTXIO5WYQ_cjs.Ya(f)){let y=r.get(lr(s.index,h.paragraphId));if(y)for(let b of y){let P=hn(h,b.from,b.to);if(!P)continue;let x=chunkTXIO5WYQ_cjs.Fe(f,P.start,void 0,h),R=chunkTXIO5WYQ_cjs.Fe(f,P.end,void 0,h,P.end>P.start),O=n.get(b.key)??[];O.push({pageIndex:s.index,x:Math.min(x,R)+g.x,y:f.box.y+g.y,width:Math.abs(R-x),height:f.box.height}),n.set(b.key,O);}}},c.origin,d);});return n}function yr(e,t){let n=false;for(let o of t)if(o.occurrences.length!==0){n=true;break}if(!n)return t;let r=xn(e,t);return t.map((o,a)=>{if(o.occurrences.length===0)return o;let i=o.occurrences.map((s,c)=>{let d=`${a}\0${c}`,u=gn(e,s,r.get(d)??[]);return u?{...s,geometry:u}:s});return {...o,occurrences:Object.freeze(i)}})}function wn(e){let t=new Map,n=[{node:e.root,depth:0}];for(;n.length>0;){let{node:r,depth:o}=n.pop();if(!(r.kind==="textValue"||o>64)){r.kind==="paragraph"&&!t.has(r.id)&&t.set(r.id,t.size);for(let a=r.children.length-1;a>=0;a-=1)n.push({node:r.children[a],depth:o+1});}}return t}function gr(){let e=new Map,t=r=>{let o=e.get(r.root);if(o)return o;let a=wn(r);return e.set(r.root,a),a},n={retainRevisionItems:false,revisionSites:chunkA5BTVPET_cjs.Jl,locations:chunkA5BTVPET_cjs.Xl,commentAnchors:chunkA5BTVPET_cjs.Lj,deepOrder:t};return Object.freeze({collectReviewItems:r=>chunkA5BTVPET_cjs.$l(r,n),deepParagraphOrderOfPart:t})}var hr=new WeakMap,fe={};function De(e,t){let n=hr.get(e??fe)??new WeakMap;hr.set(e??fe,n);let r=n.get(t??fe);if(!r){let o=chunkTXIO5WYQ_cjs.kf(e);r={table:o,numbering:chunkTXIO5WYQ_cjs.Ld(chunkTXIO5WYQ_cjs.nd(t),o)},n.set(t??fe,r);}return r}var Ee=new Set(["pPrChange","rPr","sectPr"]),ke=new Set(["rPrChange","ins","del","moveFrom","moveTo"]),bn=new Set(["ind","spacing","rFonts","lang"]),Pn={ind:[["firstLine","hanging"]],rFonts:[["ascii","asciiTheme"],["hAnsi","hAnsiTheme"],["eastAsia","eastAsiaTheme"],["cs","cstheme"]]},vn={ind:{start:"left",end:"right"}},Rn={ind:new Set(["startChars","endChars","leftChars","rightChars","firstLineChars","hangingChars"])},Me=new Set(["dstrike","noProof","webHidden","specVanish","rtl","cs","oMath","keepNext","keepLines","pageBreakBefore","suppressLineNumbers","suppressAutoHyphens","contextualSpacing","mirrorIndents","suppressOverlap","bidi"]);for(let e of chunkTXIO5WYQ_cjs.M)Me.add(e);var wr=new Set(["0","false","off"]);function Sn(e,t,n,r){if(Me.has(e))return t==="val"&&wr.has(n);switch(e){case "jc":return n==="start"||!r&&n==="left";case "ind":return n==="0";case "u":case "highlight":return n==="none";case "vertAlign":return n==="baseline";case "color":return n==="auto";case "position":return n==="0";case "w":return n==="100";default:return false}}function In(e){let t=vn[e.localName],n=Rn[e.localName],r={};for(let[o,a]of Object.entries(e.attributes??{})){if(n?.has(o))return null;let i=t?.[o]??o;i!==o&&e.attributes?.[i]!==void 0||(r[i]=a);}return Me.has(e.localName)&&r.val===void 0&&(r.val="true"),r}function On(e,t,n){let r={...t};for(let o of Pn[e]??[])if(o.some(a=>n[a]!==void 0))for(let a of o)delete r[a];return Object.assign(r,n)}function br(e,t){let n=new Map;for(let i of e){if(t.has(i.localName))continue;let s=In(i);if(!s)return null;let c=n.get(i.localName);n.set(i.localName,c&&bn.has(i.localName)?On(i.localName,c,s):s);}let r=n.get("bidi"),o=r!==void 0&&!wr.has(r.val??"true"),a=[];for(let[i,s]of n){let c=Object.entries(s).filter(([d,u])=>!Sn(i,d,u,o)).sort(([d],[u])=>d.localeCompare(u));c.length===0&&Object.keys(s).length>0||a.push(`${i}(${c.map(([d,u])=>`${d}=${u}`).join(",")})`);}return a.sort().join(" ")}function ye(e,t){let n=[];for(let r of e?.children??[]){if(r.kind==="textValue")continue;let o=r.namespaceUri===chunkA5BTVPET_cjs.pa;o&&t.has(r.localName)||o&&!r.children.some(a=>a.kind!=="textValue")||n.push(chunkA5BTVPET_cjs.Ja(r));}return n.join("\0")}function ge(e,t){let n="";for(let r of e)r.localName===t&&(n=r.attributes?.val??"");return n}function Pr(e,t){let n=chunkTXIO5WYQ_cjs.mf(e.table,t).paragraphPropertyNodes,r=chunkTXIO5WYQ_cjs.Jd(n);if(!r||r.numId==="0")return null;let o=chunkTXIO5WYQ_cjs.od(e.numbering,r.numId,r.ilvl);return (o&&chunkTXIO5WYQ_cjs.Zc(o.level))??void 0}function xr(e,t){let n=Pr(e,t);if(n===void 0)return null;let r=chunkTXIO5WYQ_cjs.mf(e.table,t,void 0,n??void 0);return br(r.paragraphProperties,Ee)}function vr(e,t,n){let r=chunkTXIO5WYQ_cjs.wd(t);if(ge(chunkTXIO5WYQ_cjs.yb(n),"pStyle")!==ge(chunkTXIO5WYQ_cjs.yb(r),"pStyle")||ye(n,Ee)!==ye(r,Ee))return false;let o=xr(e,n);return o!==null&&o===xr(e,r)}function Rr(e,t,n,r){let o=chunkTXIO5WYQ_cjs.vd(t),a=chunkTXIO5WYQ_cjs.yb(n),i=chunkTXIO5WYQ_cjs.yb(o);if(ge(a,"rStyle")!==ge(i,"rStyle")||ye(n,ke)!==ye(o,ke))return false;let s=Pr(e,r);if(s===void 0)return false;let c=chunkTXIO5WYQ_cjs.mf(e.table,r,void 0,s??void 0).runProperties,d=l=>br(chunkTXIO5WYQ_cjs.of(c,l,e.table),ke),u=d(a);return u!==null&&u===d(i)}function Ir(e){return {pkg:e,stylesRoot:chunkA5BTVPET_cjs.ld(e)?.root??null,numberingRoot:chunkA5BTVPET_cjs.md(e)}}var kn=64,Sr=new WeakMap;function Ae(e){return e.kind==="revision"&&e.revisionKind==="format"&&(e.formattingKind==="pPrChange"||e.formattingKind==="rPrChange")&&!e.readOnly&&e.ranges.length>0}function En(e,t){let n=null,r=chunkA5BTVPET_cjs.db(e,t);for(let o=0;r&&o<kn;o+=1){if(r.kind==="tableCell"||r.localName==="tc")return null;r.kind==="paragraph"&&(n??=r),r=chunkA5BTVPET_cjs.db(e,r.id);}return r?null:n}function Dn(e,t,n,r){let o=chunkA5BTVPET_cjs.cb(e,t);if(!o||o.kind==="textValue")return false;let a=chunkA5BTVPET_cjs.db(e,t);if(!a)return false;let i=En(e,a.id);if(!i||!r.has(i.id))return false;let s=chunkTXIO5WYQ_cjs.wd(i),c=Sr.get(o);if(c&&c.context===n&&c.current===a&&c.paragraph===s)return c.inert;let d=o.localName==="pPrChange"?a===s&&vr(n,o,a):o.localName==="rPrChange"&&Rr(n,o,a,s);return Sr.set(o,{context:n,current:a,paragraph:s,inert:d}),d}function Or(e,t,n){if(!Ae(e))return false;let r=t.pkg.parts.get(e.ranges[0].partName),o=chunkA5BTVPET_cjs.fl(e),a=new Set(e.ranges.map(i=>i.start.paragraphId));return !!r&&o.length>0&&o.every(i=>Dn(r,i,n,a))}function kr(e,t){if(!e.some(Ae))return e;let n=De(t.stylesRoot,t.numberingRoot),r=e.filter(o=>!Or(o,t,n));return r.length===e.length?e:chunkA5BTVPET_cjs.am(r)}function da(e,t){if(!e.some(Ae))return [];let n=De(t.stylesRoot,t.numberingRoot);return e.filter(r=>Or(r,t,n))}function Mn(e,t){if(t)return true;let n=e.map(r=>r.root);for(;n.length>0;){let r=n.pop();if(chunkA5BTVPET_cjs.Hl(r))return true;if(r.kind!=="textValue")for(let o of r.children)n.push(o);}return false}function Cr(e,t){let n=[],r=new Set([t.name]),o=a=>{!a||r.has(a.name)||(r.add(a.name),n.push(a));};for(let a of chunkA5BTVPET_cjs.of(e)){for(let i of a.headers.values())o(i);for(let i of a.footers.values())o(i);}return o(chunkA5BTVPET_cjs.gj(e,"footnote")),o(chunkA5BTVPET_cjs.gj(e,"endnote")),n}function An(e,t){switch(t.story){case "body":return e.mainDocumentPart;case "header":case "footer":return t.host.partName;case "footnote":return chunkA5BTVPET_cjs.gj(e,"footnote")?.name??null;case "endnote":return chunkA5BTVPET_cjs.gj(e,"endnote")?.name??null;case "note-separator":return chunkA5BTVPET_cjs.gj(e,t.noteAreaKind==="footnotes"?"footnote":"endnote")?.name??null;default:return t}}function Ln(e,t){let n=new Map;for(let r of e){let o=t.get(r.partName),a=o?.get(r.start.paragraphId),i=o?.get(r.end.paragraphId);if(a===void 0||i===void 0)continue;let s=Math.min(a,i),c=Math.max(a,i),d=n.get(r.partName);n.set(r.partName,{lower:Math.min(d?.lower??s,s),upper:Math.max(d?.upper??c,c)});}return n}function Cn(e,t,n,r,o){let a=new Map(n.map(l=>[l.name,o(l)])),i=Ln(r,a),s=new Map,c=new Map,d=(l,g,f,h,y,b,P)=>{let x=a.get(l)?.get(y),R=i.get(l);if(x===void 0||!R||x<R.lower||x>R.upper)return;let O=s.get(l)??new Map;s.set(l,O);let V=c.get(l)??new Map;c.set(l,V);let $=JSON.stringify([g.story,g.noteScopeId,g.noteAreaKind]),K=f==="textbox"?JSON.stringify([$,"textbox",h]):$,G=O.get(y)??[],_=`${y}\0${g.page.index}\0${K}`,T=V.get(_);T||(T={pageIndex:g.page.index,story:f,rootStory:g.story,textboxPath:h,noteScopeId:g.noteScopeId,noteAreaKind:g.noteAreaKind,laneKey:K,intervals:[],intervalKeys:new Set},V.set(_,T),G.push(T),O.set(y,G));let Y=`${b}\0${P}`;T.intervalKeys?.has(Y)||(T.intervalKeys?.add(Y),T.intervals.push({start:b,end:P}));};chunkTXIO5WYQ_cjs.Oa(e,l=>{let g=An(t,l);!g||!i.has(g)||chunkTXIO5WYQ_cjs.Ra(l.host,(f,h)=>{let y=h.textboxDepth>0?"textbox":l.story,b=h.textboxPath.map(x=>x.drawingNodeId),P=[];for(let x of f.lines){for(let R of x.spans)P.push(R.range);for(let R of x.drawings??[])P.push({paragraphId:R.paragraphId,start:R.start,end:R.start+1});}P.length===0&&P.push({paragraphId:f.range.paragraphId,start:f.range.start,end:f.range.end});for(let{paragraphId:x,start:R,end:O}of P)d(g,l,y,b,x,R,O);});}),chunkTXIO5WYQ_cjs.Qa(e,l=>{let g=l.drawing.ownerPartName;l.drawing.accessibility.hidden||!i.has(g)||d(g,l.root,l.story,l.textboxPath.map(f=>f.drawingNodeId),l.drawing.paragraphId,l.drawing.start,l.drawing.start+1);});for(let l of s.values())for(let g of l.values())for(let f of g){f.intervals.sort((y,b)=>y.start-b.start||y.end-b.end);let h=[];for(let y of f.intervals){let b=h.at(-1);b&&y.start<=b.end?b.end=Math.max(b.end,y.end):h.push({...y});}f.intervals.splice(0,f.intervals.length,...h),f.intervalKeys=void 0;}let u=new Map;for(let[l,g]of s){let f=a.get(l);if(!f)continue;let h=[];for(let[y,b]of g){let P=f.get(y);P!==void 0&&h.push({paragraphId:y,position:P,laneKeys:new Set(b.map(({laneKey:x})=>x))});}h.sort((y,b)=>y.position-b.position),u.set(l,h);}return {byPart:s,orderByPart:a,visibleByPart:u}}function Er(e,t){let n=0,r=e.length;for(;n<r;){let o=n+r>>>1;e[o].position<t?n=o+1:r=o;}return n}function Tn(e,t){if(e.start.paragraphId===e.end.paragraphId)return [e.start.paragraphId];let n=t.orderByPart.get(e.partName),r=t.visibleByPart.get(e.partName),o=n?.get(e.start.paragraphId),a=n?.get(e.end.paragraphId);if(!n||!r||o===void 0||a===void 0)return [e.start.paragraphId,e.end.paragraphId];let i=Math.min(o,a),s=Math.max(o,a),c=new Set(t.byPart.get(e.partName)?.get(e.start.paragraphId)?.map(({laneKey:l})=>l)??[]),d=new Set(t.byPart.get(e.partName)?.get(e.end.paragraphId)?.map(({laneKey:l})=>l)??[]),u=new Set([...c].filter(l=>d.has(l)));return u.size===0?[e.start.paragraphId,e.end.paragraphId]:r.slice(Er(r,i),Er(r,s+1)).filter(l=>[...l.laneKeys].some(g=>u.has(g))).map(l=>l.paragraphId)}function Fn(e,t,n,r){return r?e.intervals.filter(a=>a.start<=t&&t<a.end).length>0?[{start:t,end:t}]:[]:e.intervals.flatMap(o=>{if(o.start===o.end)return [];let a={start:Math.max(o.start,t),end:Math.min(o.end,n)};return a.end>a.start?[a]:[]})}function Nn(e,t){let n=Number.NEGATIVE_INFINITY;for(let r of e)for(let o of r.intervals)n=Math.max(n,o.end);return t!==n?new Set:new Set(e.filter(r=>r.intervals.some(o=>o.end===n)))}function Dr(e,t,n){let r=[],o=new Set;for(let[a,i]of e.entries()){let s=n===void 0?void 0:n===null?"neutral":a<n?"replaced":"replacement";for(let c of Tn(i,t)){let d=t.byPart.get(i.partName)?.get(c)??[],l=i.start.paragraphId===i.end.paragraphId&&i.start.offset===i.end.offset,g=c===i.start.paragraphId?i.start.offset:0,f=c===i.end.paragraphId?i.end.offset:Number.POSITIVE_INFINITY,h=l?Nn(d,g):new Set;for(let y of d){let b=Fn(y,g,f,l);l&&b.length===0&&h.has(y)&&(b=[{start:g,end:g}]);for(let P of b){let x=`${y.pageIndex}\0${y.story}\0${y.noteScopeId??""}\0${y.noteAreaKind??""}\0${y.textboxPath.join("\0")}\0${i.partName}\0${c}\0${P.start}\0${P.end}\0${s??""}`;o.has(x)||(o.add(x),r.push({pageIndex:y.pageIndex,physicalPageNumber:y.pageIndex+1,story:y.story,rootStory:y.rootStory,textboxPath:y.textboxPath,noteScopeId:y.noteScopeId,noteAreaKind:y.noteAreaKind,...s?{revisionRole:s}:{},source:{partName:i.partName,start:{paragraphId:c,offset:P.start},end:{paragraphId:c,offset:P.end}}}));}}}}return r}function Tr(e,t){let n=2166136261,r=2654435769;for(let o=0;o<t.length;o+=1){let a=t.charCodeAt(o);n=Math.imul(n^a,16777619)>>>0,r=Math.imul(r^a+o,2246822507)>>>0,r^=r>>>13;}return `${e}_${t.length.toString(36)}_${n.toString(36)}_${r.toString(36)}`}function Mr(e,t,n=Tr){let r=new Map;for(let a of t){let i=n(e,a),s=r.get(i)??new Set;s.add(a),r.set(i,s);}let o=new Map;for(let[a,i]of r){let s=[...i].sort();for(let[c,d]of s.entries())o.set(d,s.length===1?a:`${a}_${c.toString(36)}`);}return o}function jn(e){let t=new Set,n=new Set;for(let r of e){if(r.kind==="comment"){t.add(r.id),r.parentId!==void 0&&t.add(r.parentId),r.parentRevisionId!==void 0&&n.add(r.parentRevisionId);for(let o of r.replyIds)t.add(o);}if(r.kind==="revision"){n.add(r.id),r.pairedWith!==void 0&&n.add(r.pairedWith);for(let o of r.replyIds)t.add(o);}}return {comment:Mr("comment",t),revision:Mr("change",n)}}function U(e,t,n){return e.get(n)??Tr(t,n)}var Ar=new WeakMap;function _n(e){let t=Ar.get(e.root);if(t)return t;let n=new Map,r=0,o=[e.root];for(;o.length>0;){let a=o.pop();if(!(a.kind==="textValue"||a.kind==="text"||a.kind==="runProperties"||a.kind==="paragraphProperties")){if(a.kind==="commentReference"){let i=chunkA5BTVPET_cjs.ef(a,chunkA5BTVPET_cjs.pa,"id");i!==void 0&&n.set(i,r++);continue}for(let i=a.children.length-1;i>=0;i-=1)o.push(a.children[i]);}}return Ar.set(e.root,n),n}function Bn(e,t,n,r){if(e.kind==="revision")return {kind:"tracked-change",id:U(n.revision,"change",e.id),change:e.revisionKind,...e.structuralChanges?{structuralChanges:e.structuralChanges}:{},...e.markDirection?{markDirection:e.markDirection}:{},author:e.author,...e.date!==void 0?{date:e.date}:{},text:chunkA5BTVPET_cjs.tb(e.text),replacedText:chunkA5BTVPET_cjs.tb(e.replacedText),nesting:e.nesting,...e.replacedRangeCount!==void 0?{replacedRangeCount:e.replacedRangeCount}:{},readOnly:e.readOnly,...e.pairedWith!==void 0?{pairedWith:U(n.revision,"change",e.pairedWith)}:{},replyIds:e.replyIds.map(a=>U(n.comment,"comment",a)),occurrences:t?Dr(e.ranges,t,e.revisionKind==="replace"?e.replacedRangeCount??null:void 0):[]};if(e.kind!=="comment")return null;let o=r.get(e.id);return {kind:"comment",id:U(n.comment,"comment",e.id),author:e.comment.author,initials:chunkA5BTVPET_cjs.Vl(e.comment),...e.comment.initials?.trim()?{declaredInitials:chunkA5BTVPET_cjs.Vl({...e.comment,author:""})}:{},...o!==void 0?{referenceOrder:o}:{},...e.comment.date!==void 0?{date:e.comment.date}:{},text:chunkA5BTVPET_cjs.Tl(e.comment),resolved:e.resolved,...e.parentId!==void 0?{parentId:U(n.comment,"comment",e.parentId)}:{},...e.parentRevisionId!==void 0?{parentRevisionId:U(n.revision,"change",e.parentRevisionId)}:{},replyIds:e.replyIds.map(a=>U(n.comment,"comment",a)),orphaned:e.orphaned,occurrences:t&&e.range?Dr([e.range],t):[]}}function Fr(e){let t=e.parts.get(e.mainDocumentPart);if(!t)return null;let n=Cr(e,t),r=[t,...n],o=e.parts.get(chunk5HUVQXET_cjs.$(e,t.name));if(!Mn(r,o))return null;let a=gr(),i=a.collectReviewItems({storyPart:t,furnitureParts:n,commentsPart:o,commentsExtendedPart:e.parts.get(chunk5HUVQXET_cjs.aa(e,t.name))}),s=kr(i,Ir(e)),c=new Set(s.map(l=>l.id)),d=chunkNEM774E3_cjs.a(i.filter(l=>!c.has(l.id))),u={sites:new Set(d.sites),paragraphs:d.paragraphs,key:chunkNEM774E3_cjs.c(chunkA5BTVPET_cjs.ld(e)?.root??null,chunkA5BTVPET_cjs.md(e))};return {parts:r,derivation:a,items:s,unlistedSites:u}}var Un=new Map,Lr=new WeakMap,Vn={sites:new Set,paragraphs:new Map,key:""};function Nr(e){let t=Lr.get(e);if(!t){let n=e.parts.get(e.mainDocumentPart);t=n!==void 0&&[n,...Cr(e,n)].some(o=>chunkA5BTVPET_cjs.Il(o).some(a=>a.propertyChange))&&Fr(e)?.unlistedSites||Vn,Lr.set(e,t);}return t}function jr(e,t){let n=Fr(t);if(!n)return [];let{parts:r,derivation:o,items:a}=n;if(a.length===0)return [];let i=a.flatMap(u=>chunkA5BTVPET_cjs.ll(u)),s=i.length>0?Cn(e,t,r,i,o.deepParagraphOrderOfPart):null,c=jn(a),d=a.some(u=>u.kind==="comment")?_n(r[0]):Un;return a.map(u=>Bn(u,s,c,d)).filter(u=>u!==null)}var Kn=new Set(["part","validatedHandle"]);function _r(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Z(e,t,n,r,o){if(!(r!==void 0&&Kn.has(r))){if(typeof e=="function")throw new TypeError("Semantic layout publication encountered a function value");if(!(e===null||typeof e!="object")&&!o?.has(e)){if(n.has(e))throw new TypeError("Semantic layout publication encountered a cyclic record graph");if(!t.has(e)){t.add(e),n.add(e);try{if(Array.isArray(e)){for(let a of e)Z(a,t,n,void 0,o);Object.freeze(e);return}if(!_r(e))throw new TypeError("Semantic layout publication encountered a non-record value");for(let a of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,a);if(i){if(!("value"in i))throw new TypeError("Semantic layout publication encountered an accessor property");Z(i.value,t,n,a,o);}}Object.freeze(e);}finally{n.delete(e);}}}}}function Br(e){if(!_r(e))throw new TypeError("Semantic layout publication encountered a non-record value");let t=new Set;for(let r of e.pages)if(!(r===null||typeof r!="object"))for(let o of ["header","footer"]){let a=Object.getOwnPropertyDescriptor(r,o);if(!a||!("value"in a))continue;let i=a.value;if(i===null||typeof i!="object"||t.has(i))continue;let s=new Set;s.add(e),Z(i,new Set,s,o),t.add(i);}let n=(r,o)=>{let a=new Set;for(let i of r){let s=new Set;s.add(e),Z(i,a,s,void 0,o);}Object.freeze(r);};for(let r of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,r);if(!o)continue;if(!("value"in o))throw new TypeError("Semantic layout publication encountered an accessor property");if(r==="pages"&&Array.isArray(o.value)){n(o.value,t);continue}if(r==="reviewArtifacts"&&Array.isArray(o.value)){n(o.value);continue}let a=new Set;a.add(e),Z(o.value,new Set,a,r);}return Object.freeze(e),e}var zn=Object.freeze([]),M=class extends Error{constructor(n,r,o){super(r,o);this.code=n;this.name="ExportResourceError";}code};function Wn(e){try{return e instanceof M}catch{return false}}function Hn(e){try{return e instanceof chunkTXIO5WYQ_cjs.Jf}catch{return false}}function $n(e){try{return e instanceof Error&&typeof e.message=="string"&&e.message.length>0?e.message:null}catch{return null}}function Gn(e){if(Wn(e))return e;let t=Hn(e),n=$n(e),r=n?`: ${n}`:"",o=new M(t?"layoutInvariant":"layoutFailed",t?`Authored geometry could not be represented within the bounded page model${r}`:`Export layout failed${r}`);return Object.defineProperty(o,"cause",{configurable:true,value:e}),o}function Yn(e){if(e===void 0)return 6e4;if(!Number.isFinite(e)||e<=0)throw new RangeError("resourceTimeoutMs must be a positive finite number");return Math.max(1,e)}function Ur(e){if(e==="all-markup"||e==="simple-markup"||e==="proposed"||e==="original")return e;throw new RangeError("displayMode must be all-markup, simple-markup, proposed, or original")}var Xn=50,Le=64;function qn(e){switch(e.kind){case "pending":return true;case "ready":case "unrenderable":case "external":case "missing":return false;default:return e}}function Qn(e){let t=false;return chunkTXIO5WYQ_cjs.Qa(e,({drawing:n})=>{qn(n.resource)&&(t=true);}),t}function Vr(e){return !ArrayBuffer.isView(e)}function Xa(e,t={}){if(t.signal?.aborted)return {ok:false,reason:"aborted"};if(t.revisionAuthorSlots!==void 0&&(!t.revisionAuthorSlots||typeof t.revisionAuthorSlots!="object"||Array.isArray(t.revisionAuthorSlots)))throw new TypeError("revisionAuthorSlots must map author names to nonnegative safe integers.");let n=t.revisionAuthorSlots===void 0?void 0:Object.freeze(Object.fromEntries(Object.entries(t.revisionAuthorSlots).map(([m,w])=>{if(!Number.isSafeInteger(w)||w<0)throw new TypeError("revisionAuthorSlots values must be nonnegative safe integers.");return [m,w]}))),r=t.revisionMarkup?chunkTXIO5WYQ_cjs.hb(t.revisionMarkup):void 0,o=r?{revisionMarkup:r,hiddenAuthors:new Set,cacheKey:JSON.stringify(r)}:void 0,a=Ur(t.displayMode??chunkTXIO5WYQ_cjs.lb),i=Vr(e),s=Vr(e)?{ok:true,view:e}:chunk5HUVQXET_cjs.Ba(e);if(!s.ok)return s;let c=s.view,d=t.reuseAcrossRevisions??i,u=Yn(t.resourceTimeoutMs),l=t.measurer??chunkTXIO5WYQ_cjs.ta(),g=t.producer??(t.measurer?"host-export-measurer":"export-fixed-measurer"),f=chunkTXIO5WYQ_cjs.hf({retainAcrossPasses:d}),h=0,y=new Set,b=()=>{h+=1;for(let m of y)m();y.clear();},P=chunkTXIO5WYQ_cjs.Bf({session:c,decodePort:t.imageDecodePort??nr(t.convertPreservedImage?{convertPreserved:t.convertPreservedImage}:void 0),onResourcesChanged:b}),x={view:c,measurer:l,paragraphCache:f,sessions:new Map,completed:new Map,inFlight:new Map,styles:chunkTXIO5WYQ_cjs.zf(c),fieldLinks:new Map,links:chunkTXIO5WYQ_cjs.Qf(c),drawingBundle:P,furniture:new Map},R=new AbortController,O=t.signal,V=false,$=()=>V?new M("aborted","Export resource settlement was aborted"):new M("disposed","Export session has been disposed"),K=()=>{V=true,G();};function G(){let m=x;if(m){x=null,O?.removeEventListener("abort",K),R.abort(O?.reason),m.drawingBundle.dispose(),m.paragraphCache.clear();for(let w of m.completed.values())chunkTXIO5WYQ_cjs.jd(w.internal),chunkTXIO5WYQ_cjs.Yf(w.internal);for(let w of m.fieldLinks.values())w.registry.clear();m.fieldLinks.clear(),m.completed.clear(),m.inFlight.clear(),m.furniture.clear(),m.sessions.clear(),b();}}O?.addEventListener("abort",K,{once:true}),O?.aborted&&K();let _=()=>{if(!x)throw $();if(R.signal.aborted)throw new M("aborted","Export resource settlement was aborted")},T=(m,w,v,p)=>h!==m||x?.view.packageRevision()!==w||x?.view.currentPackage()!==v?Promise.resolve():(_(),new Promise((I,E)=>{let D=false,F,A=N=>{D||(D=true,F!==void 0&&clearTimeout(F),y.delete(X),R.signal.removeEventListener("abort",q),N?E(N):I());},X=()=>A(),q=()=>A(new M("aborted","Export resource settlement was aborted")),L=()=>{if(x?.view.packageRevision()!==w||x?.view.currentPackage()!==v){A();return}let N=p-Date.now();if(N<=0){A(new M("timedOut",`Image resources did not settle within ${u}ms`));return}F=setTimeout(L,Math.min(Xn,N));};if(y.add(X),R.signal.addEventListener("abort",q,{once:true}),h!==m||x?.view.packageRevision()!==w||x?.view.currentPackage()!==v){A();return}F=setTimeout(L,0);})),Y=async(m,w=0,v=Date.now()+u)=>{if(_(),Date.now()>=v)throw new M("timedOut",`Export layout did not stabilize within ${u}ms`);let p=x,I=v,E=p.view.packageRevision(),D=p.view.currentPackage(),F=p.completed.get(m);if(F&&F.revision===E&&F.pkg===D)return F.published;let A=()=>{if(p.view.packageRevision()===E&&p.view.currentPackage()===D)return null;if(w>=Le-1)throw new M("nonConvergent","Document revision did not stabilize during export layout");return Y(m,w+1,I)},X=m==="simple-markup"?chunkTXIO5WYQ_cjs.mb(o):o,q=m==="all-markup"||m==="simple-markup"?chunkTXIO5WYQ_cjs.ne(X,Nr(D),m==="simple-markup"):X,L=p.fieldLinks.get(m);if(!L||L.revision!==E||L.pkg!==D){let k=L?.registry??chunkTXIO5WYQ_cjs.Rf();k.clear(),L={revision:E,pkg:D,registry:k},p.fieldLinks.set(m,L),p.furniture.delete(m);}let N=L.registry,Te=p.sessions.get(m)??chunkTXIO5WYQ_cjs.Cg();p.sessions.set(m,Te);let ee=p.furniture.get(m);ee||(ee=chunkTXIO5WYQ_cjs.Nf({view:p.view,measurer:p.measurer,producer:g,cache:p.paragraphCache,styleCascade:p.styles.styleCascade,numberingIndex:p.styles.numberingIndex,defaultTabStopPt:p.styles.defaultTabStopPt,compatibilityMode:p.styles.compatibilityMode,displayMode:chunkTXIO5WYQ_cjs.kb(m),revisionAuthorFilter:q,showFieldCodes:false,inlineDrawingLayoutForPart:k=>p.drawingBundle.contextForPart(k),drawingLayoutTokenForPart:k=>p.drawingBundle.cacheTokenForPart(k),drawingTokenForParagraphForPart:(k,he)=>p.drawingBundle.drawingTokenForParagraph(he,k),linkProjectors:p.links,projectFieldLink:k=>N.project(k)}),p.furniture.set(m,ee));for(let k=0;k<Le;k+=1){let he=h;p.drawingBundle.sync(p.view);let Fe=A();if(Fe)return Fe;let j=cr({view:p.view,revision:p.view.packageRevision(),measurer:p.measurer,cache:p.paragraphCache,session:Te,producer:g,styleCascade:p.styles.styleCascade,defaultTabStopPt:p.styles.defaultTabStopPt,numberingIndex:p.styles.numberingIndex,furniture:ee,compatibilityMode:p.styles.compatibilityMode,linkProjectors:p.links,projectFieldLink:S=>N.project(S),inlineDrawingLayout:p.drawingBundle.bodyContext,inlineDrawingLayoutForPart:S=>p.drawingBundle.contextForPart(S),drawingTokenForParagraph:S=>p.drawingBundle.drawingTokenForParagraph(S,p.view.part().name),drawingTokenForParagraphForPart:(S,te)=>p.drawingBundle.drawingTokenForParagraph(te,S),drawingLayoutEpoch:p.drawingBundle.cacheTokenForPart(p.view.part().name),drawingLayoutEpochForPart:S=>p.drawingBundle.cacheTokenForPart(S),displayMode:chunkTXIO5WYQ_cjs.kb(m),revisionAuthorFilter:q,showFieldCodes:false,bodyBlockLimit:void 0,fieldResults:"atomic"});if(!Qn(j)){let S=A();if(S)return S;d||(chunkTXIO5WYQ_cjs.jd(j),chunkTXIO5WYQ_cjs.Yf(j),p.paragraphCache.clear(),p.sessions.delete(m),p.furniture.delete(m));let te=jr(j,D),Kr=te.length===0?zn:Object.freeze(yr(j,te)),zr=Zt(p.view,j),Wr={...j,...zr,reviewDisplayMode:m,...r?{revisionMarkup:r}:{},...n?{revisionAuthorSlots:n}:{},facingPages:[...D.parts.values()].some(Be=>Be.root.localName==="settings"&&Be.root.children.some(re=>re.kind!=="textValue"&&(re.localName==="mirrorMargins"||re.localName==="evenAndOddHeaders")&&!re.attributes.some(Ue=>Ue.localName==="val"&&["0","false","off"].includes(Ue.value)))),contentWarnings:sr(p.view),reviewArtifacts:Kr},_e=Br(Wr);return p.completed.set(m,{revision:E,pkg:D,internal:j,published:_e}),_e}let Ne=he;for(;p.drawingBundle.pendingResourceCount()>0;){await T(Ne,E,D,I),Ne=h,_();let S=A();if(S)return S}_();let je=A();if(je)return je}throw new M("nonConvergent",`Image resources did not reach quiescence after ${Le} layout passes`)},Ce=m=>{let w;try{w=Ur(m);}catch(E){return Promise.reject(E)}if(!x)return Promise.reject($());let v=x,p=v.inFlight.get(w);if(p)return p;let I=Y(w).catch(E=>{throw Gn(E)}).finally(()=>v.inFlight.delete(w));return v.inFlight.set(w,I),I};return {ok:true,session:{layout:()=>Ce(a),layoutFor:Ce,validatedImageBytes(m){let w=x;return !w||m.resource.kind!=="ready"?null:w.drawingBundle.mintValidatedBytes(m.resource.validatedHandle,m.resource.contentId)?.slice()??null},async chartFallbackResource(m){let w=x;if(!w||!m.chart||!m.chartFallbackResource)return;if(m.chartFallbackResource.kind!=="pending")return m.chartFallbackResource;let v,p=new Promise(I=>{v=setTimeout(()=>I(Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),u);});try{return await Promise.race([w.drawingBundle.resolveChartFallback(m.ownerPartName,m.drawingNodeId),p])}finally{clearTimeout(v);}},metafileBytes(m){let w=x,v=m.resource;if(!w||v.kind!=="unrenderable"||v.partName===null||v.reason!=="unsupported-format"&&v.reason!=="decode-failed")return null;let p=v.mime;if(p!=="image/x-emf"&&p!=="image/x-wmf")return null;let I=w.view.currentPackage().partBytes.get(v.partName);return !I||I.byteLength>chunkA5BTVPET_cjs.q.maxEncodedBytes||chunkA5BTVPET_cjs.Jf(I)!==p?null:{mime:p,bytes:I.slice()}},dispose:G}}}exports.a=tr;exports.b=cn;exports.c=ro;exports.d=nr;exports.e=Ir;exports.f=kr;exports.g=da;exports.h=M;exports.i=Xa;
@@ -1 +1 @@
1
- 'use strict';var chunkX34QRAUU_cjs=require('../chunk-X34QRAUU.cjs'),chunkKE6ZWRIY_cjs=require('../chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunkX34QRAUU_cjs.b}});Object.defineProperty(exports,"mapOffsetAcrossText",{enumerable:true,get:function(){return chunkX34QRAUU_cjs.c}});Object.defineProperty(exports,"historyGroupOfJournal",{enumerable:true,get:function(){return chunkKE6ZWRIY_cjs.Qa}});Object.defineProperty(exports,"registerUndoHistoryPosition",{enumerable:true,get:function(){return chunkKE6ZWRIY_cjs.on}});Object.defineProperty(exports,"reportHistoryGroup",{enumerable:true,get:function(){return chunkKE6ZWRIY_cjs.nn}});
1
+ 'use strict';var chunk37IYWENL_cjs=require('../chunk-37IYWENL.cjs'),chunkA5BTVPET_cjs=require('../chunk-A5BTVPET.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunk37IYWENL_cjs.b}});Object.defineProperty(exports,"mapOffsetAcrossText",{enumerable:true,get:function(){return chunk37IYWENL_cjs.c}});Object.defineProperty(exports,"historyGroupOfJournal",{enumerable:true,get:function(){return chunkA5BTVPET_cjs.Qa}});Object.defineProperty(exports,"registerUndoHistoryPosition",{enumerable:true,get:function(){return chunkA5BTVPET_cjs.Fn}});Object.defineProperty(exports,"reportHistoryGroup",{enumerable:true,get:function(){return chunkA5BTVPET_cjs.En}});
@@ -14,9 +14,9 @@
14
14
  * @packageDocumentation
15
15
  * @public
16
16
  */
17
- import { b as HistoryGroup, T as TreePackageStore, c as TreeModelChange } from '../tree-package-store-DXhX1PE-.js';
18
- export { r as reportHistoryGroup } from '../tree-package-store-DXhX1PE-.js';
19
- import { av as OoxmlElement, a5 as OoxmlPackage } from '../tree-op-types-Df4oY2u4.js';
17
+ import { b as HistoryGroup, T as TreePackageStore, c as TreeModelChange } from '../tree-package-store-Cl3BkWXF.js';
18
+ export { r as reportHistoryGroup } from '../tree-package-store-Cl3BkWXF.js';
19
+ import { av as OoxmlElement, a5 as OoxmlPackage } from '../tree-op-types-DKvJSH8T.js';
20
20
  import '../editor-scope-CA6egMaK.js';
21
21
 
22
22
  /** Attribute name as the journal addresses it. Prefix is authored fidelity, not identity. @public */
@@ -1 +1 @@
1
- export{b as createCollaborationDocumentPort,c as mapOffsetAcrossText}from'../chunk-2DR4TH6B.js';export{Qa as historyGroupOfJournal,on as registerUndoHistoryPosition,nn as reportHistoryGroup}from'../chunk-AU33YWEJ.js';
1
+ export{b as createCollaborationDocumentPort,c as mapOffsetAcrossText}from'../chunk-DYLB5U42.js';export{Qa as historyGroupOfJournal,Fn as registerUndoHistoryPosition,En as reportHistoryGroup}from'../chunk-6MF5PN2E.js';
@@ -7,8 +7,8 @@
7
7
  * @packageDocumentation
8
8
  * @public
9
9
  */
10
- import { S as StoryScope } from './tree-package-store-DXhX1PE-.js';
11
- import { au as TreeDocOp } from './tree-op-types-Df4oY2u4.js';
10
+ import { S as StoryScope } from './tree-package-store-Cl3BkWXF.js';
11
+ import { au as TreeDocOp } from './tree-op-types-DKvJSH8T.js';
12
12
  import { CollaborationDocumentPort } from './collaboration/replication.js';
13
13
  import { a as CollaborationStatus, b as CollaborationStatusSnapshot, C as CollaborationFailureCode } from './failure-6KGFrDO9.js';
14
14
  export { c as CollaborationFailure, d as createCollaborationStatusTracker, i as isCollaborationFailureCode } from './failure-6KGFrDO9.js';
@@ -13,8 +13,8 @@
13
13
  * @packageDocumentation
14
14
  * @public
15
15
  */
16
- import { D as DocxDocument, E as ExecResult, i as ContentControlType, j as DocTarget, k as RunFormatting, l as Extent, I as InsertableContentControlType, m as ContainerRef, n as ContentControlFilter, o as DocRange, p as Revision, q as DocComment, S as StyleDefinitions } from '../tree-op-types-Df4oY2u4.js';
17
- export { B as Block, r as ColorValue, s as ContentControl, t as DocAnchor, u as DocAnchorRange, v as DocLocation, w as DocumentBody, x as ExecErrorCode, H as HeaderFooterSet, y as IndentFormatting, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, G as ParagraphTabStop, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, 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, Y as Section, Z as SectionProperties, _ as StyleDefinition, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme } from '../tree-op-types-Df4oY2u4.js';
16
+ import { D as DocxDocument, E as ExecResult, i as ContentControlType, j as DocTarget, k as RunFormatting, l as Extent, I as InsertableContentControlType, m as ContainerRef, n as ContentControlFilter, o as DocRange, p as Revision, q as DocComment, S as StyleDefinitions } from '../tree-op-types-DKvJSH8T.js';
17
+ export { B as Block, r as ColorValue, s as ContentControl, t as DocAnchor, u as DocAnchorRange, v as DocLocation, w as DocumentBody, x as ExecErrorCode, H as HeaderFooterSet, y as IndentFormatting, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, G as ParagraphTabStop, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, 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, Y as Section, Z as SectionProperties, _ as StyleDefinition, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme } from '../tree-op-types-DKvJSH8T.js';
18
18
  export { H as HistoryGroupOutcome } from '../editor-scope-CA6egMaK.js';
19
19
 
20
20
  /**
@@ -7,18 +7,18 @@
7
7
  * @packageDocumentation
8
8
  * @public
9
9
  */
10
- 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';
10
+ 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-DwFhgIR0.js';
11
11
  export { CommentMarkerStyle, DEFAULT_REVIEW_PANE, ResolvedReviewPane, ReviewPaneItemFields, ReviewPaneOpening, ReviewPaneOptions, ReviewPaneOverflow, RevisionDisplay, resolveReviewPane, reviewPaneListsItem } from './types.js';
12
- 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, b as EditorCommand, 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';
12
+ 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, b as EditorCommand, 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 TableInteractionLabelKey, aK as TableRightEdgeResizeTarget, aL as TableRowOccurrenceTarget, aM as TextMatch, aN as TimingSummary, aO as TrackedChangeFilterMode, aP as TrackedChangePredicate, aQ as ZoomFitTarget, aR as ZoomMode } from '../editor-DDCkWqfD.js';
13
13
  export { E as EditorFontErrorCode, F as FontConfiguration, a as FontFaceRequest, b as FontSource, c as FontSourceSubstitution } from '../editor-fonts-D_-vjuJi.js';
14
- 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, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, 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, 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';
14
+ 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, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, 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, 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-DKvJSH8T.js';
15
15
  export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.js';
16
16
  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';
17
17
  export { InteractionAffinity, InteractionOutcome, InteractionOutcomeCode, SemanticIdentity, SemanticTarget } from './interaction.js';
18
- export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-BbA4dgEo.js';
19
- export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-BvbpSXbQ.js';
18
+ export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-QeuzEtAk.js';
19
+ export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-DdWxihIN.js';
20
20
  export { C as CollaborationFailureCode, a as CollaborationStatus } from '../failure-6KGFrDO9.js';
21
- 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, E as EditDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, j as ReviewChangeKind, R as ReviewDiagnosticCode, k as ReviewOperation } from '../diagnostic-hints-BtCaCqQC.js';
22
- import '../semantic-records-DoK0lNjS.js';
23
- import '../drawing-graphic-kind-CXYGYbB3.js';
24
- import '../tree-package-store-DXhX1PE-.js';
21
+ 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, E as EditDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, j as ReviewChangeKind, R as ReviewDiagnosticCode, k as ReviewOperation } from '../diagnostic-hints-BTyb8yzX.js';
22
+ import '../semantic-records-CzZiWMY8.js';
23
+ import '../drawing-graphic-kind-CK0cMc7H.js';
24
+ import '../tree-package-store-Cl3BkWXF.js';
@@ -17,24 +17,24 @@
17
17
  * @packageDocumentation
18
18
  * @public
19
19
  */
20
- import { R as RevisionMarkupDialogSession, a as ReviewDisplayMode } from '../revision-projection-OVusTS77.js';
21
- export { b as RevisionDisplayMode } from '../revision-projection-OVusTS77.js';
20
+ import { R as RevisionMarkupDialogSession, a as ReviewDisplayMode } from '../revision-projection-DwFhgIR0.js';
21
+ export { b as RevisionDisplayMode } from '../revision-projection-DwFhgIR0.js';
22
22
  import { ReviewPaneOptions } from './types.js';
23
- import { E as EditorDiagnostic, a as EditorDiagnosticKind } from '../editor-B7OOAAie.js';
24
- import { R as ReviewModelInput, a as ReviewItem, O as OoxmlPart, b as ReviewRevisionItem } from '../tree-op-types-Df4oY2u4.js';
25
- export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind, h as RevisionAddress } from '../tree-op-types-Df4oY2u4.js';
23
+ import { E as EditorDiagnostic, a as EditorDiagnosticKind } from '../editor-DDCkWqfD.js';
24
+ import { R as ReviewModelInput, a as ReviewItem, O as OoxmlPart, b as ReviewRevisionItem } from '../tree-op-types-DKvJSH8T.js';
25
+ export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind, h as RevisionAddress } from '../tree-op-types-DKvJSH8T.js';
26
26
  import { CollaborationModuleContribution } from '../collaboration.js';
27
27
  import '../failure-6KGFrDO9.js';
28
- import '../document-protection-BvbpSXbQ.js';
28
+ import '../document-protection-DdWxihIN.js';
29
29
  import '../editor-scope-CA6egMaK.js';
30
30
  import '../editor-fonts-D_-vjuJi.js';
31
- import '../diagnostic-hints-BtCaCqQC.js';
31
+ import '../diagnostic-hints-BTyb8yzX.js';
32
32
  import './document.js';
33
33
  import './interaction.js';
34
- import '../semantic-interaction-BbA4dgEo.js';
35
- import '../semantic-records-DoK0lNjS.js';
36
- import '../drawing-graphic-kind-CXYGYbB3.js';
37
- import '../tree-package-store-DXhX1PE-.js';
34
+ import '../semantic-interaction-QeuzEtAk.js';
35
+ import '../semantic-records-CzZiWMY8.js';
36
+ import '../drawing-graphic-kind-CK0cMc7H.js';
37
+ import '../tree-package-store-Cl3BkWXF.js';
38
38
  import '../collaboration/replication.js';
39
39
 
40
40
  /**
@@ -7,10 +7,10 @@
7
7
  * @packageDocumentation
8
8
  * @public
9
9
  */
10
- export { B as Block, r as ColorValue, 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, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, 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, ak as Rect, 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, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-Df4oY2u4.js';
10
+ export { B as Block, r as ColorValue, 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, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, 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, ak as Rect, 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, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-DKvJSH8T.js';
11
11
  export { C as CollaborationFailureCode, a as CollaborationStatus } from '../failure-6KGFrDO9.js';
12
- export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, 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';
13
- export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-BvbpSXbQ.js';
12
+ export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, 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-DwFhgIR0.js';
13
+ export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-DdWxihIN.js';
14
14
  export { H as HistoryGroupOutcome } from '../editor-scope-CA6egMaK.js';
15
15
 
16
16
  /**
@@ -1,5 +1,5 @@
1
- import { a5 as OoxmlPackage, O as OoxmlPart, a4 as OoxmlNode, aE as RevisionAttributionInput, aF as TreeOpRejection } from './tree-op-types-Df4oY2u4.js';
2
- import { c as TreeModelChange, d as TreeDocumentStore } from './tree-package-store-DXhX1PE-.js';
1
+ import { a5 as OoxmlPackage, O as OoxmlPart, av as OoxmlElement, a4 as OoxmlNode, aE as RevisionAttributionInput, aF as TreeOpRejection } from './tree-op-types-DKvJSH8T.js';
2
+ import { c as TreeModelChange, d as TreeDocumentStore } from './tree-package-store-Cl3BkWXF.js';
3
3
 
4
4
  /** Which of a family's four faces an embedded font relationship supplies. */
5
5
  type FontStyleKey = 'regular' | 'bold' | 'italic' | 'boldItalic';
@@ -47,6 +47,38 @@ declare function readEmbeddedFonts(pkg: OoxmlPackage, fontTable: OoxmlPart | und
47
47
 
48
48
  /** The two list kinds a toolbar offers. */
49
49
  type ListKind = 'bullet' | 'ordered';
50
+ /**
51
+ * Where one level puts its marker and text, in twips, as the list being converted resolved it.
52
+ *
53
+ * Switching a list item between bullets and numbers changes what the marker SAYS, never
54
+ * where the item sits. A field left out is one the old level did not state, so the new level
55
+ * does not state it either and the paragraph style's value keeps applying.
56
+ */
57
+ interface ListLevelGeometry {
58
+ /** `w:left`: the leading indent of the text, in either paragraph direction. */
59
+ readonly left?: number;
60
+ /** `w:right`: the trailing indent. */
61
+ readonly right?: number;
62
+ /** `w:hanging`; exclusive with {@link firstLine}, and preferred when both are given. */
63
+ readonly hanging?: number;
64
+ /** `w:firstLine`: how far the first line starts past the leading indent. */
65
+ readonly firstLine?: number;
66
+ /** `w:suff`: what separates the marker from the text. Omitted means a tab. */
67
+ readonly suffix?: 'tab' | 'space' | 'nothing';
68
+ /** `w:lvlJc`: how the marker aligns at its position. */
69
+ readonly align?: 'left' | 'center' | 'right';
70
+ /**
71
+ * The old level's own `w:pPr`, carried for everything it states besides the indent above:
72
+ * direction (`w:bidi`), tab stops, spacing and alignment move the item as surely as `w:ind`.
73
+ * Must be a node of this package's numbering part; it is copied, never shared.
74
+ */
75
+ readonly paragraphProperties?: OoxmlElement;
76
+ }
77
+ /**
78
+ * Geometry for each of the nine levels, indexed by `w:ilvl`. A missing entry takes the stock
79
+ * geometry, which is what a level the old list never declared would have been given anyway.
80
+ */
81
+ type ListDefinitionGeometry = readonly (ListLevelGeometry | undefined)[];
50
82
  interface EnsuredListDefinition {
51
83
  readonly pkg: OoxmlPackage;
52
84
  /** The `w:numId` a paragraph's `w:numPr` should name. */
@@ -56,10 +88,16 @@ interface EnsuredListDefinition {
56
88
  * Find or create a list definition of `kind`, returning the package that holds it.
57
89
  *
58
90
  * An existing abstract definition of the same kind is reused, but every disconnected list
59
- * gets a fresh `w:num` instance. Counters belong to `w:num`, so reusing that instance would
60
- * continue an earlier list. Returns null only when the part cannot be built at all.
91
+ * gets a fresh `w:num` instance. Counters belong to the abstract definition, shared by every
92
+ * `w:num` over it, so the fresh instance restarts each level with a
93
+ * `w:startOverride` (see {@link restartOverridesXml}). Returns null only when the part cannot
94
+ * be built at all.
95
+ *
96
+ * With `geometry`, the definition is the one a list item SWITCHING kind needs: `kind`'s
97
+ * markers at the positions its old list gave each level, so the item does not move. Only a
98
+ * definition with exactly those levels is reused; any other one is created.
61
99
  */
62
- declare function ensureListDefinition(pkg: OoxmlPackage, kind: ListKind): EnsuredListDefinition | null;
100
+ declare function ensureListDefinition(pkg: OoxmlPackage, kind: ListKind, geometry?: ListDefinitionGeometry): EnsuredListDefinition | null;
63
101
  /**
64
102
  * Declare `level` in the definition `numId` names, with Word's default format for that
65
103
  * level, or refuse.
@@ -324,5 +362,5 @@ type CustomNodeSweepOutcome = {
324
362
  readonly reason: string;
325
363
  };
326
364
 
327
- export { MAX_CUSTOM_NODE_LABEL_LENGTH as M, NO_TRACKING_SETTINGS as N, MAX_CUSTOM_NODE_PAYLOAD_LENGTH as g, buildBookmarkIndex as h, customNodePayloadsByControl as i, customNodePayloadsOf as j, deobfuscateFont as k, ensureListDefinition as l, ensureNumberingLevel as m, insertCustomNodeWrite as n, readTrackingSettings as o, removeCustomNodeWrite as p, readEmbeddedFonts as r, sweepCustomNodePayloads as s };
328
- export type { BookmarkIndex as B, CustomNodeWriteResult as C, DocumentTrackingSettings as D, EmbeddedFont as E, FontStyleKey as F, InsertCustomNodeWrite as I, ListKind as L, ReadEmbeddedFontsOptions as R, CustomNodeSweepOutcome as a, BookmarkAnchor as b, CustomNodePayloadRead as c, CustomNodePayloadWrite as d, CustomNodeSweepResult as e, CustomNodeWriteRejection as f };
365
+ export { MAX_CUSTOM_NODE_LABEL_LENGTH as M, NO_TRACKING_SETTINGS as N, MAX_CUSTOM_NODE_PAYLOAD_LENGTH as i, buildBookmarkIndex as j, customNodePayloadsByControl as k, customNodePayloadsOf as l, deobfuscateFont as m, ensureListDefinition as n, ensureNumberingLevel as o, insertCustomNodeWrite as p, readTrackingSettings as q, readEmbeddedFonts as r, removeCustomNodeWrite as s, sweepCustomNodePayloads as t };
366
+ export type { BookmarkIndex as B, CustomNodeWriteResult as C, DocumentTrackingSettings as D, EmbeddedFont as E, FontStyleKey as F, InsertCustomNodeWrite as I, ListKind as L, ReadEmbeddedFontsOptions as R, CustomNodeSweepOutcome as a, ListDefinitionGeometry as b, BookmarkAnchor as c, CustomNodePayloadRead as d, CustomNodePayloadWrite as e, CustomNodeSweepResult as f, CustomNodeWriteRejection as g, ListLevelGeometry as h };
@@ -1,4 +1,4 @@
1
- import { R as ReviewDiagnosticCode, B as ByteSizeBucket, a as CountBucket, e as DocumentOpenDiagnosticCode, E as EditDiagnosticCode, c as DiagnosticErrorName, f as DocumentPartKind } from './diagnostic-hints-BtCaCqQC.js';
1
+ import { R as ReviewDiagnosticCode, B as ByteSizeBucket, a as CountBucket, e as DocumentOpenDiagnosticCode, E as EditDiagnosticCode, c as DiagnosticErrorName, f as DocumentPartKind } from './diagnostic-hints-BTyb8yzX.js';
2
2
 
3
3
  /**
4
4
  * The public code for a refused open. `too-large` is the one reason two layers share: the
@@ -16,7 +16,7 @@ type DocumentOpenDiagnosticCode = 'open.unsupported-source' | 'open.zip-corrupt'
16
16
  */
17
17
  type DocumentSaveDiagnosticCode = 'save.no-document' | 'save.document-changed' | 'save.failed';
18
18
  /** Why an edit, a command or a tracked change was refused. @public */
19
- type EditDiagnosticCode = 'edit.read-only' | 'edit.protected-content' | 'edit.suggesting-needs-author' | 'edit.review-module-required' | 'edit.tracked-drawing-delete-unsupported' | 'edit.tracked-structure-unsupported' | 'edit.tracked-operation-unsupported' | 'edit.tracking-mode-unsupported' | 'edit.tracking-author-required' | 'edit.comment-author-required' | 'edit.tracking-unsupported-host' | 'edit.revision-unsupported' | 'edit.tracking-required' | 'edit.tracked-image-replace-unsupported' | 'edit.tracked-deleted-text-only' | 'edit.tracked-foreign-revision-unsupported' | 'edit.tracked-own-pending-change' | 'edit.picture-selected' | 'edit.cross-structure-join' | 'edit.indivisible-content' | 'edit.field-structure' | 'edit.field-unsupported' | 'edit.field-result-unsupported' | 'edit.ooxml-unsupported' | 'edit.section-mark' | 'edit.table-structure-unsupported' | 'edit.table-merge-not-rectangle' | 'edit.table-split-unsupported' | 'edit.table-insert-refused' | 'edit.table-of-contents-refused' | 'edit.unsupported-content' | 'edit.operation-unsupported' | 'edit.unsupported-story' | 'edit.unmapped-change' | 'edit.stale-target' | 'edit.invalid-argument' | 'edit.resource-limit' | 'edit.refresh-in-progress' | 'edit.preview-active' | 'edit.preview-unsupported' | 'edit.preview-composing' | 'edit.preview-diverged' | 'edit.collaboration-not-ready' | 'edit.collaboration-text-limit' | 'edit.internal-invariant' | 'edit.refused';
19
+ type EditDiagnosticCode = 'edit.read-only' | 'edit.protected-content' | 'edit.suggesting-needs-author' | 'edit.review-module-required' | 'edit.tracked-drawing-delete-unsupported' | 'edit.tracked-structure-unsupported' | 'edit.tracked-operation-unsupported' | 'edit.tracking-mode-unsupported' | 'edit.tracking-author-required' | 'edit.comment-author-required' | 'edit.tracking-unsupported-host' | 'edit.revision-unsupported' | 'edit.tracking-required' | 'edit.tracked-image-replace-unsupported' | 'edit.tracked-deleted-text-only' | 'edit.tracked-foreign-revision-unsupported' | 'edit.tracked-own-pending-change' | 'edit.picture-selected' | 'edit.cross-structure-join' | 'edit.indivisible-content' | 'edit.field-structure' | 'edit.field-unsupported' | 'edit.field-result-unsupported' | 'edit.ooxml-unsupported' | 'edit.style-not-defined' | 'edit.no-styles-defined' | 'edit.section-mark' | 'edit.table-structure-unsupported' | 'edit.table-merge-not-rectangle' | 'edit.table-split-unsupported' | 'edit.table-insert-refused' | 'edit.table-of-contents-refused' | 'edit.unsupported-content' | 'edit.operation-unsupported' | 'edit.unsupported-story' | 'edit.unmapped-change' | 'edit.stale-target' | 'edit.invalid-argument' | 'edit.resource-limit' | 'edit.refresh-in-progress' | 'edit.preview-active' | 'edit.preview-unsupported' | 'edit.preview-composing' | 'edit.preview-diverged' | 'edit.read-after-commit' | 'edit.collaboration-not-ready' | 'edit.collaboration-text-limit' | 'edit.internal-invariant' | 'edit.refused';
20
20
  /** Why accepting, rejecting or re-authoring a tracked change skipped an item. @public */
21
21
  type ReviewDiagnosticCode = 'review.revision-unsupported' | 'review.incomplete-group' | 'review.retained-structure' | 'review.locked-content' | 'review.bound-content' | 'review.stale-revision';
22
22
  /** Why a font did not load. The family name is never reported. @public */
@@ -1,4 +1,4 @@
1
- import { a4 as OoxmlNode } from './tree-op-types-Df4oY2u4.js';
1
+ import { a4 as OoxmlNode } from './tree-op-types-DKvJSH8T.js';
2
2
 
3
3
  /** `ST_DocProtect`: the restriction a document asks for. `none` also stands for "no element". */
4
4
  type DocumentProtectionEdit = 'none' | 'readOnly' | 'comments' | 'trackedChanges' | 'forms';
@@ -1,19 +1,6 @@
1
- import { aG as OoxmlNodeId, ax as OoxmlGenericElementNode, a4 as OoxmlNode, a5 as OoxmlPackage, O as OoxmlPart, av as OoxmlElement, aA as OoxmlPackageRejection } from './tree-op-types-Df4oY2u4.js';
2
- import { e as HeaderFooterParts, f as HeaderFooterSectionResolution, T as TreePackageStore } from './tree-package-store-DXhX1PE-.js';
1
+ import { aG as OoxmlNodeId, ax as OoxmlGenericElementNode, a4 as OoxmlNode, a5 as OoxmlPackage, O as OoxmlPart, av as OoxmlElement, aA as OoxmlPackageRejection } from './tree-op-types-DKvJSH8T.js';
2
+ import { e as HeaderFooterParts, f as HeaderFooterSectionResolution, T as TreePackageStore } from './tree-package-store-Cl3BkWXF.js';
3
3
 
4
- /** Office Math Markup Language namespace. */
5
- declare const OFFICE_MATH_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/math";
6
- declare const DEFAULT_OMML_LIMITS: Readonly<{
7
- maxDepth: 24;
8
- maxNodes: 256;
9
- maxTextLength: 512;
10
- }>;
11
- /** Shared work limits for untrusted OMML and linear-math input. */
12
- interface OmmlLimits {
13
- readonly maxDepth?: number;
14
- readonly maxNodes?: number;
15
- readonly maxTextLength?: number;
16
- }
17
4
  /**
18
5
  * Marks a structure whose property element carries `m:ctrlPr` operator run formatting that
19
6
  * compact replacement cannot reproduce.
@@ -26,6 +13,17 @@ interface OmmlLimits {
26
13
  interface EquationControlSource {
27
14
  /** The structure carries non-default `m:ctrlPr` properties, so compact replacement refuses it. */
28
15
  readonly controlProperties?: true;
16
+ /**
17
+ * Font size of the structure, in points. The source is the `w:sz` value of the run
18
+ * properties in the structure's `m:ctrlPr`, which counts half-points.
19
+ *
20
+ * Layout sizes script offsets and bar strokes and gaps from this size, not from the size of
21
+ * the runs inside the structure. When it is not set, those use the size of the text around
22
+ * the equation. A script or fraction after the first atom of the equation takes its offsets
23
+ * from the size of that first atom instead. Set whether or not the control properties are
24
+ * default. Radicals and n-ary operators with limits below and above do not use it yet.
25
+ */
26
+ readonly controlFontSizePt?: number;
29
27
  }
30
28
  type EquationExpression = {
31
29
  readonly kind: 'row';
@@ -33,8 +31,32 @@ type EquationExpression = {
33
31
  } | {
34
32
  readonly kind: 'text';
35
33
  readonly value: string;
34
+ /**
35
+ * Authored font size of the run, in points. The source is the `w:sz` value of the
36
+ * run properties (`w:rPr`), which counts half-points.
37
+ *
38
+ * Set only when every run of the equation holds the same default math formatting: the
39
+ * Cambria Math font, italic, one size, and at most a language. Such runs have no
40
+ * `format`, so compact replacement stays available and writes the same `w:rPr` back.
41
+ * Otherwise the size is in `format.fontSizePt`. When neither field is set, the text
42
+ * takes the size of the surrounding text. To read the size of any text expression,
43
+ * use `format?.fontSizePt ?? fontSizePt`.
44
+ */
45
+ readonly fontSizePt?: number;
46
+ /**
47
+ * Source formatting of the run. Set when the run has its own supported formatting and
48
+ * the equation does not use the uniform default math formatting. Compact replacement
49
+ * refuses an equation that has a text expression with a `format`, because it cannot
50
+ * write that formatting back.
51
+ */
36
52
  readonly format?: {
37
53
  readonly fontFamily?: string;
54
+ /**
55
+ * Authored font size of the run, in points. The source is the `w:sz` value of the
56
+ * run properties (`w:rPr`), which counts half-points. Set when the run has a
57
+ * `format` and a `w:sz`. The top-level `fontSizePt` is not set in that case.
58
+ */
59
+ readonly fontSizePt?: number;
38
60
  readonly bold?: boolean;
39
61
  readonly italic?: boolean;
40
62
  readonly literal?: boolean;
@@ -60,14 +82,64 @@ type EquationExpression = {
60
82
  readonly superscript?: EquationExpression;
61
83
  } & EquationControlSource) | ({
62
84
  readonly kind: 'nary';
85
+ /** The operator character from `m:chr`, or `∫` when the source names none. */
63
86
  readonly operator: string;
64
87
  readonly body: EquationExpression;
65
88
  readonly lowerLimit?: EquationExpression;
66
89
  readonly upperLimit?: EquationExpression;
90
+ /**
91
+ * Where the limits sit, from `m:limLoc`: `undOvr` below and above the operator, `subSup`
92
+ * to its right as a subscript and superscript. Not set when the source names none.
93
+ * Inline equations place the limits to the right either way. An `m:oMath` alone in its
94
+ * paragraph is a display equation, as an `m:oMathPara` is, and follows this location.
95
+ */
96
+ readonly limitLocation?: 'undOvr' | 'subSup';
97
+ } & EquationControlSource) | ({
98
+ /**
99
+ * `m:borderBox`: the body inside a rectangle. A hidden edge draws no rule and keeps no
100
+ * gap. Strikes cross the box horizontally, vertically, or along a diagonal.
101
+ */
102
+ readonly kind: 'borderBox';
103
+ readonly body: EquationExpression;
104
+ readonly hidden: EquationBoxEdges;
105
+ readonly strikes: EquationBoxStrikes;
67
106
  } & EquationControlSource) | {
68
107
  readonly kind: 'fallback';
69
108
  readonly text: string;
70
109
  };
110
+ /** The edges of an `m:borderBox` that its properties hide. */
111
+ interface EquationBoxEdges {
112
+ readonly top: boolean;
113
+ readonly bottom: boolean;
114
+ readonly left: boolean;
115
+ readonly right: boolean;
116
+ }
117
+ /** The strikes an `m:borderBox` draws across its body. */
118
+ interface EquationBoxStrikes {
119
+ /** `m:strikeH`: a horizontal line through the centre. */
120
+ readonly horizontal: boolean;
121
+ /** `m:strikeV`: a vertical line through the centre. */
122
+ readonly vertical: boolean;
123
+ /** `m:strikeBLTR`: from the bottom-left corner to the top-right corner. */
124
+ readonly bottomLeftToTopRight: boolean;
125
+ /** `m:strikeTLBR`: from the top-left corner to the bottom-right corner. */
126
+ readonly topLeftToBottomRight: boolean;
127
+ }
128
+
129
+ /** Office Math Markup Language namespace. */
130
+ declare const OFFICE_MATH_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/math";
131
+ declare const DEFAULT_OMML_LIMITS: Readonly<{
132
+ maxDepth: 24;
133
+ maxNodes: 256;
134
+ maxTextLength: 512;
135
+ }>;
136
+ /** Shared work limits for untrusted OMML and linear-math input. */
137
+ interface OmmlLimits {
138
+ readonly maxDepth?: number;
139
+ readonly maxNodes?: number;
140
+ readonly maxTextLength?: number;
141
+ }
142
+
71
143
  interface OmmlEquationProjection {
72
144
  readonly sourceNodeId: OoxmlNodeId;
73
145
  readonly expression: EquationExpression;
@@ -76,7 +148,8 @@ interface OmmlEquationProjection {
76
148
  readonly visitedNodes: number;
77
149
  /**
78
150
  * The font size, in points, that every run of the equation shares through default run
79
- * properties (`w:sz`). Absent, the equation takes the size of the surrounding text.
151
+ * properties (`w:sz`). Individual run sizes remain on their text expressions. Without a
152
+ * shared size, structural spacing takes the size of the surrounding text.
80
153
  */
81
154
  readonly fontSizePt?: number;
82
155
  }
@@ -320,5 +393,5 @@ type DrawingSupport = 'native' | 'partial' | 'unrendered';
320
393
  */
321
394
  type DrawingGraphicKind = 'picture' | 'chart' | 'diagram' | 'shape' | 'group' | 'textbox' | 'canvas' | 'graphic';
322
395
 
323
- export { DEFAULT_OMML_LIMITS as e, OFFICE_MATH_NAMESPACE_URI as k, authorableHyperlinkTarget as n, ensureHyperlinkRelationship as o, equationExpressionToLinearMath as p, headlessViewOfStore as q, linearMathToOmml as r, openHeadlessDocument as s, parseLinearMath as t, projectOmmlEquation as u, relationshipTargetIn as v };
324
- export type { DrawingGraphicKind as D, EnsuredHyperlinkRelationship as E, HeadlessDocumentView as H, LinearMathOmmlResult as L, OmmlEquationProjection as O, DrawingSupport as a, DrawingSupportIssue as b, DocumentProperties as c, HeadlessDocumentRejection as d, EquationControlSource as f, EquationExpression as g, HeadlessThemeFonts as h, LinearMathParseResult as i, LinearMathRejection as j, OmmlLimits as l, OpenHeadlessDocumentResult as m };
396
+ export { DEFAULT_OMML_LIMITS as e, OFFICE_MATH_NAMESPACE_URI as m, authorableHyperlinkTarget as p, ensureHyperlinkRelationship as q, equationExpressionToLinearMath as r, headlessViewOfStore as s, linearMathToOmml as t, openHeadlessDocument as u, parseLinearMath as v, projectOmmlEquation as w, relationshipTargetIn as x };
397
+ export type { DrawingGraphicKind as D, EnsuredHyperlinkRelationship as E, HeadlessDocumentView as H, LinearMathOmmlResult as L, OmmlEquationProjection as O, DrawingSupport as a, DrawingSupportIssue as b, DocumentProperties as c, HeadlessDocumentRejection as d, EquationBoxEdges as f, EquationBoxStrikes as g, EquationControlSource as h, EquationExpression as i, HeadlessThemeFonts as j, LinearMathParseResult as k, LinearMathRejection as l, OmmlLimits as n, OpenHeadlessDocumentResult as o };
@@ -1,4 +1,4 @@
1
- import { a5 as OoxmlPackage } from './tree-op-types-Df4oY2u4.js';
1
+ import { a5 as OoxmlPackage } from './tree-op-types-DKvJSH8T.js';
2
2
 
3
3
  /** The longest name a bookmark is written with. */
4
4
  declare const MAX_AUTHORED_BOOKMARK_NAME_LENGTH = 40;