@docx-editor.dev/core 2.3.0 → 2.4.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 (98) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.cts +2 -2
  3. package/dist/automation.d.ts +2 -2
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.cts +7 -7
  7. package/dist/binding.d.ts +7 -7
  8. package/dist/binding.js +1 -1
  9. package/dist/chunk-33F6TRXO.js +2 -0
  10. package/dist/chunk-DQ5HGUWG.cjs +12 -0
  11. package/dist/chunk-EQO762XH.cjs +10 -0
  12. package/dist/chunk-F6WNPYOM.js +2 -0
  13. package/dist/chunk-FL4GWK76.js +12 -0
  14. package/dist/chunk-GOEBQ26R.js +1 -0
  15. package/dist/{chunk-Y2PX72HO.cjs → chunk-GWG5IVVX.cjs} +5 -5
  16. package/dist/chunk-IZIL6BAW.cjs +12 -0
  17. package/dist/chunk-LIJPSHRA.js +5 -0
  18. package/dist/{chunk-4CHEPYZV.cjs → chunk-MHDO6HLI.cjs} +1 -1
  19. package/dist/chunk-OHJQ7GPZ.cjs +1 -0
  20. package/dist/chunk-SG7OH2EK.js +12 -0
  21. package/dist/chunk-TCX3PVWR.js +10 -0
  22. package/dist/chunk-YMIMLEX4.cjs +1 -0
  23. package/dist/chunk-YTYKNA6X.cjs +2 -0
  24. package/dist/chunk-ZACHY6OS.js +1 -0
  25. package/dist/contracts/editor.cjs +1 -1
  26. package/dist/contracts/editor.d.cts +6 -6
  27. package/dist/contracts/editor.d.ts +6 -6
  28. package/dist/contracts/editor.js +1 -1
  29. package/dist/contracts/interaction.d.cts +6 -6
  30. package/dist/contracts/interaction.d.ts +6 -6
  31. package/dist/contracts/modules.d.cts +3 -3
  32. package/dist/contracts/modules.d.ts +3 -3
  33. package/dist/{custom-node-writes-ttKuYd0M.d.ts → custom-node-writes-BkMgMXxs.d.ts} +3 -3
  34. package/dist/{custom-node-writes-YqISlSRl.d.cts → custom-node-writes-C5YRoPcc.d.cts} +3 -3
  35. package/dist/{editor-C8oaTHr3.d.ts → editor-D1qHfzOt.d.ts} +12 -4
  36. package/dist/{editor-25RmHnxu.d.cts → editor-DYvC9CZs.d.cts} +12 -4
  37. package/dist/editor.cjs +1 -1
  38. package/dist/editor.css +2 -0
  39. package/dist/editor.d.cts +19 -19
  40. package/dist/editor.d.ts +19 -19
  41. package/dist/editor.js +1 -1
  42. package/dist/{image-resources-C_YnqPhn.d.ts → image-resources-BG9DLyW7.d.ts} +1 -1
  43. package/dist/{image-resources-DwpNnTg3.d.cts → image-resources-DXvPZvXD.d.cts} +1 -1
  44. package/dist/{index-C7hgxxtG.d.cts → index-Bb-QAg_f.d.cts} +11 -11
  45. package/dist/{index-DHX6HKd_.d.ts → index-DpY3WZuP.d.ts} +11 -11
  46. package/dist/index.cjs +1 -1
  47. package/dist/index.d.cts +13 -13
  48. package/dist/index.d.ts +13 -13
  49. package/dist/index.js +1 -1
  50. package/dist/layout.cjs +1 -1
  51. package/dist/layout.d.cts +25 -15
  52. package/dist/layout.d.ts +25 -15
  53. package/dist/layout.js +1 -1
  54. package/dist/output.cjs +1 -1
  55. package/dist/output.d.cts +4 -4
  56. package/dist/output.d.ts +4 -4
  57. package/dist/output.js +1 -1
  58. package/dist/{protocol-DAs0YOP3.d.cts → protocol-CD7slqvl.d.cts} +24 -4
  59. package/dist/{protocol-r6hje8Kf.d.ts → protocol-DsbfgBwA.d.ts} +24 -4
  60. package/dist/{review-reads-cgvJLJc2.d.ts → review-reads-CQmU9Lcl.d.ts} +1 -1
  61. package/dist/{review-reads-JBOmRH--.d.cts → review-reads-CxgN62yp.d.cts} +1 -1
  62. package/dist/{review-support-rsyGP5-9.d.cts → review-support-BJ-YjGmD.d.cts} +1 -1
  63. package/dist/{review-support-B9ykYpoZ.d.ts → review-support-DgXTIYBW.d.ts} +1 -1
  64. package/dist/{semantic-cell-selection-CI3loBKq.d.cts → semantic-cell-selection--ezfezTe.d.cts} +2 -2
  65. package/dist/{semantic-cell-selection-Cx8P64j2.d.ts → semantic-cell-selection-DZtyMXkH.d.ts} +2 -2
  66. package/dist/{semantic-interaction-unGpRNCk.d.ts → semantic-interaction-2yxdv7q0.d.cts} +5 -37
  67. package/dist/{semantic-interaction-B4HrJFQ2.d.cts → semantic-interaction-DrgbgKg6.d.ts} +5 -37
  68. package/dist/{semantic-paint-DdGGra4m.d.cts → semantic-paint-BYjE0Xbl.d.cts} +2 -2
  69. package/dist/{semantic-paint-BBNaqr1s.d.ts → semantic-paint-BedBxkyY.d.ts} +2 -2
  70. package/dist/{semantic-records-BC4bIKKL.d.ts → semantic-records-CR5hTqMK.d.ts} +2 -2
  71. package/dist/{semantic-records-DC6V1U3T.d.cts → semantic-records-DSD8WENa.d.cts} +2 -2
  72. package/dist/{shaped-measurer-ChSWkuAT.d.ts → shaped-measurer-BL8g4AcW.d.ts} +1 -1
  73. package/dist/{shaped-measurer-SIqZp-Ty.d.cts → shaped-measurer-CBOTJTV_.d.cts} +1 -1
  74. package/dist/store.cjs +1 -1
  75. package/dist/store.d.cts +30 -31
  76. package/dist/store.d.ts +30 -31
  77. package/dist/store.js +1 -1
  78. package/dist/{tree-op-types-DWLCllG7.d.ts → tree-op-types-8a6xyRCN.d.ts} +6 -1
  79. package/dist/{tree-op-types-UOXlRUqQ.d.cts → tree-op-types-EZXbR8bW.d.cts} +6 -1
  80. package/dist/{tree-session-ZpXtFxlP.d.cts → tree-session-DrMm8Cj2.d.cts} +5 -5
  81. package/dist/{tree-session-COduYhKr.d.ts → tree-session-SucW0znF.d.ts} +5 -5
  82. package/dist/{tree-store-BscFPB7x.d.ts → tree-store-BoM6eXaL.d.ts} +1 -1
  83. package/dist/{tree-store-B1lEkdXc.d.cts → tree-store-UYrGKF_Q.d.cts} +1 -1
  84. package/package.json +2 -2
  85. package/dist/chunk-2AOXVZU7.js +0 -1
  86. package/dist/chunk-7JUQEZU4.js +0 -12
  87. package/dist/chunk-BEV535XW.cjs +0 -10
  88. package/dist/chunk-EBIEBTAG.js +0 -5
  89. package/dist/chunk-GRGRIDHF.js +0 -1
  90. package/dist/chunk-IHAFYLLQ.cjs +0 -12
  91. package/dist/chunk-K6FOU3RO.cjs +0 -12
  92. package/dist/chunk-MIUELYVA.cjs +0 -1
  93. package/dist/chunk-OUKRZ43D.js +0 -2
  94. package/dist/chunk-P2NVDXSG.cjs +0 -1
  95. package/dist/chunk-PYRPB22X.cjs +0 -2
  96. package/dist/chunk-R6BMB6RM.js +0 -10
  97. package/dist/chunk-XNMXQWNA.js +0 -12
  98. package/dist/chunk-YNO4ITHS.js +0 -2
@@ -0,0 +1,12 @@
1
+ 'use strict';var chunkMHDO6HLI_cjs=require('./chunk-MHDO6HLI.cjs'),chunkEQO762XH_cjs=require('./chunk-EQO762XH.cjs');var Gn=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},Ia=(e,n)=>{if(e.trim().length===0||/[\u0000-\u001f\u007f]/.test(e))throw new TypeError(`${n} must be non-blank and contain no control characters`)},Fm=(e,n)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${n} must be a four-byte ASCII tag`)},Xc=(e,n,t)=>{let r=Object.entries(e).sort(([a],[i])=>a<i?-1:a>i?1:0),o=Object.create(null);for(let[a,i]of r){if(Fm(a,`${n} key`),!Number.isFinite(i)||t&&(!Number.isSafeInteger(i)||i<0))throw new RangeError(`${n} value must be ${t?"a non-negative safe integer":"finite"}`);if(t&&i>4294967295)throw new RangeError(`${n} value must fit an unsigned 32-bit integer`);o[a]=i;}return Object.freeze(o)},kl=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),Am=e=>e?Object.freeze({requested:kl(e.requested),resolved:kl(e.resolved)}):void 0,Vc=new WeakSet,El=e=>{if(chunkEQO762XH_cjs.h(e),!Vc.has(e)){if(e.identity!==`${e.hash}#${e.faceIndex}`)throw new TypeError("Resolved font identity does not match hash and face index");if(!Number.isSafeInteger(e.byteLength)||e.byteLength<0)throw new TypeError("Resolved font byte length is invalid");Vc.add(e);}},Ll=e=>(El(e),e),va=e=>(El(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:kl(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:Am(e.substitution)??null})),Kt=e=>{if(Ia(e.shapingLibrary.name,"shaping library name"),Ia(e.shapingLibrary.version,"shaping library version"),Ia(e.unicodeDataVersion,"Unicode data version"),!/^\d+(?:\.\d+){0,3}(?:[-+][0-9A-Za-z.-]+)?$/.test(e.shapingLibrary.version))throw new TypeError("shaping library version must be a numeric version");if(!/^\d+(?:\.\d+){1,2}$/.test(e.unicodeDataVersion))throw new TypeError("Unicode data version must be a dotted numeric version");if(!/^[A-Z][a-z]{3}$/.test(e.script))throw new TypeError("script must be a four-letter ISO 15924 code");if(Ia(e.language,"language"),!/^(?:und|[A-Za-z]{2,8})(?:-[A-Za-z0-9]{1,8})*$/.test(e.language))throw new TypeError("language must be a BCP 47 language tag");if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("direction must be ltr or rtl");if(!["none","NFC","NFD","NFKC","NFKD"].includes(e.normalization))throw new TypeError("invalid normalization policy");if(!["halfAwayFromZero","halfToEven","towardZero"].includes(e.roundingMode))throw new TypeError("invalid fixed-point rounding mode");if(!Number.isSafeInteger(e.fixedPointScale)||e.fixedPointScale<=0)throw new RangeError("fixed-point scale must be a positive safe integer");let n=Ll(e.font),t=e.fallbackOrder.map(Ll),r=new Set;for(let o of t){let a=JSON.stringify(va(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:n,variationAxes:Xc(e.variationAxes,"variation axis",false),shapingLibrary:Object.freeze({name:e.shapingLibrary.name,version:e.shapingLibrary.version}),unicodeDataVersion:e.unicodeDataVersion,normalization:e.normalization,script:e.script,language:e.language,direction:e.direction,features:Xc(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...t]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},Kc=e=>{let n=Kt(e);return Object.freeze({font:va(n.font),variationAxes:Object.freeze(Object.entries(n.variationAxes).map(t=>Object.freeze(t))),shapingLibrary:Object.freeze({name:n.shapingLibrary.name,version:n.shapingLibrary.version}),unicodeDataVersion:n.unicodeDataVersion,normalization:n.normalization,script:n.script,language:n.language,direction:n.direction,features:Object.freeze(Object.entries(n.features).map(t=>Object.freeze(t))),fallbackOrder:Object.freeze(n.fallbackOrder.map(va)),fixedPointScale:n.fixedPointScale,roundingMode:n.roundingMode})},Ml=e=>JSON.stringify(Kc(e)),Yt=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},En=e=>{try{return Gn(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},Yc=new WeakMap,Ta=e=>{let n=Yc.get(e);if(n)return n;El(e);let t=JSON.stringify({identity:e.identity,id:e.id,family:e.family,request:e.request,hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:e.substitution??null});return Yc.set(e,t),t},Ba=(e,n)=>{let t=Kt(n);if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("Shaped run direction must be ltr or rtl");if(e.direction!==t.direction)throw new TypeError("Shaped run direction does not match shaping environment");if(Yt(e.bidiLevel,"bidi level"),(e.bidiLevel&1)===1!=(e.direction==="rtl"))throw new TypeError("Shaped run direction does not match bidi level parity");let r=new Map,o=e.glyphs.map(s=>{Yt(s.id,"glyph id"),Yt(s.cluster,"glyph cluster");let d=r.get(s.outline);if(!d){if(!Number.isSafeInteger(s.outline.unitsPerEm)||s.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");d=Object.isFrozen(s.outline)?s.outline:Object.freeze({path:s.outline.path,unitsPerEm:s.outline.unitsPerEm}),r.set(s.outline,d);}return Object.freeze({id:s.id,cluster:s.cluster,originX:En(s.originX),originY:En(s.originY),advanceX:En(s.advanceX),advanceY:En(s.advanceY),offsetX:En(s.offsetX),offsetY:En(s.offsetY),outline:d})}),a=e.fontSpans.map(s=>{if(Yt(s.glyphStart,"font span start"),Yt(s.glyphEnd,"font span end"),s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");s.fallbackIndex!==null&&Yt(s.fallbackIndex,"fallback index");let d=Ll(s.font);if(s.fallbackIndex===null){if(Ta(d)!==Ta(t.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let c=t.fallbackOrder[s.fallbackIndex];if(!c)throw new RangeError("Shaped fallback index is outside fallback order");if(Ta(d)!==Ta(c))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...s,font:d})});for(let s=0;s<a.length;s+=1){let d=s===0?0:a[s-1].glyphEnd;if(a[s].glyphStart!==d)throw new RangeError("Font spans must cover glyphs contiguously")}if(o.length===0&&a.length!==0||o.length>0&&a.at(-1)?.glyphEnd!==o.length)throw new RangeError("Font spans must cover every glyph exactly once");let i=e.clusters.map(s=>{for(let[c,u]of [["cluster text start",s.textStart],["cluster text end",s.textEnd],["cluster glyph start",s.glyphStart],["cluster glyph end",s.glyphEnd],["cluster font span",s.fontSpan]])Yt(u,c);if(s.textEnd<=s.textStart||s.textEnd>e.text.length||s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let d=a[s.fontSpan];if(!d||s.glyphStart<d.glyphStart||s.glyphEnd>d.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...s,advance:En(s.advance),caretEdges:Object.freeze(s.caretEdges.map(En))})}),l=Object.freeze({ascent:En(e.metrics.ascent),descent:En(e.metrics.descent),lineGap:En(e.metrics.lineGap)});return Object.freeze({text:e.text,direction:e.direction,bidiLevel:e.bidiLevel,glyphs:Object.freeze(o),clusters:Object.freeze(i),fontSpans:Object.freeze(a),metrics:l})},Dm=(e,n)=>{let t=Ba(e,n);return Object.freeze({text:t.text,direction:t.direction,script:n.script,language:n.language,bidiLevel:t.bidiLevel,glyphs:t.glyphs,clusters:t.clusters,fontSpans:Object.freeze(t.fontSpans.map(r=>Object.freeze({glyphStart:r.glyphStart,glyphEnd:r.glyphEnd,fallbackIndex:r.fallbackIndex,font:va(r.font)}))),metrics:t.metrics})};var ho=Object.freeze({name:"HarfBuzz",version:"14.2.1"}),yo=null,go=null;function _m(){return yo?Promise.resolve():go||(go=import('harfbuzzjs').then(e=>{let n=e.versionString();if(n!==ho.version)throw new He("shapingLibraryMismatch",{diagnostic:`expected ${ho.version}, loaded ${n}`});yo=e;}).catch(e=>{throw go=null,e}),go)}function zm(){return yo!==null}function Hm(){if(!yo)throw new He("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return yo}var He=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(n,t={}){super(`HarfBuzz shaping failed (${n})`),this.code=n,this.limit=t.limit,this.actual=t.actual,this.diagnostic=t.diagnostic;}},jm=16*1024*1024,Wm=1e6,Gm=1e6,$m=1e6,Xm=4,Vm=512,Ym=1024*1024,Km=16*1024*1024,Um=32*1024*1024,Zm=64*1024*1024,qm=64*1024*1024,Jm=1e6,Qm=1e6,eh=1e6,nh=64,th=4096,rh=4*1024*1024,oh=64*1024*1024,ah=64*1024*1024,ih=256*1024*1024,lh=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),Uc=["cmap","head","hhea","hmtx","maxp"],sh=(e,n)=>e[n]<<8|e[n+1],dh=(e,n)=>e[n]*16777216+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3]>>>0,ch=(e,n)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?dh(e,12+n*4):0,uh=(e,n)=>{let t=ch(e,n),r=sh(e,t+4),o=new Set;for(let a=0;a<r;a+=1){let i=t+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},fh=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),ph=(e,n)=>{let t=chunkEQO762XH_cjs.j(e,n);if(!t.valid)return t;let r=uh(e,n);for(let o of Uc)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},gh=ph,$n=(e,n,t)=>{if(!Number.isSafeInteger(e)||e<=0||e>t)throw new RangeError(`${n} must be a positive safe integer no greater than ${t}`);return e},mh=(e,n,t)=>{let r=e<0n,o=r?-e:e,a=o/n,i=o%n;if(t!=="towardZero"){let d=i*2n;(d>n||d===n&&(t==="halfAwayFromZero"||t==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let l=r?-a:a,s=Number(l);if(!Number.isSafeInteger(s))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return s},Zc=(e,n,t,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(n)||n<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(t)||t<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");return Gn(mh(BigInt(e)*BigInt(t),BigInt(n),r))},hh=(e,n,t,r)=>{if(!Number.isSafeInteger(n)||n<=0)throw new RangeError("font size must be a positive integer number of half points");if(n>Math.floor(Number.MAX_SAFE_INTEGER/t))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=n*t,a=e*2;return i=>Zc(i,a,o,r)},yh=(e,n)=>{if(n.length===0)return [];let t=[...new Set(n.map(i=>i.cluster))].sort((i,l)=>i-l),r=new Map;for(let i=0;i<t.length;i+=1)r.set(t[i],t[i+1]??e.length);let o=[],a=0;for(;a<n.length;){let i=n[a].cluster,l=a+1;for(;l<n.length&&n[l].cluster===i;)l+=1;let s=n.slice(a,l).reduce((c,u)=>c+u.advanceX,0),d=Gn(s);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:l,advance:d,caretEdges:Object.freeze([Gn(0),d]),fontSpan:0}),a=l;}return o},Xn=64,lt=8,Ut=8,bh=32,qc=Xn+2*lt,xh=Xn+lt+Ut,Sh=Xn+lt+Ut,wh=Xn+lt+Ut,Jc=Xn+8*lt,Qc=Xn+8*Ut+lt,Rh=Xn+6*Ut+lt,Ph=Xn+3*Ut+2*lt,Ih=Xn+3*Ut,bo=e=>Xn+e.length*Uint16Array.BYTES_PER_ELEMENT,Fl=e=>wh+bo(e),mo=e=>bh+e*lt,Th=(e,n)=>qc+bo(e)+xh+Fl(n),vh=e=>Jc+bo(e)+mo(e.length)+e.length*Qc,Bh=e=>{let n=new Set(e.glyphs.map(t=>t.outline));return Jc+bo(e.text)+mo(e.glyphs.length)+e.glyphs.length*Qc+mo(e.clusters.length)+e.clusters.length*Rh+e.clusters.reduce((t,r)=>t+mo(r.caretEdges.length),0)+mo(e.fontSpans.length)+e.fontSpans.length*Ph+Ih+[...n].reduce((t,r)=>t+Fl(r.path),0)},Oh=(e,n)=>qc+bo(e)+Sh+n,Nl=class{#n;#l;#u;#f;#p;#y;#b;#g;#m;#s;#h;#d;#e;#o=new Map;#a=new Map;#t=new Map;#i=0;#r=0;#c;constructor(n,t){this.#n=n,this.#l=$n(t.maxFontBytes??jm,"maximum font bytes",qm),this.#u=$n(t.maxInputUtf16??Wm,"maximum input UTF-16 code units",Jm),this.#f=$n(t.maxCodepoints??Gm,"maximum input code points",Qm),this.#p=$n(t.maxGlyphs??$m,"maximum shaped glyphs",eh),this.#y=$n(t.maxCachedFaces??Xm,"maximum cached faces",nh),this.#b=$n(t.maxCachedShapes??Vm,"maximum cached shape results",th),this.#g=$n(t.maxOutlineBytes??Ym,"maximum outline bytes",rh),this.#m=$n(t.maxCachedOutlineBytes??Km,"maximum cached outline bytes",oh),this.#s=$n(t.maxShapedRunBytes??Um,"maximum shaped run bytes",ah),this.#h=$n(t.maxCachedShapeBytes??Zm,"maximum cached shape bytes",ih),this.#d=t.instrumentation?.onFaceCacheEvent,this.#e=t.instrumentation,this.#c=new this.#n.Buffer;}dispose(){this.#o.clear(),this.#a.clear(),this.#t.clear(),this.#i=0,this.#r=0,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#c=void 0;}#S(n,t){let r=this.#o.get(n.identity);if(r)return this.#o.delete(n.identity),this.#o.set(n.identity,r),this.#d?.(Object.freeze({kind:"hit",identity:n.identity})),r;let o=chunkEQO762XH_cjs.g(n);for(let c of Uc)if(!o.has(c))throw new He("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#n.Blob(fh(t)),i=new this.#n.Face(a,n.faceIndex),l=new this.#n.Font(i),s=l.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(s.ascender)||!Number.isSafeInteger(s.descender)||!Number.isSafeInteger(s.lineGap))throw new He("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});if(l.setScale(i.upem,i.upem),this.#o.size>=this.#y){let c=this.#o.keys().next().value;c!==void 0&&(this.#o.delete(c),this.#d?.(Object.freeze({kind:"evicted",identity:c})));}let d={identity:n.identity,blob:a,face:i,font:l,unitsPerEm:i.upem};return this.#o.set(n.identity,d),this.#d?.(Object.freeze({kind:"created",identity:n.identity})),d}#w(n,t,r){let o=JSON.stringify([n.identity,n.unitsPerEm,r,t]),a=this.#a.get(o);if(a)return this.#a.delete(o),this.#a.set(o,a),this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#i})),a.outline;this.#e?.onOutlinePathCall?.();let i=n.font.glyphToPath(t),l=Fl(i);if(l>this.#g)throw new He("outlineOverLimit",{limit:this.#g,actual:l});let s=Object.freeze({path:i,unitsPerEm:n.unitsPerEm}),d=Th(o,i);if(d>this.#m)return this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#i})),s;for(;this.#i+d>this.#m;){let c=this.#a.keys().next().value;if(c===void 0)break;let u=this.#a.get(c);this.#a.delete(c),this.#i-=u.bytes,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#i}));}return this.#a.set(o,{outline:s,bytes:d}),this.#i+=d,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#i})),s}#x(n){if(n.length>this.#u)throw new He("textOverLimit",{limit:this.#u,actual:n.length});let t=0;for(let r=0;r<n.length;){let o=n.codePointAt(r);if(r+=o>65535?2:1,t+=1,t>this.#f)throw new He("codepointsOverLimit",{limit:this.#f,actual:t})}}shape(n){if(!this.#c)throw new He("disposed");if(chunkEQO762XH_cjs.h(n.environment.font),n.environment.font.byteLength>this.#l)throw new He("fontOverLimit",{limit:this.#l,actual:n.environment.font.byteLength});this.#x(n.text);let t=vh(n.text);if(t>this.#s)throw new He("shapedRunOverLimit",{limit:this.#s,actual:t});let r=Kt(n.environment),o=JSON.stringify([n.text,n.fontSizeHalfPoints,n.bidiLevel,Ml(r)]),a=this.#t.get(o);if(a)return this.#t.delete(o),this.#t.set(o,a),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==ho.name||r.shapingLibrary.version!==ho.version)throw new He("shapingLibraryMismatch");if(r.normalization!=="none")throw new He("unsupportedNormalization");if(!Number.isSafeInteger(n.bidiLevel)||n.bidiLevel<0||(n.bidiLevel&1)===1!=(r.direction==="rtl"))throw new He("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new He("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new He("unsupportedFallback");let i=chunkEQO762XH_cjs.f(r.font),l=chunkEQO762XH_cjs.g(r.font);if([...lh].some(d=>l.has(d)))throw new He("unsupportedColorFont");let s=n.text;this.#x(s);try{let d=this.#S(r.font,i),{face:c,font:u}=d,f=this.#c;f.reset(),f.addText(s),f.setDirection(r.direction==="rtl"?this.#n.Direction.RTL:this.#n.Direction.LTR),f.setScript(r.script),f.setLanguage(r.language),f.setClusterLevel(this.#n.ClusterLevel.MONOTONE_CHARACTERS);let p=Object.entries(r.features).map(([T,B])=>new this.#n.Feature(T,B));this.#e?.onShapeCall?.(),this.#n.shape(u,f,p);let g=f.getGlyphInfosAndPositions();if(g.length>this.#p)throw new He("glyphOverLimit",{limit:this.#p,actual:g.length});let y=hh(c.upem,n.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),h=Gn(0),b=Gn(0),x=new Map,v=JSON.stringify(Object.entries(r.variationAxes).sort(([T],[B])=>T.localeCompare(B))),w=g.map(T=>{let B=y(T.xAdvance??0),m=y(T.yAdvance??0),D={id:T.codepoint,cluster:T.cluster,originX:h,originY:b,advanceX:B,advanceY:m,offsetX:y(T.xOffset??0),offsetY:y(T.yOffset??0),outline:x.get(T.codepoint)??(()=>{let W=this.#w(d,T.codepoint,v);return x.set(T.codepoint,W),W})()};return h=Gn(h+B),b=Gn(b+m),D}),z=u.hExtents(),L=Ba({text:s,direction:r.direction,bidiLevel:n.bidiLevel,glyphs:w,clusters:yh(s,w),fontSpans:w.length===0?[]:[{glyphStart:0,glyphEnd:w.length,font:r.font,fallbackIndex:null}],metrics:{ascent:y(z.ascender),descent:y(-z.descender),lineGap:y(z.lineGap)}},r),M=Bh(L);if(M>this.#s)throw new He("shapedRunOverLimit",{limit:this.#s,actual:M});let F=Oh(o,M);if(F>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),L;for(;this.#t.size>=this.#b||this.#r+F>this.#h;){let T=this.#t.keys().next().value;if(T===void 0)break;let B=this.#t.get(T);this.#t.delete(T),this.#r-=B.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#t.set(o,{run:L,bytes:F}),this.#r+=F,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),L}catch(d){throw d instanceof He?d:new He("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},Ch=(e={})=>new Nl(Hm(),e);var Z=(e,n,t)=>e>=n&&e<=t,Oa=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(n){super(`Unsupported Unicode script at U+${n.toString(16).toUpperCase()}`),this.codePoint=n;}},kh=e=>{if(Z(e,65313,65338)||Z(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(Z(e,1424,1535)||Z(e,64285,64335))return {slot:"cs",script:"Hebr"};if(Z(e,1536,1791)||Z(e,1872,1919)||Z(e,2160,2207)||Z(e,2208,2303)||Z(e,64336,65023)||Z(e,65136,65279)||Z(e,126464,126719))return {slot:"cs",script:"Arab"};if(Z(e,4352,4607)||Z(e,11904,12351)||Z(e,12352,12543)||Z(e,12544,12687)||Z(e,12784,12799)||Z(e,13312,19903)||Z(e,19968,40959)||Z(e,44032,55215)||Z(e,63744,64255)||Z(e,65382,65437)||Z(e,65440,65500)||Z(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(Z(e,2304,2431)||Z(e,43232,43263))return {slot:"cs",script:"Deva"};if(Z(e,2432,2559))return {slot:"cs",script:"Beng"};if(Z(e,880,1023)||Z(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(Z(e,1024,1327)||Z(e,7296,7311)||Z(e,11744,11775)||Z(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(Z(e,3584,3711))return {slot:"cs",script:"Thai"};if(Z(e,6016,6143)||Z(e,6624,6655))return {slot:"cs",script:"Khmr"};if(Z(e,768,879)||Z(e,6832,6911)||Z(e,7616,7679)||Z(e,8400,8447)||Z(e,8192,8303)||Z(e,65056,65071)||e<=47||Z(e,58,64)||Z(e,91,96)||Z(e,123,191)||e===5760||Z(e,8192,11263)||Z(e,65024,65039)||Z(e,65280,65381)||Z(e,65438,65439)||Z(e,65501,65535)||Z(e,126976,129791)||Z(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(Z(e,192,687)||Z(e,7424,7551)||Z(e,7552,7615)||Z(e,7680,7935)||Z(e,11360,11391)||Z(e,42784,43007)||Z(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new Oa(e)};function Lh(e,n,t){let r=[];for(let l=0;l<e.length;){let s=e.codePointAt(l),d=l+(s>65535?2:1);r.push({from:l,to:d,classified:kh(s)}),l=d;}let o=null;for(let l of r)l.classified?o=l.classified:o&&(l.classified=o);o=null;for(let l=r.length-1;l>=0;l-=1){let s=r[l];s.classified?o=s.classified:o&&(s.classified=o);}let a=[],i=r.every(({from:l})=>e.codePointAt(l)<=127)?"ascii":"hAnsi";for(let l of r){let s=t.levels[n+l.from]??0,d=(s&1)===1?"rtl":"ltr",c=l.classified??{slot:i,script:"Zyyy"},u=a.at(-1);u&&u.to===l.from&&u.bidiLevel===s&&u.slot===c.slot&&u.script===c.script?a[a.length-1]={...u,to:l.to}:a.push({from:l.from,to:l.to,direction:d,bidiLevel:s,script:c.script,slot:c.slot});}return a}var Eh="und";function Mh(){return typeof Intl.Segmenter=="function"}function Nh(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function Fh(){let e=new(Nh())("und",{granularity:"grapheme"});return {segment(n){let t=[],r=0;for(let o of e.segment(n)){let a=o.index,i=a+o.segment.length;t.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return t}}}var _l=Fh(),zl=_l,eu=0;function Hl(){return eu}var vr=null,Zt=null,Ca=null,xo=null;function Mn(e){if(vr===e&&Zt)return Zt;if(Ca===e&&xo){let t=xo;return Ca=vr,xo=Zt,vr=e,Zt=t,t}let n=zl.segment(e);return Ca=vr,xo=Zt,vr=e,Zt=n,n}function Ah(e){zl=e,nu();}function Dh(){zl=_l,nu();}function nu(){eu+=1,vr=null,Zt=null,Ca=null,xo=null,Al=null,ka=null,Dl=0;}function _h(e){return Mn(e).length}var Al=null,ka=null,Dl=0;function zh(e){if(Al===e&&ka)return {offsets:ka,count:Dl};let n=Mn(e),t=new Int32Array(e.length+1);for(let r of n)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)t[o]=r.index;return t[e.length]=n.length,Al=e,ka=t,Dl=n.length,{offsets:t,count:n.length}}function La(e,n){let t=Math.max(0,Math.min(n,e.length)),{offsets:r}=zh(e);return r[t]}function Hh(e,n){let t=Mn(e);if(t.length===0)return 0;let r=Math.max(0,Math.min(n,t.length));return r>=t.length?e.length:t[r].utf16From}function jl(e){let n=new Set([0,e.text.length]);for(let r of Mn(e.text))n.add(r.utf16From),n.add(r.utf16To);let t=new Set([0,e.text.length]);for(let r of e.clusters)t.add(r.textStart),t.add(r.textEnd);return [...n].filter(r=>t.has(r)).sort((r,o)=>r-o)}function Ea(e,n){return jl(e).includes(n)}function jh(e,n){return Ea(e,n)}function Wh(e,n,t){return t>=n&&Ea(e,n)&&Ea(e,t)}function Gh(e){let n=Mn(e.text);return jl(e).map(t=>t===e.text.length?n.length:n.findIndex(r=>r.utf16From===t))}var Gl="und";function au(){return typeof Intl.Segmenter=="function"}function $h(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${Gl})`);return e}function iu(){let e=new($h())(Gl,{granularity:"word"});return {segment(n){let t=[];for(let r of e.segment(n)){let o=r.index,a=o+r.segment.length;t.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return t}}}var Xh=/^[\p{L}\p{N}']$/u,Vh=/^\s$/u;function tu(e){return Xh.test(e)}function ru(e){return Vh.test(e)}function Wl(e,n,t,r){let o=e[n],a=e[t-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function lu(e){let n=Mn(e);if(n.length===0)return [];let t=[],r=0;for(;r<n.length;){let o=n[r];if(ru(o.text)){let a=r+1;for(;a<n.length&&ru(n[a].text);)a+=1;t.push(Wl(n,r,a,false)),r=a;continue}if(tu(o.text)){let a=r+1;for(;a<n.length&&tu(n[a].text);)a+=1;t.push(Wl(n,r,a,true)),r=a;continue}t.push(Wl(n,r,r+1,false)),r+=1;}return t}function su(){return {segment:lu}}function du(e={}){let n=e.isIntlAvailable??au,t=e.createIntlBoundary??iu,r=e.createFallbackBoundary??su;if(!n())return r();try{return t()}catch{return r()}}var ou;function cu(){return ou??=du(),ou}function Yh(e,n=cu()){return n.segment(e)}function Kh(e,n){return n.map(t=>({graphemeFrom:La(e,t.utf16From),graphemeTo:La(e,t.utf16To),wordLike:t.wordLike}))}var Ma=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},Br=(e,n)=>{if(e.trim().length===0)throw new TypeError(`${n} must not be blank`)},Or=e=>(Ma(e.resourceEpoch,"resourceEpoch"),Ma(e.configEpoch,"configEpoch"),Ma(e.producerVersion,"producerVersion"),Br(e.extensionFingerprint,"extensionFingerprint"),Br(e.shapingHash,"shapingHash"),Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})),Uh=(e,n)=>{let t=Or(e),r=Or(n),a=["resourceEpoch","configEpoch","extensionFingerprint","shapingHash","producerVersion"].filter(i=>t[i]!==r[i]);return a.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(a)})},$l=e=>{let n=e.map(({key:t,fingerprint:r})=>(Br(t,"resource dependency key"),Br(r,"resource dependency fingerprint"),Object.freeze({key:t,fingerprint:r}))).sort((t,r)=>t.key<r.key?-1:t.key>r.key?1:0);for(let t=1;t<n.length;t+=1)if(n[t-1].key===n[t].key)throw new TypeError(`Duplicate resource dependency: ${n[t].key}`);return Object.freeze(n)},Zh=e=>(Ma(e.revision,"revision"),Br(e.dependencyFingerprint,"dependencyFingerprint"),Br(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:$l(e.resourceDependencies),...Or(e)})),qh=(e,n)=>{let t=$l(e),r=$l(n),o=Math.max(t.length,r.length);for(let a=0;a<o;a+=1){let i=t[a],l=r[a];if(i?.key!==l?.key||i?.fingerprint!==l?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??l.key}}return null};function Jh(e,n){if(e.dependencyFingerprint!==n.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==n.inputFingerprint)return {hit:false,reason:"input-changed"};let t=qh(e.resourceDependencies,n.resourceDependencies);if(t)return t;let r=["configEpoch","extensionFingerprint","shapingHash","producerVersion"];for(let o of r)if(e[o]!==n[o])return {hit:false,reason:"epoch-changed",epoch:o};return null}var Xl=class{entries=new Map;get(n,t){let r=this.entries.get(n);if(!r)return {hit:false,reason:"absent"};let o=Jh(r.provenance,t);return o||{hit:true,value:r.value,provenance:r.provenance}}set(n,t,r){this.entries.set(n,{value:t,provenance:Zh(r)});}evictEpoch(n){let t=Or(n),r=0;for(let[o,a]of this.entries){let i=a.provenance;(i.configEpoch!==t.configEpoch||i.extensionFingerprint!==t.extensionFingerprint||i.shapingHash!==t.shapingHash||i.producerVersion!==t.producerVersion)&&(this.entries.delete(o),r+=1);}return r}evictResources(n,t){let r=Or(n),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(s=>t.get(s.key)!==s.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};var So=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});function Rn(e,n=false){return uu(e.fragments,n)}function uu(e,n=false){let t=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){t.push(a);continue}for(let i of a.rows)if(!(i.isHeaderRepeat&&!n))for(let l of i.cells)r(l.blocks);}};return r(e),t}function fu(e){let n=[];for(let t of e.pages)for(let r of Rn(t))n.push(...r.lines);return n}function Gw(e){return e.anchoredDrawings??[]}function Qh(e,n){let t=[];for(let r of e.pages)for(let o of Rn(r))o.paragraphId===n&&t.push(o);return t.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function ey(e,n,t){for(let r of fu(e))if(r.range.paragraphId===n&&t>=r.range.start&&t<=r.range.end)return r;return null}function Vl(e){return e.contentControls??[]}function Na(e){if(e.length===0)return null;let n=1/0,t=1/0,r=-1/0,o=-1/0;for(let a of e)n=Math.min(n,a.x),t=Math.min(t,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:n,y:t,width:r-n,height:o-t}}function Yl(e){let n=false,t=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(n=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(t=true);return n&&t?"sdtContentLocked":n?"contentLocked":t?"sdtLocked":"unlocked"}var pu=1,Fa=1;function Cr(e){let n=Math.max(e,1),t=3;if(n>=t){let i=n/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:n,insetPt:0}}let r=1,o=1,a=Math.max(n,t);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(n-a)/2}}var ny=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function ty(e){return ny.has(e)}function gu(e,n){return ty(e)?Cr(n).extentPt:n}function Zl(e){return e.some(n=>n.localName==="pageBreakBefore"&&n.attributes?.val!=="0"&&n.attributes?.val!=="false")}var hu=31680/20,Ro=12,yu=3168,bu=14,Lr=Object.freeze({rule:"auto",value:240}),ry=132,oy=1584,xu=["top","left","bottom","right","between","bar"],ay=Object.freeze({}),iy=/^[0-9A-Fa-f]{6}$/,ly=new Set(["nil","none"]);function Aa(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Kl(e,n){return !Number.isFinite(e)||e<=0?0:e>n?n:e}function mu(e){let n=Aa(e,true);return n===null?0:Kl(n/20,hu)}function Ul(e){return e!=="0"&&e!=="false"&&e!=="off"}function sy(e){return e===void 0||e==="auto"?null:iy.test(e)?e.toUpperCase():null}function wo(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Vn(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function ql(e,n){let t=0,r=0,o=false,a=false;for(let i of e){if(i.localName!=="spacing")continue;let l=i.attributes?.before,s=i.attributes?.after;l!==void 0&&(t=mu(l)),s!==void 0&&(r=mu(s));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Ul(d)),c!==void 0&&(a=Ul(c));}if(o||a){let i=n?.inList||n?.inTableCell?0:bu;o&&(t=i),a&&(r=i);}return {before:t,after:r}}function Jl(e){let n,t;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(n=i);let l=a.attributes?.line;if(l!==void 0){let s=Aa(l,true);s!==null&&(t=s);}}if(t===void 0)return Lr;let r=n??"auto";if(r==="auto"){let a=t/240;return a>0?{rule:"auto",value:Math.min(a,ry)*240}:Lr}let o=t/20;return o>0?{rule:r,value:Math.min(o,oy)}:Lr}function Ql(e,n,t){let r=e.rule==="auto"?n*(e.value/240):e.rule==="exact"?e.value:Math.max(n,e.value),o=r-n;return o<0?{height:r,baseline:Math.max(0,Math.min(t,r))}:e.rule==="exact"?{height:r,baseline:t+o/2}:{height:r,baseline:t}}function es(e){let n=false;for(let t of e){if(t.localName!=="contextualSpacing")continue;let r=t.attributes?.val;n=r===void 0||Ul(r);}return n}function kr(e){if(!e)return;let n=wo(e,"val");if(!n||ly.has(n))return;let t=Aa(wo(e,"sz")),r=t===null?.5:Kl(t/8,Ro)||.5,o=Aa(wo(e,"space")),a=o===null?0:Kl(o,yu),i=wo(e,"shadow"),l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:n,color:sy(wo(e,"color")),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function Su(e){let n=kr(Vn(e,"top")),t=kr(Vn(e,"left")??Vn(e,"start")),r=kr(Vn(e,"bottom")),o=kr(Vn(e,"right")??Vn(e,"end")),a=kr(Vn(e,"between")),i=kr(Vn(e,"bar"));return {...n?{top:n}:{},...t?{left:t}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function st(e){if(!e||e.kind==="textValue")return {};let n=Vn(e,"pBdr");return n?Su(n):{}}function Po(e){let n=ay;for(let t of e){if(!t||t.kind==="textValue")continue;let r=Vn(t,"pBdr");r&&(n=Su(r));}return n}function fn(e){return gu(e.val,e.widthPt)}function Tt(e){return e?e.spacePt+fn(e):0}function dy(e){return Tt(e)}function ns(e){let n=[];for(let t of xu){let r=e[t];r&&n.push(`${t}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return n.join("|")}function Er(e,n){return Math.max(e,n)-n}function ts(e,n,t,r){return t&&!r?0:Er(e,n)}var cy=/^[0-9A-Fa-f]{6}$/;function Da(e){if(!(e===void 0||e==="auto"||e==="nil")&&cy.test(e))return e.toUpperCase()}function Io(e){if(e&&e.val!=="nil")return Da(e.fill)}function rs(e){if(!e||e.localName!=="shd")return;let n={};for(let t of e.attributes)n[t.localName]=t.value;return Io(n)}function os(e){let n;for(let t of e)t.localName==="shd"&&(n=Io(t.attributes));return n}function To(e,n,t){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:n,y:r,width:t,height:Math.max(o.y+o.height-r,0)}}var uy=64,fy=31680,py=720,gy=36,as=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),Mr=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),my=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),hy=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function vo(e){return e.kind!=="textValue"}function _a(e,n){return e.attributes.find(t=>t.localName===n)?.value}function is(e,n){for(let t of e.children)if(vo(t)&&t.localName===n)return t}function wu(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function yy(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function Ru(e,n){if(!n)return;let t=0;for(let r of n.children){if(t>=128)break;if(t+=1,!vo(r)||r.localName!=="tab")continue;let o=yy(wu(_a(r,"pos"))??NaN);if(o===null)continue;let a=_a(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=my.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let l=_a(r,"leader");e.set(o,{alignment:i,...l!==void 0&&hy.has(l)?{leader:l}:{}});}}function Pu(e,n=36){let t=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<t.length&&o<64;o+=1){let[a,i]=t[o];r.push({positionPt:a/20,alignment:i.alignment,...by(i)});}return {stops:Object.freeze(r),defaultIntervalPt:n}}function by(e){return e.leader?{leader:e.leader}:{}}function ls(e){let n=new Map;for(let t of e)!t||!vo(t)||Ru(n,is(t,"tabs"));return Pu(n)}function ss(e){if(!e||!vo(e))return Mr;let n=new Map;return Ru(n,is(e,"tabs")),Pu(n)}function Bo(e,n){return n===void 0||!Number.isFinite(n)||n<=0||n===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:n}}function xy(e){if(!e||!vo(e))return 36;let n=is(e,"defaultTabStop");if(!n)return 36;let t=wu(_a(n,"val"));return t===null||t<=0||t>31680?36:t/20}function Nr(e,n,t){let r=Math.max(n,t);for(let i of e.stops)if(i.positionPt>n)return {positionPt:Math.min(i.positionPt,r),alignment:i.alignment,...i.leader?{leader:i.leader}:{}};let o=e.defaultIntervalPt>0?e.defaultIntervalPt:36,a=Math.ceil((n+1e-9)/o)*o;return a<=n&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function ds(e,n,t,r,o){let a=t;switch(e){case "center":a=t-r/2;break;case "right":a=t-r;break;case "decimal":a=t-o;break;default:a=t;}let i=a-n;return i>0?i:0}function qt(e){return `tabs(${e.stops.map(t=>`${t.alignment}@${Math.round(t.positionPt*1e3)}${t.leader?`/${t.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var Oo=256,cs=4,Iu=4096,vt=64,za=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),Sy=/\s*\\\*\s*MERGEFORMAT\s*$/i;function Tu(e){if(e.length>Oo)return null;let n=e.replace(/\s+/g," ").trim().toUpperCase();return n.length>Oo?null:n.replace(Sy,"").trim()}function Fr(e){let n=Tu(e);return n==="PAGE"||n==="NUMPAGES"||n==="SECTIONPAGES"?n:null}function pn(e,n){return chunkEQO762XH_cjs.ec(e,n)}function Jt(e){return chunkEQO762XH_cjs.fc(e)}function us(){return {nodes:0,exhausted:false}}function dt(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Iu?(e.exhausted=true,false):true)}function ko(){return {nesting:0,instruction:"",instructionOverflow:false,nestingOverflow:false,phase:"idle"}}function Co(e){e.nesting=0,e.instruction="",e.instructionOverflow=false,e.nestingOverflow=false,e.phase="idle";}function Lo(e){e.nesting===0&&(e.instruction="",e.instructionOverflow=false,e.nestingOverflow=false,e.phase="instruction"),e.nesting+=1,e.nesting>cs&&(e.nestingOverflow=true);}function wy(e,n){if(!(e.phase!=="instruction"||e.nesting!==1||e.instructionOverflow)){if(e.instruction.length+n.length>Oo){e.instructionOverflow=true,e.instruction="";return}e.instruction+=n;}}function Eo(e,n,t,r){if(e.phase!=="instruction"||e.nesting!==1||e.instructionOverflow)return;if(r>vt){e.instructionOverflow=true,e.instruction="";return}let o=[],a=n.kind==="textValue"?[]:n.children??[];for(let i=a.length-1;i>=0;i-=1)o.push({node:a[i],depth:r+1});for(;o.length>0;){let i=o.pop();if(!dt(t)){e.instructionOverflow=true,e.instruction="";return}if(i.depth>vt){e.instructionOverflow=true,e.instruction="";return}if(i.node.kind==="textValue"){if(wy(e,i.node.value),e.instructionOverflow)return;continue}let l=i.node.children??[];for(let s=l.length-1;s>=0;s-=1)o.push({node:l[s],depth:i.depth+1});}}function Mo(e){return e.nesting!==1||e.phase!=="instruction"||(e.phase="result",e.instructionOverflow||e.nestingOverflow)?null:Fr(e.instruction)}function No(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&Co(e);}function Ha(e){return e.phase==="instruction"&&e.nesting>=1}function vu(e){return e.phase==="result"&&e.nesting>=1}function fs(e){let n=false,t=false,r=false,o=us(),a=ko(),i=()=>n&&t&&r,l=u=>{u==="PAGE"?n=true:u==="NUMPAGES"?t=true:r=true;},s=(u,f)=>{if(u.kind!=="runProperties"){if(pn(u,"begin")){Lo(a);return}if(Jt(u)){Eo(a,u,o,f);return}if(pn(u,"separate")){let p=Mo(a);p&&l(p);return}pn(u,"end")&&No(a);}},d=(u,f)=>{if(u.kind==="run")for(let p of u.children){if(!dt(o))return;if(s(p,f+1),(p.kind==="drawing"||p.kind==="generic")&&!Jt(p)&&"children"in p&&p.children.length>0){let g={...a};c(p,f+1),Object.assign(a,g);}if(i()||o.exhausted)return}},c=(u,f)=>{if(!i()&&dt(o)&&!(f>vt)&&u.kind!=="textValue"){if(u.kind==="paragraph"){Co(a);for(let p of u.children)if(c(p,f+1),i()||o.exhausted)return;Co(a);return}if(u.kind==="run"){d(u,f);return}if(chunkEQO762XH_cjs.gc(u)){let p=Fr(chunkEQO762XH_cjs.ic(u)??"");if(p){l(p);return}}for(let p of u.children)if(c(p,f+1),i()||o.exhausted)return}};return c(e,0),!n&&!t&&!r?za:{hasPage:n,hasNumPages:t,hasSectionPages:r}}var Ry=64,Py=64,Iy=[{value:1e3,glyph:"M"},{value:900,glyph:"CM"},{value:500,glyph:"D"},{value:400,glyph:"CD"},{value:100,glyph:"C"},{value:90,glyph:"XC"},{value:50,glyph:"L"},{value:40,glyph:"XL"},{value:10,glyph:"X"},{value:9,glyph:"IX"},{value:5,glyph:"V"},{value:4,glyph:"IV"},{value:1,glyph:"I"}];function ct(e){if(!Number.isFinite(e))return 1;let n=Math.trunc(e);return n<0?1:n>9999?9999:n}function Bt(e){return String(ct(e))}function Bu(e){let n=ct(e);return n<10?`0${n}`:String(n)}function ps(e){let n=ct(e);n>3999&&(n=3999);let t="";for(let{value:r,glyph:o}of Iy)for(;n>=r;)if(t+=o,n-=r,t.length>=64)return t.slice(0,64);return t||"I"}function Ou(e){return ps(e).toLowerCase()}function gs(e){let n=ct(e),t="";for(;n>0&&t.length<8;)n-=1,t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26);return t||"A"}function Cu(e){return gs(e).toLowerCase()}function Ty(e){let n=ct(e),t=n%100,r=n%10,o=t>=11&&t<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${n}${o}`}function vy(e){return ct(e).toString(16).toUpperCase()}function By(e){let n=["*","\u2020","\u2021","\xA7"],t=ct(e);if(t<=0)return n[0];let r=(t-1)%n.length,o=Math.min(Math.floor((t-1)/n.length)+1,Oy);return n[r].repeat(o)}var Oy=8,ja=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],Cy=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function Wa(e){let n=ct(e);if(n<20)return ja[n];if(n<100){let r=n%10;return Cy[Math.floor(n/10)]+(r===0?"":`-${ja[r]}`)}if(n<1e3){let r=n%100;return `${ja[Math.floor(n/100)]} hundred${r===0?"":` ${Wa(r)}`}`}let t=n%1e3;return `${ja[Math.floor(n/1e3)]} thousand${t===0?"":` ${Wa(t)}`}`}function ku(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function ky(e){return ku(Wa(e))}var Ly=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function Ey(e){let n=Ly.get(e);return n!==void 0?n:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function My(e){let n=Wa(e),t=Math.max(n.lastIndexOf(" "),n.lastIndexOf("-")),r=t<0?"":n.slice(0,t+1);return ku(r+Ey(n.slice(t+1)))}function ut(e,n){switch(e){case "decimal":return Bt(n);case "decimalZero":return Bu(n);case "upperRoman":return ps(n);case "lowerRoman":return Ou(n);case "upperLetter":return gs(n);case "lowerLetter":return Cu(n);case "ordinal":return Ty(n);case "cardinalText":return ky(n);case "ordinalText":return My(n);case "hex":return vy(n);case "chicago":return By(n);case "numberInDash":return `- ${Bt(n)} -`;case "none":case "bullet":return "";default:return Bt(n)}}function ms(e,n,t){let r=e.length>64?e.slice(0,64):e,o="";for(let a=0;a<r.length&&!(o.length>=64);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let l=r[a+1];if(l>="1"&&l<="9"){let s=Number(l)-1,d=t[s]??"decimal",c=n[s]??1,u=d==="bullet"?"":ut(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}function hs(e,n){if(!Number.isFinite(e)||e<0)return "";let t=Math.floor(e),r=n&&n.length>0?n:"decimal";if(r==="none"||r==="bullet")return Bt(t);let o=ut(r,t);return o.length>0?o:Bt(t)}function Ar(e,n){if(e==="PAGE")return hs(n.pageNumber,n.format);let t=e==="NUMPAGES"?n.pageCount:n.sectionPageCount??n.pageCount;return !Number.isFinite(t)||t<0?"":Bt(Math.floor(t))}function Ot(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function ys(e,n=za){if(!e||!Ot(n))return "";let t=[];return n.hasPage&&(t.push(`p${e.pageNumber}`),e.format&&t.push(`f${e.format}`)),n.hasNumPages&&t.push(`n${e.pageCount}`),n.hasSectionPages&&t.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${t.join("/")}`}function Dr(e,n,t,r){let o=false,a=e.map((i,l)=>{let s=n+l,d=i.pageFieldSource;return d&&d.pageNumber===s&&d.sectionPageCount===t&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:s,sectionPageCount:t,...r?{format:r}:{}}})});return o?a:e}function Ct(e){let n=e.pages.length;if(n===0)return e;let t=false,r=e.pages.map(o=>{let a=o.pageFieldSource,i={pageNumber:a?.pageNumber??o.index+1,pageCount:n,sectionPageCount:a?.sectionPageCount??n,...a?.format?{format:a.format}:{}},l=c=>{if(!c?.pageFieldProjector)return c;t=true;let u=c.pageFieldProjector(i),{pageFieldProjector:f,...p}=u;return p},s=l(o.header),d=l(o.footer);return s===o.header&&d===o.footer?o:{...o,...s!==void 0?{header:s}:{},...d!==void 0?{footer:d}:{}}});return t?{revision:e.revision,pages:r}:e}var Yn=Object.freeze({fontFamily:null,fontSizePt:10,color:null,bold:false,italic:false,underline:null,strike:false,doubleStrike:false,highlight:null,shading:null,verticalAlign:"baseline",baselineShiftPt:0,caps:false,smallCaps:false,characterSpacingPt:0,horizontalScalePercent:100,kerningMinPt:0,hidden:false}),Ny=/^[0-9A-Fa-f]{6}$/;function kt(e){let n=e.attributes?.val;return n===void 0||!(n==="0"||n==="false"||n==="off")}function Fo(e,n=false){return e===void 0||!(n?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function Lu(e){return e===void 0||e==="auto"?null:Ny.test(e)?e.toUpperCase():null}function Eu(e,n){return e==="minorAscii"||e==="minorHAnsi"?n.minor:e==="majorAscii"||e==="majorHAnsi"?n.major:null}function dn(e,n){let t={...Yn};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(n?Eu(o?.asciiTheme,n)??Eu(o?.hAnsiTheme,n):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(t.fontFamily=i);break}case "sz":{let o=Fo(r.attributes?.val);o!==null&&o>0&&(t.fontSizePt=o/2);break}case "color":{t.color=Lu(r.attributes?.val);break}case "b":t.bold=kt(r);break;case "i":t.italic=kt(r);break;case "u":{let o=r.attributes?.val??"single";t.underline=o==="none"||!kt(r)?null:{variant:o,color:Lu(r.attributes?.color)};break}case "strike":t.strike=kt(r);break;case "dstrike":t.doubleStrike=kt(r);break;case "highlight":{let o=r.attributes?.val;t.highlight=o&&o!=="none"?o:null;break}case "shd":{t.shading=Io(r.attributes)??null;break}case "vertAlign":{let o=r.attributes?.val;o==="superscript"||o==="subscript"?t.verticalAlign=o:o==="baseline"&&(t.verticalAlign="baseline");break}case "position":{let o=Fo(r.attributes?.val,true);o!==null&&(t.baselineShiftPt=o/2);break}case "caps":t.caps=kt(r);break;case "smallCaps":t.smallCaps=kt(r);break;case "spacing":{let o=Fo(r.attributes?.val,true);o!==null&&(t.characterSpacingPt=o/20);break}case "w":{let o=Fo(r.attributes?.val);o!==null&&o>0&&(t.horizontalScalePercent=o);break}case "kern":{let o=Fo(r.attributes?.val);o!==null&&(t.kerningMinPt=o/2);break}case "vanish":t.hidden=kt(r);break;}return t}function Lt(e,n){return n.caps?e.toUpperCase():e}function Kn(e,n,t){return t.measure(Lt(e,n),n)}function Fy(e,n){return e.fontFamily===n.fontFamily&&e.fontSizePt===n.fontSizePt&&e.color===n.color&&e.bold===n.bold&&e.italic===n.italic&&e.strike===n.strike&&e.doubleStrike===n.doubleStrike&&e.highlight===n.highlight&&e.shading===n.shading&&e.verticalAlign===n.verticalAlign&&e.baselineShiftPt===n.baselineShiftPt&&e.caps===n.caps&&e.smallCaps===n.smallCaps&&e.characterSpacingPt===n.characterSpacingPt&&e.horizontalScalePercent===n.horizontalScalePercent&&e.kerningMinPt===n.kerningMinPt&&e.hidden===n.hidden&&e.underline?.variant===n.underline?.variant&&e.underline?.color===n.underline?.color}function bs(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var ft="all-markup",Mu=Object.freeze([]),Ay=32,Dy={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function _r(e,n){for(let t of e.attributes)if(t.localName===n&&t.namespaceUri===e.namespaceUri&&(t.kind==="wmlVal"||t.kind==="genericExtension"||t.kind==="xmlSpace"))return t.value}function Ga(e){if(e.kind==="textValue")return null;let n=Dy[e.kind];if(n===void 0)return null;let t=_r(e,"date");return {kind:n,id:_r(e,"id")??"",author:_r(e,"author")??"",...t===void 0?{}:{date:t},nodeId:e.id}}function $a(e,n){return e.length===0?[n]:[...e,n]}function Xa(e){return e.kind!=="textValue"&&chunkEQO762XH_cjs.qa(e.kind)}var zr=Ay;function Un(e,n){if(n==="all-markup"||e.length===0)return true;for(let t of e)if(n==="proposed"?t.kind==="delete"||t.kind==="moveFrom":t.kind==="insert"||t.kind==="moveTo")return false;return true}function xs(e){if(e.kind==="textValue")return null;let n=e.children.find(r=>r.kind==="paragraphProperties");if(!n||n.kind==="textValue")return null;let t=n.children.find(r=>r.kind==="runProperties");if(!t||t.kind==="textValue")return null;for(let r of t.children){if(r.kind==="textValue"||r.namespaceUri!==chunkEQO762XH_cjs.la)continue;let o=r.localName==="ins"?"insert":r.localName==="del"?"delete":null;if(o===null)continue;let a=_r(r,"date");return {kind:o,id:_r(r,"id")??"",author:_r(r,"author")??"",...a===void 0?{}:{date:a},nodeId:r.id}}return null}function _y(e){for(let n of e){if(n.localName!=="rPrChange"&&n.localName!=="pPrChange")continue;let t=n.attributes??{},r=t.date;return {kind:"format",id:t.id??"",author:t.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function pt(e){return e.some(n=>n.kind==="delete"||n.kind==="moveFrom")}function zy(e){if(!e||e.kind==="textValue")return [];let n=[];for(let t of e.children){if(t.kind==="textValue")continue;let r={};for(let o of t.attributes)r[o.localName]=o.value;n.push(Object.keys(r).length>0?{localName:t.localName,attributes:r}:{localName:t.localName});}return n}function Hy(e,n,t){let r=zy(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return t?[...t(n,r)]:n.length===0?r:[...n,...r]}function jy(e){if(e.kind==="text"||e.kind==="deletedText"){let n="";for(let t of e.children)t.kind==="textValue"&&(n+=t.value);return n}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunkEQO762XH_cjs.Zb(e):""}function Nu(e){let{simple:n,depth:t,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:s,themeFonts:d}=e,c="",u,f,p=ko(),g=null,y=false,h=false,b=false,x=(z,L)=>{u||(u=z,f=L);},v=()=>{!g||!r||h&&!b||(c+=Ar(g,r));},w=(z,L,M)=>{if(!(z.kind==="textValue"||L>vt)){for(let F of z.children)if(F.kind!=="textValue"){if(!dt(o))return;if(F.kind==="run"){let T=Hy(F,l,s),B=dn(T,d);for(let m of F.children){if(m.kind==="runProperties")continue;if(pn(m,"begin")){Lo(p),p.nesting===1&&(g=null,y=false,h=false,b=false);continue}if(Jt(m)){Ha(p)&&Eo(p,m,o,L+1);continue}if(pn(m,"separate")){let S=Mo(p);S&&r?(g=S,y=true,h=false,b=false):(g=null,y=false);continue}if(pn(m,"end")){p.nesting===1&&y&&v(),No(p),g=null,y=false,h=false,b=false;continue}if(chunkEQO762XH_cjs.lc(m))continue;let D=jy(m);if(D.length===0)continue;let W=pt(M),V=B.hidden||!Un(M,i)||m.kind==="deletedText"&&!W;if(y){h=true,V||(b=true,x(T,B));continue}V||(x(T,B),c+=D);}continue}if(chunkEQO762XH_cjs.gc(F)){let T=Fr(chunkEQO762XH_cjs.ic(F)??"");if(T&&r){if(!Un(M,i))continue;let B=c.length;w(F,L+1,M),c=c.slice(0,B),c+=Ar(T,r);continue}w(F,L+1,M);continue}if(F.kind==="hyperlink"){w(F,L+1,M);continue}if(Xa(F)&&M.length<zr){let T=Ga(F);w(F,L+1,T?$a(M,T):M);continue}w(F,L+1,M);}}};return w(n,t,a),y&&(g=null,y=false),{text:c,resultProps:u,resultStyle:f}}function Qt(e,n,t){if(t<=n)return;let r=e[e.length-1];if(r&&r.end>=n){r.end=Math.max(r.end,t);return}e.push({start:n,end:t});}var Wy=new Set(["left","center","right"]),Gy=new Set(["margin","indent","leftMargin"]),$y=new Set(["dot","hyphen","underscore","middleDot"]);function Fu(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkEQO762XH_cjs.la)return null;let n="left",t="margin",r;for(let o of e.attributes)o.namespaceUri===chunkEQO762XH_cjs.la&&(o.localName==="alignment"?n=o.value:o.localName==="relativeTo"?t=o.value:o.localName==="leader"&&(r=o.value));return {alignment:Wy.has(n)?n:"left",relativeTo:Gy.has(t)?t:"margin",...r!==void 0&&$y.has(r)?{leader:r}:{}}}Object.freeze({marks:Object.freeze(new Map)});function er(e,n){return chunkEQO762XH_cjs.ad(e,n)}function Ss(e,n){if(!chunkEQO762XH_cjs.rd(e))return null;if(chunkEQO762XH_cjs.hd(e)||chunkEQO762XH_cjs.id(e))return {text:"",projected:true,kind:null,noteId:null};let t=chunkEQO762XH_cjs.fd(e),r=chunkEQO762XH_cjs.nd(e)??chunkEQO762XH_cjs.od(e);if(!r)return null;let o=chunkEQO762XH_cjs.kd(e),a=o!==null?er(r,o):t?void 0:n?.activeNoteKey,i=o!==null?o:a?Xy(a,r)??null:null,l=a,s=l!==void 0?t?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...s?{nav:s}:{},...l?{scopeId:l}:{}};if(t&&o!==null&&chunkEQO762XH_cjs.pd(e))return {text:"",...d};if(!n||!a)return {text:"",...d};let c=n.marks.get(a);return c==null?{text:"",...d}:n.reservedMarkText&&n.reservedMarkText.length>0?{text:c,measureText:n.reservedMarkText,...d}:{text:c,...d}}function Xy(e,n){let t=`${n}:`;if(!e.startsWith(t))return null;let r=e.slice(t.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function Au(e){return chunkEQO762XH_cjs.fd(e)||chunkEQO762XH_cjs.gd(e)||chunkEQO762XH_cjs.hd(e)||chunkEQO762XH_cjs.id(e)}function Vy(e,n,t){let r=Ao(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return t?[...t(n,r)]:n.length===0?r:[...n,...r]}function Ao(e){if(!e||e.kind==="textValue")return [];let n=[];for(let t of e.children){if(t.kind==="textValue")continue;let r={};for(let o of t.attributes)r[o.localName]=o.value;n.push(Object.keys(r).length>0?{localName:t.localName,attributes:r}:{localName:t.localName});}return n}function Du(e){if(e.kind==="text"||e.kind==="deletedText"){let n="";for(let t of e.children)t.kind==="textValue"&&(n+=t.value);return n}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunkEQO762XH_cjs.Zb(e):""}function _u(e,n=[],t,r,o,a,i=ft,l,s,d){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let c=[],u=0,f,p=chunkEQO762XH_cjs.nc(e,{maxNesting:cs,maxInstructionChars:Oo}),g=p.filter(S=>S.addressing==="atomic"),y=new Set(g.filter(S=>S.kind==="complex").map(S=>S.node.id)),h=new Set(p.filter(S=>S.kind==="complex"&&S.addressing==="editable-result").map(S=>S.node.id)),b=new Set;for(let S of g)for(let I of S.removeNodeIds)b.add(I);let x=ko(),v=us(),w=null,z=null,L=Mu,M=(S,I,O,N,C,_,E)=>{if(S.length===0&&!N&&!E?.inlineDrawing)return;let X=E?.linkOverride??f,H=E?.revisionsOverride??L,K=X?{link:X}:{},G=H.length===0?{}:{revisions:H};if(N){c.push({text:S,props:I,style:O,start:C,end:_,projected:true,...E?.measureText!==void 0?{measureText:E.measureText}:{},...E?.noteNav?{noteNav:E.noteNav}:{},...E?.inlineDrawing?{inlineDrawing:E.inlineDrawing}:{},...E?.fieldAtom?{fieldAtom:E.fieldAtom}:{},...K,...G});return}S.length!==0&&c.push({text:S,props:I,style:O,start:C,end:_,...E?.positionalTab?{positionalTab:E.positionalTab}:{},...E?.breakKind?{breakKind:E.breakKind}:{},...K,...G});},F=()=>{if(!w||!w.atomic){w=null,z=null;return}let S=w.atomStart,I=S+1;if(w.style.hidden){w=null,z=null;return}if(!Un(w.resultRevisions,i)){l&&pt(w.resultRevisions)&&Qt(l,S,I),w=null,z=null;return}let O={...w.resultRevisions.length>0?{revisionsOverride:w.resultRevisions}:{},...w.resultLink?{linkOverride:w.resultLink}:{},fieldAtom:{formField:w.formField}};if(w.kind&&t){let N=Ar(w.kind,t);M(N,w.props,w.style,true,S,I,O);}else w.cachedText.length>0&&M(w.cachedText,w.props,w.style,true,S,I,O);w=null,z=null;},T=()=>{if(w){if(w.atomic){u=w.atomStart;for(let S of w.buffered)c.push({...S,start:u,end:u+(S.end-S.start)}),u+=S.end-S.start;w.cachedText.length>0&&w.buffered.length===0&&(M(w.cachedText,w.props,w.style,false,u,u+w.cachedText.length),u+=w.cachedText.length);}else {for(let S of w.buffered)c.push(S);u=w.bufferOffset;}w=null,z=null;}},B=(S,I,O)=>{let N=(H,K,G,U)=>{let se=pt(L),xe=O.hidden||!Un(L,i)||se;if(K.hidden||xe){if(se&&l&&Qt(l,G,U),!K.hidden)return;M("\uFFFC",I,O,true,G,U);return}M("\uFFFC",I,O,true,G,U,{inlineDrawing:Object.freeze({drawingNodeId:H,ownerPartName:s.ownerPartName,projection:K,resource:s.resourceOf(K)})});};if(S.kind==="drawing"){let H=u;u+=1;let K=u;if(!s)return;let G=s.projectionForAtom?.(S.id)??(S.kind==="drawing"?s.project(S):null);if(!G||G.kind!=="inline"){M("\uFFFC",I,O,true,H,K);return}N(S.id,G,H,K);return}if(chunkEQO762XH_cjs.$a(S)){let H=u;u+=1;let K=u;if(!s)return;let G=s.projectionForAtom?.(S.id)??null;if(!G||G.kind!=="inline"){M("\uFFFC",I,O,true,H,K);return}N(S.id,G,H,K);return}if(Au(S)){let H=Ss(S,a),K=u,G=K+1;if(u=G,O.hidden||!H||H.text.length===0&&!H.measureText)return;let U=H.scopeId&&H.nav?{scopeId:H.scopeId,direction:H.nav}:void 0;M(H.text.length>0?H.text:H.measureText??"",I,O,true,K,G,{...H.measureText!==void 0?{measureText:H.measureText}:{},...U?{noteNav:U}:{}});return}let C=Fu(S);if(C){O.hidden||M(" ",I,O,false,u,u,{positionalTab:C});return}let _=Du(S);if(_.length===0)return;let E=pt(L);O.hidden||!Un(L,i)||S.kind==="deletedText"&&!E||M(_,I,O,false,u,u+_.length,{...S.kind==="hardBreak"?{breakKind:chunkEQO762XH_cjs.Xb(S)}:{}}),E&&l&&Qt(l,u,u+_.length),u+=_.length;},m=(S,I)=>{if(S.kind!=="run")return;let O=Vy(S,n,r),N=dn(O,d);for(let C of S.children){if(!dt(v)){if(T(),Co(x),C.kind==="runProperties"||pn(C,"begin")||pn(C,"separate")||pn(C,"end")||Jt(C)||b.has(C.id)&&z===null)continue;B(C,O,N);continue}if(C.kind!=="runProperties"){if(pn(C,"begin")){let _=y.has(C.id);Lo(x),x.nesting===1&&(T(),z=_?C.id:null,w={kind:null,atomic:_,editableResult:h.has(C.id),atomStart:u,props:O,style:N,capturedResultStyle:false,cachedText:"",buffered:[],bufferOffset:u,resultRevisions:L,capturedResultRevisions:L.length>0,formField:chunkEQO762XH_cjs.mc(C),...f?{resultLink:f}:{}},_&&(u+=1));continue}if(Jt(C)){Eo(x,C,v,I+1);continue}if(pn(C,"separate")){let _=x.nesting===1&&x.phase==="instruction",E=Mo(x);_&&w&&(w.kind=E&&t?E:null,w.props=O,w.style=N);continue}if(pn(C,"end")){let _=x.nesting===1;No(x),_&&(w?.atomic?F():T());continue}if(!(Ha(x)&&w?.atomic)){if(w&&vu(x)){let _=Du(C);if(_.length===0)continue;let E=pt(L),X=!Un(L,i)||C.kind==="deletedText"&&!E;if(E&&l&&(w.atomic?Qt(l,w.atomStart,w.atomStart+1):Qt(l,u,u+_.length)),X){w.atomic||(u+=_.length,w.bufferOffset=u);continue}if(w.atomic){if(N.hidden)continue;w.capturedResultStyle||(w.props=O,w.style=N,w.capturedResultStyle=true),w.capturedResultRevisions||(w.resultRevisions=L,w.capturedResultRevisions=true,!w.resultLink&&f&&(w.resultLink=f)),w.cachedText+=_;continue}if(N.hidden){u+=_.length,w.bufferOffset=u;continue}w.capturedResultStyle||(w.props=O,w.style=N,w.capturedResultStyle=true),w.buffered.push({text:_,props:O,style:N,start:u,end:u+_.length,...L.length>0?{revisions:L}:{},...f?{link:f}:{},...w.editableResult?{fieldAtom:{formField:w.formField}}:{}}),u+=_.length,w.bufferOffset=u;continue}b.has(C.id)&&z===null&&y.size>0,B(C,O,N);}}}};if(!dt(v))return c;let D=chunkEQO762XH_cjs.Va(),W=(S,I)=>{let O=u;if(u+=1,S.kind==="textValue"||(pt(L)&&l&&Qt(l,O,O+1),!Un(L,i)))return;let N=Nu({simple:S,depth:I,pageContext:t,budget:v,revisions:L,displayMode:i,inheritedRunProperties:n,cascadeRuns:r,themeFonts:d}),C=Fr(chunkEQO762XH_cjs.ic(S)??"");if(C&&t){let E=Ar(C,t),X=N.resultStyle??dn(n,d);X.hidden||M(E,N.resultProps??n,X,true,O,O+1,{fieldAtom:{formField:false}});return}if(N.text.length===0)return;let _=N.resultStyle??dn(n,d);_.hidden||M(N.text,N.resultProps??n,_,true,O,O+1,{fieldAtom:{formField:false}});},V=(S,I,O,N)=>{if(chunkEQO762XH_cjs.gc(S)){W(S,I);return}if(S.kind==="run"){m(S,I);return}if(chunkEQO762XH_cjs.Kb(S)){if(N>=chunkEQO762XH_cjs.Jb||I>vt)return;for(let X of chunkEQO762XH_cjs.Nb(S))V(X,I+1,O,N+1);return}if(I>vt||I>=zr)return;let C=S.kind!=="textValue"&&"localName"in S?chunkEQO762XH_cjs.Ua(O,S):O;if(S.kind==="hyperlink"){let X=f;f=o?.(S)??void 0;for(let H of S.children)V(H,I+1,C,N);f=X;return}if(!Xa(S))return;let _=Ga(S);if(!_||!dt(v))return;let E=L;L=$a(E,_);for(let X of S.children)V(X,I+1,C,N);L=E;};for(let S of e.children)V(S,1,D,0);return T(),c}function Yy(e){let n=Object.entries(e.attributes??{}).sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${t}=${r}`).join(",");return `${e.localName}(${n})`}function Ky(e){return e.map(Yy).join(";")}var zu=new WeakMap,ju=1<<18;function Wu(e){if(e.kind==="textValue")return `t:${e.value}`;let n=e.kind==="paragraph"||e.kind==="table";if(n){let r=zu.get(e);if(r!==void 0)return r}let t=Uy(e);return n&&t.length<=ju&&zu.set(e,t),t}function Uy(e){if(e.kind==="textValue")return `t:${e.value}`;let n=[`${e.kind}:${"localName"in e?e.localName:""}#${"id"in e?e.id:""}`];if("attributes"in e&&Array.isArray(e.attributes)){let t=[...e.attributes].map(r=>`${r.namespaceUri??""}:${r.localName}=${r.value}`).sort();for(let r of t)n.push(r);}for(let t of e.children??[])n.push(Wu(t));return `(${n.join("|")})`}var Hu=new WeakMap;function nr(e){let n=Math.round(e.width*1e3),t=e.drawingToken??"",r=e.exclusionToken??"",o=Ky(e.properties),a=Hu.get(e.paragraph);if(a&&a.producer===e.producer&&a.width===n&&a.drawingToken===t&&a.exclusionToken===r&&a.propertiesToken===o)return a.key;let i=[e.producer,n,t,r,o,Wu(e.paragraph)].join("\0");return i.length<=ju&&Hu.set(e.paragraph,{producer:e.producer,width:n,drawingToken:t,exclusionToken:r,propertiesToken:o,key:i}),i}function Zy(e={}){let n=Math.max(1,e.maxEntries??4096),t=new Map,r=0,o=0,a=0;return {get(i){let l=t.get(i);if(l===void 0){o+=1;return}return r+=1,t.delete(i),t.set(i,l),l},set(i,l){for(t.has(i)&&t.delete(i),t.set(i,l);t.size>n;){let s=t.keys().next();if(s.done)break;t.delete(s.value),a+=1;}},retain(i){for(let l of [...t.keys()])i.has(l)||(t.delete(l),a+=1);},clear(){t.clear();},get stats(){return {hits:r,misses:o,evictions:a,size:t.size}}}}var Gu=21600;function je(e){return Number.isFinite(e)?e:0}function Do(e){if(e.length===0)return Object.freeze([]);let n=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),t=[],r=n[0];for(let o=1;o<n.length;o+=1){let a=n[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(t.push(r),r=a);}return t.push(r),Object.freeze(t)}function qy(e,n){let t=[];for(let r of e)for(let o of n){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&t.push(Object.freeze({start:a,end:i}));}return Do(t)}function ws(e,n,t){let r=[];for(let o of e){let a=Math.max(o.start,n),i=Math.min(o.end,t);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return Do(r)}function Jy(e,n,t){let r=[],o=n;for(let a of e)a.start>o&&r.push(Object.freeze({start:o,end:a.start})),o=Math.max(o,a.end);return o<t&&r.push(Object.freeze({start:o,end:t})),Object.freeze(r)}function Xu(e,n){return Hr(e,n)}function Rs(e,n,t){return Xu(Hr(e,n),t)}function Qy(e,n){let t=[],r=Math.min(e.length,tn);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],l=a.y,s=i.y;if(l===s)continue;let d=Math.min(l,s),c=Math.max(l,s);if(n<d||n>c||n===c&&s>l||n===d&&s<l)continue;let u=(n-l)/(s-l),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&t.push({x:f,delta:s>l?1:-1});}return t.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(t)}function eb(e,n){let t=[],r=Math.min(e.length,tn);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(n-a.y)>1e-6)continue;let l=Math.min(a.x,i.x),s=Math.max(a.x,i.x);s>l&&t.push(Object.freeze({start:l,end:s}));}return Do(t)}function $u(e,n,t){let r=nb(Qy(e,n),t),o=eb(e,n);return Do([...r,...o])}function nb(e,n){if(e.length===0)return Object.freeze([]);let t=[];if(n==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,l=e[a+1].x;l>i&&t.push(Object.freeze({start:i,end:l}));}return Object.freeze(t)}let r=0,o=null;for(let a of e){let i=r;r+=a.delta,i===0&&r!==0?o=a.x:i!==0&&r===0&&o!==null&&(a.x>o&&t.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(t)}function tb(e,n){return Object.freeze({top:je(e.top)+je(n.top),right:je(e.right)+je(n.right),bottom:je(e.bottom)+je(n.bottom),left:je(e.left)+je(n.left)})}function rb(e,n,t,r,o,a){let i=n.x-e.x,l=n.y-e.y,s=r.x-t.x,d=r.y-t.y,c=i*d-l*s;if(Math.abs(c)<1e-12)return null;let f=((t.x-e.x)*l-(t.y-e.y)*i)/c,p=((t.x-e.x)*d-(t.y-e.y)*s)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let g=e.y+f*l;return !Number.isFinite(g)||g<o-1e-6||g>a+1e-6?null:g}function ob(e,n,t,r){let o=[],a=Math.min(e.length,tn),i=Math.min(n.length,tn);if(a<2||i<2)return Object.freeze([]);let l=tn*tn,s=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let f=0;f<i;f+=1){if(s>=l)return Object.freeze(o);s+=1;let p=n[f],g=n[(f+1)%i],y=rb(c,u,p,g,t,r);y!==null&&o.push(y);}}return Object.freeze(o)}function ab(e,n,t){let r=new Set;r.add(n),r.add(t);for(let o of e){let a=Math.min(o.length,tn);for(let i=0;i<a;i+=1){let l=o[i].y;Number.isFinite(l)&&l>=n-1e-6&&l<=t+1e-6&&r.add(l);}for(let i=0;i<a;i+=1){let l=o[i],s=o[(i+1)%a],d=l.y,c=s.y;if(d!==c)for(let u of [n,t]){let f=Math.min(d,c),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of ob(e[0],e[1],n,t))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function ib(e,n,t,r){let o=$u(e,t,r);return n&&n.length>=3&&(o=qy(o,$u(n,t,"nonzero"))),o}function Vu(e,n,t,r,o=null){let a=je(t.top),i=je(t.bottom),l=je(t.left),s=je(t.right),d=n-i,c=n+a,u=ab(o&&o.length>=3?[e,o]:[e],d,c),f=[],p=u.length>=2?u.flatMap((g,y)=>{if(y+1>=u.length)return [];let h=u[y+1];return h<=g+1e-6?[g]:[g,h,(g+h)/2]}):[d];for(let g of p){let y=ib(e,o,g,r);for(let h of y)f.push(Object.freeze({start:h.start-l,end:h.end+s}));}return Do(f)}function Yu(e){let{x:n,y:t,width:r,height:o}=e;return Object.freeze([Object.freeze({x:n,y:t}),Object.freeze({x:n+r,y:t}),Object.freeze({x:n+r,y:t+o}),Object.freeze({x:n,y:t+o})])}function lb(e){let n=Math.max(0,je(e.extentWidthPt)),t=Math.max(0,je(e.extentHeightPt)),r=Ya(e.transform,n,t),o=Math.min(e.polygonEmu.length,tn);if(o<3)return Yu({x:e.anchorX,y:e.anchorY,width:n,height:t});let a=r.width/Gu,i=r.height/Gu,l=[];for(let s=0;s<o;s+=1){let d=e.polygonEmu[s];l.push(Object.freeze({x:je(d.x)*a,y:je(d.y)*i}));}return Ka({points:Object.freeze(l),sourceWidth:r.width,sourceHeight:r.height,offsetX:r.offsetX,offsetY:r.offsetY,crop:{left:0,top:0,right:0,bottom:0},transform:e.transform,layoutWidth:n,layoutHeight:t,anchorX:e.anchorX,anchorY:e.anchorY})}function sb(e,n){let t=n.effectInsets??Va,r=n.wrapDistances??Va,o=je(n.contentLeft),a=je(n.contentRight);if(n.mode==="topAndBottom"){let c=Xu(Hr(n.contentBounds,t),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):ws([{start:o,end:a}],o,a)}if(n.mode==="square"){let c=Rs(n.contentBounds,t,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):ws([{start:c.x,end:c.x+c.width}],o,a)}let i=n.polygon&&n.polygon.length>=3?n.polygon:Yu(n.contentBounds),l=n.mode==="through"?"evenodd":"nonzero",s=tb(r,t),d=Vu(i,e,s,l,n.clipPolygon);return ws(d,o,a)}function db(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(n=>n.start)),end:Math.max(...e.map(n=>n.end))})}function cb(e,n,t,r,o){if(t==="bothSides"||n.length===0)return e;let a=db(n);if(!a)return e;if(t==="left")return Object.freeze(e.filter(s=>s.end<=a.start+1e-4));if(t==="right")return Object.freeze(e.filter(s=>s.start>=a.end-1e-4));let i=Math.max(0,a.start-r),l=Math.max(0,o-a.end);return i===l?Object.freeze(e.filter(s=>s.start>=a.end-1e-4)):i>l?Object.freeze(e.filter(s=>s.end<=a.start+1e-4)):Object.freeze(e.filter(s=>s.start>=a.end-1e-4))}function Ku(e,n){let t=sb(e,n),r=Jy(t,n.contentLeft,n.contentRight);return cb(r,t,n.textSide,n.contentLeft,n.contentRight)}function ub(e,n,t,r){return t.length<3?false:Vu(t,n,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function Ps(e,n,t){let r=t.effectInsets??Va,o=t.hitBounds;if(e<o.x||e>o.x+o.width||n<o.y||n>o.y+o.height)return false;if(t.clipPolygon&&t.clipPolygon.length>=3)return ub(e,n,t.clipPolygon,r);let a=Hr(t.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&n>=a.y&&n<=a.y+a.height}function Uu(e){let n=Object.freeze({top:je(e.wrapDistancesEmu.top/Zn),right:je(e.wrapDistancesEmu.right/Zn),bottom:je(e.wrapDistancesEmu.bottom/Zn),left:je(e.wrapDistancesEmu.left/Zn)}),t=e.mode==="tight"||e.mode==="through"?lb({polygonEmu:e.polygonEmu,extentWidthPt:e.extentWidthPt,extentHeightPt:e.extentHeightPt,anchorX:e.contentBounds.x,anchorY:e.contentBounds.y,transform:e.transform}):null;return Object.freeze({mode:e.mode,contentBounds:e.contentBounds,polygon:t,clipPolygon:e.geometry.clipPolygon,wrapDistances:n,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var gn=1e5,tn=chunkEQO762XH_cjs.D.maxPolygonPoints,Va=Object.freeze({top:0,right:0,bottom:0,left:0}),fb=32,pb=.1,gb=new Set(["rect","ellipse","roundRect"]);function ce(e){return Number.isFinite(e)?e:0}function Pn(e,n,t){return Number.isFinite(e)?Math.min(t,Math.max(n,e)):n}function Zu(e,n){let t=e+n;return Number.isFinite(t)?t:0}function qu(e,n,t){let r=Pn(e,0,t),o=Pn(n,0,t);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=t){let i=(t-1)/a;r*=i,o*=i;}return {left:r,right:o}}function mb(e){let n=qu(Pn(e.left,0,gn),Pn(e.right,0,gn),gn),t=qu(Pn(e.top,0,gn),Pn(e.bottom,0,gn),gn);return Object.freeze({left:n.left,top:t.left,right:n.right,bottom:t.right})}function hb(e){let n=mb({left:e.left*gn,top:e.top*gn,right:e.right*gn,bottom:e.bottom*gn});return Object.freeze({left:n.left/gn,top:n.top/gn,right:n.right/gn,bottom:n.bottom/gn})}function yb(e){let n=t=>{if(!Number.isFinite(t))return 0;let r=t/Zn;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)})}function Hr(e,n){let t=ce(n.left),r=ce(n.right),o=ce(n.top),a=ce(n.bottom);return Object.freeze({x:e.x-t,y:e.y-o,width:Math.max(0,Zu(e.width,t+r)),height:Math.max(0,Zu(e.height,o+a))})}function bb(e,n,t){let r=e*Pn(t.left,0,1),o=n*Pn(t.top,0,1),a=e*(1-Pn(t.right,0,1)),i=n*(1-Pn(t.bottom,0,1));if(a<=r||i<=o){let l=e/2,s=n/2;return Object.freeze({left:l,top:s,right:l,bottom:s})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function Ya(e,n,t){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?ce(Et(r)??n):Math.max(0,ce(n)),l=o>0?ce(Et(o)??t):Math.max(0,ce(t));return Object.freeze({offsetX:ce(Et(a.x)??0),offsetY:ce(Et(a.y)??0),width:i,height:l})}function xb(e,n,t,r){let o=bb(n,t,r),a=o.right-o.left,i=o.bottom-o.top,l=n>0?n:1,s=t>0?t:1,d=[],c=Math.min(e.length,tn);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+Pn(f.x/l,0,1)*a,g=i<=0?o.top:o.top+Pn(f.y/s,0,1)*i;d.push(Object.freeze({x:ce(p),y:ce(g)}));}return Object.freeze(d)}function Ju(e,n,t){let r=e.x-n.x,o=e.y-n.y;t.flipHorizontal&&(r=-r),t.flipVertical&&(o=-o);let a=ce(t.rotationDegrees)*Math.PI/180,i=Math.cos(a),l=Math.sin(a),s=r*i-o*l,d=r*l+o*i;return Object.freeze({x:ce(s+n.x),y:ce(d+n.y)})}function Qu(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let n=e[0].x,t=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,tn);for(let i=1;i<a;i+=1){let l=e[i];!Number.isFinite(l.x)||!Number.isFinite(l.y)||(n=Math.min(n,l.x),t=Math.max(t,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y));}return Object.freeze({x:n,y:r,width:Math.max(0,t-n),height:Math.max(0,o-r)})}function Is(e){let n=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),t=_o(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of t)r.push(Ju(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),n,e.transform));let o=Qu(r),a=Math.max(o.width,1e-6),i=Math.max(o.height,1e-6);return Object.freeze({bboxX:o.x,bboxY:o.y,scaleX:Math.max(0,ce(e.layoutWidth))/a,scaleY:Math.max(0,ce(e.layoutHeight))/i,anchorX:ce(e.anchorX),anchorY:ce(e.anchorY)})}function Sb(e,n){return Object.freeze({x:ce(n.anchorX+(e.x-n.bboxX)*n.scaleX),y:ce(n.anchorY+(e.y-n.bboxY)*n.scaleY)})}function Ka(e){let n=e.mapping??Is({sourceWidth:e.sourceWidth,sourceHeight:e.sourceHeight,offsetX:e.offsetX,offsetY:e.offsetY,transform:e.transform,layoutWidth:e.layoutWidth,layoutHeight:e.layoutHeight,anchorX:e.anchorX,anchorY:e.anchorY}),t=xb(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(t.length>0?t.length:e.points.length,tn),o=t.length>0?t:e.points.slice(0,r),a=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),i=[];for(let l=0;l<r;l+=1){let s=o[l],d=Object.freeze({x:ce(s.x+e.offsetX),y:ce(s.y+e.offsetY)});i.push(Sb(Ju(d,a,e.transform),n));}return Object.freeze(i)}function _o(e,n,t,r){if(t<=0||r<=0){let o=Object.freeze({x:e,y:n});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:n}),Object.freeze({x:e+t,y:n}),Object.freeze({x:e+t,y:n+r}),Object.freeze({x:e,y:n+r})])}function wb(e,n,t){if(!e||!gb.has(e))return null;if(n<=0||t<=0)return _o(0,0,Math.max(0,n),Math.max(0,t));if(e==="rect")return _o(0,0,n,t);if(e==="ellipse"){let l=[],s=n/2,d=t/2,c=n/2,u=t/2,f=Math.min(fb,tn);for(let p=0;p<f;p+=1){let g=p/f*Math.PI*2;l.push(Object.freeze({x:s+c*Math.cos(g),y:d+u*Math.sin(g)}));}return Object.freeze(l)}let r=Math.min(n,t)*pb,o=Math.max(0,r),a=n,i=t;return Object.freeze([Object.freeze({x:o,y:0}),Object.freeze({x:a-o,y:0}),Object.freeze({x:a,y:o}),Object.freeze({x:a,y:i-o}),Object.freeze({x:a-o,y:i}),Object.freeze({x:o,y:i}),Object.freeze({x:0,y:i-o}),Object.freeze({x:0,y:o})])}function Wr(e){return Object.freeze({x:ce(e.x),y:ce(e.y)})}function Rb(e,n){if(e.length===0)return Object.freeze([]);let t=n.x+n.width,r=n.y+n.height,o=(i,l,s)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,tn);for(let u=0;u<c;u+=1){let f=Wr(i[u]),p=Wr(i[(u+1)%c]),g=l(f),y=l(p);if(g&&y?d.push(p):g&&!y?d.push(Wr(s(f,p))):!g&&y&&(d.push(Wr(s(f,p))),d.push(p)),d.length>=tn)break}return Object.freeze(d.slice(0,tn))},a=e.slice(0,tn).map(Wr);return a=[...o(a,i=>i.x>=n.x,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(n.x-i.x)/s:0;return Object.freeze({x:n.x,y:ce(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.x<=t,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(t-i.x)/s:0;return Object.freeze({x:t,y:ce(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.y>=n.y,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(n.y-i.y)/s:0;return Object.freeze({x:ce(i.x+d*(l.x-i.x)),y:n.y})})],a=[...o(a,i=>i.y<=r,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(r-i.y)/s:0;return Object.freeze({x:ce(i.x+d*(l.x-i.x)),y:r})})],Object.freeze(a)}function Pb(e){let n=Qu(e);return Object.freeze({x:n.x,y:n.y,width:n.width,height:n.height})}function Ua(e,n){let t=Ib(e.paintBounds,n),r=t.width>0&&t.height>0?t:Object.freeze({...t}),o=a=>{if(!a||a.length===0)return a;let i=Rb(a,n);return i.length>=3?Object.freeze(i.map(Wr)):Object.freeze([])};return Object.freeze({...e,paintBounds:t,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function Ib(e,n){let t=Math.max(e.x,n.x),r=Math.max(e.y,n.y),o=Math.min(e.x+e.width,n.x+n.width),a=Math.min(e.y+e.height,n.y+n.height);return o<=t||a<=r?Object.freeze({x:t,y:r,width:0,height:0}):Object.freeze({x:t,y:r,width:o-t,height:a-r})}function Tb(e){let n=Math.max(0,ce(e.extentWidth)),t=Math.max(0,ce(e.extentHeight)),r=ce(e.anchorX),o=ce(e.anchorY),a=hb(e.crop),i=yb(e.effectExtentEmu),l=Ya(e.transform,n,t),s=Object.freeze({x:r,y:o,width:n,height:t}),d={sourceWidth:l.width,sourceHeight:l.height,offsetX:l.offsetX,offsetY:l.offsetY,crop:a,transform:e.transform,layoutWidth:n,layoutHeight:t,anchorX:r,anchorY:o},c=Is(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=Ka({points:_o(0,0,l.width,l.height),...d,crop:u,mapping:c}),p=wb(e.presetGeometry,l.width,l.height),g="none",y=p;y||(g=e.presetGeometry?"unsupported-preset":"none",y=_o(0,0,l.width,l.height));let h=Ka({points:y,...d,crop:u,mapping:c}),b=Pb(h.length>=3?h:f),x=Hr(b,i);return Object.freeze({contentBounds:s,paintBounds:x,hitBounds:x,transformedCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:g,effectInsets:i})}function Gr(e){let n=e.projection.picture,t=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return Tb({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:n?.crop??{left:0,top:0,right:0,bottom:0},transform:n?.transform??t,presetGeometry:n?.presetGeometry??null})}function vb(e){let{transform:n,contentWidth:t,contentHeight:r}=e;if(t<=0||r<=0)return null;let o=Ya(n,t,r),a=o.width,i=o.height,l=Is({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:n,layoutWidth:t,layoutHeight:r,anchorX:0,anchorY:0}),s=ce(n.rotationDegrees),d=Math.abs(s%360)>1e-4,c=n.flipHorizontal?-1:1,u=n.flipVertical?-1:1,f=l.scaleX,p=l.scaleY,g=a>0?a/t:1,y=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(p-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(g-1)<1e-4&&Math.abs(y-1)<1e-4)return null;let b=s*Math.PI/180,x=Math.cos(b),v=Math.sin(b),w=o.offsetX+a/2,z=o.offsetY+i/2,L=f*x*c,M=-f*v*u,F=p*v*c,T=p*x*u,B=f*(w-x*c*(a/2)+v*u*(i/2)-l.bboxX),m=p*(z-v*c*(a/2)-x*u*(i/2)-l.bboxY);return Object.freeze({a:ce(L*g),b:ce(F*g),c:ce(M*y),d:ce(T*y),e:ce(B),f:ce(m)})}function DR(e){let n=vb(e);if(n)return `matrix(${jr(n.a)}, ${jr(n.b)}, ${jr(n.c)}, ${jr(n.d)}, ${jr(n.e)}, ${jr(n.f)})`}function jr(e){return Number.isFinite(e)?String(e):"0"}var Bb=Object.freeze({"http://schemas.openxmlformats.org/drawingml/2006/chart":"chart","http://schemas.openxmlformats.org/drawingml/2006/diagram":"diagram","http://schemas.microsoft.com/office/word/2010/wordprocessingGroup":"group","http://schemas.microsoft.com/office/word/2010/wordprocessingShape":"textbox","http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas":"canvas"}),Ob=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),Cb=Object.freeze({left:0,top:0,right:0,bottom:0});function tf(e){let n=e.picture,t=null;if(!n){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";t=Bb[o]??"graphic";break}t===null&&(t="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:n?.crop??Cb,transform:n?.transform??Ob,placeholderGraphicKind:n?null:t,vectorShape:e.vectorShape})}var Zn=12700;function Je(e){return e/Zn}function Et(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*Zn*72)return null;let n=e/Zn;return Number.isFinite(n)?n:null}function gt(e){let n=Je(e.inlineDistancesEmu.left),t=Je(e.inlineDistancesEmu.right),r=Je(e.inlineDistancesEmu.top),o=Je(e.inlineDistancesEmu.bottom),a=Je(e.effectExtentEmu.left),i=Je(e.effectExtentEmu.right),l=Je(e.effectExtentEmu.top),s=Je(e.effectExtentEmu.bottom),d=Je(e.extentEmu.cx),c=Je(e.extentEmu.cy);return Object.freeze({distL:n,distR:t,distT:r,distB:o,effectL:a,effectR:i,effectT:l,effectB:s,width:d,height:c,totalWidth:n+a+d+i+t,lineContribution:r+l+c+s+o})}function rf(e,n,t){let r=Math.max(t.distT+t.effectT,e-t.height),o=Math.max(n,r-t.effectT+t.height+t.effectB+t.distB),a=r+t.height+t.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function Za(e,n,t){if(Math.abs(n)<1e-4&&Math.abs(t)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+n,y:a.y+t}),o=a=>Object.freeze({x:a.x+n,y:a.y+t});return Object.freeze({...e,contentBounds:r(e.contentBounds),paintBounds:r(e.paintBounds),hitBounds:r(e.hitBounds),transformedCorners:Object.freeze(e.transformedCorners.map(o)),clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function qa(e,n,t){return Math.abs(n)<1e-4&&Math.abs(t)<1e-4?e:Object.freeze({...e,x:e.x+n,y:e.y+t,advanceStart:e.advanceStart+n,advanceEnd:e.advanceEnd+n,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+n,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+n,y:e.hitBounds.y+t}),geometry:Za(e.geometry,n,t)})}function Ts(e,n){return e.length===0?e:e.map(t=>{let r=t.geometry.effectInsets.bottom,o=n-t.height-r,a=o-t.y;return Math.abs(a)<1e-4&&t.baselineOffset===n?t:Object.freeze({...t,y:o,baselineOffset:n,geometry:Za(t.geometry,0,a),paintBounds:Object.freeze({...t.paintBounds,y:t.paintBounds.y+a}),hitBounds:Object.freeze({...t.hitBounds,y:t.hitBounds.y+a})})})}function vs(e,n){let t=Math.max(e.x,n.x),r=Math.max(e.y,n.y),o=Math.min(e.x+e.width,n.x+n.width),a=Math.min(e.y+e.height,n.y+n.height);return o<=t||a<=r?Object.freeze({x:t,y:r,width:0,height:0}):Object.freeze({x:t,y:r,width:o-t,height:a-r})}function Ja(e,n){let t=vs(e.paintBounds,n),r=t.width>0&&t.height>0?t:Object.freeze({...t}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=Za(e.geometry,o,a);return Object.freeze({...e,paintBounds:t,hitBounds:r,geometry:Ua(i,n)})}var ef=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),nf=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function qn(e){return e%2===1}function of(e,n){return !(!n.layoutInCell||n.cellBox===null||!Number.isFinite(n.cellBox.height)||n.cellBox.height<=0||!Number.isFinite(n.cellBox.width)||n.cellBox.width<=0)}function af(e,n){if(of(e,n)){let s=n.cellBox;if(!s)return null;let{x:d,width:c}=s;switch(e){case "page":case "column":case "margin":case "leftMargin":return {left:d,right:d+c,center:d+c/2};case "rightMargin":return {left:d,right:d+c,center:d+c/2};case "character":return {left:n.anchorCharacterX,right:n.anchorCharacterX,center:n.anchorCharacterX};case "insideMargin":return qn(n.pageNumber)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return qn(n.pageNumber)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let t=-n.marginLeft,r=n.contentWidth+n.marginRight,o=0,a=n.contentWidth,i=n.columnBox.x,l=n.columnBox.x+n.columnBox.width;switch(e){case "page":return {left:t,right:r,center:(t+r)/2};case "margin":return {left:o,right:a,center:o+n.contentWidth/2};case "column":return {left:i,right:l,center:i+n.columnBox.width/2};case "character":return {left:n.anchorCharacterX,right:n.anchorCharacterX,center:n.anchorCharacterX};case "leftMargin":return {left:t,right:t,center:t};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return qn(n.pageNumber)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return qn(n.pageNumber)?{left:r,right:r,center:r}:{left:t,right:t,center:t};default:return null}}function lf(e,n){if(of(e,n)){let s=n.cellBox;if(!s)return null;let{y:d,height:c}=s;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:d,bottom:d+c,center:d+c/2};case "paragraph":return {top:n.paragraphBox.y,bottom:n.paragraphBox.y+n.paragraphBox.height,center:n.paragraphBox.y+n.paragraphBox.height/2};case "line":return {top:n.anchorLineBox.y,bottom:n.anchorLineBox.y+n.anchorLineBox.height,center:n.anchorLineBox.y+n.anchorLineBox.height/2};case "insideMargin":return qn(n.pageNumber)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return qn(n.pageNumber)?{top:d+c,bottom:d+c,center:d+c}:{top:d,bottom:d+c,center:d+c/2};default:return null}}let t=-n.marginTop,r=n.physicalContentHeight??n.contentHeight,o=r,a=r+n.marginBottom,i=0,l=n.contentHeight;switch(e){case "page":return {top:t,bottom:a,center:(t+a)/2};case "margin":return {top:i,bottom:l,center:i+n.contentHeight/2};case "paragraph":return {top:n.paragraphBox.y,bottom:n.paragraphBox.y+n.paragraphBox.height,center:n.paragraphBox.y+n.paragraphBox.height/2};case "line":return {top:n.anchorLineBox.y,bottom:n.anchorLineBox.y+n.anchorLineBox.height,center:n.anchorLineBox.y+n.anchorLineBox.height/2};case "topMargin":return {top:t,bottom:t,center:t};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return qn(n.pageNumber)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return qn(n.pageNumber)?{top:a,bottom:a,center:a}:{top:t,bottom:t,center:t};default:return null}}function sf(e){return e===null?0:Et(e)}function kb(e,n,t){let r=qn(t.pageNumber);if(t.layoutInCell&&t.cellBox&&Number.isFinite(t.cellBox.width)&&t.cellBox.width>0){let{x:o,width:a}=t.cellBox;return e==="inside"?r?o:o+a-n:e==="outside"?r?o+a-n:o:null}return e==="inside"?r?0:t.contentWidth-n:e==="outside"?r?t.contentWidth-n:0:null}function Lb(e,n,t){let r=qn(t.pageNumber),o=t.physicalContentHeight??t.contentHeight;if(t.layoutInCell&&t.cellBox&&Number.isFinite(t.cellBox.height)&&t.cellBox.height>0){let{y:a,height:i}=t.cellBox;return e==="inside"?r?a:a+i-n:e==="outside"?r?a+i-n:a:null}return e==="inside"?r?0:o-n:e==="outside"?r?o-n:0:null}function Eb(e,n,t,r,o){let a=af(e,o);if(!a)return null;let i=sf(t);if(i===null)return null;if(n==="left")return a.left+i;if(n==="center")return a.center-r/2+i;if(n==="right")return a.right-r+i;if(n==="inside"||n==="outside"){let l=kb(n,r,o);if(l!==null)return l+i}return a.left+i}function Mb(e,n,t,r,o){let a=lf(e,o);if(!a)return null;let i=sf(t);if(i===null)return null;if(n==="top")return a.top+i;if(n==="center")return a.center-r/2+i;if(n==="bottom")return a.bottom-r+i;if(n==="inside"||n==="outside"){let l=Lb(n,r,o);if(l!==null)return l+i}return a.top+i}function zo(e){let n=e.physicalContentHeight??e.contentHeight;return Object.freeze({x:-e.marginLeft,y:-e.marginTop,width:e.pageWidth,height:n+e.marginTop+e.marginBottom})}function Bs(e,n){let t=gt(e),r=e.position,o=e.anchor,a="page",i="page";if(!r||!o)return Object.freeze({x:0,y:0,horizontalFrame:a,verticalFrame:i,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"});if(o.simplePos){let y=Et(r.simplePosition.xEmu),h=Et(r.simplePosition.yEmu);return Object.freeze(y===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:y-n.marginLeft,y:h-n.marginTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let l=r.horizontal.relativeFrom,s=r.vertical.relativeFrom,d=af(l,n),c=lf(s,n),u=d?.left??0,f=c?.top??0;if(!ef.has(l)||!nf.has(s))return Object.freeze({x:0,y:0,horizontalFrame:ef.has(l)?l:a,verticalFrame:nf.has(s)?s:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=Eb(l,r.horizontal.align,r.horizontal.offsetEmu,t.width,n),g=Mb(s,r.vertical.align,r.vertical.offsetEmu,t.height,n);return Object.freeze(p===null||g===null?{x:0,y:0,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:g,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function Nb(e){let n=e.input.projection,t=n.anchor,r=gt(n),o=Gr({projection:n,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?vs(o.paintBounds,e.clipRegion):o.paintBounds,i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"anchoredDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.anchorParagraphId,anchorParagraphId:e.anchorParagraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:e.resolved.x,y:e.resolved.y,width:r.width,height:r.height,horizontalFrame:e.resolved.horizontalFrame,verticalFrame:e.resolved.verticalFrame,horizontalFrameOrigin:e.resolved.horizontalFrameOrigin,verticalFrameOrigin:e.resolved.verticalFrameOrigin,behindDocument:t?.behindDocument??false,allowOverlap:t?.allowOverlap??true,layoutInCell:t?.layoutInCell??true,relativeHeight:t?.relativeHeight??0,wrap:n.wrap==="inline"?"inFront":n.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?Ua(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkEQO762XH_cjs.ab(n),...tf(n)})}function In(e,n){if(e.kind!=="paragraph")return [];let t=[],r=o=>{if(o.kind==="drawing"){let a=n.projectionForAtom?.(o.id)??n.project(o);a?.kind==="anchored"&&t.push({atomId:o.id,projection:a});return}if(chunkEQO762XH_cjs.$a(o)){let a=n.projectionForAtom?.(o.id)??null;a?.kind==="anchored"&&t.push({atomId:o.id,projection:a});return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children)r(o);return Object.freeze(t)}function Nn(e){let n=new Map;if(e.kind!=="paragraph")return n;let t=0,r=o=>{if(o.kind==="drawing"||chunkEQO762XH_cjs.$a(o)){n.set(o.id,t),t+=1;return}if(o.kind==="textValue"){t+=o.value.length;return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children){if(o.kind==="run"){for(let a of o.children)r(a);continue}if(o.kind==="hyperlink"){for(let a of o.children)if(a.kind==="run")for(let i of a.children)r(i);}}return n}function Fb(e,n,t){for(let o of e.spans){if(n<o.range.start)break;if(n<o.range.end){if(t&&o.text!==void 0&&o.style!==void 0){let l=n-o.range.start;return o.box.x+Kn(o.text.slice(0,l),o.style,t)}let a=o.range.end-o.range.start;if(a<=0)return o.box.x;let i=n-o.range.start;return o.box.x+o.box.width*i/a}if(n===o.range.end)return t&&o.text!==void 0&&o.style!==void 0?o.box.x+Kn(o.text,o.style,t):o.box.x+o.box.width}let r;for(let o of e.spans)o.range.end<=n&&(r=o);return r?t&&r.text!==void 0&&r.style!==void 0?r.box.x+Kn(r.text,r.style,t):r.box.x+r.box.width:e.box.x}function Ab(e,n){let t=e.range.start;for(let r of e.spans)r.range.end<=n&&(t=r.range.end);return t}function Os(e,n,t){if(!(Math.abs(t)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===n&&(e[r]=Object.freeze({...o,y:o.y+t,geometry:Za(o.geometry,0,t),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+t}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+t})}));}}function $r(e){let n=In(e.paragraph,e.drawingLayout);if(n.length===0)return [];let t=Nn(e.paragraph),r=[];for(let o of n){let a=o.projection;if(a.hidden)continue;let i=t.get(o.atomId);if(i===void 0||e.fragmentRange&&(i<e.fragmentRange.start||i>=e.fragmentRange.end))continue;let l=e.lines.find(h=>i>=h.range.start&&i<h.range.end);if(!l)continue;let s=a.anchor?.layoutInCell??true,c=a.position?.horizontal.relativeFrom==="character"?Ab(l,i):i,u=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:l.box,anchorCharacterX:Fb(l,c,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:s}),f=Bs(a,u),g=s&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0?e.cellBox:zo(e.frameBase),y=Nb({input:Object.freeze({drawingNodeId:o.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:a,resource:e.drawingLayout.resourceOf(a)}),anchorParagraphId:e.paragraphId,start:c,resolved:f,clipRegion:g,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(o.atomId)}:{},...a.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(a)}:{}});r.push(y);}return Object.freeze(r)}function df(e){let n=gt(e.input.projection),t=e.slotX+n.distL+n.effectL,r=Gr({projection:e.input.projection,anchorX:t,anchorY:e.y,extentWidth:n.width,extentHeight:n.height}),o=e.contentTop!==void 0&&e.contentBottom!==void 0?Object.freeze({x:e.contentLeft,y:e.contentTop,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,e.contentBottom-e.contentTop)}):Object.freeze({x:e.contentLeft,y:r.paintBounds.y,width:Math.max(0,e.contentRight-e.contentLeft),height:r.paintBounds.height}),a=vs(r.paintBounds,o),i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"inlineDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.paragraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:t,y:e.y,width:n.width,height:n.height,distL:n.distL,distR:n.distR,distT:n.distT,distB:n.distB,advanceStart:e.slotX,advanceEnd:e.slotX+n.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:Ua(r,o),resource:e.input.resource,accessibility:chunkEQO762XH_cjs.ab(e.input.projection),...tf(e.input.projection)})}var Db=256,Ls=8,tr=8,Xr=class extends Error{name="DrawingExclusionConvergenceError";constructor(n="drawing exclusion reflow did not converge"){super(n);}};function _b(e,n){let t=Math.max(1,n.columnCount);if(t<=1)return 0;let r=e.x+e.width/2;if(n.columnLefts&&n.columnWidths&&n.columnLefts.length===t){for(let i=0;i<t;i+=1){let l=n.columnLefts[i],s=l+n.columnWidths[i];if(r>=l-.001&&r<s+.001)return i}return t-1}let o=n.columnGapPt,a=(n.contentWidth-o*(t-1))/t;for(let i=0;i<t;i+=1){let l=i*(a+o),s=l+a;if(r>=l-.001&&r<s+.001)return i}return t-1}function ks(e){return e.behindDocument?"behind":"inFront"}function cf(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function zb(e){switch(e){case "inline":case "behind":case "inFront":return null;case "square":case "squareLeft":case "squareRight":return "square";case "tight":return "tight";case "through":return "through";case "topAndBottom":return "topAndBottom";default:return null}}function Hb(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function Es(e){let n=zb(e.projection.wrap);if(!n||!e.projection.wrapGeometry)return null;let t=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return Uu({mode:n,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:t.distancesEmu,polygonEmu:t.polygon,crop:e.projection.picture?.crop??{},transform:e.projection.picture?.transform??{rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:{x:0,y:0},extentEmu:{cx:0,cy:0}},extentWidthPt:e.geometry.contentBounds.width,extentHeightPt:e.geometry.contentBounds.height,textSide:n==="square"?Hb(e.projection.wrap):t.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function Ms(e){if(e.mode==="topAndBottom"||e.mode==="square")return Rs(e.contentBounds,e.effectInsets,e.wrapDistances);let n=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)n.push(o.y);let t=Math.min(...n)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...n)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:t,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-t)})}function jb(e){if(e.drawing.behindDocument||!cf(e.drawing.wrap))return null;let n=e.yOverride??e.drawing.y,t=Es({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:n});return t?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,sourceOrder:e.sourceOrder,paintLayer:ks(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:n,verticalBand:Ms(t),input:t}):null}function uf(e,n){let t=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=n.sourceOrder??Number.MAX_SAFE_INTEGER;return t!==r?t-r:e.drawingNodeId.localeCompare(n.drawingNodeId)}function Wb(e,n){let t=ks(e),r=ks(n);return t!==r?t==="behind"?-1:1:e.relativeHeight!==n.relativeHeight?e.relativeHeight-n.relativeHeight:uf(e,n)}function ff(e){return Object.freeze([...e].sort(Wb))}function Cs(e,n){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function Ns(e,n){if(Math.abs(n)<=1e-4)return e;let t=e.geometry;return Object.freeze({...e,y:e.y+n,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+n}),geometry:Object.freeze({...t,contentBounds:Object.freeze({...t.contentBounds,y:t.contentBounds.y+n}),paintBounds:Object.freeze({...t.paintBounds,y:t.paintBounds.y+n}),hitBounds:Object.freeze({...t.hitBounds,y:t.hitBounds.y+n}),transformedCorners:t.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+n})),clipPolygon:t.clipPolygon?t.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+n})):null})})}function pf(e,n){let t=n.maxAttempts??Db,r=[...e].sort(uf),o=[],a=[],i=[];for(let l of r){if(l.allowOverlap){o.push(l);continue}let s=l,d=0;for(;d<t&&o.some(y=>Cs(y.paintBounds,s.paintBounds));){let p=o.find(y=>Cs(y.paintBounds,s.paintBounds)),g=p.paintBounds.y+p.paintBounds.height-s.paintBounds.y+.001;s=Ns(s,g),d+=1;}let c=o.some(f=>Cs(f.paintBounds,s.paintBounds)),u=s.paintBounds.y+s.paintBounds.height>n.pageBottom+.001;if(c||u){a.push(s),i.push(s.drawingNodeId);continue}o.push(s);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}function Vr(e,n,t,r){let o=[{start:t,end:r}];for(let a of n){let i=a.verticalBand;if(e<i.y||e>=i.y+i.height)continue;let l=Ku(e,a.input),s=[];for(let d of o)for(let c of l){let u=Math.max(d.start,c.start),f=Math.min(d.end,c.end);f>u+1e-6&&s.push(Object.freeze({start:u,end:f}));}if(o=s,o.length===0)break}return Object.freeze(o)}function gf(e,n){for(let t of n)if(e>=t.start-1e-6&&e<t.end-1e-6)return Math.max(0,t.end-e);return 0}function Gb(e,n){for(let t of n)if(t.end>e+1e-6)return t;return null}function Fs(e,n){let t=Gb(e,n);if(!t)return null;let r=Math.max(e,t.start),o=t.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function $b(e,n,t){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+n,y:r.y+t}),contentLeft:e.contentLeft+n,contentRight:e.contentRight+n,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+n,y:o.y+t}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+n,y:o.y+t}))}:{}})}function As(e,n){return Object.freeze({...e,layoutFallback:n})}function mf(e,n,t,r){return e.length===0?e:Object.freeze(e.map(o=>{let a=o.verticalBand,i=o.input;return Object.freeze({...o,y:o.y-t,verticalBand:Object.freeze({...a,x:a.x-n,y:a.y-t}),input:Object.freeze({...$b(i,-n,-t),contentLeft:r?.left,contentRight:r?.right??i.contentRight-n})})}))}function hf(e,n,t){return Object.freeze(e.filter(r=>{let o=t(r.anchorParagraphId);return o===void 0?r.sourceOrder<=n:o<=n}))}function yf(e){let n=In(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Nn(e.paragraph),r=Math.max(1,e.contentRight-e.contentLeft),o=[];for(let a of n){if(a.projection.anchor?.behindDocument||!cf(a.projection.wrap)||a.projection.wrap==="topAndBottom")continue;let i=t.get(a.atomId);if(i===void 0)continue;let l=e.anchorLineTopByModelStart.get(i);if(l===void 0)continue;let s=Object.freeze({x:e.contentLeft,y:l,width:r,height:14}),d=e.anchorCellBox!=null,c=Bs(a.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+r,marginLeft:e.contentLeft,marginRight:0,marginTop:0,marginBottom:0,contentWidth:r,contentHeight:648,physicalContentHeight:648,paragraphBox:s,anchorLineBox:s,anchorCharacterX:e.contentLeft,columnBox:s,cellBox:d?e.anchorCellBox:null,layoutInCell:d,ownerPartName:e.drawingLayout.ownerPartName}),u=e.paragraphStartY+l,f=gt(a.projection),p=Gr({projection:a.projection,anchorX:c.x,anchorY:u,extentWidth:f.width,extentHeight:f.height}),g=Es({projection:a.projection,geometry:p,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:c.x,anchorY:u});g&&o.push(Object.freeze({drawingNodeId:a.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:i,sourceOrder:e.sourceOrderOf?.(a.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:a.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:a.projection.anchor?.relativeHeight??0,allowOverlap:a.projection.anchor?.allowOverlap??true,columnIndex:0,y:u,verticalBand:Ms(g),input:g}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function Qa(e){let n=In(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Nn(e.paragraph),r=[];for(let o of n){if(o.projection.anchor?.behindDocument||o.projection.wrap!=="topAndBottom")continue;let a=t.get(o.atomId);if(a===void 0)continue;let i=e.anchorLineTopByModelStart.get(a);if(i===void 0)continue;let l=e.paragraphStartY+i,s=gt(o.projection),d=Gr({projection:o.projection,anchorX:e.contentLeft,anchorY:l,extentWidth:s.width,extentHeight:s.height}),c=Es({projection:o.projection,geometry:d,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:l});c&&r.push(Object.freeze({drawingNodeId:o.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:a,sourceOrder:e.sourceOrderOf?.(o.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:o.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:o.projection.anchor?.relativeHeight??0,allowOverlap:o.projection.anchor?.allowOverlap??true,columnIndex:e.columnIndex??0,y:l,verticalBand:Ms(c),input:c}));}return r.sort((o,a)=>o.sourceOrder-a.sourceOrder),Object.freeze(r)}var Xb=8;function Vb(e,n,t,r){return e<r&&n>t}function mt(e,n,t){if(n<=0||t.length===0)return 0;let r=0;for(let o=0;o<Xb;o+=1){let a=e+r,i=a+n,l=a,s=false;for(let c of t){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,f=u+c.verticalBand.height;Vb(a,i,u,f)&&(s=true,l=Math.max(l,f));}if(!s)break;let d=l-e;if(d<=r+.001)break;r=d;}return r}function Yb(e){return e.map(n=>`${n.start.toFixed(3)}-${n.end.toFixed(3)}`).join(",")}function Kb(e){let n=e.contentBounds,t=e.wrapDistances,r=e.effectInsets,o=e.polygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"",a=e.clipPolygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"";return [e.mode,e.textSide,n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),t.top.toFixed(3),t.right.toFixed(3),t.bottom.toFixed(3),t.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function Jn(e){return e.length===0?"":e.map(n=>{let t=n.verticalBand,r=n.y+n.input.contentBounds.height/2,o=Vr(r,[n],n.input.contentLeft,n.input.contentRight);return [n.drawingNodeId,String(n.sourceOrder),String(n.columnIndex),n.y.toFixed(3),t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),Kb(n.input),Yb(o)].join("|")}).join(`
2
+ `)}function Ds(e,n,t,r,o,a){let i=[];for(let l of e){let s=n.projectionForAtom?.(l.drawingNodeId);if(!s)continue;let d=l.sourceOrder??o?.(l.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?_b(l,a):0,u=jb({drawing:l,projection:s,sourceOrder:d,contentLeft:t,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((l,s)=>l.sourceOrder-s.sourceOrder),Object.freeze(i)}function Ho(e,n,t,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:t}),i=new Map;for(let l of e){let s=l.anchoredDrawings??[],d=Ds(s,n,0,t,r,a);d.length>0&&i.set(l.index,d);}return i}function ei(e,n){if(e.size!==n.size)return false;for(let[t,r]of e){let o=n.get(t);if(!o||Jn(r)!==Jn(o))return false}return true}function ni(e){return e.size===0?"":[...e.entries()].sort(([n],[t])=>n-t).map(([n,t])=>`${n}:${Jn(t)}`).join(`
3
+ `)}var Ub=.001;function mn(e){return Ao(e)}var ri=new Set(["-","\u2010","\u2013","\u2014"]);function bf(e){let n=[];for(let t=0;t<e.length;t+=1){let r=e[t];r===" "?(t>0&&n[n.length-1]!==t&&n.push(t),n.push(t+1)):(r===" "||ri.has(r)&&t>0&&e[t-1]!==" "&&t+1<e.length&&e[t+1]!==" "&&!ri.has(e[t+1]))&&n.push(t+1);}return n[n.length-1]!==e.length&&n.push(e.length),n}function Zb(e,n,t){for(let r=n;r<e.length;r+=1){let o=e[r];if(o.inlineDrawing)return true;let a=r===n?t:0;for(let i=a;i<o.text.length;i+=1){let l=o.text[i];if(l===`
4
+ `||l===chunkEQO762XH_cjs.Wb)return false;if(l!==" "&&l!==" ")return true}}return false}function qb(e,n,t,r){let o=0,a=0,i=false;for(let l=n;l<e.length;l+=1){let s=e[l],d=l===n?t:0;for(let c=d;c<s.text.length;){let u=s.text[c];if(u===" "||u===`
5
+ `||u===chunkEQO762XH_cjs.Wb)return {width:o,decimalOffset:i?a:o};let f=c+1,p=s.text.slice(c,f),g=r.measure(Lt(p,s.style),s.style);!i&&u==="."?i=true:i||(a+=g),o+=g,c=f;}}return {width:o,decimalOffset:i?a:o}}function Jb(e,n,t,r){let o=e.relativeTo==="indent"||!r?{left:n,right:t}:r;return {positionPt:e.alignment==="right"?o.right:e.alignment==="center"?(o.left+o.right)/2:o.left,alignment:e.alignment,...e.leader?{leader:e.leader}:{}}}function xf(e,n,t,r=0){return (t.length>0?mt(e,n.height,t):n.exclusionSkipBefore??0)+Math.max(0,n.height-n.trailingSpacing)+r}function Qb(e){return Object.freeze({spans:e.spans.map(n=>Object.freeze({...n,box:Object.freeze({...n.box})})),drawings:e.drawings.map(n=>Object.freeze({...n,paintBounds:Object.freeze({...n.paintBounds}),hitBounds:Object.freeze({...n.hitBounds})})),start:e.start,end:e.end,width:e.width,height:e.height,baseline:e.baseline,leading:e.leading,trailingSpacing:e.trailingSpacing,...e.pageBreakAfter?{pageBreakAfter:true}:{},...e.columnBreakAfter?{columnBreakAfter:true}:{},...e.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{}})}var ti=31680;function jo(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let n=Number(e);return Number.isFinite(n)?n>ti?ti:n<-ti?-ti:n:null}function Wo(e){let n=0,t=0;for(let r of e){if(r.localName!=="ind")continue;let o=r.attributes?.left??r.attributes?.start,a=r.attributes?.right??r.attributes?.end,i=jo(o),l=jo(a);i!==null&&(n=i/20),l!==null&&(t=l/20);}return {left:n,right:t}}function Sf(e){let n="left";for(let t of e)if(t.localName==="jc")switch(t.attributes?.val){case "center":n="center";break;case "right":case "end":n="right";break;case "both":case "distribute":n="both";break;default:n="left";}return n}function ex(e){return e.endsWith(" ")}function nx(e,n){let t=e.range.end-e.range.start;if(t<=0||e.text===" "||e.projected||e.text.length!==t)return Object.freeze([0,e.box.width]);let r=[0];for(let o=1;o<=e.text.length;o+=1)r.push(Kn(e.text.slice(0,o),e.style,n));return Object.freeze(r)}function Yr(e,n){return e.map(t=>t.caretEdges?t:{...t,caretEdges:nx(t,n)})}function oi(e,n,t,r,o,a,i){if(e.length===0)return e;if(o==="left")return Yr(e,n);let l=e[e.length-1],s=l.text.replace(/\s+$/,""),d=s===l.text?0:l.box.width-Kn(s,l.style,n),c=i??l.box.x-t+l.box.width-d,u=r-c;if(u<=0)return Yr(e,n);if(o==="both"){if(a)return Yr(e,n);let p=[];for(let b=1;b<e.length;b+=1)ex(e[b-1].text)&&p.push(b);if(p.length===0)return Yr(e,n);let g=u/p.length,y=new Set(p),h=0;return Yr(e.map((b,x)=>(y.has(x)&&(h+=g),h===0?b:{...b,box:{...b.box,x:b.box.x+h}})),n)}let f=o==="center"?u/2:u;return Yr(e.map(p=>({...p,box:{...p.box,x:p.box.x+f}})),n)}function ai(e,n){return n===0||e.length===0?e:e.map(t=>qa(t,n,0))}function ii(e,n,t,r,o,a,i,l=[],s=Mr,d,c,u){let f=i!==null&&a?a.get(i):void 0;if(f)return f;let p=u?.lineSpacing??Lr,g=u?.firstLineOffset??0,y=[],h=_u(e,l,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??ft,y,u?.inlineDrawingLayout,u?.themeFonts),b=Math.max(0,u?.startOffset??0),x=h.flatMap(k=>{if(k.end<=b)return [];if(k.start>=b)return [k];let R=b-k.start;return [{...k,text:k.projected?k.text:k.text.slice(R),start:b}]});if(x.length===0&&u?.suppressEmptyPlaceholderLine)return [];let v=k=>({...k.revisions===void 0?{}:{revisions:k.revisions},...k.fieldAtom===void 0?{}:{fieldAtom:k.fieldAtom}}),w=u?.markRunProperties??l,z=w.length===0?Yn:dn(w,u?.themeFonts),L=t+r,M=u?.contentLeft??t,F=u?.contentRight??L,T=u?.contentOriginX??0,B=[],m={spans:[],start:b,end:b,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},D=false,W=new Map,V=(()=>{let k=new Set;if(!u?.inlineDrawingLayout)return k;let R=Nn(e);for(let $ of In(e,u.inlineDrawingLayout)){if($.projection.wrap!=="topAndBottom")continue;let J=R.get($.atomId);J!==void 0&&k.add(J);}return k})(),S=(()=>{let k=new Set;if(!u?.inlineDrawingLayout)return k;let R=Nn(e);for(let $ of In(e,u.inlineDrawingLayout)){if($.projection.anchor?.behindDocument||$.projection.wrap==="topAndBottom"||$.projection.wrap==="inline"||$.projection.wrap==="behind"||$.projection.wrap==="inFront")continue;let J=R.get($.atomId);J!==void 0&&k.add(J);}return k})(),I=[...(u?.pageExclusionZones??[]).filter(k=>k.anchorParagraphId===n).map(k=>k.anchorModelStart),...V,...S],O=(()=>{let k=new Map;if(I.length===0)return k;let R=0,$=0,J=0,ie=()=>J===0?g:0,fe=()=>Math.max(1,r-ie()),ve=be=>{R=be,$=0,J+=1;};for(let be of x){if(be.inlineDrawing){let ze=gt(be.inlineDrawing.projection).totalWidth;$>0&&$+ze>fe()&&ve(be.start),I.includes(be.start)&&k.set(be.start,R),$+=ze;continue}if(be.text===`
6
+ `||be.text===chunkEQO762XH_cjs.Wb){ve(be.end);continue}let Ze=0;for(let ze of bf(be.text)){let Qe=be.text.slice(Ze,ze);if(Qe.length===0)continue;let en=be.style,Re=o.measure(Qe,en),Bn=be.start+Ze;$>0&&$+Re>fe()&&ve(Bn),I.includes(Bn)&&k.set(Bn,R),I.includes(be.start)&&k.set(be.start,R),$+=Re,Ze=ze;}}for(let be of I)k.has(be)||k.set(be,R);return k})();for(let k of S){let R=O.get(k);R!==void 0&&W.set(k,R);}let N=k=>{if(k.anchorParagraphId!==n)return true;let R=O.get(k.anchorModelStart);return R!==void 0&&m.start>=R||m.end>=k.anchorModelStart},C=()=>{let k=u?.pageExclusionZones?.filter(J=>!(!N(J)||J.anchorParagraphId===n&&(J.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],R=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&W.size>0?yf({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:M,contentRight:F,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:W,anchorCellBox:u.anchorCellBox}):Object.freeze([]),$=u?.inlineDrawingLayout&&W.size>0?Qa({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:M,contentRight:F,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:W}):Object.freeze([]);return Object.freeze([...k,...R,...$])},_=()=>B.length===0?g:0,E=()=>T+t+_(),X=()=>Math.max(1,r-_()),H=()=>B.reduce((k,R)=>k+R.height+(R.exclusionSkipBefore??0),0),K=()=>(u?.paragraphStartY??0)+H(),G=k=>{V.has(k)&&W.set(k,H());},U=()=>{if(D)return;let k=C();if(k.length===0||m.spans.length>0||m.drawings.length>0)return;let R=o.lineMetrics(z),$=mt(K(),m.height>0?m.height:R.height,k);$>.001&&(D=true,m.exclusionSkipBefore=$);},se=()=>K()+(m.exclusionSkipBefore??0)+.001,xe=()=>{let k=C();if(k.length===0)return true;U();let R=Vr(se(),k,M,F),$=E()+m.width,J=Fs($,R);return J?(J.x>$+.001&&(m.width=J.x-E()),true):false},pe=()=>{let k=X(),R=C();if(R.length===0)return k;if(U(),!xe())return 0;let $=Vr(se(),R,M,F),J=E()+m.width,ie=gf(J,$);return ie<=.001?0:Math.min(k,m.width+ie)},Se=()=>Math.max(0,pe()-m.width),Oe=()=>{let k=C();if(k.length===0||!k.some(fe=>fe.anchorParagraphId!==n||m.end>fe.anchorModelStart))return false;let $=Vr(se(),k,M,F),J=E()+m.width,ie=false;for(let fe of $){if(!ie){J>=fe.start-1e-6&&J<fe.end-1e-6&&(ie=true);continue}if(fe.end-fe.start>.001)return m.width=fe.start-E(),true}return false},he=k=>{if(I.length===0||k<Math.min(...I))return;let R=C().filter(ve=>ve.anchorParagraphId===n&&k>=ve.anchorModelStart);if(R.length===0)return;U();let $=Vr(se(),R,M,F),J=E()+m.width,ie=-1;for(let ve=0;ve<$.length;ve+=1){let be=$[ve];if(J>=be.start-.001&&J<be.end-.001){ie=ve;break}}if(ie>=0)return;let fe=Fs(J,$);fe&&fe.x>J+.001&&(m.width=fe.x-E());},ue=k=>{C().filter($=>$.input.mode==="topAndBottom"&&$.anchorParagraphId===n&&k>=$.anchorModelStart).length!==0&&((m.spans.length>0||m.drawings.length>0)&&ee(),U());},ye=(k,R=0)=>R>64?Se()>=k:(U(),xe()?k<=Se()+.001?true:m.spans.length>0||m.drawings.length>0?Oe()&&k<=Se()+.001?true:(ee(),ye(k,R+1)):Oe()?ye(k,R+1):true:m.spans.length>0||m.drawings.length>0?(ee(),ye(k,R+1)):true),Me=(k,R)=>y.filter($=>$.start<R&&$.end>k).map($=>({start:Math.max($.start,k),end:Math.min($.end,R)})),Te=-1,an=0,rn=0,Ne="",Qn=(k,R)=>{let $=o.lineMetrics(k),J=rf($.baseline,m.height||$.height,R);return m.height===0?(m.height=J.lineHeight,m.baseline=J.baseline):(J.lineHeight>m.height&&(m.height=J.lineHeight),m.baseline=Math.max(m.baseline,J.baseline)),{extentTopY:J.extentTopY}},et=()=>{if(m.drawings.length===0)return;m.spans.length===0&&(m.baseline=Math.max(m.baseline,...m.drawings.map(R=>R.y+R.height)));let k=Ts(m.drawings,m.baseline);m.drawings.splice(0,m.drawings.length,...k),m.baseline=Math.max(m.baseline,...m.drawings.map(R=>R.y+R.height));},we=()=>{if(m.drawings.length===0)return;let k=Ts(m.drawings,m.baseline);m.drawings.splice(0,m.drawings.length,...k);},on=k=>{let R=0;for(let $ of m.spans)R=Math.max(R,o.lineMetrics($.style).height);return R>0?R:k},vn=()=>{if(m.drawings.length===0)return;let k=Math.max(0,...m.drawings.map(R=>R.y+R.height+R.distB));m.height=Math.max(m.height,k);},q=()=>{et(),vn();},_n=()=>{if(!(m.spans.length<2))for(let k=1;k<m.spans.length;k+=1){let R=m.spans[k-1],$=m.spans[k],J=$.box.x-(R.box.x+R.box.width);J<=.001||m.drawings.some(fe=>fe.start>=R.range.end&&fe.start<$.range.start)||(m.spans[k]={...$,wrapAdvanceBefore:J});}},ee=k=>{let R=o.lineMetrics(z),$=m.baseline;m.height===0?(m.height=R.height,m.baseline=R.baseline,$=R.baseline):k?.includeParagraphMark&&(m.height=Math.max(m.height,R.height)),q();let J=m.height,ie=p.rule==="auto"&&m.drawings.length>0,fe=ie?on(R.height):J,ve=Ql(p,fe,m.baseline);ie||(m.baseline=ve.baseline),m.leading=Math.max(0,m.baseline-$),m.height=ve.height,we(),p.rule!=="exact"&&vn(),m.trailingSpacing=m.drawings.length===0&&p.rule!=="exact"?Math.max(0,ve.height-J):0,(()=>{let ze=C();if(ze.length===0)return;let Qe=mt(K(),m.height,ze);Qe>.001?m.exclusionSkipBefore=Qe:delete m.exclusionSkipBefore;})(),_n();let Ze=Me(m.start,m.end);Ze.length>0&&(m.deletedRanges=Ze),B.push(m),Te=-1,an=0,D=false,m={spans:[],drawings:[],start:m.end,end:m.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},U();},re=false;for(let k=0;k<x.length;k+=1){let R=x[k];if(R.breakKind==="column"){let ie=o.lineMetrics(R.style);m.spans.push({range:{paragraphId:n,start:R.start,end:R.end},text:R.text,props:R.props,style:R.style,box:{x:E()+m.width,y:0,width:0,height:ie.height},...R.link?{link:R.link}:{},...v(R)}),m.height=Math.max(m.height,ie.height),m.baseline=Math.max(m.baseline,ie.baseline),m.end=R.end,ee(),B[B.length-1].columnBreakAfter=true,re=true;continue}if(R.projected&&!R.inlineDrawing&&R.text==="\uFFFC"){G(R.start),m.end=R.end;continue}if(R.inlineDrawing){G(R.start);let ie=gt(R.inlineDrawing.projection),fe=ie.totalWidth;if((m.spans.length>0||m.drawings.length>0)&&m.width+fe>pe()&&ee(),!ye(fe))continue;let{extentTopY:be}=Qn(R.style,ie),Ze=E()+m.width;m.drawings.push(df({input:R.inlineDrawing,paragraphId:n,start:R.start,slotX:Ze,y:be,baseline:m.baseline,contentLeft:M,contentRight:F})),m.width+=fe,m.end=R.end,Te=-1,Ne="";continue}if(R.text===chunkEQO762XH_cjs.Wb){let ie=o.lineMetrics(R.style);m.spans.push({range:{paragraphId:n,start:R.start,end:R.end},text:chunkEQO762XH_cjs.Wb,props:R.props,style:R.style,box:{x:E()+m.width,y:0,width:0,height:ie.height},...R.link?{link:R.link}:{},...v(R)}),m.height=Math.max(m.height,ie.height),m.baseline=Math.max(m.baseline,ie.baseline),m.end=R.end,ee(),B[B.length-1].pageBreakAfter=true,re=false;continue}if(R.text===`
7
+ `){let ie=o.lineMetrics(R.style);m.spans.push({range:{paragraphId:n,start:R.start,end:R.end},text:`
8
+ `,props:R.props,style:R.style,box:{x:E()+m.width,y:0,width:0,height:ie.height},...R.link?{link:R.link}:{},...v(R)}),m.height=Math.max(m.height,ie.height),m.baseline=Math.max(m.baseline,ie.baseline),m.end=R.end,ee(),re=true;continue}re=false,ue(R.start),I.length>0&&R.start>=Math.min(...I)&&he(R.start);let $=o.lineMetrics(R.style),J=0;for(let ie of bf(R.text)){let fe=R.text.slice(J,ie);if(fe.length===0)continue;let ve=!!R.projected||!!R.positionalTab||R.end-R.start!==R.text.length,be=ve?{paragraphId:n,start:R.start,end:R.end}:{paragraphId:n,start:R.start+J,end:R.start+ie};if(fe===" "){(m.spans.length>0||m.drawings.length>0)&&m.width>=pe()&&Zb(x,k,ie)&&ee();let ln=E()+m.width,Ye=qb(x,k,ie,o),We=R.positionalTab?Jb(R.positionalTab,t,L,u?.marginExtent):null,nn=We===null?Nr(s,ln,L):We.positionPt>ln?We:{...Nr(s,ln,L),...We.leader?{leader:We.leader}:{}},_t=ds(nn.alignment,ln,nn.positionPt,Ye.width,Ye.decimalOffset);m.spans.push({range:be,text:" ",props:R.props,style:R.style,box:{x:ln,y:0,width:_t,height:$.height},...nn.leader?{tabLeader:nn.leader,tabLeaderAdvancePt:o.measure(as.get(nn.leader)??".",R.style)}:{},...R.link?{link:R.link}:{},...nn.leader?{tabLeader:nn.leader}:{},...ve&&!R.positionalTab?{projected:true}:{},...R.noteNav?{noteNav:R.noteNav}:{},...v(R)}),m.width+=_t,m.height=Math.max(m.height,$.height),m.baseline=Math.max(m.baseline,$.baseline),m.end=ve?R.end:R.start+ie,Ne=" ",J=ie;continue}let Ze=R.measureText??fe,ze=o.measure(Lt(Ze,R.style),R.style),Qe=J>0||Ne===""||/[\s\u00a0]$/.test(Ne)||/^[\s\u00a0]/.test(fe)||ri.has(Ne[Ne.length-1])&&!ri.has(fe[0]);if(Qe&&(Te=m.spans.length,an=m.width,rn=m.end),he(R.start+J),m.width+ze>pe()+Ub&&(m.spans.length>0||m.drawings.length>0))if(Qe||Te<=0){if(!(Oe()&&m.width+ze<=pe()+.001)){if(ee(),!ye(ze))continue}}else {let ln=m.spans.splice(Te);m.width=an,m.end=rn,m.height=0,m.baseline=0;for(let Ye of m.spans){let We=o.lineMetrics(Ye.style);m.height=Math.max(m.height,We.height),m.baseline=Math.max(m.baseline,We.baseline);}ee();for(let Ye of ln){let We=o.lineMetrics(Ye.style);m.spans.push({...Ye,box:{...Ye.box,x:E()+m.width}}),m.width+=Ye.box.width,m.height=Math.max(m.height,We.height),m.baseline=Math.max(m.baseline,We.baseline),m.end=Ye.range.end;}Te=0,an=0;}else if(m.spans.length===0&&m.drawings.length===0&&ze>pe()+.001&&!ye(ze))continue;let en=fe,Re=R.start+J,Bn=ze;if(!ve&&R.measureText===void 0)for(;m.spans.length===0&&en.length>1&&Bn>pe();){let ln=1,Ye=en.length-1,We=1;for(;ln<=Ye;){let zn=ln+Ye>>1;o.measure(Lt(en.slice(0,zn),R.style),R.style)<=pe()?(We=zn,ln=zn+1):Ye=zn-1;}let nn=en.slice(0,We),_t=o.measure(Lt(nn,R.style),R.style);m.spans.push({range:{paragraphId:n,start:Re,end:Re+We},text:nn,props:R.props,style:R.style,box:{x:E()+m.width,y:0,width:_t,height:$.height},...R.link?{link:R.link}:{},...R.noteNav?{noteNav:R.noteNav}:{},...v(R)}),m.width+=_t,m.height=Math.max(m.height,$.height),m.baseline=Math.max(m.baseline,$.baseline),m.end=Re+We,ee(),en=en.slice(We),Re+=We,Bn=o.measure(Lt(en,R.style),R.style);}m.spans.push({range:ve?be:{paragraphId:n,start:Re,end:R.start+ie},text:en,props:R.props,style:R.style,box:{x:E()+m.width,y:0,width:Bn,height:$.height},...R.link?{link:R.link}:{},...ve&&!R.positionalTab?{projected:true}:{},...R.noteNav?{noteNav:R.noteNav}:{},...v(R)}),m.width+=Bn,m.height=Math.max(m.height,$.height),m.baseline=Math.max(m.baseline,$.baseline),m.end=ve?R.end:R.start+ie,Ne=fe,J=ie;}}return (m.spans.length>0||m.drawings.length>0||B.length===0||re)&&ee({includeParagraphMark:true}),i!==null&&a&&a.set(i,B.map(Qb)),B}var si=32,Rf=4096,tx=128,rx=/[\u0000-\u001F\u007F-\u009F]/,ox={major:null,minor:null};function rr(e){return e.kind!=="textValue"}function Go(e,n){return e.attributes.find(t=>t.localName===n)?.value}function $o(e,n){for(let t of e.children)if(rr(t)&&t.localName===n)return t}function Kr(e){return !(e===void 0||e.length===0||e.length>tx||rx.test(e)||chunkEQO762XH_cjs.R(e))}function ax(e){return e==="1"||e==="true"}function li(e){return e.map(n=>n.attributes?{n:n.localName,a:n.attributes}:{n:n.localName})}function Vo(e){if(e){for(let n of e.children)if(rr(n)&&(n.kind==="runProperties"||n.localName==="rPr"))return n}}function di(e){if(e){for(let n of e.children)if(rr(n)&&(n.kind==="paragraphProperties"||n.localName==="pPr"))return n}}var wf=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function Ur(e){return e.some(n=>wf.has(n.localName))?e.filter(n=>!wf.has(n.localName)):e}function ix(e){let n=$o(e,"docDefaults");if(!n)return {run:[],paragraph:[],paragraphNode:void 0};let t=$o(n,"rPrDefault"),r=$o(n,"pPrDefault"),o=Vo(t),a=di(r);return {run:Ur(mn(o)),paragraph:Ur(mn(a)),paragraphNode:a}}function lx(e){let n=Go(e,"styleId");if(!Kr(n))return null;let t=Go(e,"type")??"",r=(()=>{let d=$o(e,"basedOn");return d?Go(d,"val"):void 0})(),o=Kr(r)?r:null,a=di(e),i=Vo(e),l=new Map,s=0;for(let d of e.children){if(d.kind==="textValue"||d.localName!=="tblStylePr")continue;if(s>=sx)break;s+=1;let c=Go(d,"type");c&&!l.has(c)&&l.set(c,d);}return {styleId:n,type:t,basedOn:o,isDefault:ax(Go(e,"default")),paragraphProperties:Ur(mn(a)),runProperties:Ur(mn(i)),paragraphPropertiesNode:a,tablePropertiesNode:$o(e,"tblPr"),conditionalTableFormats:l}}var sx=32,Xo=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function Pf(e,n){if(!n||!Kr(n))return Xo;let t=Hs(e,n,"table");if(t.length===0)return Xo;let r=[],o=[],a=[],i=[],l=new Map;for(let s of t){s.tablePropertiesNode&&r.push(s.tablePropertiesNode),s.paragraphPropertiesNode&&o.push(s.paragraphPropertiesNode),a.push(...s.paragraphProperties),i.push(...s.runProperties);for(let[d,c]of s.conditionalTableFormats)l.set(d,c);}return {tablePropertyNodes:r,paragraphPropertyNodes:o,paragraphProperties:a,runProperties:i,conditional:l}}var _s=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function If(e,n){let t=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of n){let i=e.conditional.get(a);if(!i)continue;let l=di(i);l&&(t.push(l),r.push(...Ur(mn(l))));let s=Vo(i);s&&o.push(...Ur(mn(s)));}return t.length===0&&r.length===0&&o.length===0?_s:{paragraphProperties:r,paragraphPropertyNodes:t,runProperties:o}}function dx(e,n=ox){let t=new Map;if(!e)return {cacheToken:chunkMHDO6HLI_cjs.y({empty:true,theme:n}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,themeFonts:n,styles:t};let r=ix(e),o=null,a=null,i=0;for(let s of e.children){if(!rr(s)||s.localName!=="style")continue;if(i>=Rf)break;i+=1;let d=lx(s);if(!d)continue;let{isDefault:c,...u}=d;t.set(u.styleId,u),u.type==="paragraph"?c?o=u.styleId:o===u.styleId&&(o=null):u.type==="character"&&(c?a=u.styleId:a===u.styleId&&(a=null));}return {cacheToken:chunkMHDO6HLI_cjs.y({dR:li(r.run),dP:li(r.paragraph),defP:o,defC:a,theme:n,styles:[...t.values()].map(s=>({id:s.styleId,type:s.type,basedOn:s.basedOn,p:li(s.paragraphProperties),r:li(s.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,themeFonts:n,styles:t}}function zs(e,n){let t=null;for(let r of e){if(r.localName!==n)continue;let o=r.attributes?.val;t=Kr(o)?o:null;}return t}function Hs(e,n,t){let r=e.styles.get(n);if(!r||r.type!==t)return [];let o=[],a=new Set,i=n,l=0;for(;i!==null&&l<si&&!(a.has(i)||!Kr(i));){a.add(i);let s=e.styles.get(i);if(!s)break;o.push(s),i=s.basedOn,l+=1;}return o.reverse()}function Zr(e,n,t){let r=mn(n),o=zs(r,"pStyle")??e.defaultParagraphStyleId,a=o?Hs(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...t?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],l=[...i,...r],s=[];e.docDefaultsParagraphNode&&s.push(e.docDefaultsParagraphNode),t&&s.push(...t.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&s.push(p.paragraphPropertiesNode);n&&s.push(n);let d=Vo(n&&rr(n)?n:void 0),c=mn(d),u=[...e.docDefaultsRun,...t?.runProperties??[],...a.flatMap(p=>p.runProperties)],f=c.length===0?u:[...u,...c];return {paragraphProperties:l,inheritedParagraphProperties:i,paragraphPropertyNodes:s,runProperties:u,markRunProperties:f,styleId:o??null}}function Tf(e){let n;for(let t of e){if(!t||t.kind==="textValue")continue;let r=false;for(let o of t.children)if(rr(o)&&o.localName==="pBdr"){r=true;break}r&&(n=st(t).bottom);}return n}function ht(e,n,t){let r=[];if(t){let a=zs(n,"rStyle")??t.defaultCharacterStyleId;a&&(r=Hs(t,a,"character").flatMap(i=>i.runProperties));}return e.length===0&&r.length===0?n:n.length===0&&r.length===0?e:[...e,...r,...n]}function Yo(e,n,t,r,o,a=false){let i=di(e),l=t?Zr(t,i,o):null,s=l?[...l.paragraphProperties]:mn(i),d=mn(Vo(i&&rr(i)?i:void 0)),c=l?l.runProperties:[],u=l?l.markRunProperties:d,f=Wo(s),p=0,g=0;if(r)p=r.indent.hanging,g=r.indent.firstLine;else for(let b of s){if(b.localName!=="ind")continue;let x=jo(b.attributes?.hanging),v=jo(b.attributes?.firstLine);(b.attributes?.hanging!==void 0||b.attributes?.firstLine!==void 0)&&(p=x!==null?Math.max(0,x)/20:0,g=v!==null?v/20:0);}let y=r?{left:r.indent.left,right:r.indent.right,hanging:p,firstLine:g}:{left:f.left,right:f.right,hanging:p,firstLine:g},h=l?ls(l.paragraphPropertyNodes):ss(i);return {props:s,indent:y,available:Math.max(1,n-y.left-y.right),alignment:Sf(s),spacing:ql(s,{inList:r!==void 0,inTableCell:a}),lineSpacing:Jl(s),contextualSpacing:es(s),styleId:l?l.styleId:zs(s,"pStyle")??null,bottomBorder:l?Tf(l.paragraphPropertyNodes):st(i).bottom,borders:l?Po(l.paragraphPropertyNodes):st(i),shading:os(s),inheritedRunProperties:c,markRunProperties:u,tabStops:h,tabStopsCacheToken:qt(h),...r?{listItem:r}:{}}}var vf=new WeakMap;function cx(e){let n=vf.get(e);if(n!==void 0)return n;let t=o=>o.some(a=>a.localName==="pBdr"),r=t(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(t(o.paragraphProperties)){r=true;break}}return vf.set(e,r),r}function Bf(e,n){return !n||!cx(n)?st(e):Po(Zr(n,e).paragraphPropertyNodes)}var ux=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function js(e){let n=e?.val;return n!=="0"&&n!=="false"&&n!=="off"}function Of(e){let n=false,t=false,r=true;for(let o of e)switch(o.localName){case "keepNext":n=js(o.attributes);break;case "keepLines":t=js(o.attributes);break;case "widowControl":r=js(o.attributes);break;}return !n&&!t&&r?ux:{keepNext:n,keepLines:t,widowControl:r}}function Cf(e,n,t,r,o){if(e<=n)return e;if(r.keepLines&&!o)return n;if(!r.widowControl||t<2)return e;let a=e;return t-a<2&&(a-=1),a-n===1&&(a-=1),a<n&&(a=n),a===n&&o?e:a}function kf(e,n,t,r){let o=0,a=t;for(let i=n;i-n<8;i+=1){let l=e[i];if(!l||l.kind!=="paragraph"||!l.spacing||!l.keeps)return null;o+=Math.max(l.spacing.before,a)-a;let s=r(i);if(!l.keeps.keepNext||i+1>=e.length)return o+=s[0]??0,l.keeps.widowControl&&s.length>1&&(o+=s[1]),o;for(let d of s)o+=d;o+=l.spacing.after,a=l.spacing.after;}return null}function Lf(e,n){let t=e,r=0;for(let o=e.length-2;o>=0;o-=1)n(o)&&r<8?(t===e&&(t=[...e]),t[o]=`${e[o]}~kn~${t[o+1]}`,r+=1):r=0;return t}var fx=zr;function Ko(e,n){if(e.kind!=="textValue"){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}}function Ef(e){if(e.kind==="textValue")return false;let n=Ko(e,"paragraphProperties")??Ko(e,"pPr");if(!n)return false;let t=Ko(n,"runProperties")??Ko(n,"rPr");return t!==void 0&&Ko(t,"del")!==void 0}function Mf(e,n){if(e.kind==="textValue"||n>fx)return true;let t=(r,o)=>{for(let a of r){if(a.kind==="textValue")continue;if(a.kind==="run"){for(let l of a.children){if(l.kind==="text"){for(let s of l.children)if(s.kind==="textValue"&&s.value.length>0)return false;continue}if(l.kind!=="runProperties")return false}continue}if(chunkEQO762XH_cjs.Kb(a)){if(o>=chunkEQO762XH_cjs.Jb)continue;let l=chunkEQO762XH_cjs.Mb(a);if(l&&!t(l,o+1))return false;continue}if((a.kind==="hyperlink"||a.kind==="revisionInsert"||a.kind==="revisionMoveTo")&&!Mf(a,o+1))return false}return true};return t(e.children,n)}function Uo(e,n="proposed"){return e.kind!=="paragraph"||n!=="proposed"||!Ef(e)?false:Mf(e,0)}var px={state:"none"},Nf=(e,n)=>n.state==="omitted"?e:n;function ci(e,n,t={}){return e.state==="omitted"?n:e.state==="none"?px:e}function Ws(e,n){let t=Nf;return {top:t(e.top,n.top),left:t(e.left,n.left),bottom:t(e.bottom,n.bottom),right:t(e.right,n.right),insideH:t(e.insideH,n.insideH),insideV:t(e.insideV,n.insideV)}}function Gs(e,n){let t=Nf;return {top:t(e.top,n.top),left:t(e.left,n.left),bottom:t(e.bottom,n.bottom),right:t(e.right,n.right)}}function ui(e=1048576){let n=e|0;return {intervalsRemaining:n>0?n:0}}function Ff(e,n,t,r){let o=Math.max(0,Math.min(n|0,1024)),a=new Array(e.length);for(let i=0;i<e.length;i+=1){if(r&&r.intervalsRemaining<=0){a[i]=[];continue}a[i]=gx(e[i],o,t,r);}return a}function gx(e,n,t,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),p=Math.min(n,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,l=o[0].x,s=[],d=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>l&&i&&(!r||r.intervalsRemaining>0)){let u=s[s.length-1];u&&u.end===l&&u.cellIndex===i.cellIndex&&u.cell===i.cell?s[s.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(s.push({start:l,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),t&&(t.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),l=c.x;}return s}function mx(e,n){let t=0,r=e.length;for(;t<r;){let o=t+r>>1;e[o].start<=n?t=o+1:r=o;}return t}function $s(e,n,t,r){r&&(r.columnLookups+=1);let o=e[n];if(!o||t<0)return;let a=mx(o,t)-1;if(a<0)return;let i=o[a];if(!(t>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var zf=256,$e={state:"omitted"},yi={state:"none"},Hf={top:$e,left:$e,bottom:$e,right:$e,insideH:$e,insideV:$e},jf={top:$e,left:$e,bottom:$e,right:$e},Af={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},yx=new Map([["single","single"],["thick","thick"],["double","double"],["dotted","dotted"],["dashed","dashed"],["dashSmallGap","dashed"],["dotDash","dashed"],["dotDotDash","dashed"],["triple","triple"],["wave","single"],["hairline","single"],["inset","single"],["outset","single"]]);function Zo(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Xs(e,n){return e.attributes.find(t=>t.localName===n)?.value}function bx(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function xx(e){if(e===null)return .5;let n=e/8;return !Number.isFinite(n)||n<=0?.5:n>Ro?Ro:n}function bi(e){if(!e)return $e;let n=Xs(e,"val");if(!n)return $e;if(n==="nil"||n==="none")return yi;let t=yx.get(n)??"single",r=Xs(e,"color"),o=r===void 0||r==="auto"?null:Da(r)??null;return {state:"edge",style:t,color:o,widthPt:xx(bx(Xs(e,"sz")))}}function Wf(e,n){if(!e)return jf;let t={top:$e,left:$e,bottom:$e,right:$e};for(let r of n)t[r]=bi(Zo(e,r));return t}function xi(e){let n=e&&Zo(e,"tblBorders");return n?{...Wf(n,["top","left","bottom","right"]),insideH:bi(Zo(n,"insideH")),insideV:bi(Zo(n,"insideV"))}:Hf}function Si(e){return Wf(e&&Zo(e,"tcBorders"),["top","left","bottom","right"])}function Vs(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function Df(e){if(!e)return 0;let n=Number.parseInt(e.slice(0,2),16),t=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return n+t+r}function Gf(e,n,t=true){if(e.state==="omitted")return n.state==="omitted"?$e:n;if(n.state==="omitted")return e;if(e.state==="none")return n.state==="none"?yi:n;if(n.state==="none")return e;let r=Vs(e),o=Vs(n);if(r>o)return e;if(o>r)return n;let a=Af[e.style],i=Af[n.style];if(a!==i)return a>i?e:n;let l=Df(e.color),s=Df(n.color);return l<s?e:s<l?n:t?e:n}function fi(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function Sx(e,n,t){return t?n==="top"||n==="bottom"?e.insideH:e.insideV:e[n]}function wx(e,n){return e===void 0&&n===void 0?true:!e||!n?false:e.style===n.style&&e.color===n.color&&e.widthPt===n.widthPt}function pi(e){if(e.length===0)return [];let n=[],t={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];t.gridEnd===o.gridStart&&wx(t.edge,o.edge)?t={...t,gridEnd:o.gridEnd}:(n.push(t),t={...o});}return n.push(t),n}function gi(e,n,t){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==n||o.gridEnd!==t))return o.edge}function _f(e,n,t){let r=0,o=Math.min(t,e.length);for(let a=Math.max(0,n);a<o;a+=1)r+=e[a];return r}function Rx(e){if(!(!e||e.style!=="double"))return Cr(e.widthPt)}function mi(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function Px(e,n){return n?e==="outer"?n.insetPt:n.insetPt+n.strokePt+n.gapPt:0}function Ix(e,n,t){return t?e==="outer"?n-t.insetPt:n-t.insetPt-t.strokePt-t.gapPt:n}function Tx(e,n){return n?e==="outer"?n.insetPt+n.strokePt:n.insetPt+n.extentPt:0}function vx(e,n,t){return t?e==="outer"?n-t.insetPt-t.strokePt:n-t.insetPt-t.extentPt:n}function Mt(e,n){e.length>=zf||!(n.width>0)||!(n.height>0)||e.push(n);}function Bx(e,n,t,r,o,a,i,l,s,d,c){let u=Cr(t.widthPt),{strokePt:f,gapPt:p,extentPt:g,insetPt:y}=u,h=Math.abs(r)<1e-6,b=Math.abs(o-a)<1e-6,x=Math.abs(r)<1e-6,v=Math.abs(o-i)<1e-6;if(n==="top"||n==="bottom"){let L=n==="top"?y:i-y-f,M=n==="top"?y+f+p:i-y-g;for(let F of ["outer","inner"]){let T=r,B=o;h&&(T=Px(F,l)),b&&(B=Ix(F,a,s)),Mt(e,{side:n,role:F,color:t.color,cssStyle:"solid",x:T,y:F==="outer"?L:M,width:B-T,height:f});}return}let w=n==="left"?y:a-y-f,z=n==="left"?y+f+p:a-y-g;for(let L of ["outer","inner"]){let M=r,F=o;x&&(M=Tx(L,d)),v&&(F=vx(L,i,c)),Mt(e,{side:n,role:L,color:t.color,cssStyle:"solid",x:L==="outer"?w:z,y:M,width:f,height:F-M});}}function Ox(e,n,t,r,o,a,i){let l=t.widthPt,s=Math.max(1,l),d=l*3+s*2;if(n==="top"||n==="bottom"){let u=n==="top"?0:i-d;for(let f=0;f<3;f+=1)Mt(e,{side:n,role:f===0?"outer":f===1?"middle":"inner",color:t.color,cssStyle:"solid",x:r,y:u+f*(l+s),width:o-r,height:l});return}let c=n==="left"?0:a-d;for(let u=0;u<3;u+=1)Mt(e,{side:n,role:u===0?"outer":u===1?"middle":"inner",color:t.color,cssStyle:"solid",x:c+u*(l+s),y:r,width:l,height:o-r});}function Cx(e,n,t,r,o,a,i){let l=t.widthPt;n==="top"?Mt(e,{side:n,role:"edge",color:t.color,cssStyle:mi(t.style),x:r,y:0,width:o-r,height:l}):n==="bottom"?Mt(e,{side:n,role:"edge",color:t.color,cssStyle:mi(t.style),x:r,y:i-l,width:o-r,height:l}):n==="left"?Mt(e,{side:n,role:"edge",color:t.color,cssStyle:mi(t.style),x:0,y:r,width:l,height:o-r}):Mt(e,{side:n,role:"edge",color:t.color,cssStyle:mi(t.style),x:a-l,y:r,width:l,height:o-r});}function hi(e,n){if(e.length===0)return;let t=e[0];return Rx(t.edge)}function kx(e,n,t,r,o,a,i,l,s,d){let c=(D,W,V)=>{let S=[];for(let I of W){if(!I.edge)continue;let O,N;V?(O=_f(i,l,I.gridStart),N=_f(i,l,I.gridEnd)):(O=s[I.gridStart-d]??0,N=s[I.gridEnd-d]??a),S.push({side:D,gridStart:I.gridStart,gridEnd:I.gridEnd,startPt:O,endPt:N,edge:I.edge});}return S},u=c("top",e,true),f=c("left",n,false),p=c("bottom",t,true),g=c("right",r,false),y=[...u,...g,...p,...f],h=hi(n),b=hi(r),x=hi(e),v=hi(t),w=(D,W)=>D.length===1&&Math.abs(D[0].startPt)<1e-6&&Math.abs(D[0].endPt-W)<1e-6,z=w(u,o),L=w(f,a),M=w(p,o),F=w(g,a),T=[],B=(D,W,V)=>{for(let S of W){let{edge:I,startPt:O,endPt:N}=S;I.style==="double"?Bx(T,D,I,O,N,o,a,D==="top"||D==="bottom"?h:void 0,D==="top"||D==="bottom"?b:void 0,D==="left"||D==="right"?x:void 0,D==="left"||D==="right"?v:void 0):I.style==="triple"?Ox(T,D,I,O,N,o,a):V||Cx(T,D,I,O,N,o,a);}};B("top",u,z),B("left",f,L),B("bottom",p,M),B("right",g,F);let m={};return z&&u[0]&&(m.top=u[0].edge),L&&f[0]&&(m.left=f[0].edge),M&&p[0]&&(m.bottom=p[0].edge),F&&g[0]&&(m.right=g[0].edge),y.length>0&&(m.edgeSegments=y),T.length>0&&(m.strokes=T),m}function Ys(e,n,t,r,o,a){let i=e.length,l=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let s=Ff(e,t,o,a),d=(u,f,p)=>ci(u.borders[f],Sx(n,f,p),{}),c=(u,f,p,g)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?yi:Gf(p,g);for(let u=0;u<i;u+=1){let f=e[u];for(let p=0;p<f.length;p+=1){let g=f[p];if(g.vMergeContinue){l[u][p]={};continue}let y=g.mergeRowSpan??1,h=u+y-1,b=u===0,x=h===i-1,v=g.gridColumn===0,w=g.gridColumn+g.gridSpan-1,z=w>=t-1,L=[];if(b)for(let O=g.gridColumn;O<=w;O+=1)L.push({gridStart:O,gridEnd:O+1,edge:fi(d(g,"top",false))});let M=[];if(v)for(let O=u;O<=h;O+=1)M.push({gridStart:O,gridEnd:O+1,edge:fi(d(g,"left",false))});let F=[];for(let O=g.gridColumn;O<=w;O+=1){let N;if(x)N=d(g,"bottom",false);else {let C=$s(s,h+1,O,o);C?.cell.vMergeContinue?N=$e:N=c(g.borders.bottom,C?C.cell.borders.top:$e,d(g,"bottom",true),C?d(C.cell,"top",true):n.insideH);}F.push({gridStart:O,gridEnd:O+1,edge:fi(N)});}let T=[];for(let O=u;O<=h;O+=1){let N;if(z)N=d(g,"right",false);else {let C=$s(s,O,w+1,o);N=c(g.borders.right,C?C.cell.borders.left:$e,d(g,"right",true),C?d(C.cell,"left",true):n.insideV);}T.push({gridStart:O,gridEnd:O+1,edge:fi(N)});}let B=pi(L),m=pi(M),D=pi(F),W=pi(T);if(!r){let O={},N=gi(B,g.gridColumn,w+1),C=gi(m,u,h+1),_=gi(D,g.gridColumn,w+1),E=gi(W,u,h+1);N&&(O.top=N),C&&(O.left=C),_&&(O.bottom=_),E&&(O.right=E);let X=[],H=(K,G)=>{for(let U of G)U.edge&&X.push({side:K,gridStart:U.gridStart,gridEnd:U.gridEnd,startPt:U.gridStart,endPt:U.gridEnd,edge:U.edge});};H("top",B),H("left",m),H("bottom",D),H("right",W),X.length>0&&(O.edgeSegments=X),l[u][p]=O;continue}let V=r.cellBoxes[u][p],S=[0],I=0;for(let O=u;O<=h;O+=1){let N=r.rowBands[O];I+=N.height,S.push(I);}S.length>1&&(S[S.length-1]=V.height),l[u][p]=kx(B,m,D,W,V.width,V.height,r.columnWidthsPt,g.gridColumn,S,u);}}return l}function or(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var Ks=Hf,Us=jf;var Xf=31680/20,Fn=Object.freeze({type:"auto",value:0}),Lx=100,Ex=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function Mx(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function qs(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Vf(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let n=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(n){let r=Number(n[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let t=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(t){let r=Number(t[1])*Ex[t[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function ar(e){if(!e)return Fn;let n=qs(e,"type");if(n!==void 0&&n!=="pct"&&n!=="dxa")return n==="nil"?{type:"nil",value:0}:Fn;let t=qs(e,"w");if(t===void 0)return Fn;let r=Vf(t);if(!r)return Fn;let o=/^\d{1,9}$/.test(t);if(r.kind==="percent"||o&&n==="pct"){let a=r.kind==="percent"?r.percent:Number(t)/50;return !Number.isFinite(a)||a<=0?Fn:{type:"pct",value:Math.min(a,Lx)}}return !Number.isFinite(r.pt)||r.pt<=0?Fn:{type:"dxa",value:Math.min(r.pt,Xf)}}function qo(e,n){if(!e)return;let t=ar(e);if(t.type==="dxa")return Math.min(t.value,n)}function Yf(e){let n=Mx(e,"tblGrid");if(!n)return [];let t=[];for(let r of n.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(t.push(r),t.length>=1024))break;return t}function Nx(e){let n=[];for(let t of e){let r=qs(t,"w"),o=r===void 0?null:Vf(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){n.push(void 0);continue}n.push(o.pt>Xf?void 0:o.pt);}return n}var Zs=1,$f=.001;function Fx(e,n,t,r){let o=[];for(let i=0;i<t;i+=1)o.push(e[i]);let a=n.filter(i=>i.start<t&&(i.preferred.type==="dxa"||i.preferred.type==="pct"&&r>0)).sort((i,l)=>i.span-l.span);for(let i of a){let l=Math.min(i.start+i.span,t);if(l<=i.start)continue;let s=i.preferred.type==="pct"?r*i.preferred.value/100:i.preferred.value;if(!Number.isFinite(s)||s<=0)continue;if(l-i.start===1){let f=o[i.start];o[i.start]=f===void 0?s:Math.max(f,s);continue}let d=[],c=s;for(let f=i.start;f<l;f+=1){let p=o[f];p===void 0?d.push(f):c-=p;}if(d.length===0||c<=0)continue;let u=c/d.length;for(let f of d)o[f]=u;}return o}function Kf(e){let{columnCount:n,tableWidth:t}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:Zs,a=t.type==="dxa"?t.value:t.type==="pct"?o*t.value/100:0,i=Nx(e.gridCols),l=Fx(i,e.claims,n,a),s=0,d=0;for(let b of l)b===void 0?d+=1:s+=b;let c=[];if(d>0){let b=s>0?s/Math.max(n-d,1):o/n,x=Math.max(o-s,0)/d,v=Math.max(Math.min(x,b),Zs);for(let w of l)c.push(w??v);}else for(let b of l)c.push(b);let u=c.reduce((b,x)=>b+x,0);if(!Number.isFinite(u)||u<=0)return new Array(n).fill(o/n);let f=n*Zs,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,g=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),y=t.type==="pct"&&a>0;if(u<=g+$f&&!y||Math.abs(u-g)<=$f)return c;let h=g/u;return c.map(b=>b*h)}var Pi=16,Qo=3,Ri=31680/20,sp=31680/20,Uf=1023,Ax=256,Zf=31680/20;function qf(e){let n=e&&me(e,"jc");if(!n)return;let t=_e(n,"val");if(t==="center")return "center";if(t==="right"||t==="end")return "right";if(t==="left"||t==="start")return "left"}var Jf=31680/20,dp={top:Qo,right:Qo,bottom:Qo,left:Qo};function me(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function _e(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Dx(e){let n=e&&me(e,"gridSpan"),t=n&&_e(n,"val");if(!t||!/^\d{1,7}$/.test(t))return 1;let r=Number(t);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function Qf(e,n){let t=e&&me(e,n),r=t&&_e(t,"val");if(!r||!/^\d{1,7}$/.test(r))return 0;let o=Number(r);return Number.isInteger(o)&&o>0?Math.min(o,1024):0}function _x(e){let n=e&&me(e,"vMerge");return n?_e(n,"val")!=="restart":false}function zx(e){let n=e&&me(e,"vAlign"),t=n&&_e(n,"val");return t==="center"?"center":t==="bottom"?"bottom":"top"}function ep(e){return rs(e&&me(e,"shd"))}function np(e,n){let t=e&&me(e,n);if(!t)return false;let r=_e(t,"val");return r!=="0"&&r!=="false"}var Jo=Object.freeze({rule:"auto"});function Hx(e){let n=e&&me(e,"trHeight");if(!n)return Jo;let t=_e(n,"hRule"),r=t==="auto"||t==="exact"||t==="atLeast"?t:void 0;if(r==="auto")return Jo;let o=_e(n,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return Jo;let a=Number(o);if(!Number.isFinite(a)||a<=0)return Jo;let i=Math.min(a/20,sp);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:Jo}function wi(e){if(!e)return;let n=_e(e,"w");if(n===void 0||!/^\d{1,9}$/.test(n))return;let t=Number(n);if(!Number.isFinite(t)||t<0)return;let r=t/20;return r>Ri?Ri:r}function Js(e){if(!e)return {};let n=wi(me(e,"top")),t=wi(me(e,"left")),r=wi(me(e,"bottom")),o=wi(me(e,"right"));return {...n===void 0?{}:{top:n},...t===void 0?{}:{left:t},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function Qs(e,n){return {top:n.top??e.top,right:n.right??e.right,bottom:n.bottom??e.bottom,left:n.left??e.left}}function ea(e,n){let t=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=n-t;return !Number.isFinite(r)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?r:Math.min(e.indentPt,r)}function tp(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function rp(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let n=Number(e);if(!Number.isFinite(n))return;let t=n/20;return Math.max(-Jf,Math.min(Jf,t))}function op(e){let n=e&&me(e,"tblpPr");if(!n)return;let t=_e(n,"tblpXSpec"),r=t==="left"||t==="center"||t==="right"||t==="inside"||t==="outside"?t:void 0,o=_e(n,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:tp(_e(n,"horzAnchor"))??"text",vertAnchor:tp(_e(n,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:rp(_e(n,"tblpX"))??0,...a?{ySpec:a}:{},yPt:rp(_e(n,"tblpY"))??0}}function cp(e,n,t){let r=t[e.horzAnchor],o=r.width-n,a;if(e.xSpec==="center"?a=r.left+o/2:e.xSpec==="right"||e.xSpec==="outside"?a=r.left+o:e.xSpec?a=r.left:a=r.left+e.xPt,!Number.isFinite(a))return r.left;let i=t.page.left+t.page.width;return Math.max(t.page.left,Math.min(a,i))}var jx=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function yt(e,n){let t=_e(e,n);if(t!==void 0)return t!=="0"&&t!=="false"&&t!=="off"}function Wx(e){let n=e&&me(e,"tblLook");if(!n)return jx;let t=_e(n,"val"),r=t&&/^[0-9A-Fa-f]{1,4}$/.test(t)?Number.parseInt(t,16):0;return {firstRow:yt(n,"firstRow")??(r&32)!==0,lastRow:yt(n,"lastRow")??(r&64)!==0,firstColumn:yt(n,"firstColumn")??(r&128)!==0,lastColumn:yt(n,"lastColumn")??(r&256)!==0,rowBanding:yt(n,"noHBand")===void 0?(r&512)===0:!yt(n,"noHBand"),columnBanding:yt(n,"noVBand")===void 0?(r&1024)===0:!yt(n,"noVBand")}}var ed=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],ap=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function ip(e,n){let t=e&&me(e,"cnfStyle");if(!t)return;let r=_e(t,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<ed.length;o+=1)r[o]==="1"&&n.add(ed[o]);for(let o=0;o<ap.length;o+=1)yt(t,ap[o])===true&&n.add(ed[o]);}var Gx=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function $x(e){let n=new Set;ip(e.rowProperties,n),ip(e.cellProperties,n);let{look:t,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:l}=e,s=n.has("firstRow")||t.firstRow&&r===0,d=n.has("lastRow")||t.lastRow&&r===o-1,c=n.has("firstCol")||t.firstColumn&&a===0,u=n.has("lastCol")||t.lastColumn&&a+i>=l;if(!(n.has("band1Vert")||n.has("band2Vert"))&&t.columnBanding&&!c&&!u){let y=a-(t.firstColumn?1:0);n.add(y%2===0?"band1Vert":"band2Vert");}if(!(n.has("band1Horz")||n.has("band2Horz"))&&t.rowBanding&&!s&&!d){let y=r-(t.firstRow?1:0);n.add(y%2===0?"band1Horz":"band2Horz");}c&&n.add("firstCol"),u&&n.add("lastCol"),s&&n.add("firstRow"),d&&n.add("lastRow"),s&&c&&n.add("nwCell"),s&&u&&n.add("neCell"),d&&c&&n.add("swCell"),d&&u&&n.add("seCell");let g=[];for(let y of Gx)n.has(y)&&g.push(y);return g}var lp=new WeakMap;function qr(e,n,t,r,o="all-markup"){let a=lp.get(e);if(a&&a.contentWidthPt===n&&a.depth===t&&a.styleCascade===r&&a.displayMode===o)return a.structure;let i=Xx(e,n,t,r,o);return lp.set(e,{contentWidthPt:n,depth:t,styleCascade:r,displayMode:o,structure:i}),i}function Xx(e,n,t,r,o){if(t>=Pi||e.kind!=="table")return null;let a=me(e,"tblPr"),i=a&&me(a,"tblStyle")?_e(me(a,"tblStyle"),"val"):void 0,l=r?Pf(r,i):Xo,s=Wx(a),d=dp,c=Ks;for(let _ of l.tablePropertyNodes)d=Qs(d,Js(me(_,"tblCellMar"))),c=Ws(c,xi(_));let u=Qs(d,Js(a&&me(a,"tblCellMar"))),f=Ws(c,a?xi(a):Ks),p=new Map,g=_=>{if(l===Xo)return _s;let E=_.join("|"),X=p.get(E);if(X)return X;let H=If(l,_);return p.size<Ax&&p.set(E,H),H},y=[],h=[],b=1;for(let _ of chunkEQO762XH_cjs.ie(e.children)){if(_.kind!=="tableRow")continue;let E=me(_,"trPr"),X=[],H=[],K=[],G=Math.min(Qf(E,"gridBefore"),Uf);G>0&&h.push({start:0,span:G,preferred:ar(E&&me(E,"wBefore"))});let U=G,se=chunkEQO762XH_cjs.ie(_.children);for(let Se of se){if(Se.kind!=="tableCell")continue;let Oe=me(Se,"tcPr"),he=Math.min(U,Uf),ue=Math.min(Dx(Oe),1024-he),ye=ar(Oe&&me(Oe,"tcW"));X.push(he),H.push(ue),K.push(ye),h.push({start:he,span:ue,preferred:ye}),U=he+ue;}let xe=Qf(E,"gridAfter"),pe=Math.min(U+xe,1024);xe>0&&U<1024&&h.push({start:U,span:Math.min(xe,1024-U),preferred:ar(E&&me(E,"wAfter"))}),pe>b&&(b=pe),y.push({node:_,cells:se,properties:E,starts:X,spans:H,preferred:K,gridColumns:pe});}let x=Yf(e),v=x.length>0?x.length:b,w=y.length,z=[];for(let _=0;_<y.length;_+=1){let E=y[_],X=E.node,H=E.properties,K=0,G=[];for(let Oe of E.cells){if(Oe.kind!=="tableCell")continue;let he=me(Oe,"tcPr"),ue=E.starts[K],ye=E.spans[K],Me=E.preferred[K]??Fn,Te=$x({look:s,rowIndex:_,rowCount:w,gridColumn:ue,gridSpan:ye,columnCount:v,rowProperties:H,cellProperties:he});K+=1;let an,rn=Us;for(let we of Te){let on=l.conditional.get(we);if(!on)continue;let vn=me(on,"tcPr");an=ep(vn)??an,rn=Gs(rn,Si(vn));}let Ne=ep(he)??an,Qn=Qs(u,Js(he&&me(he,"tcMar"))),et=chunkEQO762XH_cjs.Ob(Oe.children,0,we=>!(we.kind==="paragraph"&&Uo(we,o)));G.push({id:Oe.id,gridSpan:ye,gridColumn:ue,...x[ue]?.id?{gridColumnId:x[ue].id}:{},vMergeContinue:_x(he),vAlign:zx(he),margins:Qn,borders:Gs(rn,he?Si(he):Us),...Ne===void 0?{}:{shading:Ne},preferredWidth:Me,styleFormatting:g(Te),blocks:et});}let U=H?me(H,"ins")??me(H,"del"):void 0,se=U?U.localName==="ins"?"insert":"delete":void 0,xe=U&&_e(U,"id"),pe=U&&_e(U,"author"),Se=U&&_e(U,"date");z.push({id:X.id,...se?{revisionKind:se}:{},...xe!==void 0?{revisionId:xe}:{},...pe!==void 0?{revisionAuthor:pe}:{},...Se!==void 0?{revisionDate:Se}:{},isHeader:np(H,"tblHeader"),cantSplit:np(H,"cantSplit"),height:Hx(H),cells:G});}let L=Fn,M,F,T,B,m;for(let _ of l.tablePropertyNodes){let E=me(_,"tblW");E&&(L=ar(E));let X=me(_,"tblLayout");X&&(M=_e(X,"type")==="fixed"),F=qo(me(_,"tblInd"),Zf)??F,T=qf(_)??T,B=qo(me(_,"tblCellSpacing"),Ri)??B,m=op(_)??m;}let D=a&&me(a,"tblW"),W=D?ar(D):L,V=a&&me(a,"tblLayout"),S=V?_e(V,"type")==="fixed":M??false,I=qo(a&&me(a,"tblInd"),Zf)??F??0,O=qf(a)??T??"left",N=t===0?op(a)??m:void 0,C=qo(a&&me(a,"tblCellSpacing"),Ri)??B??0;return {columnWidthsPt:Kf({gridCols:x,claims:h,columnCount:v,contentWidthPt:n,tableWidth:W,layoutFixed:S}),rows:z,tableWidth:W,layoutFixed:S,indentPt:I,alignment:O,...N?{float:N}:{},cellSpacingPt:C,tableBorders:f,defaultMargins:u}}var td=512,fp=9,An=31680/20,Vx=8,Yx=128;function na(e,n){return e.kind!=="textValue"&&e.namespaceUri===chunkEQO762XH_cjs.la&&e.localName===n}function Xe(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function hn(e,n){for(let t of e.children)if(na(t,n))return t}function bt(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Kx(e){let n=e/20;return !Number.isFinite(n)||n<=0?0:n>An?An:n}function nd(e){let n=e/20;return Number.isFinite(n)?n>An?An:n<-An?-An:n:0}function Ux(e){let n={left:0,right:0,hanging:0,firstLine:0};if(!e)return n;let t=hn(e,"ind");if(!t)return n;let r=bt(Xe(t,"left")??Xe(t,"start"),true),o=bt(Xe(t,"right")??Xe(t,"end"),true),a=bt(Xe(t,"hanging")),i=bt(Xe(t,"firstLine"),true);return {left:r===null?0:nd(r),right:o===null?0:nd(o),hanging:a===null?0:Kx(a),firstLine:i===null?0:nd(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function Zx(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function qx(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function Jx(e,n){let t=hn(e,n);if(!t)return false;let r=Xe(t,"val");return r!=="0"&&r!=="false"&&r!=="off"}function up(e,n){let t=hn(e,n);if(!t)return;let r=Xe(t,"val");if(!(r===void 0||r.length===0||r.length>Yx))return r}function Qx(e,n){for(let t of e){if(t.localName!==n)continue;let r=t.attributes?.val;return !(r==="0"||r==="false")}return false}function pp(e){let n=bt(Xe(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=hn(e,"start"),r=1;if(t){let b=bt(Xe(t,"val"));b!==null&&b>=0&&(r=Math.min(b,9999));}let o=hn(e,"numFmt"),a=(o?Xe(o,"val"):void 0)??"decimal",i=hn(e,"lvlText"),l=i?Xe(i,"val")??"":"",s=hn(e,"lvlJc"),d=qx(s?Xe(s,"val"):void 0),c=hn(e,"suff"),u=Zx(c?Xe(c,"val"):void 0),f=hn(e,"lvlRestart"),p;if(f){let b=bt(Xe(f,"val"));b!==null&&b>=0&&b<=9&&(p=b);}let g=hn(e,"pPr"),y=hn(e,"rPr"),h=y?Ao(y):[];return {ilvl:n,start:r,numFmt:a.length>64?"decimal":a,lvlText:l.length>64?l.slice(0,64):l,lvlJc:d,suff:u,indent:Ux(g),...p!==void 0?{lvlRestart:p}:{},isLgl:Jx(e,"isLgl"),runProperties:h,vanish:Qx(h,"vanish")}}function eS(e){let n=Xe(e,"abstractNumId");if(n===void 0||n.length===0||n.length>64)return null;let t=new Map;for(let a of e.children){if(!na(a,"lvl"))continue;if(t.size>=9)break;let i=pp(a);i&&!t.has(i.ilvl)&&t.set(i.ilvl,i);}let r=up(e,"numStyleLink"),o=up(e,"styleLink");return {abstractNumId:n,levels:t,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function nS(e){let n=bt(Xe(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=hn(e,"startOverride"),r;if(t){let i=bt(Xe(t,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=hn(e,"lvl"),a=o?pp(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:n,override:{}}:{ilvl:n,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function tS(e){let n=Xe(e,"numId");if(n===void 0||n.length===0||n.length>64)return null;let t=hn(e,"abstractNumId"),r=t?Xe(t,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!na(a,"lvlOverride"))continue;if(o.size>=fp)break;let i=nS(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:n,abstractNumId:r,overrides:o}}function rS(e){let n=new Map,t=new Map;if(!e)return {abstractNums:n,nums:t};let r=0,o=0;for(let a of e.children){if(na(a,"abstractNum")){if(r>=td)continue;r+=1;let i=eS(a);i&&!n.has(i.abstractNumId)&&n.set(i.abstractNumId,i);continue}if(na(a,"num")){if(o>=td)continue;o+=1;let i=tS(a);i&&!t.has(i.numId)&&t.set(i.numId,i);}}return {abstractNums:n,nums:t}}function oS(e,n,t){let r=new Set([n.abstractNumId]),o=n;for(let a=0;a<Vx;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let l=t(i);if(l===void 0)return null;let s=e.nums.get(l);if(!s)return null;let d=e.abstractNums.get(s.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function gp(e,n){let t=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=oS(e,a,n);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),t=true);}return t?{abstractNums:r,nums:e.nums}:e}function Jr(e,n,t){if(t<0||t>8)return null;let r=e.nums.get(n);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(t),i=a?.level??o.levels.get(t);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var rd=Object.freeze({abstractNums:new Map,nums:new Map});function aS(e,n){let t=e.nums.get(n),r=[];for(let o=0;o<=8;o+=1){let a=Jr(e,n,o);if(!a){r.push(1);continue}let i=t?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function iS(e,n,t){let r=[];for(let o=0;o<=8;o+=1){let a=Jr(e,n,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...t]}}function lS(e,n){if(n===0)return null;if(n===void 0)return e-1;let t=n-1;return t>=e?null:t}function od(e){let n=new Map,t=new Map,r=new Map,o=a=>{let i=n.get(a);i||(i=[0,0,0,0,0,0,0,0,0],n.set(a,i));let l=t.get(a);l||(l=[false,false,false,false,false,false,false,false,false],t.set(a,l));let s=r.get(a);return s||(s=aS(e,a),r.set(a,s)),{counters:i,initialized:l,starts:s}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let l=Jr(e,a,i);if(!l)return null;let{abstractNumId:s,level:d}=l,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=iS(e,a,f);for(let w=i+1;w<=8;w+=1){let z=Jr(e,a,w);if(!z)continue;let L=lS(w,z.level.lvlRestart);L!==null&&i<=L&&(u[w]=false);}let g=f[i]??d.start;u[i]?c[i]+=1:(c[i]=g,u[i]=true);let y=c.slice(),h=u.slice(),b=y.map((w,z)=>h[z]?w:f[z]??1),x=d.isLgl?p.map(w=>w==="bullet"||w==="none"?w:"decimal"):p,v=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:ms(d.lvlText,b,x);return {abstractNumId:s,numId:a,ilvl:i,level:d,counters:y,markerText:v}}}}var sS=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),mp=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),hp=new Map([[167,"\u25AA"],[183,"\u2022"]]),yp=new Map([["symbol",sS],["wingdings",mp],["wingdings 2",hp],["wingdings 3",hp],["webdings",mp]]),dS=64;function cS(e){return !e||e.length>dS?false:yp.has(e.toLowerCase())}function bp(e,n,t){if(e.length===0||!cS(n))return e;let r=yp.get(n.toLowerCase());if(t?.(n)===true)return e;let o="",a=false;for(let i of e){let l=i.codePointAt(0);if(l>=61440&&l<=61695){let s=r.get(l-61440);if(s!==void 0){o+=s,a=true;continue}}o+=i;}return a?o:e}function ad(e){return e.kind!=="textValue"}function xp(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function Ii(e,n){for(let t of e.children)if(ad(t)&&t.localName===n)return t}function id(e){let n=null;for(let t of e){if(!ad(t))continue;let r=Ii(t,"numPr");if(!r)continue;let o=Ii(r,"ilvl"),a=Ii(r,"numId"),i=a?xp(a,"val"):void 0,l=o?xp(o,"val"):"0";if(!i||i==="0"){n=null;continue}if(i.length>64){n=null;continue}let s=/^\d{1,2}$/.test(l??"")?Number(l):0;if(s<0||s>8){n=null;continue}n={numId:i,ilvl:s};}return n}function uS(e,n){let t=new Set,r=e.styles.get(n);for(let o=0;r!==void 0&&o<si;o+=1){if(t.has(r.styleId))return;t.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?id([a]):null;if(i)return i.numId;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}function ld(e,n){return n?gp(e,t=>uS(n,t)):e}function Sp(e){return Number.isFinite(e)?e>An?An:e<-An?-An:e:0}function wp(e){let n=null;for(let t of e){if(t.localName!=="ind")continue;let r=t.attributes?.hanging,o=t.attributes?.firstLine;r===void 0&&o===void 0||(n={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?Sp(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?Sp(Number(o)/20):0});}return n}function Rp(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.left!==void 0||n.attributes?.start!==void 0))}function Pp(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.right!==void 0||n.attributes?.end!==void 0))}function Ip(e,n,t=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=Wo(n),a=Wo(t),i={hanging:e.hanging,firstLine:e.firstLine},l=Rp(t)?a.left:r.left?e.left:Rp(n)?o.left:e.left,s=Pp(t)?a.right:r.right?e.right:Pp(n)?o.right:e.right,d=wp(t)??(r.firstLineOffset?i:wp(n)??i);return {left:l,right:s,...d}}function Tp(e,n=8){let t=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){t.push(i);continue}if(!(i.kind!=="table"||a>=n)){for(let l of chunkEQO762XH_cjs.ie(i.children))if(l.kind==="tableRow")for(let s of chunkEQO762XH_cjs.ie(l.children)){if(s.kind!=="tableCell")continue;let d=chunkEQO762XH_cjs.Ob(s.children);r(d,a+1);}}}};return r(e,0),t}function vp(e,n,t,r){let o=new Map;if(n.nums.size===0)return o;let a=ld(n,t),i=od(a);for(let l of Tp(e)){let s=l.children.find(L=>L.kind==="paragraphProperties"),d=t?Zr(t,s):null,c=d?d.paragraphPropertyNodes:s?[s]:[],u=id(c);if(!u)continue;let f=i.advance(u.numId,u.ilvl);if(!f)continue;let p=mn(s),g=Ip(f.level.indent,d?.inheritedParagraphProperties??[],p),y=s&&ad(s)?Ii(s,"rPr"):void 0,h=mn(y),b=d?d.markRunProperties:h,x=ht(b,f.level.runProperties,t),v=dn(x,t?.themeFonts),w=bp(f.markerText,v.fontFamily,r),z=[f.numId,f.ilvl,f.level.numFmt,f.level.lvlText,g.left,g.right,g.hanging,g.firstLine,f.level.lvlJc,f.level.suff,f.level.vanish?1:0,w.length].join("|");o.set(l.id,{numId:f.numId,ilvl:f.ilvl,abstractNumId:f.abstractNumId,numFmt:f.level.numFmt,markerText:w,markerAlign:f.level.lvlJc,suffix:f.level.suff,indent:g,markerStyle:v,cacheToken:z});}return o}function sd(e,n){let t=ld(e.numberingIndex??rd,e.styleCascade),r=e.listItems??(t.nums.size>0?vp(n,t,e.styleCascade,e.isFontAvailable):void 0);return {...e,numberingIndex:t,...r?{listItems:r}:{}}}function Ti(e,n,t,r){if((!e.markerText||e.indent.hanging<=0&&n<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=Math.min(0,o),l=Math.max(i,o-a),s=Math.max(a,n),d=l;return e.markerAlign==="right"?d=o-n:e.markerAlign==="center"&&(d=l+(s-n)/2),d<i&&(d=i),{x:d,y:t,width:Math.max(n,0),height:r}}function fS(e,n,t=Mr,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=n.measure(e.markerText,e.markerStyle),a=Ti(e,o,0,0);if(!a)return 0;let i=e.indent.left,l=a.x+a.width;return e.suffix==="nothing"?l-i:e.suffix==="space"?l+n.measure(" ",e.markerStyle)-i:l<=i?0:Nr(t,l,r).positionPt-i}function vi(e,n,t,r,o){return e?fS(e,t,r,o===void 0?void 0:n.left+o):n.hanging>0?-n.hanging:n.firstLine}function Bi(e,n,t,r=0){if(!e||!e.markerText||!t)return;let o=n.measure(e.markerText,e.markerStyle),a=Ti(e,o,t.y,t.height);if(a)return {text:e.markerText,style:e.markerStyle,box:{x:a.x+r,y:a.y,width:a.width,height:a.height},level:e.ilvl,numId:e.numId,numFmt:e.numFmt}}var pd=8,Bp=new WeakMap;function Ci(e){let n=Bp.get(e);if(n)return n;let t=[],r=new Map,o=new Map,a=new Map,i=new Map,l=new Map,s=(c,u)=>{for(let f of c){if(f.kind==="paragraph"){if(!u)for(let p of f.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of f.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let g=a.get(f.tableId)??0;r.set(p.id,g),a.set(f.tableId,g+1);}for(let g of p.cells){if(!p.isHeaderRepeat&&!u){let y=`${f.tableId}|${g.gridColumn}`;if(g.blocks.length===0){let h=l.get(y);h&&i.set(g,h);}else l.set(y,{row:p,cell:g});}s(g.blocks,u||p.isHeaderRepeat);}}}};for(let c of e.pages)t.push(c.box.y),s(c.fragments,false);let d={pageTops:t,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return Bp.set(e,d),d}function oa(e,n){let t=Ci(e).pageTops;if(t.length===0)return -1;let r=0,o=t.length-1,a=0;for(;r<=o;){let i=r+o>>1;t[i]<=n?(a=i,r=i+1):o=i-1;}return a}function pS(e,n){let t=e.pages[oa(e,n.y)];if(!t)return false;for(let r of [t.header,t.footer])if(r&&Li(r.box,n))return true;return false}function ud(e,n,t,r=false){if(!e||e.length===0)return null;let o=[...e].sort((a,i)=>a.behindDocument!==i.behindDocument?a.behindDocument?-1:1:i.relativeHeight-a.relativeHeight);for(let a of o){if(r&&a.behindDocument||!ta(a,n))continue;let i={paragraphId:a.anchorParagraphId,offset:a.start};return {position:i,caret:{position:i,x:a.x,y:a.y,height:a.height,lineId:"",pageIndex:t},pageIndex:t,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function ki(e,n,t,r={}){let o=e.pages[n];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??pd,measurer:r.measurer},i=Op(e,o.index,t),l=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),s=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=ud(l,t,a.pageIndex);if(d)return {...d,contentControlId:i};let c=Oi(o.fragments,t,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=ud(s,t,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let f=1;f<e.pages.length;f+=1)for(let p of [n-f,n+f]){let g=e.pages[p];if(!g)continue;let y=Oi(g.fragments,t,{...a,pageIndex:g.index},null);if(y)return {...y,contentControlId:Op(e,g.index,t)}}return null}function dI(e,n,t,r,o={}){let a=e.pages[n];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??pd,measurer:o.measurer};return Oi(t,r,i,null)}function gS(e,n,t={}){let r=e.pages[oa(e,n.y)];if(!r)return null;for(let o of [r.header,r.footer]){if(!o?.anchoredDrawings||o.anchoredDrawings.length===0)continue;let a=Object.freeze({x:n.x-o.box.x,y:n.y-o.box.y}),i=ud(o.anchoredDrawings,a,r.index);if(i)return i}return ki(e,r.index,{x:n.x-r.contentBox.x,y:n.y-r.contentBox.y},t)}function Li(e,n){return n.x>=e.x&&n.x<e.x+e.width&&n.y>=e.y&&n.y<e.y+e.height}function Ei(e,n,t){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===n&&Li(i.box,t)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function Op(e,n,t){return Ei(e,n,t)?.id??null}function fd(e,n,t){let r=Math.max(e.x-n.x,0,n.x-(e.x+e.width)),o=Math.max(e.y-n.y,0,n.y-(e.y+e.height));return r+o*t}function mS(e,n,t){return e.kind!=="table"||Math.max(e.box.y-n.y,0,n.y-(e.box.y+e.box.height))>0?fd(e.box,n,t):0}function Oi(e,n,t,r){if(e.length===0)return null;let o=null;for(let i of e){if(!Li(i.box,n))continue;o=i;let l=Cp(i,n,t,r);if(l)return l;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:mS(i,n,t.verticalWeight)})).sort((i,l)=>i.score-l.score);for(let{block:i}of a){let l=Cp(i,n,t,r);if(l)return l}return null}function Cp(e,n,t,r){return e.kind==="paragraph"?hS(e,n,t,r,Li(e.box,n)):PS(e,n,t)}function hS(e,n,t,r,o){let a=yS(e.lines,n.y);if(!a)return null;let i=SS(a,n.x,n.y,t),l={paragraphId:a.range.paragraphId,offset:i.offset},s=aa(a,i.offset,t.measurer);return {position:l,caret:{position:l,x:i.x,y:s.y,height:s.height,lineId:a.id,pageIndex:t.pageIndex},pageIndex:t.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&n.y>=a.box.y&&n.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?bS(a,i.drawing):null}}function yS(e,n){if(e.length===0)return null;for(let o of e)if(n>=o.box.y&&n<o.box.y+o.box.height)return o;let t=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=n<o.box.y?o.box.y-n:n-(o.box.y+o.box.height);a<r&&(r=a,t=o);}return t}function bS(e,n){return Object.freeze({drawingNodeId:n.drawingNodeId,paragraphId:e.range.paragraphId,start:n.start})}function xS(e,n){for(let t of e.drawings??[])if(t.start===n||t.start+1===n)return t;return null}function ta(e,n){let t=e.hitBounds;return n.x<t.x||n.x>=t.x+t.width||n.y<t.y||n.y>=t.y+t.height?false:Ps(n.x,n.y,e.geometry)}function SS(e,n,t,r){let o=e.spans;for(let s of e.drawings??[])if(ta(s,{x:n,y:t}))return {offset:s.start,x:s.hitBounds.x,withinSpan:true,drawing:s};if(o.length===0&&(e.drawings?.length??0)>0){let s=e.drawings[0];if(n<=s.advanceStart)return {offset:e.range.start,x:s.advanceStart,withinSpan:false,drawing:s};let d=e.drawings[e.drawings.length-1];if(n>=d.advanceEnd)return dd(e,d.advanceEnd,r);for(let c of e.drawings??[])if(n>=c.advanceStart&&n<c.advanceEnd){let u=n>=c.x+c.width/2;return {offset:u?c.start+1:c.start,x:u?c.advanceEnd:c.advanceStart,withinSpan:ta(c,{x:n,y:t}),drawing:c}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=o[0];if(n<=a.box.x)return {offset:e.range.start,x:a.box.x,withinSpan:false};let i=o[o.length-1],l=i.box.x+i.box.width;if(n>=l)return dd(e,l,r);for(let s of o)if(n>=s.box.x&&n<s.box.x+s.box.width)return wS(s,n,r);for(let s=0;s<o.length;s+=1){let d=o[s];for(let c of e.drawings??[]){if(n>=c.advanceStart&&n<c.advanceEnd){let u=ta(c,{x:n,y:t}),f=n>=c.x+c.width/2;return {offset:f?c.start+1:c.start,x:f?c.advanceEnd:c.advanceStart,withinSpan:u,drawing:c}}if(!(c.start<=d.range.start&&c.hitBounds.x+c.hitBounds.width<=d.box.x)){if(ta(c,{x:n,y:t}))return {offset:c.start,x:c.hitBounds.x,withinSpan:true,drawing:c};if(n<d.box.x&&n>=c.hitBounds.x+c.hitBounds.width)return {offset:c.start+1,x:c.hitBounds.x+c.hitBounds.width,withinSpan:false,drawing:c};if(n<c.hitBounds.x&&n>=(o[s-1]?.box.x??e.contentX))return {offset:c.start,x:c.hitBounds.x,withinSpan:false,drawing:c}}}if(n<d.box.x){let c=o[s-1],u=c.box.x+c.box.width;return n-u<=d.box.x-n?{offset:c.range.end,x:u,withinSpan:false}:{offset:d.range.start,x:d.box.x,withinSpan:false}}}return dd(e,l,r)}function dd(e,n,t){let r=Fp(t.layout,e);if(r===e.range.end)return {offset:r,x:n,withinSpan:false};for(let o=e.spans.length-1;o>=0;o-=1){let a=e.spans[o];if(r<a.range.start)continue;let i=r-a.range.start,l=t.measurer?ra(a,i,t.measurer):a.box.width*(a.range.end>a.range.start?i/(a.range.end-a.range.start):0);return {offset:r,x:a.box.x+l,withinSpan:false}}return {offset:r,x:n,withinSpan:false}}function Fp(e,n){let t=n.range.end;if(t>n.range.start&&cd(n,t-1)===chunkEQO762XH_cjs.Wb)return t-1;if(Ci(e).lastLineIdOfParagraph.get(n.range.paragraphId)===n.id)return t;let r=t;for(r>n.range.start&&cd(n,r-1)===`
9
+ `&&(r-=1);r>n.range.start&&cd(n,r-1)===" ";)r-=1;return r}function cd(e,n){for(let t of e.spans)if(!(n<t.range.start||n>=t.range.end))return t.text.length!==t.range.end-t.range.start?null:t.text[n-t.range.start]??null;return null}var kp=new WeakMap,Lp=new WeakMap;function Ep(e){let n=Hl(),t=kp.get(e);if(t&&t.epoch===n)return t.boundaries;let r=[0];for(let o of Mn(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),kp.set(e,{epoch:n,boundaries:r}),r}function ra(e,n,t){let r=e.caretEdges;if(r&&n>=0&&n<r.length)return r[n];let o=Lp.get(t);o||(o=new WeakMap,Lp.set(t,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(n);if(i!==void 0)return i;let l=n<=0?0:Kn(e.text.slice(0,n),e.style,t);return a.set(n,l),l}function gd(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function Mi(e,n,t){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(n-e.range.start,r)),a=e.caretEdges;return a&&o<a.length?e.box.x+a[o]:!t||gd(e)?e.box.x+e.box.width*(o/r):e.box.x+ra(e,o,t)}function aa(e,n,t){let r=xS(e,n);if(r)return {x:n>r.start?r.advanceEnd:r.advanceStart,y:r.y,height:r.height};let o=e.spans;if(o.length===0){let s=e.leading??0;return {x:e.contentX,y:e.box.y+s,height:Math.max(0,e.box.height-s-(e.trailingSpacing??0))}}let a=o[0];for(let s=0;s<o.length;s+=1){let d=o[s];if(n>d.range.start&&n<d.range.end){a=d;break}if(n===d.range.end){let c=o[s+1];if(c&&c.range.start===n&&gd(d)){a=c;break}if(c&&c.range.start===n&&d.text.endsWith(" ")&&c.box.x-(d.box.x+d.box.width)>.25){a=c;break}a=d;}else n>d.range.end&&(a=d);}let i=Mi(a,n,t),l=t?.lineMetrics(a.style);return !l||l.height<=0?{x:i,y:e.box.y,height:e.box.height}:{x:i,y:e.box.y+e.baseline-l.baseline-bs(a.style),height:l.height}}function wS(e,n,t){let r=n-e.box.x,o=e.range.end-e.range.start;if(o<=0||gd(e)){let p=r>e.box.width/2;return {offset:p?e.range.end:e.range.start,x:p?e.box.x+e.box.width:e.box.x,withinSpan:true}}if(!t.measurer){let p=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),g=Math.round(p*o),y=Ep(e),h=y[0],b=Number.POSITIVE_INFINITY;for(let x of y){let v=Math.abs(x-g);v<b&&(b=v,h=x);}return {offset:e.range.start+h,x:e.box.x+e.box.width*(h/o),withinSpan:true}}let a=Ep(e),i=1,l=a.length-1;for(;i<l;){let p=i+l>>1;ra(e,a[p],t.measurer)<r?i=p+1:l=p;}let s=a[i],d=a[i-1],c=ra(e,s,t.measurer),u=ra(e,d,t.measurer),f=r-u<=c-r;return {offset:e.range.start+(f?d:s),x:e.box.x+(f?u:c),withinSpan:true}}function Mp(e,n,t,r){if(e.length===0)return null;for(let i of e){let l=t(i);if(n>=l&&n<l+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let l=t(i),s=n<l?l-n:n-(l+r(i));s<a&&(a=s,o=i);}return o}function RS(e,n,t,r){return {tableId:n.tableId,rowId:t.id,cellId:r.id,rowIndex:Ci(e).rowIndexById.get(t.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function PS(e,n,t,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=Mp(a,n.y,d=>d.box.y,d=>d.box.height);if(l){let d=Mp(l.cells,n.x,c=>c.box.x,c=>c.box.width);d&&i.push(IS(t,l,d));}let s=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||s.push({entry:{row:d,cell:c},score:fd(c.box,n,t.verticalWeight)}));s.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...s.map(u=>u.entry)]){let u=RS(t.layout,e,d,c),f=Oi(c.blocks,n,t,u);if(f)return f}return null}function IS(e,n,t){return t.blocks.length>0?{row:n,cell:t}:Ci(e.layout).mergeOriginOf.get(t)??{row:n,cell:t}}function Ap(e,n){let t=n.paintBounds;return t.width<=0||t.height<=0?null:Object.freeze({pageIndex:e,x:t.x,y:t.y,width:t.width,height:t.height,record:n})}function TS(e,n,t){for(let r of n.lines)for(let o of r.drawings??[])if(o.drawingNodeId===t)return Ap(e,o);return null}function Dp(e,n,t){if(n.kind==="paragraph")return TS(e,n,t);for(let r of n.rows)for(let o of r.cells)for(let a of o.blocks){let i=Dp(e,a,t);if(i)return i}return null}function Np(e,n,t){for(let r of n){let o=Dp(e,r,t);if(o)return o}return null}function vS(e,n){for(let t of e.pages){for(let o of t.anchoredDrawings??[])if(o.drawingNodeId===n)return Ap(t.index,o);let r=Np(t.index,t.fragments,n);if(r)return r;for(let o of [t.header,t.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==n)continue;let l=i.paintBounds;return l.width<=0||l.height<=0?null:Object.freeze({pageIndex:t.index,x:o.box.x+l.x-t.contentBox.x,y:o.box.y+l.y-t.contentBox.y,width:l.width,height:l.height,record:i})}let a=Np(t.index,o.fragments,n);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:t.index,x:t.header?.box.x===o.box.x||t.footer?.box.x===o.box.x?o.box.x+i.x-t.contentBox.x:a.x,y:o.box.y+i.y-t.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}function BS(e){let n=[0],t=0;for(let r of e)t+=r,n.push(t);return n}function OS(e,n){let t=n.get(e.id);return t===void 0&&(e.isHeaderRepeat?t=0:(t=n.size,n.set(e.id,t))),{...e,rowIndex:t}}function Ni(e,n,t,r){return {...e,nestingDepth:t,columnEdges:e.columnEdges??BS(n),rows:e.rows.map(o=>OS(o,r))}}var _p=new WeakMap,Qr=4,md=6,zp=14,CS={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function Hp(e,n,t,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let l of a.rows){o({pageIndex:n,table:a,row:l,rowOrdinal:l.rowIndex,nestingDepth:i,editable:!l.isHeaderRepeat,pageContentBox:t});for(let s of l.cells)Hp(s.blocks,n,t,i+1,o);}}}function fI(e){let n=_p.get(e);if(n)return n;let t=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o];Hp(a.fragments,o,a.contentBox,0,i=>{t.push(i);});}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(t)});return _p.set(e,r),r}function pI(e){let n=e.sourceRevision;switch(e.kind){case "rowDivider":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function gI(e){switch(e.kind){case "rowDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function mI(e,n){if(n.kind==="insertRow"){for(let t of e.occurrences)if(t.pageIndex===n.pageIndex&&t.table.tableId===n.tableId&&t.row.id===n.rowId&&t.row.isHeaderRepeat===n.isHeaderRepeat)return t.editable?{kind:"insertRow",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:t.table.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth}:null;return null}for(let t of e.occurrences)if(t.pageIndex===n.pageIndex&&t.table.tableId===n.tableId&&t.row.id===n.rowId&&t.row.isHeaderRepeat===n.isHeaderRepeat&&t.editable)for(let r=0;r<t.table.columnEdges.length-1;r+=1){let o=ia(t.row,r);if(o===n.gridColumnId)return {kind:"insertColumn",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:t.table.tableId,rowId:t.row.id,gridColumnId:o,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth}}return null}function ia(e,n){for(let t of e.cells)if(t.gridColumn===n)return t.gridColumnId??null;return null}function kS(e,n,t,r,o){let a=e.pages[n.pageIndex];if(!a)return null;let i=t-a.contentBox.x-o,l=r-a.contentBox.y,s=n.table,d=i-s.box.x,c=l-s.box.y;return d<-Qr||c<-zp||d>s.box.width+Qr||c>s.box.height+md?null:{x:d,y:c}}function LS(e,n,t,r,o){if(n.row.isHeaderRepeat)return null;let a=n.table,i=n.row.box.y-a.box.y+n.row.box.height;if(!a.columnEdges.slice(1).some(d=>Math.abs(t-d)<=Qr)&&t>=0&&t<=a.box.width&&Math.abs(r-i)<=Qr)return {kind:"rowDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:a.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeY:i};if(r<n.row.box.y-n.table.box.y||r>n.row.box.y-n.table.box.y+n.row.box.height)return null;for(let d=1;d<a.columnEdges.length-1;d+=1){let c=a.columnEdges[d];if(Math.abs(t-c)>Qr)continue;let u=ia(n.row,d-1),f=ia(n.row,d);if(!u||!f)continue;let p=o.pages[n.pageIndex];return {kind:"columnDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:a.tableId,rowId:n.row.id,leftGridColumnId:u,rightGridColumnId:f,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:c,sheetY:p.contentBox.y+a.box.y+r}}let s=a.columnEdges.at(-1);if(Math.abs(t-s)<=Qr){let d=a.columnEdges.length-2,c=ia(n.row,d);if(!c)return null;let u=o.pages[n.pageIndex];return {kind:"rightEdge",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:a.tableId,rowId:n.row.id,gridColumnId:c,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:s,sheetY:u.contentBox.y+a.box.y+r}}return null}function hI(e,n,t,r,o=0,a){let i=a??oa(r,t),l=i>=0?o:0,s=null,d=-1,c=-1,u=f=>{if(!f)return;let p=CS[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,s=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=kS(r,f,n,t,l);if(!p||(u(LS(e,f,p.x,p.y,r)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let g=f.row.box.y-f.table.box.y;p.x<=md&&Math.abs(p.y-(g+f.row.box.height/2))<=f.row.box.height/2+md&&u({kind:"insertRow",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});for(let y=0;y<f.table.columnEdges.length-1;y+=1){let h=f.table.columnEdges[y],b=f.table.columnEdges[y+1],x=(h+b)/2;if(Math.abs(p.x-x)>(b-h)/2+2||p.y>zp)continue;let v=ia(f.row,y);if(v){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:v,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return s}var jp=1048576;function hd(e=jp){let n=e|0;return {cellsRemaining:n>0?n:0}}function yd(e,n,t,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=new Set,s=i,c=p=>{let g=a.get(p);g&&(o.set(g.id,g.span),a.delete(p));},u=()=>t!==void 0&&t.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}s&&p.isHeaderRepeat!==true&&(s=false,f(),l?.clear());let g=new Set,y=false;for(let h of p.cells){if(t){if(t.cellsRemaining<=0){y=true;break}t.cellsRemaining-=1;}let b=Math.max(0,Math.min(h.gridColumn|0,1023));if(g.add(b),h.vMergeContinue){let x=a.get(b);x?x.span+=1:l&&!l.has(b)&&(a.set(b,{id:h.id,span:1}));}else c(b),a.set(b,{id:h.id,span:1});l?.add(b);}if(y){f();break}for(let h of [...a.keys()])g.has(h)||c(h);}return f(),o}function Gp(e,n,t,r){let o=new Map,a=0,i=l=>{let s=qr(l,n,0,t,r);if(s)for(let d of s.rows)for(let c of d.cells)for(let u of c.blocks)u.localName==="p"?o.set(u.id,a++):u.localName==="tbl"&&i(u);};for(let l of e)l.kind==="paragraph"&&l.paragraph?o.set(l.paragraph.id,a++):l.kind==="table"&&l.table&&i(l.table);return o}var Ai=4096,Wp=1,Tn=class extends Error{code;constructor(n,t){super(t),this.name="TablePaginationError",this.code=n;}};function bd(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0}))}function $p(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function Xp(e,n,t,r,o){let a=$p(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let l=null,s=null,d=i.lines;for(let u of n){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){l=f.box,d=f.lines,s=u.box;break}if(l)break}if(!l)continue;let c=s??Object.freeze({x:i.cellOriginX,y:t,width:i.cellContentWidth,height:r});a($r({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:l,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(l)??l,cellBox:c,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}}function ES(e,n,t,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=n.find(l=>l.kind==="paragraph"&&l.id===o.paragraphId);!a||a.kind!=="paragraph"||In(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,$r({paragraph:a,paragraphId:o.paragraphId,paragraphBox:o.box,lines:o.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(o.box)??o.box,cellBox:t,pageClip:r.pageContentClip(),measurer:r.measurer,...r.layoutTextboxStoryFor?{layoutTextboxStory:r.layoutTextboxStoryFor}:{}}));}}function MS(e,n){let t=$p(e),r=e.deferAnchoredDrawings;return !t&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:t,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{n.push(i);}},flushDeferred:(i,l,s)=>{if(n.length!==0){if(t&&!e.anchorDeferOnly)Xp(n,i,l,s,e);else if(r)for(let d of n)r(d);n.length=0;}}}}function Fi(e,n,t){let r=0;for(let o=n;o<t&&o<e.length;o+=1)r+=e[o];return r}function xd(e,n){return n===0?[...e]:e.map(t=>t.kind==="table"?{...t,box:{...t.box,y:t.box.y+n},rows:t.rows.map(r=>({...r,box:{...r.box,y:r.box.y+n},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+n},blocks:xd(o.blocks,n)}))}))}:{...t,box:{...t.box,y:t.box.y+n},...t.shadingBox?{shadingBox:{...t.shadingBox,y:t.shadingBox.y+n}}:{},...t.bottomBorder?{bottomBorder:{...t.bottomBorder,box:{...t.bottomBorder.box,y:t.bottomBorder.box.y+n}}}:{},...t.borders?{borders:t.borders.map(r=>({...r,box:{...r.box,y:r.box.y+n}}))}:{},...t.marker?{marker:{...t.marker,box:{...t.marker.box,y:t.marker.box.y+n}}}:{},lines:t.lines.map(r=>({...r,box:{...r.box,y:r.box.y+n},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+n}})),...r.drawings?{drawings:r.drawings.map(o=>qa(o,0,n))}:{}}))})}function NS(e,n,t,r,o,a,i){let l=e.id,s=o.listItems?.get(l),{props:d,indent:c,available:u,alignment:f,spacing:p,lineSpacing:g,bottomBorder:y,borders:h,shading:b,inheritedRunProperties:x,markRunProperties:v,tabStops:w,tabStopsCacheToken:z}=Yo(e,t,o.styleCascade,s,i?.tableCellStyle,true),L=Bo(w,o.defaultTabStopPt),M=L===w?z:qt(L),F=vi(s,c,o.measurer,L,u),T=o.pageExclusionZones?.()??Object.freeze([]),B=o.paragraphOrderIndex?.(l)??Number.MAX_SAFE_INTEGER,m=o.paragraphOrderIndex?hf(T,B,ee=>o.paragraphOrderIndex?.(ee)):T,D=mf(m,n,0,{left:0,right:c.left+u+c.right}),W=Jn(D),V=W?`${r.toFixed(3)}|${W}`:"",S=nr({paragraph:e,properties:[...d,...x,...v,{localName:"tabStops",attributes:{token:M}},...s?[{localName:"list",attributes:{token:s.cacheToken}}]:[]],width:u,producer:o.producer,...o.drawingTokenForParagraph?.(e)?{drawingToken:o.drawingTokenForParagraph(e)}:o.drawingLayoutToken?{drawingToken:o.drawingLayoutToken}:{},...V?{exclusionToken:V}:{}}),I=ii(e,l,c.left,u,o.measurer,o.cache,o.cache?S:null,x,L,o.pageContext,o.styleCascade?(ee,re)=>ht(ee,re,o.styleCascade):void 0,{lineSpacing:g,firstLineOffset:F,marginExtent:{left:0,right:c.left+u+c.right},...o.projectLink?{projectLink:o.projectLink}:{},displayMode:o.displayMode,...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:c.left+u+c.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:c.left+u+c.right,height:Math.max(1,u)}),...D.length>0?{pageExclusionZones:D}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:v}),O=i?.lineStart??0,N=i?.fragmentIndex??0,C=i?.maxBottom??Number.POSITIVE_INFINITY,_=i?.includeAfter??true,E=i?.includeBottomBorder??true,X=O===0?Er(p.before,a):0,H=n+c.left,K=O===0?Tt(h.top):0,G=[],U=r+X+K,se=O,xe=false;for(let ee=O;ee<I.length;ee+=1){let re=I[ee],k=ee===I.length-1,R=k&&E&&y?Tt(y):0,$=k&&_?p.after:0,J=D.length>0?mt(U,re.height,D):re.exclusionSkipBefore??0;if(U+J+re.height+R+$>C+.001)break;U+=J;let fe=n+c.left+(ee===0?F:0),ve=Math.max(1,u-(ee===0?F:0)),be=re.spans.map(Re=>({...Re,range:{...Re.range,paragraphId:l},box:{...Re.box,x:Re.box.x+n,y:U}})),Ze=oi(be,o.measurer,fe,ve,f,k,f==="center"||f==="right"?re.width:void 0),ze=be.length>0&&Ze.length>0?Ze[0].box.x-be[0].box.x:f!=="left"&&f!=="both"?(()=>{let Re=ve-re.width;return Re<=0?0:f==="center"?Re/2:Re})():0,Qe=Object.freeze({x:n,y:r,width:t,height:Math.max(0,C-r)}),en=ai(re.drawings.map(Re=>Ja(Object.freeze({...Re,paragraphId:l,x:n+Re.x,advanceStart:n+Re.advanceStart,advanceEnd:n+Re.advanceEnd,y:U+Re.y,paintBounds:Object.freeze({...Re.paintBounds,x:n+Re.paintBounds.x,y:U+Re.paintBounds.y}),hitBounds:Object.freeze({...Re.hitBounds,x:n+Re.hitBounds.x,y:U+Re.hitBounds.y})}),Qe)),ze);G.push({id:o.nextLineId(l,re.start,ee),range:{paragraphId:l,start:re.start,end:re.end},spans:Ze,...en.length>0?{drawings:en}:{},box:{x:n+c.left,y:U,width:u,height:re.height},contentX:Ze[0]?.box.x??fe+ze,baseline:re.baseline,leading:re.leading,trailingSpacing:re.trailingSpacing,...re.deletedRanges?{deletedRanges:re.deletedRanges}:{}}),U+=re.height,se=ee+1,xe=true;}if(!xe)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:O,complete:false,fitted:false};let pe=se>=I.length,Se=G[0].box.y,Oe=U,he=[],ue,ye=Se,Me=Oe,Te=h.left?fn(h.left):0,an=h.right?fn(h.right):0,rn=h.left?H-h.left.spacePt-Te:H,Ne=h.right?H+u+h.right.spacePt+an:H+u,Qn=Math.max(Ne-rn,0);if(K>0&&h.top){let ee=fn(h.top),re=Se-h.top.spacePt-ee;he.push({side:"top",edge:h.top,box:{x:rn,y:re,width:Qn,height:ee}}),ye=re;}if(pe&&E&&y){let ee=fn(y),re=Oe+y.spacePt,k={x:rn,y:re,width:Qn,height:ee};ue={edge:y,box:k},he.push({side:"bottom",edge:y,box:k}),Me=re+ee;}let et=Math.max(Me-ye,0);if(h.left&&he.push({side:"left",edge:h.left,box:{x:H-h.left.spacePt-Te,y:ye,width:Te,height:et}}),h.right&&he.push({side:"right",edge:h.right,box:{x:H+u+h.right.spacePt,y:ye,width:an,height:et}}),h.bar){let ee=fn(h.bar);he.push({side:"bar",edge:h.bar,box:{x:H-h.bar.spacePt-ee,y:Se,width:ee,height:Math.max(Oe-Se,0)}});}let we=pe&&_?p.after:0,on=Me+we,vn=b===void 0?void 0:h.left||h.right?{x:rn,y:ye,width:Qn,height:Math.max(Me-ye,0)}:To(G,H,u),q=O===0?Bi(s,o.measurer,G[0]?{y:G[0].box.y,height:G[0].box.height}:void 0,n):void 0,_n={kind:"paragraph",id:`${l}#f${N}`,paragraphId:l,fragmentIndex:N,range:{paragraphId:l,start:G[0].range.start,end:G[G.length-1].range.end},props:d,spacing:{before:X,after:we},indent:c,...ue?{bottomBorder:ue}:{},...he.length>0?{borders:he}:{},...b===void 0?{}:{shading:b},...vn===void 0?{}:{shadingBox:vn},...q?{marker:q}:{},lines:G,box:{x:H,y:r,width:u,height:on-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let ee=Object.freeze({x:n,y:r,width:t,height:Math.max(0,C-r)}),re=_n.box,k={paragraph:e,paragraphId:l,paragraphBox:re,lines:G};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...k,cellOriginX:n,cellContentWidth:t}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings($r({paragraph:e,paragraphId:l,paragraphBox:re,lines:G,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(re)??re,cellBox:ee,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}return {fragment:_n,bottom:on,spaceAfter:we,nextLineIndex:se,complete:pe,fitted:true}}function ir(e,n,t,r,o,a){let i=Vp(e,n,t,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0});return {blocks:i.blocks,bottom:i.bottom}}function Vp(e,n,t,r,o,a,i,l,s){let d=[],c=r,u=l.previousSpaceAfter,f=l.blockIndex,p=l.lineIndex,g=l.paragraphFragmentIndex,y=false,h=false;for(;f<e.length;){let b=e[f];if(b.kind==="table"){p!==0&&(p=0),u=0;let v=DS(b,n,t,c,a+1,i);if(!v){f+=1;continue}if(v.bottom>o+.001){h=!y;break}d.push(v.fragment),c=v.bottom,y=true,f+=1,p=0;continue}if(b.kind!=="paragraph"){f+=1,p=0;continue}let x=NS(b,n,Math.max(1,t-n),c,i,u,{lineStart:p,fragmentIndex:g,maxBottom:o,includeAfter:true,includeBottomBorder:true,...s?{tableCellStyle:s}:{}});if(!x.fitted||!x.fragment)break;if(d.push(x.fragment),c=x.bottom,y=true,x.complete)u=x.spaceAfter,f+=1,p=0,g=0;else return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:x.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:g+1},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:p,previousSpaceAfter:u,paragraphFragmentIndex:g},complete:f>=e.length,fitted:y,nestedSplitBlocked:h}}function Yp(e,n){return {top:e.top+or(n.top),right:e.right+or(n.right),bottom:e.bottom+or(n.bottom),left:e.left+or(n.left)}}function FS(e,n,t){return {top:n?{state:"none"}:e.top,left:e.left,bottom:t?{state:"none"}:e.bottom,right:e.right}}function Kp(e,n,t){return !n&&!t?e:{...e,cells:e.cells.map(r=>({...r,borders:FS(r.borders,n,t)}))}}function la(e,n,t,r,o,a,i,l=0){let s=Sd(e,n,t,r,Number.POSITIVE_INFINITY,o,false,a,i,bd(e),l);return {record:s.record,bottom:s.bottom}}function Sd(e,n,t,r,o,a,i,l,s,d,c=0){let u=Fi(n,0,n.length),f=Number.isFinite(c)&&c>0?c/2:0,p=s.measurer.lineMetrics(Yn).height,g=e.height,y=g.rule==="exact"?g.valuePt:void 0,h=g.rule==="atLeast"?g.valuePt:void 0,b=[],{rowDeps:x,flushDeferred:v}=MS(s,b),w=a&&s.pageOccurrenceKey?{...x,nextLineId:(S,I,O)=>x.nextLineId(S,I,O,s.pageOccurrenceKey())}:x,z=y===void 0?o:Math.min(o,r+Math.max(0,y)),L=[],M=false,F=false,T=r;for(let S=0;S<e.cells.length;S+=1){let I=e.cells[S],O=d[S]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0},N=I.gridSpan,C=I.gridColumn,_=t+Fi(n,0,C),E=Fi(n,C,Math.min(C+N,n.length))||u,X=Math.min(f,Math.max((E-Wp)/2,0)),H=_+X,K=Math.max(E-2*X,Wp),G=Yp(I.margins,I.borders),U=i?or(I.borders.top):G.top,se=r+U,xe=z-G.bottom,pe=[],Se=se,Oe=O,he=true,ue=false,ye=false;if(!I.vMergeContinue)if(xe<se+.001)he=O.blockIndex>=I.blocks.length;else {let Te=Vp(I.blocks,H+G.left,H+K-G.right,se,xe,l,w,O,I.styleFormatting);pe=Te.blocks,Se=Te.bottom,Oe=Te.cursor,he=Te.complete,ue=Te.fitted,ye=Te.nestedSplitBlocked,ue&&(M=true),ye&&(F=true);}let Me=Math.min(z,ue?Se+G.bottom:r+U+p+G.bottom);Me>T&&(T=Me),L.push({cell:I,x:H,width:K,gridColumn:C,blocks:pe,contentTop:se,contentBottom:Se,insets:{...G,top:U},nextCursor:Oe,complete:I.vMergeContinue?true:he,fitted:ue,nestedSplitBlocked:ye});}T=Math.min(z,Math.max(T,r));for(let S of L){let I=S.fitted?S.contentBottom+S.insets.bottom:r+S.insets.top+p+S.insets.bottom;I>T&&I<=z+.001&&(T=I);}T=Math.min(z,T);let B=false;if(y!==void 0){let S=r+y;S<=o+.001?(T=S,B=true):T=Math.min(o,T);}else if(h!==void 0){let S=r+h;L.every(O=>O.complete)&&S<=o+.001&&S>T&&(T=S);}T=Math.min(o,T);let m=Math.max(0,T-r),D=L.map(S=>{let I=S.blocks,O=B?true:S.complete;if(!S.cell.vMergeContinue&&O&&S.cell.vAlign!=="top"&&I.length>0){let N=S.contentBottom-S.contentTop,C=m-S.insets.top-S.insets.bottom-N;if(C>0){let _=S.cell.vAlign==="center"?C/2:C;I=xd(I,_);}}return {id:S.cell.id,gridColumn:S.gridColumn,...S.cell.gridColumnId?{gridColumnId:S.cell.gridColumnId}:{},gridSpan:S.cell.gridSpan,vMergeContinue:S.cell.vMergeContinue,...S.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...S.cell.shading===void 0?{}:{shading:S.cell.shading},blocks:I,box:{x:S.x,y:r,width:S.width,height:m}}}),W=B||L.every(S=>S.complete)?null:L.map(S=>S.nextCursor),V=B||L.every(S=>S.complete);return v(D,r,m),{record:{id:e.id,...e.revisionKind?{revisionKind:e.revisionKind}:{},...e.revisionId!==void 0?{revisionId:e.revisionId}:{},...e.revisionAuthor!==void 0?{revisionAuthor:e.revisionAuthor}:{},...e.revisionDate!==void 0?{revisionDate:e.revisionDate}:{},rowIndex:0,isHeaderRepeat:a,...i?{isContinuation:true}:{},cells:D,box:{x:t,y:r,width:u,height:m}},bottom:T,remainder:V?null:W,fitted:M||e.cells.every(S=>S.vMergeContinue)||B,nestedSplitBlocked:F}}function AS(e){return {...e,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function wd(e,n,t,r,o,a=0){let i=0,l={...AS(o),pageExclusionZones:void 0,nextLineId:()=>`probe-${i++}`};return la(e,n,t,0,false,r,l,a).record.box.height}function Rd(e,n,t,r,o,a,i,l){if(e.length===0)return [];let s=new Map;for(let h of t)for(let b of h.cells)s.set(b.id,b);let d=yd(e,a,o,{pageFragment:true}),c=e.map((h,b)=>({...h,cells:h.cells.map(x=>{let v=d.get(x.id);if(x.vMergeContinue&&v===void 0)return {...x,paintInert:true,rowSpan:1,borders:{},blocks:[]};let w=x.vMergeContinue,z=v??1,L=x.box.height;if(z>1){let B=e[b+z-1];L=B.box.y+B.box.height-x.box.y;}let M=s.get(x.id),F=x.blocks;if(M&&M.vAlign!=="top"&&F.length>0){let B=Yp(M.margins,M.borders),m=Number.POSITIVE_INFINITY,D=Number.NEGATIVE_INFINITY;for(let W of F)m=Math.min(m,W.box.y),D=Math.max(D,W.box.y+W.box.height);if(Number.isFinite(m)&&Number.isFinite(D)){let W=L-B.top-B.bottom-(D-m),S=x.box.y+B.top+(W>0?M.vAlign==="center"?W/2:W:0)-m;if(Math.abs(S)>.001){F=xd(F,S);for(let I of F)I.kind==="paragraph"&&i?.(I.paragraphId,S);}}}let T=Object.freeze({x:x.box.x,y:x.box.y,width:x.box.width,height:L});return M&&l&&(z>1||M.vAlign!=="top"&&F.length>0)&&ES(F,M.blocks,T,l),{...x,...w?{vMergeContinue:false,paintInert:false}:{},rowSpan:z,blocks:F,box:{...x.box,height:L}}})})),u=c.map(h=>h.cells.map(b=>{let x=s.get(b.id);return {gridColumn:b.gridColumn,gridSpan:b.gridSpan,vMergeContinue:b.vMergeContinue,borders:x?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:b.rowSpan??1}})),f=n.columnWidthsPt.length,p=n.tableBorders,g={columnWidthsPt:n.columnWidthsPt,rowBands:c.map(h=>({y:h.box.y,height:h.box.height})),cellBoxes:c.map(h=>h.cells.map(b=>({width:b.box.width,height:b.box.height})))},y=Ys(u,p,f,g,void 0,r);return c.map((h,b)=>({...h,cells:h.cells.map((x,v)=>{let w=y[b][v];return x.paintInert||x.vMergeContinue?{...x,borders:{},paintInert:true}:{...x,borders:w}})}))}function DS(e,n,t,r,o,a){if(o>=Pi)return null;let i=Math.max(1,t-n),l=qr(e,i,o,a.styleCascade,a.displayMode);if(!l||l.rows.length===0)return null;let s=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:h=>{s.push(h);}},c=n+ea(l,i),u=[],f=r;for(let h of l.rows){let b=la(h,l.columnWidthsPt,c,f,false,o,d,l.cellSpacingPt);u.push(b.record),f=b.bottom;}let p=Rd(u,l,l.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let h of s)for(let b of p)if(b.cells.some(v=>v.blocks.some(w=>w.kind==="paragraph"&&w.paragraphId===h.paragraphId))){Xp([h],b.cells,b.box.y,b.box.height,a);break}let g=Fi(l.columnWidthsPt,0,l.columnWidthsPt.length),y=new Map;return {fragment:Ni({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:p,box:{x:c,y:r,width:g,height:f-r}},l.columnWidthsPt,o,y),bottom:f}}function _S(e){let n=e.root;if(n.localName==="hdr"||n.localName==="ftr")return n;let t=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=t(o);if(a)return a}}};return t(n)}function Pd(e,n){return !(e.kind==="paragraph"&&Uo(e,n))}function xt(e,n="all-markup"){let t=_S(e);return t?chunkEQO762XH_cjs.Ob(t.children,0,r=>Pd(r,n)):[]}function Di(e,n="all-markup"){return e.kind!=="note"?[]:chunkEQO762XH_cjs.Ob(e.children,0,t=>Pd(t,n))}function Up(e,n="all-markup"){return e.kind==="textValue"?[]:chunkEQO762XH_cjs.Ob(e.children,0,t=>Pd(t,n))}function Zp(e){let n=e.picture;return n?.embeddedRelationshipId?`embed:${e.ownerPartName}:${n.embeddedRelationshipId}`:n?.linkedRelationshipId?`link:${e.ownerPartName}:${n.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}function qp(e){let n=new Map,t=[{node:e.root,depth:0}],r=0;for(;t.length>0;){let o=t.pop();if(r+=1,r>chunkEQO762XH_cjs.Za||o.depth>chunkEQO762XH_cjs.Xa.maxDrawingDepth)return null;let{node:a}=o;if(a.kind==="drawing"||chunkEQO762XH_cjs.$a(a)){n.set(a.id,a);continue}if("children"in a)for(let i=a.children.length-1;i>=0;i-=1)t.push({node:a.children[i],depth:o.depth+1});}return n}function Id(e){let n=e.position,t=e.anchor,r=e.picture,o=e.wrapGeometry;return [e.drawingNodeId,e.ownerPartName,e.kind,e.hidden?"1":"0",String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left),e.compatibilityBranchNodeId??"",t?.simplePos?"sp":"pv",t?String(t.relativeHeight):"",t?t.layoutInCell?"1":"0":"",r?[String(r.crop.left),String(r.crop.top),String(r.crop.right),String(r.crop.bottom),String(r.transform.rotationDegrees),r.transform.flipHorizontal?"1":"0",r.transform.flipVertical?"1":"0",String(r.transform.offsetEmu.x),String(r.transform.offsetEmu.y),String(r.transform.extentEmu.cx),String(r.transform.extentEmu.cy),r.embeddedRelationshipId??"",r.linkedRelationshipId??"",r.presetGeometry??""].join(":"):"",o?[o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length)].join(":"):"",n?[n.horizontal.relativeFrom,n.horizontal.align??"",String(n.horizontal.offsetEmu??""),n.vertical.relativeFrom,n.vertical.align??"",String(n.vertical.offsetEmu??""),String(n.simplePosition.xEmu),String(n.simplePosition.yEmu)].join(":"):""].join("|")}function _i(e){switch(e.kind){case "ready":return `ready:${e.resourceKey}:${e.contentId}:${e.pixelWidth}x${e.pixelHeight}`;case "pending":return `pending:${e.resourceKey}`;case "external":return `external:${e.relationshipId}:${e.sinkSafe?"1":"0"}`;case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var zS=1;function Td(e,n){if(e.kind==="drawing"||chunkEQO762XH_cjs.$a(e)){n.push(e.id);return}if("children"in e)for(let t of e.children)Td(t,n);}function HS(e){if(e.kind!=="paragraph")return [];let n=[];for(let t of e.children)Td(t,n);return Object.freeze(n)}function jS(e){let{ownerPartName:n,part:t,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:l}=e,s=false,d=0,c=new Map,u=new Set,f=new Map,p=new WeakMap,g=new WeakMap,y=0,h=chunkEQO762XH_cjs._a(r,n),b=chunkEQO762XH_cjs.db(t,{resolveRelationship:h}),x=qp(t),v=(T,B)=>{if(s||u.has(B))return;u.add(B);let m=d;o.resolveForProjection(T).then(D=>{s||m!==d||(c.set(B,D),D.kind==="ready"&&i(D.validatedHandle),y+=1,f.set(B,y),a(n));}).catch(()=>{s||m!==d||(c.set(B,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),y+=1,f.set(B,y),a(n));}).finally(()=>{u.delete(B);});},w=T=>{let B=Zp(T),m=c.get(B);if(m)return m;let D=T.picture?.linkedRelationshipId;if(D){let V=o.resolveLinked(n,D);return c.set(B,V),y+=1,f.set(B,y),V}let W=Object.freeze({kind:"pending",resourceKey:B});return c.set(B,W),y+=1,f.set(B,y),v(T,B),W},z=T=>b.get(T)??null,L=Object.freeze({ownerPartName:n,projectionForAtom:z,project:T=>z(T.id),resourceOf:w}),M=T=>{let B=g.get(T);if(B)return B;let m=HS(T),D=null,W=(S,I)=>{if(!(I>=zS))for(let O of S){let N=b.get(O)?.textboxStory;if(!N)continue;let C=[];if(Td(N.content,C),C.length!==0){D||(D=[...m]);for(let _ of C)D.push(_);W(C,I+1);}}};W(m,0);let V=D??m;return g.set(T,V),V};return {context:L,cacheTokenForPart:()=>`${n}|${y}|${d}|${b.size}`,drawingTokenForParagraph:T=>{let B=p.get(T);if(B?.resourceEpoch===y)return B.token;let m=M(T);if(m.length===0)return p.set(T,{resourceEpoch:y,token:""}),"";let W=m.map(V=>{let S=b.get(V);if(!S)return `${V}:refused`;let I=w(S);return [V,Id(S),_i(I),String(f.get(Zp(S))??0)].join("|")}).sort().join(";");return p.set(T,{resourceEpoch:y,token:W}),W},isCompatibleWith:(T,B)=>{if(T===t)return true;let m=qp(T);if(x&&m&&x.size===m.size){let W=true;for(let[V,S]of x)if(m.get(V)!==S){W=false;break}if(W)return true}let D=chunkEQO762XH_cjs.db(T,{resolveRelationship:chunkEQO762XH_cjs._a(B,n)});if(D.size!==b.size)return false;for(let[W,V]of b){let S=D.get(W);if(!S||Id(S)!==Id(V))return false}return true},dispose:()=>{s=true,d+=1;for(let T of c.values())T.kind==="ready"&&l(T.validatedHandle);c.clear(),u.clear(),f.clear();}}}function XI(e){let n=e.session.packageRevision(),t=e.session.currentPackage(),r=e.resourceLookup??chunkEQO762XH_cjs.qb(t,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new Map,l=new Map,s=p=>{i.set(p.resourceKey,p);let g=chunkEQO762XH_cjs.fb(p);g&&l.set(p.resourceKey,g);},d=p=>{i.delete(p.resourceKey);let g=l.get(p.resourceKey);g&&(chunkEQO762XH_cjs.gb(g),l.delete(p.resourceKey));},c=(p,g)=>{let h=g.currentPackage().parts.get(p)??a.get(p);if(h)return h;if(p===g.part().name)return g.part();throw new Error(`Missing inline drawing part ${p}`)},u=(p,g)=>{let y=c(p,g);a.set(p,y);let h=o.get(p);return h||(h=jS({ownerPartName:p,part:y,pkg:g.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:s,forgetReadyHandle:d}),o.set(p,h),h)},f=p=>{let g=p.currentPackage();if(g.partBytes===t.partBytes&&g.relationships===t.relationships&&g.contentTypes===t.contentTypes){for(let[h,b]of o){let x=g.parts.get(h)??(h===p.part().name?p.part():void 0);if(x&&b.isCompatibleWith(x,g)){a.set(h,x);continue}b.dispose(),o.delete(h),a.delete(h);}n=p.packageRevision(),t=g;return}for(let h of o.values())h.dispose();o.clear(),a.clear();for(let h of l.values())chunkEQO762XH_cjs.gb(h);l.clear(),i.clear(),e.resourceLookup||r.dispose(),n=p.packageRevision(),t=g,r=e.resourceLookup??chunkEQO762XH_cjs.qb(g,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return u(e.session.part().name,e.session).context},contextForPart(p){return u(p,e.session).context},cacheTokenForPart(p){return u(p,e.session).cacheTokenForPart()},drawingTokenForParagraph(p,g){return u(g,e.session).drawingTokenForParagraph(p)},mintValidatedBytes(p,g){let y=i.get(p.resourceKey);return !y||y.contentId!==p.contentId?null:chunkEQO762XH_cjs.eb(p,g)},sync(p){p.packageRevision()!==n&&f(p);},dispose(){for(let p of o.values())p.dispose();o.clear(),a.clear();for(let p of l.values())chunkEQO762XH_cjs.gb(p);l.clear(),i.clear(),e.resourceLookup||r.dispose();}})}function Jp(e,n){let t=[],r=o=>{if(o.kind==="paragraph"){let a=n(o);a&&t.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),t.sort().join(";")}function WS(e){let n=t=>{if(t.kind==="textValue"||chunkEQO762XH_cjs.cc(t)||chunkEQO762XH_cjs.ac(t)!==null)return false;if(t.kind==="text"||t.localName==="t"){for(let r of t.children)if(r.kind==="textValue"&&r.value.trim().length>0)return true;return false}for(let r of t.children)if(r.kind!=="textValue"&&n(r))return true;return false};for(let t of e.children)if(t.kind!=="textValue"&&n(t))return true;return false}function tg(e,n){for(let t of n.resultParagraphIds){let r=chunkEQO762XH_cjs.Ea(e,t);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&WS(r))return true}return false}var Qp=new WeakMap,eg=new WeakMap,ng=new WeakMap;function vd(e){let n=Qp.get(e);if(n)return n;let t=new Set;for(let r of chunkEQO762XH_cjs.wc(e))t.add(r.beginParagraphId),t.add(r.endParagraphId);return Qp.set(e,t),t}function Bd(e){let n=eg.get(e);if(n)return n;let t=new Set;for(let r of chunkEQO762XH_cjs.wc(e))tg(e,r)||t.add(r.beginParagraphId);return eg.set(e,t),t}function Od(e){let n=ng.get(e);if(n)return n;let t=new Set;for(let r of chunkEQO762XH_cjs.wc(e))if(!tg(e,r))for(let o of r.resultParagraphIds)t.add(o);return ng.set(e,t),t}var zi=4096,Nt=20,Dn=Object.freeze({pageSize:Object.freeze({widthTwips:12240,heightTwips:15840}),margins:Object.freeze({topTwips:1440,rightTwips:1440,bottomTwips:1440,leftTwips:1440,headerTwips:720,footerTwips:720,gutterTwips:0}),columns:Object.freeze({count:1,gapTwips:720,equalWidth:true,separator:false,definitions:Object.freeze([])}),landscape:false,titlePage:false,breakType:"nextPage"});function Cd(e,n,t=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return n;let r=Number(e);return !Number.isFinite(r)||r<=0||r>t?n:r}function lr(e,n){if(e===void 0||!/^-?\d{1,7}$/.test(e))return n;let t=Number(e);return !Number.isFinite(t)||Math.abs(t)>31680?n:t}function og(e,n,t=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return n;let r=Number(e);return !Number.isFinite(r)||r<0||r>t?n:r}var Ve=(e,n)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let t of e.attributes??[])if(t.localName===n)return t.value}},sr=(e,n)=>{if(e.kind!=="textValue"){for(let t of e.children??[])if(t.kind!=="textValue"&&"localName"in t&&t.localName===n)return t}};function rg(e,n,t){let r=Ve(e,n);return r===void 0?t:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:t}function GS(e){if(!e)return 1;let n=Ve(e,"num");return !n||!/^\d{1,7}$/.test(n)?1:Math.max(1,Math.min(12,Number(n)))}function $S(e,n,t){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=n||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:Cd(Ve(o,"w"),1,31680),gapTwips:a===n-1?0:og(Ve(o,"space"),t)});}return r}function XS(e){let n=e?sr(e,"type"):void 0,t=n?Ve(n,"val"):void 0;return t==="continuous"||t==="evenPage"||t==="oddPage"||t==="nextColumn"?t:"nextPage"}var VS=new Set(["hyphen","period","colon","emDash","enDash"]);function ag(e){let n=sr(e,"pgNumType");if(!n||n.kind==="textValue")return;let t={},r=Ve(n,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let l=Number(r);Number.isFinite(l)&&l>=0&&l<=9999&&(t.start=l);}let o=Ve(n,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(t.fmt=o);let a=Ve(n,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let l=Number(a);Number.isFinite(l)&&l>=0&&l<=9&&(t.chapStyle=l);}let i=Ve(n,"chapSep");return i!==void 0&&VS.has(i)&&(t.chapSep=i),t}function Hi(e){if(!e)return Dn;let n=sr(e,"pgSz"),t=sr(e,"pgMar"),r=sr(e,"cols"),o=Dn,a=n?Ve(n,"orient"):void 0,i=n?Cd(Ve(n,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,l=n?Cd(Ve(n,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,s=ag(e),d=GS(r),c=r?og(Ve(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?rg(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:l},margins:{topTwips:t?lr(Ve(t,"top"),1440):o.margins.topTwips,rightTwips:t?lr(Ve(t,"right"),1440):o.margins.rightTwips,bottomTwips:t?lr(Ve(t,"bottom"),1440):o.margins.bottomTwips,leftTwips:t?lr(Ve(t,"left"),1440):o.margins.leftTwips,headerTwips:t?lr(Ve(t,"header"),720):o.margins.headerTwips,footerTwips:t?lr(Ve(t,"footer"),720):o.margins.footerTwips,gutterTwips:t?lr(Ve(t,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?rg(r,"sep",false):false,definitions:u?[]:$S(r,d,c)},landscape:a==="landscape"||i>l,titlePage:chunkEQO762XH_cjs.sa(e,"titlePg"),breakType:XS(e),...s!==void 0?{pageNumbering:s}:{}}}function YS(e){let n=t=>{if(t.kind!=="textValue"){if(t.kind==="body")return sr(t,"sectPr");for(let r of t.children??[]){let o=n(r);if(o)return o}}};return n(e.root)}function ji(e){let n=e.children.find(r=>r.kind==="paragraphProperties");if(!n)return;let t=sr(n,"sectPr");return t&&t.kind!=="textValue"?t:void 0}function KS(e){let n=ig(e);return n[n.length-1]?.properties??Dn}function ig(e,n="all-markup"){return lg(e,n).sections}function lg(e,n="all-markup"){return kd(e,xt(e,n))}function kd(e,n){let t=[],r=0,o=false;for(let i=0;i<n.length;i+=1){let l=n[i];if(l.kind!=="paragraph")continue;let s=ji(l);if(s){if(t.length>=zi){o=true;continue}t.push({index:t.length,properties:Hi(s),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(t.length>0){let i=t[t.length-1];t[t.length-1]={...i,blockEndExclusive:n.length};}return {sections:t,truncated:true}}let a=YS(e);if(r<n.length||t.length===0){if(t.length>=zi){let i=t[t.length-1];return t[t.length-1]={...i,blockEndExclusive:n.length},{sections:t,truncated:true}}t.push({index:t.length,properties:Hi(a),blockStart:r,blockEndExclusive:n.length});}else if(a){if(t.length>=zi)return {sections:t,truncated:true};t.push({index:t.length,properties:Hi(a),blockStart:r,blockEndExclusive:n.length});}return {sections:t,truncated:o}}function dr(e){let n=e.pageSize.widthTwips/Nt,t=e.pageSize.heightTwips/Nt,r=(e.margins.leftTwips+e.margins.gutterTwips)/Nt,o=e.margins.rightTwips/Nt,a=e.margins.topTwips/Nt,i=e.margins.bottomTwips/Nt;return n-r-o<=0||t-a-i<=0?So:{width:n,height:t,margin:{top:a,right:o,bottom:i,left:r},headerDistance:Math.max(0,e.margins.headerTwips)/Nt,footerDistance:Math.max(0,e.margins.footerTwips)/Nt}}function Ld(e,n){let t=Math.max(1,n),r=Math.max(1,Math.min(12,Math.floor(e.count))),o=e.definitions??[],a=e.equalWidth===false&&o.length===r&&o.every(c=>c.widthTwips>0),i,l;if(a){i=o.map(p=>Math.max(1,p.widthTwips/20)),l=o.slice(0,-1).map(p=>Math.max(0,p.gapTwips/20));let c=l.reduce((p,g)=>p+g,0),u=Math.max(r*1,t-c),f=i.reduce((p,g)=>p+g,0);if(f>u){let p=u/f;i=i.map(g=>Math.max(1,g*p));}}else {let c=Math.max(0,e.gapTwips/20),u=Math.min(c,Math.max(0,(t-r*1)/(r-1||1)));l=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(1,(t-l.reduce((p,g)=>p+g,0))/r);i=Array.from({length:r},()=>f);}let s=[],d=0;for(let c=0;c<r;c+=1)s.push(d),d+=i[c]+(l[c]??0);return {count:r,widths:i,gaps:l,lefts:s,separator:e.separator===true&&r>1}}function US(e,n,t){return sa(e,n,()=>t)}function sa(e,n,t){let r=[],o=null,a=-1,i=-1;for(let l of n){let s=t(l.sectionIndex);if(l.customMarkFollows){r.push({noteId:l.noteId,mark:null});continue}o===null?(o=s.numStart,a=l.sectionIndex,i=l.pageIndex??-1):s.numRestart==="eachSect"&&l.sectionIndex!==a?(o=s.numStart,a=l.sectionIndex):s.numRestart==="eachPage"&&l.pageIndex!==void 0&&l.pageIndex!==i?(o=s.numStart,i=l.pageIndex):s.numRestart==="eachSect"?a=l.sectionIndex:s.numRestart==="eachPage"&&l.pageIndex!==void 0&&(i=l.pageIndex);let d=o;o+=1,r.push({noteId:l.noteId,mark:ut(s.numFmt,d),displayNumber:d});}return r}function sg(e){let n=new Map;for(let t of e)n.set(t.noteId,t.mark);return n}var eo=chunkEQO762XH_cjs.td,da=512,Ed=6,ZS=1/3;function dg(e,n){return `note-${e}-${n}`}function qS(e){if(!e)return [];let n=[];for(let t of chunkEQO762XH_cjs.vd(e.root)){if(n.length>=eo)break;chunkEQO762XH_cjs.md(t)&&n.push(t);}return n}function cg(e,n){if(e){for(let t of chunkEQO762XH_cjs.vd(e.root))if(chunkEQO762XH_cjs.ld(t)===n)return t}}function Md(e,n,t){let r=chunkEQO762XH_cjs.jd(e),o=chunkEQO762XH_cjs.kd(e);if(!r||o===null)return null;let a=chunkEQO762XH_cjs.ad(r,o),i=Di(e),l=dg(r,o),s=0,d=Math.max(1,n),c=t.maxFlowHeightPt??Number.POSITIVE_INFINITY,u=t.noteMarks?{...t.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},f=t.ownerPartName?t.drawingsForPart?.(t.ownerPartName):void 0,p=ir(i,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|${a}`,nextLineId:()=>`${l}-line-${s++}`,styleCascade:t.styleCascade,noteMarks:u,...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...f?{inlineDrawingLayout:f.inlineDrawingLayout,...f.drawingTokenForParagraph?{drawingTokenForParagraph:f.drawingTokenForParagraph}:{}}:{}}),g=p.blocks,y=p.bottom,h;if(g.length>da){g=g.slice(0,da);let b=g[g.length-1];y=b?b.box.y+b.box.height:0,h="note-fragment-limit";}if(y>c){let b=[],x=0;for(let v of g){let w=v.box.y+v.box.height;if(w>c+.001&&b.length>0)break;b.push(v),x=w;}g=b,y=x,h=h??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkEQO762XH_cjs.ld(e),fragments:g,flowHeight:y,...h?{fallbackReason:h}:{}}}function Wi(e,n,t,r){if(!e)return null;let o=chunkEQO762XH_cjs.wd(e.root,n);return o?Md(o,t,{...r,ownerPartName:e.name}):null}function ug(e,n){return "single"}function fg(e){let n=Di(e);if(n.length===0)return true;for(let t of n){if(t.kind!=="paragraph")return false;let r=t.children.find(o=>o.kind==="paragraphProperties");if(Object.keys(st(r)).length>0||!JS(t))return false}return true}function JS(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="paragraphProperties"){if(n.kind==="run"){if(!QS(n))return false;continue}return false}return true}function QS(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="runProperties"&&!(chunkEQO762XH_cjs.hd(n)||chunkEQO762XH_cjs.id(n)||chunkEQO762XH_cjs.gd(n))){if(n.kind==="text"){if(n.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function ca(e,n,t,r,o,a){let i=ug(),l=cg(e,n);if(l){if(fg(l))return {kind:n,fragments:[],flowHeight:Ed,synthetic:false,ruleStyle:i};let s=Md(l,t,{...r,...e?{ownerPartName:e.name}:{}});if(s&&s.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return s.flowHeight>d+.001?{kind:n,fragments:[],flowHeight:Ed,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:n,fragments:s.fragments,flowHeight:s.flowHeight,synthetic:false}}}return {kind:n,fragments:[],flowHeight:Ed,synthetic:true,ruleStyle:i}}function pg(e,n){let t=Math.max(1,e*ZS);return {x:0,y:Math.max(0,(n-.75)/2),width:t,height:.75}}function Gi(e,n,t,r){if(e.ruleStyle!==void 0||e.synthetic){let o=pg(t,e.flowHeight);return {x:n+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:n,y:r,width:t,height:e.flowHeight}}var Fd=8,bg=4096,xg=256,Sg=14,Ad=12;function Dd(e,n){return n>=e.range.start&&n<e.range.end}function wg(e){let n=[],t=r=>{for(let o of r){if(o.kind==="paragraph"){n.push(o);continue}for(let a of o.rows)if(!a.isHeaderRepeat)for(let i of a.cells)t(i.blocks);}};return t(e),n}function zd(e){let n=new Map;for(let t of e){let r=n.get(t.paragraphId);r?r.push(t):n.set(t.paragraphId,[t]);}return n}function Xi(e,n,t){let r=wg(e.fragments);if(!t)return n.filter(i=>r.some(l=>l.paragraphId===i.paragraphId&&Dd(l,i.atomOffset)));let o=[],a=new Set;for(let i of r){let l=t.get(i.paragraphId);if(l)for(let s of l)a.has(s)||Dd(i,s.atomOffset)&&(a.add(s),o.push(s));}return o}function Rg(){let e=new Map;return {get(n,t,r,o,a,i,l){let d=`${n?.name??"none"}\0${o}\0${t}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=ca(n,t,r,i,o,a);return e.set(d,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function e0(e,n){let t=[];for(let r of e){if(t.length>=eo)break;t.push({...r,sectionIndex:n.get(r.paragraphId)??0});}return t}function no(e,n){return e.footnotePropsBySection[n]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function Hd(e,n){return e.endnotePropsBySection[n]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function Pg(e,n){return {measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,defaultTabStopPt:e.defaultTabStopPt,noteMarks:n,drawingsForPart:e.drawingsForPart}}function n0(e,n){return n===0?e:{...e,box:{...e.box,y:e.box.y+n},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+n}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+n}}}:{},...e.borders?{borders:e.borders.map(t=>({...t,box:{...t.box,y:t.box.y+n}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+n}}}:{},lines:e.lines.map(t=>({...t,box:{...t.box,y:t.box.y+n},spans:t.spans.map(r=>({...r,box:{...r.box,y:r.box.y+n}}))}))}}function gg(e,n){return n===0?[...e]:e.map(t=>t.kind==="paragraph"?n0(t,n):{...t,box:{...t.box,y:t.box.y+n}})}function t0(e,n){if(e.lines.length===0)return e.box.y+e.box.height<=n+.001?{head:e,tail:null}:{head:null,tail:e};let t=0;for(;t<e.lines.length;t+=1){let y=e.lines[t];if(y.box.y+y.box.height>n+.001)break}if(t===0)return {head:null,tail:e};if(t>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,t),o=e.lines.slice(t),a=r[r.length-1],i=e.box.y,l=a.box.y+a.box.height,s=e.borders?.filter(y=>y.side!=="bottom"),d={...e,range:{paragraphId:e.paragraphId,start:r[0].range.start,end:a.range.end},spacing:{before:e.spacing.before,after:0},lines:r,box:{...e.box,height:Math.max(0,l-i)},...s&&s.length>0?{borders:s}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,l-e.shadingBox.y)}}:{}},c=o[o.length-1],u=o[0].box.y,f=c.box.y+c.box.height,p=e.borders?.filter(y=>y.side!=="top"),g={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:o[o.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:o,box:{x:e.box.x,y:u,width:e.box.width,height:Math.max(0,f-u)},marker:void 0,...p&&p.length>0?{borders:p}:{borders:void 0},...e.bottomBorder?{bottomBorder:e.bottomBorder}:{},...e.shadingBox?{shadingBox:{x:e.shadingBox.x,y:u,width:e.shadingBox.width,height:Math.max(0,f-u)}}:{}};return {head:d,tail:g}}function r0(e){let n=0;for(let t of e)n=Math.max(n,t.box.y+t.box.height);return n}function Vi(e,n,t){if(e.flowHeight<=n+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(n<=.001)return {head:[],headHeight:0,tail:e.fragments,tailHeight:e.flowHeight};let r=[],o=0,a=0,i=null;for(let u=0;u<e.fragments.length&&u<da;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=n+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let g=t0(f,n);if(g.head)r.push(g.head),o=g.head.box.y+g.head.box.height,i=g.tail,a=u+1;else {let y=t?.fullContentHeight??n,b=f.lines[0]?.box.height??f.box.height;if(r.length===0&&n>=y-.001&&b>y+.001){t?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let x=e.fragments.slice(a),v=x[0]?.box.y??0;return {head:[],headHeight:0,tail:gg(x,-v),tailHeight:Math.max(0,e.flowHeight-v)}}a=u,i=null;}break}a=u;break}let l=[...i?[i]:[],...e.fragments.slice(a)];if(l.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let s=l[0]?.box.y??0,d=gg(l,-s),c=r0(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}function o0(e,n){let t="FootnoteReference";if(!n)return {...Yn,verticalAlign:"superscript"};let r=ht([],[{localName:"rStyle",attributes:{val:t}}],n);return dn(r,n.themeFonts)}function a0(e,n,t,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(n.footnotePropsBySection.length,n.endnotePropsBySection.length,1,...t.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=no(n,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<Ad;p+=1){let g=ut(u.numFmt,u.numStart+p);g.length>0&&o.add(g);}}let f=Hd(n,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<Ad;p+=1){let g=ut(f.numFmt,f.numStart+p);g.length>0&&o.add(g);}}}if(!i||o.size===0)return;let l=o0("footnote",n.styleCascade),s,d=-1;for(let c of o){let u=n.measurer.measure(c,l);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(s?.length??0))&&(s=c,d=u);}return s}function Ig(e,n,t){let r=sa("footnote",e,l=>no(t,l)),o=sa("endnote",n,l=>Hd(t,l)),a=new Map;for(let l of r)a.set(er("footnote",l.noteId),l.mark);for(let l of o)a.set(er("endnote",l.noteId),l.mark);let i=a0(a,t,e,n);return {marks:a,...i?{reservedMarkText:i}:{}}}function Yi(e){let n=0;for(let t of e.fragments)n=Math.max(n,t.box.y+t.box.height);return n}function _d(e){let{footnotes:n,endnotes:t,noteStream:r,...o}=e;return o}function i0(e,n){if(n.marks.size===0)return e;let t=false,r=e.pages.map(o=>{let a=Tg(o.fragments,n);return a===o.fragments?o:(t=true,{...o,fragments:a})});return t?{revision:e.revision,pages:r}:e}function Tg(e,n){let t=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=l0(o,n);return l!==o&&(t=true),l}let a=false,i=o.rows.map(l=>{let s=false,d=l.cells.map(c=>{let u=Tg(c.blocks,n);return u===c.blocks?c:(s=true,{...c,blocks:u})});return s?(a=true,{...l,cells:d}):l});return a?(t=true,{...o,rows:i}):o});return t?r:e}function l0(e,n){let t=false,r=e.lines.map(o=>{let a=s0(o,n);return a!==o&&(t=true),a});return t?{...e,lines:r}:e}function s0(e,n){let t=false,r=e.spans.map(o=>{let a=d0(o,n);return a!==o&&(t=true),a});return t?{...e,spans:r}:e}function d0(e,n){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let t=n.marks.get(e.noteNav.scopeId);if(t===void 0)return e;let r=t??"";return e.text===r?e:{...e,text:r}}function c0(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function vg(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function u0(e){for(let n=e.length-1;n>=0;n-=1)if(vg(e[n]))return n;return Math.max(0,e.length-1)}function jd(e,n,t,r,o,a,i,l){let s=new Map(a),d=n.filter(S=>S.noteKind==="footnote"),c=e.contentBox.width,u=Pg(t,r),f=[],p=0,g=bg,y=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),b=l?.separatorCache?l.separatorCache.get(t.footnotesPart,y,c,"footnote",h,u,i):(()=>{let S=ca(t.footnotesPart,y,c,u,"footnote",h);return S.fallbackReason&&i.push(S.fallbackReason),S})(),x=Math.max(0,e.contentBox.height-Yi(e)-b.flowHeight),v=Math.max(0,e.contentBox.height-Sg-b.flowHeight),w=l?.reserveColumnBudget?v:x,L={fullContentHeight:Math.max(0,e.contentBox.height-b.flowHeight),reasons:i};for(let[S,I]of a){let O=S.match(/^(footnote|endnote):(-?\d+)$/);if(!O||O[1]!=="footnote")continue;let N=Number(O[2]),C=Math.max(0,w-p);if(I.height<=C+.001)f.push({noteKind:"footnote",noteId:N,scopeId:S,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:I.height},fragments:I.fragments}),p+=I.height,s.delete(S);else {let _=Vi({fragments:I.fragments,flowHeight:I.height},C,L);_.head.length>0&&(f.push({noteKind:"footnote",noteId:N,scopeId:S,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:_.headHeight},fragments:_.head}),p+=_.headHeight),_.tail.length>0?s.set(S,{fragments:_.tail,height:_.tailHeight,mark:null}):s.delete(S);}}for(let S of d){if(f.length>=eo){i.push("note-count-limit");break}let I=Wi(t.footnotesPart,S.noteId,c,u);if(!I){i.push("missing-note-body");continue}let O=r.marks.get(er("footnote",S.noteId))??null,N=Math.max(0,w-p);if(g-=I.fragments.length,g<0){i.push("note-area-fragment-limit");break}if(I.flowHeight<=N+.001)f.push({noteKind:"footnote",noteId:S.noteId,scopeId:I.scopeId,mark:S.customMarkFollows?null:O,box:{x:e.contentBox.x,y:0,width:c,height:I.flowHeight},fragments:I.fragments}),p+=I.flowHeight;else {let C=Vi(I,N,L);C.head.length>0&&(f.push({noteKind:"footnote",noteId:S.noteId,scopeId:I.scopeId,mark:S.customMarkFollows?null:O,box:{x:e.contentBox.x,y:0,width:c,height:C.headHeight},fragments:C.head}),p+=C.headHeight),C.tail.length>0&&s.set(I.scopeId,{fragments:C.tail,height:C.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:s};let M=b.flowHeight,F=M+p,T=Yi(e),B;o==="beneathText"?B=e.contentBox.y+T:(B=e.contentBox.y+e.contentBox.height-F,B=Math.max(B,e.contentBox.y+T));let m=B+M,D=f.map(S=>{let I={...S,box:{...S.box,y:m}};return m+=S.box.height,I}),W=Gi(b,e.contentBox.x,c,B);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:B,width:c,height:F},separator:{kind:y,box:W,fragments:b.fragments,synthetic:b.synthetic,...b.ruleStyle!==void 0?{ruleStyle:b.ruleStyle}:{}},notes:D},nextCarry:s}}function Bg(e,n,t){return {id:`page-${n}`,index:n,box:e.box,contentBox:e.contentBox,fragments:[],...t?{noteStream:t}:{},...e.header?{header:e.header}:{},...e.footer?{footer:e.footer}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+(n-e.index)}}:{}}}function Wd(e,n){let t=new Set;for(let r of wg(e.fragments))t.add(n.get(r.paragraphId)??0);return [...t].sort((r,o)=>r-o)}function Og(e,n,t){for(let r=e.length-1;r>=0;r-=1)if(Wd(e[r],t).includes(n))return r;return Math.max(0,e.length-1)}function f0(e,n,t){let r=Og(e,n,t);for(let o=r+1;o<e.length;o+=1){let a=e[o];if(a.noteStream==="footnote-drain"||a.noteStream==="endnote-overflow"||a.fragments.length===0&&(a.footnotes?.notes.length??0)>0)continue;let i=Wd(a,t);if(i.length!==0&&!i.includes(n))return o}return e.length}function p0(e){return e.map((n,t)=>n.index===t&&n.id===`page-${t}`?n:{...n,id:`page-${t}`,index:t})}function g0(e){let n=p0(e);return [...Ct({revision:0,pages:n}).pages]}function m0(e,n,t,r,o,a,i,l){let s=new Map(a),d=[];if(n.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};let c=e.contentBox.width,u=Pg(t,r),f=l?.separatorKind??"separator",p=N=>N==="footnote"?t.footnotesPart:t.endnotesPart,g=t.endnotesPart??t.footnotesPart,y=Math.max(0,e.contentBox.height),h=l?.separatorCache?l.separatorCache.get(g,f,c,"endnote",y,u,i):(()=>{let N=ca(g,f,c,u,"endnote",y);return N.fallbackReason&&i.push(N.fallbackReason),N})(),b=h.flowHeight,x=Yi(e),v=e.endnotes?Math.max(x,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):x,w=c0(e),z=Math.max(0,w-v-b),M={fullContentHeight:Math.max(0,w-b),reasons:i},F=[],T=0,B=bg;for(let[N,C]of a){let _=N.match(/^(footnote|endnote):(-?\d+)$/);if(!_)continue;let E=_[1],X=Number(_[2]),H=Math.max(0,z-T);if(C.height<=H+.001)F.push({noteKind:E,noteId:X,scopeId:N,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:C.height},fragments:C.fragments}),T+=C.height,s.delete(N);else {let K=Vi({fragments:C.fragments,flowHeight:C.height},H,M);K.head.length>0&&(F.push({noteKind:E,noteId:X,scopeId:N,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:K.headHeight},fragments:K.head}),T+=K.headHeight),K.tail.length>0?s.set(N,{fragments:K.tail,height:K.tailHeight,mark:null}):s.delete(N);}}for(let N=0;N<n.length;N+=1){let C=n[N];if(F.length>=eo){i.push("note-count-limit"),d.push(...n.slice(N));break}let _=p(C.noteKind),E=Wi(_,C.noteId,c,u);if(!E){i.push("missing-note-body");continue}let X=r.marks.get(er(C.noteKind,C.noteId))??null,H=Math.max(0,z-T);if(B-=E.fragments.length,B<0){i.push("note-area-fragment-limit"),d.push(...n.slice(N));break}if(E.flowHeight<=H+.001)F.push({noteKind:C.noteKind,noteId:C.noteId,scopeId:E.scopeId,mark:C.customMarkFollows?null:X,box:{x:e.contentBox.x,y:0,width:c,height:E.flowHeight},fragments:E.fragments}),T+=E.flowHeight;else {let K=Vi(E,H,M);K.head.length>0&&(F.push({noteKind:C.noteKind,noteId:C.noteId,scopeId:E.scopeId,mark:C.customMarkFollows?null:X,box:{x:e.contentBox.x,y:0,width:c,height:K.headHeight},fragments:K.head}),T+=K.headHeight),K.tail.length>0&&s.set(E.scopeId,{fragments:K.tail,height:K.tailHeight,mark:null}),d.push(...n.slice(N+1));break}}if(F.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};if(F.length===0)return {area:void 0,nextCarry:s,remainingRefs:d};let m=e.contentBox.y+v,D=m+b,W=F.map(N=>{let C={...N,box:{...N.box,y:D}};return D+=N.box.height,C}),V=Gi(h,e.contentBox.x,c,m),S=b+T,I=Math.max(0,w-v),O=Math.min(S,I);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:m,width:c,height:O},separator:{kind:f,box:V,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:W},nextCarry:s,remainingRefs:d}}function h0(e,n,t,r,o,a,i){let l=e,s=n;for(;s.size>0&&a.remaining>0;){let d=l[l.length-1],c=Bg(d,d.index+1,"footnote-drain"),u=jd(c,[],t,r,"pageBottom",s,o,{separatorCache:i}),f=u.area?.notes.length??0;if(s=u.nextCarry,f===0){o.push("note-overflow-stalled"),u.area&&(l=[...l,{...c,footnotes:u.area}],a.remaining-=1);break}l=[...l,{...c,footnotes:u.area}],a.remaining-=1;}return s.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:l,carry:s}}function y0(e,n,t,r="endnote-overflow"){let o=Bg(t,n,r);return {pages:[...e.slice(0,n),o,...e.slice(n)],pageIndex:n}}function mg(e,n,t){if(t<=n||n>=e.length)return e;let r=Math.min(t,e.length),o=e[n],a=o.pageFieldSource?.pageNumber??n+1,i=o.pageFieldSource?.format,l=r-n,s=[...e];for(let d=n;d<r;d+=1){let c=s[d];s[d]={...c,pageFieldSource:{pageNumber:a+(d-n),sectionPageCount:l,...i?{format:i}:{}}};}return s}function hg(e,n,t,r,o,a,i,l,s){if(t.length===0||e.length===0)return e;let d=[...e],c=[...t],u=new Map,f=n,p=0,g="separator",y=s?.stopBeforeIndex??Number.POSITIVE_INFINITY,h=s?.sectionStartIndex??n,b=s?.stopBeforeIndex!==void 0,x=s?.separatorCache;for(;c.length>0||u.size>0;){if(f>=d.length||f>=y){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let L=d[Math.min(Math.max(f,1),d.length)-1]??d[d.length-1],M=Math.min(f,y,d.length),F=y0(d,M,L,"endnote-overflow");d=F.pages,f=F.pageIndex,b&&(y=M+1),p+=1,l.remaining-=1;}let v=d[f];if(!vg(v)){f+=1;continue}let w=m0(v,c,r,o,a,u,i,{separatorKind:g,...x?{separatorCache:x}:{}});u=w.nextCarry,c=w.remainingRefs;let z=w.area?.notes.length??0;if(w.area){let L=d[f];d[f]={...L,endnotes:L.endnotes?{...w.area,notes:[...L.endnotes.notes,...w.area.notes],box:{...w.area.box,y:L.endnotes.box.y,height:L.endnotes.box.height+w.area.box.height}}:w.area};}else {if(u.size===0&&c.length===0)break;if(!w.area&&u.size===0&&c.length>0){f+=1,g="separator";continue}}if(z===0&&(u.size>0||c.length>0)&&v.fragments.length===0&&v.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(u.size>0||c.length>0){g="continuationSeparator",f+=1;continue}break}return (c.length>0||u.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),b?d=mg(d,h,Math.min(y,d.length)):p>0&&(d=mg(d,h,d.length)),d}function Cg(e,n,t,r){let o=new Map,a=[],i=new Map,l=zd(n),s=Rg();for(let c of e.pages){let u=_d(c),p=Xi(u,n,l).filter(w=>w.noteKind==="footnote"),g=p[0]?.sectionIndex??0,y=no(t,g);if(y.pos==="sectEnd"||y.pos==="docEnd")continue;let h=Math.max(0,u.contentBox.height-Sg),{area:b,nextCarry:x}=jd(u,p,t,r,y.pos,i,a,{reserveColumnBudget:true,separatorCache:s});i=x;let v=Math.min(b?.box.height??0,h);if(v>0){let w=o.get(c.index)??0;o.set(c.index,Math.max(w,v));}}let d=true;for(let c of e.pages){let u=o.get(c.index)??0;if(u<=0)continue;if(Yi(_d(c))+u>c.contentBox.height+.5){d=false;break}}return {reserves:o,stable:d,reasons:a}}function kg(e,n,t,r){let o=[...r?.fallbackReasons??[]],a=r?.paragraphSectionIndex??new Map,i={remaining:xg},l=zd(n),s=Rg(),d=[],c=[];for(let x of e.pages)for(let v of Xi(x,n,l)){let w={noteId:v.noteId,sectionIndex:v.sectionIndex,pageIndex:x.index,customMarkFollows:v.customMarkFollows};v.noteKind==="footnote"?d.push(w):c.push(w);}let u=Ig(d,c,t),f=new Map,p=new Map,g=[],y=e.pages.map(x=>{let v=_d(x),w=Xi(x,n,l),z=w.filter(B=>B.noteKind==="footnote"),L=w.filter(B=>B.noteKind==="endnote");for(let B of L)if(Hd(t,B.sectionIndex).pos==="sectEnd"){let D=p.get(B.sectionIndex)??[];D.push(B),p.set(B.sectionIndex,D);}else g.push(B);for(let B of z){let m=no(t,B.sectionIndex);if(m.pos==="sectEnd"){let D=p.get(B.sectionIndex)??[];D.push(B),p.set(B.sectionIndex,D);}else m.pos==="docEnd"&&g.push(B);}let M=z[0]?.sectionIndex??0,F=no(t,M),T;if(F.pos==="pageBottom"||F.pos==="beneathText"){let B=z.filter(D=>{let W=no(t,D.sectionIndex).pos;return W==="pageBottom"||W==="beneathText"}),m=jd(v,B,t,u,F.pos,f,o,{separatorCache:s});T=m.area,f=m.nextCarry;}return {...v,...T?{footnotes:T}:{}}}),h=y.length;if(f.size>0){let x=h0(y,f,t,u,o,i,s);y=x.pages,f=x.carry;}if(p.size>0&&y.length>0){let x=[...p.keys()].sort((v,w)=>v-w);for(let v of x){let w=p.get(v),z=Og(y,v,a),L=f0(y,v,a),M=z;for(let F=0;F<=z;F+=1)if(Wd(y[F],a).includes(v)){M=F;break}y=hg(y,z,w,t,u,"sectEnd",o,i,{stopBeforeIndex:L,sectionStartIndex:M,separatorCache:s});}}return g.length>0&&y.length>0&&(y=hg(y,u0(y),g,t,u,"docEnd",o,i,{separatorCache:s})),y.length!==h&&(y=g0(y)),{layout:i0({revision:e.revision,pages:y},u),fallbackReasons:o,noteMarks:u}}function b0(e){return chunkEQO762XH_cjs.Vd(e).map(n=>({noteKind:n.noteKind,noteId:n.noteId,paragraphId:n.paragraphId,atomOffset:n.atomOffset,customMarkFollows:n.customMarkFollows}))}function x0(e,n){let t=new Map,r=xt(e);for(let o=0;o<n.length;o+=1){let a=n[o];for(let i=a.blockStart;i<a.blockEndExclusive;i+=1){let l=r[i];if(!l)continue;if(l.kind==="paragraph"){t.set(l.id,o);continue}let s=(d,c)=>{if(!(c>32)&&d.kind!=="textValue"){if(d.kind==="paragraph"){t.set(d.id,o);return}for(let u of d.children)s(u,c+1);}};s(l,0);}}return t}function cr(e){let n=new Map;for(let[t,r]of e)r>0&&n.set(t,r);return n}function Nd(e,n){let t=cr(e),r=cr(n);if(t.size!==r.size)return false;for(let[o,a]of t)if((r.get(o)??0)!==a)return false;return true}function yg(e,n){let t=cr(e);for(let[r,o]of n)o<=0||t.set(r,Math.max(t.get(r)??0,o));return t}function $i(e){return [...cr(e)].map(([n,t])=>`${n}=${t}`).sort().join(",")}function Lg(e,n,t,r,o){let a=b0(e),i=x0(e,n),l=e0(a,i),s=Eg(l,r),d=t.session?.notePageBottomReserves,c=d?cr(d):new Map,u=[],f=o({...t,noteMarks:s,pageBottomReserves:c}),p=new Set([$i(c)]);for(let y=0;y<Fd;y+=1){let h=Cg(f,l,r,s);if(u=[...h.reasons],h.stable&&Nd(h.reserves,c))break;let b=h.stable?cr(h.reserves):yg(c,h.reserves);if(Nd(b,c)){u.push("note-reflow-exhausted");break}let x=$i(b);if(p.has(x)){b=yg(c,h.reserves);let v=$i(b);if(Nd(b,c)||p.has(v)){u.push("note-reflow-exhausted");break}}c=b,p.add($i(c)),f=o({...t,noteMarks:s,pageBottomReserves:c}),y===Fd-1&&u.push("note-reflow-exhausted");}let g=kg(f,l,r,{fallbackReasons:u,paragraphSectionIndex:i});return t.session&&(t.session.previous=g.layout,t.session.notePageBottomReserves=cr(c)),g.layout}function Eg(e,n){let t=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?t.push(a):r.push(a);}return Ig(t,r,n)}var Mg=new WeakMap;function Ng(e){let n=Mg.get(e);if(n!==void 0)return n;let t=e.kind==="table"?JSON.stringify([e.id,e.tableId,e.fragmentIndex,e.nestingDepth,e.columnEdges,e.box,e.rows]):JSON.stringify([e.id,e.box,e.range,e.props,e.spacing,e.indent,e.bottomBorder,e.borders,e.shading,e.shadingBox,e.marker,e.lines.map(r=>[r.id,r.box,r.contentX,r.baseline,r.spans])]);return Mg.set(e,t),t}function Fg(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1){let r=e[t],o=n[t];if(r!==o&&Ng(r)!==Ng(o))return false}return true}function Ag(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(e[t]!==n[t])return false;return true}var S0=4,Dg=256;function w0(e){return `txbx-${e}`}function Ki(e,n){let t=e.textboxStory;if(!t)return null;let r=Je(e.extentEmu.cx),o=Je(e.extentEmu.cy),a=Je(t.insetsEmu.left),i=Je(t.insetsEmu.right),l=Je(t.insetsEmu.top),s=Je(t.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-l-s),u=Je(t.strokeWidthEmu),f={fillHex:t.fillHex,strokeHex:t.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((n.depth??0)>=S0)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:l},...f,fallbackReason:"textbox-nesting-limit"};let g=Up(t.content,n.displayMode),y=w0(e.drawingNodeId),h=0,b=ir(g,0,d,0,0,{measurer:n.measurer,cache:n.cache,producer:`${n.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${y}-line-${h++}`,styleCascade:n.styleCascade,...n.pageContext?{pageContext:n.pageContext}:{},...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...n.displayMode?{displayMode:n.displayMode}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:{}}),x=b.blocks,v=b.bottom,w;if(x.length>Dg){x=x.slice(0,Dg);let M=x[x.length-1];v=M?M.box.y+M.box.height:0,w="textbox-fragment-limit";}if(v>c+.001){let M=x.filter(F=>F.box.y<c-.001);M.length<x.length&&(x=M,w=w??"textbox-height-clip");}let z=Math.max(0,c-v),L=t.verticalAnchor==="center"?z/2:t.verticalAnchor==="bottom"?z:0;return {fragments:x,flowHeight:v,contentOffset:{x:a,y:l+L},...f,...w?{fallbackReason:w}:{}}}var R0=128;function P0(e){return chunkMHDO6HLI_cjs.y(chunkEQO762XH_cjs.wa(e))}function I0(e){let n=Math.max(1,Math.floor(e)),t=new Map;return {get(r){let o=t.get(r);if(o!==void 0)return t.delete(r),t.set(r,o),o},set(r,o){for(t.has(r)&&t.delete(r),t.set(r,o);t.size>n;){let a=t.keys().next();if(a.done)break;t.delete(a.value);}},get size(){return t.size}}}function T0(e,n,t,r,o,a,i,l=R0,s,d,c,u,f,p){let g=fs(e.root),y=I0(l),h=xt(e),b=P0(e),x,v=w=>{let z=Ot(g)||c?w:void 0,L=z?.pageNumber??p?.pageNumber??1,M=ys(z,g)+(c?`|pn:${L}`:"");if(M===""){if(x)return x}else {let V=y.get(M);if(V)return V}let F=0,T=[],B=()=>{let V=z?.pageNumber??p?.pageNumber??1,S=p?.pageWidth??n,I=p?.pageHeight??Math.max(1,n),O=p?.marginLeft??0,N=p?.marginRight??0,C=p?.marginTop??0,_=p?.marginBottom??0,E=Math.max(1,I-C-_);return Object.freeze({pageNumber:V,pageWidth:S,pageHeight:I,marginLeft:O,marginRight:N,marginTop:C,marginBottom:_,contentWidth:n,contentHeight:E,physicalContentHeight:E,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},m=Object.freeze([]),D;if(c){let V=false;for(let S=0;S<tr;S+=1){T.splice(0,T.length),F=0,D=ir(h,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+M+(d?`|rev:${d}`:""),nextLineId:()=>`hf-${e.name}-line-${F++}`,styleCascade:a,pageContext:z,...s!==void 0?{defaultTabStopPt:s}:{},...d?{displayMode:d}:{},inlineDrawingLayout:c,anchorFrameBase:B,pageContentClip:()=>zo(B()),layoutTextboxStoryFor:O=>Ki(O,{measurer:t,producer:r+M+(d?`|rev:${d}`:""),cache:o,styleCascade:a,...z?{pageContext:z}:{},...s!==void 0?{defaultTabStopPt:s}:{},...d?{displayMode:d}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{}}),collectAnchoredDrawings:O=>{T.push(...O);},columnBoxForParagraph:O=>Object.freeze({x:0,y:O.y,width:n,height:O.height}),pageExclusionZones:()=>m,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}});let I=Ds(T,c,0,n);if(I.length===0){V=true,m=I;break}if(S>0&&Jn(m)===Jn(I)){V=true,m=I;break}m=I;}if(!V)throw new Xr(`header/footer exclusion reflow did not converge within ${tr} passes`)}else D=ir(h,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+M+(d?`|rev:${d}`:""),nextLineId:()=>`hf-${e.name}-line-${F++}`,styleCascade:a,pageContext:z,...s!==void 0?{defaultTabStopPt:s}:{},...d?{displayMode:d}:{}});let W={partName:e.name,contentKey:b,fragments:D.blocks,flowHeight:D.bottom,pageFieldNeeds:g,...T.length>0?{anchoredDrawings:Object.freeze([...T])}:{},withPageContext:V=>!Ot(g)&&!W.anchoredDrawings?.length?x??W:v(V)};return M===""?x=W:y.set(M,W),W};return v(i)}function Gd(e,n,t){let r=t-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let f={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return f;let p=u.pageFieldProjector;return {...f,pageFieldProjector:g=>{let y=p(g);return {...y,box:o(y.box)}}}},i=u=>{if(u)return {...u,box:o(u.box),...u.separator?{separator:{...u.separator,box:o(u.separator.box)}}:{},notes:u.notes.map(f=>({...f,box:o(f.box)}))}},l=a(e.header),s=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${n}`,index:n,box:o(e.box),contentBox:o(e.contentBox),...l?{header:l}:{},...s?{footer:s}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}function Ui(){return {previous:null,checkpoints:[],keys:[],context:"",startLineCounter:0,endLineCounter:0,endCursorY:0,endSpaceAfter:0,endsOpenPage:true,stats:{placed:0,total:0,reusedPages:0,fullPasses:0},balanceLimit:null,multi:null,notePageBottomReserves:null}}function _g(e,n){return [...e].map(([t,r])=>`${t}=${r.flowHeight}`).sort().join(",")}function Hg(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${_g(e.headers)};f:${_g(e.footers)}`:""}function Zi(e,n,t){if(e.sectionFurniture)return e.sectionFurniture[n];if(n===t-1)return e.furniture}function v0(e,n){return e.map((t,r)=>{let o=dr(t.properties),a=Zi(n,r,e.length),i=t.properties.pageNumbering,l=i?`pn:${i.start??""},${i.fmt??""},${i.chapStyle??""},${i.chapSep??""}`:"pn:",s=t.properties.columns,d=`cols:${s.count},${s.gapTwips},${s.equalWidth===false?0:1},${s.separator?1:0};${(s.definitions??[]).map(c=>`${c.widthTwips}/${c.gapTwips}`).join(",")}`;return [t.blockStart,t.blockEndExclusive,t.properties.breakType,o.width,o.height,o.margin.top,o.margin.right,o.margin.bottom,o.margin.left,o.headerDistance??36,o.footerDistance??36,Hg(a),l,d].join(":")}).join("|")}function B0(e,n,t){if(!e)return null;let r=e.multi;if(r&&r.structureKey===n&&r.sections.length===t)return r;let o={structureKey:n,sections:Array.from({length:t},()=>Ui()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1};return e.multi=o,o}function O0(e){return e!=="continuous"}function C0(e,n){return e.width===n.width&&e.height===n.height}function k0(e,n){if(n.fragments.length===0&&!n.columnSeparators?.length&&!n.anchoredDrawings?.length)return e;let t=e.anchoredDrawings||n.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...n.anchoredDrawings??[]]):void 0;return {...e,fragments:n.fragments.length>0?[...e.fragments,...n.fragments]:e.fragments,...(e.columnSeparators?.length||n.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...n.columnSeparators??[]]},...t?{anchoredDrawings:t}:{}}}function zg(e,n,t){e.previous=n,e.startLineCounter=0,e.endLineCounter=t,e.keys=[],e.checkpoints=[],e.context="";}function jg(e,n,t,r,o){let{session:a,...i}=r,l=v0(n,r),s=B0(a,l,n.length),d=[],c=[],u=[],f=0,p=0,g=0,y=0,h=0,b=0,x=0,v=true,w=null,z="",L=1;for(let T=0;T<n.length;T+=1){let B=n[T],m=e.slice(B.blockStart,B.blockEndExclusive),D=dr(B.properties),W=Zi(r,T,n.length),V=d.length,S=f,I=s?.spans[T],O=Hg(W);if(m.length===0&&!O0(B.properties.breakType)){u.push({startIndex:V,pageCount:0,sheetY:S,remappedPages:[]});continue}let N=T>0&&B.properties.breakType==="continuous"&&d.length>0&&v&&w!==null&&C0(w,D)&&z===O,C=s?.sections[T],_=B.properties.columns.count>1&&n[T+1]?.properties.breakType==="continuous",E=o(m,t,{...i,geometry:D,furniture:W,sectionColumns:B.properties.columns,..._?{balanceColumns:_}:{},lineCounterStart:p,pageIndexStart:N?V-1:V,...N?{flowStartY:b,spaceBeforeCarry:x}:{},...C?{session:C}:{}});p=E.lineCounter,b=E.endCursorY,x=E.endSpaceAfter,v=E.endsOpenPage,w=D,z=O,C?(g+=C.stats.placed,y+=C.stats.total):(g+=m.length,y+=m.length);let X=C!==void 0&&C.stats.placed===0&&C.stats.reusedPages===E.pages.length&&I!==void 0&&I.pageCount===E.pages.length,H=I!==void 0&&I.startIndex===V&&I.sheetY===S&&I.remappedPages.length===E.pages.length,K=B.properties.pageNumbering,G=K?.start!==void 0?K.start:L,U=K?.fmt,se;if(N){let xe=d.length-1,pe=d[xe],Se=k0(pe,E.pages[0]);if(Se!==pe){d[xe]=Se;let ue=c.lastIndexOf(pe);ue!==-1&&(c[ue]=Se);}let Oe=[];for(let ue of E.pages.slice(1)){let ye=Gd(ue,d.length+Oe.length,f);Oe.push(ye),f=ye.box.y+ye.box.height+24;}let he=Oe.length+1;se=Dr(Oe,G+1,he,U);for(let ue of se)d.push(ue),c.push(ue);L=G+he;}else if(X&&H){se=I.remappedPages,h+=se.length;for(let xe of se)d.push(xe),c.push(xe),f=xe.box.y+xe.box.height+24;L=G+se.length;}else {let xe=[];for(let pe of E.pages){let Se=Gd(pe,d.length+xe.length,f);xe.push(Se),f=Se.box.y+Se.box.height+24;}se=Dr(xe,G,xe.length,U);for(let pe of se)d.push(pe),c.push(pe);L=G+se.length;}u.push({startIndex:V,pageCount:se.length,sheetY:S,remappedPages:se});}if(d.length===0){let T=dr(n[0]?.properties??Dn),B=o([],t,{...i,geometry:T,sectionColumns:n[0]?.properties.columns??Dn.columns}),m=Ct({revision:t,pages:B.pages});return s&&(s.spans=[],s.previousRemapped=B.pages,s.previousFinalized=m,s.previousPageCount=m.pages.length),a&&(zg(a,m,p),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),m}let M=Ct({revision:t,pages:d}),F=M;if(s?.previousFinalized&&s.previousPageCount===M.pages.length&&s.previousRemapped.length===c.length){let T=s.previousFinalized.pages,B=s.previousRemapped,m=M.pages.map((D,W)=>c[W]===B[W]&&T[W]?T[W]:D);F={revision:t,pages:m};}return s&&(s.spans=u,s.previousRemapped=c,s.previousFinalized=F,s.previousPageCount=F.pages.length),a&&(zg(a,F,p),a.stats={placed:g,total:y||1,reusedPages:h,fullPasses:a.stats.fullPasses+(g===y&&h===0?1:0)}),F}function qi(e=6,n=14){let t=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*t(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=n*t(r)*o;return {height:a,baseline:a*.8}}}}var L0=2,Wg=new WeakMap,Gg=new WeakMap;function $g(e){let n=[],t=r=>{if(r.kind==="table"){for(let o of r.rows)for(let a of o.cells)for(let i of a.blocks)t(i);return}for(let o of r.lines)for(let a of o.drawings??[])n.push(_i(a.resource));};for(let r of e.anchoredDrawings??[])n.push(_i(r.resource));for(let r of e.fragments)t(r);return n.length===0?"":`!${n.join("!")}`}function E0(e,n,t){let r=t.displayMode??ft,o=xt(e,r),a=kd(e,o).sections,i=Zg(e),l={...t,producer:`${t.producer??"unversioned-measurer"}|cc:${i}`,tocFieldChromeParagraphIds:t.tocFieldChromeParagraphIds??vd(e),emptyTocPlaceholderParagraphIds:t.emptyTocPlaceholderParagraphIds??Bd(e),emptyTocSuppressedResultParagraphIds:t.emptyTocSuppressedResultParagraphIds??Od(e)},s=t.drawingSourceOrder;!s&&t.inlineDrawingLayout&&(s=Gg.get(t.inlineDrawingLayout),s||(s=(()=>{let f=new Map;return chunkEQO762XH_cjs.cb(e).forEach((p,g)=>{f.set(p.drawingNodeId,g);}),f})(),Gg.set(t.inlineDrawingLayout,s)));let d=sd(s?{...l,drawingSourceOrder:s}:l,o),c=f=>{if(a.length>1)return jg(o,a,n,f,to);let p=a[0],g=f.geometry??(p?dr(p.properties):So),y=Zi(f,0,a.length)??f.furniture,h=to(o,n,{...f,geometry:g,furniture:y,sectionColumns:p?.properties.columns??Dn.columns}),b=p?.properties.pageNumbering,x=qg({revision:h.layout.revision,pages:Dr(h.pages,b?.start??1,h.pages.length,b?.fmt)},h.layout),v=Ct(x);return f.session&&(f.session.multi=null,f.session.previous=v),v},u=f=>{let p=K0(f,e,i);return t.session&&(t.session.previous=p),p};return t.notes?u(Lg(e,a,d,t.notes,c)):u(c(d))}function Xg(e,n,t,r){let o=`line:${e}:${t}:${n}`;return r===void 0?o:`${o}:occ:${r}`}function ur(e,n,t){let r=t.geometry,o=r.width-r.margin.left-r.margin.right,a=Ld(t.sectionColumns??Dn.columns,o);if(t.inlineDrawingLayout&&t.drawingExclusionPass===void 0&&!t.drawingExclusionConverged){let P=Y=>t.drawingSourceOrder?.get(Y),j=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),A=new Map,ne=null,de=false,le=new Set,ae=t.session?.previous?.pages;if(ae){A=Ho(ae,t.inlineDrawingLayout,o,P,j),ne=to(e,n,{...t,drawingExclusionPass:0,drawingExclusionZonesByPage:A});let Y=Ho(ne.pages,t.inlineDrawingLayout,o,P,j);if(ei(A,Y))return ne;A=new Map(Y),le.add(ni(Y));}for(let Y=0;Y<tr;Y+=1){ne=to(e,n,{...t,session:void 0,drawingExclusionPass:Y,drawingExclusionZonesByPage:A});let ge=Ho(ne.pages,t.inlineDrawingLayout,o,P,j);if(ge.size===0){de=true,A=ge;break}let Pe=ni(ge);if(le.has(Pe)){de=true,A=ge;break}if(le.add(Pe),Y>0&&ei(A,ge)){de=true,A=ge;break}A=new Map(ge);}if(!de)for(let Y=0;Y<L0&&!de;Y+=1){ne=to(e,n,{...t,session:void 0,drawingExclusionPass:tr+Y,drawingExclusionZonesByPage:A});let ge=Ho(ne.pages,t.inlineDrawingLayout,o,P,j),Pe=ni(ge);if(ei(A,ge)||le.has(Pe)){de=true,A=ge;break}le.add(Pe),A=new Map(ge);}if(!de)throw new Xr(`wrap exclusion reflow did not converge within ${tr} passes`);return to(e,n,{...t,drawingExclusionConverged:true,drawingExclusionZonesByPage:A})}let i=t.measurer,l=t.cache,s=t.styleCascade,d=t.listItems,c=t.defaultTabStopPt,u=t.displayMode??ft,f=t.tocFieldChromeParagraphIds,p=t.emptyTocPlaceholderParagraphIds,g=t.emptyTocSuppressedResultParagraphIds,y=(t.producer??"unversioned-measurer")+(s?`|sc:${s.cacheToken}`:"")+(d&&d.size>0?`|num:${d.size}`:"")+(c!==void 0?`|dts:${c}`:"")+(u===ft?"":`|rev:${u}`),h=a.widths[0],b=t.furniture,x=r.headerDistance??36,v=r.footerDistance??36,w=P=>{let j=0;for(let A of P?.values()??[])j=Math.max(j,A.flowHeight);return j},z=r.height*.4,L=Math.min(z,Math.max(r.margin.top,b?x+w(b.headers):0)),M=Math.min(z,Math.max(r.margin.bottom,b?v+w(b.footers):0)),F=r.height-L-M,T=r.height-r.margin.top-r.margin.bottom,B=t.pageBottomReserves,m=t.session,D=t.lineCounterStart??0,W=b?`|hf:${x},${v},${b.titlePage?1:0}${b.evenAndOddHeaders?1:0};`+[...b.headers].map(([P,j])=>`h${P}=${j.flowHeight}@${j.contentKey}${$g(j)}`).sort().join(",")+";"+[...b.footers].map(([P,j])=>`f${P}=${j.flowHeight}@${j.contentKey}${$g(j)}`).sort().join(","):"",V=t.flowStartY??0,S=t.spaceBeforeCarry??0,I=t.pageIndexStart??0,O=B?`|nr:${[...B].map(([P,j])=>`${P}=${j}`).join(",")}`:"",N=t.noteMarks?`|nm:${t.noteMarks.reservedMarkText??""}:${t.noteMarks.marks.size}`:"",C=t.columnRegionBottom,_=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${C!==void 0?`;bal:${C}`:""}`,E=`${y}|${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${V},${S}|pi:${I}${W}${O}${N}${_}`,X=[],H=()=>{let P=Math.max(1,F-(B?.get(X.length)??0));return C!==void 0&&X.length===0?Math.max(1,Math.min(P,C)):P},K=(P,j)=>{let A=P.kind==="paragraph"?t.drawingTokenForParagraph?.(P)??t.drawingLayoutToken??"":P.kind==="table"&&t.drawingTokenForParagraph?Jp(P,t.drawingTokenForParagraph):"",ne=Wg.get(P);if(ne&&ne.contentWidth===j&&ne.producer===y&&ne.drawingToken===A)return ne.entry;let de;if(P.kind==="table")de={kind:"table",table:P,key:nr({paragraph:P,properties:[],width:j,producer:y,...A?{drawingToken:A}:{}})};else {let le=d?.get(P.id),ae=Yo(P,j,s,le),{props:Y,indent:ge,available:Pe,alignment:Ie,spacing:Be,lineSpacing:Le,contextualSpacing:Ce,styleId:qe,shading:te,inheritedRunProperties:Ae,markRunProperties:Ee}=ae,De=Bf(P.children.find(cn=>cn.kind==="paragraphProperties"),s),nt=ns(De),Ge=Bo(ae.tabStops,c),Ht=Ge===ae.tabStops?ae.tabStopsCacheToken:qt(Ge);de={kind:"paragraph",paragraph:P,props:Y,indent:ge,available:Pe,alignment:Ie,spacing:Be,lineSpacing:Le,contextualSpacing:Ce,styleId:qe,borders:De,borderGroupKey:nt===""?"":`${nt}@${ge.left},${ge.left+Pe}`,shading:te,inheritedRunProperties:Ae,markRunProperties:Ee,tabStops:Ge,keeps:Of(Y),...le?{listItem:le}:{},key:nr({paragraph:P,properties:[...Y,...Ae,...Ee,{localName:"tabStops",attributes:{token:Ht}},...le?[{localName:"list",attributes:{token:le.cacheToken}}]:[]],width:Pe,producer:y,...A?{drawingToken:A}:{}})};}return Wg.set(P,{contentWidth:j,producer:y,drawingToken:A,entry:de}),de},G=e.map(P=>K(P,h)),U=G.map(P=>P.key),se=Gp(G,h,s,u),xe=G.map(P=>P.kind==="paragraph"&&P.keeps.keepNext),pe=Lf(U,P=>xe[P]),Se=m?.previous??null,Oe=Se!==null&&m!==void 0&&m.context===E,he=a.count===1&&Oe,ue=0;if(Oe){let P=Math.min(pe.length,m.keys.length);for(;ue<P&&pe[ue]===m.keys[ue];)ue+=1;}let ye=0;if(he){let P=Math.min(pe.length,m.keys.length)-ue;for(;ye<P&&pe[pe.length-1-ye]===m.keys[m.keys.length-1-ye];)ye+=1;}if(Oe&&ue===G.length&&G.length===m.keys.length){let P=qg({revision:n,pages:Se.pages},Se),j=D+(m.endLineCounter-m.startLineCounter);return m.previous=P,m.startLineCounter=D,m.endLineCounter=j,m.stats={placed:0,total:G.length,reusedPages:Se.pages.length,fullPasses:m.stats.fullPasses},l?.retain(new Set(U)),{layout:P,pages:P.pages,lineCounter:j,endCursorY:m.endCursorY,endSpaceAfter:m.endSpaceAfter,endsOpenPage:m.endsOpenPage}}let Me=[],Te=0,an=0,rn=()=>a.lefts[Te],Ne=()=>a.widths[Te],Qn=()=>({text:{left:rn(),width:Ne()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),et=()=>Me.length>an,we=[],on=[],vn=new Map,q=V,_n=V,ee=0,re=D,k=S,R=[],$=0,J=0,ie=0,fe=V===0;if(he&&ue>0&&ue<m.checkpoints.length){let P=m.checkpoints[ue];X.push(...Se.pages.slice(0,P.pageCount)),Me=[...P.pageFragments],we=[...P.pendingAnchoredDrawings],q=P.cursorY,ee=P.flowColumnIndex,Te=P.flowColumnIndex,re=P.lineCounter,k=P.previousSpaceAfter,$=ue,fe=false,ie=X.length,R.push(...m.checkpoints.slice(0,ue));}let ve=P=>({x:0,y:P*(r.height+24),width:r.width,height:r.height}),be=P=>b?.titlePage&&P===0?"first":b?.evenAndOddHeaders&&(I+P+1)%2===0?"even":"default",Ze=(P,j,A)=>{if(!b)return;let ne=be(j),de=(P==="header"?b.headers:b.footers).get(ne);if(!de)return;let le=Le=>{let Ce=P==="header"?A.y+x:A.y+r.height-v-Le.flowHeight;return {kind:P,variant:ne,partName:Le.partName,...Le.rId?{rId:Le.rId}:{},box:{x:A.x+r.margin.left,y:Ce,width:o,height:Le.flowHeight},fragments:Le.fragments,...Le.anchoredDrawings?{anchoredDrawings:Le.anchoredDrawings}:{}}},ae=I+j+1,Y={pageNumber:ae,pageCount:Math.max(ae,X.length+1),sectionPageCount:j+1},ge=de.pageFieldNeeds,Ie=Ot(ge)||(de.anchoredDrawings?.length??0)>0?de.withPageContext(Y):de,Be=le(Ie);return Ot(ge)?{...Be,pageFieldProjector:Le=>le(de.withPageContext(Le))}:Be},ze=a.count,Qe=rn,en=P=>Object.freeze({x:a.lefts[ee]??0,y:P.y,width:a.widths[ee]??h,height:P.height}),Re=()=>Object.freeze({pageNumber:I+X.length+1,pageWidth:r.width,pageHeight:r.height,marginLeft:r.margin.left,marginRight:r.margin.right,marginTop:r.margin.top,marginBottom:r.margin.bottom,contentWidth:h,contentHeight:H(),physicalContentHeight:T,ownerPartName:t.inlineDrawingLayout?.ownerPartName??chunkEQO762XH_cjs.m,storyKind:"body"}),Bn=()=>zo(Re()),ln=P=>t.drawingSourceOrder?.get(P),Ye=P=>{if(P.length===0)return;for(let A of P)we.some(ne=>ne.drawingNodeId===A.drawingNodeId)||we.push(A.sourceOrder===void 0&&ln(A.drawingNodeId)!==void 0?Object.freeze({...A,sourceOrder:ln(A.drawingNodeId)}):A);if(!t.inlineDrawingLayout)return;let j=pf(we,{pageBottom:H()});if(we.splice(0,we.length,...j.drawings),j.deferred.length>0)for(let A of j.deferred){let ne=(vn.get(A.drawingNodeId)??0)+1;vn.set(A.drawingNodeId,ne),ne>=Ls?we.push(As(A,"page-defer-exhausted")):on.push(A);}},We=()=>{if(on.length===0)return;let P=on.map(j=>Ns(j,q-j.y));on=[],Ye(P);},nn=()=>{let P=X.length,j=ve(P),A=Ze("header",P,j),ne=Ze("footer",P,j),de=Me.reduce((le,ae)=>Math.max(le,ae.box.y+ae.box.height),_n);X.push({id:`page-${P}`,index:P,box:j,contentBox:{x:j.x+r.margin.left,y:j.y+L,width:o,height:F},fragments:Me,...a.separator?{columnSeparators:a.gaps.map((le,ae)=>({x:a.lefts[ae]+a.widths[ae]+le/2-.375,y:_n,width:.75,height:Math.max(0,de-_n)}))}:{},...we.length>0?{anchoredDrawings:ff(we)}:{},...A?{header:A}:{},...ne?{footer:ne}:{}}),Me=[],we=[],q=0,Te=0,ee=0,_n=0,an=0;},_t=(P,j)=>{if(P.kind!=="paragraph"||P.listItem!==void 0||P.shading!==void 0)return false;let{top:A,bottom:ne,left:de,right:le,between:ae}=P.borders;if(A??ne??de??le??ae)return false;let Y=t.inlineDrawingLayout;return Y&&In(P.paragraph,Y).length>0?false:j.every(ge=>ge.drawings.length===0&&!ge.pageBreakAfter&&!ge.columnBreakAfter&&ge.spans.every(Pe=>Pe.text.length===0))},zn=()=>{if(Te+1<a.count){Te+=1,ee=Te,q=_n,k=0,an=Me.length;return}nn(),We();},al=P=>Ki(P,{measurer:i,producer:y,cache:l,styleCascade:s,...c!==void 0?{defaultTabStopPt:c}:{},...u?{displayMode:u}:{},inlineDrawingLayout:t.inlineDrawingLayout,drawingTokenForParagraph:t.drawingTokenForParagraph}),St={measurer:i,cache:l,producer:y,nextLineId:(P,j,A,ne)=>(re+=1,Xg(P,j,A,ne)),pageOccurrenceKey:()=>String(I+X.length),styleCascade:s,listItems:d,...c!==void 0?{defaultTabStopPt:c}:{},...t.projectLink?{projectLink:t.projectLink}:{},...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:t.drawingLayoutToken?{drawingLayoutToken:t.drawingLayoutToken}:{},...t.inlineDrawingLayout?{anchorFrameBase:Re,pageContentClip:Bn,layoutTextboxStoryFor:al,publishAnchoredDrawings:Ye,collectAnchoredDrawings:Ye,columnBoxForParagraph:en,pageExclusionZones:()=>t.drawingExclusionZonesByPage?.get(X.length)??Object.freeze([]),paragraphOrderIndex:P=>se.get(P),onAnchorShift:(P,j)=>Os(we,P,j),onAnchorRepublish:(P,j)=>{for(let A=we.length-1;A>=0;A-=1)we[A].anchorParagraphId===P&&we.splice(A,1);we.push(...j);}}:{},borderOwnershipBudget:ui(),vMergeResolveBudget:hd(),displayMode:u},il=P=>vi(d?.get(P.paragraph.id)??P.listItem,P.indent,i,P.tabStops,P.available),ll=(P,j,A=0)=>{let ne=P.paragraph.id,le=!(p?.has(ne)??false)&&((f?.has(ne)??false)||(g?.has(ne)??false)),ae=P.available,Y=Qe(),Pe=(t.drawingExclusionZonesByPage?.get(X.length)??Object.freeze([])).filter(qe=>{let te=se.get(P.paragraph.id),Ae=se.get(qe.anchorParagraphId);if(te!==void 0&&Ae!==void 0){if(Ae>te)return false}else {let Ee=G.findIndex(De=>De.kind==="paragraph"&&De.paragraph.id===qe.anchorParagraphId);if(Ee<0||Ee>j)return false}return !(ze>1&&qe.columnIndex!==ee)}),Ie=Jn(Pe),Be=t.drawingTokenForParagraph?.(P.paragraph)??t.drawingLayoutToken??(t.inlineDrawingLayout?"drawing":void 0),Le=l&&!le?Ie||Be?nr({paragraph:P.paragraph,properties:P.props,width:ae,producer:y,...Be?{drawingToken:Be}:{},...Ie?{exclusionToken:`${ee}|${q.toFixed(3)}|${Ie}`}:{},...A>0?{startOffset:A}:{}}):A===0?P.key:`${P.key}|from:${A}`:null,Ce=ze>1;return ii(P.paragraph,ne,P.indent.left,ae,i,l,Le,P.inheritedRunProperties,P.tabStops,void 0,s?(qe,te)=>ht(qe,te,s):void 0,{lineSpacing:P.lineSpacing,firstLineOffset:A===0?il(P):0,startOffset:A,marginExtent:{left:0,right:P.indent.left+ae+P.indent.right},...t.projectLink?{projectLink:t.projectLink}:{},displayMode:u,...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},contentLeft:Ce?Y:0,contentRight:Ce?Y+Ne():P.indent.left+ae+P.indent.right,paragraphStartY:q,...Pe.length>0?{pageExclusionZones:Pe}:{},...le?{suppressEmptyPlaceholderLine:true}:{},...s?{themeFonts:s.themeFonts}:{},markRunProperties:P.markRunProperties})},Kd=(P,j)=>(t.drawingExclusionZonesByPage?.get(X.length)??Object.freeze([])).filter(ne=>{let de=se.get(P.paragraph.id),le=se.get(ne.anchorParagraphId);if(de!==void 0&&le!==void 0){if(le>de)return false}else {let ae=G.findIndex(Y=>Y.kind==="paragraph"&&Y.paragraph.id===ne.anchorParagraphId);if(ae<0||ae>j)return false}return !(ze>1&&ne.columnIndex!==ee||ne.anchorParagraphId===P.paragraph.id&&ne.input.mode==="topAndBottom")}),Ud=(P,j,A,ne,de,le,ae)=>{let Y=Kd(P,j);if(!t.inlineDrawingLayout||ne<=de)return Y;let ge=Nn(P.paragraph),Pe=new Map,Ie=0;for(let te=de;te<ne;te+=1){let Ae=A[te];for(let De of ge.values())De>=Ae.start&&De<Ae.end&&Pe.set(De,Ie);let Ee=ae.get(te)??A[te].exclusionSkipBefore??0;Ie+=Ee+A[te].height;}if(Pe.size===0)return Y;let Be=ze>1,Le=P.available,Ce=Qe(),qe=Qa({paragraph:P.paragraph,paragraphId:P.paragraph.id,drawingLayout:t.inlineDrawingLayout,contentLeft:Be?Ce:0,contentRight:Be?Ce+Ne():P.indent.left+Le+P.indent.right,paragraphStartY:le,anchorLineTopByModelStart:Pe,columnIndex:ee});return Object.freeze([...Y,...qe])},Bm=(P,j,A,ne,de,le,ae,Y)=>{if(t.inlineDrawingLayout){let Be=[...Nn(P.paragraph).values()];if(Be.length>0){let Le=Math.min(...Be);if(ae.end<=Le||Be.some(Ce=>Ce>=ae.start&&Ce<ae.end)&&ae.end<=Le+1)return 0}}let ge=Ud(P,j,A,ne,de,le,Y),Pe=ge.length>0?mt(q,ae.height,ge):0,Ie=ae.exclusionSkipBefore??0;return Pe>.001?Pe:Ie},Om=P=>{let j=Ne(),A=qr(P,j,0,s,u);if(!A||A.rows.length===0)return;let ne=A.columnWidthsPt.reduce((te,Ae)=>te+Ae,0),de=()=>A.float?cp(A.float,ne,Qn()):rn()+ea(A,Ne()),le=de();A.float&&A.float.vertAnchor==="text"&&!A.float.ySpec&&(q=Math.max(0,Math.min(q+A.float.yPt,H())));let ae=[];for(let te of A.rows)if(te.isHeader)ae.push(te);else break;let Y=0,ge=q,Pe=[],Ie=new Map,Be=[],Le=()=>{if(Pe.length===0)return;let te=Rd(Pe,A,Be,St.borderOwnershipBudget,St.vMergeResolveBudget,void 0,(Ee,De)=>{Os(we,Ee,De);},St),Ae=te[te.length-1];Me.push(Ni({kind:"table",id:`${P.id}#f${Y}`,tableId:P.id,fragmentIndex:Y,rows:te,box:{x:le,y:ge,width:A.columnWidthsPt.reduce((Ee,De)=>Ee+De,0),height:Ae.box.y+Ae.box.height-ge}},A.columnWidthsPt,0,Ie)),Y+=1,Pe=[],Be=[];},Ce=te=>{if(ae.length===0)return;let Ae=0;for(let Ee of ae)Ae+=wd(Ee,A.columnWidthsPt,le,0,St,A.cellSpacingPt);if(Ae>H()+.001)throw new Tn("table-row-overheight",`Table header group (${ae.length} row(s)) is taller than the page content box`);q+Ae>H()+.001&&q>0&&(Le(),zn(),le=de(),ge=q);for(let Ee of ae){let De=la(Ee,A.columnWidthsPt,le,q,te,0,St,A.cellSpacingPt);if(De.bottom>H()+.001)throw new Tn("table-row-overheight",`Table header row ${Ee.id} overflowed the page content box`);Pe.push(De.record),Be.push(Ee),q=De.bottom;}},qe=te=>{Le(),zn(),le=de(),ge=q,Ce(true);};Ce(false);for(let te of A.rows.slice(ae.length)){let Ae=wd(te,A.columnWidthsPt,le,0,St,A.cellSpacingPt),Ee=bd(te),De=false,nt=0,Ge=false;for(Ae<=H()+.001&&q+Ae>H()+.001&&q>0&&(qe(),Ge=true);;){if(nt+=1,nt>Ai)throw new Tn("table-row-fragment-limit",`Table row ${te.id} exceeded ${Ai} page fragments`);let Ht=H()-q;if(Ht<=.001&&q>0){if(Ge)throw new Tn("table-row-overheight",`Table row ${te.id} cannot fit after repeated header rows`);qe(),Ge=true;continue}if(!De&&Ae<=Ht+.001){let tt=la(te,A.columnWidthsPt,le,q,false,0,St,A.cellSpacingPt);if(tt.bottom>H()+.001)throw new Tn("table-row-overheight",`Table row ${te.id} overflowed the page content box after placement`);Pe.push(tt.record),Be.push(te),q=tt.bottom;break}if(te.cantSplit||te.height.rule==="exact"){if(q>0&&!Ge){qe(),Ge=true;continue}throw new Tn("table-row-overheight",te.height.rule==="exact"?`Table row ${te.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${te.id} has w:cantSplit and is taller than the available page content`)}let cn=Sd(te,A.columnWidthsPt,le,q,H(),false,De,0,St,Ee,A.cellSpacingPt);if(!cn.fitted&&q>0&&!Ge){qe(),Ge=true;continue}if(!cn.fitted)throw new Tn(cn.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",cn.nestedSplitBlocked?`Table row ${te.id} contains a nested table taller than the page content box`:`Table row ${te.id} has content that cannot fit a page content box`);if(cn.bottom>H()+.001)throw new Tn("table-row-overheight",`Table row ${te.id} overflowed the page content box`);let oo=cn.remainder!==null,gr=Kp(te,De,oo);if(Pe.push(cn.record),Be.push(gr),q=cn.bottom,!oo)break;Ee=cn.remainder,De=true,Ge=false,qe();}}Le();},zt=false,sl=G.length;for(let P=$;P<G.length;P+=1){let j=K(e[P],Ne());if(R[P]={pageCount:X.length,pageFragments:[...Me],pendingAnchoredDrawings:[...we],cursorY:q,lineCounter:re,previousSpaceAfter:k,flowColumnIndex:ee},he&&ye>0&&P>=G.length-ye){let Q=m.checkpoints[P+(m.keys.length-G.length)];if(Q&&Q.cursorY===q&&Q.previousSpaceAfter===k&&Q.flowColumnIndex===ee&&Q.pageCount===X.length&&Fg(Q.pageFragments,Me)&&Ag(Q.pendingAnchoredDrawings,we)){let oe=Se.pages.slice(Q.pageCount);X.push(...oe),ie+=oe.length,zt=true,sl=P,re+=m.endLineCounter-Q.lineCounter;break}}if(J+=1,j.kind==="table"){k=0,Om(j.table);continue}let{paragraph:A,props:ne,spacing:de,contextualSpacing:le,styleId:ae,borders:Y,shading:ge,keeps:Pe}=j,{indent:Ie,alignment:Be,markRunProperties:Le}=j,Ce=j.available,qe=P>0?G[P-1]:void 0,te=G[P+1],Ae=Q=>Q?.kind==="paragraph"&&Q.styleId===ae&&ae!==null,Ee=le?{before:Ae(qe)?0:de.before,after:Ae(te)?0:de.after}:de,De=d?.get(A.id)??j.listItem,nt=il(j),Ge=A.id,Ht=j.borderGroupKey,cn=Q=>Ht!==""&&Q?.kind==="paragraph"&&Q.borderGroupKey===Ht,oo=cn(qe),gr=cn(te),tt=oo?void 0:Y.top,mr=gr?Y.between:Y.bottom,jt=Tt(tt),tc=Tt(mr);Zl(ne)&&(Me.length>0||X.length===0)&&(nn(),k=0);let Ke=ll(j,P);if(Ke.length===0)continue;let km=ji(A)!==void 0&&_t(j,Ke),rc=()=>km&&C===void 0&&Te+1>=a.count,dl=Q=>{let oe=K(A,Ne());oe.kind==="paragraph"&&(Ie=oe.indent,Be=oe.alignment,Ce=oe.available,Le=oe.markRunProperties,nt=Q===0?il(oe):0,Ke=[...ll(oe,P,Q)]);};{let Q=Er(Ee.before,k),oe=Le.length===0?Yn:dn(Le,s?.themeFonts),sn=Ke.length<=1?tc+Ee.after:0,Hn=q+Q+jt,yn=Ud(j,P,Ke,0,0,Hn,new Map),$t=Ke[0]?xf(Hn,Ke[0],yn,sn):i.lineMetrics(oe).height+sn,Rt=Q+jt+$t;if(Pe.keepNext&&!xe[P-1]){let Ue=kf(G,P,k,rt=>{let jn=G[rt];return jn?.kind==="paragraph"?ll(jn,rt).map(On=>On.height):[]});Ue!==null&&Ue+jt<=H()&&(Rt=Math.max(Rt,Ue+jt));}q+Rt>H()&&q>0&&!rc()&&(zn(),k=0,dl(0));}let Lm=q===0&&!et(),cl=ts(Ee.before,k,Lm,fe);cl>0&&(q+=cl),jt>0&&(q+=jt),fe=false;let Wt=0,Fe=[],oc=Ke[0]?.start??0,hr=cl,Gt=jt,ul=false,ao=q,ac=0,ha=new Map;k=0;let ic=t.inlineDrawingLayout!==void 0&&In(j.paragraph,t.inlineDrawingLayout).length>0,lc=false,fl=null,sc=xs(j.paragraph),Em=()=>{let Q=Fe[0];if(!Q)return 0;let oe=ac;if(oe<=.001)return 0;let sn=mt(ao,Q.box.height,Kd(j,P));return Math.max(0,oe-sn)},ya=Q=>{if(Fe.length===0)return;let oe=rn(),sn=Qe(),Hn=Fe[0].box.y,yn=Hn-hr-Gt,$t=Fe[Fe.length-1].box.y+Fe[Fe.length-1].box.height,Rt=Q?Ee.after:0,Ue=[],rt,jn=Hn,On=$t,Pt=Y.left?fn(Y.left):0,lo=Y.right?fn(Y.right):0,yr=Y.left?oe+Ie.left-Y.left.spacePt-Pt:oe+Ie.left,gl=Y.right?oe+Ie.left+Ce+Y.right.spacePt+lo:oe+Ie.left+Ce,br=Math.max(gl-yr,0);if(Gt>0&&tt){let bn=fn(tt),xn=Hn-tt.spacePt-bn;Ue.push({side:"top",edge:tt,box:{x:yr,y:xn,width:br,height:bn}}),jn=xn;}if(Q&&mr){let bn=fn(mr),xn=$t+mr.spacePt,at={x:yr,y:xn,width:br,height:bn};Ue.push({side:gr?"between":"bottom",edge:mr,box:at}),gr||(rt={edge:mr,box:at}),On=xn+bn;}Q&&(q=Math.max(q,On+Rt));let xr=Math.max(On+Rt-yn,0),ke=oo&&Wt===0?yn:jn,ot=gr&&Q?yn+xr:On,Sr=Math.max(ot-ke,0);if(Y.left&&Ue.push({side:"left",edge:Y.left,box:{x:oe+Ie.left-Y.left.spacePt-Pt,y:ke,width:Pt,height:Sr}}),Y.right&&Ue.push({side:"right",edge:Y.right,box:{x:oe+Ie.left+Ce+Y.right.spacePt,y:ke,width:lo,height:Sr}}),Y.bar){let bn=fn(Y.bar);Ue.push({side:"bar",edge:Y.bar,box:{x:oe+Ie.left-Y.bar.spacePt-bn,y:Hn,width:bn,height:Math.max($t-Hn,0)}});}let wr=Wt===0?Bi(De,i,Fe[0]?{y:Fe[0].box.y,height:Fe[0].box.height}:void 0):void 0,ba=wr?{...wr,box:{...wr.box,x:wr.box.x+oe}}:void 0;if(Me.push({kind:"paragraph",id:`${Ge}#f${Wt}`,paragraphId:Ge,fragmentIndex:Wt,range:{paragraphId:Ge,start:oc,end:Fe[Fe.length-1].range.end},props:ne,spacing:{before:hr,after:Rt},indent:Ie,...rt?{bottomBorder:rt}:{},...Ue.length>0?{borders:Ue}:{},...ge===void 0?{}:{shading:ge,shadingBox:Y.left||Y.right?{x:yr,y:jn,width:br,height:Math.max(On-jn,0)}:To(Fe,oe+Ie.left,Ce)},...ba?{marker:ba}:{},...Q&&sc?{markRevision:sc}:{},lines:Fe,box:{x:sn+Ie.left,y:yn,width:Ce,height:xr}}),t.inlineDrawingLayout&&ic&&!lc){lc=true;let bn=[...Nn(j.paragraph).values()],xn=bn.length>0&&bn.every(Sn=>Fe.some(Xt=>Sn>=Xt.range.start&&Sn<Xt.range.end)),at,Rr,ml;if(xn){let Sn=yn-Em();at=Fe,Rr={x:sn+Ie.left,y:Sn,width:Ce,height:xr},ml=en({x:sn+Ie.left,y:Sn,height:xr});}else {let Sn=fl??{columnX:sn,columnWidth:Ne(),startY:yn},Xt=Sn.startY;at=Ke.map((Cn,Mm)=>{let Nm={id:`anchor-line-${Mm}`,range:{paragraphId:Ge,start:Cn.start,end:Cn.end},box:{x:Sn.columnX+Ie.left,y:Xt,width:Ce,height:Cn.height},contentX:Cn.spans.length>0?Cn.spans[0].box.x+Sn.columnX:Sn.columnX+Ie.left,baseline:Cn.baseline,leading:Cn.leading,trailingSpacing:Cn.trailingSpacing,spans:Cn.spans.map(hl=>({...hl,box:{...hl.box,x:hl.box.x+Sn.columnX,y:Xt}}))};return Xt+=Cn.height+(Cn.exclusionSkipBefore??0),Nm});let dc=Sn.startY;Rr={x:Sn.columnX+Ie.left,y:dc,width:Ce,height:Math.max(Xt-dc,Fe[0]?.box.height??0)},ml=en(Rr);}Ye($r({paragraph:j.paragraph,paragraphId:Ge,paragraphBox:Rr,lines:at,drawingLayout:t.inlineDrawingLayout,frameBase:Re(),columnBox:ml,cellBox:null,pageClip:Bn(),measurer:i,sourceOrderOf:ln,layoutTextboxStory:al}));}Wt+=1,oc=Fe[Fe.length-1].range.end,Fe=[],hr=0,Gt=0;},wt=0,pl=0,io=Ke.length+8;for(let Q=0;Q<Ke.length;Q+=1){let oe=Ke[Q],sn=Q===Ke.length-1,Hn=sn?tc+Ee.after:0;Q===wt&&(ao=q,ic&&fl===null&&Wt===0&&(fl=Object.freeze({columnX:Qe(),columnWidth:Ne(),startY:ao})));let yn=Bm(j,P,Ke,Q,wt,ao,oe,ha),$t=yn+Math.max(0,oe.height-oe.trailingSpacing)+Hn;if(q+$t>H()&&!rc()&&(Fe.length>0||Me.length>0||X.length>0)){let ke=!et(),ot=pl<io?Cf(Q,wt,Ke.length,Pe,ke):Q,Sr=ot<Q;for(let xn=Q;xn>ot;xn-=1){Fe.pop();let at=Ke[xn-1],Rr=ha.get(xn-1)??at.exclusionSkipBefore??0;ha.delete(xn-1),q-=at.height+Rr,re-=1;}let wr=Sr&&Fe.length===0&&Wt===0,ba=Ke[ot].start,bn=Ne();if(ya(false),zn(),hr=0,wr?q=Gt:Gt=0,Ne()!==bn){dl(ba),io=Math.max(io,Ke.length+8),wt=0,Sr&&(pl+=1),Q=-1;continue}if(wt=ot,ao=q,Sr){pl+=1,Q=ot-1;continue}}let Ue=Qe();ha.set(Q,yn),q+=yn;let rt=Ue+Ie.left+(Q===0?nt:0),jn=Math.max(1,Ce-(Q===0?nt:0)),On=oe.spans.map(ke=>({...ke,range:{...ke.range,paragraphId:Ge},box:{...ke.box,x:ke.box.x+Ue,y:q}})),Pt=oi(On,i,rt,jn,Be,sn,Be==="center"||Be==="right"?oe.width:void 0),lo=On.length>0&&Pt.length>0?Pt[0].box.x-On[0].box.x:Be!=="left"&&Be!=="both"?(()=>{let ke=jn-oe.width;return ke<=0?0:Be==="center"?ke/2:ke})():0,yr=Object.freeze({x:0,y:0,width:h,height:H()}),gl=oe.drawings.map(ke=>{let ot=Object.freeze({...ke,paragraphId:Ge,x:Ue+ke.x,y:q+ke.y,advanceStart:ke.advanceStart+Ue,advanceEnd:ke.advanceEnd+Ue,paintBounds:Object.freeze({...ke.paintBounds,x:Ue+ke.paintBounds.x,y:q+ke.paintBounds.y}),hitBounds:Object.freeze({...ke.hitBounds,x:Ue+ke.hitBounds.x,y:q+ke.hitBounds.y})});return Ja(ot,yr)}),br=ai(gl,lo),xr={id:Xg(A.id,oe.start,Q),range:{paragraphId:Ge,start:oe.start,end:oe.end},spans:Pt,box:{x:Qe()+Ie.left,y:q,width:Ce,height:oe.height},contentX:Pt[0]?.box.x??rt+lo,baseline:oe.baseline,leading:oe.leading,trailingSpacing:oe.trailingSpacing,...oe.deletedRanges?{deletedRanges:oe.deletedRanges}:{},...br.length>0?{drawings:br}:{}};if(re+=1,Fe.length===0&&(ac=yn),Fe.push(xr),q+=oe.height,oe.columnBreakAfter){let ke=Ne();if(ya(sn),zn(),hr=0,Gt=0,ul=true,!sn&&Ne()!==ke){dl(oe.end),io=Math.max(io,Ke.length+8),wt=0,Q=-1;continue}wt=Q+1;}else oe.pageBreakAfter&&(ya(sn),nn(),hr=0,Gt=0,ul=true,wt=Q+1);}ya(true),k=ul?0:Ee.after;}zt||(R[G.length]={pageCount:X.length,pageFragments:[...Me],pendingAnchoredDrawings:[...we],cursorY:q,lineCounter:re,previousSpaceAfter:k,flowColumnIndex:ee});let Zd=zt&&m?m.endCursorY:q,qd=zt&&m?m.endSpaceAfter:k,Jd=!zt&&(Me.length>0||X.length===0),Qd=zt&&m?m.endsOpenPage:Jd;Jd&&nn();let ec=0,Cm=Ls*4+8;for(;(we.length>0||on.length>0)&&ec<Cm;)ec+=1,we.length===0&&We(),nn();on.length>0&&(we.push(...on.map(P=>As(P,"page-defer-exhausted"))),on=[],nn()),l?.retain(new Set(U));let nc={revision:n,pages:X};return m&&(m.previous=nc,m.checkpoints=zt?[...R.slice(0,sl),...m.checkpoints.slice(sl+(m.keys.length-G.length))]:R,m.keys=pe,m.context=E,m.startLineCounter=D,m.endLineCounter=re,m.endCursorY=Zd,m.endSpaceAfter=qd,m.endsOpenPage=Qd,m.stats={placed:J,total:G.length,reusedPages:ie,fullPasses:m.stats.fullPasses+($===0?1:0)}),{layout:nc,pages:X,lineCounter:re,endCursorY:Zd,endSpaceAfter:qd,endsOpenPage:Qd}}function Vg(e,n,t){let r=n.lefts.map(()=>t);for(let o of e.fragments){let a=0;for(let i=n.count-1;i>=0;i-=1)if(o.box.x+.5>=n.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var M0=.25,N0=20;function to(e,n,t){let r=Ld(t.sectionColumns??Dn.columns,t.geometry.width-t.geometry.margin.left-t.geometry.margin.right);if(!t.balanceColumns||r.count<2||t.columnRegionBottom!==void 0)return t.session&&(t.session.balanceLimit=null),ur(e,n,t);let o=t.session,a=t.flowStartY??0,{session:i,...l}=t,s=h=>{let b=h.pages[0],x=b?Math.max(...Vg(b,r,a)):h.endCursorY;return o&&(o.endCursorY=x),{...h,endCursorY:x}};if(o&&o.balanceLimit!==null){let h=o.balanceLimit,b=ur(e,n,{...t,columnRegionBottom:h});if(o.stats.placed===0&&o.stats.reusedPages===b.pages.length)return o.balanceLimit=h,s(b)}let d=ur(e,n,l);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),ur(e,n,t);let c=Vg(d.pages[0],r,a),u=c.reduce((h,b)=>h+Math.max(0,b-a),0);if(u<=0)return o&&(o.balanceLimit=null),ur(e,n,t);let f=a+u/r.count,p=Math.max(...c)+.01,g=h=>{try{let b=ur(e,n,{...l,columnRegionBottom:h});return b.pages.length===1&&b.endsOpenPage}catch{return false}};for(let h=0;h<N0&&p-f>M0;h+=1){let b=(f+p)/2;g(b)?p=b:f=b;}let y=ur(e,n,{...t,columnRegionBottom:p});return o&&(o.balanceLimit=p),s(y)}var F0="http://schemas.openxmlformats.org/wordprocessingml/2006/main",A0="http://schemas.microsoft.com/office/word/2010/wordml",D0="http://schemas.microsoft.com/office/word/2012/wordml";function _0(e){if(e.kind!=="textValue"){for(let n of e.attributes)if(n.localName==="val"&&n.namespaceUri===F0)return n.value}}function Ji(e){for(let n of e.children)if(n.kind!=="textValue"&&(n.kind==="contentControlProperties"||n.localName==="sdtPr"))return n}function fa(e,n){if(e){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}}function fr(e,n){let t=fa(e,n);return t?_0(t):void 0}function Xd(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Ug(e){if(!e)return "richText";for(let n of e.children){if(n.kind==="textValue")continue;let t=n.kind,r=n.localName,o=n.namespaceUri;if(t==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(t==="contentControlComboBox"||r==="comboBox")return "comboBox";if(t==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(t==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(t==="contentControlCheckbox"||r==="checkbox"&&o===A0)return "checkbox";if(r==="repeatingSection"&&o===D0)return "repeatingSection"}return "richText"}function z0(e){let n=(t,r)=>{for(let o of t)if(o.kind!=="textValue"){if(o.kind==="tableRow")return "row";if(o.kind==="tableCell")return "cell";if(o.kind==="paragraph"||o.kind==="table")return "block";if(chunkEQO762XH_cjs.Kb(o)&&r<chunkEQO762XH_cjs.Jb){let a=n(chunkEQO762XH_cjs.Nb(o),r+1);if(a)return a}}return null};return n(chunkEQO762XH_cjs.Nb(e),0)??"inline"}function Zg(e){let n=Yg.get(e);if(n!==void 0)return n;let t=H0(e);return Yg.set(e,t),t}var Yg=new WeakMap,Kg=new WeakMap;function H0(e){let n=(t,r)=>{if(t.kind==="textValue")return "";if(r===0&&(t.kind==="paragraph"||t.kind==="table")){let a=Kg.get(t);if(a!==void 0)return a}let o;if(chunkEQO762XH_cjs.Kb(t)){if(r>=chunkEQO762XH_cjs.Jb)return "";let a=Ji(t),i=[t.id,fr(a,"alias")??"",fr(a,"tag")??"",Xd(fr(a,"lock")),Ug(a),fa(a,"showingPlcHdr")?"1":"0",fa(a,"dataBinding")?"1":"0"].join(":"),l=chunkEQO762XH_cjs.Nb(t).map(s=>n(s,r+1)).filter(s=>s.length>0);o=[i,...l].join("|");}else o=t.children.map(a=>n(a,r)).filter(a=>a.length>0).join("|");return r===0&&(t.kind==="paragraph"||t.kind==="table")&&Kg.set(t,o),o};return n(e.root,0)}function Qi(e){if(e.kind==="textValue")return e.value.length;if(e.kind==="tab"||e.kind==="hardBreak")return 1;if(e.kind==="runProperties"||e.kind==="paragraphProperties"||e.kind==="generic")return 0;if(chunkEQO762XH_cjs.Kb(e)){let t=0;for(let r of chunkEQO762XH_cjs.Nb(e))t+=Qi(r);return t}let n=0;for(let t of e.children)n+=Qi(t);return n}function j0(e){let n=[],t=(i,l)=>{for(let s of i){if(s.kind==="paragraph"||s.kind==="table"){l.push(s.id);continue}if(chunkEQO762XH_cjs.Kb(s)){t(chunkEQO762XH_cjs.Nb(s),l);continue}(s.kind==="tableRow"||s.kind==="tableCell")&&t(s.children,l);}},r=(i,l,s,d,c)=>{let u=s;for(let f of i)if(!(f.kind==="textValue"||f.kind==="paragraphProperties")){if(chunkEQO762XH_cjs.Kb(f)){if(d>=chunkEQO762XH_cjs.Jb){u+=Qi(f);continue}let p=Ji(f),g=Xd(fr(p,"lock")),y=[...c,g],h=u,b=r(chunkEQO762XH_cjs.Nb(f),l,u,d+1,y);n.push({control:f,nestingDepth:d,lockStack:y,level:"inline",paragraphId:l,range:{start:h,end:b},blockIds:[]}),u=b;continue}if(f.kind==="hyperlink"){u=r(f.children,l,u,d,c);continue}u+=Qi(f);}return u},o=(i,l,s)=>{for(let d of i){if(d.kind==="textValue")continue;if(d.kind==="paragraph"){r(d.children,d.id,0,l,s);continue}if(d.kind==="table"){for(let h of d.children)h.kind==="tableRow"&&o([h],l,s);continue}if(d.kind==="tableRow"){for(let h of d.children)h.kind==="tableCell"?o(h.children,l,s):chunkEQO762XH_cjs.Kb(h)&&o([h],l,s);continue}if(!chunkEQO762XH_cjs.Kb(d)||l>=chunkEQO762XH_cjs.Jb)continue;let c=Ji(d),u=Xd(fr(c,"lock")),f=[...s,u],p=z0(d),g=chunkEQO762XH_cjs.Nb(d);if(p==="inline"){o(g,l+1,f);continue}let y=[];t(g,y),n.push({control:d,nestingDepth:l,lockStack:f,level:p,blockIds:y}),o(g,l+1,f);}},a=e.root.children.find(i=>i.kind==="body");return a&&a.kind!=="textValue"&&o(a.children,0,[]),n}function W0(e,n){let t=new Map,r=new Map,o=s=>{let d=t.get(s.blockId);d?d.push(s):t.set(s.blockId,[s]);},a=s=>{let d=r.get(s.paragraphId);d?d.push(s):r.set(s.paragraphId,[s]);},i=0,l=(s,d)=>{if(d.kind==="paragraph"){o({pageIndex:s,blockId:d.paragraphId,box:d.box});for(let c of d.lines){let u=i;i+=1;let f=Math.max(0,c.box.height-c.leading-(c.trailingSpacing??0));for(let p of c.spans)a({pageIndex:s,paragraphId:p.range.paragraphId,start:p.range.start,end:p.range.end,line:u,box:{x:p.box.x,y:p.box.y+c.leading,width:p.box.width,height:f}});}return}o({pageIndex:s,blockId:d.tableId,box:d.box});for(let c of d.rows)if(!c.isHeaderRepeat)for(let u of c.cells)for(let f of u.blocks)l(s,f);};for(let s of e.pages)for(let d of s.fragments)l(s.index,d);return {blocksById:t,spansByParagraph:r}}function G0(e,n,t){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of n.blocksById.get(a)??[]){let l=r.get(i.pageIndex);l?l.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let l=Na(i);return l?[{pageIndex:a,box:l}]:[]})}function $0(e,n,t,r){let o=t.spansByParagraph.get(e)??[],a=new Map,i=0,l=o.length;for(;i<l;){let s=i+(l-i>>1);(n.start===n.end?o[s].end<n.start:o[s].end<=n.start)?i=s+1:l=s;}for(let s=i;s<o.length;s+=1){let d=o[s];if(d.end<=n.start)continue;if(d.start>=n.end)break;let c=a.get(d.line);c?c.boxes.push(d.box):a.set(d.line,{pageIndex:d.pageIndex,boxes:[d.box]});}if(a.size===0&&n.start===n.end)for(let s=i;s<o.length;s+=1){let d=o[s];if(d.start>n.start)break;if(n.start>d.end)continue;let c=d.start===d.end?d.box.x:d.box.x+d.box.width*(n.start-d.start)/Math.max(1,d.end-d.start);return [{pageIndex:d.pageIndex,box:{x:c,y:d.box.y,width:0,height:d.box.height}}]}return [...a.entries()].sort(([s],[d])=>s-d).flatMap(([,s])=>{let d=Na(s.boxes);return d?[{pageIndex:s.pageIndex,box:d}]:[]})}function X0(e,n,t){let r=Ji(e.control),o=fr(r,"alias"),a=fr(r,"tag"),i=e.lockStack[e.lockStack.length-1]??"unlocked",l=e.level==="inline"&&e.paragraphId&&e.range?$0(e.paragraphId,e.range,n):G0(e.blockIds,n);return {id:e.control.id,...o!==void 0?{alias:o}:{},...a!==void 0?{tag:a}:{},controlType:Ug(r),lock:i,effectiveLock:Yl(e.lockStack),placeholder:fa(r,"showingPlcHdr")!==void 0,bound:fa(r,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:l}}function V0(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1){let r=e[t],o=n[t];if(r!==o&&(r.pageIndex!==o.pageIndex||r.box.x!==o.box.x||r.box.y!==o.box.y||r.box.width!==o.box.width||r.box.height!==o.box.height))return false}return true}function Y0(e,n){return e.id===n.id&&e.alias===n.alias&&e.tag===n.tag&&e.controlType===n.controlType&&e.lock===n.lock&&e.effectiveLock===n.effectiveLock&&e.placeholder===n.placeholder&&e.bound===n.bound&&e.nestingDepth===n.nestingDepth&&e.level===n.level&&V0(e.fragments,n.fragments)}function ua(e,n){if(!e)return n.length===0;if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(!Y0(e[t],n[t]))return false;return true}function qg(e,n){return {revision:e.revision,pages:e.pages,...n.contentControls!==void 0?{contentControls:n.contentControls}:{},...n.controlContextToken!==void 0?{controlContextToken:n.controlContextToken}:{}}}function K0(e,n,t=Zg(n),r){if(t===""){let u=e.pages.some(p=>p.contentControls!==void 0&&p.contentControls.length>0);if(!u&&e.controlContextToken===t&&ua(e.contentControls,[]))return e;let f=u?e.pages.map(p=>p.contentControls!==void 0&&p.contentControls.length>0?{...p,contentControls:[]}:p):e.pages;return {revision:e.revision,pages:f,contentControls:[],controlContextToken:t}}let o=j0(n),a=W0(e),i=o.map(u=>X0(u,a)),l=new Map;for(let u of i)for(let f of u.fragments){let p=l.get(f.pageIndex),g={...u,fragments:[f]};p?p.push(g):l.set(f.pageIndex,[g]);}if(e.controlContextToken===t&&ua(e.contentControls,i)&&e.pages.every(u=>ua(u.contentControls,l.get(u.index)??[])))return e;let s=false,d=e.pages.map(u=>{let f=l.get(u.index)??[];return ua(u.contentControls,f)||f.length===0&&!u.contentControls?u:(s=true,{...u,contentControls:f})}),c=s?d:e.pages;return c===e.pages&&e.controlContextToken===t&&ua(e.contentControls,i)?e:{revision:e.revision,pages:c,contentControls:i,controlContextToken:t}}var nm="Calibri, Carlito, Helvetica, Arial, sans-serif",U0=4096,Z0=256;function Jg(e,n){return e===void 0?Math.max(1,Math.floor(n)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function Qg(e){let n=new Map,t=0;return {get(r){let o=n.get(r);if(o!==void 0)return n.delete(r),n.set(r,o),o},set(r,o){for(n.has(r)&&n.delete(r),n.set(r,o);n.size>e;){let a=n.keys().next();if(a.done)break;n.delete(a.value),t+=1;}},get size(){return n.size},get evictions(){return t}}}var em=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function tm(e=null){return e!=null&&typeof e.measureText=="function"}function rm(e={}){let n=e.scale??1;if(!(n>0)||!Number.isFinite(n))return null;let t=e.fallbackFamily??nm,r=e.context??null;if(!tm(r))return null;let o=r,a=Qg(Jg(e.maxWidthEntries,U0)),i=Qg(Jg(e.maxMetricsEntries,Z0)),l=e.fontAlias,s=c=>{let u=c.fontFamily&&em.test(c.fontFamily)?c.fontFamily:null,f=u?l?.(u):void 0,p=f&&em.test(f)?f:null,g=u?p?`"${p}", "${u}", ${t}`:`"${u}", ${t}`:t,y=c.bold?"bold":"normal",h=c.italic?"italic":"normal",b=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*n;return `${h} ${y} ${b}px ${g}`},d=(c,u,f)=>c/n*(f.horizontalScalePercent/100)+u.length*f.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let f=s(u),p=`${f}\0${c}`,g=a.get(p);if(g!==void 0)return d(g,c,u);o.font=f;let y=o.measureText(c).width;return a.set(p,y),d(y,c,u)},lineMetrics(c){let u=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75),f=s(c),p=i.get(f);if(p)return p;let g=u*1.15,y=u*.8;o.font=f;let h=o.measureText("Hxg"),b=h.fontBoundingBoxAscent,x=h.fontBoundingBoxDescent;if(typeof b=="number"&&Number.isFinite(b)&&b>0&&(y=b/n,typeof x=="number"&&Number.isFinite(x)&&x>=0)){let w=(b+x)/n;w>0&&(g=w);}g>0||(g=u*1.15);let v={height:g,baseline:y};return i.set(f,v),v}}}function q0(e=1,n={}){let t=rm({...n,scale:n.scale??e});return t?{measurer:t,producer:n.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:qi(),producer:"fixed-measurer"}}function J0(e){return e.box}function om(e,n){if(e.kind==="paragraph"){n.add(e.paragraphId);return}for(let t of e.rows)for(let r of t.cells)for(let o of r.blocks)om(o,n);}function Q0(e){let n=new Map,t=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkEQO762XH_cjs.be*4)){for(let l of o.children)if(l.kind!=="textValue"){if(l.kind==="paragraph"){for(let s of r)n.get(s)?.push(l.id);t(l,l.id,i+1);continue}if(l.kind==="contentControl"){n.set(l.id,[]),r.push(l.id);let s=chunkEQO762XH_cjs.le(l);s&&t(s,a,i+1),r.pop();let d=n.get(l.id);d&&d.length===0&&a!==null&&d.push(a);continue}t(l,a,i+1);}}},r=[];return t(e,null,0),n}function ew(e,n){let t=Math.min(e.x,n.x),r=Math.min(e.y,n.y);return {x:t,y:r,width:Math.max(e.x+e.width,n.x+n.width)-t,height:Math.max(e.y+e.height,n.y+n.height)-r}}function nw(e,n){let t=chunkEQO762XH_cjs.pe(e.root);if(t.length===0)return tw;let r=new Map;n.pages.forEach((i,l)=>{(d=>{for(let c of d){let u=new Set;om(c,u);for(let f of u){let p=r.get(f)??[];p.push({pageIndex:l,box:J0(c)}),r.set(f,p);}}})(i.fragments);});let o=Q0(e.root),a=[];for(let i of t){let l=chunkEQO762XH_cjs.ne(i.node),s=[...i.ancestors.map(f=>chunkEQO762XH_cjs.ne(f).lock),l.lock],d=o.get(i.node.id)??[],c=new Map;for(let f of d)for(let p of r.get(f)??[]){let g=c.get(p.pageIndex);c.set(p.pageIndex,g?ew(g,p.box):p.box);}let u=[...c.entries()].sort((f,p)=>f[0]-p[0]).map(([f,p])=>({pageIndex:f,...p}));a.push({controlId:i.node.id,type:l.type,level:chunkEQO762XH_cjs.oe(i.node),depth:i.depth,lock:l.lock,effectiveLock:chunkEQO762XH_cjs.se(s),showingPlaceholder:l.showingPlaceholder,temporary:l.temporary,...l.tag===void 0?{}:{tag:l.tag},...l.alias===void 0?{}:{alias:l.alias},...l.id===void 0?{}:{id:l.id},...l.dataBinding===void 0?{}:{dataBinding:l.dataBinding},paragraphIds:d,fragments:u});}return a}var tw=Object.freeze([]);var am=e=>e.verticalAlign==="baseline"?1:.75;function im(e){let n=Math.round(e.fontSizePt*2);return Math.max(1,n)}function rw(e){let{shaper:n,resolveFont:t,fallback:r,shapingLibrary:o,unicodeDataVersion:a,fixedPointScale:i=1e3,script:l="Latn",language:s="en"}=e,d=new Map,c=new Map,u=(p,g)=>`${p.identity}|${im(g)}`,f=(p,g,y)=>n.shape({text:p,fontSizeHalfPoints:im(y),bidiLevel:0,environment:Kt({font:g,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:l,language:s,direction:"ltr",features:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})});return {measure(p,g){if(p.length===0)return 0;let y=t(g);if(!y)return r.measure(p,g);let h=`${u(y,g)}|${p}`,b=d.get(h);if(b===void 0){let x=0;try{for(let v of f(p,y,g).glyphs)x+=v.advanceX;}catch{return r.measure(p,g)}b=x/i,d.set(h,b);}return b*am(g)*(g.horizontalScalePercent/100)+p.length*g.characterSpacingPt},lineMetrics(p){let g=t(p);if(!g)return r.lineMetrics(p);let y=am(p),h=u(g,p),b=c.get(h);if(b)return y===1?b:{height:b.height*y,baseline:b.baseline*y};let x,v=true;try{let w=f(" ",g,p),z=w.metrics.ascent/i,L=w.metrics.descent/i,M=z+L;M>0?x={height:M,baseline:z}:(x=r.lineMetrics(p),v=!1);}catch{x=r.lineMetrics(p),v=false;}return v?(c.set(h,x),y===1?x:{height:x.height*y,baseline:x.baseline*y}):x}}}function ow(e){let{layout:n,viewport:t}=e,r=new Set;if(!t){for(let s of n.pages)r.add(s.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=t.top+t.height,i=-1,l=-1;for(let s of n.pages){let d=s.box.y;d+s.box.height>=t.top&&d<=a&&(i===-1&&(i=s.index),l=s.index);}if(i===-1){let s=aw(n,t.top);s!==null&&(i=s,l=s);}if(i!==-1){let s=Math.max(0,i-o),d=Math.min(n.pages.length-1,l+o);for(let c=s;c<=d;c+=1)r.add(c);}for(let s of e.pinnedPages??[])s>=0&&s<n.pages.length&&r.add(s);return r}function aw(e,n){let t=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=n<o.box.y?o.box.y-n:n>o.box.y+o.box.height?n-(o.box.y+o.box.height):0;a<r&&(r=a,t=o.index);}return t}var lm=["text-local","paragraph-local","flow-structural","global"];function sm(e,n){return lm.indexOf(n)>lm.indexOf(e)?n:e}function iw(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function lw(e){let{run:n,currentRevision:t,publish:r,schedule:o}=e,a=null,i=null,l=null,s=0,d=0;function c(h){let b=e.runCooperatively;if(!b)return n(h);let x=b(h);l=x;try{for(;;){let v=x.step();if(v)return v;if(t()!==h.revision)return x.cancel(),d+=1,null;if(l!==x)return null}}finally{l===x&&(l=null);}}function u(h){let b=p(t());b.impact=sm(b.impact,h.impact),b.structural=b.structural||h.structural;for(let x of h.paragraphIds)b.paragraphIds.add(x);for(let x of h.created)b.created.add(x);for(let x of h.deleted)b.deleted.add(x);for(let x of h.dependencyKeys)b.dependencyKeys.add(x);}let f=h=>({impact:h.impact,paragraphIds:h.paragraphIds,created:h.created,deleted:h.deleted,dependencyKeys:h.dependencyKeys,structural:h.structural,revision:h.revision});function p(h){return a||(a=iw(h)),a.revision=Math.max(a.revision,h),a}function g(){!o||i||(i=o(()=>{i=null,y();}));}function y(){i&&(i(),i=null),l&&(l.cancel(),l=null,d+=1);let h=a;if(!h)return false;a=null;let b=f(h),x=c(b);return !x||x.revision!==t()?(s+=1,u(b),g(),false):(r(x,b),true)}return {notify(h){let b=p(h.toRevision);b.impact=sm(b.impact,h.impact);for(let x of h.dirty)b.paragraphIds.add(x);for(let x of h.created)b.created.add(x),b.paragraphIds.add(x);for(let x of h.deleted)b.deleted.add(x),b.paragraphIds.add(x);for(let x of h.dependencyKeys)b.dependencyKeys.add(x);for(let x of h.splitJoin)b.structural=true,"split"in x?(b.paragraphIds.add(x.split.from),b.paragraphIds.add(x.split.tail)):(b.paragraphIds.add(x.join.kept),b.paragraphIds.add(x.join.removed));(h.impact==="flow-structural"||h.impact==="global")&&(b.structural=true),g();},invalidateAll(h,b){let x=p(h);x.impact="flow-structural",x.structural=true,b&&x.dependencyKeys.add(b),g();},flush:y,pending:()=>a?f(a):null,cancel(){i?.(),i=null,l?.cancel(),l=null,a=null;},get staleDiscards(){return s},get cancelledRuns(){return d}}}function dm(e){let n=new Map;for(let t=0;t<e.length;t+=1){let r=e[t].position,o=n.get(r.paragraphId);o||(o=new Map,n.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,t);}return {stops:e,index:n}}var el=class{#n=new WeakMap;#l=new WeakMap;get(n,t,r,o){let a;if(!r)a=this.#n.get(n)??new Map,this.#n.has(n)||this.#n.set(n,a);else {let s=this.#l.get(n);s||(s=new WeakMap,this.#l.set(n,s)),a=s.get(r)??new Map,s.has(r)||s.set(r,a);}let i=a.get(t);if(i)return i;let l=o();return a.set(t,l),l}};function cm(e){let n=[],t=new Set;for(let r of e)t.has(r.lineId)||(t.add(r.lineId),n.push(r.lineId));return n}function um(e,n,t){let r=null;for(let o of e)o.lineId===n&&(!r||Math.abs(o.x-t)<Math.abs(r.x-t))&&(r=o);return r}function fm(e,n,t){let r=t.index.get(e.paragraphId)?.get(e.offset);if(r===void 0)return null;let o=t.stops[r].lineId,a=t.stops.filter(i=>i.lineId===o);return (n===-1?a[0]:a[a.length-1])?.position??null}function pm(e,n,t,r,o){let a=o(e.paragraphId),i=a.index.get(e.paragraphId)?.get(e.offset);if(i===void 0)return null;let l=i+n;if(l>=0&&l<a.stops.length)return {position:a.stops[l].position,desiredX:null};let s=t[r+n];if(!s)return {position:e,desiredX:null};let d=o(s).stops,c=n===-1?d[d.length-1]:d[0];return c?{position:c.position,desiredX:null}:null}function gm(e,n,t){let r=e===-1?n[0]:n[n.length-1];if(!r)return null;let o=t(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function mm(e,n,t,r,o,a){let i=a(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset);if(l===void 0)return null;let s=i.stops[l],d=t??s.x,c=cm(i.stops),u=c.indexOf(s.lineId),f=c[u+n];if(f){let g=um(i.stops,f,d);return g?{position:g.position,desiredX:d}:null}for(let g=o+n;g>=0&&g<r.length;g+=n){let y=a(r[g]),h=cm(y.stops),b=n===-1?h[h.length-1]:h[0];if(!b)continue;let x=um(y.stops,b,d);if(x)return {position:x.position,desiredX:d}}let p=n===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}var sw=/[\p{L}\p{N}_'\u2019]/u;function pa(e,n,t){let r=a=>{let i=e[a];return i!==void 0&&sw.test(i)},o=Math.max(0,Math.min(n,e.length));if(t===-1){for(;o>0&&!r(o-1);)o-=1;for(;o>0&&r(o-1);)o-=1;return o}for(;o<e.length&&!r(o);)o+=1;for(;o<e.length&&r(o);)o+=1;return o}var hm=new WeakMap;function Ft(e){let n=hm.get(e);if(n)return n;let t=new Map,r=(o,a)=>{let i=l=>{for(let s of l){if(s.kind==="paragraph"){for(let d of s.lines){let c=t.get(d.range.paragraphId),u={line:d,pageIndex:a};c?c.push(u):t.set(d.range.paragraphId,[u]);}continue}for(let d of s.rows)if(!d.isHeaderRepeat)for(let c of d.cells)i(c.blocks);}};i(o);};for(let o of e.pages){for(let a of Rn(o))for(let i of a.lines){let l=t.get(i.range.paragraphId),s={line:i,pageIndex:o.index};l?l.push(s):t.set(i.range.paragraphId,[s]);}o.header&&r(o.header.fragments,o.index),o.footer&&r(o.footer.fragments,o.index);for(let a of [o.footnotes,o.endnotes])if(a)for(let i of a.notes)r(i.fragments,o.index);}return hm.set(e,t),t}function ga(e,n,t){for(let o of e.drawings??[]){if(n===o.start)return o.advanceStart;if(n===o.start+1)return o.advanceEnd}let r=e.contentX;for(let o of e.spans){if(n<=o.range.start)return o.box.x;if(n>=o.range.end){r=o.box.x+o.box.width;continue}return Mi(o,n,t)}return r}function dw(e,n,t){let r=Ft(e).get(n.range.paragraphId)??[],o=false;for(let a of r){if(a.line===n){o=true;continue}if(o&&a.line.range.start===t)return true}return false}function cw(e,n,t){for(let{line:r}of Ft(e).get(n)??[])if(r.range.start===t&&r.drawings?.some(o=>o.start===t))return r;return null}function uw(e,n){let t=e.deletedRanges;if(t===void 0)return false;for(let r of t)if(n>r.start&&n<r.end)return true;return false}function fw(e,n){for(let t of e.spans)if(!(n<=t.range.start||n>=t.range.end)&&(t.projected||t.text.length!==t.range.end-t.range.start))return true;return false}function Sm(e){let n=e.spans[e.spans.length-1]?.text;return n===`
10
+ `||n===chunkEQO762XH_cjs.Wb}function Vd(e,n,t,r,o,a){for(let i=t.range.start;i<=t.range.end;i+=1)if(!(i===t.range.end&&i>t.range.start&&Sm(t)&&dw(n,t,i))){if(i===t.range.start&&i>o&&e.length>0){let l=e[e.length-1];if(l.position.paragraphId===t.range.paragraphId&&l.position.offset===i)continue}fw(t,i)||uw(t,i)||e.push({position:{paragraphId:t.range.paragraphId,offset:i},x:ga(t,i,a),y:t.box.y,height:t.box.height,lineId:t.id,pageIndex:r});}}function wm(e,n,t,r,o){for(let a of n){if(a.kind==="paragraph"){for(let i of a.lines)Vd(r,e,i,t,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)wm(e,l.blocks,t,r,o);}}var pw=new el;function Rm(e,n){let t=[];for(let r of e.pages)for(let o of Rn(r))for(let a of o.lines)Vd(t,e,a,r.index,o.range.start,n);return t}function nl(e,n,t){return pw.get(e,n,t,()=>{let r=[];for(let{line:o,pageIndex:a}of Ft(e).get(n)??[])Vd(r,e,o,a,0,t);return dm(r)})}function gw(e,n,t,r){if(!e.pages[n])return [];let o=[];return wm(e,t,n,o,r),o}function mw(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function Pm(e,n,t){let r=mw(t),o=Ft(e).get(n.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?o:[...o].sort((s,d)=>{let c=s.pageIndex===a?0:1,u=d.pageIndex===a?0:1;return c-u}),l=null;for(let{line:s,pageIndex:d}of i){if(n.offset<s.range.start||n.offset>s.range.end)continue;if(n.offset===s.range.end&&n.offset>s.range.start&&Sm(s)){l??={line:s,pageIndex:d};continue}if(n.offset===s.range.end&&n.offset>s.range.start&&cw(e,n.paragraphId,n.offset))continue;let c=aa(s,n.offset,r.measurer);return {position:n,x:c.x,y:c.y,height:c.height,lineId:s.id,pageIndex:d}}if(l){let s=aa(l.line,n.offset,r.measurer);return {position:n,x:s.x,y:s.y,height:s.height,lineId:l.line.id,pageIndex:l.pageIndex}}return null}function hw(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return ki(e,t,n)?.caret??null}function yw(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return Ei(e,t,n)}function bw(e){return Vl(e)}function xw(e,n){let t=Im(e,n);if(!t)return [];let r=[];for(let o of e.pages)for(let a of Rn(o))for(let i of a.lines){let l=tl(e,i,t.from,t.to);if(!l)continue;let s=ga(i,l.start),d=ga(i,l.end);r.push({pageIndex:o.index,x:Math.min(s,d),y:i.box.y,width:Math.abs(d-s),height:i.box.height});}return r}function Sw(e,n,t){let r=new Map;if(n.length===0)return r;for(let o of e.pages)if(!(t&&!t.has(o.index)))for(let a of Rn(o))for(let i of a.lines)for(let l of n){let s=tl(e,i,l.from,l.to);if(!s)continue;let d=ga(i,s.start),c=ga(i,s.end),u=r.get(l.key)??[];u.push({pageIndex:o.index,x:Math.min(d,c),y:i.box.y,width:Math.abs(c-d),height:i.box.height}),r.set(l.key,u);}return r}function tl(e,n,t,r){let o=rl(e),a=o.get(n.range.paragraphId)??-1,i=o.get(t.paragraphId)??-1,l=o.get(r.paragraphId)??-1;if(a<i||a>l)return null;let s=a===i?Math.max(n.range.start,t.offset):n.range.start,d=a===l?Math.min(n.range.end,r.offset):n.range.end;return d>s?{start:s,end:d}:null}var ym=new WeakMap,bm=new WeakMap;function pr(e){let n=ym.get(e);if(n)return n;let t=new Set,r=[];for(let o of e.pages)for(let a of Rn(o))t.has(a.paragraphId)||(t.add(a.paragraphId),r.push(a.paragraphId));return ym.set(e,r),r}function rl(e){let n=bm.get(e);if(n)return n;let t=new Map;for(let[r,o]of pr(e).entries())t.set(o,r);return bm.set(e,t),t}function Im(e,n){if(n.anchor.paragraphId===n.head.paragraphId)return n.anchor.offset<=n.head.offset?{from:n.anchor,to:n.head}:{from:n.head,to:n.anchor};let t=pr(e),r=t.indexOf(n.anchor.paragraphId),o=t.indexOf(n.head.paragraphId);return r===-1||o===-1?null:r<o||r===o&&n.anchor.offset<=n.head.offset?{from:n.anchor,to:n.head}:{from:n.head,to:n.anchor}}function ro(e,n){let t=[],r=new Set;for(let{line:a}of Ft(e).get(n)??[]){for(let i of a.spans){if(i.range.end===i.range.start)continue;let l=`${i.range.start}:${i.range.end}`;r.has(l)||(r.add(l),t.push({start:i.range.start,text:i.text}));}for(let i of a.drawings??[]){let l=i.start,s=l+1,d=`${l}:${s}`;r.has(d)||(r.add(d),t.push({start:l,text:"\uFFFC"}));}}t.sort((a,i)=>a.start-i.start);let o="";for(let a of t)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function xm(e,n,t,r){let o=pr(e),a=rl(e).get(n.paragraphId);return a===void 0?null:pm(n,t,o,a,i=>nl(e,i,r))}function ww(e,n,t,r=null,o={}){if(!o.stops&&(t==="left"||t==="right"))return xm(e,n,t==="left"?-1:1,o.measurer);if(!o.stops&&(t==="wordLeft"||t==="wordRight")){let s=t==="wordLeft"?-1:1,d=pa(ro(e,n.paragraphId),n.offset,s);return d===n.offset?xm(e,n,s,o.measurer):{position:{paragraphId:n.paragraphId,offset:d},desiredX:null}}if(!o.stops&&(t==="lineStart"||t==="lineEnd")){let s=fm(n,t==="lineStart"?-1:1,nl(e,n.paragraphId,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(t==="documentStart"||t==="documentEnd")){let s=gm(t==="documentStart"?-1:1,pr(e),d=>nl(e,d,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(t==="up"||t==="down")){let s=rl(e).get(n.paragraphId);return s===void 0?null:mm(n,t==="up"?-1:1,r,pr(e),s,d=>nl(e,d,o.measurer))}let a=o.stops?[...o.stops]:Rm(e,o.measurer);if(a.length===0)return null;let i=a.findIndex(s=>s.position.paragraphId===n.paragraphId&&s.position.offset===n.offset);if(i===-1)return null;let l=a[i];switch(t){case "left":return {position:a[Math.max(0,i-1)].position,desiredX:null};case "right":return {position:a[Math.min(a.length-1,i+1)].position,desiredX:null};case "lineStart":return {position:a.filter(d=>d.lineId===l.lineId)[0].position,desiredX:null};case "lineEnd":{let s=a.filter(d=>d.lineId===l.lineId);return {position:s[s.length-1].position,desiredX:null}}case "wordLeft":case "wordRight":{let s=ro(e,n.paragraphId),d=t==="wordLeft"?-1:1,c=pa(s,n.offset,d);return c===n.offset?{position:a[d===-1?Math.max(0,i-1):Math.min(a.length-1,i+1)].position,desiredX:null}:{position:{paragraphId:n.paragraphId,offset:c},desiredX:null}}case "documentStart":return {position:a[0].position,desiredX:null};case "documentEnd":return {position:a[a.length-1].position,desiredX:null};case "pageUp":case "pageDown":{let s=r??l.x,d=l.pageIndex+(t==="pageUp"?-1:1),c=a.filter(p=>p.pageIndex===d);if(c.length===0)return {position:(t==="pageUp"?a[0]:a[a.length-1]).position,desiredX:s};let u=c[0],f=Number.POSITIVE_INFINITY;for(let p of c){let g=Math.abs(p.y-l.y)*1e3+Math.abs(p.x-s);g<f&&(f=g,u=p);}return {position:u.position,desiredX:s}}case "up":case "down":{let s=r??l.x,d=[],c=new Set;for(let y of a)c.has(y.lineId)||(c.add(y.lineId),d.push(y.lineId));let u=d.indexOf(l.lineId),f=t==="up"?u-1:u+1;if(f<0||f>=d.length)return {position:(t==="up"?a[0]:a[a.length-1]).position,desiredX:s};let p=a.filter(y=>y.lineId===d[f]),g=p[0];for(let y of p)Math.abs(y.x-s)<Math.abs(g.x-s)&&(g=y);return {position:g.position,desiredX:s}}default:return null}}function Rw(e,n){return Pm(e,n)}function Pw(e,n){let t=Im(e,n);if(!t)return [];if(t.from.paragraphId===t.to.paragraphId&&t.from.offset===t.to.offset)return Iw(e,t.from);let r=[];if(t.from.paragraphId===t.to.paragraphId){for(let{line:d}of Ft(e).get(t.from.paragraphId)??[]){let c=tl(e,d,t.from,t.to);if(c)for(let u of d.spans)u.range.end>c.start&&u.range.start<c.end&&r.push(u);}return r}let o=pr(e),a=rl(e),i=Ft(e),l=a.get(t.from.paragraphId)??-1,s=a.get(t.to.paragraphId)??-1;if(l===-1||s===-1)return [];for(let d=l;d<=s;d+=1)for(let{line:c}of i.get(o[d])??[]){let u=tl(e,c,t.from,t.to);if(u)for(let f of c.spans)f.range.end>u.start&&f.range.start<u.end&&r.push(f);}return r}function Iw(e,n){let t=null;for(let{line:r}of Ft(e).get(n.paragraphId)??[])for(let o of r.spans){if(o.range.start<n.offset&&n.offset<=o.range.end)return [o];t===null&&o.range.start===n.offset&&(t=o);}return t?[t]:[]}var Tm=new WeakMap;function Dt(e){let n=Tm.get(e);if(n)return n;let t=new Map,r=new Map,o=new Map,a=(l,s)=>{for(let d of l){if(d.kind==="paragraph")continue;let c=d.tableId,u=o.get(c);u||(u=new Map,o.set(c,u),t.set(c,[]),r.set(c,new Map));for(let f of d.rows){let p=u.get(f.id);p===void 0&&(p=u.size,u.set(f.id,p),r.get(c).set(p,f.cells));for(let g of f.cells)t.get(c).push({pageIndex:s,tableId:c,row:f,cell:g,rowIndex:p,isHeaderRepeat:f.isHeaderRepeat}),a(g.blocks,s);}}};for(let l of e.pages)a(l.fragments,l.index);let i=new Map;for(let[l,s]of t)i.set(l,{placed:s,rows:r.get(l)??new Map});return Tm.set(e,i),i}function vm(e){let n=0;for(let t of e.rows.values())for(let r of t)n=Math.max(n,At(r).to+1);return n}var At=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function Tw(e,n,t){if(n.tableId!==t.tableId)return null;let r=Dt(e).get(n.tableId);if(!r)return null;let o=Math.min(n.rowIndex,t.rowIndex),a=Math.max(n.rowIndex,t.rowIndex),i=Math.min(At(n).from,At(t).from),l=Math.max(At(n).to,At(t).to),s=p=>{let{from:g,to:y}=At(p);return y>=i&&g<=l},d=p=>(r.rows.get(p)??[]).some(g=>g.vMergeContinue&&s(g)),c=r.rows.size+vm(r)+2;for(let p=0;!(p>c);p+=1){let g=false;for(let[y,h]of r.rows)if(!(y<o||y>a))for(let b of h){if(!s(b))continue;let{from:x,to:v}=At(b);x<i&&(i=x,g=true),v>l&&(l=v,g=true);}for(;o>0&&d(o);)o-=1,g=true;for(;d(a+1);)a+=1,g=true;if(!g)break}let u=[],f=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:g,to:y}=At(p.cell);y<i||g>l||f.has(p.cell.id)||(f.add(p.cell.id),u.push(p.cell.id));}return u.length===0?null:{kind:"cells",tableId:n.tableId,cellIds:u,rows:{from:o,to:a},columns:{from:i,to:l},text:vw(e,n.tableId,u)}}function ol(e,n){let t=new Set(n),r=[],o=new Set;for(let a of Dt(e).values())for(let i of a.placed)if(!(i.isHeaderRepeat||!t.has(i.cell.id)))for(let l of i.cell.blocks)ma(l,r,o);return r}function ma(e,n,t){if(e.kind==="paragraph"){t.has(e.paragraphId)||(t.add(e.paragraphId),n.push(e.paragraphId));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)ma(a,n,t);}function vw(e,n,t){let r=ol(e,t),o=r[0],a=r[r.length-1];return !o||!a?Bw(e,n):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:ro(e,a).length}}}function Bw(e,n){let t=Dt(e).get(n);for(let o of t?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let l of o.cell.blocks)ma(l,a,new Set);let i=a[0];if(i){let l={paragraphId:i,offset:0};return {anchor:l,head:l}}}for(let o of e.pages)for(let a of Rn(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function Ow(e,n){let t=new Set(ol(e,n)),r=[],o=new Set;for(let a of e.pages)for(let i of Rn(a))if(t.has(i.paragraphId))for(let l of i.lines)for(let s of l.spans){let d=`${s.range.paragraphId}:${s.range.start}:${s.range.end}`;o.has(d)||(o.add(d),r.push(s));}return r}function Cw(e,n){let t=new Set(n),r=[];for(let o of Dt(e).values())for(let a of o.placed)t.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x,y:a.cell.box.y,width:a.cell.box.width,height:a.cell.box.height});return r}function kw(e,n){let t=Dt(e).get(n.tableId);if(!t)return "";let r=new Set(n.cellIds),o=new Map,a=new Set;for(let i of t.placed){if(i.isHeaderRepeat||!r.has(i.cell.id)||a.has(i.cell.id))continue;a.add(i.cell.id);let l=ol(e,[i.cell.id]).map(d=>ro(e,d)).join(`
11
+ `),s=o.get(i.rowIndex);s?s.set(i.cell.gridColumn,l):o.set(i.rowIndex,new Map([[i.cell.gridColumn,l]]));}return [...o.keys()].sort((i,l)=>i-l).map(i=>{let l=o.get(i),s=[];for(let d=n.columns.from;d<=n.columns.to;d+=1)s.push(l.get(d)??"");return s.join(" ")}).join(`
12
+ `)}function Yd(e,n){let t=null,r=-1;for(let[o,a]of Dt(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let l=[];for(let d of i.cell.blocks)ma(d,l,new Set);if(!l.includes(n))continue;let s=o.length;s<=r||(r=s,t={tableId:o,rows:a.rows.size,columns:vm(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return t}function Vv(e,n,t){if(t){let a=Yd(e,n);if(!a||a.tableId!==t.tableId)return null;let i=t.cellIds[0];if(!i)return null;let l=Dt(e).get(t.tableId);if(!l)return null;for(let s of l.placed)if(s.cell.id===i)return {tableId:t.tableId,rowId:s.row.id,cellId:i,cellIds:t.cellIds,gridColumnIndex:s.cell.gridColumn,isHeaderRepeat:s.isHeaderRepeat};return null}let r=Yd(e,n);if(!r)return null;let o=Dt(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let l of a.cell.blocks)ma(l,i,new Set);if(i.includes(n))return {tableId:r.tableId,rowId:a.row.id,cellId:a.cell.id,cellIds:[a.cell.id],gridColumnIndex:a.cell.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}exports.$=Fa;exports.$a=Kn;exports.$b=pd;exports.$c=Cg;exports.A=Ea;exports.Aa=fy;exports.Ab=bi;exports.Ac=Hi;exports.Ad=Rw;exports.B=jh;exports.Ba=py;exports.Bb=xi;exports.Bc=ji;exports.Bd=Pw;exports.C=Wh;exports.Ca=gy;exports.Cb=Si;exports.Cc=KS;exports.Cd=Tw;exports.D=Gh;exports.Da=as;exports.Db=Vs;exports.Dc=ig;exports.Dd=ol;exports.E=Gl;exports.Ea=Mr;exports.Eb=Gf;exports.Ec=lg;exports.Ed=Ow;exports.F=au;exports.Fa=ls;exports.Fb=Ys;exports.Fc=dr;exports.Fd=Cw;exports.G=iu;exports.Ga=ss;exports.Gb=or;exports.Gc=US;exports.Gd=kw;exports.H=lu;exports.Ha=Bo;exports.Hb=Fn;exports.Hc=sa;exports.Hd=Yd;exports.I=su;exports.Ia=xy;exports.Ib=Pi;exports.Ic=sg;exports.Id=Vv;exports.J=du;exports.Ja=Nr;exports.Jb=Qo;exports.Jc=eo;exports.K=cu;exports.Ka=ds;exports.Kb=sp;exports.Kc=da;exports.L=Yh;exports.La=qt;exports.Lb=dp;exports.Lc=dg;exports.M=Kh;exports.Ma=Ry;exports.Mb=ea;exports.Mc=qS;exports.N=Or;exports.Na=Py;exports.Nb=qr;exports.Nc=cg;exports.O=Uh;exports.Oa=ct;exports.Ob=td;exports.Oc=Md;exports.P=Xl;exports.Pa=Bt;exports.Pb=fp;exports.Pc=Wi;exports.Q=So;exports.Qa=Bu;exports.Qb=rS;exports.Qc=ug;exports.R=Rn;exports.Ra=ps;exports.Rb=Jr;exports.Rc=fg;exports.S=uu;exports.Sa=Ou;exports.Sb=rd;exports.Sc=ca;exports.T=fu;exports.Ta=gs;exports.Tb=od;exports.Tc=pg;exports.U=Gw;exports.Ua=Cu;exports.Ub=id;exports.Uc=Gi;exports.V=Qh;exports.Va=ut;exports.Vb=ld;exports.Vc=Fd;exports.W=ey;exports.Wa=ms;exports.Wb=Ip;exports.Wc=xg;exports.X=Vl;exports.Xa=hs;exports.Xb=Tp;exports.Xc=Ad;exports.Y=Na;exports.Ya=Yn;exports.Yb=vp;exports.Yc=Dd;exports.Z=Yl;exports.Za=dn;exports.Zb=sd;exports.Zc=zd;exports._=pu;exports._a=Lt;exports._b=Ti;exports._c=Xi;exports.a=Gn;exports.aa=Cr;exports.ab=Fy;exports.ac=oa;exports.ad=kg;exports.b=Kt;exports.ba=Zl;exports.bb=bs;exports.bc=pS;exports.bd=Eg;exports.c=Kc;exports.ca=hu;exports.cb=ft;exports.cc=ki;exports.cd=T0;exports.d=Ml;exports.da=Ro;exports.db=Un;exports.dc=dI;exports.dd=Ui;exports.e=Ba;exports.ea=yu;exports.eb=xs;exports.ec=gS;exports.ed=qi;exports.f=Dm;exports.fa=bu;exports.fb=_y;exports.fc=Ei;exports.fd=E0;exports.g=ho;exports.ga=Lr;exports.gb=pt;exports.gc=Fp;exports.gd=nm;exports.h=_m;exports.ha=xu;exports.hb=er;exports.hc=Mi;exports.hd=tm;exports.i=zm;exports.ia=ql;exports.ib=Ss;exports.ic=aa;exports.id=rm;exports.j=He;exports.ja=Jl;exports.jb=nr;exports.jc=vS;exports.jd=q0;exports.k=gh;exports.ka=Ql;exports.kb=Zy;exports.kc=fI;exports.kd=nw;exports.l=Zc;exports.la=es;exports.lb=DR;exports.lc=pI;exports.ld=rw;exports.m=Ch;exports.ma=st;exports.mb=ks;exports.mc=gI;exports.md=ow;exports.n=Oa;exports.na=Po;exports.nb=ti;exports.nc=mI;exports.nd=lw;exports.o=Lh;exports.oa=fn;exports.ob=si;exports.oc=hI;exports.od=pa;exports.p=Eh;exports.pa=Tt;exports.pb=Rf;exports.pc=Ai;exports.pd=Rm;exports.q=Mh;exports.qa=dy;exports.qb=Kr;exports.qc=Tn;exports.qd=gw;exports.r=_l;exports.ra=ns;exports.rb=dx;exports.rc=xt;exports.rd=Pm;exports.s=Hl;exports.sa=Er;exports.sb=Zr;exports.sc=Di;exports.sd=hw;exports.t=Mn;exports.ta=ts;exports.tb=Tf;exports.tc=XI;exports.td=yw;exports.u=Ah;exports.ua=Da;exports.ub=ht;exports.uc=vd;exports.ud=bw;exports.v=Dh;exports.va=Io;exports.vb=Yo;exports.vc=Bd;exports.vd=xw;exports.w=_h;exports.wa=rs;exports.wb=Ef;exports.wc=Od;exports.wd=Sw;exports.x=La;exports.xa=os;exports.xb=Uo;exports.xc=zi;exports.xd=pr;exports.y=Hh;exports.ya=To;exports.yb=ci;exports.yc=Dn;exports.yd=ro;exports.z=jl;exports.za=uy;exports.zb=zf;exports.zc=ag;exports.zd=ww;