@docx-editor.dev/core 2.32.0 → 2.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +1 -0
  3. package/dist/automation.cjs +1 -1
  4. package/dist/automation.d.ts +14 -52
  5. package/dist/automation.js +1 -1
  6. package/dist/binding.cjs +1 -1
  7. package/dist/binding.d.ts +14 -14
  8. package/dist/binding.js +1 -1
  9. package/dist/{chrome-print-CznJ0ucN.d.ts → chrome-print-DY0xsXm_.d.ts} +231 -125
  10. package/dist/chunk-37IYWENL.cjs +1 -0
  11. package/dist/chunk-37RNWL45.js +4 -0
  12. package/dist/chunk-5HUVQXET.cjs +4 -0
  13. package/dist/chunk-5JP3QQF7.js +7 -0
  14. package/dist/chunk-5KOLFKOB.cjs +5 -0
  15. package/dist/chunk-6MF5PN2E.js +236 -0
  16. package/dist/chunk-77JT2AU7.js +2 -0
  17. package/dist/{chunk-ETDZFNMI.js → chunk-7FUORGCW.js} +1 -1
  18. package/dist/chunk-A5BTVPET.cjs +236 -0
  19. package/dist/chunk-AFXFH2T2.js +3 -0
  20. package/dist/chunk-AVCYP7OY.js +5 -0
  21. package/dist/chunk-BL2E4QRA.js +1 -0
  22. package/dist/chunk-DB7X4Y6O.js +4 -0
  23. package/dist/chunk-DR6W23TB.cjs +2 -0
  24. package/dist/chunk-DYLB5U42.js +1 -0
  25. package/dist/chunk-E5BKDHIP.cjs +1 -0
  26. package/dist/chunk-IWXBRUPG.cjs +4 -0
  27. package/dist/{chunk-L5TYBFDB.js → chunk-KCUXXO3Q.js} +1 -1
  28. package/dist/chunk-KYA4Y2YB.js +1 -0
  29. package/dist/{chunk-6UDJUI3W.cjs → chunk-L74TCGVH.cjs} +1 -1
  30. package/dist/chunk-NBSSQSKY.js +30 -0
  31. package/dist/{chunk-OKMEMSKB.cjs → chunk-NEM774E3.cjs} +1 -1
  32. package/dist/chunk-NKZVMMHU.cjs +1 -0
  33. package/dist/chunk-TXIO5WYQ.cjs +32 -0
  34. package/dist/chunk-UKG2TXWH.cjs +7 -0
  35. package/dist/chunk-V7CO55DO.cjs +3 -0
  36. package/dist/chunk-VLQDQNSS.js +1 -0
  37. package/dist/chunk-VQOAC3VI.cjs +30 -0
  38. package/dist/chunk-YWJSQA2O.js +32 -0
  39. package/dist/chunk-ZJ74LCFI.cjs +1 -0
  40. package/dist/collaboration/replication.cjs +1 -1
  41. package/dist/collaboration/replication.d.ts +13 -4
  42. package/dist/collaboration/replication.js +1 -1
  43. package/dist/collaboration.d.ts +3 -3
  44. package/dist/contracts/document.d.ts +3 -3
  45. package/dist/contracts/editor.d.ts +10 -10
  46. package/dist/contracts/interaction.d.ts +2 -2
  47. package/dist/contracts/modules.d.ts +12 -12
  48. package/dist/contracts/types.d.ts +4 -4
  49. package/dist/{custom-node-writes-CLJKGD9t.d.ts → custom-node-writes-DparEcZK.d.ts} +45 -7
  50. package/dist/diagnostic-context-CkZKkKvB.d.ts +98 -0
  51. package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +3 -3
  52. package/dist/{document-protection-NaniLHWF.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
  53. package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +161 -18
  54. package/dist/drawing-preview-package-fFjXpOMS.d.ts +115 -0
  55. package/dist/{editor-DZwOTmlR.d.ts → editor-DDCkWqfD.d.ts} +125 -21
  56. package/dist/{editor-scope-B3L-1ALc.d.ts → editor-scope-CA6egMaK.d.ts} +5 -1
  57. package/dist/editor.cjs +1 -1
  58. package/dist/editor.css +4 -4
  59. package/dist/editor.d.ts +387 -78
  60. package/dist/editor.js +1 -1
  61. package/dist/export.cjs +2 -2
  62. package/dist/export.d.ts +47 -12
  63. package/dist/export.js +2 -2
  64. package/dist/{font-resolver-BlQNGdvR.d.ts → font-resolver-Bm9XqTNO.d.ts} +14 -0
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.ts +38 -23
  67. package/dist/index.js +1 -1
  68. package/dist/{layout-shaping-E5J4Z1Gf.d.ts → layout-shaping-Byj-TwsI.d.ts} +1 -1
  69. package/dist/layout.cjs +1 -1
  70. package/dist/layout.d.ts +434 -199
  71. package/dist/layout.js +1 -1
  72. package/dist/metafile-drawing-Ce6TuWLm.d.ts +115 -0
  73. package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
  74. package/dist/output.cjs +1 -1
  75. package/dist/output.d.ts +77 -13
  76. package/dist/output.js +1 -1
  77. package/dist/{protocol-DKa4qt7F.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
  78. package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
  79. package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
  80. package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
  81. package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
  82. package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-BYDZbTiY.d.ts} +16 -9
  83. package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
  84. package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-CzZiWMY8.d.ts} +348 -132
  85. package/dist/store.cjs +1 -1
  86. package/dist/store.d.ts +526 -19
  87. package/dist/store.js +1 -1
  88. package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-DKvJSH8T.d.ts} +1024 -501
  89. package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-Cl3BkWXF.d.ts} +8 -3
  90. package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-BL50pqs8.d.ts} +15 -8
  91. package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-Bra4QTOM.d.ts} +1 -1
  92. package/licenses/ECMA-376.md +29 -0
  93. package/package.json +2 -2
  94. package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
  95. package/dist/chunk-25EXMBV2.cjs +0 -5
  96. package/dist/chunk-3IEXDEFH.cjs +0 -7
  97. package/dist/chunk-65XBN67F.cjs +0 -2
  98. package/dist/chunk-6NVZNB7O.cjs +0 -3
  99. package/dist/chunk-ACLR4DMK.js +0 -1
  100. package/dist/chunk-B2BEELUE.js +0 -1
  101. package/dist/chunk-DDFHKQFU.js +0 -30
  102. package/dist/chunk-E4IAO4CY.cjs +0 -2
  103. package/dist/chunk-FDSL5OJU.cjs +0 -30
  104. package/dist/chunk-FS7CMYLT.js +0 -4
  105. package/dist/chunk-GDS24SZN.js +0 -30
  106. package/dist/chunk-GIY6NT2X.js +0 -5
  107. package/dist/chunk-GWM3AKUD.js +0 -18
  108. package/dist/chunk-HDOXACHP.js +0 -2
  109. package/dist/chunk-IILEENID.js +0 -1
  110. package/dist/chunk-MNF2K7NN.cjs +0 -30
  111. package/dist/chunk-O324RB6R.cjs +0 -1
  112. package/dist/chunk-QXJKYNYZ.js +0 -1
  113. package/dist/chunk-RALTVLB6.js +0 -2
  114. package/dist/chunk-SRVKFUFI.js +0 -3
  115. package/dist/chunk-TELQ52LG.cjs +0 -1
  116. package/dist/chunk-TJHE5EET.cjs +0 -1
  117. package/dist/chunk-UMMRURPE.js +0 -7
  118. package/dist/chunk-XJYZVGQR.cjs +0 -1
  119. package/dist/chunk-ZGTIE3QJ.cjs +0 -4
  120. package/dist/chunk-ZOZI27AW.cjs +0 -18
  121. package/dist/diagnostic-context-BtDUY3v2.d.ts +0 -31
@@ -1 +0,0 @@
1
- 'use strict';var chunk65XBN67F_cjs=require('./chunk-65XBN67F.cjs'),chunkZOZI27AW_cjs=require('./chunk-ZOZI27AW.cjs');var mn=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function B(n){return n!==void 0&&n.trim().length>0&&mn.test(n)?n:null}var yn=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,hn=128,gn=/[\u0000-\u001F\u007F-\u009F]/,An=16,En=2,Sn=3276;function Q(n){return n.kind!=="textValue"}function R(n,e){for(let t of n.children)if(Q(t)&&t.localName===e)return t}function g(n,e){return n.attributes.find(t=>t.localName===e)?.value}function N(n){return n===void 0||n.length===0||n.length>hn||gn.test(n)?null:n}function v(n,e){let t=chunk65XBN67F_cjs.ya(g(n,"asciiTheme"),e)??g(n,"ascii")??chunk65XBN67F_cjs.ya(g(n,"hAnsiTheme"),e)??g(n,"hAnsi");return t===void 0?null:B(t)}function Y(n,e){let t=chunk65XBN67F_cjs.ya(g(n,"eastAsiaTheme"),e);if(t!==null)return t;let l=g(n,"eastAsia");return l===void 0?null:B(l)}function U(n,e){let t=chunk65XBN67F_cjs.ya(g(n,"hAnsiTheme"),e);if(t!==null)return t;let l=g(n,"hAnsi");return l===void 0?null:B(l)}function xn(n){return n!==void 0&&yn.test(n)?n:null}function Wn(n){return xn(n)}function On(n){return n!==void 0&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(e=>!!g(n,e))}function G(n,e){if(!n)return {fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};let t=R(n,"rFonts"),l=R(n,"sz"),a=l?g(l,"val"):void 0,i=a!==void 0&&/^\d{1,4}$/.test(a)?Number(a):null;return {fontFamily:t?v(t,e):null,hasLatinFontReference:On(t),fontSizeHalfPoints:i!==null&&i>=En&&i<=Sn?i:null}}function $n(n,e){let t=new Map,l={fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};if(n){let o=R(n,"docDefaults"),r=o?R(o,"rPrDefault"):void 0;l=G(r?R(r,"rPr"):void 0,e);for(let s of n.children){if(!Q(s)||s.localName!=="style")continue;let f=N(g(s,"styleId"));if(f===null||t.has(f))continue;let u=R(s,"basedOn");t.set(f,{basedOn:N(u?g(u,"val"):void 0),own:G(R(s,"rPr"),e)});}}let a=new Map,i=o=>{let r=o??"",s=a.get(r);if(s)return s;let f=null,u=null,y=l.hasLatinFontReference,h=new Set,x=o;for(let j=0;x!==null&&j<An&&!h.has(x);j+=1){h.add(x);let O=t.get(x);if(!O)break;f??=O.own.fontFamily,y||=O.own.hasLatinFontReference,u??=O.own.fontSizeHalfPoints,x=O.basedOn;}let L={hasLatinFontReference:y,fontFamily:f??l.fontFamily,fontSizeHalfPoints:u??l.fontSizeHalfPoints};return a.set(r,L),L};return (o,r)=>{let s=i(o),f=r?.find(h=>h.localName==="rFonts"),u=f?chunk65XBN67F_cjs.ya(f.attributes?.asciiTheme,e)??(f.attributes?.ascii===void 0?chunk65XBN67F_cjs.ya(f.attributes?.hAnsiTheme,e):null):null,y=["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(h=>!!f?.attributes?.[h]);return {fontFamily:u??s.fontFamily??(!s.hasLatinFontReference&&!y?e.minor:null),fontSizeHalfPoints:s.fontSizeHalfPoints}}}var bn=16,Dn=16,pn=32,Fn=4096;function E(n){return n.kind!=="textValue"}function c(n,e){for(let t of n.children)if(E(t)&&t.localName===e)return t}function S(n,e){return n.attributes.find(t=>t.localName===e)?.value}function Rn(n){return n==="1"||n==="true"||n==="on"}function k(){return {profiles:new Map}}function an(n){return JSON.stringify([n.latin,n.eastAsia,n.hasEastAsian,n.hAnsi,n.hasHAnsi,n.hint,n.runStyle,n.paragraphStyle===void 0?0:n.paragraphStyle,n.tableStyle===void 0?0:n.tableStyle])}function on(n,e){let t=an(e);n.profiles.has(t)||n.profiles.set(t,e);}function W(n,e){for(let[t,l]of e.profiles)n.profiles.has(t)||n.profiles.set(t,l);}function Nn(n,e){let t=e.localName==="tbl",l=c(e,t?"tblPr":"pPr"),a=l?c(l,t?"tblStyle":"pStyle"):void 0,i=N(a?S(a,"val"):void 0),o=new Map;for(let r of n.profiles.values()){let s=t&&r.tableStyle===void 0?{...r,tableStyle:i}:!t&&r.paragraphStyle===void 0?{...r,paragraphStyle:i}:r;o.set(an(s),s);}n.profiles=o;}function m(n,e){if(e===null)return;let t=e.toLowerCase();n.has(t)||n.set(t,e);}var Tn=new Set(["tab","noBreakHyphen","softHyphen","footnoteRef","endnoteRef","footnoteReference","endnoteReference"]),Mn=128;function Pn(n){for(let e of n.attributes)if(e.localName==="font"&&!(e.namespaceUri!==chunkZOZI27AW_cjs.pa&&e.namespaceUri!==""))return e.value.length>0&&e.value.length<=Mn;return false}function Ln(n,e){if(e?.has(n.id))return true;for(let t of n.children)if(!(!E(t)||t.namespaceUri!==chunkZOZI27AW_cjs.pa)){if(Tn.has(t.localName))return true;if(t.localName==="sym"){if(!Pn(t))return true;continue}if(!(t.localName!=="t"&&t.localName!=="delText")){for(let l of t.children)if(!E(l)&&l.value.length>0)return true}}return false}function rn(n){return n>=4352&&n<=4607||n>=11904&&n<=40959||n>=43360&&n<=43391||n>=44032&&n<=55295||n>=63744&&n<=64255||n>=65072&&n<=65103||n>=65280&&n<=65519||n>=131072&&n<=262143}function Hn(n){return n>=160&&n<=65535&&!(n>=1424&&n<=1983)&&!(n>=64285&&n<=65023)&&!(n>=65136&&n<=65278)&&!rn(n)}function _n(n){let e=false,t=false;for(let l of n.children)if(!(!E(l)||l.namespaceUri!==chunkZOZI27AW_cjs.pa)&&!(l.localName!=="t"&&l.localName!=="delText")){for(let a of l.children)if(!E(a))for(let i of a.value){let o=i.codePointAt(0);if(!(o<128)&&(e||=rn(o),t||=Hn(o),e&&t))return {eastAsian:e,hAnsi:t}}}return {eastAsian:e,hAnsi:t}}function Cn(n,e,t,l){if(!Ln(n,l))return;let a=c(n,"rPr"),i=a?c(a,"rFonts"):void 0,o=_n(n),r=o.eastAsian,s=a?c(a,"rStyle"):void 0;on(e,{latin:i?v(i,t):null,eastAsia:i&&(r||o.hAnsi)?Y(i,t):null,hasEastAsian:r,hint:(i&&S(i,"hint"))??null,hAnsi:i&&o.hAnsi?U(i,t):null,hasHAnsi:o.hAnsi,runStyle:N(s?S(s,"val"):void 0)});}function In(n){return (n.localName==="p"||n.localName==="tbl")&&n.namespaceUri===chunkZOZI27AW_cjs.pa}var jn={latin:null,eastAsia:null,hasEastAsian:false,hAnsi:null,hasHAnsi:false,hint:null,runStyle:null};function sn(n,e,t,l){n.namespaceUri===chunkZOZI27AW_cjs.pa&&(l?.has(n.id)&&n.localName==="fldSimple"&&on(e,jn),n.localName==="r"?Cn(n,e,t,l):In(n)&&Nn(e,n));}function un(n,e,t){let l=[{node:n,summary:k(),next:0}];for(;;){let a=l[l.length-1],i=a.node.children;if(a.next<i.length){let r=i[a.next];a.next+=1,E(r)&&l.push({node:r,summary:k(),next:0});continue}sn(a.node,a.summary,e,t),l.pop();let o=l[l.length-1];if(!o)return a.summary;W(o.summary,a.summary);}}var nn=new WeakMap;function fn(n,e,t){let l=nn.get(n);if(l&&l.major===e.major&&l.minor===e.minor&&l.majorEastAsia===e.majorEastAsia&&l.minorEastAsia===e.minorEastAsia&&l.majorBidi===e.majorBidi&&l.minorBidi===e.minorBidi)return l.summary;let a;if(n.children.length>=Dn&&t<pn){a=k();for(let i of n.children)E(i)&&W(a,fn(i,e,t+1));sn(n,a,e);}else a=un(n,e);return nn.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,summary:a}),a}var z={latin:null,eastAsia:null,hAnsi:null,hint:null,conditional:[],conditionalEastAsia:[]},Bn={docDefaultLatin:null,docDefaultEastAsia:null,docDefaultHAnsi:null,docDefaultHint:null,docDefaultsNameLatin:false,hAnsiSlotDefault:null,fallbackEastAsia:null,defaultParagraph:null,defaultCharacter:null,defaultTable:null,chain:()=>z},en=new WeakMap;function X(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?v(l,e):null}function V(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?Y(l,e):null}function tn(n){let e=c(n,"rPr"),t=e?c(e,"rFonts"):void 0;return (t&&S(t,"hint"))??null}function ln(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?U(l,e):null}function vn(n,e){let t=new Map,l=null,a=null,i=null,o=null,r=null,s=null,f=c(n,"docDefaults"),u=f?c(f,"rPrDefault"):void 0;u&&(l=X(u,e),a=V(u,e),i=ln(u,e));let y=u?c(u,"rPr"):void 0,h=y?c(y,"rFonts"):void 0,x=h&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(d=>!!S(h,d)),L=u?chunk65XBN67F_cjs.ta:e.minor;x||(l??=L);let j=u?chunk65XBN67F_cjs.ua:e.minorEastAsia,O=0;for(let d of n.children){if(!E(d)||d.localName!=="style")continue;if(O>=Fn)break;O+=1;let A=N(S(d,"styleId"));if(A===null)continue;let H=c(d,"basedOn"),_=[],C=[];for(let p of d.children){if(!E(p)||p.localName!=="tblStylePr")continue;let I=X(p,e);I!==null&&_.push(I);let b=V(p,e);b!==null&&C.push(b);}t.set(A,{basedOn:N(H?S(H,"val"):void 0),family:X(d,e),eastAsiaFamily:V(d,e),hAnsiFamily:ln(d,e),hint:tn(d),conditionalFamilies:_,conditionalEastAsiaFamilies:C});let T=Rn(S(d,"default")),M=S(d,"type");M==="paragraph"?T?o=A:o===A&&(o=null):M==="character"?T?r=A:r===A&&(r=null):M==="table"&&(T?s=A:s===A&&(s=null));}let $=new Map,cn=d=>{if(d===null)return z;let A=$.get(d);if(A)return A;let H=null,_=null,C=null,T=null,M=[],p=[],I=new Set,b=d;for(let K=0;b!==null&&K<bn&&!I.has(b);K+=1){I.add(b);let D=t.get(b);if(!D)break;H??=D.family,_??=D.eastAsiaFamily,C??=D.hAnsiFamily,T??=D.hint;for(let w of D.conditionalFamilies)M.push(w);for(let w of D.conditionalEastAsiaFamilies)p.push(w);b=D.basedOn;}let J={latin:H,eastAsia:_,hAnsi:C,hint:T,conditional:M,conditionalEastAsia:p};return $.set(d,J),J};return {docDefaultLatin:l,docDefaultEastAsia:a,docDefaultHAnsi:i,docDefaultHint:u?tn(u):null,docDefaultsNameLatin:!!x,hAnsiSlotDefault:L,fallbackEastAsia:j,defaultParagraph:o,defaultCharacter:r,defaultTable:s,chain:cn}}function kn(n,e){if(!n)return {...Bn,docDefaultLatin:e.minor,hAnsiSlotDefault:e.minor,fallbackEastAsia:e.minorEastAsia};let t=en.get(n);if(t&&t.major===e.major&&t.minor===e.minor&&t.majorEastAsia===e.majorEastAsia&&t.minorEastAsia===e.minorEastAsia&&t.majorBidi===e.majorBidi&&t.minorBidi===e.minorBidi)return t.index;let l=vn(n,e);return en.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,index:l}),l}function zn(n,e,t){let l=[e.chain(n.runStyle??e.defaultCharacter),e.chain(n.paragraphStyle??e.defaultParagraph),n.tableStyle===false||n.tableStyle===void 0?z:e.chain(n.tableStyle??e.defaultTable)];for(let a of l){m(t,a.eastAsia),m(t,a.latin),n.hasHAnsi&&m(t,a.hAnsi);for(let i of a.conditional)m(t,i);for(let i of a.conditionalEastAsia)m(t,i);}m(t,e.docDefaultLatin),m(t,e.docDefaultEastAsia),n.hasHAnsi&&m(t,e.docDefaultHAnsi);}function wn(n,e,t){return n.latin!==null||e.some(l=>l.latin!==null)||t.docDefaultsNameLatin}function Yn(n,e,t,l){let a=e.chain(n.runStyle??e.defaultCharacter),i=e.chain(n.paragraphStyle??e.defaultParagraph),o=n.tableStyle===false||n.tableStyle===void 0?z:e.chain(n.tableStyle??e.defaultTable);n.latin!==null?m(t,n.latin):m(l,a.latin??i.latin??o.latin??e.docDefaultLatin);for(let s of o.conditional)m(l,s);n.hasHAnsi&&(n.hAnsi!==null?m(t,n.hAnsi):m(l,a.hAnsi??i.hAnsi??o.hAnsi??e.docDefaultHAnsi??(wn(n,[a,i,o],e)?e.hAnsiSlotDefault:null)));let r=n.hint??a.hint??i.hint??o.hint??e.docDefaultHint;if(!(!n.hasEastAsian&&!(n.hasHAnsi&&r==="eastAsia"))){n.eastAsia!==null?m(t,n.eastAsia):m(l,a.eastAsia??i.eastAsia??o.eastAsia??e.docDefaultEastAsia??e.fallbackEastAsia);for(let s of o.conditionalEastAsia)m(l,s);}}function Gn(n,e,t,l){return dn(n,e,t,true,l)}function dn(n,e,t,l,a){let i=kn(e,t),o=new Map,r=new Map;for(let f of n){let u=k();for(let y of f.children)E(y)&&W(u,a&&a.size>0?un(y,t,a):fn(y,t,0));for(let y of u.profiles.values()){let h=y.tableStyle===void 0?{...y,tableStyle:false}:y;Yn(h,i,o,r),l&&zn(h,i,r);}}for(let f of o.keys())r.delete(f);let s=[...r.values()].sort((f,u)=>f<u?-1:f>u?1:0);return Object.freeze({direct:Object.freeze([...o.values()]),inherited:Object.freeze(s)})}function Qn(n,e,t){let l=dn(n,e,t,false),a=[...l.direct,...l.inherited];return a.sort((i,o)=>i<o?-1:i>o?1:0),a}exports.a=B;exports.b=xn;exports.c=Wn;exports.d=$n;exports.e=Gn;exports.f=Qn;
@@ -1,4 +0,0 @@
1
- 'use strict';var chunk6NVZNB7O_cjs=require('./chunk-6NVZNB7O.cjs'),chunkFDSL5OJU_cjs=require('./chunk-FDSL5OJU.cjs'),chunkZOZI27AW_cjs=require('./chunk-ZOZI27AW.cjs');var So=0,$e=Symbol.for("@docx-editor.dev/unsupported-element-host");function Ro(t){return t[$e]}var wo="[data-docx-unsupported]",Te=Symbol.for("@docx-editor.dev/unsupported-element-listeners");function At(t){for(let e=t;e;e=e.parentElement)for(let n of e[Te]??[])n();}var Ae=Symbol.for("@docx-editor.dev/unsupported-element-focus");function $t(t){let e=t.ownerDocument.activeElement,n=e?.closest(".docx-unsupported-slot");!e||!n||!t.contains(n)||(n[Ae]={element:e,start:e.selectionStart??null,end:e.selectionEnd??null,direction:e.selectionDirection??"none"});}function Eo(t){let e=t[Ae];if(!e)return;delete t[Ae];let n=e.element;if(!n.isConnected||!t.contains(n))return;let o=t.ownerDocument,i=o.activeElement;i&&i!==n&&i!==o.body&&i!==o.documentElement&&!i.classList.contains("docx-pages")||(n.focus({preventScroll:true}),e.start!==null&&e.end!==null&&n.setSelectionRange?.(e.start,e.end,e.direction));}function ne(t,e,n,o,i=""){t.dataset.docxUnsupported=n.localName,i&&(t.dataset.docxUnsupportedOccurrence=i),t.setAttribute("contenteditable","false");let r=t.ownerDocument.createElement("span");r.className="docx-unsupported-slot";for(let l of ["pointerdown","mousedown","click","keydown","beforeinput","copy","cut","paste","compositionstart","compositionend","contextmenu","dragenter","dragover","dragleave","drop"])r.addEventListener(l,d=>d.stopPropagation());t.append(r);let a,s={key:`unsupported-${So++}`,element:t,fallback:e,slot:r,unsupported:n,setCustomized(l){if(e.hidden=l,t.toggleAttribute("data-docx-customized",l),!!o){if(l)a??={role:o.getAttribute("role"),hidden:o.getAttribute("aria-hidden")},o.setAttribute("role","group"),o.removeAttribute("aria-hidden");else if(a){for(let[d,c]of [["role",a.role],["aria-hidden",a.hidden]])c===null?o.removeAttribute(d):o.setAttribute(d,c);a=void 0;}}}};Object.defineProperty(t,$e,{value:s,configurable:true});}function Mo(t,e){let n,o=new Map,i=()=>{let d=[],c=new Map,u=new Map;for(let p of t.querySelectorAll(wo)){let f=Ro(p);if(!f)continue;let y=p.closest(".docx-pages")??t,h=p.closest("[data-page-index]")?.getAttribute("data-page-index")??"",m=JSON.stringify([f.unsupported.ownerPartName,f.unsupported.namespaceUri,f.unsupported.localName,f.unsupported.nodeId,h,p.getAttribute("data-docx-unsupported-occurrence")??""]),v=u.get(m)??0;u.set(m,v+1);let k=`${m}:${v}`,b=o.get(k);b&&b.scope===y&&b.host!==f&&(f.slot.replaceWith(b.host.slot),f={...f,key:b.host.key,slot:b.host.slot},b.host.element.hasAttribute("data-docx-customized")&&f.setCustomized(true),Object.defineProperty(p,$e,{value:f,configurable:true})),d.push(f),c.set(k,{host:f,scope:y});}o=c,queueMicrotask(()=>{for(let p of d)Eo(p.slot);}),!(n&&d.length===n.length&&d.every((p,f)=>p===n[f]))&&(n=d,e(d));},r=t.ownerDocument.defaultView.MutationObserver,a=new r(i);a.observe(t,{childList:true,subtree:true});let s=t,l=s[Te]??=new Set;return l.add(i),i(),()=>{a.disconnect(),l.delete(i),l.size===0&&delete s[Te];}}function Si(t){return !!t?.closest?.(".docx-unsupported-slot")}function Ct(t,e,n,o){let i=t.createElement("span");i.className="layout-run docx-unsupported-content",i.setAttribute("contenteditable","false"),i.style.display="inline-block",i.style.position="relative",i.style.width=`${e.width*o}px`,i.style.height=`${e.height*o}px`,i.style.verticalAlign="bottom",i.style.pointerEvents="auto";let r=t.createElement("span");return r.textContent=e.element.label,i.append(r),ne(i,r,{...e.element,bounds:n}),i}function oe(t,e,n,o,i,r){let a=chunkFDSL5OJU_cjs._a(e,n);if(a.background==="byAuthor"&&!r?(t.style.setProperty("--doc-revision-background",`color-mix(in srgb, ${o} 15%, var(--doc-revision-color-white))`),t.style.backgroundColor="var(--doc-revision-background)"):a.background!=="none"&&(t.style.backgroundColor=a.background==="byAuthor"?r:chunkFDSL5OJU_cjs.Za(a.background,o)),a.mark==="none")return;let s=chunkFDSL5OJU_cjs.Za(a.color,i??o);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,l==="underline"&&(t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"));}var Bt=new WeakMap;function Lo(t){let e=null;for(let n of t)if(!(n.localName!=="rPrChange"&&n.localName!=="pPrChange")){e=n.attributes?.author??"";break}return e}function re(t){let e=chunkFDSL5OJU_cjs.rf(t),n=Bt.get(e);if(n)return n;let o=[],i=new Set,r=true,a=p=>{p===""||i.has(p)||(i.add(p),o.push(p));},s=p=>{for(let y of p.props)y.localName==="pPrChange"&&a(y.attributes?.author??"");for(let y of p.lines){if(y.changeSites)for(let h of y.changeSites)a(h.author);for(let h of y.spans){let m=h.revisions;if(m!==void 0)for(let k=0;k<m.length;k+=1)a(m[k].author);let v=Lo(h.props);v!==null&&a(v);}}for(let y of p.lines){let h=y.drawings;if(h!==void 0)for(let m=0;m<h.length;m+=1){let v=h[m].revisions;if(v!==void 0)for(let b=0;b<v.length;b+=1)a(v[b].author);let k=h[m].accessibility.hidden?void 0:h[m].textboxStory;if(k)for(let b of re(k.fragments).authors)a(b);}}let f=p.markRevisions;if(f)for(let y=0;y<f.length;y+=1)a(f[y].author);},l=p=>{p.marker?.picture&&(r=false);for(let f of p.lines)(f.drawings?.length??0)>0&&(r=false);},d=[],c=(p,f)=>{for(let y of p){if(y.kind==="paragraph"){f&&s(y),r&&l(y);continue}for(let h of y.rows){let m=f&&!h.isHeaderRepeat;for(let v of h.cells)v.revisionShadingAuthor&&d.push(v.revisionShadingAuthor),c(v.blocks,m);}}};c(t,true);for(let p of d)a(p);let u={authors:o,drawingFree:r};return Bt.set(e,u),u}var A=8,Ft={color:"painted",background:"painted",activeBackground:"painted",spanClassName:"painted",avatarUrl:"card-only"},Dt=Object.keys(Ft),Po=Dt.filter(t=>Ft[t]==="painted"),To=new Set(["http","https","data","blob"]),Ao=/^([a-zA-Z][a-zA-Z0-9+.-]*):/;function $o(t){let e=t.replace(/[\u0000-\u0020\u007f]/g,"");if(e.length===0)return;let n=Ao.exec(e);if(n)return !To.has(n[1].toLowerCase())||/^data:/i.test(e)&&!/^data:image\/(?!svg)/i.test(e)?void 0:e;let o=i=>e[i]==="/"||e[i]==="\\";return o(0)&&o(1)?void 0:e}function Co(t){if(typeof t=="string")return t.length>0?{color:t}:null;if(t===null||typeof t!="object")return null;let e={},n=Object.prototype.hasOwnProperty;for(let o of Dt){if(!n.call(t,o))continue;let i=t[o];if(!(typeof i!="string"||i.length===0)){if(o==="avatarUrl"){let r=$o(i);r!==void 0&&(e.avatarUrl=r);continue}e[o]=i;}}return Object.keys(e).length>0?e:null}function $(t){return `var(--doc-review-author-${t%A})`}function It(t){let e=new Map;if(t===void 0||t==="kind"||t==="author")return e;for(let[n,o]of Object.entries(t.authors)){let i=Co(o);i&&e.set(n,i);}return e}function Ti(t,e){let n=It(e);return [...t].map(([o,i])=>{let r=n.get(o);return {author:o,slot:i,color:r?.color??$(i),...r?{style:r}:{}}})}var Bo=128;function ye(t,e,n=Bo){let o=e.length<n?e.length:n,i=t;for(let r=0;r<o;r+=1)i=Math.imul(i^e.charCodeAt(r),16777619);return Math.imul(i^e.length,16777619)}function Ho(t,e,n){let o=ye(2166136261,n);for(let i of t.keys())o=ye(o,i);for(let[i,r]of e){o=ye(o,i);for(let a of Po)o=ye(o,r[a]??"",1/0);}return `${t.size}.${e.size}.${(o>>>0).toString(36)}`}function Be(t){return t===null?"kind":t.key}var Ce=new WeakMap;function He(t,e,n){if(t==="kind")return null;let o=Ce.get(e);if(o&&o.option===t&&o.authorSlots===n)return o.context;let i=It(t),r=t===void 0||t==="author"?"author":t.others??"author";if(i.size===0&&r==="kind")return Ce.set(e,{option:t,authorSlots:n,context:null}),null;let a=n??Do(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:Ho(a,i,r)};return Ce.set(e,{option:t,authorSlots:n,context:l}),l}function Fo(t){return re(t).authors}var Ht=new WeakMap;function Do(t){let e=Ht.get(t);if(e)return e;let n=new Map,o=i=>{for(let r of Fo(i))n.has(r)||n.set(r,n.size);};for(let i of t.pages){o(i.fragments),i.header&&o(i.header.fragments),i.footer&&o(i.footer.fragments);for(let r of [i.footnotes,i.endnotes])if(r){r.separator&&o(r.separator.fragments),r.continuationNotice&&o(r.continuationNotice.fragments);for(let a of r.notes)o(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!==""&&!n.has(d)&&n.set(d,n.size);}a.textboxStory&&o(a.textboxStory.fragments);}}return Ht.set(t,n),n}function Io(t,e){let n=null;for(let o of e)o===""||t.has(o)||(n===null&&(n=new Map(t)),n.has(o)||n.set(o,n.size));return n??t}function Ai(){let t=new Map,e=0;return {resolve(n,o){let i=Io(n,o);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 W(t,e,n){if(t===void 0||t.length===0)return null;let o=t[t.length-1],i=t.some(s=>s.kind==="delete"||s.kind==="moveFrom"),r=o.kind,a=r==="delete"||r==="moveFrom"?"line-through":r==="insert"||r==="moveTo"?"underline":null;return {attribution:o,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:n?.get(o.author)?.color??$(e?.get(o.author)??0),deleted:i}}function ie(t,e=false){let n=t.spans.find(r=>r.style.shaping)?.style.shaping?.baseLevel,o=n===void 0?e:n===1,i=chunkFDSL5OJU_cjs.Jb(t.spans,t.drawings??[]);return i?{x:o?i.left:i.right,rtl:o}:{x:t.contentX,rtl:o}}function Fe(t,e,n,o,i,r,a){let s=a??ie(n,o),l=e.ownerDocument.createElement("span");l.className="docx-terminator-seat",l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(s.x-n.contentX)*r}px`,l.style.bottom=`${Math.max(0,n.box.height-n.baseline)*r}px`,l.style.width="0",l.style.fontSize="0",l.style.lineHeight="0",l.style.whiteSpace="pre",l.style.pointerEvents="none",l.style.userSelect="none",s.rtl&&(l.style.direction="rtl"),t.style.display="inline-block",t.style.verticalAlign="baseline",t.style.fontSize=`${i*r}px`,l.append(t),e.append(l);}function De(t,e,n){let o=W(e,n?.authorSlots,n?.styles);if(!o)return;let{attribution:i}=o,r=n?.styles.get(i.author),a=n&&(r?.color!==void 0||n.others==="author");if(t.style.color=a?o.authorColor:o.color,t.dataset.revisionKind=i.kind,t.dataset.revisionId=i.id,t.dataset.reviewAuthor=i.author,n){t.dataset.reviewAuthorSlot=String((n.authorSlots.get(i.author)??0)%A);for(let s of n.classTokens.get(i.author)??[])t.classList.add(s);}o.line&&(t.style.textDecorationLine=o.line,t.style.textDecorationStyle=o.decorationStyle,t.style.textDecorationColor=t.style.color);}function Ot(t,e,n,o,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)",De(a,s?.revisions,i);let l=s?.style.fontSizePt??chunkFDSL5OJU_cjs.ca.fontSizePt;Fe(a,n,e,r,l,o);}function Nt(t,e,n,o,i=false){let r=chunkFDSL5OJU_cjs.hb(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=chunkFDSL5OJU_cjs.ib(r),l=n?.styles.get(r.author),d=n?(n.authorSlots.get(r.author)??0)%A:0;if(n){a.dataset.reviewAuthorSlot=String(d);let c=n.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??(n?.others==="author"?$(d):s?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)"),o){let c=a.style.color;a.style.color="";let u=chunkFDSL5OJU_cjs._a(o,r.kind).mark;u==="hidden"&&(a.style.visibility="hidden"),u==="caret"&&(a.textContent="^"),u==="pound"&&(a.textContent="#"),oe(a,o,r.kind,l?.color??$(d),i||n?.others==="kind"||l?.color?c:void 0,l?.background);}else s&&(a.style.textDecorationLine="line-through");return a}function fe(t){let e=Object.getPrototypeOf(t);return e===Object.prototype||e===Array.prototype||e===null}function Ie(t,e,n,o){if(t===e)return true;if(typeof t!="object"||typeof e!="object"||t===null||e===null||n>32||!fe(t)||!fe(e)||o&&--o.remaining<0)return false;let i=Array.isArray(t);if(i!==Array.isArray(e))return false;if(i){let r=t,a=e;if(r.length!==a.length)return false;for(let s=0;s<r.length;s+=1)if(!Ie(r[s],a[s],n+1,o))return false;return true}return Ut(t,e,void 0,n,o)}function Ut(t,e,n,o,i){let r=t,a=e,s=0;for(let l in r)if(!(!Object.hasOwn(r,l)||n?.has(l))){if(!Object.hasOwn(a,l)||!Ie(r[l],a[l],o+1,i))return false;s+=1;}for(let l in a)Object.hasOwn(a,l)&&!n?.has(l)&&(s-=1);return s===0}function B(t,e,n){return t===e?true:!fe(t)||!fe(e)?false:Ut(t,e,n,0)}function _t(t,e,n){return Ie(t,e,0,{remaining:n})}var Oo=/^[0-9A-Fa-f]{6}$/,No=new Set(["box","lines","shadingBox","marker"]),Uo=new Set(["box","contentX","spans"]),Kt=new Set(["box"]);function X(t,e,n,o,i,r){let a=(o.x-i.x)*r;a!==(e.x-n.x)*r&&(t.left=`${a}px`);let s=(o.y-i.y)*r;s!==(e.y-n.y)*r&&(t.top=`${s}px`),o.width!==e.width&&(t.width=`${o.width*r}px`),o.height!==e.height&&(t.height=`${o.height*r}px`);}function zt(t,e){return ie(t,e).x-t.contentX}function _o(t,e,n,o,i){if((e.drawings?.length??0)>0||t.box.height!==e.box.height||t.spans.length!==e.spans.length||!B(t,e,Uo))return false;for(let r=0;r<e.spans.length;r+=1){let a=t.spans[r],s=e.spans[r];if(s.tabLeader||s.noteSeparator||s.style.shaping||s.style.border||a.box.width!==s.box.width||a.box.height!==s.box.height||!B(a,s,Kt)||r>0&&n(t,r)!==n(e,r))return false}return !o||zt(t,i)===zt(e,i)}function zo(t,e,n){if(e.borders||e.bottomBorder||e.marker?.picture||t.box.height!==e.box.height||t.lines.length!==e.lines.length||!B(t,e,No)||t.shadingBox===void 0!=(e.shadingBox===void 0)||t.shadingBox&&t.shadingBox.height!==e.shadingBox.height||t.marker===void 0!=(e.marker===void 0))return false;if(t.marker){let a=e.marker;if(t.marker.box.height!==a.box.height||!B(t.marker,a,Kt))return false}let o=chunkFDSL5OJU_cjs.Ed(e.props),i=e.lines.length-1,r=n.showParagraphMarks&&!!e.paragraphEnd||(e.markRevisions?.length??0)>0;for(let a=0;a<=i;a+=1){let s=e.lines[a],l=n.showParagraphMarks&&!!s.manualBreakAfter||a===i&&r;if(!_o(t.lines[a],s,n.gapOf,l,o))return false}return true}function jt(t,e,n,o){if(!zo(e,n,o))return false;let i=o.scale,r=!!(n.shading&&Oo.test(n.shading)&&n.shadingBox),a=n.marker!==void 0,s=(r?1:0)+(a?1:0),l=t.children;if(l.length!==s+n.lines.length)return false;for(let d=0;d<n.lines.length;d+=1)if(l[s+d].dataset.lineId!==n.lines[d].id)return false;if(r&&!l[0].classList.contains("docx-paragraph-shading")||a&&!l[s-1].classList.contains("docx-list-marker"))return false;if(r){let d=l[0];X(d.style,e.shadingBox,e.box,n.shadingBox,n.box,i);}if(a){let d=l[s-1];X(d.style,e.marker.box,e.box,n.marker.box,n.box,i);}for(let d=0;d<n.lines.length;d+=1){let c=e.lines[d],u=n.lines[d],p=l[s+d],f=(u.box.y-n.box.y)*i;f!==(c.box.y-e.box.y)*i&&(p.style.top=`${f}px`);let y=(u.contentX-n.box.x)*i;y!==(c.contentX-e.box.x)*i&&(p.style.left=`${y}px`);}return true}var Oe=new WeakMap,he=new WeakMap;function Wt(t,e,n){Oe.set(t,{fragment:e,rows:n});}function Ne(t,e,n,o,i){he.set(t,{cell:e,host:n,strokes:o,blocks:i});}function Xt(t,e){for(let[n,o]of t)if(n.kind==="table"&&n.tableId===e.tableId&&n.fragmentIndex===e.fragmentIndex)return o}var Ko=new Set(["rows","box","columnEdges"]),jo=new Set(["box","cells"]),Go=new Set(["box","blocks","borders"]),Wo=new Set(["strokes","edgeSegments"]),me=[];function Ue(t,e,n){let o=t.children[n]??null,i=0;for(;i<e.length&&o===e[i];)o=o.nextElementSibling,i+=1;if(i===e.length&&o===null)return;let r=new Set(e);for(;o;){let a=o.nextElementSibling;r.has(o)||o.remove(),o=a;}o=t.children[n+i]??null;for(let a=i;a<e.length;a+=1){let s=e[a];s===o?o=o.nextElementSibling:t.insertBefore(s,o);}}function Xo(t,e,n){if(t===e)return true;if(!t||!e||!B(t,e,Wo))return false;let o=t.strokes??me,i=e.strokes??me;if(o.length!==i.length||i.length>0&&n?.length!==i.length)return false;for(let r=0;r<i.length;r+=1){let a=o[r],s=i[r];if(a.side!==s.side||a.role!==s.role||a.color!==s.color||a.cssStyle!==s.cssStyle)return false;let l=s.side==="top"||s.side==="bottom";if(s.cssStyle!=="solid"&&(l?a.height!==s.height:a.width!==s.width))return false}return true}function Vo(t,e,n,o){let i=e?.strokes??me,r=n?.strokes??me;if(!(i===r||!t))for(let a=0;a<r.length;a+=1){let s=i[a],l=r[a],d=t[a].style;s.x!==l.x&&(d.left=`${l.x*o}px`),s.y!==l.y&&(d.top=`${l.y*o}px`),s.width!==l.width&&(d.width=`${l.width*o}px`),s.height!==l.height&&(d.height=`${l.height*o}px`);}}function Yo(t,e,n){return t[n]?.id===e?n:t.findIndex(o=>o.id===e)}function qo(t,e,n){let o=t.cell,i=n.scale,r=new Set,a=[];for(let s=0;s<e.blocks.length;s+=1){let l=e.blocks[s],d=Yo(o.blocks,l.id,s),c=d<0||r.has(d)?void 0:o.blocks[d],u=c?t.blocks[d]:void 0;if(c&&r.add(d),c&&u&&(c===l||c.kind==="paragraph"&&l.kind==="paragraph"&&jt(u,c,l,n))){X(u.style,c.box,o.box,l.box,e.box,i),a.push(u);continue}let p=l.kind==="table"&&c?.kind==="table"?n.block(l,u):n.block(l);p.style.left=`${(l.box.x-e.box.x)*i}px`,p.style.top=`${(l.box.y-e.box.y)*i}px`,a.push(p);}return a}function Zo(t,e,n,o,i,r){let a=he.get(t);if(!a||a.cell!==e)return null;if(e!==o){if(!B(e,o,Go))return null;if(o.paintInert||o.vMergeContinue)he.set(t,{...a,cell:o});else {if(o.textDirection==="btLr"&&(e.box.width!==o.box.width||e.box.height!==o.box.height)||!Xo(e.borders,o.borders,a.strokes))return null;let l=a.host,d=l.children.length-a.blocks.length;if(d<0)return null;for(let u of a.blocks)if(u.parentElement!==l)return null;Vo(a.strokes,e.borders,o.borders,r.scale);let c=qo(a,o,r);Ue(l,c,d),he.set(t,{cell:o,host:l,strokes:a.strokes,blocks:c});}}return X(t.style,e.box,n,o.box,i,r.scale),t}function Jo(t,e,n,o,i,r){if(e!==o){if(!B(e,o,jo))return null;let a=t.children;if(a.length!==e.cells.length)return null;let s=new Set,l=[];for(let d=0;d<o.cells.length;d+=1){let c=o.cells[d],u=e.cells[d]?.id===c.id?d:e.cells.findIndex(f=>f.id===c.id),p=u>=0&&!s.has(u)?Zo(a[u],e.cells[u],e.box,c,o.box,r):null;p&&s.add(u),l.push(p??r.cell(c,o.box));}Ue(t,l,0);}return X(t.style,e.box,n,o.box,i,r.scale),t}function Gt(t){return `${t.id}\0${t.isHeaderRepeat?1:0}${t.isContinuation?1:0}`}function Vt(t,e,n){let o=Oe.get(t);if(!o)return null;let i=o.fragment;if(!B(i,e,Ko))return null;let r=new Map;for(let[d,c]of o.rows){let u=Gt(d);r.set(u,r.has(u)?null:[d,c]);}let a=new Map;for(let d of e.rows){let c=Gt(d),u=r.get(c);r.delete(c);let p=u?Jo(u[1],u[0],i.box,d,e.box,n):null;a.set(d,p??n.row(d));}let s=n.scale,l=t.style;return i.box.x!==e.box.x&&(l.left=`${e.box.x*s}px`),i.box.y!==e.box.y&&(l.top=`${e.box.y*s}px`),i.box.width!==e.box.width&&(l.width=`${e.box.width*s}px`),i.box.height!==e.box.height&&(l.height=`${e.box.height*s}px`),Ue(t,[...a.values()],0),Oe.set(t,{fragment:e,rows:a}),t}function ge(t,e,n){let o=chunkFDSL5OJU_cjs.kb(e.props)??n.paragraphFormatRevision,i=n.revisionStyles,r=W(e.revisions,i?.authorSlots,i?.styles);if(!(!r&&!o)){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)%A);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(n.revisionMarkup){s?.background&&(t.style.backgroundColor=s.background),oe(t,n.revisionMarkup,r.deleted?e.revisions?.find(c=>c.kind==="delete"||c.kind==="moveFrom")?.kind??a.kind:a.kind,r.authorColor,n.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",...n.revisionMarkup?[]:["docx-revision-format"]),t.dataset.revisionKind="format",t.dataset.formattingKind=chunkFDSL5OJU_cjs.kb(e.props)?"rPrChange":"pPrChange",t.dataset.revisionId=o.id,o.author!==""&&(t.dataset.reviewAuthor=o.author),o.date!==void 0&&(t.dataset.revisionDate=o.date),i){let a=i.styles.get(o.author);t.dataset.reviewAuthorSlot=String((i.authorSlots.get(o.author)??0)%A);let s=i.classTokens.get(o.author);if(s)for(let l=0;l<s.length;l+=1)t.classList.add(s[l]);!n.revisionMarkup&&a?.color!==void 0&&(t.style.color=a.color),a?.background!==void 0&&(t.style.backgroundColor=a.background);}n.revisionMarkup&&oe(t,n.revisionMarkup,"format",i?.styles.get(o.author)?.color??$(i?.authorSlots.get(o.author)??0),void 0,i?.styles.get(o.author)?.background);}}function Yt(t,e,n,o,i){if(e.spans.length!==0)return;i({...chunkFDSL5OJU_cjs.ca,fontFamily:o.fontFamily,fontSizePt:o.fontSizePt,bold:o.bold,italic:o.italic});let r=t.ownerDocument.createElement("br");r.style.lineHeight=`${e.box.height*n}px`,t.append(r);}function qt(t,e,n){let o=e.marker?.picture,i=n.urlRegistry;if(!o||o.resource.kind!=="ready"||!i)return null;let r=n.scale,a=i.urlForReady(o.resource.validatedHandle,o.resource.mime);if(a===null)return null;let s=o.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 Zt(t,e,n,o){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*o}px`,i.style.height=`${Math.min(e.box.height+(n.leading??0),n.box.height)*o}px`;let r=chunkFDSL5OJU_cjs.wf(e,n),a=t.createElement("span");return a.style.position="absolute",a.style.left="0",a.style.top=`${(r.y-n.box.y)*o}px`,a.style.width=`${r.width*o}px`,a.style.height=`${r.height*o}px`,a.style.backgroundColor=e.style.color?`#${e.style.color}`:"#000000",i.append(a),i}function be(t){return t==="double"||t==="triple"||t==="doubleWave"||t.startsWith("thinThick")||t.startsWith("thickThin")}function V(t,e,n,o,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 ${o?"bottom":"right"}, #${n} 60%, transparent 60%)`,t.style.backgroundSize=o?`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 ${o?"bottom":"right"}, #${n} 35%, transparent 35%)`,t.style.backgroundSize=o?`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 ${o?"right":"bottom"}, #${n} 0px, #${n} ${a}px, transparent ${a}px, transparent ${a*2}px, #${n} ${a*2}px)`;return}case "threeDEmboss":case "ridge":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px ridge #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "threeDEngrave":case "groove":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px groove #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "inset":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px inset #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "outset":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px outset #${n}`,o?t.style.width="0px":t.style.height="0px";return}default:return}}var Qo=/^[0-9A-Fa-f]{6}$/;function Jt(t,e,n,o){for(let{box:i,edge:r,side:a}of chunkFDSL5OJU_cjs.Kb(n)){let s=r.color&&Qo.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-n.contentX)*o}px`,top:`${(i.y-n.box.y)*o}px`,width:`${i.width*o}px`,height:`${i.height*o}px`,backgroundColor:`#${s}`});let d=a==="left"||a==="right";V(l,r.val,s,d,(d?i.width:i.height)*o,o),e.append(l);}}function Qt(t,e){let n=e.fieldAtom?.formControl;if(n?.kind!=="dropdown"||n.entries.length===0)return;let o=t.ownerDocument.createElement("select");o.dataset.docxFormDropdown="",o.dataset.docxMarker="",o.setAttribute("aria-label",n.accessibleName??e.text);for(let[i,r]of n.entries.entries()){let a=t.ownerDocument.createElement("option");a.value=String(i),a.textContent=r,o.append(a);}o.selectedIndex=n.selectedIndex,Object.assign(o.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(o);}function en(t,e,n){let o=e.fieldAtom?.formControl;if(o?.kind!=="checkbox")return;t.dataset.docxFormCheckbox="",t.dataset.checked=String(o.checked),t.setAttribute("role","checkbox"),t.tabIndex=0,t.setAttribute("aria-checked",String(o.checked)),o.accessibleName&&t.setAttribute("aria-label",o.accessibleName),t.style.width=`${e.box.width*n}px`;let i=t.ownerDocument.createElement("span");i.className="docx-form-checkbox-hit",i.dataset.docxMarker="",i.setAttribute("aria-hidden","true"),t.append(i);}var ae=Object.freeze({pageBreak:"Page break",columnBreak:"Column break",sectionBreakContinuous:"Section break (continuous)",sectionBreakNextPage:"Section break (next page)",sectionBreakEvenPage:"Section break (even page)",sectionBreakOddPage:"Section break (odd page)",sectionBreakNextColumn:"Section break (new column)"}),nn=Object.keys(ae);function pa(t){if(!t)return ae;let e={};for(let n of nn){let o=`formattingMarks.${n}`,i=t(o);e[n]=i&&i!==o?i:ae[n];}return Object.freeze(e)}function on(t){return nn.map(e=>t[e]).join("\0")}function er(t,e){return t==="page"?e.pageBreak:e.columnBreak}function tr(t,e){switch(t){case "continuous":return e.sectionBreakContinuous;case "evenPage":return e.sectionBreakEvenPage;case "oddPage":return e.sectionBreakOddPage;case "nextColumn":return e.sectionBreakNextColumn;default:return e.sectionBreakNextPage}}var nr=8;function or(t,e){let n=ie(t,e),o=t.box.x,i=t.box.x+t.box.width;return rr(t)?n.rtl?{left:Math.min(o,n.x),right:n.x,rtl:true}:{left:n.x,right:Math.max(i,n.x),rtl:false}:{left:o,right:i,rtl:n.rtl}}function rr(t){return chunkFDSL5OJU_cjs.Jb(t.spans,t.drawings??[])?(t.drawings?.length??0)>0?true:t.spans.some(e=>e.box.width>0||e.text!==chunkZOZI27AW_cjs.qb&&e.text!==`
2
- `&&e.text!==""):false}function tn(t){let e=t.createElement("span");return e.className="docx-break-mark-rule",e.style.flex="1 1 0",e.style.minWidth="0",e.style.height="0",e.style.borderTop="1px dotted currentColor",e}function ir(t,e,n,o,i){if(o.length===0)return null;let{scale:r}=i,a=or(e,i.paragraphRtl),s=nr*r,l=t.createElement("span");l.className="docx-break-mark",l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(a.left-e.contentX)*r}px`,l.style.width=`${Math.max(0,a.right-a.left)*r}px`,l.style.height=`${s}px`,i.boundary?l.style.top=`${-s/2}px`:l.style.bottom=`${Math.max(0,e.box.height-e.baseline)*r}px`,l.style.display="flex",l.style.overflow="hidden",l.style.pointerEvents="none",l.style.userSelect="none",l.style.whiteSpace="pre",l.style.fontFamily="Arial, Helvetica, sans-serif",l.style.fontSize=`${s}px`,l.style.fontWeight="normal",l.style.fontStyle="normal",l.style.lineHeight=`${s}px`,l.style.color="var(--doc-revision-format)",a.rtl&&(l.style.direction="rtl");for(let{text:d,revisions:c}of o){let u=t.createElement("span");u.className="docx-break-mark-segment",u.style.flex="1 1 0",u.style.minWidth="0",u.style.display="flex",u.style.alignItems="center",De(u,c,i.colors);let p=t.createElement("span");p.className="docx-break-mark-label",p.textContent=d,p.dir="auto",p.style.unicodeBidi="isolate",p.style.flex="0 1 auto",p.style.minWidth="0",p.style.overflow="hidden",p.style.padding=`0 ${s/2}px`,u.append(tn(t),p,tn(t)),l.append(u);}return n.append(l),a}function ar(t){let e=t.breakAfter==="page"?chunkZOZI27AW_cjs.qb:`
3
- `;for(let n=t.spans.length-1;n>=0;n-=1)if(t.spans[n].text===e)return t.spans[n].revisions}function rn(t,e){let n=t.sectionBreaks??[];return {strings:e,sectionBreaks:new Map(n.map(o=>[o.paragraphId,o.kind])),token:n.map(o=>`${o.paragraphId}:${o.kind}`).join(",")}}function sr(t,e,n,o,i){let r=e.lines.length-1,a=e.paragraphEnd?o.sectionBreaks.get(e.paragraphId):void 0,s=e.outOfFlow===true&&!e.positionedFrame,l;for(let d=0;d<=r;d+=1){let c=e.lines[d],u=n[d];if(!u)continue;let p=[];if(c.breakAfter&&!s){let y=ar(c);p.push({text:er(c.breakAfter,o.strings),...y?{revisions:y}:{}});}d===r&&a&&p.push({text:tr(a,o.strings)});let f=ir(t,c,u,p,{...i,boundary:s});f&&d===r&&!s&&(l={x:f.rtl?f.left:f.right,rtl:f.rtl});}return {replacesPilcrow:a!==void 0,...l?{pilcrowAt:l}:{}}}function an(t,e,n,o,i){let r=chunkFDSL5OJU_cjs.Ed(e.props),a=o.breakMarks&&!o.inertLinks?sr(t,e,n,o.breakMarks,{paragraphRtl:r,scale:i,...o.revisionStyles?{colors:o.revisionStyles}:{}}):null,s=(e.markRevisions?.length??0)>0;if(!(o.showParagraphMarks&&e.paragraphEnd&&!a?.replacesPilcrow)&&!s)return;let d=Nt(t,e.markRevisions??[],o.revisionStyles,o.revisionMarkup,o.revisionKindColors),c=e.lines[e.lines.length-1],u=n[n.length-1];if(!c||!u)return;let p=e.paragraphMarkSizePt??e.emptyParagraphStyle?.fontSizePt??c.spans.at(-1)?.style.fontSizePt??chunkFDSL5OJU_cjs.ca.fontSizePt;Fe(d,u,c,r,p,i,a?.pilcrowAt);}function sn(t){t.style.fontFamily=chunk6NVZNB7O_cjs.S,t.style.direction="ltr";}function _e(t,e,n=false){let o=n?null:chunkFDSL5OJU_cjs.kb(e.props.filter(r=>r.localName==="pPrChange")),i=o??e.markFormatRevision;i&&(lr(t,i,o?"pPrChange":"rPrChange"),t.dataset.paragraphId=e.paragraphId,t.dataset.reviewStart=String(e.range.start),t.dataset.reviewEnd=String(e.range.end));}function lr(t,e,n){t.dataset.revisionKind="format",t.dataset.revisionId=e.id,t.dataset.formattingKind=n,e.author&&(t.dataset.reviewAuthor=e.author),e.date!==void 0&&(t.dataset.revisionDate=e.date);}function ln(t,e,n,o,i,r){for(let a of [n.footnotes,n.endnotes])a&&e.append(dr(t,n,a,o,i,r));}function dr(t,e,n,o,i,r){let a=t.createElement("div");a.className="docx-notes",a.dataset.docxNotes=n.kind,a.dataset.docxNotesPlacement=n.placement,a.style.position="absolute",a.style.left=`${(n.box.x-e.box.x)*o.scale}px`,a.style.top=`${(n.box.y-e.box.y)*o.scale}px`,a.style.width=`${n.box.width*o.scale}px`,a.style.height=`${n.box.height*o.scale}px`;for(let s of [n.separator,n.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-n.box.x)*o.scale}px`,l.style.top=`${(s.box.y-n.box.y)*o.scale}px`,l.style.width=`${s.box.width*o.scale}px`,l.style.height=`${s.box.height*o.scale}px`;let d=s.ruleStyle;if(d||s.synthetic)cr(l,t,d??"single",o.scale,s.box.height,s.ruleColor);else {let c={...o,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 n.notes){let l={...o,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-n.box.x)*o.scale}px`,d.style.top=`${(s.box.y-n.box.y)*o.scale}px`,d.style.width=`${s.box.width*o.scale}px`,d.style.height=`${s.box.height*o.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 cr(t,e,n,o,i,r){t.dataset.docxNoteRule=n;let a=r&&/^[a-f\d]{6}$/i.test(r)?`#${r}`:"#000000";t.style.color=a;let s=Math.max(1,o*.75);if(n==="single"){t.style.backgroundColor=a,t.style.height=`${i*o}px`;return}t.style.opacity="0.85";let l=Math.max(1,o*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 ur=new Set(["dropdown","comboBox","date","checkbox","picture","buildingBlockGallery"]);function dn(t,e,n,o){let i=o.contentControlChrome,r=i?.suppressedIds,a=(n.contentControls??[]).filter(p=>r?.has(p.id)!==true),s=[...a,...(i?.additionalBoundaries??[]).filter(p=>r?.has(p.id)!==true&&!a.some(f=>f.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 f=u?.has(p.id)===true,y=!f&&d?.has(p.id)===true,h=c?.has(p.id)===true;e.append(yr(t,n,p,o.scale,y,h,l||y||f&&h,i?.checkedIds?.has(p.id),f,i?.readOnly===true));}}function pr(t,e,n,o){let i=t.contentBox.x-t.box.x,r=t.contentBox.y-t.box.y;if(n==="checkbox"){let p=Math.max(1,Math.min(e.height,16))*o,f=e.width>0?(i+e.x+e.width/2)*o-p/2:(i+e.x)*o,y=(r+e.y)*o+Math.max(0,(e.height*o-p)/2);return {left:f,top:y,size:p}}let a=16*o,s=(i+e.x+e.width)*o,l=t.box.width*o,d=s+2*o,c=d+a<=l?d:Math.max(0,s-a),u=(r+e.y)*o+Math.max(0,(e.height*o-a)/2);return {left:c,top:u,size:a}}function yr(t,e,n,o,i,r,a,s,l,d){let c=t.createElement("div");c.className="docx-content-control-chrome",c.dataset.docxContentControl=n.id,c.dataset.docxMarker="",c.dataset.controlType=n.controlType,c.dataset.lock=n.effectiveLock,n.bound&&(c.dataset.bound=""),n.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"),n.alias&&(c.dataset.alias=n.alias),n.tag&&(c.dataset.tag=n.tag),n.alias&&c.setAttribute("aria-label",n.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 n.fragments){if(y.pageIndex!==e.index)continue;let h=t.createElement("div");h.className="docx-content-control-boundary",h.dataset.docxMarker="",h.setAttribute("contenteditable","false"),h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.left=`${(u+y.box.x)*o}px`,h.style.top=`${(p+y.box.y)*o}px`,h.style.width=`${Math.max(y.box.width,1)*o}px`,h.style.height=`${Math.max(y.box.height,1)*o}px`,h.style.pointerEvents="none",c.append(h);}let f=n.fragments.find(y=>y.pageIndex===e.index);if(f&&n.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=n.alias,y.style.position="absolute",y.style.left=`${(u+f.box.x)*o}px`,y.style.top=`${Math.max(0,(p+f.box.y)*o-16)}px`,y.style.pointerEvents="none",c.append(y);}if(f&&ur.has(n.controlType)){let y=t.createElement("button");y.type="button",y.className="docx-content-control-widget",y.dataset.docxMarker="",y.dataset.docxCcWidget=n.controlType,y.dataset.docxCcId=n.id,y.setAttribute("contenteditable","false"),y.setAttribute("tabindex","-1"),n.controlType==="checkbox"?y.setAttribute("role","checkbox"):n.controlType==="dropdown"||n.controlType==="comboBox"||n.controlType==="buildingBlockGallery"?y.setAttribute("role","listbox"):(n.controlType==="date"||n.controlType==="picture")&&y.setAttribute("role","button"),n.alias&&(y.dataset.name=n.alias),n.alias&&y.setAttribute("aria-label",n.alias),n.controlType==="checkbox"&&(y.setAttribute("data-checked",s?"true":"false"),y.setAttribute("aria-checked",s?"true":"false"));let h=n.effectiveLock==="contentLocked"||n.effectiveLock==="sdtContentLocked";(d||h||n.bound)&&(y.disabled=true,y.dataset.disabledReason=d?"readOnly":n.bound?"bound":"locked",y.setAttribute("aria-disabled","true"));let m=pr(e,f.box,n.controlType,o);y.style.position="absolute",y.style.left=`${m.left}px`,y.style.top=`${m.top}px`,y.style.width=`${m.size}px`,y.style.height=`${m.size}px`,y.style.fontSize=`${m.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 un="docx-change-bars",xe="docx-change-bar",fr=.5;function pn(t,e){for(let n of e)switch(t.author??=n.author,n.kind){case "insert":case "moveTo":t.insertion=true;break;case "delete":case "moveFrom":t.deletion=true;break;case "format":t.format=true;break}}function yn(t,e,n){let o=t.lines,i=o.length-1,r=[];for(let a=0;a<=i;a+=1){let s=o[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&&cn(t,o,a,e,r,n);continue}s.changeSites&&r.push(...s.changeSites);for(let l of s.spans){l.revisions&&r.push(...l.revisions);let d=chunkFDSL5OJU_cjs.kb(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=chunkFDSL5OJU_cjs.kb(t.props);l&&r.push(l);}r.length!==0&&cn(t,o,a,e,r,n);}}function cn(t,e,n,o,i,r){let a=e[n],s=e.length-1,l=(n===0?t.box.y:a.box.y)+o.dy,d=Math.min((n===s?t.box.y+t.box.height:e[n+1].box.y)+o.dy,o.limit);if(d<=l)return;let c={top:l,bottom:d,story:o.story,insertion:false,deletion:false,format:false};pn(c,i),r.push(c);}function hr(t,e,n){for(let o of t.rows){let i=e.mode==="simple-markup"?o.changeSites:void 0;if(e.mode==="all-markup"&&o.revisionKind||i&&i.length>0){let r=chunkFDSL5OJU_cjs._e(o)?Math.max(o.box.y,...o.cells.map(s=>s.box.y+s.box.height)):o.box.y+o.box.height,a={top:o.box.y+e.dy,bottom:Math.min(r+e.dy,e.limit),story:e.story,author:o.revisionAuthor,insertion:o.revisionKind==="insert",deletion:o.revisionKind==="delete",format:false};i&&pn(a,i),n.push(a);}for(let r of o.cells){if(r.textDirection==="btLr"){let a=[];if(ze(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&&n.push(s);continue}ze(r.blocks,e,n);}}}function ze(t,e,n){for(let o of t)o.kind==="table"?hr(o,e,n):yn(o,e,n);}function mr(t){t.sort((n,o)=>n.top-o.top||n.bottom-o.bottom);let e=[];for(let n of t){let o=e[e.length-1];if(o&&o.story===n.story&&o.author===n.author&&n.top<=o.bottom+fr){o.bottom=Math.max(o.bottom,n.bottom),o.insertion||=n.insertion,o.deletion||=n.deletion,o.format||=n.format;continue}e.push({...n});}return e}function Ke(t,e,n,o=false,i,r=false,a){let s=[];if(n==="none"||i?.changedLines.mark==="none")return {mode:n,toggle:o,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};chunkFDSL5OJU_cjs.Ea(t,m=>{if(m.story==="note-separator")return;let v={mode:n,story:m.story,dy:m.origin.y-t.box.y,limit:m.story==="body"?d:l};ze(m.host.fragments,v,s);let k=m.story==="header"||m.story==="footer"?b=>chunkFDSL5OJU_cjs.za(b,m.origin,c):void 0;chunkFDSL5OJU_cjs.Ia(m.host,(b,S)=>{S.textboxDepth!==0&&yn(b,{mode:n,story:m.story,dy:S.storyOrigin.y-t.box.y,limit:l},s);},m.origin,k);});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),f=i?chunkFDSL5OJU_cjs.Za(i.changedLines.color,"var(--doc-review-author-0)",n==="simple-markup"?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"):void 0,y=mr(s);if(i?.changedLines.color==="byAuthor")for(let m of y)m.color=a?.styles.get(m.author??"")?.color??$(a?.authorSlots.get(m.author??"")??0);let h=`${n}|${o?"t":""}|${p}|${f??""}`;for(let m of y)h+=`|${m.story}:${m.top.toFixed(3)}-${m.bottom.toFixed(3)}${m.insertion?"i":""}${m.deletion?"d":""}${m.format?"f":""}:${m.color??""}`;return {mode:n,toggle:o,left:p,runs:y,signature:h,...f?{color:f}:{}}}function fn(t,e,n){if(e.runs.length===0)return null;let o=e.mode==="simple-markup",i=t.createElement("div");i.className=un,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=xe,r.insertion&&a.classList.add(`${xe}-insertion`),r.deletion&&a.classList.add(`${xe}-deletion`),r.format&&a.classList.add(`${xe}-format`),a.dataset.docxStory=r.story,a.style.position="absolute",a.style.left=`${e.left}px`,a.style.top=`${r.top*n}px`,a.style.height=`${(r.bottom-r.top)*n}px`,a.style.width=o?"var(--doc-review-change-bar-simple-width)":"var(--doc-review-change-bar-width)",a.style.backgroundColor=r.color??e.color??(o?"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 hn(t,e,n,o,i=false,r,a=false,s){return fn(t,Ke(e,n,o,i,r,a,s),n)}function mn(t,e,n,o,i,r=false,a,s=false,l){let d=e.querySelector(`:scope > .${un}`),c=Ke(n,o,i,r,a,s,l);if(d&&d.dataset.docxChangeBars===c.signature)return;d?.remove();let u=fn(t,c,o);u&&e.append(u);}function ve(t,e,n){return !!n.activeHeaderFooterRId&&!!t.rId&&n.activeHeaderFooterRId===t.rId&&(n.activeHeaderFooterPageIndex===void 0||n.activeHeaderFooterPageIndex===e)}function je(t,e,n){return n?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 gr(t,e){let{box:n}=e,o=t.contentBox,i=e.kind==="header"?n.y:Math.max(n.y,o.y+o.height),r=e.kind==="header"?Math.min(n.y+n.height,o.y):n.y+n.height;return r>i?{x:n.x,y:i,width:n.width,height:r-i}:null}function br(t,e){let n=e.box,o=t.contentBox;return n.x<o.x+o.width&&o.x<n.x+n.width&&n.y<o.y+o.height&&o.y<n.y+n.height}function gn(t,e,n,o,i){let r=o.box;if(br(n,o)){e.dataset.docxHfOverBody="";let s=gr(n,o);if(!s)return null;let l=t.createElement("div");l.className="docx-hf-hover",l.dataset.docxHfHover=o.kind,l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(s.x-n.box.x)*i}px`,l.style.top=`${(s.y-n.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=o.kind,a.setAttribute("contenteditable","false"),a.style.position="absolute",a.style.left=`${(r.x-n.box.x)*i}px`,a.style.width=`${r.width*i}px`,a.style.top=o.kind==="header"?`${(r.y+r.height-n.box.y)*i}px`:`${(r.y-n.box.y)*i}px`,o.kind==="footer"&&(a.style.transform="translateY(-100%)"),a}function bn(t,e){for(let{record:n,element:o,materialized:i}of t){if(!i)continue;let r=o.querySelector(":scope > .docx-page-content");r&&ke(r,"contenteditable",e.activeHeaderFooterRId?"false":null);let a=null;for(let s of o.querySelectorAll(":scope > .docx-hf:not(.docx-hf--placeholder)")){let l=xr(n,s);if(!l)continue;let d=ve(l,n.index,e);d&&(a=l.kind),vr(s,n,l,d,e.scale);}ke(o,"data-docx-hf-active-kind",a);for(let s of o.querySelectorAll(":scope > [data-docx-hf-front]")){let l=xn(n,s.dataset.docxHfFront);vn(s,!!l&&ve(l,n.index,e));}}}function xr(t,e){return xn(t,e.dataset.docxHf)}function xn(t,e){if(e==="header")return t.header;if(e==="footer")return t.footer}function vr(t,e,n,o,i){ke(t,"data-docx-hf-active",o?"":null),ke(t,"contenteditable",o?"true":"false");let r=`${je(n,e,o)*i}px`;t.style.height!==r&&(t.style.height=r),vn(t,o);}function ke(t,e,n){t.getAttribute(e)!==n&&(n===null?t.removeAttribute(e):t.setAttribute(e,n));}function vn(t,e){let n=t.querySelectorAll(t.nodeType===1&&t.classList.contains("docx-drawing-layer")?":scope > *":":scope > .docx-drawing-layer > *"),o=e?"auto":"none";for(let i of n){i.style.pointerEvents!==o&&(i.style.pointerEvents=o);for(let r of i.querySelectorAll(".docx-drawing"))r.style.pointerEvents!==o&&(r.style.pointerEvents=o);}}function kn(t){return t.horizontalFrame==="page"||t.verticalFrame==="page"}function Sn(t,e,n){let o=e.paintBounds,i=chunkFDSL5OJU_cjs.za(e,t.box,n),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(o),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 kr(t,e,n,o,i){let r=n.anchoredDrawings??[];if(r.length===0)return;let a=r.map(l=>Sn(n,l,i)),s=t.createElement("div");s.className="docx-hf-behind-layer",s.dataset.docxHfBehind=n.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",o.appendDrawings(s,a,i,"behind",false),s.childElementCount>0&&e.append(s);}function Sr(t,e,n,o,i,r){let{scale:a}=i.chrome,s=t.createElement("div");s.className="docx-hf",s.dataset.docxHf=o.kind,o.rId&&(s.dataset.docxRId=o.rId),r?(s.dataset.docxHfActive="",s.setAttribute("contenteditable","true")):s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(o.box.x-n.box.x)*a}px`,s.style.top=`${(o.box.y-n.box.y)*a}px`,s.style.width=`${o.box.width*a}px`,s.style.height=`${je(o,n,r)*a}px`,s.style.overflow="visible";let l=(n.box.x-o.box.x)*a,d=(n.box.y-o.box.y)*a,c=l+n.box.width*a,u=d+n.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 o.fragments)s.append(i.paintFragment(y,o.box.x-n.box.x));let p=(o.anchoredDrawings??[]).filter(y=>!kn(y)),f=Object.freeze({x:0,y:0,width:o.box.width,height:o.box.height});return i.appendDrawings(s,p,f,"inFront",r),e.append(s),s}function Rn(t,e,n,o){let i=Object.freeze({x:n.box.x,y:n.box.y,width:n.box.width,height:n.box.height}),r=[n.header,n.footer].filter(s=>!!s);for(let s of r)kr(t,e,s,o,i);let a=[];for(let s of r){let l=ve(s,n.index,o.chrome),d=Sr(t,e,n,s,o,l),c=gn(t,d,n,s,o.chrome.scale);c&&a.push(c);let u=(s.anchoredDrawings??[]).filter(kn).map(p=>Sn(s,p,i));o.appendDrawings(e,u,i,"inFront",l,s.kind);}return a}var Rr=0;function wn(t,e,n,o){if(o===void 0||!Number.isFinite(o)||o<0||o>1)return;let i="http://www.w3.org/2000/svg",r=(u,p)=>{let f=t.createElementNS(i,u);for(let[y,h]of Object.entries(p))f.setAttribute(y,h);return f},a=`docx-bilevel-${++Rr}`,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>=o?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),n.style.filter=`${n.style.filter} url(#${a})`.trim();}function En(t){return Math.max(-1,Math.min(1,t))}function Mn(t,e){if(!Number.isFinite(t)||!Number.isFinite(e))return null;let n=En(t/100),o=En(e/100);if(n===0&&o===0)return null;let i=o>=0?Math.min(1e3,1/(1-o)):Math.max(0,1+o),r=.5-n/2,a=r+n-i*r;return Object.freeze({slope:i,intercept:a})}function Se(t){if(!Number.isFinite(t))return "0";let e=Math.round(t*1e6)/1e6;return String(Object.is(e,-0)?0:e)}function wr(t){let{slope:e,intercept:n}=t;if(n>=0){let i=e+2*n;return i<=0?"brightness(0)":`contrast(${Se(e/i)}) brightness(${Se(i)})`}let o=1-2*n;return `brightness(${Se(e/o)}) contrast(${Se(o)})`}function Ge(t){let e=[];t.grayscale&&e.push("grayscale(1)");let n=Mn(t.brightness,t.contrast);n&&e.push(wr(n));let{opacity:o}=t;return o!==void 0&&Number.isFinite(o)&&o>=0&&o<1&&e.push(`opacity(${Math.round(o*1e3)/1e3})`),e.length>0?e.join(" "):void 0}var Ln="http://www.w3.org/2000/svg",Er=0;function Pn(t,e){let{cx:n,cy:o}=t.extentEmu;if(n>0&&o>0)return {viewBox:[0,0,n,o],frame:e};let i=1;for(let a of t.components)i=Math.max(i,a.strokeWidthEmu);if(n<=0){let a=o>0?e.height/o:0;return {viewBox:[-i,0,2*i,Math.max(1,o)],frame:{...e,x:e.x-i*a,width:2*i*a}}}let r=e.width/n;return {viewBox:[0,-i,n,2*i],frame:{...e,y:e.y-i*r,height:2*i*r}}}function Tn(t,e,n,o,i){let r=`docx-inset-${++Er}`,a=t.createElementNS(Ln,"clipPath");a.setAttribute("id",r);let s=t.createElementNS(Ln,"path");s.setAttribute("d",o),s.setAttribute("clip-rule","evenodd"),a.append(s),e.append(a),n.setAttribute("stroke-width",String(2*Math.max(1,i))),n.setAttribute("clip-path",`url(#${r})`);}var We="http://www.w3.org/2000/svg";function H(t){return Number.isFinite(t)?String(t):"0"}function Xe(t,e,n,o,i){if(o===n)return;let r=a=>`${H(-a*i)}px`;t.style.overflow="visible",t.style.clipPath=`inset(${r(n.y-o.y)} ${r(o.x+o.width-(n.x+n.width))} ${r(o.y+o.height-(n.y+n.height))} ${r(n.x-o.x)})`,e.style.pointerEvents="none";}function Ve(t,e,n){let o=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=Pn(o,i);a.style.left=`${(s.frame.x-r.x)*n}px`,a.style.top=`${(s.frame.y-r.y)*n}px`,a.style.width=`${s.frame.width*n}px`,a.style.height=`${s.frame.height*n}px`;let l=t.createElementNS(We,"svg");l.setAttribute("viewBox",s.viewBox.map(H).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 o.components){let c=t.createElementNS(We,"path"),u=d.subpathsEmu.map((p,f)=>`M${p.map(y=>`${H(y.x)} ${H(y.y)}`).join("L")}${d.subpathsClosed?.[f]===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",H(Math.max(0,d.fillAlpha))),d.strokeHex!==null&&(c.setAttribute("stroke",`#${d.strokeHex}`),c.setAttribute("stroke-width",H(Math.max(1,d.strokeWidthEmu))),d.strokeCap&&c.setAttribute("stroke-linecap",d.strokeCap),d.strokeJoin&&c.setAttribute("stroke-linejoin",d.strokeJoin),d.strokeInset&&Tn(t,l,c,u,chunkFDSL5OJU_cjs.Ue(d.strokeWidthEmu)),d.strokeAlpha<1&&c.setAttribute("stroke-opacity",H(Math.max(0,d.strokeAlpha)))),l.append(c),d.strokeHex!==null)for(let p of d.arrowheadsEmu??[]){let f=t.createElementNS(We,"path");f.setAttribute("d",`M${p.map(y=>`${H(y.x)} ${H(y.y)}`).join("L")}Z`),f.setAttribute("fill",`#${d.strokeHex}`),f.setAttribute("fill-opacity",H(Math.max(0,Math.min(1,d.strokeAlpha)))),f.setAttribute("data-docx-line-end","triangle"),l.append(f);}}return a.append(l),a}function Ye(t,e,n,o){let i=e.groupTextboxStories;if(!i||e.accessibility.hidden||!n.paintStoryFragment)return null;let r=e.paintBounds;if(r.width<=0||r.height<=0)return null;let a=n.scale,s=t.createElement("div");s.className="docx-drawing-group-text",s.dataset.groupTextFor=e.drawingNodeId,s.setAttribute("contenteditable","false");let l=o?.x??0,d=o?.y??0;s.style.position="absolute",s.style.left=`${(r.x-l)*a}px`,s.style.top=`${(r.y-d)*a}px`,s.style.width=`${r.width*a}px`,s.style.height=`${r.height*a}px`,s.style.overflow="hidden",s.style.pointerEvents="none";let c=e.x-r.x,u=e.y-r.y;for(let p of i){let f=p.story,y=t.createElement("div");y.className="docx-drawing-textbox-content",y.style.position="absolute",y.style.left=`${(c+p.box.x+f.contentOffset.x)*a}px`,y.style.top=`${(u+p.box.y+f.contentOffset.y)*a}px`,y.style.width=`${f.contentWidth*a}px`,y.style.height=`${Math.max(0,f.contentHeight)*a}px`,y.style.overflow="hidden";let h=p.rotationDegrees;if(h!==0&&Number.isFinite(h)){let m=p.box.width/2-f.contentOffset.x,v=p.box.height/2-f.contentOffset.y;y.style.transformOrigin=`${m*a}px ${v*a}px`,y.style.transform=`rotate(${h}deg)`;}for(let m of f.fragments)y.append(n.paintStoryFragment(t,m,{readOnly:true}));for(let m of y.querySelectorAll('[style*="pointer-events"]'))m.style.pointerEvents="none";s.append(y);}return s}var qe="http://www.w3.org/2000/svg",C=t=>Number.isFinite(t)?String(t):"0";function An(t,e){t.setAttribute("fill",e.fillHex!==null?`#${e.fillHex}`:"none"),e.fillHex!==null&&e.fillAlpha<1&&t.setAttribute("fill-opacity",C(Math.max(0,e.fillAlpha))),e.strokeHex!==null&&(t.setAttribute("stroke",`#${e.strokeHex}`),t.setAttribute("stroke-width",C(e.strokeWidthPt)),t.setAttribute("stroke-linejoin","round"),e.strokeAlpha<1&&t.setAttribute("stroke-opacity",C(Math.max(0,e.strokeAlpha))));}function $n(t,e,n,o,i){let r=e.textArt,a=e.paintBounds,s=t.createElement("div");s.className="docx-drawing docx-drawing-text-art",o||(s.dataset.drawingNodeId=e.drawingNodeId),s.style.position="absolute",s.style.left=`${(a.x-(i?.x??0))*n}px`,s.style.top=`${(a.y-(i?.y??0))*n}px`,s.style.width=`${a.width*n}px`,s.style.height=`${a.height*n}px`,s.style.overflow="hidden",s.style.pointerEvents="none",s.setAttribute("role","img"),s.setAttribute("aria-label",e.accessibility.label||r.text);let l=t.createElementNS(qe,"svg");if(l.setAttribute("viewBox",`0 0 ${C(e.width)} ${C(e.height)}`),l.setAttribute("preserveAspectRatio","none"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(e.x-a.x)*n}px`,l.style.top=`${(e.y-a.y)*n}px`,l.style.width=`${e.width*n}px`,l.style.height=`${e.height*n}px`,l.style.overflow="visible",r.rotationDegrees&&(l.style.transformOrigin="50% 50%",l.style.transform=`rotate(${C(r.rotationDegrees)}deg)`),r.path!==null){let d=t.createElementNS(qe,"path");d.setAttribute("d",r.path),An(d,r),l.append(d);}else if(r.fit!==null){let d=t.createElementNS(qe,"text"),{scaleX:c,scaleY:u,offsetX:p,offsetY:f}=r.fit;d.setAttribute("transform",`matrix(${C(c)} 0 0 ${C(u)} ${C(p)} ${C(f)})`),d.setAttribute("font-family",r.fontFamily),d.setAttribute("font-size",C(r.fontSizePt)),d.setAttribute("font-weight",r.bold?"bold":"normal"),d.setAttribute("font-style",r.italic?"italic":"normal"),d.setAttribute("xml:space","preserve"),An(d,r),d.textContent=r.text,l.append(d);}return s.append(l),s}var Mr=new Map([["image/svg+xml","SVG"],["image/tiff","TIFF"],["image/x-emf","EMF"],["image/x-wmf","WMF"]]),Lr="Unknown",we=new WeakMap,Re=new WeakMap,Pr=256;function Hn(t,e){let n=we.get(t);if(n)return n;let o=new Map,i=new Map;return n=Object.freeze({urlForReady(r,a){let s=o.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 o.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<Pr&&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 o)r.has(s)||(e.revoke(l),o.delete(s));for(let[s,l]of i)a.has(s)||(l.element.removeAttribute("src"),i.delete(s));},revokeAll(){for(let r of o.values())e.revoke(r);o.clear();for(let r of i.values())r.element.removeAttribute("src");i.clear();}}),we.set(t,n),n}function Ze(t,e){return `${e.paintInstance??""}|${t.drawingNodeId}`}function Za(t){we.get(t)?.revokeAll(),we.delete(t);}function Y(t){return Number.isFinite(t)?String(t):"0"}function Fn(t,e){if(t.length<3||e.width<=0||e.height<=0)return null;let n=[];for(let o of t){if(!Number.isFinite(o.x)||!Number.isFinite(o.y))return null;let i=(o.x-e.x)/e.width*100,r=(o.y-e.y)/e.height*100;n.push(`${Y(i)}% ${Y(r)}%`);}return `polygon(${n.join(", ")})`}function Dn(t){let e=t.geometry.contentBounds;return chunkFDSL5OJU_cjs.We({transform:t.transform,contentWidth:e.width,contentHeight:e.height})}function In(t,e){let{crop:n}=t,o=Math.max(0,Math.min(1,n.left)),i=Math.max(0,Math.min(1,n.top)),r=Math.max(0,Math.min(1,n.right)),a=Math.max(0,Math.min(1,n.bottom)),s=Math.max(1e-4,1-o-r),l=Math.max(1e-4,1-i-a);return Object.freeze({width:`${Y(1/s*100)}%`,height:`${Y(1/l*100)}%`,left:`${Y(-o/s*100)}%`,top:`${Y(-i/l*100)}%`})}function Tr(t,e){let{resource:n}=t;switch(n.kind){case "external":return e.externalResource;case "missing":return e.missingResource;case "pending":return e.pendingResource;case "unrenderable":switch(n.reason){case "unsupported-format":return e.unsupportedFormat(Mr.get(n.mime)??Lr);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 D(t,e,n){let{accessibility:o}=e;o.hidden||(t.setAttribute("role",n?"link":"img"),o.label?t.setAttribute("aria-label",o.label):n||t.setAttribute("aria-hidden","true"));}function q(t,e,n,o){let i=o?.x??0,r=o?.y??0;t.style.position="absolute",t.style.left=`${(e.x-i)*n}px`,t.style.top=`${(e.y-r)*n}px`,t.style.width=`${e.width*n}px`,t.style.height=`${e.height*n}px`,t.style.boxSizing="border-box",t.style.overflow="hidden",t.style.pointerEvents="auto";}function On(t){let e=t.groupPicture?t.geometry.imageTransformCorners:void 0;if(!e||e.length===0)return t.geometry.contentBounds;let n=1/0,o=1/0,i=-1/0,r=-1/0;for(let a of e)n=Math.min(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.x),r=Math.max(r,a.y);return {x:n,y:o,width:i-n,height:r-o}}function Ar(t,e,n,o,i){let r=t.paintBounds,a=On(t),s=In(t);return [o,n.scale,i?.x??0,i?.y??0,r.x,r.y,r.width,r.height,a.x,a.y,a.width,a.height,Fn(t.geometry.clipPolygon??[],r)??"",Ge(t.effects)??"",t.effects.bilevel??"",Dn(t)??"",s.width,s.height,s.left,s.top,n.inertLinks?"":t.hyperlinkHref??"",t.accessibility.label??""].join("|")}function se(t,e,n,o){let i=t.createElement("div");i.className="docx-drawing docx-drawing-placeholder",n.unbound||(i.dataset.drawingNodeId=e.drawingNodeId),q(i,e.paintBounds,n.scale,o);let r=t.createElement("div");r.className="docx-drawing-placeholder-card";let a=t.createElement("span");a.className="docx-drawing-placeholder-label",a.textContent=Tr(e,n.strings),r.append(a);let s=n.unsupportedSource?.(e.drawingNodeId,e.ownerPartName)??null;return ne(r,a,{ownerPartName:e.ownerPartName,namespaceUri:s?.namespaceUri??"http://schemas.openxmlformats.org/wordprocessingml/2006/main",localName:s?.localName??"drawing",source:s,placement:"inline",bounds:e.paintBounds,nodeId:e.drawingNodeId,label:a.textContent,drawing:e},i),i.append(r),e.hyperlinkHref&&!n.inertLinks?(i.dataset.docxDrawingLink=e.drawingNodeId,i.dataset.docxDrawingLinkKind="external",i.dataset.docxDrawingLinkHref=e.hyperlinkHref,i.setAttribute("tabindex","-1"),D(i,e,true)):D(i,e,false),i}function $r(t,e,n,o,i,r){let a=e.resource;if(a.kind!=="ready")return se(t,e,n,r);let s=Ze(e,n),l=i?.readyElementFor?.(s)??t.createElement("div"),d=Ar(e,a,n,o,r),c=!e.vectorShape;if(c&&Re.get(l)===d)return l;l.className="docx-drawing docx-drawing-ready",l.style.cssText="",n.unbound||(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"),q(l,e.paintBounds,n.scale,r);let u=t.createElement("div");u.className="docx-drawing-image-frame",u.style.position="absolute";let p=On(e),f=e.paintBounds,y=Fn(e.geometry.clipPolygon??[],e.groupPicture?p:f);y&&((e.groupPicture?u:l).style.clipPath=y),u.style.left=`${(p.x-f.x)*n.scale}px`,u.style.top=`${(p.y-f.y)*n.scale}px`,u.style.width=`${p.width*n.scale}px`,u.style.height=`${p.height*n.scale}px`;let h=Ge(e.effects);h&&(u.style.filter=h);let m=t.createElement("div");m.className="docx-drawing-transform-stage",m.style.position="relative",m.style.width="100%",m.style.height="100%";let v=Dn(e);v&&(m.style.transform=v,m.style.transformOrigin="0 0");let k=t.createElement("div");k.className="docx-drawing-crop-viewport",k.style.position="relative",k.style.width="100%",k.style.height="100%",k.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")!==o&&b.setAttribute("src",o),b.setAttribute("alt","");let S=In(e);if(b.style.position="absolute",b.style.width=S.width,b.style.height=S.height,b.style.left=S.left,b.style.top=S.top,b.style.maxWidth="none",b.style.maxHeight="none",k.append(b),m.append(k),u.append(m),l.replaceChildren(u),e.vectorShape){let K=Ve(t,e,n.scale),L=e.paintBounds;Xe(l,K,L,chunk6NVZNB7O_cjs.O(e,L),n.scale),l.append(K);}return wn(t,l,u,e.effects.bilevel),e.hyperlinkHref&&!n.inertLinks?(l.dataset.docxDrawingLink=e.drawingNodeId,l.dataset.docxDrawingLinkKind="external",l.dataset.docxDrawingLinkHref=e.hyperlinkHref,l.setAttribute("tabindex","-1"),D(l,e,true)):D(l,e,false),i?.rememberReadyElement?.(s,l),c?Re.set(l,d):Re.delete(l),l}function Cr(t,e,n,o,i){let r=t.createElement("div");r.className="docx-drawing docx-drawing-shape",n.unbound||(r.dataset.drawingNodeId=e.drawingNodeId);let a=e.paintBounds;q(r,a,n.scale,i);let s=Ve(t,e,n.scale);return Xe(r,s,a,o,n.scale),r.append(s),e.hyperlinkHref&&!n.inertLinks?(r.dataset.docxDrawingLink=e.drawingNodeId,r.dataset.docxDrawingLinkKind="external",r.dataset.docxDrawingLinkHref=e.hyperlinkHref,r.setAttribute("tabindex","-1"),D(r,e,true)):D(r,e,false),r}function Br(t,e,n,o,i){let r=o.scale,a=t.createElement("div");a.className="docx-drawing docx-drawing-textbox",o.unbound||(a.dataset.drawingNodeId=e.drawingNodeId),a.setAttribute("contenteditable","false"),q(a,e.paintBounds,o.scale,i),a.style.overflow="hidden";let s=(e.x-e.paintBounds.x)*r,l=(e.y-e.paintBounds.y)*r;if(n.fillHex!==null||n.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",n.fillHex!==null&&(c.style.backgroundColor=`#${n.fillHex}`),n.strokeHex!==null&&(c.style.border=`${Math.max(n.strokeWidthPt*r,.5)}px solid #${n.strokeHex}`),a.append(c);}let d=t.createElement("div");d.className="docx-drawing-textbox-content",d.style.position="absolute",d.style.left=`${s+n.contentOffset.x*r}px`,d.style.top=`${l+n.contentOffset.y*r}px`,d.style.width=`${n.contentWidth*r}px`,d.style.height=`${Math.max(0,n.contentHeight)*r}px`,d.style.overflow="hidden";for(let c of n.fragments)d.append(o.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),D(a,e,false),a}function Hr(t,e,n){let o=n.revisionStyles,i=W(e.revisions,o?.authorSlots,o?.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,o?t.dataset.reviewAuthorSlot=String((o.authorSlots.get(r.author)??0)%A):delete t.dataset.reviewAuthorSlot;}function Nn(t,e,n,o,i){let r=Fr(t,e,n,o,i);return r&&Hr(r,e,n),r}function Fr(t,e,n,o,i){if(e.accessibility.hidden)return null;let r=e.vectorShape?chunk6NVZNB7O_cjs.O(e,e.paintBounds):e.paintBounds;if(r.width<=0||r.height<=0)return null;if(e.textboxStory!==void 0&&n.paintStoryFragment!==void 0)return Br(t,e,e.textboxStory,n,i);if(e.kind==="anchoredDrawing"&&e.textArt)return $n(t,{...e,textArt:e.textArt},n.scale,!!n.unbound,i);if(e.groupTextboxStories&&!e.groupPicture&&!e.vectorShape){let d=t.createElement("div");return d.className="docx-drawing docx-drawing-group-frame",n.unbound||(d.dataset.drawingNodeId=e.drawingNodeId),q(d,e.paintBounds,n.scale,i),D(d,e,false),d}let{resource:a}=e,s=a.kind==="ready"&&n.imageUrlPort&&o?o.urlForReady(a.validatedHandle,a.mime):null;if(e.groupPicture&&a.kind!=="pending"&&!s)return se(t,e,n,i);let l=e.groupPicture!==void 0&&s!==null;if(e.vectorShape&&e.vectorShape.subpathsEmu.length>0&&!l)return Cr(t,e,n,r,i);if(a.kind==="ready")return !s||!o?se(t,e,n,i):$r(t,e,n,s,o,i);if(a.kind==="pending"){let d=o?.readyElementFor?.(Ze(e,n))??o?.imageForPending?.(Ze(e,n))?.closest(".docx-drawing-ready");return d?(Re.delete(d),n.unbound||(d.dataset.drawingNodeId=e.drawingNodeId),q(d,e.paintBounds,n.scale,i),d):se(t,e,n,i)}return se(t,e,n,i)}function Un(t,e,n,o,i){let r=[];for(let a of e.drawings??[]){let s=Nn(t,a,n,o,i);s&&r.push(s);let l=Ye(t,a,n,i);l&&r.push(l);}return Object.freeze(r)}function _n(t,e,n,o,i,r){let a=[];for(let s of e){if(chunkFDSL5OJU_cjs.Ib(s)!==n)continue;let l=Nn(t,s,o,i,r);l&&(l.dataset.drawingLayer=n,a.push(l));let d=Ye(t,s,o,r);d&&(d.dataset.drawingLayer=n,a.push(d));}return Object.freeze(a)}var Cn=new WeakMap;function Dr(t){let e=Cn.get(t);if(e)return e;let n=[],o=[];chunkFDSL5OJU_cjs.Ea(t,({host:r})=>{(!("anchoredDrawings"in r)||(r.anchoredDrawings?.length??0)===0)&&re(r.fragments).drawingFree||(chunkFDSL5OJU_cjs.Ga(r,a=>{a.resource.kind==="ready"&&n.push(a.resource.resourceKey),o.push(`p${t.index}|${a.drawingNodeId}`);}),chunkFDSL5OJU_cjs.Ia(r,a=>{let s=a.marker?.picture;s?.resource.kind==="ready"&&n.push(s.resource.resourceKey);}));});let i=Object.freeze({resourceKeys:Object.freeze(n),elementKeys:Object.freeze(o)});return Cn.set(t,i),i}var Bn=new WeakMap;function zn(t){let e=Bn.get(t);if(e)return e;let n=new Set,o=new Set;for(let r of t.pages){let a=Dr(r);for(let s of a.resourceKeys)n.add(s);for(let s of a.elementKeys)o.add(s);}let i=Object.freeze({resourceKeys:n,elementKeys:o});return Bn.set(t,i),i}function Kn(t){return zn(t).resourceKeys}function jn(t){return zn(t).elementKeys}function Gn(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 Je=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 Ja(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 Ir(t,e,n){t.style.position="absolute",t.style.left=`${e.x*n}px`,t.style.top=`${e.y*n}px`,t.style.width=`${e.width*n}px`,t.style.height=`${e.height*n}px`;}function Ee(t,e,n,o){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=`${n.x*o}px`,i.style.top=`${n.y*o}px`,i.style.width=`${n.width*o}px`,i.style.height=`${n.height*o}px`,i.style.backgroundColor="currentColor",i.style.pointerEvents="none",i}function E(t,e,n,o,i,r=0,a=0,s=[],l="0",d){let c=r+n.box.x,u=a+n.box.y,p=[...s,n.kind];switch(n.kind){case "text":case "fallback":{let f=t.createElement("span");if(f.className=["docx-equation-node",...p.map(y=>`docx-equation-${y}`)].join(" "),Ir(f,{x:c,y:u,width:n.box.width,height:n.box.height},i),f.textContent=n.text,f.style.display="block",n.runStyle&&d&&(f.style.fontWeight=n.runStyle.bold?"bold":"normal",f.style.fontStyle=n.runStyle.italic?"italic":"normal",d(f,n.runStyle)),f.style.fontSize=`${n.fontSizePt*i}px`,f.style.lineHeight=`${n.box.height*i}px`,f.style.whiteSpace="pre",n.kind==="fallback"){let y=t.createElement("span");y.textContent=n.text,f.textContent="",f.append(y),ne(f,y,{ownerPartName:o.ownerPartName??"",namespaceUri:o.unsupportedSource?.namespaceUri??"http://schemas.openxmlformats.org/officeDocument/2006/math",localName:o.unsupportedSource?.localName??"oMath",source:o.unsupportedSource??null,placement:"inline",bounds:{x:c,y:u,width:n.box.width,height:n.box.height},nodeId:o.sourceNodeId,label:n.text,equation:o},void 0,l);}e.append(f);break}case "row":for(let[f,y]of n.items.entries())E(t,e,y,o,i,c,u,p,`${l}.${f}`,d);break;case "fraction":E(t,e,n.numerator,o,i,c,u,p,`${l}.numerator`,d),e.append(Ee(t,"docx-equation-fraction-bar",{...n.bar,x:c+n.bar.x,y:u+n.bar.y},i)),E(t,e,n.denominator,o,i,c,u,p,`${l}.denominator`,d);break;case "radical":E(t,e,n.sign,o,i,c,u,p,`${l}.sign`,d),n.degree&&E(t,e,n.degree,o,i,c,u,p,`${l}.degree`,d),e.append(Ee(t,"docx-equation-radical-bar",{...n.bar,x:c+n.bar.x,y:u+n.bar.y},i)),E(t,e,n.radicand,o,i,c,u,p,`${l}.radicand`,d);break;case "bar":E(t,e,n.body,o,i,c,u,p,`${l}.body`,d),e.append(Ee(t,"docx-equation-bar",{...n.bar,x:c+n.bar.x,y:u+n.bar.y},i));break;case "script":E(t,e,n.base,o,i,c,u,p,`${l}.base`,d),n.subscript&&E(t,e,n.subscript,o,i,c,u,p,`${l}.subscript`,d),n.superscript&&E(t,e,n.superscript,o,i,c,u,p,`${l}.superscript`,d);break;case "nary":E(t,e,n.operator,o,i,c,u,p,`${l}.operator`,d),n.lowerLimit&&E(t,e,n.lowerLimit,o,i,c,u,p,`${l}.lowerLimit`,d),n.upperLimit&&E(t,e,n.upperLimit,o,i,c,u,p,`${l}.upperLimit`,d),E(t,e,n.body,o,i,c,u,p,`${l}.body`,d);break}}function Or(t,e,n,o,i,r,a){let s=n.geometry;e.className="layout-run docx-equation",e.dataset.docxEquation=n.sourceNodeId,e.setAttribute("contenteditable","false"),e.setAttribute("role","math"),n.fallbackText&&e.setAttribute("aria-label",n.fallbackText),e.style.position="relative",e.style.display="inline-block",e.style.width=`${s.box.width*o}px`,e.style.height=`${s.box.height*o}px`,e.style.lineHeight="0",e.style.pointerEvents="auto",e.style.userSelect="none",e.style.verticalAlign=`${-(s.box.height-s.baseline)*o}px`;let l=t.createDocumentFragment();E(t,l,s,{...n,unsupportedSource:r??null,...a?{ownerPartName:a}:{}},o,0,0,[],"0",i),e.append(l);}function Wn(t,e,n,o,i){Or(t,e,n,o.scale,i,o.unsupportedSource?.(n.sourceNodeId),o.unsupportedOwnerPartName?.(n.sourceNodeId));}function Xn(t,e,n,o){ge(e,n,o);let i=e.dataset.revisionKind;if(i!=="delete"&&i!=="moveFrom"&&i!=="insert"&&i!=="moveTo")return;let r=n.equation?.geometry.box;if(!r)return;let a=o.revisionMarkup?chunkFDSL5OJU_cjs._a(o.revisionMarkup,i).mark:i==="delete"||i==="moveFrom"?"strikethrough":"underline",s=a==="strikethrough"||a==="doubleStrikethrough";if(!s&&a!=="underline"&&a!=="doubleUnderline")return;let l=a==="doubleStrikethrough"||a==="doubleUnderline";if(s){for(let u of e.querySelectorAll(".docx-equation-text, .docx-equation-fallback"))u.classList.add("docx-equation-revision-strike"),u.style.textDecorationLine="line-through",u.style.textDecorationStyle=l?"double":"solid",u.style.textDecorationColor="currentColor";return}let d=.75,c=l?[r.height-3*d,r.height-d]:[r.height-d];for(let u of c)e.append(Ee(t,"docx-equation-revision-underline",{x:0,y:u,width:r.width,height:d},o.scale));}function Vn(t,e,n,o){if(n.glyphOffsetPt!==void 0){let s=n.style.horizontalScalePercent/100,l=n.box.width*o;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=`${n.style.characterSpacingPt*o/s}px`),n.glyphOffsetPt){d.dataset.docxShiftedInk="",d.style.setProperty("forced-color-adjust","preserve-parent-color"),d.style.setProperty("-webkit-text-fill-color","transparent");let c=`${n.glyphOffsetPt*o/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=n.lineEndWhitespace===true;(n.style.horizontalScalePercent!==100||n.text===" "||i)&&(e.style.width=`${n.box.width*o}px`);let r=n.style.shaping!==void 0&&n.style.horizontalScalePercent!==100;if(!i&&!r||(i&&(e.style.clipPath="inset(-1em 0)"),n.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=n.style.horizontalScalePercent/100;a.style.width=`${n.box.width*o/s}px`,a.style.letterSpacing=`${n.style.characterSpacingPt*o/s}px`,n.style.shaping?.wordSpacingPt&&(a.style.wordSpacing=`${n.style.shaping.wordSpacingPt*o/s}px`),a.style.direction=n.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,a.style.textUnderlineOffset=e.style.textUnderlineOffset,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.style.removeProperty("text-underline-offset"),e.append(a),a}function Yn(t,e,n){let o=e.textOutline;if(!o||!Number.isFinite(n)||n<=0||!Number.isFinite(o.widthPt)||o.widthPt<=0||o.widthPt>1584||!/^[0-9a-f]{6}$/i.test(o.color))return;let i=o.widthPt*n;Number.isFinite(i)&&(t.setProperty("-webkit-text-stroke-width",`${i}px`),t.setProperty("-webkit-text-stroke-color",`#${o.color}`));}var Nr=/^[0-9A-Fa-f]{6}$/;function Ur(t,e,n){let o=t.createElement("div");o.className=`docx-page-border docx-page-border-${e.side}`,o.setAttribute("aria-hidden","true"),o.style.position="absolute";let i=e.side==="left"||e.side==="right",r=(i?e.box.width:e.box.height)*n,a=be(e.edge.val)?r:Math.max(1,r),s=a-r;o.style.left=`${e.box.x*n-(e.side==="right"?s:0)}px`,o.style.top=`${e.box.y*n-(e.side==="bottom"?s:0)}px`,o.style.width=i?`${a}px`:`${e.box.width*n}px`,o.style.height=i?`${e.box.height*n}px`:`${a}px`;let l=e.edge.color&&Nr.test(e.edge.color)?e.edge.color:"000000";return o.style.backgroundColor=`#${l}`,V(o,e.edge.val,l,i,a,n),o}function qn(t,e,n){let o=t.createElement("div");o.className="docx-page-borders",o.setAttribute("aria-hidden","true"),o.setAttribute("contenteditable","false"),o.style.position="absolute",o.style.inset="0",o.style.pointerEvents="none";for(let i of e.strokes)o.append(Ur(t,i,n));return o}var _r=/^[0-9A-Fa-f]{6}$/;function zr(t){switch(t){case "dashed":return "dashed";case "dotted":return "dotted";case "double":case "triple":return "solid";default:return "solid"}}function tt(t){return t&&_r.test(t)?t:"000000"}function Qe(t,e){let n=t.createElement("div");return n.className=e,n.setAttribute("aria-hidden","true"),n.setAttribute("contenteditable","false"),n.style.position="absolute",n.style.left="0",n.style.top="0",n.style.right="0",n.style.bottom="0",n.style.overflow="visible",n.style.pointerEvents="none",n.style.boxSizing="border-box",n}function Kr(t,e,n,o){if(!n)return;let i=`#${tt(n.color)}`,r=`${Math.max(0,n.widthPt*o)}px`;if(t.style[`border${e}Width`]=r,t.style[`border${e}Color`]=i,n.style==="double"||n.style==="triple"){t.style[`border${e}Style`]="none";return}t.style[`border${e}Style`]=zr(n.style);}function et(t,e,n,o,i){let r=t.createElement("div");if(r.className=i,r.dataset.edge=n.side,r.dataset.stroke=n.role,r.style.position="absolute",r.style.left=`${n.x*o}px`,r.style.top=`${n.y*o}px`,r.style.width=`${n.width*o}px`,r.style.height=`${n.height*o}px`,r.style.pointerEvents="none",n.cssStyle==="solid")r.style.backgroundColor=`#${tt(n.color)}`;else {let a=n.side==="top"||n.side==="bottom";r.style.boxSizing="border-box",r.style[a?"borderTop":"borderLeft"]=`${(a?n.height:n.width)*o}px ${n.cssStyle} #${tt(n.color)}`;}return e.append(r),r}function jr(t){let e=new Set;for(let n of t)e.add(`${n.side}\0${n.role}`);return e}function Gr(t,e,n,o){let i=jr(n),r=f=>i.has(`${f}\0middle`),a=Qe(t,"docx-table-border-double"),s=Qe(t,"docx-table-border-triple"),l=Qe(t,"docx-table-border-edge");for(let f of [a,s,l])f.style.zIndex="1";let d=false,c=false,u=false,p=[];for(let f of n){if(f.role==="edge"){u=true,p.push(et(t,l,f,o,"docx-table-border-edge-stroke"));continue}if(r(f.side)){c=true,p.push(et(t,s,f,o,"docx-table-border-triple-stroke"));continue}(f.role==="outer"||f.role==="inner")&&(d=true,p.push(et(t,a,f,o,"docx-table-border-double-stroke")));}return d&&e.append(a),c&&e.append(s),u&&e.append(l),p}function Zn(t,e,n,o){let i=new Set((n?.strokes??[]).map(r=>r.side));for(let r of ["top","right","bottom","left"]){let a=`${r[0].toUpperCase()}${r.slice(1)}`;Kr(e,a,n?.[r],o),i.has(r)&&(e.style[`border${a}Style`]="none");}if(n?.strokes&&n.strokes.length>0)return Gr(t,e,n.strokes,o)}function Jn(t,e,n){e.revisionKind&&(n&&(t.style.backgroundColor="transparent"),t.classList.add("docx-table-row--revision",e.revisionKind==="insert"?"layout-revision-ins":"layout-revision-del"),t.dataset.revisionKind=e.revisionKind,e.revisionId!==void 0&&(t.dataset.revisionId=e.revisionId),e.revisionAuthor!==void 0&&(t.dataset.reviewAuthor=e.revisionAuthor),e.revisionDate!==void 0&&(t.dataset.revisionDate=e.revisionDate));}function Qn(t,e,n,o){if(e.textDirection!=="btLr")return o;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*n}px`,i.style.height=`${e.box.width*n}px`,i.style.transformOrigin="0 0",i.style.transform=`translateY(${e.box.height*n}px) rotate(-90deg)`,o.append(i),i}function eo(t){let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function nt(t,e,n){if(t===e)return true;if(--n.left<0||typeof t!="object"||typeof e!="object"||t===null||e===null)return false;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return false;for(let i=0;i<t.length;i+=1)if(!nt(t[i],e[i],n))return false;return true}if(Array.isArray(e)||!eo(t)||!eo(e))return false;let o=Object.keys(t);if(o.length!==Object.keys(e).length)return false;for(let i of o){if(!Object.prototype.hasOwnProperty.call(e,i))return false;let r=t[i],a=e[i];if(!nt(r,a,n))return false}return true}function to(t,e,n){for(let[o,i]of t)if(!(o.id!==e.id||n.includes(i)))return nt(o,e,{left:2e4})?i:void 0}var ot="when-selected",no=new WeakMap,oo=0;function Wr(t){let e=no.get(t);return e||(oo+=1,e=`alias${oo}`,no.set(t,e)),e}function yo(t){return {...t,drawingStrings:t.drawingStrings??Je,urlRegistry:t.urlRegistry??null,changeBars:t.changeBars??"none",changeBarsToggle:t.changeBarsToggle??false}}function Xr(t){let e={...t,inertLinks:true,tabLeaderOriginXPt:0};return Object.freeze({scale:t.scale,...t.unsupportedSource?{unsupportedSource:t.unsupportedSource}:{},strings:t.drawingStrings,...t.imageUrlPort?{imageUrlPort:t.imageUrlPort}:{},...t.inertLinks?{inertLinks:true}:{},...t.paintInstance?{paintInstance:t.paintInstance}:{},...t.revisionStyles?{revisionStyles:t.revisionStyles}:{},...t.unbound?{unbound:true}:{},paintStoryFragment:(n,o,i)=>{let r=i?.readOnly?{...e,unbound:true}:e;return o.kind==="table"?z(n,o,r):_(n,o,r)}})}function fo(t){return Object.freeze({ctx:Xr(t),urlRegistry:t.urlRegistry})}function ro(t,e,n,o,i,r){ho(t,e,chunkFDSL5OJU_cjs.Da(n),o,i,r);}function ho(t,e,n,o,i,r,a=true,s){if(n.length===0)return;let l=fo(o),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 _n(t,n,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 J=/^[0-9A-Fa-f]{6}$/,io=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,Vr=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"})),Yr=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 qr(t){return t.doubleStrike?"double":t.strike?"single":"none"}function Zr(t){return t==="thick"||t.endsWith("Heavy")}function mo(t){if(!t.underline)return null;let e=t.underline.color&&J.test(t.underline.color)?t.underline.color:null;return {cssStyle:Vr.get(t.underline.variant)??"solid",color:e,heavy:Zr(t.underline.variant)}}function go(t,e,n,o){t.textDecorationLine=e,t.textDecorationStyle=n,o.color&&(t.textDecorationColor=`#${o.color}`),o.heavy&&(t.textDecorationThickness=`max(${2*o.scale}px, 0.12em)`);}function ao(t,e,n){e!=="none"&&go(t,"line-through",e==="double"?"double":"solid",{scale:n});}function so(t,e,n){go(t,"underline",e.cssStyle,{color:e.color,heavy:e.heavy,scale:n});}function Jr(t,e,n){let o=e.color?`#${e.color}`:"currentColor";t.borderBottomWidth=`${(e.heavy?2:1)*n}px`,t.borderBottomStyle=e.cssStyle==="wavy"?"solid":e.cssStyle,t.borderBottomColor=o;}function Z(t,e,n){let o=t.style,i=n.scale;Yn(o,e,i);let r=chunkFDSL5OJU_cjs.ia(e);o.fontSize=`${e.fontSizePt*r*i}px`,e.bold&&(o.fontWeight="bold"),e.italic&&(o.fontStyle="italic");let a=e.fontFamily&&io.test(e.fontFamily)?e.fontFamily:n.defaultFontFamily&&io.test(n.defaultFontFamily)?n.defaultFontFamily:null;if(a){let d=n.fontAlias?.(a),c=chunk6NVZNB7O_cjs.T(a);o.fontFamily=d?`"${d}", "${a}", ${c}`:`"${a}", ${c}`;}e.color&&J.test(e.color)&&(o.color=`#${e.color}`);let s=e.highlight?Yr.get(e.highlight):void 0;s?(o.backgroundColor=s,t.dataset.highlight=e.highlight??""):e.shading&&J.test(e.shading)&&(o.backgroundColor=`#${e.shading}`),e.caps&&(o.textTransform="uppercase"),o.fontKerning=chunkFDSL5OJU_cjs.od(e)?"normal":"none",e.smallCaps&&(o.fontVariant="small-caps");let l=chunkFDSL5OJU_cjs.ha(e);l!==0&&(o.position="relative",o.top=`${-l*i}px`),e.characterSpacingPt!==0&&(o.letterSpacing=`${e.characterSpacingPt*i}px`),e.horizontalScalePercent!==100&&(o.transformOrigin="left",o.transform=`scaleX(${e.horizontalScalePercent/100})`);}function bo(t,e,n,o,i){let r=n===" "?null:mo(o),a=qr(o),s=e;if(r&&a!=="none"){let l=t.createElement("span");l.dataset.docxDeco="underline",so(l.style,r,i);let d=t.createElement("span");d.dataset.docxDeco="strike",ao(d.style,a,i),l.append(d),e.append(l),s=d;}else r?so(e.style,r,i):a!=="none"&&ao(e.style,a,i);s.textContent=n;}function I(t,e,n,o){let i=t.createElement(e);return i.style.position="absolute",i.style.left=`${n.x*o}px`,i.style.top=`${n.y*o}px`,i.style.width=`${n.width*o}px`,i.style.height=`${n.height*o}px`,i}function Qr(t,e,n){let o=e.fieldAtom;!o||(t.dataset.fieldAtom=o.formField?"form":"field",o.resultStart!==void 0&&o.resultEnd!==void 0&&(t.dataset.fieldResultStart=String(o.resultStart),t.dataset.fieldResultEnd=String(o.resultEnd)),!(o.formField?n.shadeFormFields!==false:(n.fieldShading??ot)!=="never"))||(t.classList.add("docx-field-atom"),(o.formField||(n.fieldShading??ot)==="always")&&t.classList.add("docx-field-atom--shaded"));}function ei(t,e,n,o,i){let r=t.createElement("span"),a=chunkFDSL5OJU_cjs.xa(e.style,e.fontSlot);if(e.unsupported)return Ct(t,e.unsupported,e.box,n.scale);if(e.equation)return n.unbound||(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)),Z(r,a,n),Wn(t,r,e.equation,n,(l,d)=>Z(l,d,n)),Xn(t,r,e,n),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=`${o*n.scale}px`,r.style.paddingTop=`${i*n.scale}px`,r.style.lineHeight=`${(o-i)*n.scale}px`,e.range.end>e.range.start?n.unbound||(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"),Z(r,a,n),Qr(r,e,n),ge(r,e,n);let s=Vn(t,r,e,n.scale);if(e.text===" "){r.style.overflow="hidden",r.style.verticalAlign="top";let l=mo(e.style);l&&e.tabLeader!=="underscore"&&(r.dataset.docxTabUnderline="",Jr(r.style,l,n.scale));}return bo(t,s,chunkFDSL5OJU_cjs.qd(e),e.style,n.scale),en(r,e,n.scale),Qt(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 lo(t,e,n){let o=t.createElement("a");return o.className="docx-hyperlink",o.style.cursor=!n.inertLinks&&e.href?"pointer":"default",o.dataset.docxLink=e.id,o.dataset.docxLinkKind=e.kind,o.setAttribute("tabindex","-1"),!n.inertLinks&&e.href&&(o.setAttribute("href",e.href),e.kind==="external"&&o.setAttribute("rel","noopener noreferrer")),e.tooltip&&o.setAttribute("title",e.tooltip),o.style.display="inline-block",o.style.verticalAlign="baseline",o.style.textDecoration="none",o.style.color="inherit",o}function ti(t,e,n,o=false,i=chunkFDSL5OJU_cjs.ca){let r=n.scale,a=t.createElement("div");a.className="docx-line layout-line",a.dataset.lineId=e.id,n.unbound||(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.setProperty("text-decoration-skip-ink","none"),a.style.setProperty("text-decoration-skip-spaces","none"),a.style.overflow="visible";let s=e.leading??0,l=Math.min(Math.max(s,...e.spans.map(g=>g.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,f=new Map;for(let[g,x]of chunkFDSL5OJU_cjs.Oa(e).entries())f.set(x.paragraphId,g);let y=g=>f.get(g)??0,h=[...e.drawings??[]].sort((g,x)=>y(g.paragraphId)-y(x.paragraphId)||g.start-x.start),m=0,v=e.spans.some(g=>g.style.shaping!==void 0)||(e.drawings??[]).some(chunkFDSL5OJU_cjs.Od),k=0,b=e.contentX,S=(g,x)=>{for(;m<h.length&&(y(h[m].paragraphId)<y(g)||y(h[m].paragraphId)===y(g)&&h[m].start<x);){let R=h[m],P=v?Math.max(0,R.advanceEnd-R.advanceStart):Math.max(0,R.advanceEnd-b);b=Math.max(b,R.advanceEnd);let w=t.createElement("span");w.className="docx-inline-drawing-advance",w.dataset.docxMarker="",n.unbound||(w.dataset.drawingParagraphId=R.paragraphId,w.dataset.drawingStart=String(R.start)),w.setAttribute("contenteditable","false"),w.setAttribute("aria-hidden","true"),w.style.display="inline-block",w.style.width=`${P*r}px`,w.style.height=`${R.baselineOffset*r}px`,w.style.lineHeight="0",w.style.pointerEvents="none",w.style.verticalAlign="baseline",a.append(w),k+=P,m+=1,c=null,u=null;}},K=g=>{let x=g.wrapAdvanceBefore??0;if(x<=.001)return;let R=t.createElement("span");R.className="docx-wrap-advance",R.dataset.docxMarker="",R.setAttribute("contenteditable","false"),R.setAttribute("aria-hidden","true"),R.style.display="inline-block",R.style.width=`${x*r}px`,R.style.height="0",R.style.lineHeight="0",R.style.pointerEvents="none",R.style.verticalAlign="baseline",a.append(R),c=null,u=null;},L=0,Q=false;for(let[g,x]of e.spans.entries()){let R=m;S(x.range.paragraphId,x.range.start),v||K(x);let P=!v&&m>R?x.box.x-b-(x.wrapAdvanceBefore??0):0;b=Math.max(b,x.box.x+x.box.width);let w=Math.min(x.box.height+s,e.box.height),M=x.noteSeparator?Zt(t,x,e,r):ei(t,x,n,w,s);v&&(M.style.position="relative",M.style.left=`${(x.box.x-e.contentX-k)*r}px`,M.style.width||(M.style.width=`${x.box.width*r}px`),M.style.direction=x.style.shaping?.direction??"ltr",M.style.unicodeBidi="isolate",x.style.shaping?.wordSpacingPt&&(M.style.wordSpacing=`${x.style.shaping.wordSpacingPt*r}px`),k+=x.box.width);let ee=L>0&&!Q?L:P;ee>.001&&(M.style.marginLeft=`${ee*r}px`);let at=e.spans[g+1],Me=v?0:xo(e,g+1,y);Q=Me>0&&at!==void 0&&oi(x,at),Q&&(M.style.wordSpacing=`${Me*r}px`),L=Me;let U=x.link;if(!U){c=null,u=null,p=null,a.append(M);continue}if(x.fieldAtom){let st=rt(x);c!==null&&u===U.id&&p===st||(c=lo(t,U,n),u=U.id,p=st,a.append(c)),c.append(M);continue}(!c||u!==U.id||p!==null)&&(c=lo(t,U,n),u=U.id,p=null,a.append(c)),c.append(M);}S(chunkFDSL5OJU_cjs.Oa(e)[chunkFDSL5OJU_cjs.Oa(e).length-1]?.paragraphId??e.range.paragraphId,Number.POSITIVE_INFINITY),Yt(a,e,r,i,g=>Z(a,g,n));let O=Object.freeze({x:e.contentX,y:e.box.y,width:e.box.width,height:e.box.height});Jt(t,a,e,r),n.showParagraphMarks&&e.manualBreakAfter&&Ot(t,e,a,r,n.revisionStyles,o);let N=fo(yo(n));if(e.drawings&&e.drawings.length>0)for(let g of Un(t,e,N.ctx,N.urlRegistry,O))a.append(g);return a}function xo(t,e,n){if(e<=0||e>=t.spans.length)return 0;let o=t.spans[e-1],i=t.spans[e],r=n(o.range.paragraphId),a=n(i.range.paragraphId);if(t.drawings?.some(d=>{let c=n(d.paragraphId),u=c>r||c===r&&d.start>=o.range.start,p=c<a||c===a&&d.start<i.range.start;return u&&p}))return 0;let l=i.box.x-(o.box.x+o.box.width)-(i.wrapAdvanceBefore??0);return l>.001?l:0}var ni=/[\t\n\r \u00A0\u1361\u{10100}-\u{10102}\u{1039F}\u{1091F}]/u;function oi(t,e){let n=chunkFDSL5OJU_cjs.pb(t.text);return !n.endsWith(" ")||t.style.horizontalScalePercent!==100||!ri(t,e)||(e.wrapAdvanceBefore??0)>.001?false:!ni.test(n.slice(0,-1))}function ri(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||rt(t)===rt(e)}function rt(t){return t.fieldAtom?.resultStart??t.range.start}function _(t,e,n){let o=n.scale,i=I(t,"div",e.box,o);i.className="docx-paragraph-fragment layout-paragraph",e.clipToBox&&(i.style.overflow="hidden"),n.unbound||(i.dataset.paragraphId=e.paragraphId),i.dataset.fragmentIndex=String(e.fragmentIndex),n.unbound||_e(i,e),n.readOnlyParagraphIds?.has(e.paragraphId)&&(i.classList.add("docx-generated-region"),i.dataset.docxReadOnly="",i.setAttribute("contenteditable","false")),n.emptyTocPlaceholderIds?.has(e.paragraphId)&&(i.classList.add("docx-toc-empty-placeholder"),i.dataset.docxTocEmpty=""),e.shading&&J.test(e.shading)&&e.shadingBox&&i.append(si(t,e,o)),e.marker&&i.append(ii(t,e,n));for(let a of e.lines)for(let s of a.spans){if(!s.tabLeader)continue;let l=ai(t,e,a,s,n);l&&i.append(l);}let r=[];for(let a of e.lines){let s=ti(t,a,n.revisionMarkup&&chunkFDSL5OJU_cjs.kb(e.props)?{...n,paragraphFormatRevision:chunkFDSL5OJU_cjs.kb(e.props)}:n,chunkFDSL5OJU_cjs.Ed(e.props),e.emptyParagraphStyle);e.markFormatRevision&&a===e.lines[e.lines.length-1]&&_e(s,e,true),s.style.top=`${(a.box.y-e.box.y)*o}px`,s.style.left=`${(a.contentX-e.box.x)*o}px`,i.append(s),r.push(s);}if(an(t,e,r,n,o),e.borders)for(let a of e.borders)i.append(co(t,e,a,o));else e.bottomBorder&&i.append(co(t,e,{side:"bottom",edge:e.bottomBorder.edge,box:e.bottomBorder.box},o));return i}function ii(t,e,n){let o=e.marker,i=n.scale,r=qt(t,e,yo(n));if(r)return r;let a=e.lines[0]?.leading??0,s=I(t,"span",o.box,i);s.className="docx-list-marker",s.dataset.docxMarker="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.left=`${(o.box.x-e.box.x)*i}px`,s.style.top=`${(o.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(f=>f.box.height+a),l.spans.length===0?l.box.height-(l.trailingSpacing??0):0):o.box.height,c=Math.min(d,o.box.height),u=Math.max(0,o.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`,Z(p,o.style,n),o.pieces&&(p.dir="rtl"),bo(t,p,o.text,o.style,i),s.append(p),s}function ai(t,e,n,o,i){let r=o.tabLeader?chunkFDSL5OJU_cjs.zb.get(o.tabLeader):void 0;if(!r||o.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",o.tabLeader==="underscore"&&(s.style.zIndex="1"),s.style.left=`${(o.box.x-e.box.x)*a}px`,s.style.top=`${(n.box.y-e.box.y)*a}px`,s.style.width=`${o.box.width*a}px`,s.style.height=`${n.box.height*a}px`,s.style.overflow="hidden",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none";let l=n.leading??0,d=Math.min(o.box.height+l,n.box.height),c=Math.max(0,n.box.height-d);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${c*a}px`,s.style.lineHeight=`${(n.box.height-c)*a}px`;let u=t.createElement("span");u.style.display="inline-block",u.style.verticalAlign="baseline",Z(u,o.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`,o.tabLeader==="heavy"&&(u.style.fontWeight="bold");let p=o.tabLeaderAdvancePt&&o.tabLeaderAdvancePt>0?o.tabLeaderAdvancePt:Math.max(.5,o.style.fontSizePt*.2),f=chunk6NVZNB7O_cjs.sa((i.tabLeaderOriginXPt??0)+o.box.x,o.box.width,p);return u.style.marginLeft=`${f.offsetPt*a}px`,u.textContent=r.repeat(f.count),u.style.letterSpacing="0",s.append(u),s}function si(t,e,n){let o=e.shadingBox,i=I(t,"div",o,n);return i.className="docx-paragraph-shading",i.setAttribute("aria-hidden","true"),i.style.left=`${(o.x-e.box.x)*n}px`,i.style.top=`${(o.y-e.box.y)*n}px`,i.style.backgroundColor=`#${e.shading}`,i}function co(t,e,n,o){let i=I(t,"div",n.box,o);i.className=`docx-paragraph-border docx-paragraph-border-${n.side}`,i.setAttribute("aria-hidden","true");let r=(n.box.x-e.box.x)*o,a=(n.box.y-e.box.y)*o,s=n.side==="left"||n.side==="right"||n.side==="bar",l=(s?n.box.width:n.box.height)*o,c=be(n.edge.val)?l:Math.max(1,l);i.style.left=`${n.side==="right"?r-(c-l):r}px`,i.style.top=`${n.side==="bottom"?a-(c-l):a}px`,s?i.style.width=`${c}px`:i.style.height=`${c}px`;let u=n.edge.color&&J.test(n.edge.color)?n.edge.color:"000000";return i.style.backgroundColor=`#${u}`,V(i,n.edge.val,u,s,c,o),i}function vo(t,e,n,o){let i=o.scale,r=I(t,"div",e.box,i);if(r.className="docx-table-cell",r.style.left=`${(e.box.x-n.x)*i}px`,r.style.top=`${(e.box.y-n.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",Ne(r,e,r,void 0,[]),r;r.style.border="none";let a=Zn(t,r,e.borders,i);if(e.shading&&J.test(e.shading)&&(r.style.backgroundColor=`#${e.shading}`),e.revisionShading&&o.revisionMarkup){let d=o.revisionMarkup.cells[e.revisionShading];if(r.dataset.revisionCell=e.revisionShading,d!=="none"){let c=e.revisionShadingAuthor??"";r.style.backgroundColor=d==="byAuthor"?o.revisionStyles?.styles.get(c)?.color??$(o.revisionCellStyles?.authorSlots.get(c)??0):`var(--doc-revision-color-${d})`;}}let s=Qn(t,e,i,r),l=[];for(let d of e.blocks){let c=d.kind==="table"?z(t,d,o):_(t,d,o);c.style.left=`${(d.box.x-e.box.x)*i}px`,c.style.top=`${(d.box.y-e.box.y)*i}px`,s.append(c),l.push(c);}return Ne(r,e,s,a,l),r}function uo(t,e,n,o){let i=o.scale,r=I(t,"div",e.box,i);r.className="docx-table-row",Jn(r,e,!!o.revisionMarkup),r.dataset.rowId=e.id,e.isHeaderRepeat&&(r.dataset.headerRepeat="true"),r.style.left=`${(e.box.x-n.box.x)*i}px`,r.style.top=`${(e.box.y-n.box.y)*i}px`,r.style.overflow="visible";for(let a of e.cells)r.append(vo(t,a,e.box,o));return r}function z(t,e,n,o){let i=o&&Vt(o,e,{scale:n.scale,showParagraphMarks:n.showParagraphMarks===true,row:l=>uo(t,l,e,n),cell:(l,d)=>vo(t,l,d,n),block:(l,d)=>l.kind==="table"?z(t,l,n,d):_(t,l,n),gapOf:(l,d)=>xo(l,d,()=>0)});if(i)return i;let r=n.scale,a=I(t,"div",e.box,r);a.className="docx-table-fragment layout-table",a.dataset.tableId=e.tableId,a.dataset.fragmentIndex=String(e.fragmentIndex),a.style.overflow="visible";let s=new Map;for(let l of e.rows){let d=uo(t,l,e,n);s.set(l,d),a.append(d);}return Wt(a,e,s),a}function li(t,e,n,o,i){let r={...n,paintInstance:`p${e.index}`,tabLeaderOriginXPt:e.contentBox.x-e.box.x},a=I(t,"div",e.box,r.scale);if(a.className="docx-page",sn(a),a.dataset.pageIndex=String(e.index),r.ariaHidden&&(a.setAttribute("aria-hidden","true"),a.setAttribute("role","presentation")),a.dataset.materialized=String(o),!o)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?qn(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=Rn(t,a,e,{chrome:r,paintFragment:(y,h)=>{let m=d.get(h);return m||(m={...r,inertLinks:true,tabLeaderOriginXPt:h},d.set(h,m)),y.kind==="table"?z(t,y,m):_(t,y,m)},appendDrawings:(y,h,m,v,k,b)=>ho(t,y,h,r,m,v,k,b)});ro(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 h=t.createElement("div");h.className="docx-column-separator",h.setAttribute("contenteditable","false"),h.style.position="absolute",h.style.left=`${y.x*r.scale}px`,h.style.top=`${y.y*r.scale}px`,h.style.width=`${y.width*r.scale}px`,h.style.height=`${y.height*r.scale}px`,h.style.backgroundColor="currentColor",h.style.pointerEvents="none",u.append(h);}let p=i?new Map:null;for(let y of e.fragments){let h=y.kind==="table"?z(t,y,r):_(t,y,r);p?.set(y,h),u.append(h);}i&&p&&(i.content=u,i.blocks=p),a.append(u),ro(t,a,e,r,s,"inFront"),l&&e.pageBorders?.zOrder==="front"&&a.append(l),ln(t,a,e,r,_,z);for(let y of ["header","footer"]){if(e[y]||e.parityBlank)continue;let h=t.createElement("div");h.className="docx-hf docx-hf--placeholder",h.dataset.docxHf=y,h.setAttribute("contenteditable","false");let m=y==="header"?e.contentBox.y-e.box.y:e.box.y+e.box.height-(e.contentBox.y+e.contentBox.height),v=Math.min(m,di);if(v<=0)continue;let k=Math.max(0,Math.min(ci,m-v)),b=y==="header"?k:e.box.height-k-v;h.style.position="absolute",h.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,h.style.top=`${b*r.scale}px`,h.style.width=`${e.contentBox.width*r.scale}px`,h.style.height=`${v*r.scale}px`,a.append(h);}for(let y of c)a.append(y);dn(t,a,e,r);let f=hn(t,e,r.scale,r.changeBars,r.changeBarsToggle,r.revisionMarkup,r.facingPages,r.revisionStyles);return f&&a.append(f),a}var di=30,ci=36,it=new WeakMap;function tl(t){it.delete(t);}function ui(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function pi(t,e){let n=Object.keys(t);if(n.length!==Object.keys(e).length)return false;for(let o of n){let i=t[o],r=e[o];if(i!==r)return false}return true}function yi(t,e){if(t.length!==e.length)return false;for(let n=0;n<t.length;n+=1)if(t[n]!==e[n])return false;return true}function fi(t,e){if(t===e)return false;let n=new Set([...Object.keys(t),...Object.keys(e)]);for(let o of n){if(o==="fragments"||o==="pageFieldSource")continue;let i=t[o],r=e[o];if(i!==r&&!(Array.isArray(i)&&Array.isArray(r)&&yi(i,r))&&!(typeof i=="object"&&typeof r=="object"&&i!==null&&r!==null&&!Array.isArray(i)&&!Array.isArray(r)&&pi(i,r))&&!_t(i,r,hi))return false}return true}var po="docx-column-separator",hi=2e4;function mi(t,e,n,o){let i=e.content,r=e.blocks;if(!i||!r||i.parentElement!==e.element)return null;let a={...o,paintInstance:`p${n.index}`,tabLeaderOriginXPt:n.contentBox.x-n.box.x},s=new Map,l=[];for(let p of n.fragments){let f=r.get(p)??to(r,p,l)??(p.kind==="table"?z(t,p,a,Xt(r,p)):_(t,p,a));s.set(p,f),l.push(f);}let d=new Set(l),c=i.firstChild;for(;c;){let p=c.nextSibling,f=c;!d.has(f)&&f.classList?.contains(po)!==true&&c.remove(),c=p;}let u=i.firstChild;for(;u&&u.classList?.contains(po);)u=u.nextSibling;for(let p of l){if(p===u){u=u.nextSibling;continue}i.insertBefore(p,u);}return mn(t,e.element,n,o.scale,o.changeBars,o.changeBarsToggle,o.revisionMarkup,o.facingPages,o.revisionStyles),{record:n,materialized:true,element:e.element,content:i,blocks:s}}function gi(t,e,n,o){let i=t.element;return !t.materialized&&ui(t.record.box,e.box)&&i.style.left===`${e.box.x*n}px`&&i.style.top===`${e.box.y*n}px`&&i.style.width===`${e.box.width*n}px`&&i.style.height===`${e.box.height*n}px`&&i.getAttribute("aria-hidden")===(o?"true":null)}function bi(t,e,n={}){xi(t,e,n);}function xi(t,e,n,o){$t(t),t.classList.toggle("docx-show-paragraph-marks",n.showParagraphMarks??false);let i=n.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=n.drawingStrings??Je,s=n.breakMarkStrings??ae,l=n.imageUrlPort!==void 0?Hn(t,n.imageUrlPort):null,d=i?.additionalBoundaries?i.additionalBoundaries.flatMap(g=>g.fragments.map(x=>`${g.id}:${x.pageIndex}:${x.box.x}:${x.box.y}:${x.box.width}:${x.box.height}`)).sort().join(","):"",c=n.readOnlyParagraphIds?[...n.readOnlyParagraphIds].sort().join(","):"",u=n.emptyTocPlaceholderIds?[...n.emptyTocPlaceholderIds].sort().join(","):"",p=i?.tocControlIds?[...i.tocControlIds].sort().join(","):"",f=He(n.revisionStyles??(n.revisionMarkup?"author":void 0),e,o),y=n.revisionMarkup&&Object.values(n.revisionMarkup.cells).includes("byAuthor")?f??He("author",e,o):null,h={scale:n.scale??96/72,ariaHidden:n.ariaHidden??true,drawingStrings:a,...n.unsupportedOwnerPartName?{unsupportedOwnerPartName:n.unsupportedOwnerPartName}:{},...n.unsupportedSource?{unsupportedSource:n.unsupportedSource}:{},urlRegistry:l,...n.fontAlias?{fontAlias:n.fontAlias}:{},...n.readOnlyParagraphIds?{readOnlyParagraphIds:n.readOnlyParagraphIds}:{},...n.emptyTocPlaceholderIds?{emptyTocPlaceholderIds:n.emptyTocPlaceholderIds}:{},...n.defaultFontFamily?{defaultFontFamily:n.defaultFontFamily}:{},...n.fieldShading?{fieldShading:n.fieldShading}:{},showParagraphMarks:n.showParagraphMarks??false,...n.showParagraphMarks?{breakMarks:rn(e,s)}:{},changeBars:n.changeBars??"all-markup",changeBarsToggle:n.changeBarsToggle??false,...n.shadeFormFields!==void 0?{shadeFormFields:n.shadeFormFields}:{},...f?{revisionStyles:f}:{},...y?{revisionCellStyles:y}:{},...n.revisionMarkup?{revisionMarkup:n.revisionMarkup}:{},facingPages:n.facingPages,revisionKindColors:n.revisionStyles==="kind",...n.imageUrlPort?{imageUrlPort:n.imageUrlPort}:{},...n.activeHeaderFooterRId?{activeHeaderFooterRId:n.activeHeaderFooterRId}:{},...n.activeHeaderFooterPageIndex!==void 0?{activeHeaderFooterPageIndex:n.activeHeaderFooterPageIndex}:{},...i?{contentControlChrome:i}:{}},m=t.ownerDocument,v=`${h.scale}|${h.ariaHidden}|${h.fontAlias?Wr(h.fontAlias):""}|${h.defaultFontFamily??""}|cc:${r}:${d}|toc:${p}|ro:${c}|tocEmpty:${u}|${n.imageUrlPort?"url":""}|${Gn(a)}|markup:${JSON.stringify(n.revisionMarkup)}|facing:${n.facingPages}|rev:${Be(f)}|cells:${Be(y)}|marks:${n.showParagraphMarks??false}|${h.breakMarks?`breaks:${on(s)}:${h.breakMarks.token}|`:""}bars:${h.changeBars}:${h.changeBarsToggle}`,k=it.get(t),b=k?.parameters===v,S=b?new Map(k.pages.map(g=>[g.record,g])):null,K=k?new Map(k.pages.map(g=>[g.record.index,g])):null,L=e.pages.map(g=>{let x=n.materialize?.has(g.index)??true,R=S?.get(g);if(R&&R.materialized===x)return R;let P=K?.get(g.index);if(!x&&P&&gi(P,g,h.scale,h.ariaHidden))return {record:g,materialized:false,element:P.element};if(b&&x&&P?.materialized&&fi(P.record,g)){let ee=mi(m,P,g,h);if(ee)return ee}let w={},M=li(m,g,h,x,w);return {record:g,materialized:x,element:M,...w.content?{content:w.content}:{},...w.blocks?{blocks:w.blocks}:{}}});if(it.set(t,{parameters:v,pages:L}),t.dataset.revision=String(e.revision),l){let g={...e,pages:L.filter(x=>x.materialized).map(x=>x.record)};l.reconcile(Kn(g),jn(g));}let Q=new Set(L.map(g=>g.element)),O=t.firstChild;for(;O;){let g=O.nextSibling;Q.has(O)||O.remove(),O=g;}let N=t.firstChild;for(let g of L){if(g.element===N){N=N.nextSibling;continue}t.insertBefore(g.element,N);}bn(L,h),At(t);}var ko=new WeakMap;function vi(t,e,n,o){let i=t.ownerDocument,r=o.scale,a=new Map;for(let d of t.children){let c=ko.get(d);if(c===void 0)continue;let u=a.get(c);u?u.push(d):a.set(c,[d]);}let s=[];for(let d of n){let c=e.pages[d.pageIndex];if(!c)continue;let u=d.className??o.className??"docx-cell-selection-rect",p=o.pageOffsetX?.get(d.pageIndex)??0,f=`${(c.contentBox.x+d.x+p)*r}px`,y=`${(c.contentBox.y+d.y)*r}px`,h=`${d.width*r}px`,m=`${d.height*r}px`,v=d.reviewAuthor,k=[u,f,y,h,m,v?`${v.author}\0${v.slot}\0${v.color}`:"",d.activeBackground??""].join(""),b=a.get(k)?.pop();if(b){s.push(b);continue}let S=i.createElement("div");S.className=u,S.style.position="absolute",S.style.left=f,S.style.top=y,S.style.width=h,S.style.height=m,v&&(S.dataset.reviewAuthor=v.author,S.dataset.reviewAuthorSlot=String(v.slot%A),S.style.setProperty("--doc-review-author-current",v.color)),d.activeBackground!==void 0&&(S.style.backgroundColor=d.activeBackground,S.style.boxShadow="none"),ko.set(S,k),s.push(S);}let l=t.children;l.length===s.length&&s.every((d,c)=>l[c]===d)||t.replaceChildren(...s);}
4
- exports.a=Mo;exports.b=Si;exports.c=$;exports.d=It;exports.e=Ti;exports.f=Do;exports.g=Ai;exports.h=pa;exports.i=on;exports.j=Ke;exports.k=Mn;exports.l=Za;exports.m=Gn;exports.n=Je;exports.o=Ja;exports.p=ot;exports.q=Yr;exports.r=tl;exports.s=bi;exports.t=xi;exports.u=vi;