@docx-editor.dev/core 2.27.0 → 2.29.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 (124) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +76 -16
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +31 -12
  6. package/dist/binding.js +1 -1
  7. package/dist/{index-CkQVRJtJ.d.ts → chrome-print-CAs51cpq.d.ts} +248 -115
  8. package/dist/chunk-236O4YQW.js +2 -0
  9. package/dist/chunk-4HENIAFG.js +1 -0
  10. package/dist/chunk-6JPL6ZAS.cjs +5 -0
  11. package/dist/chunk-6ZQP4HQ7.js +3 -0
  12. package/dist/{chunk-2GK7YQB2.cjs → chunk-7WQ7AAHW.cjs} +1 -1
  13. package/dist/chunk-BCXH4BXB.js +5 -0
  14. package/dist/chunk-BY2ACZZ6.cjs +1 -0
  15. package/dist/chunk-CAJEXXVG.cjs +4 -0
  16. package/dist/chunk-CPWLFPWC.js +30 -0
  17. package/dist/chunk-D7ZMDMPX.cjs +3 -0
  18. package/dist/chunk-DOHF6FA7.cjs +30 -0
  19. package/dist/chunk-DVX32P2P.js +27 -0
  20. package/dist/chunk-E4LOMDNL.js +1 -0
  21. package/dist/chunk-EKLM7NWB.cjs +7 -0
  22. package/dist/chunk-G3K63G7P.cjs +27 -0
  23. package/dist/chunk-G4HOFIKJ.js +1 -0
  24. package/dist/chunk-JLVBDYVQ.cjs +2 -0
  25. package/dist/chunk-LQX36Z5P.js +7 -0
  26. package/dist/chunk-LSZ6KPKK.js +1 -0
  27. package/dist/chunk-MM5QBMTE.cjs +1 -0
  28. package/dist/chunk-OMCG63ZF.js +1 -0
  29. package/dist/chunk-OSFOJTHU.cjs +18 -0
  30. package/dist/chunk-RCLZXP3B.js +2 -0
  31. package/dist/chunk-T6K2QYNZ.cjs +2 -0
  32. package/dist/chunk-TRGAVV2Y.js +4 -0
  33. package/dist/chunk-U4JZVSOE.js +2 -0
  34. package/dist/chunk-UHHYFIDT.cjs +1 -0
  35. package/dist/chunk-V3N4SOAK.cjs +1 -0
  36. package/dist/chunk-W35WTWAO.cjs +1 -0
  37. package/dist/chunk-YQ5G6LC7.js +18 -0
  38. package/dist/collaboration/replication.cjs +1 -1
  39. package/dist/collaboration/replication.d.ts +42 -6
  40. package/dist/collaboration/replication.js +1 -1
  41. package/dist/collaboration.cjs +1 -1
  42. package/dist/collaboration.d.ts +99 -7
  43. package/dist/collaboration.js +1 -1
  44. package/dist/contracts/document.d.ts +18 -3
  45. package/dist/contracts/editor.d.ts +19 -10
  46. package/dist/contracts/interaction.d.ts +31 -2
  47. package/dist/contracts/modules.cjs +1 -1
  48. package/dist/contracts/modules.d.ts +56 -8
  49. package/dist/contracts/modules.js +1 -1
  50. package/dist/contracts/types.d.ts +11 -2
  51. package/dist/{custom-node-writes-Vzpq9I8_.d.ts → custom-node-writes-Bn6uciLb.d.ts} +2 -2
  52. package/dist/diagnostic-context-B8M79cfK.d.ts +30 -0
  53. package/dist/diagnostic-hints-BeVjfNOv.d.ts +113 -0
  54. package/dist/{document-protection-9zpIHWTE.d.ts → document-protection-CUb55pl_.d.ts} +2 -2
  55. package/dist/{editor-B3OBYNrF.d.ts → editor-CZQZmTIU.d.ts} +770 -141
  56. package/dist/{editor-scope-OHPwVQ5l.d.ts → editor-scope-7o9xweiJ.d.ts} +1 -1
  57. package/dist/editor.cjs +1 -1
  58. package/dist/editor.css +5 -5
  59. package/dist/editor.d.ts +439 -33
  60. package/dist/editor.js +1 -1
  61. package/dist/export.cjs +2 -2
  62. package/dist/export.d.ts +23 -14
  63. package/dist/export.js +2 -2
  64. package/dist/failure-NS2lsya4.d.ts +115 -0
  65. package/dist/{font-resolver-DN0xNOf_.d.ts → font-resolver-lSBLirLR.d.ts} +3 -3
  66. package/dist/{headless-document-view-ICYqNkQ1.d.ts → headless-document-view-pp3q7wIh.d.ts} +2 -2
  67. package/dist/{image-resources-BDFxcu7W.d.ts → image-resources-tXLQShoC.d.ts} +10 -10
  68. package/dist/index.cjs +1 -1
  69. package/dist/index.d.ts +92 -20
  70. package/dist/index.js +1 -1
  71. package/dist/{layout-shaping-BvZD_VKP.d.ts → layout-shaping-BD-dF_rn.d.ts} +1 -1
  72. package/dist/layout.cjs +1 -1
  73. package/dist/layout.d.ts +168 -79
  74. package/dist/layout.js +1 -1
  75. package/dist/{note-properties-CkAk7g-n.d.ts → note-properties-qQUjO1GQ.d.ts} +3 -3
  76. package/dist/{omml-equation-DuczgG5o.d.ts → omml-equation-BUbU0utM.d.ts} +1 -1
  77. package/dist/output.cjs +1 -1
  78. package/dist/output.d.ts +18 -9
  79. package/dist/output.js +1 -1
  80. package/dist/{protocol-aKYr8r3u.d.ts → protocol-DYzzz2ej.d.ts} +44 -4
  81. package/dist/{review-paragraph-order-Ddj5d6rp.d.ts → review-paragraph-order-CN_0l2Cb.d.ts} +5 -2
  82. package/dist/{semantic-cell-selection-DoqYCz_F.d.ts → semantic-cell-selection-eYag3P47.d.ts} +8 -213
  83. package/dist/{semantic-interaction-G0bjmmmk.d.ts → semantic-interaction-kR_QB845.d.ts} +25 -34
  84. package/dist/{semantic-paint-CsMzF8-O.d.ts → semantic-paint-ZayFF3tD.d.ts} +17 -5
  85. package/dist/{semantic-record-queries-1du6lQqS.d.ts → semantic-record-queries-Bsgth6lv.d.ts} +1 -1
  86. package/dist/{semantic-records-B9OolWGN.d.ts → semantic-records-DQmumPgL.d.ts} +1367 -884
  87. package/dist/store.cjs +1 -1
  88. package/dist/store.d.ts +1611 -1586
  89. package/dist/store.js +1 -1
  90. package/dist/{tree-package-fragment-DYZIk1rY.d.ts → tree-package-store-CovjNARF.d.ts} +157 -137
  91. package/dist/{tree-session-contract-DQVJOOkv.d.ts → tree-session-contract-CZVAGl51.d.ts} +8 -6
  92. package/dist/{types-barrel-BFKR8Pzp.d.ts → types-barrel-DuC5QBNC.d.ts} +352 -231
  93. package/package.json +3 -3
  94. package/dist/chunk-4KZ6L5YF.cjs +0 -15
  95. package/dist/chunk-55AT3MOU.cjs +0 -25
  96. package/dist/chunk-6ZQMII6V.js +0 -1
  97. package/dist/chunk-7IGCWG4H.js +0 -2
  98. package/dist/chunk-7MYITTAH.js +0 -5
  99. package/dist/chunk-AVKVRU7Z.cjs +0 -5
  100. package/dist/chunk-CWRBFNK5.cjs +0 -5
  101. package/dist/chunk-DGPA3TST.cjs +0 -27
  102. package/dist/chunk-DNXVNQEO.js +0 -1
  103. package/dist/chunk-FQN4KSFL.cjs +0 -7
  104. package/dist/chunk-GVUOWHTO.cjs +0 -1
  105. package/dist/chunk-GWQJ5774.js +0 -5
  106. package/dist/chunk-HAQ72KD7.js +0 -1
  107. package/dist/chunk-HO5XFO32.cjs +0 -3
  108. package/dist/chunk-IGR23DV2.js +0 -1
  109. package/dist/chunk-JSIX2EOH.js +0 -3
  110. package/dist/chunk-K246T47S.cjs +0 -1
  111. package/dist/chunk-KAXOGCGA.js +0 -1
  112. package/dist/chunk-LZLTN5A3.cjs +0 -1
  113. package/dist/chunk-NBCVVZOM.cjs +0 -1
  114. package/dist/chunk-O5INAWZQ.js +0 -1
  115. package/dist/chunk-OHAXVTWG.cjs +0 -1
  116. package/dist/chunk-S74GRBNE.js +0 -7
  117. package/dist/chunk-UBLUVNZR.js +0 -27
  118. package/dist/chunk-UMRSBLO7.js +0 -15
  119. package/dist/chunk-VIPMGGUT.js +0 -25
  120. package/dist/chunk-WG4KMSX2.cjs +0 -2
  121. package/dist/chunk-WRLKVNNR.cjs +0 -1
  122. package/dist/chunk-ZU7IVN6G.js +0 -2
  123. package/dist/failure-BIPVQbRm.d.ts +0 -65
  124. package/dist/revision-projection-CSNFudZY.d.ts +0 -242
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkHO5XFO32_cjs=require('./chunk-HO5XFO32.cjs'),chunk55AT3MOU_cjs=require('./chunk-55AT3MOU.cjs');function Y(t,e,o,n,i,r){let a=chunk55AT3MOU_cjs.Va(e,o);if(a.background==="byAuthor"&&!r?(t.style.setProperty("--doc-revision-background",`color-mix(in srgb, ${n} 15%, var(--doc-revision-color-white))`),t.style.backgroundColor="var(--doc-revision-background)"):a.background!=="none"&&(t.style.backgroundColor=a.background==="byAuthor"?r:chunk55AT3MOU_cjs.Ua(a.background,n)),a.mark==="none")return;let s=chunk55AT3MOU_cjs.Ua(a.color,i??n);a.color!=="auto"&&(t.style.color=s),a.mark==="bold"&&(t.style.fontWeight="bold"),a.mark==="italic"&&(t.style.fontStyle="italic");let l=a.mark==="underline"||a.mark==="doubleUnderline"?"underline":a.mark==="strikethrough"||a.mark==="doubleStrikethrough"?"line-through":void 0;l&&(t.style.textDecorationLine=l,t.style.textDecorationStyle=a.mark.startsWith("double")?"double":"solid",t.style.textDecorationColor=s);}var M=8,rt={color:"painted",background:"painted",activeBackground:"painted",spanClassName:"painted",avatarUrl:"card-only"},it=Object.keys(rt),So=it.filter(t=>rt[t]==="painted"),Ro=new Set(["http","https","data","blob"]),wo=/^([a-zA-Z][a-zA-Z0-9+.-]*):/;function ko(t){let e=t.replace(/[\u0000-\u0020\u007f]/g,"");if(e.length===0)return;let o=wo.exec(e);if(o)return !Ro.has(o[1].toLowerCase())||/^data:/i.test(e)&&!/^data:image\/(?!svg)/i.test(e)?void 0:e;let n=i=>e[i]==="/"||e[i]==="\\";return n(0)&&n(1)?void 0:e}function Po(t){if(typeof t=="string")return t.length>0?{color:t}:null;if(t===null||typeof t!="object")return null;let e={},o=Object.prototype.hasOwnProperty;for(let n of it){if(!o.call(t,n))continue;let i=t[n];if(!(typeof i!="string"||i.length===0)){if(n==="avatarUrl"){let r=ko(i);r!==void 0&&(e.avatarUrl=r);continue}e[n]=i;}}return Object.keys(e).length>0?e:null}function $(t){return `var(--doc-review-author-${t%M})`}function at(t){let e=new Map;if(t===void 0||t==="kind"||t==="author")return e;for(let[o,n]of Object.entries(t.authors)){let i=Po(n);i&&e.set(o,i);}return e}function Jn(t,e){let o=at(e);return [...t].map(([n,i])=>{let r=o.get(n);return {author:n,slot:i,color:r?.color??$(i),...r?{style:r}:{}}})}var Ao=128;function re(t,e,o=Ao){let n=e.length<o?e.length:o,i=t;for(let r=0;r<n;r+=1)i=Math.imul(i^e.charCodeAt(r),16777619);return Math.imul(i^e.length,16777619)}function Lo(t,e,o){let n=re(2166136261,o);for(let i of t.keys())n=re(n,i);for(let[i,r]of e){n=re(n,i);for(let a of So)n=re(n,r[a]??"",1/0);}return `${t.size}.${e.size}.${(n>>>0).toString(36)}`}function fe(t){return t===null?"kind":t.key}var he=new WeakMap;function ge(t,e,o){if(t==="kind")return null;let n=he.get(e);if(n&&n.option===t&&n.authorSlots===o)return n.context;let i=at(t),r=t===void 0||t==="author"?"author":t.others??"author";if(i.size===0&&r==="kind")return he.set(e,{option:t,authorSlots:o,context:null}),null;let a=o??Eo(e),s=new Map;for(let[d,c]of i){if(!c.spanClassName)continue;let u=c.spanClassName.split(/\s+/).filter(p=>p.length>0);u.length>0&&s.set(d,u);}let l={authorSlots:a,styles:i,classTokens:s,others:r,key:Lo(a,i,r)};return he.set(e,{option:t,authorSlots:o,context:l}),l}var ot=new WeakMap;function st(t){let e=ot.get(t);if(e)return e;let o=[],n=new Set,i=a=>{a===""||n.has(a)||(n.add(a),o.push(a));};for(let a of chunk55AT3MOU_cjs.wa(t)){for(let l of a.props)l.localName==="pPrChange"&&i(l.attributes?.author??"");for(let l of a.lines){if(l.changeSites)for(let d of l.changeSites)i(d.author);for(let d of l.spans){let c=d.revisions;if(c!==void 0)for(let u=0;u<c.length;u+=1)i(c[u].author);for(let u of d.props){if(u.localName!=="rPrChange"&&u.localName!=="pPrChange")continue;let p=u.attributes?.author;i(p??"");break}}}for(let l of a.lines){let d=l.drawings;if(d!==void 0)for(let c=0;c<d.length;c+=1){let u=d[c].revisions;if(u!==void 0)for(let h=0;h<u.length;h+=1)i(u[h].author);let p=d[c].accessibility.hidden?void 0:d[c].textboxStory;if(p)for(let h of st(p.fragments))i(h);}}let s=a.markRevisions;if(s)for(let l=0;l<s.length;l+=1)i(s[l].author);}let r=a=>{for(let s of a)if(s.kind==="table")for(let l of s.rows)for(let d of l.cells)d.revisionShadingAuthor&&i(d.revisionShadingAuthor),r(d.blocks);};return r(t),ot.set(t,o),o}var nt=new WeakMap;function Eo(t){let e=nt.get(t);if(e)return e;let o=new Map,n=i=>{for(let r of st(i))o.has(r)||o.set(r,o.size);};for(let i of t.pages){n(i.fragments),i.header&&n(i.header.fragments),i.footer&&n(i.footer.fragments);for(let r of [i.footnotes,i.endnotes])if(r){r.separator&&n(r.separator.fragments),r.continuationNotice&&n(r.continuationNotice.fragments);for(let a of r.notes)n(a.fragments);}for(let r of [i.anchoredDrawings,i.header?.anchoredDrawings,i.footer?.anchoredDrawings])if(r)for(let a of r){if(a.accessibility.hidden)continue;let s=a.revisions;if(s!==void 0)for(let l=0;l<s.length;l+=1){let d=s[l].author;d!==""&&!o.has(d)&&o.set(d,o.size);}a.textboxStory&&n(a.textboxStory.fragments);}}return nt.set(t,o),o}function Mo(t,e){let o=null;for(let n of e)n===""||t.has(n)||(o===null&&(o=new Map(t)),o.has(n)||o.set(n,o.size));return o??t}function Qn(){let t=new Map,e=0;return {resolve(o,n){let i=Mo(o,n);for(let r of i.keys())t.has(r)||(t.set(r,e),e+=1);return new Map([...i.keys()].map(r=>[r,t.get(r)]).sort((r,a)=>r[1]-a[1]))}}}function K(t,e,o){if(t===void 0||t.length===0)return null;let n=t[t.length-1],i=t.some(s=>s.kind==="delete"||s.kind==="moveFrom"),r=n.kind,a=r==="delete"||r==="moveFrom"?"line-through":r==="insert"||r==="moveTo"?"underline":null;return {attribution:n,line:i&&a==="underline"?"line-through":a,decorationStyle:r==="moveFrom"||r==="moveTo"?"double":"solid",color:i?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)",authorColor:o?.get(n.author)?.color??$(e?.get(n.author)??0),deleted:i}}function me(t,e,o){let n=chunk55AT3MOU_cjs.fb(e.props)??o.paragraphFormatRevision,i=o.revisionStyles,r=K(e.revisions,i?.authorSlots,i?.styles);if(!(!r&&!n)){if(r){let{attribution:a}=r;t.classList.add("docx-revision",`docx-revision-${a.kind}`),t.dataset.revisionKind=a.kind,t.dataset.revisionId=a.id,a.author!==""&&(t.dataset.reviewAuthor=a.author),a.date!==void 0&&(t.dataset.revisionDate=a.date);let s=i?.styles.get(a.author);if(i){t.dataset.reviewAuthorSlot=String((i.authorSlots.get(a.author)??0)%M);let c=i.classTokens.get(a.author);if(c)for(let u=0;u<c.length;u+=1)t.classList.add(c[u]);}let d=i!==void 0&&(s?.color!==void 0||i.others==="author")?r.authorColor:r.color;if(o.revisionMarkup){s?.background&&(t.style.backgroundColor=s.background),Y(t,o.revisionMarkup,r.deleted?e.revisions?.find(c=>c.kind==="delete"||c.kind==="moveFrom")?.kind??a.kind:a.kind,r.authorColor,o.revisionKindColors||i?.others==="kind"||s?.color?d:void 0,s?.background);return}t.style.color=d,t.style.backgroundColor=s?.background??(r.deleted?"var(--doc-revision-deletion-wash)":"var(--doc-revision-insertion-wash)"),r.line&&(t.style.textDecorationLine=r.line,a.kind==="insert"&&r.line==="underline"?(t.style.textDecorationStyle="var(--doc-revision-insertion-decoration-style)",t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"):t.style.textDecorationStyle=r.decorationStyle,t.style.textDecorationColor=d);return}if(t.classList.add("docx-revision",...o.revisionMarkup?[]:["docx-revision-format"]),t.dataset.revisionKind="format",t.dataset.formattingKind=chunk55AT3MOU_cjs.fb(e.props)?"rPrChange":"pPrChange",t.dataset.revisionId=n.id,n.author!==""&&(t.dataset.reviewAuthor=n.author),n.date!==void 0&&(t.dataset.revisionDate=n.date),i){let a=i.styles.get(n.author);t.dataset.reviewAuthorSlot=String((i.authorSlots.get(n.author)??0)%M);let s=i.classTokens.get(n.author);if(s)for(let l=0;l<s.length;l+=1)t.classList.add(s[l]);!o.revisionMarkup&&a?.color!==void 0&&(t.style.color=a.color),a?.background!==void 0&&(t.style.backgroundColor=a.background);}o.revisionMarkup&&Y(t,o.revisionMarkup,"format",i?.styles.get(n.author)?.color??$(i?.authorSlots.get(n.author)??0),void 0,i?.styles.get(n.author)?.background);}}function lt(t,e,o,n,i){if(e.spans.length!==0)return;i({...chunk55AT3MOU_cjs.Z,fontFamily:n.fontFamily,fontSizePt:n.fontSizePt,bold:n.bold,italic:n.italic});let r=t.ownerDocument.createElement("br");r.style.lineHeight=`${e.box.height*o}px`,t.append(r);}function dt(t,e,o){let n=e.marker?.picture,i=o.urlRegistry;if(!n||n.resource.kind!=="ready"||!i)return null;let r=o.scale,a=i.urlForReady(n.resource.validatedHandle,n.resource.mime);if(a===null)return null;let s=n.box,l=t.createElement("span");l.className="docx-list-marker",l.dataset.docxMarker="",l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.x-e.box.x)*r}px`,l.style.top=`${(s.y-e.box.y)*r}px`,l.style.width=`${s.width*r}px`,l.style.height=`${s.height*r}px`,l.style.display="block",l.style.overflow="hidden";let d=t.createElement("img");return d.className="docx-list-marker-image",d.setAttribute("src",a),d.setAttribute("alt",""),d.setAttribute("draggable","false"),d.style.display="block",d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,d.style.maxWidth="none",d.style.maxHeight="none",l.append(d),l}function ct(t,e,o,n){let i=t.createElement("span");i.dataset.docxNoteRule="single",i.setAttribute("contenteditable","false"),i.setAttribute("aria-hidden","true"),i.style.display="inline-block",i.style.position="relative",i.style.verticalAlign="top",i.style.width=`${e.box.width*n}px`,i.style.height=`${Math.min(e.box.height+(o.leading??0),o.box.height)*n}px`;let r=chunk55AT3MOU_cjs.xe(e,o),a=t.createElement("span");return a.style.position="absolute",a.style.left="0",a.style.top=`${(r.y-o.box.y)*n}px`,a.style.width=`${r.width*n}px`,a.style.height=`${r.height*n}px`,a.style.backgroundColor=e.style.color?`#${e.style.color}`:"#000000",i.append(a),i}function ie(t){return t==="double"||t==="triple"||t==="doubleWave"||t.startsWith("thinThick")||t.startsWith("thickThin")}function _(t,e,o,n,i,r){switch(e){case "dashed":case "dashSmallGap":case "dotDash":case "dotDotDash":case "dashDotStroked":{let a=Math.max(4,4*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"bottom":"right"}, #${o} 60%, transparent 60%)`,t.style.backgroundSize=n?`100% ${a}px`:`${a}px 100%`;return}case "dotted":{let a=Math.max(3,3*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"bottom":"right"}, #${o} 35%, transparent 35%)`,t.style.backgroundSize=n?`100% ${a}px`:`${a}px 100%`;return}case "double":case "doubleWave":case "triple":case "thinThickSmallGap":case "thickThinSmallGap":case "thinThickThinSmallGap":case "thinThickMediumGap":case "thickThinMediumGap":case "thinThickThinMediumGap":case "thinThickLargeGap":case "thickThinLargeGap":case "thinThickThinLargeGap":{let a=i/3;t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"right":"bottom"}, #${o} 0px, #${o} ${a}px, transparent ${a}px, transparent ${a*2}px, #${o} ${a*2}px)`;return}case "threeDEmboss":case "ridge":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px ridge #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "threeDEngrave":case "groove":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px groove #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "inset":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px inset #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "outset":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px outset #${o}`,n?t.style.width="0px":t.style.height="0px";return}default:return}}var $o=/^[0-9A-Fa-f]{6}$/;function ut(t,e,o,n){for(let{box:i,edge:r,side:a}of chunk55AT3MOU_cjs.ac(o)){let s=r.color&&$o.test(r.color)?r.color:"000000",l=t.createElement("span");l.className=`docx-run-border docx-run-border-${a}`,l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),Object.assign(l.style,{position:"absolute",pointerEvents:"none",left:`${(i.x-o.contentX)*n}px`,top:`${(i.y-o.box.y)*n}px`,width:`${i.width*n}px`,height:`${i.height*n}px`,backgroundColor:`#${s}`});let d=a==="left"||a==="right";_(l,r.val,s,d,(d?i.width:i.height)*n,n),e.append(l);}}function yt(t,e){let o=e.fieldAtom?.formControl;if(o?.kind!=="dropdown"||o.entries.length===0)return;let n=t.ownerDocument.createElement("select");n.dataset.docxFormDropdown="",n.dataset.docxMarker="",n.setAttribute("aria-label",o.accessibleName??e.text);for(let[i,r]of o.entries.entries()){let a=t.ownerDocument.createElement("option");a.value=String(i),a.textContent=r,n.append(a);}n.selectedIndex=o.selectedIndex,Object.assign(n.style,{position:"absolute",inset:"0",width:"100%",height:"100%",opacity:"0",cursor:"pointer",font:"inherit",padding:"0",border:"0"}),t.style.position="relative",t.append(n);}function pt(t,e,o){let n=e.fieldAtom?.formControl;if(n?.kind!=="checkbox")return;t.dataset.docxFormCheckbox="",t.dataset.checked=String(n.checked),t.setAttribute("role","checkbox"),t.tabIndex=0,t.setAttribute("aria-checked",String(n.checked)),n.accessibleName&&t.setAttribute("aria-label",n.accessibleName),t.style.width=`${e.box.width*o}px`;let i=t.ownerDocument.createElement("span");i.className="docx-form-checkbox-hit",i.dataset.docxMarker="",i.setAttribute("aria-hidden","true"),t.append(i);}function Co(t,e=false){let o=t.spans.find(r=>r.style.shaping)?.style.shaping?.baseLevel,n=o===void 0?e:o===1,i=chunk55AT3MOU_cjs.$b(t.spans,t.drawings??[]);return i?{x:n?i.left:i.right,rtl:n}:{x:t.contentX,rtl:n}}function xe(t,e,o,n,i,r){let a=Co(o,n),s=e.ownerDocument.createElement("span");s.className="docx-terminator-seat",s.dataset.docxMarker="",s.setAttribute("aria-hidden","true"),s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(a.x-o.contentX)*r}px`,s.style.bottom=`${Math.max(0,o.box.height-o.baseline)*r}px`,s.style.width="0",s.style.fontSize="0",s.style.lineHeight="0",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none",a.rtl&&(s.style.direction="rtl"),t.style.display="inline-block",t.style.verticalAlign="baseline",t.style.fontSize=`${i*r}px`,s.append(t),e.append(s);}function ht(t,e,o,n,i,r=false){let a=t.createElement("span"),s=e.spans[e.spans.length-1];a.className="docx-line-break-mark",a.dataset.docxMarker="",a.setAttribute("aria-hidden","true"),a.contentEditable="false",a.textContent="\u21B5",a.style.pointerEvents="none",a.style.userSelect="none",a.style.color="var(--doc-revision-format)";let l=K(s?.revisions,i?.authorSlots,i?.styles);if(l){let{attribution:c}=l,u=i?.styles.get(c.author),p=i&&(u?.color!==void 0||i.others==="author");if(a.style.color=p?l.authorColor:l.color,a.dataset.revisionKind=c.kind,a.dataset.revisionId=c.id,a.dataset.reviewAuthor=c.author,i){a.dataset.reviewAuthorSlot=String((i.authorSlots.get(c.author)??0)%M);for(let h of i.classTokens.get(c.author)??[])a.classList.add(h);}l.line&&(a.style.textDecorationLine=l.line,a.style.textDecorationStyle=l.decorationStyle,a.style.textDecorationColor=a.style.color);}let d=s?.style.fontSizePt??chunk55AT3MOU_cjs.Z.fontSizePt;xe(a,o,e,r,d,n);}function ft(t,e,o,n,i=false){let r=chunk55AT3MOU_cjs.cb(e);if(!r){let c=t.createElement("span");return c.className="docx-paragraph-mark",c.setAttribute("aria-hidden","true"),c.contentEditable="false",c.textContent="\xB6",c.style.pointerEvents="none",c.style.color="var(--doc-revision-format)",c}let a=t.createElement("span");a.className=`docx-paragraph-mark docx-revision-pmark docx-revision-pmark-${r.kind}`,a.setAttribute("aria-hidden","true"),a.contentEditable="false",a.dataset.revisionKind=r.kind,a.dataset.revisionId=r.id,r.author!==""&&(a.dataset.reviewAuthor=r.author),a.dataset.revisionIds=e.map(c=>c.id).join(" "),a.dataset.revisionKinds=e.map(c=>c.kind).join(" "),a.textContent="\xB6",a.style.pointerEvents="none";let s=chunk55AT3MOU_cjs.db(r),l=o?.styles.get(r.author),d=o?(o.authorSlots.get(r.author)??0)%M:0;if(o){a.dataset.reviewAuthorSlot=String(d);let c=o.classTokens.get(r.author);if(c)for(let u=0;u<c.length;u+=1)a.classList.add(c[u]);}if(a.style.color=l?.color??(o?.others==="author"?$(d):s?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)"),n){let c=a.style.color;a.style.color="";let u=chunk55AT3MOU_cjs.Va(n,r.kind).mark;u==="hidden"&&(a.style.visibility="hidden"),u==="caret"&&(a.textContent="^"),u==="pound"&&(a.textContent="#"),Y(a,n,r.kind,l?.color??$(d),i||o?.others==="kind"||l?.color?c:void 0,l?.background);}else s&&(a.style.textDecorationLine="line-through");return a}function gt(t){t.style.fontFamily=chunkHO5XFO32_cjs.O,t.style.direction="ltr";}function be(t,e,o=false){let n=o?null:chunk55AT3MOU_cjs.fb(e.props.filter(r=>r.localName==="pPrChange")),i=n??e.markFormatRevision;i&&(To(t,i,n?"pPrChange":"rPrChange"),t.dataset.paragraphId=e.paragraphId,t.dataset.reviewStart=String(e.range.start),t.dataset.reviewEnd=String(e.range.end));}function To(t,e,o){t.dataset.revisionKind="format",t.dataset.revisionId=e.id,t.dataset.formattingKind=o,e.author&&(t.dataset.reviewAuthor=e.author),e.date!==void 0&&(t.dataset.revisionDate=e.date);}function mt(t,e,o,n,i,r){for(let a of [o.footnotes,o.endnotes])a&&e.append(Do(t,o,a,n,i,r));}function Do(t,e,o,n,i,r){let a=t.createElement("div");a.className="docx-notes",a.dataset.docxNotes=o.kind,a.dataset.docxNotesPlacement=o.placement,a.style.position="absolute",a.style.left=`${(o.box.x-e.box.x)*n.scale}px`,a.style.top=`${(o.box.y-e.box.y)*n.scale}px`,a.style.width=`${o.box.width*n.scale}px`,a.style.height=`${o.box.height*n.scale}px`;for(let s of [o.separator,o.continuationNotice]){if(!s)continue;let l=t.createElement("div");l.className="docx-note-separator",l.dataset.docxNoteSeparator=s.kind,l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.box.x-o.box.x)*n.scale}px`,l.style.top=`${(s.box.y-o.box.y)*n.scale}px`,l.style.width=`${s.box.width*n.scale}px`,l.style.height=`${s.box.height*n.scale}px`;let d=s.ruleStyle;if(d||s.synthetic)Ho(l,t,d??"single",n.scale,s.box.height,s.ruleColor);else {let c={...n,tabLeaderOriginXPt:s.box.x-e.box.x};for(let u of s.fragments)l.append(u.kind==="table"?r(t,u,c):i(t,u,c));}a.append(l);}for(let s of o.notes){let l={...n,tabLeaderOriginXPt:s.box.x-e.box.x},d=t.createElement("div");d.className="docx-note",d.dataset.docxNote=s.noteKind,d.dataset.docxNoteId=String(s.noteId),d.dataset.docxNoteScope=s.scopeId,s.mark!==null&&(d.dataset.docxNoteMark=s.mark),s.continuation&&(d.dataset.docxNoteContinuation=""),d.setAttribute("role","doc-footnote"),d.style.position="absolute",d.style.left=`${(s.box.x-o.box.x)*n.scale}px`,d.style.top=`${(s.box.y-o.box.y)*n.scale}px`,d.style.width=`${s.box.width*n.scale}px`,d.style.height=`${s.box.height*n.scale}px`;for(let c of s.fragments)d.append(c.kind==="table"?r(t,c,l):i(t,c,l));a.append(d);}return a}function Ho(t,e,o,n,i,r){t.dataset.docxNoteRule=o;let a=r&&/^[a-f\d]{6}$/i.test(r)?`#${r}`:"#000000";t.style.color=a;let s=Math.max(1,n*.75);if(o==="single"){t.style.backgroundColor=a,t.style.height=`${i*n}px`;return}t.style.opacity="0.85";let l=Math.max(1,n*1.25);for(let d of [0,s+l]){let c=e.createElement("div");c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.left="0",c.style.right="0",c.style.top=`${d}px`,c.style.height="0",c.style.borderTop=`${s}px solid currentColor`,t.append(c);}}var Fo=new Set(["dropdown","comboBox","date","checkbox","picture","buildingBlockGallery"]);function xt(t,e,o,n){let i=n.contentControlChrome,r=i?.suppressedIds,a=(o.contentControls??[]).filter(p=>r?.has(p.id)!==true),s=[...a,...(i?.additionalBoundaries??[]).filter(p=>r?.has(p.id)!==true&&!a.some(h=>h.id===p.id))];if(s.length===0)return;let l=i?.showAll===true,d=i?.activeIds,c=i?.hoverIds,u=i?.tocControlIds;for(let p of s){let h=u?.has(p.id)===true,y=!h&&d?.has(p.id)===true,f=c?.has(p.id)===true;e.append(Io(t,o,p,n.scale,y,f,l||y||h&&f,i?.checkedIds?.has(p.id),h,i?.readOnly===true));}}function Bo(t,e,o,n){let i=t.contentBox.x-t.box.x,r=t.contentBox.y-t.box.y;if(o==="checkbox"){let p=Math.max(1,Math.min(e.height,16))*n,h=e.width>0?(i+e.x+e.width/2)*n-p/2:(i+e.x)*n,y=(r+e.y)*n+Math.max(0,(e.height*n-p)/2);return {left:h,top:y,size:p}}let a=16*n,s=(i+e.x+e.width)*n,l=t.box.width*n,d=s+2*n,c=d+a<=l?d:Math.max(0,s-a),u=(r+e.y)*n+Math.max(0,(e.height*n-a)/2);return {left:c,top:u,size:a}}function Io(t,e,o,n,i,r,a,s,l,d){let c=t.createElement("div");c.className="docx-content-control-chrome",c.dataset.docxContentControl=o.id,c.dataset.docxMarker="",c.dataset.controlType=o.controlType,c.dataset.lock=o.effectiveLock,o.bound&&(c.dataset.bound=""),o.placeholder&&(c.dataset.placeholder=""),l&&(c.dataset.docxToc=""),d&&(c.dataset.readOnly=""),i&&(c.dataset.active=""),r&&(c.dataset.hover=""),a&&(c.dataset.boundaryVisible=""),c.setAttribute("contenteditable","false"),c.setAttribute("role","group"),o.alias&&(c.dataset.alias=o.alias),o.tag&&(c.dataset.tag=o.tag),o.alias&&c.setAttribute("aria-label",o.alias),c.style.position="absolute",c.style.inset="0",c.style.pointerEvents="none",c.style.zIndex="2";let u=e.contentBox.x-e.box.x,p=e.contentBox.y-e.box.y;for(let y of o.fragments){if(y.pageIndex!==e.index)continue;let f=t.createElement("div");f.className="docx-content-control-boundary",f.dataset.docxMarker="",f.setAttribute("contenteditable","false"),f.setAttribute("aria-hidden","true"),f.style.position="absolute",f.style.left=`${(u+y.box.x)*n}px`,f.style.top=`${(p+y.box.y)*n}px`,f.style.width=`${Math.max(y.box.width,1)*n}px`,f.style.height=`${Math.max(y.box.height,1)*n}px`,f.style.pointerEvents="none",c.append(f);}let h=o.fragments.find(y=>y.pageIndex===e.index);if(h&&o.alias){let y=t.createElement("div");y.className="docx-content-control-label",y.dataset.docxMarker="",y.setAttribute("contenteditable","false"),y.setAttribute("aria-hidden","true"),y.textContent=o.alias,y.style.position="absolute",y.style.left=`${(u+h.box.x)*n}px`,y.style.top=`${Math.max(0,(p+h.box.y)*n-16)}px`,y.style.pointerEvents="none",c.append(y);}if(h&&Fo.has(o.controlType)){let y=t.createElement("button");y.type="button",y.className="docx-content-control-widget",y.dataset.docxMarker="",y.dataset.docxCcWidget=o.controlType,y.dataset.docxCcId=o.id,y.setAttribute("contenteditable","false"),y.setAttribute("tabindex","-1"),o.controlType==="checkbox"?y.setAttribute("role","checkbox"):o.controlType==="dropdown"||o.controlType==="comboBox"||o.controlType==="buildingBlockGallery"?y.setAttribute("role","listbox"):(o.controlType==="date"||o.controlType==="picture")&&y.setAttribute("role","button"),o.alias&&(y.dataset.name=o.alias),o.alias&&y.setAttribute("aria-label",o.alias),o.controlType==="checkbox"&&(y.setAttribute("data-checked",s?"true":"false"),y.setAttribute("aria-checked",s?"true":"false"));let f=o.effectiveLock==="contentLocked"||o.effectiveLock==="sdtContentLocked";(d||f||o.bound)&&(y.disabled=true,y.dataset.disabledReason=d?"readOnly":o.bound?"bound":"locked",y.setAttribute("aria-disabled","true"));let g=Bo(e,h.box,o.controlType,n);y.style.position="absolute",y.style.left=`${g.left}px`,y.style.top=`${g.top}px`,y.style.width=`${g.size}px`,y.style.height=`${g.size}px`,y.style.fontSize=`${g.size}px`,y.style.pointerEvents="auto",y.style.padding="0",y.style.margin="0",y.style.cursor=y.disabled?"not-allowed":"pointer",c.append(y);}return c}var vt="docx-change-bars",ae="docx-change-bar",No=.5;function St(t,e){for(let o of e)switch(t.author??=o.author,o.kind){case "insert":case "moveTo":t.insertion=true;break;case "delete":case "moveFrom":t.deletion=true;break;case "format":t.format=true;break}}function Rt(t,e,o){let n=t.lines,i=n.length-1,r=[];for(let a=0;a<=i;a+=1){let s=n[a];if(r.length=0,e.mode==="simple-markup"){s.changeSites&&r.push(...s.changeSites),a===i&&t.markChangeSites&&r.push(...t.markChangeSites),r.length>0&&bt(t,n,a,e,r,o);continue}s.changeSites&&r.push(...s.changeSites);for(let l of s.spans){l.revisions&&r.push(...l.revisions);let d=chunk55AT3MOU_cjs.fb(l.props);d&&r.push(d);}for(let l of s.drawings??[])l.revisions&&r.push(...l.revisions);if(s.anchorRevisions&&r.push(...s.anchorRevisions),a===i){t.markRevisions&&r.push(...t.markRevisions),t.markFormatRevision&&r.push(t.markFormatRevision);let l=chunk55AT3MOU_cjs.fb(t.props);l&&r.push(l);}r.length!==0&&bt(t,n,a,e,r,o);}}function bt(t,e,o,n,i,r){let a=e[o],s=e.length-1,l=(o===0?t.box.y:a.box.y)+n.dy,d=Math.min((o===s?t.box.y+t.box.height:e[o+1].box.y)+n.dy,n.limit);if(d<=l)return;let c={top:l,bottom:d,story:n.story,insertion:false,deletion:false,format:false};St(c,i),r.push(c);}function Oo(t,e,o){for(let n of t.rows){let i=e.mode==="simple-markup"?n.changeSites:void 0;if(e.mode==="all-markup"&&n.revisionKind||i&&i.length>0){let r=chunk55AT3MOU_cjs.de(n)?Math.max(n.box.y,...n.cells.map(s=>s.box.y+s.box.height)):n.box.y+n.box.height,a={top:n.box.y+e.dy,bottom:Math.min(r+e.dy,e.limit),story:e.story,author:n.revisionAuthor,insertion:n.revisionKind==="insert",deletion:n.revisionKind==="delete",format:false};i&&St(a,i),o.push(a);}for(let r of n.cells){if(r.textDirection==="btLr"){let a=[];if(ve(r.blocks,e,a),a.length===0)continue;let s={top:r.box.y+e.dy,bottom:Math.min(r.box.y+r.box.height+e.dy,e.limit),story:e.story,insertion:false,deletion:false,format:false};for(let l of a)s.insertion||=l.insertion,s.deletion||=l.deletion,s.format||=l.format;s.bottom>s.top&&o.push(s);continue}ve(r.blocks,e,o);}}}function ve(t,e,o){for(let n of t)n.kind==="table"?Oo(n,e,o):Rt(n,e,o);}function zo(t){t.sort((o,n)=>o.top-n.top||o.bottom-n.bottom);let e=[];for(let o of t){let n=e[e.length-1];if(n&&n.story===o.story&&n.author===o.author&&o.top<=n.bottom+No){n.bottom=Math.max(n.bottom,o.bottom),n.insertion||=o.insertion,n.deletion||=o.deletion,n.format||=o.format;continue}e.push({...o});}return e}function Se(t,e,o,n=false,i,r=false,a){let s=[];if(o==="none"||i?.changedLines.mark==="none")return {mode:o,toggle:n,left:0,runs:s,signature:"none"};let l=t.box.height,d=t.contentBox.y-t.box.y+t.contentBox.height,c={x:t.box.x,y:t.box.y};chunk55AT3MOU_cjs.za(t,g=>{if(g.story==="note-separator")return;let R={mode:o,story:g.story,dy:g.origin.y-t.box.y,limit:g.story==="body"?d:l};ve(g.host.fragments,R,s);let w=g.story==="header"||g.story==="footer"?b=>chunk55AT3MOU_cjs.ua(b,g.origin,c):void 0;chunk55AT3MOU_cjs.Da(g.host,(b,L)=>{L.textboxDepth!==0&&Rt(b,{mode:o,story:g.story,dy:L.storyOrigin.y-t.box.y,limit:l},s);},g.origin,w);});let u=i?.changedLines.mark==="rightBorder"||i?.changedLines.mark==="outsideBorder"&&r&&t.index%2===0,p=Math.round((u?t.box.width-Math.max(0,(t.box.width-t.contentBox.width-(t.contentBox.x-t.box.x))/2):Math.max(0,(t.contentBox.x-t.box.x)/2))*e),h=i?chunk55AT3MOU_cjs.Ua(i.changedLines.color,"var(--doc-review-author-0)",o==="simple-markup"?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"):void 0,y=zo(s);if(i?.changedLines.color==="byAuthor")for(let g of y)g.color=a?.styles.get(g.author??"")?.color??$(a?.authorSlots.get(g.author??"")??0);let f=`${o}|${n?"t":""}|${p}|${h??""}`;for(let g of y)f+=`|${g.story}:${g.top.toFixed(3)}-${g.bottom.toFixed(3)}${g.insertion?"i":""}${g.deletion?"d":""}${g.format?"f":""}:${g.color??""}`;return {mode:o,toggle:n,left:p,runs:y,signature:f,...h?{color:h}:{}}}function wt(t,e,o){if(e.runs.length===0)return null;let n=e.mode==="simple-markup",i=t.createElement("div");i.className=vt,i.dataset.docxChangeBars=e.signature,i.dataset.docxChangeBarsMode=e.mode,i.setAttribute("aria-hidden","true"),i.setAttribute("contenteditable","false"),i.style.position="absolute",i.style.inset="0",i.style.pointerEvents="none";for(let r of e.runs){let a=t.createElement("div");a.className=ae,r.insertion&&a.classList.add(`${ae}-insertion`),r.deletion&&a.classList.add(`${ae}-deletion`),r.format&&a.classList.add(`${ae}-format`),a.dataset.docxStory=r.story,a.style.position="absolute",a.style.left=`${e.left}px`,a.style.top=`${r.top*o}px`,a.style.height=`${(r.bottom-r.top)*o}px`,a.style.width=n?"var(--doc-review-change-bar-simple-width)":"var(--doc-review-change-bar-width)",a.style.backgroundColor=r.color??e.color??(n?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"),e.toggle?(a.dataset.docxChangeBarToggle="",a.style.pointerEvents="auto",a.style.cursor="pointer"):a.style.pointerEvents="none",i.append(a);}return i}function kt(t,e,o,n,i=false,r,a=false,s){return wt(t,Se(e,o,n,i,r,a,s),o)}function Pt(t,e,o,n,i,r=false,a,s=false,l){let d=e.querySelector(`:scope > .${vt}`),c=Se(o,n,i,r,a,s,l);if(d&&d.dataset.docxChangeBars===c.signature)return;d?.remove();let u=wt(t,c,n);u&&e.append(u);}function se(t,e,o){return !!o.activeHeaderFooterRId&&!!t.rId&&o.activeHeaderFooterRId===t.rId&&(o.activeHeaderFooterPageIndex===void 0||o.activeHeaderFooterPageIndex===e)}function Re(t,e,o){return o?t.kind==="footer"?Math.max(t.box.height,e.box.y+e.box.height-t.box.y):Math.max(t.box.height,e.contentBox.y-t.box.y):t.box.height}function Ko(t,e){let{box:o}=e,n=t.contentBox,i=e.kind==="header"?o.y:Math.max(o.y,n.y+n.height),r=e.kind==="header"?Math.min(o.y+o.height,n.y):o.y+o.height;return r>i?{x:o.x,y:i,width:o.width,height:r-i}:null}function _o(t,e){let o=e.box,n=t.contentBox;return o.x<n.x+n.width&&n.x<o.x+o.width&&o.y<n.y+n.height&&n.y<o.y+o.height}function At(t,e,o,n,i){let r=n.box;if(_o(o,n)){e.dataset.docxHfOverBody="";let s=Ko(o,n);if(!s)return null;let l=t.createElement("div");l.className="docx-hf-hover",l.dataset.docxHfHover=n.kind,l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(s.x-o.box.x)*i}px`,l.style.top=`${(s.y-o.box.y)*i}px`,l.style.width=`${s.width*i}px`,l.style.height=`${s.height*i}px`,e.before(l),r=s;}let a=t.createElement("div");return a.className="docx-hf-edit-hint",a.dataset.docxHfHint=n.kind,a.setAttribute("contenteditable","false"),a.style.position="absolute",a.style.left=`${(r.x-o.box.x)*i}px`,a.style.width=`${r.width*i}px`,a.style.top=n.kind==="header"?`${(r.y+r.height-o.box.y)*i}px`:`${(r.y-o.box.y)*i}px`,n.kind==="footer"&&(a.style.transform="translateY(-100%)"),a}function Lt(t,e){for(let{record:o,element:n,materialized:i}of t){if(!i)continue;let r=n.querySelector(":scope > .docx-page-content");r&&(e.activeHeaderFooterRId?r.setAttribute("contenteditable","false"):r.removeAttribute("contenteditable")),delete n.dataset.docxHfActiveKind;for(let a of n.querySelectorAll(":scope > .docx-hf:not(.docx-hf--placeholder)")){let s=Uo(o,a);if(!s)continue;let l=se(s,o.index,e);l&&(n.dataset.docxHfActiveKind=s.kind),jo(a,o,s,l,e.scale);}for(let a of n.querySelectorAll(":scope > [data-docx-hf-front]")){let s=Et(o,a.dataset.docxHfFront);Mt(a,!!s&&se(s,o.index,e));}}}function Uo(t,e){return Et(t,e.dataset.docxHf)}function Et(t,e){if(e==="header")return t.header;if(e==="footer")return t.footer}function jo(t,e,o,n,i){n?(t.dataset.docxHfActive="",t.setAttribute("contenteditable","true")):(delete t.dataset.docxHfActive,t.setAttribute("contenteditable","false")),t.style.height=`${Re(o,e,n)*i}px`,Mt(t,n);}function Mt(t,e){let o=t.querySelectorAll(t instanceof Element&&t.classList.contains("docx-drawing-layer")?":scope > *":":scope > .docx-drawing-layer > *");for(let n of o){n.style.pointerEvents=e?"auto":"none";for(let i of n.querySelectorAll(".docx-drawing"))i.style.pointerEvents=e?"auto":"none";}}function $t(t){return t.horizontalFrame==="page"||t.verticalFrame==="page"}function Ct(t,e,o){let n=e.paintBounds,i=chunk55AT3MOU_cjs.ua(e,t.box,o),r=i.x-e.x,a=i.y-e.y,s=l=>Object.freeze({x:l.x+r,y:l.y+a,width:l.width,height:l.height});return Object.freeze({...e,x:e.x+r,y:e.y+a,paintBounds:s(n),hitBounds:s(e.hitBounds),geometry:Object.freeze({...e.geometry,contentBounds:s(e.geometry.contentBounds),paintBounds:s(e.geometry.paintBounds),...e.geometry.clipPolygon?{clipPolygon:Object.freeze(e.geometry.clipPolygon.map(l=>Object.freeze({x:l.x+r,y:l.y+a})))}:{}})})}function Go(t,e,o,n,i){let r=o.anchoredDrawings??[];if(r.length===0)return;let a=r.map(l=>Ct(o,l,i)),s=t.createElement("div");s.className="docx-hf-behind-layer",s.dataset.docxHfBehind=o.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",n.appendDrawings(s,a,i,"behind",false),s.childElementCount>0&&e.append(s);}function Wo(t,e,o,n,i,r){let{scale:a}=i.chrome,s=t.createElement("div");s.className="docx-hf",s.dataset.docxHf=n.kind,n.rId&&(s.dataset.docxRId=n.rId),r?(s.dataset.docxHfActive="",s.setAttribute("contenteditable","true")):s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(n.box.x-o.box.x)*a}px`,s.style.top=`${(n.box.y-o.box.y)*a}px`,s.style.width=`${n.box.width*a}px`,s.style.height=`${Re(n,o,r)*a}px`,s.style.overflow="visible";let l=(o.box.x-n.box.x)*a,d=(o.box.y-n.box.y)*a,c=l+o.box.width*a,u=d+o.box.height*a;s.style.clipPath=`polygon(${l}px ${d}px, ${c}px ${d}px, ${c}px ${u}px, ${l}px ${u}px)`;for(let y of n.fragments)s.append(i.paintFragment(y,n.box.x-o.box.x));let p=(n.anchoredDrawings??[]).filter(y=>!$t(y)),h=Object.freeze({x:0,y:0,width:n.box.width,height:n.box.height});return i.appendDrawings(s,p,h,"inFront",r),e.append(s),s}function Tt(t,e,o,n){let i=Object.freeze({x:o.box.x,y:o.box.y,width:o.box.width,height:o.box.height}),r=[o.header,o.footer].filter(s=>!!s);for(let s of r)Go(t,e,s,n,i);let a=[];for(let s of r){let l=se(s,o.index,n.chrome),d=Wo(t,e,o,s,n,l),c=At(t,d,o,s,n.chrome.scale);c&&a.push(c);let u=(s.anchoredDrawings??[]).filter($t).map(p=>Ct(s,p,i));n.appendDrawings(e,u,i,"inFront",l,s.kind);}return a}var Vo=0;function Dt(t,e,o,n){if(n===void 0||!Number.isFinite(n)||n<0||n>1)return;let i="http://www.w3.org/2000/svg",r=(u,p)=>{let h=t.createElementNS(i,u);for(let[y,f]of Object.entries(p))h.setAttribute(y,f);return h},a=`docx-bilevel-${++Vo}`,s=r("svg",{width:"0",height:"0","aria-hidden":"true"});s.style.position="absolute",s.style.pointerEvents="none";let l=r("filter",{id:a,"color-interpolation-filters":"sRGB"});l.append(r("feColorMatrix",{type:"saturate",values:"0"}));let d=r("feComponentTransfer",{}),c=Array.from({length:256},(u,p)=>p/255>=n?1:0).join(" ");for(let u of ["R","G","B"])d.append(r(`feFunc${u}`,{type:"discrete",tableValues:c}));l.append(d),s.append(l),e.append(s),o.style.filter=`${o.style.filter} url(#${a})`.trim();}function Ht(t){return Math.max(-1,Math.min(1,t))}function Xo(t,e){if(!Number.isFinite(t)||!Number.isFinite(e))return null;let o=Ht(t/100),n=Ht(e/100);if(o===0&&n===0)return null;let i=n>=0?Math.min(1e3,1/(1-n)):Math.max(0,1+n),r=.5-o/2,a=r+o-i*r;return Object.freeze({slope:i,intercept:a})}function le(t){if(!Number.isFinite(t))return "0";let e=Math.round(t*1e6)/1e6;return String(Object.is(e,-0)?0:e)}function qo(t){let{slope:e,intercept:o}=t;if(o>=0){let i=e+2*o;return i<=0?"brightness(0)":`contrast(${le(e/i)}) brightness(${le(i)})`}let n=1-2*o;return `brightness(${le(e/n)}) contrast(${le(n)})`}function we(t){let e=[];t.grayscale&&e.push("grayscale(1)");let o=Xo(t.brightness,t.contrast);o&&e.push(qo(o));let{opacity:n}=t;return n!==void 0&&Number.isFinite(n)&&n>=0&&n<1&&e.push(`opacity(${Math.round(n*1e3)/1e3})`),e.length>0?e.join(" "):void 0}var Ft="http://www.w3.org/2000/svg",Yo=0;function Bt(t,e){let{cx:o,cy:n}=t.extentEmu;if(o>0&&n>0)return {viewBox:[0,0,o,n],frame:e};let i=1;for(let a of t.components)i=Math.max(i,a.strokeWidthEmu);if(o<=0){let a=n>0?e.height/n:0;return {viewBox:[-i,0,2*i,Math.max(1,n)],frame:{...e,x:e.x-i*a,width:2*i*a}}}let r=e.width/o;return {viewBox:[0,-i,o,2*i],frame:{...e,y:e.y-i*r,height:2*i*r}}}function It(t,e,o,n,i){let r=`docx-inset-${++Yo}`,a=t.createElementNS(Ft,"clipPath");a.setAttribute("id",r);let s=t.createElementNS(Ft,"path");s.setAttribute("d",n),s.setAttribute("clip-rule","evenodd"),a.append(s),e.append(a),o.setAttribute("stroke-width",String(2*Math.max(1,i))),o.setAttribute("clip-path",`url(#${r})`);}var ke="http://www.w3.org/2000/svg";function T(t){return Number.isFinite(t)?String(t):"0"}function Pe(t,e,o,n,i){if(n===o)return;let r=a=>`${T(-a*i)}px`;t.style.overflow="visible",t.style.clipPath=`inset(${r(o.y-n.y)} ${r(n.x+n.width-(o.x+o.width))} ${r(n.y+n.height-(o.y+o.height))} ${r(o.x-n.x)})`,e.style.pointerEvents="none";}function Ae(t,e,o){let n=e.vectorShape,i=e.geometry.contentBounds,r=e.paintBounds,a=t.createElement("div");a.className="docx-drawing-image-frame",a.style.position="absolute";let s=Bt(n,i);a.style.left=`${(s.frame.x-r.x)*o}px`,a.style.top=`${(s.frame.y-r.y)*o}px`,a.style.width=`${s.frame.width*o}px`,a.style.height=`${s.frame.height*o}px`;let l=t.createElementNS(ke,"svg");l.setAttribute("viewBox",s.viewBox.map(T).join(" ")),l.setAttribute("preserveAspectRatio","none"),l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.style.display="block",l.style.overflow="visible";for(let d of n.components){let c=t.createElementNS(ke,"path"),u=d.subpathsEmu.map((p,h)=>`M${p.map(y=>`${T(y.x)} ${T(y.y)}`).join("L")}${d.subpathsClosed?.[h]===false?"":"Z"}`).join("");if(c.setAttribute("d",u),c.setAttribute("fill",d.fillHex!==null?`#${d.fillHex}`:"none"),c.setAttribute("fill-rule","evenodd"),d.fillAlpha<1&&c.setAttribute("fill-opacity",T(Math.max(0,d.fillAlpha))),d.strokeHex!==null&&(c.setAttribute("stroke",`#${d.strokeHex}`),c.setAttribute("stroke-width",T(Math.max(1,d.strokeWidthEmu))),d.strokeInset&&It(t,l,c,u,chunk55AT3MOU_cjs.jb(d.strokeWidthEmu)),d.strokeAlpha<1&&c.setAttribute("stroke-opacity",T(Math.max(0,d.strokeAlpha)))),l.append(c),d.strokeHex!==null)for(let p of d.arrowheadsEmu??[]){let h=t.createElementNS(ke,"path");h.setAttribute("d",`M${p.map(y=>`${T(y.x)} ${T(y.y)}`).join("L")}Z`),h.setAttribute("fill",`#${d.strokeHex}`),h.setAttribute("fill-opacity",T(Math.max(0,Math.min(1,d.strokeAlpha)))),h.setAttribute("data-docx-line-end","triangle"),l.append(h);}}return a.append(l),a}var Zo=new Map([["image/svg+xml","SVG"],["image/tiff","TIFF"],["image/x-emf","EMF"],["image/x-wmf","WMF"]]),Jo="Unknown",ce=new WeakMap,de=new WeakMap,Qo=256;function zt(t,e){let o=ce.get(t);if(o)return o;let n=new Map,i=new Map;return o=Object.freeze({urlForReady(r,a){let s=n.get(r.resourceKey);if(s)return s;let l;try{l=e.create(r,a);}catch(d){if(d instanceof Error&&d.message.startsWith("PaintImageUrlSource:"))return null;throw d}return n.set(r.resourceKey,l),l},imageFor(r,a,s){let l=i.get(r);if(l&&l.resourceKey===a)return l.element;let d=s.createElement("img");return i.size<Qo&&i.set(r,{element:d,resourceKey:a,...l?.readyElement?{readyElement:l.readyElement}:{}}),d},imageForPending(r){return i.get(r)?.element??null},readyElementFor(r){return i.get(r)?.readyElement??null},rememberReadyElement(r,a){let s=i.get(r);s&&i.set(r,{...s,readyElement:a});},reconcile(r,a){for(let[s,l]of n)r.has(s)||(e.revoke(l),n.delete(s));for(let[s,l]of i)a.has(s)||(l.element.removeAttribute("src"),i.delete(s));},revokeAll(){for(let r of n.values())e.revoke(r);n.clear();for(let r of i.values())r.element.removeAttribute("src");i.clear();}}),ce.set(t,o),o}function Le(t,e){return `${e.paintInstance??""}|${t.drawingNodeId}`}function Qr(t){ce.get(t)?.revokeAll(),ce.delete(t);}function U(t){return Number.isFinite(t)?String(t):"0"}function Kt(t,e){if(t.length<3||e.width<=0||e.height<=0)return null;let o=[];for(let n of t){if(!Number.isFinite(n.x)||!Number.isFinite(n.y))return null;let i=(n.x-e.x)/e.width*100,r=(n.y-e.y)/e.height*100;o.push(`${U(i)}% ${U(r)}%`);}return `polygon(${o.join(", ")})`}function _t(t){let e=t.geometry.contentBounds;return chunk55AT3MOU_cjs.lb({transform:t.transform,contentWidth:e.width,contentHeight:e.height})}function Ut(t,e){let{crop:o}=t,n=Math.max(0,Math.min(1,o.left)),i=Math.max(0,Math.min(1,o.top)),r=Math.max(0,Math.min(1,o.right)),a=Math.max(0,Math.min(1,o.bottom)),s=Math.max(1e-4,1-n-r),l=Math.max(1e-4,1-i-a);return Object.freeze({width:`${U(1/s*100)}%`,height:`${U(1/l*100)}%`,left:`${U(-n/s*100)}%`,top:`${U(-i/l*100)}%`})}function en(t,e){let{resource:o}=t;switch(o.kind){case "external":return e.externalResource;case "missing":return e.missingResource;case "pending":return e.pendingResource;case "unrenderable":switch(o.reason){case "unsupported-format":return e.unsupportedFormat(Zo.get(o.mime)??Jo);case "non-picture-graphic":return e.nonPictureGraphic(t.placeholderGraphicKind??"graphic");case "signature-mismatch":return e.contentMismatch;case "decode-failed":return e.decodeFailed;case "resource-limit":return e.resourceLimit;default:return e.invalidResource}default:return e.invalidResource}}function O(t,e,o){let{accessibility:n}=e;n.hidden||(t.setAttribute("role",o?"link":"img"),n.label?t.setAttribute("aria-label",n.label):o||t.setAttribute("aria-hidden","true"));}function J(t,e,o,n){let i=n?.x??0,r=n?.y??0;t.style.position="absolute",t.style.left=`${(e.x-i)*o}px`,t.style.top=`${(e.y-r)*o}px`,t.style.width=`${e.width*o}px`,t.style.height=`${e.height*o}px`,t.style.boxSizing="border-box",t.style.overflow="hidden",t.style.pointerEvents="auto";}function jt(t){let e=t.groupPicture?t.geometry.imageTransformCorners:void 0;if(!e||e.length===0)return t.geometry.contentBounds;let o=1/0,n=1/0,i=-1/0,r=-1/0;for(let a of e)o=Math.min(o,a.x),n=Math.min(n,a.y),i=Math.max(i,a.x),r=Math.max(r,a.y);return {x:o,y:n,width:i-o,height:r-n}}function tn(t,e,o,n,i){let r=t.paintBounds,a=jt(t),s=Ut(t);return [n,o.scale,i?.x??0,i?.y??0,r.x,r.y,r.width,r.height,a.x,a.y,a.width,a.height,Kt(t.geometry.clipPolygon??[],r)??"",we(t.effects)??"",t.effects.bilevel??"",_t(t)??"",s.width,s.height,s.left,s.top,o.inertLinks?"":t.hyperlinkHref??"",t.accessibility.label??""].join("|")}function Z(t,e,o,n){let i=t.createElement("div");i.className="docx-drawing docx-drawing-placeholder",i.dataset.drawingNodeId=e.drawingNodeId,J(i,e.paintBounds,o.scale,n);let r=t.createElement("div");r.className="docx-drawing-placeholder-card";let a=t.createElement("span");return a.className="docx-drawing-placeholder-label",a.textContent=en(e,o.strings),r.append(a),i.append(r),e.hyperlinkHref&&!o.inertLinks?(i.dataset.docxDrawingLink=e.drawingNodeId,i.dataset.docxDrawingLinkKind="external",i.dataset.docxDrawingLinkHref=e.hyperlinkHref,i.setAttribute("tabindex","-1"),O(i,e,true)):O(i,e,false),i}function on(t,e,o,n,i,r){let a=e.resource;if(a.kind!=="ready")return Z(t,e,o,r);let s=Le(e,o),l=i?.readyElementFor?.(s)??t.createElement("div"),d=tn(e,a,o,n,r),c=!e.vectorShape;if(c&&de.get(l)===d)return l;l.className="docx-drawing docx-drawing-ready",l.style.cssText="",l.dataset.drawingNodeId=e.drawingNodeId,delete l.dataset.docxDrawingLink,delete l.dataset.docxDrawingLinkKind,delete l.dataset.docxDrawingLinkHref,l.removeAttribute("aria-hidden"),l.removeAttribute("aria-label"),l.removeAttribute("role"),l.removeAttribute("tabindex"),J(l,e.paintBounds,o.scale,r);let u=t.createElement("div");u.className="docx-drawing-image-frame",u.style.position="absolute";let p=jt(e),h=e.paintBounds,y=Kt(e.geometry.clipPolygon??[],e.groupPicture?p:h);y&&((e.groupPicture?u:l).style.clipPath=y),u.style.left=`${(p.x-h.x)*o.scale}px`,u.style.top=`${(p.y-h.y)*o.scale}px`,u.style.width=`${p.width*o.scale}px`,u.style.height=`${p.height*o.scale}px`;let f=we(e.effects);f&&(u.style.filter=f);let g=t.createElement("div");g.className="docx-drawing-transform-stage",g.style.position="relative",g.style.width="100%",g.style.height="100%";let R=_t(e);R&&(g.style.transform=R,g.style.transformOrigin="0 0");let w=t.createElement("div");w.className="docx-drawing-crop-viewport",w.style.position="relative",w.style.width="100%",w.style.height="100%",w.style.overflow="hidden";let b=i?.imageFor?.(s,a.resourceKey,t)??t.createElement("img");b.className="docx-drawing-image",b.setAttribute("draggable","false"),b.getAttribute("src")!==n&&b.setAttribute("src",n),b.setAttribute("alt","");let L=Ut(e);if(b.style.position="absolute",b.style.width=L.width,b.style.height=L.height,b.style.left=L.left,b.style.top=L.top,b.style.maxWidth="none",b.style.maxHeight="none",w.append(b),g.append(w),u.append(g),l.replaceChildren(u),e.vectorShape){let D=Ae(t,e,o.scale),F=e.paintBounds;Pe(l,D,F,chunkHO5XFO32_cjs.M(e,F),o.scale),l.append(D);}return Dt(t,l,u,e.effects.bilevel),e.hyperlinkHref&&!o.inertLinks?(l.dataset.docxDrawingLink=e.drawingNodeId,l.dataset.docxDrawingLinkKind="external",l.dataset.docxDrawingLinkHref=e.hyperlinkHref,l.setAttribute("tabindex","-1"),O(l,e,true)):O(l,e,false),i?.rememberReadyElement?.(s,l),c?de.set(l,d):de.delete(l),l}function nn(t,e,o,n,i){let r=t.createElement("div");r.className="docx-drawing docx-drawing-shape",r.dataset.drawingNodeId=e.drawingNodeId;let a=e.paintBounds;J(r,a,o.scale,i);let s=Ae(t,e,o.scale);return Pe(r,s,a,n,o.scale),r.append(s),e.hyperlinkHref&&!o.inertLinks?(r.dataset.docxDrawingLink=e.drawingNodeId,r.dataset.docxDrawingLinkKind="external",r.dataset.docxDrawingLinkHref=e.hyperlinkHref,r.setAttribute("tabindex","-1"),O(r,e,true)):O(r,e,false),r}function rn(t,e,o,n,i){let r=n.scale,a=t.createElement("div");a.className="docx-drawing docx-drawing-textbox",a.dataset.drawingNodeId=e.drawingNodeId,a.setAttribute("contenteditable","false"),J(a,e.paintBounds,n.scale,i),a.style.overflow="hidden";let s=(e.x-e.paintBounds.x)*r,l=(e.y-e.paintBounds.y)*r;if(o.fillHex!==null||o.strokeHex!==null){let c=t.createElement("div");c.className="docx-drawing-textbox-box",c.style.position="absolute",c.style.left=`${s}px`,c.style.top=`${l}px`,c.style.width=`${e.width*r}px`,c.style.height=`${e.height*r}px`,c.style.boxSizing="border-box",o.fillHex!==null&&(c.style.backgroundColor=`#${o.fillHex}`),o.strokeHex!==null&&(c.style.border=`${Math.max(o.strokeWidthPt*r,.5)}px solid #${o.strokeHex}`),a.append(c);}let d=t.createElement("div");d.className="docx-drawing-textbox-content",d.style.position="absolute",d.style.left=`${s+o.contentOffset.x*r}px`,d.style.top=`${l+o.contentOffset.y*r}px`,d.style.width=`${o.contentWidth*r}px`,d.style.height=`${Math.max(0,o.contentHeight)*r}px`,d.style.overflow="hidden";for(let c of o.fragments)d.append(n.paintStoryFragment(t,c));for(let c of d.querySelectorAll("[data-paragraph-id]"))c.dataset.textboxParagraphId=c.dataset.paragraphId,delete c.dataset.paragraphId;return a.append(d),O(a,e,false),a}function an(t,e,o){let n=o.revisionStyles,i=K(e.revisions,n?.authorSlots,n?.styles);if(!i){if(t.dataset.revisionKind===void 0)return;t.classList.remove("docx-drawing--revision","docx-drawing--revision-insertion","docx-drawing--revision-deletion"),delete t.dataset.revisionKind,delete t.dataset.revisionId,delete t.dataset.reviewAuthor,delete t.dataset.revisionDate,delete t.dataset.reviewAuthorSlot;return}let{attribution:r}=i;t.classList.add("docx-drawing--revision",i.deleted?"docx-drawing--revision-deletion":"docx-drawing--revision-insertion"),t.classList.remove(i.deleted?"docx-drawing--revision-insertion":"docx-drawing--revision-deletion"),t.dataset.revisionKind=r.kind,t.dataset.revisionId=r.id,r.author!==""?t.dataset.reviewAuthor=r.author:delete t.dataset.reviewAuthor,r.date!==void 0?t.dataset.revisionDate=r.date:delete t.dataset.revisionDate,n?t.dataset.reviewAuthorSlot=String((n.authorSlots.get(r.author)??0)%M):delete t.dataset.reviewAuthorSlot;}function Gt(t,e,o,n,i){let r=sn(t,e,o,n,i);return r&&an(r,e,o),r}function sn(t,e,o,n,i){if(e.accessibility.hidden)return null;let r=e.vectorShape?chunkHO5XFO32_cjs.M(e,e.paintBounds):e.paintBounds;if(r.width<=0||r.height<=0)return null;if(e.textboxStory!==void 0&&o.paintStoryFragment!==void 0)return rn(t,e,e.textboxStory,o,i);let{resource:a}=e,s=a.kind==="ready"&&o.imageUrlPort&&n?n.urlForReady(a.validatedHandle,a.mime):null;if(e.groupPicture&&a.kind!=="pending"&&!s)return Z(t,e,o,i);let l=e.groupPicture!==void 0&&s!==null;if(e.vectorShape&&e.vectorShape.subpathsEmu.length>0&&!l)return nn(t,e,o,r,i);if(a.kind==="ready")return !s||!n?Z(t,e,o,i):on(t,e,o,s,n,i);if(a.kind==="pending"){let d=n?.readyElementFor?.(Le(e,o))??n?.imageForPending?.(Le(e,o))?.closest(".docx-drawing-ready");return d?(de.delete(d),d.dataset.drawingNodeId=e.drawingNodeId,J(d,e.paintBounds,o.scale,i),d):Z(t,e,o,i)}return Z(t,e,o,i)}function Wt(t,e,o,n,i){let r=[];for(let a of e.drawings??[]){let s=Gt(t,a,o,n,i);s&&r.push(s);}return Object.freeze(r)}function Vt(t,e,o,n,i,r){let a=[];for(let s of e){if(chunk55AT3MOU_cjs._b(s)!==o)continue;let l=Gt(t,s,n,i,r);l&&(l.dataset.drawingLayer=o,a.push(l));}return Object.freeze(a)}function ln(t,e){chunk55AT3MOU_cjs.za(t,({host:o})=>chunk55AT3MOU_cjs.Ba(o,e));}var Nt=new WeakMap;function dn(t){let e=Nt.get(t);if(e)return e;let o=[],n=[];ln(t,r=>{r.resource.kind==="ready"&&o.push(r.resource.resourceKey),n.push(`p${t.index}|${r.drawingNodeId}`);}),chunk55AT3MOU_cjs.za(t,({host:r})=>chunk55AT3MOU_cjs.Da(r,a=>{let s=a.marker?.picture;s?.resource.kind==="ready"&&o.push(s.resource.resourceKey);}));let i=Object.freeze({resourceKeys:Object.freeze(o),elementKeys:Object.freeze(n)});return Nt.set(t,i),i}var Ot=new WeakMap;function Xt(t){let e=Ot.get(t);if(e)return e;let o=new Set,n=new Set;for(let r of t.pages){let a=dn(r);for(let s of a.resourceKeys)o.add(s);for(let s of a.elementKeys)n.add(s);}let i=Object.freeze({resourceKeys:o,elementKeys:n});return Ot.set(t,i),i}function qt(t){return Xt(t).resourceKeys}function Yt(t){return Xt(t).elementKeys}function Zt(t){return [t.missingResource,t.externalResource,t.invalidResource,t.contentMismatch,t.decodeFailed,t.resourceLimit,t.pendingResource,t.unsupportedFormat("probe"),t.nonPictureGraphic("probe")].join("\0")}var Ee=Object.freeze({unsupportedFormat:t=>`Unsupported image format (${t})`,nonPictureGraphic:t=>`Unsupported graphic (${t})`,missingResource:"Image missing",externalResource:"External image not loaded",invalidResource:"Invalid image",contentMismatch:"Image content does not match its type",decodeFailed:"Image could not be decoded",resourceLimit:"Image exceeds size limits",pendingResource:"Loading image"});function ei(t){return Object.freeze({unsupportedFormat:e=>t("image.unsupportedFormat",{format:e}),nonPictureGraphic:e=>t("image.nonPictureGraphic",{kind:e}),missingResource:t("image.missingResource"),externalResource:t("image.externalResource"),invalidResource:t("image.invalidResource"),contentMismatch:t("image.contentMismatch"),decodeFailed:t("image.decodeFailed"),resourceLimit:t("image.resourceLimit"),pendingResource:t("image.pendingResource")})}function cn(t,e,o){t.style.position="absolute",t.style.left=`${e.x*o}px`,t.style.top=`${e.y*o}px`,t.style.width=`${e.width*o}px`,t.style.height=`${e.height*o}px`;}function Jt(t,e,o,n){let i=t.createElement("span");return i.className=e,i.setAttribute("aria-hidden","true"),i.style.position="absolute",i.style.display="block",i.style.left=`${o.x*n}px`,i.style.top=`${o.y*n}px`,i.style.width=`${o.width*n}px`,i.style.height=`${o.height*n}px`,i.style.backgroundColor="currentColor",i.style.pointerEvents="none",i}function A(t,e,o,n,i=0,r=0,a=[]){let s=i+o.box.x,l=r+o.box.y,d=[...a,o.kind];switch(o.kind){case "text":case "fallback":{let c=t.createElement("span");c.className=["docx-equation-node",...d.map(u=>`docx-equation-${u}`)].join(" "),cn(c,{x:s,y:l,width:o.box.width,height:o.box.height},n),c.textContent=o.text,c.style.display="block",c.style.fontSize=`${o.fontSizePt*n}px`,c.style.lineHeight=`${o.box.height*n}px`,c.style.whiteSpace="pre",e.append(c);break}case "row":for(let c of o.items)A(t,e,c,n,s,l,d);break;case "fraction":A(t,e,o.numerator,n,s,l,d),e.append(Jt(t,"docx-equation-fraction-bar",{...o.bar,x:s+o.bar.x,y:l+o.bar.y},n)),A(t,e,o.denominator,n,s,l,d);break;case "radical":A(t,e,o.sign,n,s,l,d),o.degree&&A(t,e,o.degree,n,s,l,d),e.append(Jt(t,"docx-equation-radical-bar",{...o.bar,x:s+o.bar.x,y:l+o.bar.y},n)),A(t,e,o.radicand,n,s,l,d);break;case "script":A(t,e,o.base,n,s,l,d),o.subscript&&A(t,e,o.subscript,n,s,l,d),o.superscript&&A(t,e,o.superscript,n,s,l,d);break;case "nary":A(t,e,o.operator,n,s,l,d),o.lowerLimit&&A(t,e,o.lowerLimit,n,s,l,d),o.upperLimit&&A(t,e,o.upperLimit,n,s,l,d),A(t,e,o.body,n,s,l,d);break}}function Qt(t,e,o,n){let i=o.geometry;e.className="layout-run docx-equation",e.dataset.docxEquation=o.sourceNodeId,e.setAttribute("contenteditable","false"),e.setAttribute("role","math"),o.fallbackText&&e.setAttribute("aria-label",o.fallbackText),e.style.position="relative",e.style.display="inline-block",e.style.width=`${i.box.width*n}px`,e.style.height=`${i.box.height*n}px`,e.style.lineHeight="0",e.style.pointerEvents="auto",e.style.userSelect="none",e.style.verticalAlign=`${-(i.box.height-i.baseline)*n}px`;let r=t.createDocumentFragment();A(t,r,i,n),e.append(r);}function eo(t,e,o,n){if(o.glyphOffsetPt!==void 0){let s=o.style.horizontalScalePercent/100,l=o.box.width*n;e.style.width=`${l/s}px`,s!==1&&(e.style.marginRight=`${l-l/s}px`);let d=t.createElement("span");if(d.dataset.docxGlyphOffset="",s!==1&&(d.style.letterSpacing=`${o.style.characterSpacingPt*n/s}px`),o.glyphOffsetPt){d.dataset.docxShiftedInk="",d.style.setProperty("forced-color-adjust","preserve-parent-color"),d.style.setProperty("-webkit-text-fill-color","transparent");let c=`${o.glyphOffsetPt*n/s}px`;d.style.setProperty("--docx-glyph-ink-offset",c),e.style.color&&e.style.color!=="inherit"&&d.style.setProperty("--docx-glyph-ink-color",e.style.color),d.style.textShadow=`${c} 0 currentColor`;}return e.append(d),d}let i=o.lineEndWhitespace===true;(o.style.horizontalScalePercent!==100||o.text===" "||i)&&(e.style.width=`${o.box.width*n}px`);let r=o.style.shaping!==void 0&&o.style.horizontalScalePercent!==100;if(!i&&!r||(i&&(e.style.clipPath="inset(-1em 0)"),o.style.horizontalScalePercent===100))return e;let a=t.createElement("span");if(a.dataset.docxClippedFill="",a.style.display="inline-block",a.style.transform=e.style.transform,a.style.transformOrigin=e.style.transformOrigin,r){let s=o.style.horizontalScalePercent/100;a.style.width=`${o.box.width*n/s}px`,a.style.letterSpacing=`${o.style.characterSpacingPt*n/s}px`,o.style.shaping?.wordSpacingPt&&(a.style.wordSpacing=`${o.style.shaping.wordSpacingPt*n/s}px`),a.style.direction=o.style.shaping?.direction??"ltr",a.style.transformOrigin=a.style.direction==="rtl"?"right":"left";}return a.style.textDecorationLine=e.style.textDecorationLine,a.style.textDecorationStyle=e.style.textDecorationStyle,a.style.textDecorationColor=e.style.textDecorationColor,a.style.textDecorationThickness=e.style.textDecorationThickness,e.style.removeProperty("transform"),e.style.removeProperty("transform-origin"),e.style.removeProperty("text-decoration-line"),e.style.removeProperty("text-decoration-style"),e.style.removeProperty("text-decoration-color"),e.style.removeProperty("text-decoration-thickness"),e.append(a),a}function to(t,e,o){let n=e.textOutline;if(!n||!Number.isFinite(o)||o<=0||!Number.isFinite(n.widthPt)||n.widthPt<=0||n.widthPt>1584||!/^[0-9a-f]{6}$/i.test(n.color))return;let i=n.widthPt*o;Number.isFinite(i)&&(t.setProperty("-webkit-text-stroke-width",`${i}px`),t.setProperty("-webkit-text-stroke-color",`#${n.color}`));}var un=/^[0-9A-Fa-f]{6}$/;function yn(t,e,o){let n=t.createElement("div");n.className=`docx-page-border docx-page-border-${e.side}`,n.setAttribute("aria-hidden","true"),n.style.position="absolute";let i=e.side==="left"||e.side==="right",r=(i?e.box.width:e.box.height)*o,a=ie(e.edge.val)?r:Math.max(1,r),s=a-r;n.style.left=`${e.box.x*o-(e.side==="right"?s:0)}px`,n.style.top=`${e.box.y*o-(e.side==="bottom"?s:0)}px`,n.style.width=i?`${a}px`:`${e.box.width*o}px`,n.style.height=i?`${e.box.height*o}px`:`${a}px`;let l=e.edge.color&&un.test(e.edge.color)?e.edge.color:"000000";return n.style.backgroundColor=`#${l}`,_(n,e.edge.val,l,i,a,o),n}function oo(t,e,o){let n=t.createElement("div");n.className="docx-page-borders",n.setAttribute("aria-hidden","true"),n.setAttribute("contenteditable","false"),n.style.position="absolute",n.style.inset="0",n.style.pointerEvents="none";for(let i of e.strokes)n.append(yn(t,i,o));return n}var pn=/^[0-9A-Fa-f]{6}$/;function hn(t){switch(t){case "dashed":return "dashed";case "dotted":return "dotted";case "double":case "triple":return "solid";default:return "solid"}}function Ce(t){return t&&pn.test(t)?t:"000000"}function Me(t,e){let o=t.createElement("div");return o.className=e,o.setAttribute("aria-hidden","true"),o.setAttribute("contenteditable","false"),o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.right="0",o.style.bottom="0",o.style.overflow="visible",o.style.pointerEvents="none",o.style.boxSizing="border-box",o}function fn(t,e,o,n){if(!o)return;let i=`#${Ce(o.color)}`,r=`${Math.max(0,o.widthPt*n)}px`;if(t.style[`border${e}Width`]=r,t.style[`border${e}Color`]=i,o.style==="double"||o.style==="triple"){t.style[`border${e}Style`]="none";return}t.style[`border${e}Style`]=hn(o.style);}function $e(t,e,o,n,i){let r=t.createElement("div");if(r.className=i,r.dataset.edge=o.side,r.dataset.stroke=o.role,r.style.position="absolute",r.style.left=`${o.x*n}px`,r.style.top=`${o.y*n}px`,r.style.width=`${o.width*n}px`,r.style.height=`${o.height*n}px`,r.style.pointerEvents="none",o.cssStyle==="solid")r.style.backgroundColor=`#${Ce(o.color)}`;else {let a=o.side==="top"||o.side==="bottom";r.style.boxSizing="border-box",r.style[a?"borderTop":"borderLeft"]=`${(a?o.height:o.width)*n}px ${o.cssStyle} #${Ce(o.color)}`;}e.append(r);}function gn(t){let e=new Set;for(let o of t)e.add(`${o.side}\0${o.role}`);return e}function mn(t,e,o,n){let i=gn(o),r=p=>i.has(`${p}\0middle`),a=Me(t,"docx-table-border-double"),s=Me(t,"docx-table-border-triple"),l=Me(t,"docx-table-border-edge");for(let p of [a,s,l])p.style.zIndex="1";let d=false,c=false,u=false;for(let p of o){if(p.role==="edge"){u=true,$e(t,l,p,n,"docx-table-border-edge-stroke");continue}if(r(p.side)){c=true,$e(t,s,p,n,"docx-table-border-triple-stroke");continue}(p.role==="outer"||p.role==="inner")&&(d=true,$e(t,a,p,n,"docx-table-border-double-stroke"));}d&&e.append(a),c&&e.append(s),u&&e.append(l);}function no(t,e,o,n){let i=new Set((o?.strokes??[]).map(r=>r.side));for(let r of ["top","right","bottom","left"]){let a=`${r[0].toUpperCase()}${r.slice(1)}`;fn(e,a,o?.[r],n),i.has(r)&&(e.style[`border${a}Style`]="none");}o?.strokes&&o.strokes.length>0&&mn(t,e,o.strokes,n);}function ro(t,e,o,n){if(e.textDirection!=="btLr")return n;let i=t.createElement("div");return i.className="docx-table-cell-content-btlr",i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.width=`${e.box.height*o}px`,i.style.height=`${e.box.width*o}px`,i.style.transformOrigin="0 0",i.style.transform=`translateY(${e.box.height*o}px) rotate(-90deg)`,n.append(i),i}var Te="when-selected",io=new WeakMap,ao=0;function xn(t){let e=io.get(t);return e||(ao+=1,e=`alias${ao}`,io.set(t,e)),e}function fo(t){return {...t,drawingStrings:t.drawingStrings??Ee,urlRegistry:t.urlRegistry??null,changeBars:t.changeBars??"none",changeBarsToggle:t.changeBarsToggle??false}}function bn(t){let e={...t,inertLinks:true,tabLeaderOriginXPt:0};return Object.freeze({scale:t.scale,strings:t.drawingStrings,...t.imageUrlPort?{imageUrlPort:t.imageUrlPort}:{},...t.inertLinks?{inertLinks:true}:{},...t.paintInstance?{paintInstance:t.paintInstance}:{},...t.revisionStyles?{revisionStyles:t.revisionStyles}:{},paintStoryFragment:(o,n)=>n.kind==="table"?G(o,n,e):j(o,n,e)})}function go(t){return Object.freeze({ctx:bn(t),urlRegistry:t.urlRegistry})}function so(t,e,o,n,i,r){mo(t,e,chunk55AT3MOU_cjs.ya(o),n,i,r);}function mo(t,e,o,n,i,r,a=true,s){if(o.length===0)return;let l=go(n),d=t.createElement("div");d.className=r==="behind"?"docx-drawing-layer docx-drawing-layer-behind":"docx-drawing-layer docx-drawing-layer-front",d.style.position="absolute",d.style.inset="0",d.style.pointerEvents="none",s&&(d.dataset.docxHfFront=s);for(let c of Vt(t,o,r,l.ctx,l.urlRegistry,i)){if(c.style.pointerEvents=a?"auto":"none",!a)for(let u of c.querySelectorAll(".docx-drawing"))u.style.pointerEvents="none";d.append(c);}d.childElementCount>0&&e.append(d);}var W=/^[0-9A-Fa-f]{6}$/,lo=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,vn=new Map(Object.entries({single:"solid",words:"solid",thick:"solid",double:"double",dotted:"dotted",dottedHeavy:"dotted",dash:"dashed",dashedHeavy:"dashed",dashLong:"dashed",dashLongHeavy:"dashed",dotDash:"dashed",dashDotHeavy:"dashed",dotDotDash:"dashed",dashDotDotHeavy:"dashed",wave:"wavy",wavyHeavy:"wavy",wavyDouble:"wavy"})),Sn=new Map(Object.entries({black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkBlue:"#000080",darkCyan:"#008080",darkGray:"#808080",darkGreen:"#008000",darkMagenta:"#800080",darkRed:"#800000",darkYellow:"#808000",green:"#00ff00",lightGray:"#c0c0c0",magenta:"#ff00ff",red:"#ff0000",yellow:"#ffff00",white:"#ffffff"}));function Rn(t){return t.doubleStrike?"double":t.strike?"single":"none"}function wn(t){return t==="thick"||t.endsWith("Heavy")}function xo(t){if(!t.underline)return null;let e=t.underline.color&&W.test(t.underline.color)?t.underline.color:null;return {cssStyle:vn.get(t.underline.variant)??"solid",color:e,heavy:wn(t.underline.variant)}}function bo(t,e,o,n){t.textDecorationLine=e,t.textDecorationStyle=o,n.color&&(t.textDecorationColor=`#${n.color}`),n.heavy&&(t.textDecorationThickness=`max(${2*n.scale}px, 0.12em)`);}function co(t,e,o){e!=="none"&&bo(t,"line-through",e==="double"?"double":"solid",{scale:o});}function uo(t,e,o){bo(t,"underline",e.cssStyle,{color:e.color,heavy:e.heavy,scale:o});}function kn(t,e,o){let n=e.color?`#${e.color}`:"currentColor";t.borderBottomWidth=`${(e.heavy?2:1)*o}px`,t.borderBottomStyle=e.cssStyle==="wavy"?"solid":e.cssStyle,t.borderBottomColor=n;}function Q(t,e,o){let n=t.style,i=o.scale;to(n,e,i);let r=chunk55AT3MOU_cjs.da(e);n.fontSize=`${e.fontSizePt*r*i}px`,e.bold&&(n.fontWeight="bold"),e.italic&&(n.fontStyle="italic");let a=e.fontFamily&&lo.test(e.fontFamily)?e.fontFamily:o.defaultFontFamily&&lo.test(o.defaultFontFamily)?o.defaultFontFamily:null;if(a){let d=o.fontAlias?.(a);n.fontFamily=d?`"${d}", "${a}", ${chunkHO5XFO32_cjs.O}`:`"${a}", ${chunkHO5XFO32_cjs.O}`;}e.color&&W.test(e.color)&&(n.color=`#${e.color}`);let s=e.highlight?Sn.get(e.highlight):void 0;s?(n.backgroundColor=s,t.dataset.highlight=e.highlight??""):e.shading&&W.test(e.shading)&&(n.backgroundColor=`#${e.shading}`),e.caps&&(n.textTransform="uppercase"),n.fontKerning=chunkHO5XFO32_cjs.N(e)?"normal":"none",e.smallCaps&&(n.fontVariant="small-caps");let l=chunk55AT3MOU_cjs.ca(e);l!==0&&(n.position="relative",n.top=`${-l*i}px`),e.characterSpacingPt!==0&&(n.letterSpacing=`${e.characterSpacingPt*i}px`),e.horizontalScalePercent!==100&&(n.transformOrigin="left",n.transform=`scaleX(${e.horizontalScalePercent/100})`);}function vo(t,e,o,n,i){let r=o===" "?null:xo(n),a=Rn(n),s=e;if(r&&a!=="none"){let l=t.createElement("span");l.dataset.docxDeco="underline",uo(l.style,r,i);let d=t.createElement("span");d.dataset.docxDeco="strike",co(d.style,a,i),l.append(d),e.append(l),s=d;}else r?uo(e.style,r,i):a!=="none"&&co(e.style,a,i);s.textContent=o;}function B(t,e,o,n){let i=t.createElement(e);return i.style.position="absolute",i.style.left=`${o.x*n}px`,i.style.top=`${o.y*n}px`,i.style.width=`${o.width*n}px`,i.style.height=`${o.height*n}px`,i}function Pn(t,e,o){let n=e.fieldAtom;!n||(t.dataset.fieldAtom=n.formField?"form":"field",!(n.formField?o.shadeFormFields!==false:(o.fieldShading??Te)!=="never"))||(t.classList.add("docx-field-atom"),(n.formField||(o.fieldShading??Te)==="always")&&t.classList.add("docx-field-atom--shaded"));}function An(t,e,o,n,i){let r=t.createElement("span"),a=chunk55AT3MOU_cjs.sa(e.style,e.fontSlot);if(e.equation)return r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end),Q(r,a,o),Qt(t,r,e.equation,o.scale),me(r,e,o),r;r.className="layout-run layout-run-text",r.style.display="inline-block",r.style.verticalAlign="baseline",r.style.boxSizing="border-box",r.style.height=`${n*o.scale}px`,r.style.paddingTop=`${i*o.scale}px`,r.style.lineHeight=`${(n-i)*o.scale}px`,e.range.end>e.range.start?(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)):(r.setAttribute("aria-hidden","true"),r.contentEditable="false"),Q(r,a,o),Pn(r,e,o),me(r,e,o);let s=eo(t,r,e,o.scale);if(e.text===" "){r.style.overflow="hidden",r.style.verticalAlign="top";let l=xo(e.style);l&&e.tabLeader!=="underscore"&&(r.dataset.docxTabUnderline="",kn(r.style,l,o.scale));}return vo(t,s,chunk55AT3MOU_cjs.jc(e),e.style,o.scale),pt(r,e,o.scale),yt(r,e),e.projected&&(r.dataset.docxField="",r.setAttribute("contenteditable","false"),e.noteNav?(r.style.userSelect="none",e.noteNav.direction==="to-note"?(r.dataset.docxNoteRef="",r.dataset.docxNoteScope=e.noteNav.scopeId,e.text.length>0&&r.setAttribute("aria-description",e.text)):(r.dataset.docxNoteMarkBack="",r.dataset.docxNoteScope=e.noteNav.scopeId)):e.fieldAtom?.formControl?(r.style.userSelect="none",r.style.cursor="pointer"):(r.style.pointerEvents="none",r.style.userSelect="none")),r}function yo(t,e,o){let n=t.createElement("a");return n.className="docx-hyperlink",n.style.cursor=!o.inertLinks&&e.href?"pointer":"default",n.dataset.docxLink=e.id,n.dataset.docxLinkKind=e.kind,n.setAttribute("tabindex","-1"),!o.inertLinks&&e.href&&(n.setAttribute("href",e.href),e.kind==="external"&&n.setAttribute("rel","noopener noreferrer")),e.tooltip&&n.setAttribute("title",e.tooltip),n.style.display="inline-block",n.style.verticalAlign="baseline",n.style.textDecoration="none",n.style.color="inherit",n}function Ln(t,e,o,n=false,i=chunk55AT3MOU_cjs.Z){let r=o.scale,a=t.createElement("div");a.className="docx-line layout-line",a.dataset.lineId=e.id,a.dataset.paragraphId=e.range.paragraphId,a.style.position="absolute",a.style.top=`${e.box.y*r}px`,a.style.left=`${e.contentX*r}px`,a.style.height=`${e.box.height*r}px`,a.style.fontSize="0",a.style.whiteSpace="pre",a.style.overflow="visible";let s=e.leading??0,l=Math.min(Math.max(s,...e.spans.map(x=>x.box.height+s),e.spans.length===0?e.box.height-(e.trailingSpacing??0):0),e.box.height),d=Math.max(0,e.box.height-l);a.style.boxSizing="border-box",a.style.paddingBottom=`${d*r}px`,a.style.lineHeight=`${(e.box.height-d)*r}px`;let c=null,u=null,p=null,h=new Map;for(let[x,m]of chunk55AT3MOU_cjs.Ja(e).entries())h.set(m.paragraphId,x);let y=x=>h.get(x)??0,f=[...e.drawings??[]].sort((x,m)=>y(x.paragraphId)-y(m.paragraphId)||x.start-m.start),g=0,R=e.spans.some(x=>x.style.shaping!==void 0)||(e.drawings??[]).some(chunk55AT3MOU_cjs.Nd),w=0,b=e.contentX,L=(x,m)=>{for(;g<f.length&&(y(f[g].paragraphId)<y(x)||y(f[g].paragraphId)===y(x)&&f[g].start<m);){let S=f[g],C=R?Math.max(0,S.advanceEnd-S.advanceStart):Math.max(0,S.advanceEnd-b);b=Math.max(b,S.advanceEnd);let k=t.createElement("span");k.className="docx-inline-drawing-advance",k.dataset.docxMarker="",k.dataset.drawingParagraphId=S.paragraphId,k.dataset.drawingStart=String(S.start),k.setAttribute("contenteditable","false"),k.setAttribute("aria-hidden","true"),k.style.display="inline-block",k.style.width=`${C*r}px`,k.style.height=`${S.baselineOffset*r}px`,k.style.lineHeight="0",k.style.pointerEvents="none",k.style.verticalAlign="baseline",a.append(k),w+=C,g+=1,c=null,u=null;}},D=x=>{let m=x.wrapAdvanceBefore??0;if(m<=.001)return;let S=t.createElement("span");S.className="docx-wrap-advance",S.dataset.docxMarker="",S.setAttribute("contenteditable","false"),S.setAttribute("aria-hidden","true"),S.style.display="inline-block",S.style.width=`${m*r}px`,S.style.height="0",S.style.lineHeight="0",S.style.pointerEvents="none",S.style.verticalAlign="baseline",a.append(S),c=null,u=null;},F=0,H=false;for(let[x,m]of e.spans.entries()){let S=g;L(m.range.paragraphId,m.range.start),R||D(m);let C=!R&&g>S?m.box.x-b-(m.wrapAdvanceBefore??0):0;b=Math.max(b,m.box.x+m.box.width);let k=Math.min(m.box.height+s,e.box.height),P=m.noteSeparator?ct(t,m,e,r):An(t,m,o,k,s);R&&(P.style.position="relative",P.style.left=`${(m.box.x-e.contentX-w)*r}px`,P.style.width||(P.style.width=`${m.box.width*r}px`),P.style.direction=m.style.shaping?.direction??"ltr",P.style.unicodeBidi="isolate",m.style.shaping?.wordSpacingPt&&(P.style.wordSpacing=`${m.style.shaping.wordSpacingPt*r}px`),w+=m.box.width);let He=F>0&&!H?F:C;He>.001&&(P.style.marginLeft=`${He*r}px`);let Fe=e.spans[x+1],ue=R?0:En(e,x+1,y);H=ue>0&&Fe!==void 0&&$n(m,Fe),H&&(P.style.wordSpacing=`${ue*r}px`),F=ue;let I=m.link;if(!I){c=null,u=null,p=null,a.append(P);continue}if(m.fieldAtom){c!==null&&u===I.id&&p===m.range.start||(c=yo(t,I,o),u=I.id,p=m.range.start,a.append(c)),c.append(P);continue}(!c||u!==I.id||p!==null)&&(c=yo(t,I,o),u=I.id,p=null,a.append(c)),c.append(P);}L(chunk55AT3MOU_cjs.Ja(e)[chunk55AT3MOU_cjs.Ja(e).length-1]?.paragraphId??e.range.paragraphId,Number.POSITIVE_INFINITY),lt(a,e,r,i,x=>Q(a,x,o));let z=Object.freeze({x:e.contentX,y:e.box.y,width:e.box.width,height:e.box.height});ut(t,a,e,r),o.showParagraphMarks&&e.manualBreakAfter&&ht(t,e,a,r,o.revisionStyles,n);let v=go(fo(o));if(e.drawings&&e.drawings.length>0)for(let x of Wt(t,e,v.ctx,v.urlRegistry,z))a.append(x);return a}function En(t,e,o){if(e<=0||e>=t.spans.length)return 0;let n=t.spans[e-1],i=t.spans[e],r=o(n.range.paragraphId),a=o(i.range.paragraphId);if(t.drawings?.some(d=>{let c=o(d.paragraphId),u=c>r||c===r&&d.start>=n.range.start,p=c<a||c===a&&d.start<i.range.start;return u&&p}))return 0;let l=i.box.x-(n.box.x+n.box.width)-(i.wrapAdvanceBefore??0);return l>.001?l:0}var Mn=/[\t\n\r \u00A0\u1361\u{10100}-\u{10102}\u{1039F}\u{1091F}]/u;function $n(t,e){return !t.text.endsWith(" ")||t.style.horizontalScalePercent!==100||!Cn(t,e)||(e.wrapAdvanceBefore??0)>.001?false:!Mn.test(t.text.slice(0,-1))}function Cn(t,e){return !t.link&&!e.link?true:!t.link||!e.link||t.link.id!==e.link.id||!!t.fieldAtom!=!!e.fieldAtom?false:!t.fieldAtom||t.range.start===e.range.start}function j(t,e,o){let n=o.scale,i=B(t,"div",e.box,n);i.className="docx-paragraph-fragment layout-paragraph",e.clipToBox&&(i.style.overflow="hidden"),i.dataset.paragraphId=e.paragraphId,i.dataset.fragmentIndex=String(e.fragmentIndex),be(i,e),o.readOnlyParagraphIds?.has(e.paragraphId)&&(i.classList.add("docx-generated-region"),i.dataset.docxReadOnly="",i.setAttribute("contenteditable","false")),o.emptyTocPlaceholderIds?.has(e.paragraphId)&&(i.classList.add("docx-toc-empty-placeholder"),i.dataset.docxTocEmpty=""),e.shading&&W.test(e.shading)&&e.shadingBox&&i.append(Hn(t,e,n)),e.marker&&i.append(Tn(t,e,o));for(let a of e.lines)for(let s of a.spans){if(!s.tabLeader)continue;let l=Dn(t,e,a,s,o);l&&i.append(l);}let r=null;for(let a of e.lines){let s=Ln(t,a,o.revisionMarkup&&chunk55AT3MOU_cjs.fb(e.props)?{...o,paragraphFormatRevision:chunk55AT3MOU_cjs.fb(e.props)}:o,chunk55AT3MOU_cjs.dc(e.props),e.emptyParagraphStyle);r=s,e.markFormatRevision&&a===e.lines[e.lines.length-1]&&be(s,e,true),s.style.top=`${(a.box.y-e.box.y)*n}px`,s.style.left=`${(a.contentX-e.box.x)*n}px`,i.append(s);}if(o.showParagraphMarks&&e.paragraphEnd||e.markRevisions&&e.markRevisions.length>0){let a=ft(t,e.markRevisions??[],o.revisionStyles,o.revisionMarkup,o.revisionKindColors),s=e.lines[e.lines.length-1];if(s&&r){let l=e.paragraphMarkSizePt??e.emptyParagraphStyle?.fontSizePt??s.spans.at(-1)?.style.fontSizePt??chunk55AT3MOU_cjs.Z.fontSizePt;xe(a,r,s,chunk55AT3MOU_cjs.dc(e.props),l,n);}}if(e.borders)for(let a of e.borders)i.append(po(t,e,a,n));else e.bottomBorder&&i.append(po(t,e,{side:"bottom",edge:e.bottomBorder.edge,box:e.bottomBorder.box},n));return i}function Tn(t,e,o){let n=e.marker,i=o.scale,r=dt(t,e,fo(o));if(r)return r;let a=e.lines[0]?.leading??0,s=B(t,"span",n.box,i);s.className="docx-list-marker",s.dataset.docxMarker="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.left=`${(n.box.x-e.box.x)*i}px`,s.style.top=`${(n.box.y-e.box.y)*i}px`,s.style.display="block",s.style.overflow="visible",s.style.whiteSpace="pre";let l=e.lines[0],d=l?Math.max(a,...l.spans.map(h=>h.box.height+a),l.spans.length===0?l.box.height-(l.trailingSpacing??0):0):n.box.height,c=Math.min(d,n.box.height),u=Math.max(0,n.box.height-c);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${u*i}px`,s.style.lineHeight=`${c*i}px`;let p=t.createElement("span");return p.style.display="inline-block",p.style.verticalAlign="baseline",p.style.boxSizing="border-box",p.style.height=`${c*i}px`,p.style.paddingTop=`${a*i}px`,p.style.lineHeight=`${(c-a)*i}px`,Q(p,n.style,o),n.pieces&&(p.dir="rtl"),vo(t,p,n.text,n.style,i),s.append(p),s}function Dn(t,e,o,n,i){let r=n.tabLeader?chunk55AT3MOU_cjs.Rb.get(n.tabLeader):void 0;if(!r||n.box.width<=0)return null;let a=i.scale,s=t.createElement("div");s.className="docx-tab-leader",s.dataset.docxTabLeader="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.position="absolute",n.tabLeader==="underscore"&&(s.style.zIndex="1"),s.style.left=`${(n.box.x-e.box.x)*a}px`,s.style.top=`${(o.box.y-e.box.y)*a}px`,s.style.width=`${n.box.width*a}px`,s.style.height=`${o.box.height*a}px`,s.style.overflow="hidden",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none";let l=o.leading??0,d=Math.min(n.box.height+l,o.box.height),c=Math.max(0,o.box.height-d);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${c*a}px`,s.style.lineHeight=`${(o.box.height-c)*a}px`;let u=t.createElement("span");u.style.display="inline-block",u.style.verticalAlign="baseline",Q(u,n.style,i),u.style.boxSizing="border-box",u.style.height=`${d*a}px`,u.style.paddingTop=`${l*a}px`,u.style.lineHeight=`${(d-l)*a}px`,n.tabLeader==="heavy"&&(u.style.fontWeight="bold");let p=n.tabLeaderAdvancePt&&n.tabLeaderAdvancePt>0?n.tabLeaderAdvancePt:Math.max(.5,n.style.fontSizePt*.2),h=chunkHO5XFO32_cjs.na((i.tabLeaderOriginXPt??0)+n.box.x,n.box.width,p);return u.style.marginLeft=`${h.offsetPt*a}px`,u.textContent=r.repeat(h.count),u.style.letterSpacing="0",s.append(u),s}function Hn(t,e,o){let n=e.shadingBox,i=B(t,"div",n,o);return i.className="docx-paragraph-shading",i.setAttribute("aria-hidden","true"),i.style.left=`${(n.x-e.box.x)*o}px`,i.style.top=`${(n.y-e.box.y)*o}px`,i.style.backgroundColor=`#${e.shading}`,i}function po(t,e,o,n){let i=B(t,"div",o.box,n);i.className=`docx-paragraph-border docx-paragraph-border-${o.side}`,i.setAttribute("aria-hidden","true");let r=(o.box.x-e.box.x)*n,a=(o.box.y-e.box.y)*n,s=o.side==="left"||o.side==="right"||o.side==="bar",l=(s?o.box.width:o.box.height)*n,c=ie(o.edge.val)?l:Math.max(1,l);i.style.left=`${o.side==="right"?r-(c-l):r}px`,i.style.top=`${o.side==="bottom"?a-(c-l):a}px`,s?i.style.width=`${c}px`:i.style.height=`${c}px`;let u=o.edge.color&&W.test(o.edge.color)?o.edge.color:"000000";return i.style.backgroundColor=`#${u}`,_(i,o.edge.val,u,s,c,n),i}function Fn(t,e,o,n){let i=n.scale,r=B(t,"div",e.box,i);if(r.className="docx-table-cell",r.style.left=`${(e.box.x-o.x)*i}px`,r.style.top=`${(e.box.y-o.y)*i}px`,r.style.boxSizing="border-box",r.style.overflow="visible",r.dataset.cellId=e.id,r.dataset.gridColumn=String(e.gridColumn),r.dataset.gridSpan=String(e.gridSpan),e.rowSpan&&e.rowSpan>1&&(r.dataset.rowSpan=String(e.rowSpan)),e.paintInert||e.vMergeContinue)return r.dataset.vMergeContinue="true",r.style.border="none",r.style.backgroundColor="transparent",r;if(r.style.border="none",no(t,r,e.borders,i),e.shading&&W.test(e.shading)&&(r.style.backgroundColor=`#${e.shading}`),e.revisionShading&&n.revisionMarkup){let s=n.revisionMarkup.cells[e.revisionShading];if(r.dataset.revisionCell=e.revisionShading,s!=="none"){let l=e.revisionShadingAuthor??"";r.style.backgroundColor=s==="byAuthor"?n.revisionStyles?.styles.get(l)?.color??$(n.revisionCellStyles?.authorSlots.get(l)??0):`var(--doc-revision-color-${s})`;}}let a=ro(t,e,i,r);for(let s of e.blocks){let l=s.kind==="table"?G(t,s,n):j(t,s,n);l.style.left=`${(s.box.x-e.box.x)*i}px`,l.style.top=`${(s.box.y-e.box.y)*i}px`,a.append(l);}return r}function G(t,e,o){let n=o.scale,i=B(t,"div",e.box,n);i.className="docx-table-fragment layout-table",i.dataset.tableId=e.tableId,i.dataset.fragmentIndex=String(e.fragmentIndex),i.style.overflow="visible";for(let r of e.rows){let a=B(t,"div",r.box,n);a.className="docx-table-row",r.revisionKind&&(o.revisionMarkup&&(a.style.backgroundColor="transparent"),a.classList.add("docx-table-row--revision",r.revisionKind==="insert"?"layout-revision-ins":"layout-revision-del"),a.dataset.revisionKind=r.revisionKind,r.revisionId!==void 0&&(a.dataset.revisionId=r.revisionId),r.revisionAuthor!==void 0&&(a.dataset.reviewAuthor=r.revisionAuthor),r.revisionDate!==void 0&&(a.dataset.revisionDate=r.revisionDate)),a.dataset.rowId=r.id,r.isHeaderRepeat&&(a.dataset.headerRepeat="true"),a.style.left=`${(r.box.x-e.box.x)*n}px`,a.style.top=`${(r.box.y-e.box.y)*n}px`,a.style.overflow="visible";for(let s of r.cells)a.append(Fn(t,s,r.box,o));i.append(a);}return i}function Bn(t,e,o,n,i){let r={...o,paintInstance:`p${e.index}`,tabLeaderOriginXPt:e.contentBox.x-e.box.x},a=B(t,"div",e.box,r.scale);if(a.className="docx-page",gt(a),a.dataset.pageIndex=String(e.index),r.ariaHidden&&(a.setAttribute("aria-hidden","true"),a.setAttribute("role","presentation")),a.dataset.materialized=String(n),!n)return a;let s=Object.freeze({x:-(e.contentBox.x-e.box.x),y:-(e.contentBox.y-e.box.y),width:e.box.width,height:e.box.height}),l=e.pageBorders?oo(t,e.pageBorders,r.scale):null;l&&e.pageBorders&&(l.dataset.docxZOrder=e.pageBorders.zOrder),l&&e.pageBorders?.zOrder==="back"&&a.append(l);let d=new Map,c=Tt(t,a,e,{chrome:r,paintFragment:(y,f)=>{let g=d.get(f);return g||(g={...r,inertLinks:true,tabLeaderOriginXPt:f},d.set(f,g)),y.kind==="table"?G(t,y,g):j(t,y,g)},appendDrawings:(y,f,g,R,w,b)=>mo(t,y,f,r,g,R,w,b)});so(t,a,e,r,s,"behind");let u=t.createElement("div");u.className="docx-page-content",u.style.position="absolute",u.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,u.style.top=`${(e.contentBox.y-e.box.y)*r.scale}px`,u.style.width=`${e.contentBox.width*r.scale}px`,u.style.height=`${e.contentBox.height*r.scale}px`,r.activeHeaderFooterRId&&u.setAttribute("contenteditable","false");for(let y of e.columnSeparators??[]){let f=t.createElement("div");f.className="docx-column-separator",f.setAttribute("contenteditable","false"),f.style.position="absolute",f.style.left=`${y.x*r.scale}px`,f.style.top=`${y.y*r.scale}px`,f.style.width=`${y.width*r.scale}px`,f.style.height=`${y.height*r.scale}px`,f.style.backgroundColor="currentColor",f.style.pointerEvents="none",u.append(f);}let p=i?new Map:null;for(let y of e.fragments){let f=y.kind==="table"?G(t,y,r):j(t,y,r);p?.set(y,f),u.append(f);}i&&p&&(i.content=u,i.blocks=p),a.append(u),so(t,a,e,r,s,"inFront"),l&&e.pageBorders?.zOrder==="front"&&a.append(l),mt(t,a,e,r,j,G);for(let y of ["header","footer"]){if(e[y]||e.parityBlank)continue;let f=t.createElement("div");f.className="docx-hf docx-hf--placeholder",f.dataset.docxHf=y,f.setAttribute("contenteditable","false");let g=y==="header"?e.contentBox.y-e.box.y:e.box.y+e.box.height-(e.contentBox.y+e.contentBox.height),R=Math.min(g,In);if(R<=0)continue;let w=Math.max(0,Math.min(Nn,g-R)),b=y==="header"?w:e.box.height-w-R;f.style.position="absolute",f.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,f.style.top=`${b*r.scale}px`,f.style.width=`${e.contentBox.width*r.scale}px`,f.style.height=`${R*r.scale}px`,a.append(f);}for(let y of c)a.append(y);xt(t,a,e,r);let h=kt(t,e,r.scale,r.changeBars,r.changeBarsToggle,r.revisionMarkup,r.facingPages,r.revisionStyles);return h&&a.append(h),a}var In=30,Nn=36,De=new WeakMap;function ji(t){De.delete(t);}function On(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function zn(t,e){let o=Object.keys(t);if(o.length!==Object.keys(e).length)return false;for(let n of o){let i=t[n],r=e[n];if(i!==r)return false}return true}function Kn(t,e){if(t.length!==e.length)return false;for(let o=0;o<t.length;o+=1)if(t[o]!==e[o])return false;return true}function _n(t,e){if(t===e)return false;let o=new Set([...Object.keys(t),...Object.keys(e)]);for(let n of o){if(n==="fragments")continue;let i=t[n],r=e[n];if(i!==r&&!(Array.isArray(i)&&Array.isArray(r)&&Kn(i,r))&&!(typeof i=="object"&&typeof r=="object"&&i!==null&&r!==null&&!Array.isArray(i)&&!Array.isArray(r)&&zn(i,r)))return false}return true}var ho="docx-column-separator";function Un(t,e,o,n){let i=e.content,r=e.blocks;if(!i||!r||i.parentElement!==e.element)return null;let a={...n,paintInstance:`p${o.index}`,tabLeaderOriginXPt:o.contentBox.x-o.box.x},s=new Map,l=[];for(let p of o.fragments){let h=r.get(p)??(p.kind==="table"?G(t,p,a):j(t,p,a));s.set(p,h),l.push(h);}let d=new Set(l),c=i.firstChild;for(;c;){let p=c.nextSibling,h=c;!d.has(h)&&h.classList?.contains(ho)!==true&&c.remove(),c=p;}let u=i.firstChild;for(;u&&u.classList?.contains(ho);)u=u.nextSibling;for(let p of l){if(p===u){u=u.nextSibling;continue}i.insertBefore(p,u);}return Pt(t,e.element,o,n.scale,n.changeBars,n.changeBarsToggle,n.revisionMarkup,n.facingPages,n.revisionStyles),{record:o,materialized:true,element:e.element,content:i,blocks:s}}function jn(t,e,o,n){let i=t.element;return !t.materialized&&On(t.record.box,e.box)&&i.style.left===`${e.box.x*o}px`&&i.style.top===`${e.box.y*o}px`&&i.style.width===`${e.box.width*o}px`&&i.style.height===`${e.box.height*o}px`&&i.getAttribute("aria-hidden")===(n?"true":null)}function Gn(t,e,o={}){Wn(t,e,o);}function Wn(t,e,o,n){t.classList.toggle("docx-show-paragraph-marks",o.showParagraphMarks??false);let i=o.contentControlChrome,r=i?`${i.showAll===true?"1":"0"}:${i.activeIds?[...i.activeIds].sort().join(","):""}:${i.checkedIds?[...i.checkedIds].sort().join(","):""}:${i.tocControlIds?[...i.tocControlIds].sort().join(","):""}:${i.suppressedIds?[...i.suppressedIds].sort().join(","):""}:${i.readOnly===true?"ro":""}`:"",a=o.drawingStrings??Ee,s=o.imageUrlPort!==void 0?zt(t,o.imageUrlPort):null,l=i?.additionalBoundaries?i.additionalBoundaries.flatMap(v=>v.fragments.map(x=>`${v.id}:${x.pageIndex}:${x.box.x}:${x.box.y}:${x.box.width}:${x.box.height}`)).sort().join(","):"",d=o.readOnlyParagraphIds?[...o.readOnlyParagraphIds].sort().join(","):"",c=o.emptyTocPlaceholderIds?[...o.emptyTocPlaceholderIds].sort().join(","):"",u=i?.tocControlIds?[...i.tocControlIds].sort().join(","):"",p=ge(o.revisionStyles??(o.revisionMarkup?"author":void 0),e,n),h=o.revisionMarkup&&Object.values(o.revisionMarkup.cells).includes("byAuthor")?p??ge("author",e,n):null,y={scale:o.scale??96/72,ariaHidden:o.ariaHidden??true,drawingStrings:a,urlRegistry:s,...o.fontAlias?{fontAlias:o.fontAlias}:{},...o.readOnlyParagraphIds?{readOnlyParagraphIds:o.readOnlyParagraphIds}:{},...o.emptyTocPlaceholderIds?{emptyTocPlaceholderIds:o.emptyTocPlaceholderIds}:{},...o.defaultFontFamily?{defaultFontFamily:o.defaultFontFamily}:{},...o.fieldShading?{fieldShading:o.fieldShading}:{},showParagraphMarks:o.showParagraphMarks??false,changeBars:o.changeBars??"all-markup",changeBarsToggle:o.changeBarsToggle??false,...o.shadeFormFields!==void 0?{shadeFormFields:o.shadeFormFields}:{},...p?{revisionStyles:p}:{},...h?{revisionCellStyles:h}:{},...o.revisionMarkup?{revisionMarkup:o.revisionMarkup}:{},facingPages:o.facingPages,revisionKindColors:o.revisionStyles==="kind",...o.imageUrlPort?{imageUrlPort:o.imageUrlPort}:{},...o.activeHeaderFooterRId?{activeHeaderFooterRId:o.activeHeaderFooterRId}:{},...o.activeHeaderFooterPageIndex!==void 0?{activeHeaderFooterPageIndex:o.activeHeaderFooterPageIndex}:{},...i?{contentControlChrome:i}:{}},f=t.ownerDocument,g=`${y.scale}|${y.ariaHidden}|${y.fontAlias?xn(y.fontAlias):""}|${y.defaultFontFamily??""}|cc:${r}:${l}|toc:${u}|ro:${d}|tocEmpty:${c}|${o.imageUrlPort?"url":""}|${Zt(a)}|markup:${JSON.stringify(o.revisionMarkup)}|facing:${o.facingPages}|rev:${fe(p)}|cells:${fe(h)}|marks:${o.showParagraphMarks??false}|bars:${y.changeBars}:${y.changeBarsToggle}`,R=De.get(t),w=R?.parameters===g,b=w?new Map(R.pages.map(v=>[v.record,v])):null,L=R?new Map(R.pages.map(v=>[v.record.index,v])):null,D=e.pages.map(v=>{let x=o.materialize?.has(v.index)??true,m=b?.get(v);if(m&&m.materialized===x)return m;let S=L?.get(v.index);if(!x&&S&&jn(S,v,y.scale,y.ariaHidden))return {record:v,materialized:false,element:S.element};if(w&&x&&S?.materialized&&_n(S.record,v)){let P=Un(f,S,v,y);if(P)return P}let C={},k=Bn(f,v,y,x,C);return {record:v,materialized:x,element:k,...C.content?{content:C.content}:{},...C.blocks?{blocks:C.blocks}:{}}});De.set(t,{parameters:g,pages:D}),t.dataset.revision=String(e.revision),s&&s.reconcile(qt(e),Yt(e));let F=new Set(D.map(v=>v.element)),H=t.firstChild;for(;H;){let v=H.nextSibling;F.has(H)||H.remove(),H=v;}let z=t.firstChild;for(let v of D){if(v.element===z){z=z.nextSibling;continue}t.insertBefore(v.element,z);}Lt(D,y);}function Vn(t,e,o,n){let i=t.ownerDocument,r=n.scale,a=[];for(let s of o){let l=e.pages[s.pageIndex];if(!l)continue;let d=i.createElement("div");d.className=s.className??n.className??"docx-cell-selection-rect",d.style.position="absolute";let c=n.pageOffsetX?.get(s.pageIndex)??0;d.style.left=`${(l.contentBox.x+s.x+c)*r}px`,d.style.top=`${(l.contentBox.y+s.y)*r}px`,d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,s.reviewAuthor&&(d.dataset.reviewAuthor=s.reviewAuthor.author,d.dataset.reviewAuthorSlot=String(s.reviewAuthor.slot%M),d.style.setProperty("--doc-review-author-current",s.reviewAuthor.color)),s.activeBackground!==void 0&&(d.style.backgroundColor=s.activeBackground,d.style.boxShadow="none"),a.push(d);}t.replaceChildren(...a);}
2
- exports.a=$;exports.b=at;exports.c=Jn;exports.d=Eo;exports.e=Qn;exports.f=Se;exports.g=Qr;exports.h=Zt;exports.i=Ee;exports.j=ei;exports.k=Te;exports.l=Sn;exports.m=ji;exports.n=Gn;exports.o=Wn;exports.p=Vn;
@@ -1 +0,0 @@
1
- 'use strict';var chunk55AT3MOU_cjs=require('./chunk-55AT3MOU.cjs'),chunkAVKVRU7Z_cjs=require('./chunk-AVKVRU7Z.cjs'),chunk4KZ6L5YF_cjs=require('./chunk-4KZ6L5YF.cjs');var _t=Object.freeze({}),Bt=Object.freeze([]);function Vt(e){let t=Object.keys(e);if(t.length===0)return _t;let r={};for(let n of t){let o=e[n];o!==void 0&&(r[n]=o);}return Object.freeze(r)}function Kt(e){let t=new Map(chunk4KZ6L5YF_cjs.Xf(e.part())),r=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(!r.has(i)){r.add(i);for(let[s,c]of chunk4KZ6L5YF_cjs.Xf(i))t.has(s)||t.set(s,c);}let n=e.currentPackage();for(let o of ["footnote","endnote"]){let a=chunk4KZ6L5YF_cjs.Lg(n,o);if(!(!a||r.has(a))){r.add(a);for(let[i,s]of chunk4KZ6L5YF_cjs.Xf(a))t.has(i)||t.set(i,s);}}return t}function zt(e,t){let r=chunk55AT3MOU_cjs.jf(e,t);if(!r)return null;let n=e.pages[r.pageIndex];if(!n)return null;let o=chunk55AT3MOU_cjs.df(n),a=chunk55AT3MOU_cjs.ff(e,t.paragraphId,r.pageIndex),i=Object.freeze({x:r.x+a.x,y:r.y+a.y,height:r.height});return Object.freeze({anchor:Object.freeze({...t}),pageIndex:r.pageIndex,pageContent:i,pageStack:Object.freeze({x:o.x+i.x,y:o.y+i.y})})}function Ht(e,t){let r=[];for(let n of t.values()){let o=zt(e,n);o&&r.push(o);}return r.length===0?Bt:Object.freeze(r)}function lt(e,t){return {documentMetadata:Vt(e.documentProperties()),destinations:Ht(t,Kt(e))}}function Or(e,t){let r=e.destinations;if(r){for(let n of r)if(n.anchor.name===t)return n}}function pt(e={}){return Object.freeze({async decode(t,r,n){let o=chunk4KZ6L5YF_cjs.Vd(t,r);if(!o)throw new Error(`Unsupported or malformed ${r} image`);if(o.pixelWidth>n.maxDimension||o.pixelHeight>n.maxDimension||o.pixelWidth>n.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})},...e.convertPreserved?{convertPreserved:e.convertPreserved}:{}})}var mt=new WeakMap;function ft(e,t){let r=mt.get(e);r||(r=chunk55AT3MOU_cjs.sd(e),mt.set(e,r));let n=r.styleCascade(),o=new Set;if(t===e.part())for(let c of chunk55AT3MOU_cjs.Hc(t,void 0,void 0,n,r.numberingIndex()))for(let h of chunk55AT3MOU_cjs.Mb(c)?.slice(0,-1)??[])o.add(h.paragraph.id);let a=c=>{if(c.kind==="textValue")return false;let h=c.children.find(d=>d.kind!=="textValue"&&d.namespaceUri===chunk4KZ6L5YF_cjs.fa&&d.localName==="pPr"),p=h?.kind!=="textValue"?h?.children.find(d=>d.kind!=="textValue"&&d.namespaceUri===chunk4KZ6L5YF_cjs.fa&&d.localName==="rPr"):void 0;return p!==void 0&&chunk4KZ6L5YF_cjs.sa(p,"vanish")},i=0,s=(c,h)=>{if(++i>chunk4KZ6L5YF_cjs.sd||h>chunk4KZ6L5YF_cjs.W||c.kind==="textValue")return false;if(c.kind==="paragraph"&&!o.has(c.id)&&(chunk55AT3MOU_cjs.Fc(c,n,false)||a(c))&&chunk4KZ6L5YF_cjs.Rf(c).length>0)return true;for(let p of c.children){if(i>=chunk4KZ6L5YF_cjs.sd)break;if(s(p,h+1))return true}return false};return s(t.root,0)}var yt=new WeakMap,Wt=new Set(["shape","rect","roundrect","oval","line","group","arc","curve","polyline","image"]);function $t(e,t){let r=yt.get(e.root);if(r&&r.stylesPart===t)return r.codes;let n=chunk4KZ6L5YF_cjs.Sa(t),o=new Set,a=[{node:e.root,scope:chunk4KZ6L5YF_cjs.ed(),depth:0,mcSelected:false,framed:false}],i=0;for(;a.length;){let{node:c,scope:h,depth:p,mcSelected:d,framed:y}=a.pop();if(++i>chunk4KZ6L5YF_cjs.sd||p>chunk4KZ6L5YF_cjs.W){o.add("scan-limit");break}if(c.kind==="textValue")continue;if(i+a.length+c.children.length>chunk4KZ6L5YF_cjs.sd){o.add("scan-limit");break}let g=chunk4KZ6L5YF_cjs.dd(h,c),w=y||n(c),l=chunk4KZ6L5YF_cjs.cd(c)?c:void 0;if(l){if(chunk4KZ6L5YF_cjs.wd(l,g).drawing)continue;let m=chunk4KZ6L5YF_cjs.vd(l,g);m.refused&&o.add("scan-limit"),m.branch&&a.push({node:m.branch,scope:g,depth:p+1,mcSelected:true,framed:w});continue}if(!d&&chunk4KZ6L5YF_cjs.$c(c)&&!(w&&c.localName==="object")){let m=chunk4KZ6L5YF_cjs.bd(c,e.name)?.textboxStory?.content;m&&a.push({node:m,scope:g,depth:p+1,mcSelected:d,framed:w});continue}if(c.namespaceUri==="urn:schemas-microsoft-com:vml"&&c.localName==="textbox"){o.add("legacy-textbox");continue}c.namespaceUri==="urn:schemas-microsoft-com:vml"&&Wt.has(c.localName)&&!c.children.some(m=>m.kind!=="textValue"&&m.namespaceUri==="urn:schemas-microsoft-com:vml"&&m.localName==="textbox")&&o.add("legacy-drawing");for(let m of c.children)a.push({node:m,scope:g,depth:p+1,mcSelected:d,framed:w});}let s=Object.freeze([...o]);return yt.set(e.root,{stylesPart:t,codes:s}),s}function gt(e){let t=new Set([e.part()]);for(let r of e.headerFooterPartsBySection())for(let n of [r.headers,r.footers])for(let o of n.values())t.add(o);for(let r of ["footnote","endnote"]){let n=chunk4KZ6L5YF_cjs.Lg(e.currentPackage(),r);n&&t.add(n);}return Object.freeze([...t].flatMap(r=>[...$t(r,chunk4KZ6L5YF_cjs.Oc(e.currentPackage())),...ft(e,r)?["unsupported-style-separator"]:[]].map(n=>Object.freeze({code:n,partName:r.name}))))}function ht(e){let t=e.defaultTabStopPt?.(),r=e.view.part().name,n={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=chunk55AT3MOU_cjs.pe(n),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,inlineDrawingLayout:e.inlineDrawingLayout,drawingTokenForParagraph:e.drawingTokenForParagraph,drawingLayoutEpoch:e.drawingLayoutEpoch,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter},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,documentProperties:a.view.documentProperties(),inlineDrawingLayout:a.inlineDrawingLayout,drawingTokenForParagraph:a.drawingTokenForParagraph,drawingLayoutEpoch:a.drawingLayoutEpoch,projectionTokenForParagraph:s=>a.linkProjectors.tokenForParagraphForPart(r,s),projectionTokenForTable:s=>a.linkProjectors.tokenForTableForPart(r,s),projectionEpoch:a.linkProjectors.epochForPart(r),notes:o,displayMode:a.displayMode,revisionAuthorFilter:a.revisionAuthorFilter};return chunk55AT3MOU_cjs.Ue(a.view.part(),a.revision,i)}var Ut=65536;function bt(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function Gt(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])}function Yt(e,t,r){return e.rootStory!==t?false:t==="footnote"||t==="endnote"?e.noteScopeId===r:true}function Xt(e,t){if(t.story!=="textbox"||t.textboxPath.length===0)return null;let r=null;return chunk55AT3MOU_cjs.za(e,n=>{if(r||!Yt(t,n.story,n.noteScopeId))return;let o=n.story==="header"||n.story==="footer"?a=>chunk55AT3MOU_cjs.ua(a,n.origin,{x:e.box.x,y:e.box.y}):void 0;chunk55AT3MOU_cjs.Da(n.host,(a,i)=>{if(r||i.textboxDepth===0)return;let s=i.textboxPath.map(c=>c.drawingNodeId);Gt(s,t.textboxPath)&&(r=bt(e,i.storyOrigin));},n.origin,o);}),r}function qt(e,t){if(t.story==="textbox")return Xt(e,t)??{x:0,y:0};switch(t.rootStory){case "body":return {x:0,y:0};case "header":return e.header?chunk55AT3MOU_cjs.ef(e,e.header.box):{x:0,y:0};case "footer":return e.footer?chunk55AT3MOU_cjs.ef(e,e.footer.box):{x:0,y:0};case "footnote":case "endnote":{let n=(t.rootStory==="footnote"?e.footnotes:e.endnotes)?.notes.find(o=>o.scopeId===t.noteScopeId);return n?chunk55AT3MOU_cjs.ef(e,n.box):{x:0,y:0}}case "note-separator":{let r=t.noteAreaKind==="endnotes"?e.endnotes:e.footnotes,n=r?.separator?.box;return r?.continuationNotice&&chunk55AT3MOU_cjs.Da(r.continuationNotice,o=>{o.paragraphId===t.source.start.paragraphId&&(n=r.continuationNotice.box);}),n?chunk55AT3MOU_cjs.ef(e,n):{x:0,y:0}}default:return {x:0,y:0}}}function Pt(e){return Object.freeze({x:e.x,y:e.y,width:e.width,height:e.height})}function vt(e,t){let r=chunk55AT3MOU_cjs.df(e);return Object.freeze({x:r.x+t.x,y:r.y+t.y,width:t.width,height:t.height})}function Jt(e,t){let r=chunk55AT3MOU_cjs.jf(e,{paragraphId:t.source.start.paragraphId,offset:t.source.start.offset},{preferredPageIndex:t.pageIndex});if(!r||r.pageIndex!==t.pageIndex)return;let n=e.pages[r.pageIndex];if(!n)return;let o=qt(n,t),a=Object.freeze([Pt({x:r.x+o.x,y:r.y+o.y,width:0,height:r.height})]);return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>vt(n,i)))})}function Qt(e,t,r){let n=r.filter(i=>i.pageIndex===t.pageIndex);if(n.length===0)return St(t)?Jt(e,t):void 0;let o=e.pages[t.pageIndex];if(!o)return;let a=Object.freeze(n.map(i=>Pt(i)));return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>vt(o,i)))})}function St(e){return e.source.start.paragraphId===e.source.end.paragraphId&&e.source.start.offset===e.source.end.offset}function xt(e,t){return `${e}\0${t}`}function Zt(e,t,r){let n=Math.max(e.start,t.offset),o=Math.min(e.end,r.offset);return o>n?{start:n,end:o}:null}function er(e,t){let r=new Map,n=new Map,o=new Set,a=0;let i=(s,c)=>{if(a>=Ut)return false;a+=1;let h=xt(s.pageIndex,c),p=n.get(h);return p?p.push(s):n.set(h,[s]),true};for(let[s,c]of t.entries())for(let[h,p]of c.occurrences.entries()){if(St(p)||p.source.start.paragraphId!==p.source.end.paragraphId)continue;o.add(p.pageIndex);let d=`${s}\0${h}`,y={paragraphId:p.source.start.paragraphId,offset:p.source.start.offset},g={paragraphId:p.source.end.paragraphId,offset:p.source.end.offset},w=y.offset<=g.offset?{from:y,to:g}:{from:g,to:y};i({key:d,from:w.from,to:w.to,pageIndex:p.pageIndex},w.from.paragraphId);}if(n.size===0)return r;for(let s of e.pages)o.has(s.index)&&chunk55AT3MOU_cjs.za(s,c=>{let h=c.story==="header"||c.story==="footer"?p=>chunk55AT3MOU_cjs.ua(p,c.origin,{x:s.box.x,y:s.box.y}):void 0;chunk55AT3MOU_cjs.Da(c.host,(p,d)=>{let y=bt(s,d.storyOrigin);for(let g of p.lines)for(let w of chunk55AT3MOU_cjs.Ja(g)){let l=n.get(xt(s.index,w.paragraphId));if(l)for(let m of l){let b=Zt(w,m.from,m.to);if(!b)continue;let x=chunk55AT3MOU_cjs._e(g,b.start,void 0,w),v=chunk55AT3MOU_cjs._e(g,b.end,void 0,w,b.end>b.start),I=r.get(m.key)??[];I.push({pageIndex:s.index,x:Math.min(x,v)+y.x,y:g.box.y+y.y,width:Math.abs(v-x),height:g.box.height}),r.set(m.key,I);}}},c.origin,h);});return r}function It(e,t){let r=false;for(let o of t)if(o.occurrences.length!==0){r=true;break}if(!r)return t;let n=er(e,t);return t.map((o,a)=>{if(o.occurrences.length===0)return o;let i=o.occurrences.map((s,c)=>{let h=`${a}\0${c}`,p=Qt(e,s,n.get(h)??[]);return p?{...s,geometry:p}:s});return {...o,occurrences:Object.freeze(i)}})}function tr(e){let t=new Map,r=[{node:e.root,depth:0}];for(;r.length>0;){let{node:n,depth:o}=r.pop();if(!(n.kind==="textValue"||o>64)){n.kind==="paragraph"&&!t.has(n.id)&&t.set(n.id,t.size);for(let a=n.children.length-1;a>=0;a-=1)r.push({node:n.children[a],depth:o+1});}}return t}function Rt(){let e=new Map,t=n=>{let o=e.get(n.root);if(o)return o;let a=tr(n);return e.set(n.root,a),a},r={retainRevisionItems:false,revisionSites:chunk4KZ6L5YF_cjs.fj,locations:chunkAVKVRU7Z_cjs.La,commentAnchors:chunk4KZ6L5YF_cjs.Jh,deepOrder:t};return Object.freeze({collectReviewItems:n=>chunkAVKVRU7Z_cjs.Pa(n,r),deepParagraphOrderOfPart:t})}function rr(e,t){if(t)return true;let r=e.map(n=>n.root);for(;r.length>0;){let n=r.pop();if(chunk4KZ6L5YF_cjs.dj(n))return true;if(n.kind!=="textValue")for(let o of n.children)r.push(o);}return false}function nr(e,t){let r=[],n=new Set([t.name]),o=a=>{!a||n.has(a.name)||(n.add(a.name),r.push(a));};for(let a of chunk4KZ6L5YF_cjs.Re(e)){for(let i of a.headers.values())o(i);for(let i of a.footers.values())o(i);}return o(chunk4KZ6L5YF_cjs.Lg(e,"footnote")),o(chunk4KZ6L5YF_cjs.Lg(e,"endnote")),r}function or(e,t){switch(t.story){case "body":return e.mainDocumentPart;case "header":case "footer":return t.host.partName;case "footnote":return chunk4KZ6L5YF_cjs.Lg(e,"footnote")?.name??null;case "endnote":return chunk4KZ6L5YF_cjs.Lg(e,"endnote")?.name??null;case "note-separator":return chunk4KZ6L5YF_cjs.Lg(e,t.noteAreaKind==="footnotes"?"footnote":"endnote")?.name??null;default:return t}}function ar(e,t){let r=new Map;for(let n of e){let o=t.get(n.partName),a=o?.get(n.start.paragraphId),i=o?.get(n.end.paragraphId);if(a===void 0||i===void 0)continue;let s=Math.min(a,i),c=Math.max(a,i),h=r.get(n.partName);r.set(n.partName,{lower:Math.min(h?.lower??s,s),upper:Math.max(h?.upper??c,c)});}return r}function ir(e,t,r,n,o){let a=new Map(r.map(d=>[d.name,o(d)])),i=ar(n,a),s=new Map,c=new Map,h=(d,y,g,w,l,m,b)=>{let x=a.get(d)?.get(l),v=i.get(d);if(x===void 0||!v||x<v.lower||x>v.upper)return;let I=s.get(d)??new Map;s.set(d,I);let V=c.get(d)??new Map;c.set(d,V);let W=JSON.stringify([y.story,y.noteScopeId,y.noteAreaKind]),K=g==="textbox"?JSON.stringify([W,"textbox",w]):W,$=I.get(l)??[],j=`${l}\0${y.page.index}\0${K}`,T=V.get(j);T||(T={pageIndex:y.page.index,story:g,rootStory:y.story,textboxPath:w,noteScopeId:y.noteScopeId,noteAreaKind:y.noteAreaKind,laneKey:K,intervals:[],intervalKeys:new Set},V.set(j,T),$.push(T),I.set(l,$));let U=`${m}\0${b}`;T.intervalKeys?.has(U)||(T.intervalKeys?.add(U),T.intervals.push({start:m,end:b}));};chunk55AT3MOU_cjs.Aa(e,d=>{let y=or(t,d);!y||!i.has(y)||chunk55AT3MOU_cjs.Da(d.host,(g,w)=>{let l=w.textboxDepth>0?"textbox":d.story,m=w.textboxPath.map(x=>x.drawingNodeId),b=[];for(let x of g.lines){for(let v of x.spans)b.push(v.range);for(let v of x.drawings??[])b.push({paragraphId:v.paragraphId,start:v.start,end:v.start+1});}b.length===0&&b.push({paragraphId:g.range.paragraphId,start:g.range.start,end:g.range.end});for(let{paragraphId:x,start:v,end:I}of b)h(y,d,l,m,x,v,I);});}),chunk55AT3MOU_cjs.Ca(e,d=>{let y=d.drawing.ownerPartName;d.drawing.accessibility.hidden||!i.has(y)||h(y,d.root,d.story,d.textboxPath.map(g=>g.drawingNodeId),d.drawing.paragraphId,d.drawing.start,d.drawing.start+1);});for(let d of s.values())for(let y of d.values())for(let g of y){g.intervals.sort((l,m)=>l.start-m.start||l.end-m.end);let w=[];for(let l of g.intervals){let m=w.at(-1);m&&l.start<=m.end?m.end=Math.max(m.end,l.end):w.push({...l});}g.intervals.splice(0,g.intervals.length,...w),g.intervalKeys=void 0;}let p=new Map;for(let[d,y]of s){let g=a.get(d);if(!g)continue;let w=[];for(let[l,m]of y){let b=g.get(l);b!==void 0&&w.push({paragraphId:l,position:b,laneKeys:new Set(m.map(({laneKey:x})=>x))});}w.sort((l,m)=>l.position-m.position),p.set(d,w);}return {byPart:s,orderByPart:a,visibleByPart:p}}function Ot(e,t){let r=0,n=e.length;for(;r<n;){let o=r+n>>>1;e[o].position<t?r=o+1:n=o;}return r}function sr(e,t){if(e.start.paragraphId===e.end.paragraphId)return [e.start.paragraphId];let r=t.orderByPart.get(e.partName),n=t.visibleByPart.get(e.partName),o=r?.get(e.start.paragraphId),a=r?.get(e.end.paragraphId);if(!r||!n||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:d})=>d)??[]),h=new Set(t.byPart.get(e.partName)?.get(e.end.paragraphId)?.map(({laneKey:d})=>d)??[]),p=new Set([...c].filter(d=>h.has(d)));return p.size===0?[e.start.paragraphId,e.end.paragraphId]:n.slice(Ot(n,i),Ot(n,s+1)).filter(d=>[...d.laneKeys].some(y=>p.has(y))).map(d=>d.paragraphId)}function cr(e,t,r,n){return n?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,r)};return a.end>a.start?[a]:[]})}function dr(e,t){let r=Number.NEGATIVE_INFINITY;for(let n of e)for(let o of n.intervals)r=Math.max(r,o.end);return t!==r?new Set:new Set(e.filter(n=>n.intervals.some(o=>o.end===r)))}function kt(e,t,r){let n=[],o=new Set;for(let[a,i]of e.entries()){let s=r===void 0?void 0:r===null?"neutral":a<r?"replaced":"replacement";for(let c of sr(i,t)){let h=t.byPart.get(i.partName)?.get(c)??[],d=i.start.paragraphId===i.end.paragraphId&&i.start.offset===i.end.offset,y=c===i.start.paragraphId?i.start.offset:0,g=c===i.end.paragraphId?i.end.offset:Number.POSITIVE_INFINITY,w=d?dr(h,y):new Set;for(let l of h){let m=cr(l,y,g,d);d&&m.length===0&&w.has(l)&&(m=[{start:y,end:y}]);for(let b of m){let x=`${l.pageIndex}\0${l.story}\0${l.noteScopeId??""}\0${l.noteAreaKind??""}\0${l.textboxPath.join("\0")}\0${i.partName}\0${c}\0${b.start}\0${b.end}\0${s??""}`;o.has(x)||(o.add(x),n.push({pageIndex:l.pageIndex,physicalPageNumber:l.pageIndex+1,story:l.story,rootStory:l.rootStory,textboxPath:l.textboxPath,noteScopeId:l.noteScopeId,noteAreaKind:l.noteAreaKind,...s?{revisionRole:s}:{},source:{partName:i.partName,start:{paragraphId:c,offset:b.start},end:{paragraphId:c,offset:b.end}}}));}}}}return n}function Dt(e,t){let r=2166136261,n=2654435769;for(let o=0;o<t.length;o+=1){let a=t.charCodeAt(o);r=Math.imul(r^a,16777619)>>>0,n=Math.imul(n^a+o,2246822507)>>>0,n^=n>>>13;}return `${e}_${t.length.toString(36)}_${r.toString(36)}_${n.toString(36)}`}function Mt(e,t,r=Dt){let n=new Map;for(let a of t){let i=r(e,a),s=n.get(i)??new Set;s.add(a),n.set(i,s);}let o=new Map;for(let[a,i]of n){let s=[...i].sort();for(let[c,h]of s.entries())o.set(h,s.length===1?a:`${a}_${c.toString(36)}`);}return o}function ur(e){let t=new Set,r=new Set;for(let n of e){if(n.kind==="comment"){t.add(n.id),n.parentId!==void 0&&t.add(n.parentId),n.parentRevisionId!==void 0&&r.add(n.parentRevisionId);for(let o of n.replyIds)t.add(o);}if(n.kind==="revision"){r.add(n.id),n.pairedWith!==void 0&&r.add(n.pairedWith);for(let o of n.replyIds)t.add(o);}}return {comment:Mt("comment",t),revision:Mt("change",r)}}function B(e,t,r){return e.get(r)??Dt(t,r)}function lr(e,t,r){return e.kind==="revision"?{kind:"tracked-change",id:B(r.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:chunk4KZ6L5YF_cjs.$a(e.text),replacedText:chunk4KZ6L5YF_cjs.$a(e.replacedText),nesting:e.nesting,...e.replacedRangeCount!==void 0?{replacedRangeCount:e.replacedRangeCount}:{},readOnly:e.readOnly,...e.pairedWith!==void 0?{pairedWith:B(r.revision,"change",e.pairedWith)}:{},replyIds:e.replyIds.map(n=>B(r.comment,"comment",n)),occurrences:t?kt(e.ranges,t,e.revisionKind==="replace"?e.replacedRangeCount??null:void 0):[]}:e.kind!=="comment"?null:{kind:"comment",id:B(r.comment,"comment",e.id),author:e.comment.author,initials:chunkAVKVRU7Z_cjs.Ja(e.comment),...e.comment.date!==void 0?{date:e.comment.date}:{},text:chunkAVKVRU7Z_cjs.Ha(e.comment),resolved:e.resolved,...e.parentId!==void 0?{parentId:B(r.comment,"comment",e.parentId)}:{},...e.parentRevisionId!==void 0?{parentRevisionId:B(r.revision,"change",e.parentRevisionId)}:{},replyIds:e.replyIds.map(n=>B(r.comment,"comment",n)),orphaned:e.orphaned,occurrences:t&&e.range?kt([e.range],t):[]}}function Et(e,t){let r=t.parts.get(t.mainDocumentPart);if(!r)return [];let n=nr(t,r),o=[r,...n],a=t.parts.get(chunkAVKVRU7Z_cjs.ea(t,r.name));if(!rr(o,a))return [];let i=Rt(),s=i.collectReviewItems({storyPart:r,furnitureParts:n,commentsPart:a,commentsExtendedPart:t.parts.get(chunkAVKVRU7Z_cjs.fa(t,r.name))});if(s.length===0)return [];let c=s.flatMap(d=>chunkAVKVRU7Z_cjs.ua(d)),h=c.length>0?ir(e,t,o,c,i.deepParagraphOrderOfPart):null,p=ur(s);return s.map(d=>lr(d,h,p)).filter(d=>d!==null)}var pr=new Set(["part","validatedHandle"]);function Lt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function q(e,t,r,n,o){if(!(n!==void 0&&pr.has(n))){if(typeof e=="function")throw new TypeError("Semantic layout publication encountered a function value");if(!(e===null||typeof e!="object")&&!o?.has(e)){if(r.has(e))throw new TypeError("Semantic layout publication encountered a cyclic record graph");if(!t.has(e)){t.add(e),r.add(e);try{if(Array.isArray(e)){for(let a of e)q(a,t,r,void 0,o);Object.freeze(e);return}if(!Lt(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");q(i.value,t,r,a,o);}}Object.freeze(e);}finally{r.delete(e);}}}}}function At(e){if(!Lt(e))throw new TypeError("Semantic layout publication encountered a non-record value");let t=new Set;for(let n of e.pages)if(!(n===null||typeof n!="object"))for(let o of ["header","footer"]){let a=Object.getOwnPropertyDescriptor(n,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),q(i,new Set,s,o),t.add(i);}let r=(n,o)=>{let a=new Set;for(let i of n){let s=new Set;s.add(e),q(i,a,s,void 0,o);}Object.freeze(n);};for(let n of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,n);if(!o)continue;if(!("value"in o))throw new TypeError("Semantic layout publication encountered an accessor property");if(n==="pages"&&Array.isArray(o.value)){r(o.value,t);continue}if(n==="reviewArtifacts"&&Array.isArray(o.value)){r(o.value);continue}let a=new Set;a.add(e),q(o.value,new Set,a,n);}return Object.freeze(e),e}var mr=Object.freeze([]),k=class extends Error{constructor(r,n,o){super(n,o);this.code=r;this.name="ExportResourceError";}code};function fr(e){try{return e instanceof k}catch{return false}}function yr(e){try{return e instanceof chunk55AT3MOU_cjs.ke}catch{return false}}function gr(e){try{return e instanceof Error&&typeof e.message=="string"&&e.message.length>0?e.message:null}catch{return null}}function hr(e){if(fr(e))return e;let t=yr(e),r=gr(e),n=r?`: ${r}`:"",o=new k(t?"layoutInvariant":"layoutFailed",t?`Authored geometry could not be represented within the bounded page model${n}`:`Export layout failed${n}`);return Object.defineProperty(o,"cause",{configurable:true,value:e}),o}function wr(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 Ft(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 xr=50,ye=64;function br(e){switch(e.kind){case "pending":return true;case "ready":case "unrenderable":case "external":case "missing":return false;default:return e}}function Pr(e){let t=false;return chunk55AT3MOU_cjs.Ca(e,({drawing:r})=>{br(r.resource)&&(t=true);}),t}function Tt(e){return !ArrayBuffer.isView(e)}function Kn(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 r=t.revisionAuthorSlots===void 0?void 0:Object.freeze(Object.fromEntries(Object.entries(t.revisionAuthorSlots).map(([f,P])=>{if(!Number.isSafeInteger(P)||P<0)throw new TypeError("revisionAuthorSlots values must be nonnegative safe integers.");return [f,P]}))),n=t.revisionMarkup?chunk55AT3MOU_cjs.Ta(t.revisionMarkup):void 0,o=n?{revisionMarkup:n,hiddenAuthors:new Set,cacheKey:JSON.stringify(n)}:void 0,a=Ft(t.displayMode??chunk55AT3MOU_cjs.Xa),i=Tt(e),s=Tt(e)?{ok:true,view:e}:chunkAVKVRU7Z_cjs.ab(e);if(!s.ok)return s;let c=s.view,h=t.reuseAcrossRevisions??i,p=wr(t.resourceTimeoutMs),d=t.measurer??chunk55AT3MOU_cjs.fa(),y=t.producer??(t.measurer?"host-export-measurer":"export-fixed-measurer"),g=chunk55AT3MOU_cjs.nb({retainAcrossPasses:h}),w=0,l=new Set,m=()=>{w+=1;for(let f of l)f();l.clear();},b=chunk55AT3MOU_cjs.ud({session:c,decodePort:t.imageDecodePort??pt(t.convertPreservedImage?{convertPreserved:t.convertPreservedImage}:void 0),onResourcesChanged:m}),x={view:c,measurer:d,paragraphCache:g,sessions:new Map,completed:new Map,inFlight:new Map,styles:chunk55AT3MOU_cjs.sd(c),fieldLinks:new Map,links:chunk55AT3MOU_cjs.re(c),drawingBundle:b,furniture:new Map},v=new AbortController,I=t.signal,V=false,W=()=>V?new k("aborted","Export resource settlement was aborted"):new k("disposed","Export session has been disposed"),K=()=>{V=true,$();};function $(){let f=x;if(f){x=null,I?.removeEventListener("abort",K),v.abort(I?.reason),f.drawingBundle.dispose(),f.paragraphCache.clear();for(let P of f.completed.values())chunk55AT3MOU_cjs.hd(P.internal),chunk55AT3MOU_cjs.te(P.internal);for(let P of f.fieldLinks.values())P.registry.clear();f.fieldLinks.clear(),f.completed.clear(),f.inFlight.clear(),f.furniture.clear(),f.sessions.clear(),m();}}I?.addEventListener("abort",K,{once:true}),I?.aborted&&K();let j=()=>{if(!x)throw W();if(v.signal.aborted)throw new k("aborted","Export resource settlement was aborted")},T=(f,P,D,u)=>w!==f||x?.view.packageRevision()!==P||x?.view.currentPackage()!==D?Promise.resolve():(j(),new Promise((_,O)=>{let M=false,C,E=A=>{M||(M=true,C!==void 0&&clearTimeout(C),l.delete(L),v.signal.removeEventListener("abort",G),A?O(A):_());},L=()=>E(),G=()=>E(new k("aborted","Export resource settlement was aborted")),Y=()=>{if(x?.view.packageRevision()!==P||x?.view.currentPackage()!==D){E();return}let A=u-Date.now();if(A<=0){E(new k("timedOut",`Image resources did not settle within ${p}ms`));return}C=setTimeout(Y,Math.min(xr,A));};if(l.add(L),v.signal.addEventListener("abort",G,{once:true}),w!==f||x?.view.packageRevision()!==P||x?.view.currentPackage()!==D){E();return}Y();})),U=async(f,P=0,D=Date.now()+p)=>{if(j(),Date.now()>=D)throw new k("timedOut",`Export layout did not stabilize within ${p}ms`);let u=x,_=D,O=u.view.packageRevision(),M=u.view.currentPackage(),C=u.completed.get(f);if(C&&C.revision===O&&C.pkg===M)return C.published;let E=()=>{if(u.view.packageRevision()===O&&u.view.currentPackage()===M)return null;if(P>=ye-1)throw new k("nonConvergent","Document revision did not stabilize during export layout");return U(f,P+1,_)},L=u.fieldLinks.get(f);if(!L||L.revision!==O||L.pkg!==M){let R=L?.registry??chunk55AT3MOU_cjs.se();R.clear(),L={revision:O,pkg:M,registry:R},u.fieldLinks.set(f,L),u.furniture.delete(f);}let G=L.registry,Y=u.sessions.get(f)??chunk55AT3MOU_cjs.Te();u.sessions.set(f,Y);let A=u.furniture.get(f);A||(A=chunk55AT3MOU_cjs.oe({view:u.view,measurer:u.measurer,producer:y,cache:u.paragraphCache,styleCascade:u.styles.styleCascade,numberingIndex:u.styles.numberingIndex,defaultTabStopPt:u.styles.defaultTabStopPt,compatibilityMode:u.styles.compatibilityMode,displayMode:chunk55AT3MOU_cjs.Wa(f),revisionAuthorFilter:f==="simple-markup"?chunk55AT3MOU_cjs.Ya(o):o,showFieldCodes:false,inlineDrawingLayoutForPart:R=>u.drawingBundle.contextForPart(R),drawingLayoutTokenForPart:R=>u.drawingBundle.cacheTokenForPart(R),drawingTokenForParagraphForPart:(R,ae)=>u.drawingBundle.drawingTokenForParagraph(ae,R),linkProjectors:u.links,projectFieldLink:R=>G.project(R)}),u.furniture.set(f,A));for(let R=0;R<ye;R+=1){let ae=w;u.drawingBundle.sync(u.view);let he=E();if(he)return he;let N=ht({view:u.view,revision:u.view.packageRevision(),measurer:u.measurer,cache:u.paragraphCache,session:Y,producer:y,styleCascade:u.styles.styleCascade,defaultTabStopPt:u.styles.defaultTabStopPt,numberingIndex:u.styles.numberingIndex,furniture:A,compatibilityMode:u.styles.compatibilityMode,linkProjectors:u.links,projectFieldLink:S=>G.project(S),inlineDrawingLayout:u.drawingBundle.bodyContext,inlineDrawingLayoutForPart:S=>u.drawingBundle.contextForPart(S),drawingTokenForParagraph:S=>u.drawingBundle.drawingTokenForParagraph(S,u.view.part().name),drawingTokenForParagraphForPart:(S,J)=>u.drawingBundle.drawingTokenForParagraph(J,S),drawingLayoutEpoch:u.drawingBundle.cacheTokenForPart(u.view.part().name),drawingLayoutEpochForPart:S=>u.drawingBundle.cacheTokenForPart(S),displayMode:chunk55AT3MOU_cjs.Wa(f),revisionAuthorFilter:f==="simple-markup"?chunk55AT3MOU_cjs.Ya(o):o,showFieldCodes:false});if(!Pr(N)){let S=E();if(S)return S;h||(chunk55AT3MOU_cjs.hd(N),chunk55AT3MOU_cjs.te(N),u.paragraphCache.clear(),u.sessions.delete(f),u.furniture.delete(f));let J=Et(N,M),Ct=J.length===0?mr:Object.freeze(It(N,J)),Nt=lt(u.view,N),jt={...N,...Nt,reviewDisplayMode:f,...n?{revisionMarkup:n}:{},...r?{revisionAuthorSlots:r}:{},facingPages:[...M.parts.values()].some(Pe=>Pe.root.localName==="settings"&&Pe.root.children.some(Q=>Q.kind!=="textValue"&&(Q.localName==="mirrorMargins"||Q.localName==="evenAndOddHeaders")&&!Q.attributes.some(ve=>ve.localName==="val"&&["0","false","off"].includes(ve.value)))),contentWarnings:gt(u.view),reviewArtifacts:Ct},be=At(jt);return u.completed.set(f,{revision:O,pkg:M,internal:N,published:be}),be}let we=ae;for(;u.drawingBundle.pendingResourceCount()>0;){await T(we,O,M,_),we=w,j();let S=E();if(S)return S}j();let xe=E();if(xe)return xe}throw new k("nonConvergent",`Image resources did not reach quiescence after ${ye} layout passes`)},ge=f=>{let P;try{P=Ft(f);}catch(O){return Promise.reject(O)}if(!x)return Promise.reject(W());let D=x,u=D.inFlight.get(P);if(u)return u;let _=U(P).catch(O=>{throw hr(O)}).finally(()=>D.inFlight.delete(P));return D.inFlight.set(P,_),_};return {ok:true,session:{layout:()=>ge(a),layoutFor:ge,validatedImageBytes(f){let P=x;return !P||f.resource.kind!=="ready"?null:P.drawingBundle.mintValidatedBytes(f.resource.validatedHandle,f.resource.contentId)?.slice()??null},dispose:$}}}exports.a=ht;exports.b=Or;exports.c=pt;exports.d=k;exports.e=Kn;
@@ -1,2 +0,0 @@
1
- import {c}from'./chunk-6ZQMII6V.js';import {Va,Ta,Ua,Ga}from'./chunk-GWQJ5774.js';import {Ve,Va as Va$1,of,Qf,Wa,Ua as Ua$1,$c,ad,Ta as Ta$1}from'./chunk-UMRSBLO7.js';function z(n){let r=[],s=0;for(let t of n){let o=s+t.text.length;t.resultRuns?r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,resultRuns:t.resultRuns,...t.symbolOffsets?{symbolOffsets:t.symbolOffsets}:{},...t.symbolDisplays?{symbolDisplays:t.symbolDisplays}:{},projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}):t.floatingObject?r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,floatingObject:true,projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}):r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,...t.symbol?{symbol:true}:{},...t.symbolOffsets?{symbolOffsets:t.symbolOffsets}:{},...t.symbolDisplays?{symbolDisplays:t.symbolDisplays}:{},projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}),s=o;}return r}function G(n,r){return r<=n.rawStart?n.projectedStart:r>=n.rawEnd?n.projectedEnd:n.expansion?n.projectedStart:n.projectedStart+r-n.rawStart}function I(n,r){return n.expansion?n.rawStart:n.rawStart+r-n.projectedStart}function L(n,r){return n.expansion?n.rawEnd:n.rawStart+r-n.projectedStart}var K=new Set([Ta$1,"\u2011"]),Q=/[\u001e\u001f\u2011]/,Y="\uFFFF";function W(n,r){if(!Q.test(n)&&!r?.size)return {text:n,at:null};let s="",t=[];for(let o=0;o<n.length;o+=1){let l=n[o];if(r?.has(o))s+=Y;else {if(l===Ua$1)continue;s+=K.has(l)?"-":l;}t.push(o);}return {text:s,at:t}}function U(n){let r;for(let s of n){if(s.symbol){r??=new Set;for(let t=s.projectedStart;t<s.projectedEnd;t+=1)r.add(t);}for(let t of s.symbolOffsets??[])(r??=new Set).add(s.projectedStart+t);}return r}function O(n){let r=z(n),s="";for(let o of n)s+=o.text;let t=null;return {text:s,projectedOffset(o){let l=0;for(let i of r){if(o<=i.rawEnd)return G(i,o);l=i.projectedEnd;}return l},rawRange(o,l){if(o<0||o>=l||l>s.length)return null;let i=r.find(d=>o>=d.projectedStart&&o<d.projectedEnd),e=r.find(d=>l>d.projectedStart&&l<=d.projectedEnd);return !i||!e?null:{start:I(i,o),end:L(e,l)}},sliceRaw(o,l){if(o>=l)return "";let i="";for(let e of r){if(e.expansion){o<=e.rawStart&&l>=e.rawEnd&&(i+=e.text);continue}let d=Math.max(o,e.rawStart),a=Math.min(l,e.rawEnd);d<a&&(i+=e.text.slice(d-e.rawStart,a-e.rawStart));}return i},displaySlice(o,l){let i="";for(let e of r){if(e.projectedEnd<=o||e.projectedStart>=l)continue;let d=Math.max(o,e.projectedStart)-e.projectedStart,a=Math.min(l,e.projectedEnd)-e.projectedStart;if(e.symbol){i+=e.symbolDisplays?.[0]??"";continue}let u=new Map;e.symbolOffsets?.forEach((f,c)=>u.set(f,e.symbolDisplays?.[c]??""));for(let f=d;f<a;f+=1)i+=u.get(f)??e.text[f];}return i},resultRunAddressAt(o){let l=r.find(e=>e.resultRuns!==void 0&&o>=e.projectedStart&&o<e.projectedEnd);if(!l?.resultRuns)return null;let i=o-l.projectedStart;for(let e of l.resultRuns)if(i>=e.start&&i<e.end)return {runId:e.runId,offset:i-e.start};return null},findOccurrences(o,l,i={}){let e=[];if(l<=0||!Va(o)||s.length===0)return {matches:e,truncated:false};let d=i.matchCase===true,a=i.wholeWord===true;t??=W(s,U(r));let u=t,f=W(o).text;if(f.length===0||f.includes(Y))return {matches:e,truncated:false};let c=d?f:Ta(f),j=d?u.text:Ta(u.text),R=p=>u.at?.[p]??p,X=p=>{if(!u.at)return p;let m=0;for(;m<u.at.length&&u.at[m]<p;)m+=1;return m},v=Math.min(s.length,i.to??s.length),D=new Set,b=j.indexOf(c,X(Math.max(0,i.from??0)));for(;b>=0;){let p=b+c.length,m=R(b),x=R(p-1)+1;if(x>v)return {matches:e,truncated:false};if(r.some(y=>y.floatingObject===true&&y.projectedStart>m&&y.projectedStart<x)){b=j.indexOf(c,b+1);continue}if(!a||Ua(u.text,b,p)){let y=r.find(h=>m>=h.projectedStart&&m<h.projectedEnd),E=r.find(h=>x>h.projectedStart&&x<=h.projectedEnd);if(!y||!E)return {matches:e,truncated:false};let S=y===E&&y.expansion?y:null;if(!S||!D.has(S)){if(e.length>=l)return {matches:e,truncated:true};e.push({start:m,length:x-m,rawStart:I(y,m),rawEnd:L(E,x)}),S&&D.add(S);}}b=j.indexOf(c,p);}return {matches:e,truncated:false}}}}function q(n){return n.length===0?O([]):O([{text:n,rawStart:0,rawEnd:n.length}])}var J="http://schemas.openxmlformats.org/markup-compatibility/2006";function Z(n){if(n.kind==="textValue")return false;if($c(n))return ad(n);let r=s=>s.kind!=="textValue"&&s.children.some(t=>t.kind==="anchoredDrawing"||t.kind!=="textValue"&&t.localName==="anchor");if(n.kind==="drawing")return r(n);if(n.namespaceUri!==J||n.localName!=="AlternateContent")return false;for(let s of n.children){if(s.kind==="textValue"||s.localName!=="Choice")continue;let t=s.children.find(o=>o.kind==="drawing"||o.kind!=="textValue"&&o.localName==="drawing");if(t)return r(t)}return false}function $(n,r,s="allMarkup"){if(!r.includes(Ve)&&!r.includes(Va$1))return r.length===0?[]:[{text:r,rawStart:0,rawEnd:r.length}];let t=of(n),o=Qf(n,t),l=c(n,t,s),i=new Map;for(let a of t)i.set(a.node.id,a);let e=[],d=0;for(let a of o){let u=i.get(a.node.id),f=!u&&Wa(a.node);if(!u&&!f){Z(a.node)&&(d<a.start&&e.push({text:r.slice(d,a.start),rawStart:d,rawEnd:a.start}),e.push({text:"",rawStart:a.start,rawEnd:a.end,floatingObject:true}),d=a.end);continue}if(d<a.start&&e.push({text:r.slice(d,a.start),rawStart:d,rawEnd:a.start}),!u){e.push({text:Va$1,rawStart:a.start,rawEnd:a.end,symbol:true,symbolDisplays:[Ga(a.node)]}),d=a.end;continue}let c=l.get(u.node.id);u.kind==="simple"&&c?e.push({text:c.text,rawStart:a.start,rawEnd:a.end,resultRuns:c.runs,...c.symbols?{symbolOffsets:c.symbols}:{},...c.symbolDisplays?{symbolDisplays:c.symbolDisplays}:{}}):e.push({text:c?.text??Ve,rawStart:a.start,rawEnd:a.end,...c?.symbols?{symbolOffsets:c.symbols}:{},...c?.symbolDisplays?{symbolDisplays:c.symbolDisplays}:{}}),d=a.end;}return d<r.length&&e.push({text:r.slice(d),rawStart:d,rawEnd:r.length}),e}function it(n,r,s="allMarkup"){return !r.includes(Ve)&&!r.includes(Va$1)?q(r):O($(n,r,s))}
2
- export{O as a,q as b,$ as c,it as d};
@@ -1,65 +0,0 @@
1
- /**
2
- * Lifecycle state of one collaboration replica.
3
- *
4
- * One axis, because the only question a host has to answer is whether to tell the reader to
5
- * wait or to reload:
6
- *
7
- * - `initializing` — joining. Edits are refused. Recovers on its own.
8
- * - `ready` — replicating. The only state that accepts edits.
9
- * - `disconnected` — the transport dropped. The replica is intact and recovers on its own,
10
- * so wait rather than reload. Edits are refused until reconnect by default; a session
11
- * created with offline editing enabled keeps accepting them, and the buffered updates
12
- * merge on reconnect.
13
- * - `error` — this replica no longer agrees with the room. It does not recover: only a
14
- * reload rejoins. {@link CollaborationStatusSnapshot.reason} says why.
15
- * - `destroyed` — torn down. Terminal.
16
- *
17
- * @public
18
- */
19
- type CollaborationStatus = 'initializing' | 'ready' | 'disconnected' | 'error' | 'destroyed';
20
- /**
21
- * Why a replica refused work, left `ready`, or failed a schema check.
22
- *
23
- * Free-form extras (a transport phrase, a blob key, a store refusal) travel in
24
- * {@link CollaborationFailure.detail}, not here. `invalid-shared-metadata` follows that rule:
25
- * it names one malformed field of the room's shared metadata, and which field is the detail.
26
- * Distinct from `invalid-document-id`, which rejects a document id this host passed in.
27
- * `concurrent-seed` reports two merged seed transactions in one room; the room cannot be
28
- * repaired client-side — create a new room from saved bytes.
29
- *
30
- * Two of these name a transport condition a host has to tell apart, because the answers are
31
- * opposite. `transport-disconnected` recovers on its own, so wait. `authentication-failed`
32
- * never does: the credential the provider re-sent was rejected, so refresh it and rejoin.
33
- * `transport` remains the catch-all for a provider that reported neither.
34
- *
35
- * @public
36
- */
37
- type CollaborationFailureCode = 'already-initialized' | 'authentication-failed' | 'baseline-digest-mismatch' | 'baseline-too-large' | 'blob-digest-mismatch' | 'blob-read' | 'blob-store-full' | 'blob-too-large' | 'collaboration-format-mismatch' | 'collaboration-session-destroyed' | 'collaboration-session-not-attached' | 'collaboration-session-not-ready' | 'collaboration-text-limit' | 'concurrent-seed' | 'document-id-mismatch' | 'duplicate-paragraph-id' | 'experimental-collaboration-body-text-only' | 'experimental-collaboration-existing-paragraphs-only' | 'experimental-collaboration-text-only' | 'experimental-collaboration-untracked-text-only' | 'immutable-baseline-changed' | 'immutable-metadata-changed' | 'initialization-aborted' | 'initialization-timeout' | 'invalid-baseline' | 'invalid-blob-descriptor' | 'invalid-bound' | 'invalid-document-id' | 'invalid-identity' | 'invalid-identity-color' | 'invalid-logical-id' | 'invalid-relationships' | 'invalid-saved-room' | 'invalid-session-id' | 'invalid-shared-metadata' | 'invalid-string' | 'local-mirror-failed' | 'materialize-dropped-content' | 'missing-blob' | 'missing-local-blob' | 'missing-root' | 'no-main-document-part' | 'not-initialized' | 'paragraph-set-mismatch' | 'port-already-attached' | 'protocol-version-mismatch' | 'prototype-key' | 'remote-apply-failed' | 'saved-room-unavailable' | 'schema-version-mismatch' | 'shared-schema-invalid' | 'text-too-long' | 'too-many-attributes' | 'too-many-children' | 'too-many-nodes' | 'too-many-parts' | 'too-many-relationships' | 'transport' | 'transport-disconnected' | 'tree-too-deep' | 'unknown-logical-id' | 'unknown-paragraph-id' | 'unsafe-part-name' | 'unsupported-root-key';
38
- /** True when `value` is a {@link CollaborationFailureCode} member. @public */
39
- declare function isCollaborationFailureCode(value: string): value is CollaborationFailureCode;
40
- /** One collaboration failure: a typed code plus optional free-form detail. @public */
41
- interface CollaborationFailure {
42
- readonly code: CollaborationFailureCode;
43
- readonly detail?: string;
44
- }
45
- /**
46
- * Cached status read. Same reference until status, reason, or last failure change.
47
- *
48
- * @public
49
- */
50
- interface CollaborationStatusSnapshot {
51
- readonly status: CollaborationStatus;
52
- readonly reason: CollaborationFailure | undefined;
53
- readonly lastFailure: CollaborationFailure | undefined;
54
- }
55
- /** @internal */
56
- interface CollaborationStatusTracker {
57
- status(): CollaborationStatus;
58
- snapshot(): CollaborationStatusSnapshot;
59
- set(status: CollaborationStatus, code?: CollaborationFailureCode, detail?: string): boolean;
60
- }
61
- /** @internal */
62
- declare function createCollaborationStatusTracker(initial?: CollaborationStatus): CollaborationStatusTracker;
63
-
64
- export { createCollaborationStatusTracker as d, isCollaborationFailureCode as i };
65
- export type { CollaborationStatus as C, CollaborationStatusSnapshot as a, CollaborationFailureCode as b, CollaborationFailure as c };