@docx-editor.dev/core 2.28.0 → 2.30.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 (109) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +65 -13
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +54 -38
  6. package/dist/binding.js +1 -1
  7. package/dist/{index-Bsg7oIKP.d.ts → chrome-print-BM3Js-6X.d.ts} +281 -222
  8. package/dist/{chunk-Z6WBFXJU.js → chunk-2PV5L5NJ.js} +3 -3
  9. package/dist/chunk-4HENIAFG.js +1 -0
  10. package/dist/chunk-5OTS2EJ7.js +7 -0
  11. package/dist/chunk-5P4223J4.cjs +27 -0
  12. package/dist/{chunk-O2AL2HSJ.cjs → chunk-5RRAZMBU.cjs} +1 -1
  13. package/dist/chunk-5SPITS5F.js +18 -0
  14. package/dist/{chunk-VDNNLG6X.js → chunk-7ATNKARV.js} +1 -1
  15. package/dist/{chunk-SRPILEWV.cjs → chunk-BGCUTKWE.cjs} +5 -5
  16. package/dist/chunk-EBCXSH2W.js +3 -0
  17. package/dist/{chunk-K5U2PLDP.cjs → chunk-ERECKTIR.cjs} +1 -1
  18. package/dist/{chunk-QMLCVPCD.cjs → chunk-FLBEJC6X.cjs} +1 -1
  19. package/dist/{chunk-6AWEKBLB.cjs → chunk-HYASLE2G.cjs} +1 -1
  20. package/dist/chunk-JC47NRJC.cjs +3 -0
  21. package/dist/{chunk-ZUHOMK52.cjs → chunk-KJRTNY2Q.cjs} +1 -1
  22. package/dist/chunk-NKPUH3QJ.js +1 -0
  23. package/dist/chunk-PF5NJWS3.js +2 -0
  24. package/dist/chunk-PWTRJSES.cjs +18 -0
  25. package/dist/chunk-QFKGI242.cjs +30 -0
  26. package/dist/{chunk-5CSUYANV.js → chunk-RJCQGJR7.js} +1 -1
  27. package/dist/chunk-RPPV4S6T.cjs +4 -0
  28. package/dist/{chunk-TSLBZ26X.js → chunk-T32MGBJS.js} +1 -1
  29. package/dist/chunk-UM26GH5B.js +30 -0
  30. package/dist/chunk-V3N4SOAK.cjs +1 -0
  31. package/dist/chunk-VRCZBFLH.js +27 -0
  32. package/dist/{chunk-2GO5T2JU.cjs → chunk-WF7JZ755.cjs} +1 -1
  33. package/dist/chunk-WK5X2MMA.cjs +7 -0
  34. package/dist/{chunk-E7BQA6UP.js → chunk-WPDD2Y32.js} +1 -1
  35. package/dist/chunk-YBMWBXST.cjs +2 -0
  36. package/dist/{chunk-ETTO6GK3.js → chunk-YZGUBCHP.js} +1 -1
  37. package/dist/chunk-ZOS2PM4A.js +4 -0
  38. package/dist/collaboration/replication.cjs +1 -1
  39. package/dist/collaboration/replication.d.ts +5 -5
  40. package/dist/collaboration/replication.js +1 -1
  41. package/dist/collaboration.d.ts +4 -4
  42. package/dist/contracts/document.d.ts +3 -3
  43. package/dist/contracts/editor.d.ts +9 -10
  44. package/dist/contracts/interaction.d.ts +2 -2
  45. package/dist/contracts/modules.cjs +1 -1
  46. package/dist/contracts/modules.d.ts +33 -9
  47. package/dist/contracts/modules.js +1 -1
  48. package/dist/contracts/types.d.ts +2 -2
  49. package/dist/{custom-node-writes-cvL5rhcD.d.ts → custom-node-writes-0v0Kgw1T.d.ts} +2 -2
  50. package/dist/diagnostic-context-CcAO4q1s.d.ts +30 -0
  51. package/dist/diagnostic-hints-2Bke6H_w.d.ts +120 -0
  52. package/dist/{document-protection-BAGVGqaP.d.ts → document-protection-8eyMWIJ0.d.ts} +2 -2
  53. package/dist/{editor-Ci7IZGmG.d.ts → editor-DaEJd2so.d.ts} +460 -9
  54. package/dist/{editor-scope-OHPwVQ5l.d.ts → editor-scope-7o9xweiJ.d.ts} +1 -1
  55. package/dist/editor.cjs +1 -1
  56. package/dist/editor.d.ts +55 -33
  57. package/dist/editor.js +1 -1
  58. package/dist/export.cjs +2 -2
  59. package/dist/export.d.ts +17 -15
  60. package/dist/export.js +2 -2
  61. package/dist/{font-resolver-BVQB14qT.d.ts → font-resolver-CL9BVKZo.d.ts} +3 -3
  62. package/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
  63. package/dist/{headless-document-view-qH331moE.d.ts → headless-document-view-DZQN8Bnx.d.ts} +2 -2
  64. package/dist/{image-resources-BN-hUgCn.d.ts → image-resources-Bipz8toD.d.ts} +2 -2
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.ts +67 -21
  67. package/dist/index.js +1 -1
  68. package/dist/{layout-shaping-BEyuiQOk.d.ts → layout-shaping-cEnVrhWg.d.ts} +3 -2
  69. package/dist/layout.cjs +1 -1
  70. package/dist/layout.d.ts +42 -42
  71. package/dist/layout.js +1 -1
  72. package/dist/{note-properties-4Y9o6Gyk.d.ts → note-properties-9FH8zAeG.d.ts} +3 -3
  73. package/dist/{omml-equation-CuzBL5DD.d.ts → omml-equation-DP2WpUbK.d.ts} +13 -1
  74. package/dist/output.cjs +1 -1
  75. package/dist/output.d.ts +8 -9
  76. package/dist/output.js +1 -1
  77. package/dist/{protocol-Bqk4Izjc.d.ts → protocol-CZ1uUlPO.d.ts} +2 -2
  78. package/dist/{review-paragraph-order-DT-n6ouC.d.ts → review-paragraph-order-CqVelc5A.d.ts} +1 -1
  79. package/dist/{semantic-cell-selection-D9D1KSXq.d.ts → semantic-cell-selection-Dr9yxFZt.d.ts} +4 -211
  80. package/dist/{semantic-interaction-CIC-PooQ.d.ts → semantic-interaction-Dc3pf3hr.d.ts} +1 -1
  81. package/dist/{semantic-paint-BME37OMv.d.ts → semantic-paint-Bz3FBAoH.d.ts} +17 -5
  82. package/dist/{semantic-record-queries-CBlZqZNa.d.ts → semantic-record-queries-Bx0pl6kL.d.ts} +1 -1
  83. package/dist/{semantic-records-4B3WwFAi.d.ts → semantic-records-CjcF26ZL.d.ts} +892 -416
  84. package/dist/store.cjs +1 -1
  85. package/dist/store.d.ts +1463 -1574
  86. package/dist/store.js +1 -1
  87. package/dist/{tree-package-fragment-BeeKxDw8.d.ts → tree-package-store-DKhdEVym.d.ts} +238 -84
  88. package/dist/{tree-session-contract-CVbmlMlq.d.ts → tree-session-contract-CwnTEVLF.d.ts} +8 -6
  89. package/dist/{types-barrel-D3xCgQX6.d.ts → types-barrel-CA0xB8kH.d.ts} +548 -527
  90. package/package.json +3 -3
  91. package/dist/chunk-2RC2EPND.js +0 -3
  92. package/dist/chunk-4GBTELJV.cjs +0 -28
  93. package/dist/chunk-4R3TEXMN.js +0 -18
  94. package/dist/chunk-6APGXLBB.cjs +0 -3
  95. package/dist/chunk-6EYYL7FL.js +0 -1
  96. package/dist/chunk-EO4C5QJW.cjs +0 -2
  97. package/dist/chunk-FIJZIQXA.cjs +0 -18
  98. package/dist/chunk-FRXAOVTB.js +0 -28
  99. package/dist/chunk-J6BVWIDB.js +0 -2
  100. package/dist/chunk-JGNVNT2A.cjs +0 -2
  101. package/dist/chunk-KKIJG3C6.js +0 -2
  102. package/dist/chunk-LWDSDCMO.js +0 -27
  103. package/dist/chunk-NBCVVZOM.cjs +0 -1
  104. package/dist/chunk-O5INAWZQ.js +0 -1
  105. package/dist/chunk-RCHS4ZEH.cjs +0 -27
  106. package/dist/chunk-VHAVHCQY.js +0 -7
  107. package/dist/chunk-VX43VBAX.cjs +0 -7
  108. package/dist/review-pane-D9jm8DcY.d.ts +0 -128
  109. package/dist/revision-projection-DZ4kKVev.d.ts +0 -242
@@ -1,3 +0,0 @@
1
- 'use strict';var chunk4GBTELJV_cjs=require('./chunk-4GBTELJV.cjs'),chunkFIJZIQXA_cjs=require('./chunk-FIJZIQXA.cjs');var er=(e,t,n)=>{let r=e<0n,o=r?-e:e,a=o/t,i=o%t;if(n!=="towardZero"){let d=i*2n;(d>t||d===t&&(n==="halfAwayFromZero"||n==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let c=r?-a:a,s=Number(c);if(!Number.isSafeInteger(s))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return s},Ze=(e,t,n,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(n)||n<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");if(e===0||n===0)return chunk4GBTELJV_cjs.n(0);let o=e*n;if(Number.isSafeInteger(o)){let a=Math.abs(o),i=a%t,c=(a-i)/t;return r!=="towardZero"&&(i>t-i||i===t-i&&(r==="halfAwayFromZero"||r==="halfToEven"&&c%2!==0))&&(c+=1),chunk4GBTELJV_cjs.n(c===0?0:o<0?-c:c)}return chunk4GBTELJV_cjs.n(er(BigInt(e)*BigInt(n),BigInt(t),r))},Xt=(e,t,n,r)=>{if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("font size must be a positive integer number of half points");if(t>Math.floor(Number.MAX_SAFE_INTEGER/n))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=t*n,a=e*2;return i=>Ze(i,a,o,r)},Vt=(e,t,n)=>{let r=t*n,o=e*2;return a=>a*r/o};var tr=4096,jt=e=>typeof e=="number"?String(e):JSON.stringify(e)??typeof e,Te=class{constructor(t){this.onRestart=t;}onRestart;#e=new Map;keyOf(t,n){let r=chunk4GBTELJV_cjs.r(n),o=this.#e.get(r);o===void 0&&(this.#e.size>=tr&&(this.#e.clear(),this.onRestart()),o=this.#e.size,this.#e.set(r,o));let a=`${o}\0${jt(t.fontSizeHalfPoints)}\0${jt(t.bidiLevel)}\0`,i=t.context;return !i||i.before===""&&i.after===""?`${a}-${t.text}`:`${a}c${i.before.length},${i.after.length}\0${i.before}${i.after}${t.text}`}clear(){this.#e.clear();}};function Q(e){try{let t=new URL(e);return t.username!==""||t.password!==""||t.search!==""||t.hash!==""?`${t.protocol}//${t.host}${t.pathname}\u2026`:e}catch{let t=e.search(/[?#]/);return t===-1?e:`${e.slice(0,t)}\u2026`}}function Yt(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>Q(t))}function or(e){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`setHarfBuzzWasmUrl: expected a string or URL, received ${typeof e}`);if(typeof e=="string"&&e.trim()==="")throw new TypeError("setHarfBuzzWasmUrl: expected a non-empty URL");throw new Error("setHarfBuzzWasmUrl is not supported by the CommonJS build, which loads the shaper from node_modules and finds its binary on disk. Import the ESM build instead.");}function $t(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function qt(e){return `the text shaper cannot start on this Node version: the ESM build reaches Node builtins through \`process.getBuiltinModule\`, added in Node 20.16.0 and 22.3.0. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${Yt(e instanceof Error?e.message:String(e))})`}function Zt(e){let t=Yt(e instanceof Error?e.message:String(e));return `the HarfBuzz WASM binary could not be loaded from ${"its bundled location"}. If this bundler does not emit \`new URL(..., import.meta.url)\` assets (esbuild, Bun, and library builds that inline dynamic imports), serve \`@docx-editor.dev/core/harfbuzz.wasm\` yourself, point \`setHarfBuzzWasmUrl\` from '@docx-editor.dev/core/layout' at it before creating an editor, and reload the page. (${t})`}function Jt(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var Z=Object.freeze({name:"HarfBuzz",version:"14.4.0"}),le=null,se=null;function Qe(){return le?Promise.resolve():se||(se=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==Z.version)throw new T("shapingLibraryMismatch",{diagnostic:Jt(Z.version,t)});le=e;}).catch(e=>{throw se=null,e instanceof T?e:$t(e)?new T("unsupportedRuntime",{diagnostic:qt(e),cause:e}):new T("wasmUnavailable",{diagnostic:Zt(e),cause:e})}),se)}function ar(){return le!==null}function ir(){if(!le)throw new T("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return le}var T=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(t,n={}){super(`HarfBuzz shaping failed (${t})`,{cause:n.cause}),this.code=t,this.limit=n.limit,this.actual=n.actual,this.diagnostic=n.diagnostic;}},sr=16*1024*1024,cr=1e6,lr=1e6,dr=1e6,ur=4,pr=512,fr=1024*1024,yr=16*1024*1024,mr=32*1024*1024,hr=64*1024*1024,gr=64*1024*1024,Sr=1e6,br=1e6,xr=1e6,Rr=64,Fr=4096,Cr=4*1024*1024,vr=64*1024*1024,Er=64*1024*1024,Lr=256*1024*1024,Tr=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),Qt=["cmap","head","hhea","hmtx","maxp"],Br=(e,t)=>e[t]<<8|e[t+1],Or=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,Ir=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?Or(e,12+t*4):0,wr=(e,t)=>{let n=Ir(e,t),r=Br(e,n+4),o=new Set;for(let a=0;a<r;a+=1){let i=n+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},Ar=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),Pr=(e,t)=>{let n=chunk4GBTELJV_cjs.l(e,t);if(!n.valid)return n;let r=wr(e,t);for(let o of Qt)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},et=Pr,z=(e,t,n)=>{if(!Number.isSafeInteger(e)||e<=0||e>n)throw new RangeError(`${t} must be a positive safe integer no greater than ${n}`);return e},_r=(e,t,n)=>{if(t.length===0)return [];let r=[],o=0;for(;o<t.length;){let a=t[o].cluster,i=o+1,c=t[o].advanceX;for(;i<t.length&&t[i].cluster===a;)c+=t[i].advanceX,i+=1;let s=chunk4GBTELJV_cjs.n(c);r.push({textStart:a,textEnd:n==="rtl"?t[o-1]?.cluster??e.length:t[i]?.cluster??e.length,glyphStart:o,glyphEnd:i,advance:s,caretEdges:Object.freeze([chunk4GBTELJV_cjs.n(0),s]),fontSpan:0}),o=i;}return r},N=64,G=8,W=8,en=32,tt=N+2*G,Mr=N+G+W,zr=N+G+2*W,kr=N+G+W,tn=N+8*G,nn=N+8*W+G,Nr=N+6*W+G,Dr=N+3*W+2*G,Hr=N+3*W,de=e=>N+e.length*Uint16Array.BYTES_PER_ELEMENT,nt=e=>kr+de(e),ce=e=>en+e*G,Ur=(e,t)=>tt+de(e)+Mr+nt(t),Gr=e=>tn+de(e)+ce(e.length)+e.length*nn,Wr=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return tn+de(e.text)+ce(e.glyphs.length)+e.glyphs.length*nn+ce(e.clusters.length)+e.clusters.length*Nr+e.clusters.reduce((n,r)=>n+ce(r.caretEdges.length),0)+ce(e.fontSpans.length)+e.fontSpans.length*Dr+(e.exactAdvancesX===void 0?0:en+e.exactAdvancesX.length*W)+Hr+[...t].reduce((n,r)=>n+nt(r.path),0)},Kr=(e,t)=>tt+de(e)+zr+t,Je=class{#e;#p;#f;#y;#m;#R;#h;#l=0;#F;#g;#S;#c;#b;#d;#t;#o=new Map;#i=new Map;#s=new Map;#n=new Map;#C=new Te(()=>{this.#n.clear(),this.#r=0,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0}));});#a=0;#r=0;#x=0;#u;constructor(t,n){this.#e=t,this.#p=z(n.maxFontBytes??sr,"maximum font bytes",gr),this.#f=z(n.maxInputUtf16??cr,"maximum input UTF-16 code units",Sr),this.#y=z(n.maxCodepoints??lr,"maximum input code points",br),this.#m=z(n.maxGlyphs??dr,"maximum shaped glyphs",xr),this.#h=z(n.maxCachedFontBytes??64*1024*1024,"maximum cached font bytes",64*1024*1024),this.#R=z(n.maxCachedFaces??ur,"maximum cached faces",Rr),this.#F=z(n.maxCachedShapes??pr,"maximum cached shape results",Fr),this.#g=z(n.maxOutlineBytes??fr,"maximum outline bytes",Cr),this.#S=z(n.maxCachedOutlineBytes??yr,"maximum cached outline bytes",vr),this.#c=z(n.maxShapedRunBytes??mr,"maximum shaped run bytes",Er),this.#b=z(n.maxCachedShapeBytes??hr,"maximum cached shape bytes",Lr),this.#d=n.instrumentation?.onFaceCacheEvent,this.#t=n.instrumentation,this.#u=new this.#e.Buffer;}dispose(){this.#o.clear(),this.#l=0,this.#i.clear(),this.#s.clear(),this.#n.clear(),this.#C.clear(),this.#a=0,this.#r=0,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#u=void 0;}#E(t,n){let r=this.#o.get(t.identity);if(r)return this.#o.delete(t.identity),this.#o.set(t.identity,r),this.#d?.(Object.freeze({kind:"hit",identity:t.identity})),r;let o=chunk4GBTELJV_cjs.j(t);for(let l of Qt)if(!o.has(l))throw new T("malformedFont",{diagnostic:`missing required ${l} table`});this.#t?.onByteCopy?.();let a=new this.#e.Blob(Ar(n)),i=new this.#e.Face(a,t.faceIndex),c=new this.#e.Font(i),s=c.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(s.ascender)||!Number.isSafeInteger(s.descender)||!Number.isSafeInteger(s.lineGap))throw new T("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});c.setScale(i.upem,i.upem);let d={identity:t.identity,blob:a,face:i,font:c,unitsPerEm:i.upem,byteLength:n.byteLength};if(n.byteLength<=this.#h){for(;this.#o.size>=this.#R||this.#l+n.byteLength>this.#h;){let l=this.#o.keys().next().value;if(l===void 0)break;this.#l-=this.#o.get(l).byteLength,this.#o.delete(l),this.#d?.(Object.freeze({kind:"evicted",identity:l}));}this.#o.set(t.identity,d),this.#l+=n.byteLength;}return this.#d?.(Object.freeze({kind:"created",identity:t.identity})),d}#L(t,n){let r=this.#i.get(t.identity)?.get(n);if(r)return this.#s.delete(r),this.#s.set(r,void 0),this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#a})),r.outline;this.#t?.onOutlinePathCall?.();let o=t.font.glyphToPath(n),a=nt(o);if(a>this.#g)throw new T("outlineOverLimit",{limit:this.#g,actual:a});let i=Object.freeze({path:o,unitsPerEm:t.unitsPerEm}),c=Ur(t.identity,o)+3*tt+2*W;if(c>this.#S)return this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#a})),i;for(;this.#a+c>this.#S;){let l=this.#s.keys().next().value;if(l===void 0)break;this.#s.delete(l);let f=this.#i.get(l.identity);f.delete(l.glyphId),f.size===0&&this.#i.delete(l.identity),this.#a-=l.bytes,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#a}));}let s=this.#i.get(t.identity);s||this.#i.set(t.identity,s=new Map);let d={outline:i,bytes:c,identity:t.identity,glyphId:n};return s.set(n,d),this.#s.set(d,void 0),this.#a+=c,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#a})),i}#v(t){if(t.length>this.#f)throw new T("textOverLimit",{limit:this.#f,actual:t.length});let n=0;for(let r=0;r<t.length;){let o=t.codePointAt(r);if(r+=o>65535?2:1,n+=1,n>this.#y)throw new T("codepointsOverLimit",{limit:this.#y,actual:n})}}shape(t){if(!this.#u)throw new T("disposed");if(chunk4GBTELJV_cjs.k(t.environment.font),t.environment.font.byteLength>this.#p)throw new T("fontOverLimit",{limit:this.#p,actual:t.environment.font.byteLength});this.#v(t.text);let n=Gr(t.text);if(n>this.#c)throw new T("shapedRunOverLimit",{limit:this.#c,actual:n});let r=chunk4GBTELJV_cjs.p(t.environment),o=this.#C.keyOf(t,r),a=this.#n.get(o);if(a)return this.#x-a.stamp>=Math.max(1,this.#n.size>>1)&&(this.#n.delete(o),this.#n.set(o,a),a.stamp=++this.#x),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==Z.name||r.shapingLibrary.version!==Z.version)throw new T("shapingLibraryMismatch");if(r.normalization!=="none")throw new T("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new T("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new T("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new T("unsupportedFallback");let i=chunk4GBTELJV_cjs.i(r.font),c=chunk4GBTELJV_cjs.j(r.font);if([...Tr].some(y=>c.has(y))&&!c.has("glyf")&&!c.has("CFF "))throw new T("unsupportedColorFont");let s=t.text;this.#v(s);let d=t.context?.before??"",l=t.context?.after??"",f=chunk4GBTELJV_cjs.o,h=Math.max(String(d).length,String(l).length);if(typeof d!="string"||typeof l!="string"||h>f)throw new T("textOverLimit",{limit:f,actual:h});try{let y=this.#E(r.font,i),{face:b,font:x}=y,m=this.#u;m.reset(),d||l?m.addText(d+s+l,d.length,s.length):m.addText(s),m.setDirection(r.direction==="rtl"?this.#e.Direction.RTL:this.#e.Direction.LTR),m.setScript(r.script),m.setLanguage(r.language),m.setClusterLevel(this.#e.ClusterLevel.MONOTONE_CHARACTERS);let g=Object.entries(r.features).map(([I,U])=>new this.#e.Feature(I,U));this.#t?.onShapeCall?.(),this.#e.shape(x,m,g);let S=m.getLength();if(S>this.#m)throw new T("glyphOverLimit",{limit:this.#m,actual:S});let F=m.getGlyphInfos(),v=m.getGlyphPositions(),C=Xt(b.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),O=Vt(b.upem,t.fontSizeHalfPoints,r.fixedPointScale),p=[],u=chunk4GBTELJV_cjs.n(0),R=chunk4GBTELJV_cjs.n(0),E=new Map,L=F.map((I,U)=>{let ne=v[U];p.push(O(ne?.xAdvance??0));let mt=C(ne?.xAdvance??0),ht=C(ne?.yAdvance??0),Qn={id:I.codepoint,cluster:I.cluster-d.length,originX:u,originY:R,advanceX:mt,advanceY:ht,offsetX:C(ne?.xOffset??0),offsetY:C(ne?.yOffset??0),outline:E.get(I.codepoint)??(()=>{let gt=this.#L(y,I.codepoint);return E.set(I.codepoint,gt),gt})()};return u=chunk4GBTELJV_cjs.n(u+mt),R=chunk4GBTELJV_cjs.n(R+ht),Qn}),B=x.hExtents(),P=chunk4GBTELJV_cjs.s({text:s,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:L,exactAdvancesX:p,clusters:_r(s,L,r.direction),fontSpans:L.length===0?[]:[{glyphStart:0,glyphEnd:L.length,font:r.font,fallbackIndex:null}],metrics:{ascent:C(B.ascender),descent:C(-B.descender),lineGap:C(B.lineGap)}},r),A=Wr(P);if(A>this.#c)throw new T("shapedRunOverLimit",{limit:this.#c,actual:A});let M=Kr(o,A);if(M>this.#b)return this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),P;for(;this.#n.size>=this.#F||this.#r+M>this.#b;){let I=this.#n.keys().next().value;if(I===void 0)break;let U=this.#n.get(I);this.#n.delete(I),this.#r-=U.bytes,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:P,bytes:M,stamp:++this.#x}),this.#r+=M,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),P}catch(y){throw y instanceof T?y:new T("malformedFont",{diagnostic:y instanceof Error?y.message:"HarfBuzz shaping failed"})}}},rt=(e={})=>new Je(ir(),e);var ot=Object.freeze({maxFontBytes:16*1024*1024,maxInputUtf16:1e6,maxCodepoints:1e6,maxGlyphs:1e6,maxCachedFaces:32,maxCachedFontBytes:64*1024*1024,maxCachedShapes:512,maxOutlineBytes:1024*1024,maxCachedOutlineBytes:16*1024*1024,maxShapedRunBytes:32*1024*1024,maxCachedShapeBytes:64*1024*1024}),Na=Object.freeze({...ot,maxCachedShapes:4096});function rn(e){let t={maxFontBytes:e.maxFontBytes,maxInputUtf16:e.maxInputUtf16,maxCodepoints:e.maxCodepoints,maxGlyphs:e.maxGlyphs,maxOutlineBytes:e.maxOutlineBytes,maxShapedRunBytes:e.maxShapedRunBytes},n=["docx-editor-layout-harfbuzz-execution-policy",1,Object.entries(t).sort(([r],[o])=>r<o?-1:r>o?1:0).map(([r,o])=>Object.freeze([r,o]))];return `layout-shaper-policy:sha256:${chunkFIJZIQXA_cjs.f(new TextEncoder().encode(JSON.stringify(n)))}`}var Xr=Object.freeze({}),on=chunk4GBTELJV_cjs.b,Vr="16.0.0",jr="none",Yr=1e3,$r="halfToEven",cn="cluster-edges-only",qr="Latn",Zr=new Uint8Array(0);var K=class extends Error{code="overLimit";constructor(t){super(t),this.name="LayoutShapingConfigurationError";}};function Jr(e,t){let n=e.epoch,r=e.maxFontBytes,o=e.sources,a=e.substitutions,i=e.defaultFont,c=e.language;if(!Number.isSafeInteger(r)||r<=0||r>chunk4GBTELJV_cjs.a)throw new K(`Font byte ceiling must not exceed the engine hard maximum of ${chunk4GBTELJV_cjs.a}`);let s=o.length,d=a?.length??0;if(s===0||s>chunk4GBTELJV_cjs.b)throw new K(`Font source count must be between 1 and ${chunk4GBTELJV_cjs.b}`);if(d>on)throw new K(`Font substitution count must not exceed ${on}`);let l=0,f=[];for(let b=0;b<s;b+=1){let x=o[b],m=x.request,g=x.availability,S=x.id,F=x.hash,v=x.faceIndex,C=g==="forbidden",O=C?Zr:x.bytes;if(!C){if(typeof S!="string"||S.length===0)throw new TypeError("Resolved font id must not be empty");let p;try{p=chunk4GBTELJV_cjs.e(O);}catch{throw new K(`Font source ${S} must provide genuine bytes`)}if(p>r)throw new K(`Font source ${S} exceeds the per-font byte ceiling`);if(l+=p,l>chunk4GBTELJV_cjs.c)throw new K(`Font sources exceed the aggregate byte ceiling of ${chunk4GBTELJV_cjs.c}`)}f.push(t&&chunk4GBTELJV_cjs.g(x)!==void 0?x:Object.freeze({request:Object.freeze({family:m.family,weight:m.weight,style:m.style}),id:S,bytes:O,hash:F,faceIndex:v,...g?{availability:g}:{}}));}let h;if(a){h=[];for(let b=0;b<d;b+=1){let x=a[b],m=x.from,g=x.to,S=x.lineMetrics;h.push(Object.freeze({from:Object.freeze({family:m.family,weight:m.weight,style:m.style}),to:Object.freeze({family:g.family,weight:g.weight,style:g.style}),...S?{lineMetrics:Object.freeze({heightEm:S.heightEm,baselineEm:S.baselineEm})}:{}}));}}let y={epoch:n,maxFontBytes:r,sources:Object.freeze(f),substitutions:h?Object.freeze(h):void 0,defaultFont:Object.freeze({family:i.family,sizeHalfPoints:i.sizeHalfPoints}),language:c};return Object.freeze(y)}function an(e,t){let n=e.map((o,a)=>({value:o,index:a,key:chunk4GBTELJV_cjs.h(t(o))})),r=new Set;for(let o of n){if(r.has(o.key))return e;r.add(o.key);}return n.sort((o,a)=>o.key<a.key?-1:o.key>a.key?1:o.index-a.index).map(({value:o})=>o)}function Qr(e,t){let n={family:e.family},r={sizeHalfPoints:e.sizeHalfPoints};return {...n,...t?r:{}}}function sn(e,t){let n=s=>({family:s.family,weight:s.weight,style:s.style}),r=t?e.sources:an(e.sources,s=>s.request),o=e.substitutions??[],a=t?o:an(o,s=>s.from),i={sources:r.map(s=>{let d=s.availability??"available",l={request:n(s.request),availability:d};if(d==="forbidden")return {...l,...t?{id:s.id,faceIndex:s.faceIndex,declaredHash:s.hash}:{}};let f=chunk4GBTELJV_cjs.g(s);if(f==null)throw new TypeError("Font configuration identity requires prepared source bytes");return {...l,...t?{id:s.id}:{},faceIndex:s.faceIndex,declaredHash:s.hash,actualHash:f,byteLength:s.bytes.byteLength}}),substitutions:a.map(s=>({from:n(s.from),to:n(s.to),lineMetrics:s.lineMetrics?{heightEm:s.lineMetrics.heightEm,baselineEm:s.lineMetrics.baselineEm}:null})),defaultFont:Qr(e.defaultFont,t),language:e.language||"en"},c={epoch:e.epoch,maxFontBytes:e.maxFontBytes};return {version:1,...t?c:{},...i}}var eo=Symbol("prepared-layout-font-configuration"),Be=new WeakMap;function to(e){return Be.has(e)}function no(e){let t=Be.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.configuration}function Ka(e){let t=Be.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.sharedShapingFingerprint}function at(e,t){return ln(e,t,false)}function Xa(e,t){return ln(e,t,true)}function ln(e,t,n){let r=Jr(e,n),o=Object.freeze({epoch:r.epoch,maxFontBytes:r.maxFontBytes,sources:Object.freeze(r.sources.map(f=>n&&chunk4GBTELJV_cjs.g(f)!==void 0?f:chunk4GBTELJV_cjs.f(f,{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash}))),substitutions:r.substitutions,defaultFont:r.defaultFont,language:r.language}),a=new TextEncoder,i=sn(o,true),c=a.encode(JSON.stringify(i)),s=sn(o,false),d=a.encode(JSON.stringify(s)),l=Object.freeze({[eo]:true,fingerprint:`font-config:${chunkFIJZIQXA_cjs.f(c)}`});return Be.set(l,{configuration:o,sharedShapingFingerprint:`shared-font-config:${chunkFIJZIQXA_cjs.f(d)}`}),l}function ro(e){return at(e).fingerprint}function oo(e,t){let n=new TextEncoder().encode(JSON.stringify({version:1,environment:e,executionPolicy:rn(t),ligatureCaretPolicy:cn,fallback:chunk4GBTELJV_cjs.ga}));return `shaping:${chunkFIJZIQXA_cjs.f(n)}`}async function dn(e,t,n,r,o=false){let i=to(e)?e:at(e,t),c=no(i),{epoch:s,maxFontBytes:d,sources:l,substitutions:f,defaultFont:h}=c,y=c.language||"en",b=i.fingerprint,x=chunk4GBTELJV_cjs.m({epoch:s,maxFontBytes:d,resources:l,substitutions:f,validateFont:et,instrumentation:{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash,onAdmission:t?.onFontAdmission}});await Qe();let m=Object.freeze({script:qr,variationAxes:Object.freeze({}),shapingLibrary:Z,unicodeDataVersion:Vr,normalization:jr,language:y,features:Xr,...o?{documentLigatures:true}:{},fixedPointScale:Yr,roundingMode:$r});return Object.freeze({fonts:x,shaper:n??rt(r),defaultFont:h,environment:m,ligatureCaretPolicy:cn,operation:Object.freeze({resourceEpoch:x.epoch,configEpoch:s,extensionFingerprint:b,shapingHash:oo(m,r),producerVersion:1})})}async function ao(e,t){return dn(e,t,void 0,ot)}async function Va(e,t,n,r,o=false){return dn(e,r,t,n,o)}function io(e){e.shaper.dispose?.();}function it(e){let t=new Set([0,e.text.length]);for(let r of chunk4GBTELJV_cjs.ma(e.text))t.add(r.utf16From),t.add(r.utf16To);let n=new Set([0,e.text.length]);for(let r of e.clusters)n.add(r.textStart),n.add(r.textEnd);return [...t].filter(r=>n.has(r)).sort((r,o)=>r-o)}function Oe(e,t){return it(e).includes(t)}function so(e,t){return Oe(e,t)}function co(e,t,n){return n>=t&&Oe(e,t)&&Oe(e,n)}function lo(e){let t=chunk4GBTELJV_cjs.ma(e.text);return it(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var ct="und";function yn(){return typeof Intl.Segmenter=="function"}function uo(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${ct})`);return e}function mn(){let e=new(uo())(ct,{granularity:"word"});return {segment(t){let n=[];for(let r of e.segment(t)){let o=r.index,a=o+r.segment.length;n.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return n}}}var po=/^[\p{L}\p{N}']$/u,fo=/^\s$/u;function un(e){return po.test(e)}function pn(e){return fo.test(e)}function st(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function hn(e){let t=chunk4GBTELJV_cjs.ma(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(pn(o.text)){let a=r+1;for(;a<t.length&&pn(t[a].text);)a+=1;n.push(st(t,r,a,false)),r=a;continue}if(un(o.text)){let a=r+1;for(;a<t.length&&un(t[a].text);)a+=1;n.push(st(t,r,a,true)),r=a;continue}n.push(st(t,r,r+1,false)),r+=1;}return n}function gn(){return {segment:hn}}function Sn(e={}){let t=e.isIntlAvailable??yn,n=e.createIntlBoundary??mn,r=e.createFallbackBoundary??gn;if(!t())return r();try{return n()}catch{return r()}}var fn;function bn(){return fn??=Sn(),fn}function yo(e,t=bn()){return t.segment(e)}function mo(e,t){return t.map(n=>({graphemeFrom:chunk4GBTELJV_cjs.qa(e,n.utf16From),graphemeTo:chunk4GBTELJV_cjs.qa(e,n.utf16To),wordLike:n.wordLike}))}var xn={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},ut=Object.keys(xn),Rn=ut.filter(e=>xn[e]==="coarse-gate"),Ie=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},ee=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},ho={resourceEpoch:Ie,configEpoch:Ie,extensionFingerprint:ee,shapingHash:ee,producerVersion:Ie},go=(e,t)=>{ho[t](e[t],t);},te=e=>{for(let t of ut)go(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},So=(e,t)=>{let n=te(e),r=te(t),o=ut.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},lt=e=>{let t=e.map(({key:n,fingerprint:r})=>(ee(n,"resource dependency key"),ee(r,"resource dependency fingerprint"),Object.freeze({key:n,fingerprint:r}))).sort((n,r)=>n.key<r.key?-1:n.key>r.key?1:0);for(let n=1;n<t.length;n+=1)if(t[n-1].key===t[n].key)throw new TypeError(`Duplicate resource dependency: ${t[n].key}`);return Object.freeze(t)},bo=e=>(Ie(e.revision,"revision"),ee(e.dependencyFingerprint,"dependencyFingerprint"),ee(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:lt(e.resourceDependencies),...te(e)})),xo=(e,t)=>{let n=lt(e),r=lt(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],c=r[a];if(i?.key!==c?.key||i?.fingerprint!==c?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??c.key}}return null};function Ro(e,t){if(e.dependencyFingerprint!==t.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==t.inputFingerprint)return {hit:false,reason:"input-changed"};let n=xo(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of Rn)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var dt=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=Ro(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:bo(r)});}evictEpoch(t){let n=te(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;Rn.some(c=>i[c]!==n[c])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=te(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(s=>n.get(s.key)!==s.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function Fn(e){return e.projected===true?null:e.range}function Co(e,t,n){let{page:r,story:o,host:a,noteScopeId:i,noteAreaKind:c}=e,s=o==="header"||o==="footer"?d=>chunk4GBTELJV_cjs.wa(d,e.origin,{x:r.box.x,y:r.box.y}):void 0;chunk4GBTELJV_cjs.Fa(a,(d,l)=>{let{textboxDepth:f,textboxOwner:h,textboxPath:y,storyOrigin:b}=l,x=f===0?o:"textbox";for(let m of d.lines){let g=[...chunk4GBTELJV_cjs.La(m)].sort((S,F)=>(t.get(S.paragraphId)??Number.MAX_SAFE_INTEGER)-(t.get(F.paragraphId)??Number.MAX_SAFE_INTEGER));for(let S of g)for(let F of S.spans)n({page:r,story:x,rootStory:o,root:e,storyOrigin:b,absoluteBox:Object.freeze({x:b.x+F.box.x,y:b.y+F.box.y,width:F.box.width,height:F.box.height}),noteScopeId:i,noteAreaKind:c,textboxDepth:f,textboxOwner:h,textboxPath:y,paragraph:d,paragraphId:S.paragraphId,line:m,span:F,sourceRange:Fn(F)});}},e.origin,s);}function vo(e,t){let n=new Map(chunk4GBTELJV_cjs.Sa(e).map((r,o)=>[r,o]));chunk4GBTELJV_cjs.Ca(e,r=>Co(r,n,t));}var Lo=1,Cn=4,j=Object.freeze({top:0,right:0,bottom:0,left:0}),vn=new WeakMap;function To(e,t){let n=Bo(e);return n===j?t:chunk4GBTELJV_cjs.Ie(t,n)}function Bo(e){let t=e.vectorShape;if(!t)return j;let{cx:n,cy:r}=t.extentEmu;if(!(n>=0)||!(r>=0)||n===0&&r===0)return j;let o=vn.get(t);if(o||(o=Oo(t),vn.set(t,o)),o===j)return j;let a=e.paintBounds,i=e.geometry.contentBounds;if(!(a.width>0||i.width<=0)||!(a.height>0||i.height<=0))return j;let c=n>0?i.width/n:i.height/r,s=r>0?i.height/r:i.width/n,d=(f,h,y)=>{if(y<-1e-3)return 0;let b=f*h-Math.max(0,y);return Number.isFinite(b)&&b>0?b:0},l={left:d(o.left,c,i.x-a.x),top:d(o.top,s,i.y-a.y),right:d(o.right,c,a.x+a.width-(i.x+i.width)),bottom:d(o.bottom,s,a.y+a.height-(i.y+i.height))};return l.left||l.top||l.right||l.bottom?Object.freeze(l):j}function Oo(e){let{cx:t,cy:n}=e.extentEmu,r=0,o=0,a=t,i=n,c=(l,f)=>{r=Math.min(r,l),a=Math.max(a,l),o=Math.min(o,f),i=Math.max(i,f);},s=Lo,d=l=>l.x>=-s&&l.x<=t+s&&l.y>=-s&&l.y<=n+s;for(let l of e.components){if(l.strokeHex===null||l.strokeInset===true)continue;let f=Math.max(1,chunk4GBTELJV_cjs.He(l.strokeWidthEmu))/2;l.subpathsEmu.forEach((h,y)=>{let b=l.subpathsClosed?.[y]!==false,x=Io(h,b),m=b&&x.length>2?x.length:x.length-1,g=[];for(let F=0;F<m;F+=1){let v=x[F],C=x[(F+1)%x.length],O=Math.hypot(C.x-v.x,C.y-v.y),p={x:-(C.y-v.y)/O,y:(C.x-v.x)/O};if(g.push(p),!!wo(v,C,-s,t+s,-s,n+s))for(let u=0;u<2;u+=1){let R=X[u],E=v.x+(C.x-v.x)*R,L=v.y+(C.y-v.y)*R;c(E+p.x*f,L+p.y*f),c(E-p.x*f,L-p.y*f);}}let S=b&&x.length>2?g.length:g.length-1;for(let F=0;F<S;F+=1){let v=x[(F+1)%x.length];if(!d(v))continue;let C=g[F],O=g[(F+1)%g.length],p=1+C.x*O.x+C.y*O.y;if(p<2/(Cn*Cn))continue;let u=C.y*-O.x- -C.x*O.y;if(u===0)continue;let R=u>0?-1:1;c(v.x+R*(C.x+O.x)*f/p,v.y+R*(C.y+O.y)*f/p);}});for(let h of l.arrowheadsEmu??[])if(!(!h[0]||!d(h[0])))for(let y of h)c(y.x,y.y);}return r>=0&&o>=0&&a<=t&&i<=n?j:Object.freeze({left:-r,top:-o,right:a-t,bottom:i-n})}function Io(e,t){let n=[];for(let a of e){let i=n[n.length-1];(!i||i.x!==a.x||i.y!==a.y)&&n.push(a);}let r=n[0],o=n[n.length-1];return t&&n.length>1&&r.x===o.x&&r.y===o.y&&n.pop(),n}var X=new Float64Array(2);function wo(e,t,n,r,o,a){let i=t.x-e.x,c=t.y-e.y;return X[0]=0,X[1]=1,we(-i,e.x-n)&&we(i,r-e.x)&&we(-c,e.y-o)&&we(c,a-e.y)}function we(e,t){if(e===0)return t>=0;let n=t/e;return e<0?X[0]=Math.max(X[0],n):X[1]=Math.min(X[1],n),X[0]<=X[1]}function D(e){return (e.kerningEnabled??e.kerningMinPt>0)&&e.kerningMinPt>0&&e.fontSizePt>=e.kerningMinPt}var Bn="Calibri, Carlito, Helvetica, Arial, sans-serif",pi=new Map([["calibri","Carlito"]]),Ao=65536,Po=256;function En(e,t){return e===void 0?Math.max(1,Math.floor(t)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function Ln(e){let t=new Map,n=0;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>e;){let a=t.keys().next();if(a.done)break;t.delete(a.value),n+=1;}},get size(){return t.size},get evictions(){return n}}}var Tn=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function On(e=null){return e!=null&&typeof e.measureText=="function"}function In(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??Bn,r=e.context??null;if(!On(r))return null;let o=r,a=Ln(En(e.maxWidthEntries,Ao)),i=Ln(En(e.maxMetricsEntries,Po)),c=e.fontAlias,s=l=>{let f=l.fontFamily&&Tn.test(l.fontFamily)?l.fontFamily:null,h=f?c?.(f):void 0,y=h&&Tn.test(h)?h:null,b=f?y?`"${y}", "${f}", ${n}`:`"${f}", ${n}`:n,x=l.bold?"bold":"normal",m=l.italic?"italic":"normal",g=l.smallCaps?"small-caps":"normal",S=l.fontSizePt*chunk4GBTELJV_cjs.fa(l)*t;return `${m} ${g} ${x} ${S}px ${b}`},d=(l,f,h)=>l/t*(h.horizontalScalePercent/100)+f.length*h.characterSpacingPt;return {measure(l,f){if(l.length===0)return 0;let h=s(f),y=`${h}\0${D(f)}\0${l}`,b=a.get(y);if(b!==void 0)return d(b,l,f);o.font=h,"fontKerning"in o&&(o.fontKerning=D(f)?"normal":"none");let x=o.measureText(l).width;return a.set(y,x),d(x,l,f)},inkBounds(l,f){if(!l||l.length>2||f.shaping?.direction==="rtl"||chunk4GBTELJV_cjs.ma(l).length!==1)return;o.font=s(f),"fontKerning"in o&&(o.fontKerning=D(f)?"normal":"none");let h=o.textAlign,y=o.direction,b;try{h!==void 0&&(o.textAlign="left"),y!==void 0&&(o.direction="ltr"),b=o.measureText(l);}finally{h!==void 0&&(o.textAlign=h),y!==void 0&&(o.direction=y);}let x=b.actualBoundingBoxLeft,m=b.actualBoundingBoxRight;if(x===void 0||m===void 0||!Number.isFinite(x)||!Number.isFinite(m))return;let g=f.horizontalScalePercent/(100*t);return {left:-x*g,right:m*g}},lineMetrics(l){let f=l.fontSizePt*chunk4GBTELJV_cjs.fa(l),h=s(l),y=i.get(h);if(y)return y;let b=f*1.15,x=f*.8;o.font=h,"fontKerning"in o&&(o.fontKerning=D(l)?"normal":"none");let m=o.measureText("Hxg"),g=m.fontBoundingBoxAscent,S=m.fontBoundingBoxDescent;if(typeof g=="number"&&Number.isFinite(g)&&g>0&&(x=g/t,typeof S=="number"&&Number.isFinite(S)&&S>=0)){let v=(g+S)/t;v>0&&(b=Math.max(v,b));}b>0||(b=f*1.15);let F={height:b,baseline:x};return i.set(h,F),F}}}function _o(e=1,t={}){let n=In({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:chunk4GBTELJV_cjs.ha(),producer:"fixed-measurer"}}function Mo(e){let t;return n=>{t===void 0&&(t=chunk4GBTELJV_cjs.gc(e.pages)?.hosts??null);let r=t?.get(n);return r?chunk4GBTELJV_cjs.ec(r.pageNumber,r.format):null}}function wn(e,t){let n=chunk4GBTELJV_cjs.qd(e,t.displayMode??chunk4GBTELJV_cjs.Za),r=chunk4GBTELJV_cjs.zc({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},n).listItems,o=t.package?{footnotesPart:chunkFIJZIQXA_cjs.ch(t.package,"footnote"),endnotesPart:chunkFIJZIQXA_cjs.ch(t.package,"endnote")}:void 0,a=chunk4GBTELJV_cjs.Vc(n,r,o,t.package?chunk4GBTELJV_cjs.Sc(t.package,e,n):void 0,t.displayMode??chunk4GBTELJV_cjs.Za);return {blocks:n,notes:o,context:a}}function An(e,t,n,r,o){for(let a of t){if(r.length>=chunkFIJZIQXA_cjs.Xk)return;if(n.tokenForParagraph(a.id)!==""&&chunkFIJZIQXA_cjs._k(e,a.id)===null)for(let i of chunkFIJZIQXA_cjs.Zk(a)){if(r.length>=chunkFIJZIQXA_cjs.Xk)return;if(!i.rewritable)continue;let c=chunk4GBTELJV_cjs.bc(i.instruction);if(c===null)continue;let s=n.liveValueOf(i.fieldNodeId,c);if(s===null&&o&&n.pageRefProjectionOf){let d=n.pageRefProjectionOf(i.fieldNodeId,c);if(d){let l=o(d.targetParagraphId);l!==null&&l.length>0&&chunk4GBTELJV_cjs.fc(d.calibration,d.cached,l,Number.NaN)&&(s=l);}}s===null||s===i.cachedText||s.length>chunkFIJZIQXA_cjs.Yk||s.includes("\r")||r.push({paragraphId:a.id,fieldNodeId:i.fieldNodeId,text:s});}}}function zo(e,t){let{blocks:n,context:r}=wn(e,t);if(r===null)return null;let o=[];return An(e,chunk4GBTELJV_cjs.dc(chunk4GBTELJV_cjs.sc(n)),r,o,t.pageRefPageNumberOf),o.length===0?null:{op:"refreshFieldResults",updates:o}}function Ci(e,t){let{notes:n,context:r}=wn(e,t);if(r===null||n===void 0)return [];let o=[],a=[{noteKind:"footnote",notesPart:n.footnotesPart},{noteKind:"endnote",notesPart:n.endnotesPart}];for(let{noteKind:i,notesPart:c}of a){if(!c)continue;let s=[];for(let d of chunk4GBTELJV_cjs.Tc(c,t.displayMode??chunk4GBTELJV_cjs.Za)){if(s.length>=chunkFIJZIQXA_cjs.Xk)break;An(c,chunk4GBTELJV_cjs.dc(chunk4GBTELJV_cjs.sc(d)),r,s);}s.length>0&&o.push({noteKind:i,op:{op:"refreshFieldResults",updates:s}});}return o}function ko(e){return e.box}function Pn(e,t){if(e.kind==="paragraph"){t.add(e.paragraphId);return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)Pn(o,t);}function No(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkFIJZIQXA_cjs.Nb*4)){for(let c of o.children)if(c.kind!=="textValue"){if(c.kind==="paragraph"){for(let s of r)t.get(s)?.push(c.id);n(c,c.id,i+1);continue}if(c.kind==="contentControl"){t.set(c.id,[]),r.push(c.id);let s=chunkFIJZIQXA_cjs.Xb(c);s&&n(s,a,i+1),r.pop();let d=t.get(c.id);d&&d.length===0&&a!==null&&d.push(a);continue}n(c,a,i+1);}}},r=[];return n(e,null,0),t}function Do(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return {x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}function Ho(e,t){let n=chunkFIJZIQXA_cjs.$b(e.root);if(n.length===0)return Uo;let r=new Map;t.pages.forEach((i,c)=>{(d=>{for(let l of d){let f=new Set;Pn(l,f);for(let h of f){let y=r.get(h)??[];y.push({pageIndex:c,box:ko(l)}),r.set(h,y);}}})(i.fragments);});let o=No(e.root),a=[];for(let i of n){let c=chunkFIJZIQXA_cjs.Zb(i.node),s=[...i.ancestors.map(h=>chunkFIJZIQXA_cjs.Zb(h).lock),c.lock],d=o.get(i.node.id)??[],l=new Map;for(let h of d)for(let y of r.get(h)??[]){let b=l.get(y.pageIndex);l.set(y.pageIndex,b?Do(b,y.box):y.box);}let f=[...l.entries()].sort((h,y)=>h[0]-y[0]).map(([h,y])=>({pageIndex:h,...y}));a.push({controlId:i.node.id,type:c.type,level:chunkFIJZIQXA_cjs._b(i.node),depth:i.depth,lock:c.lock,effectiveLock:chunkFIJZIQXA_cjs.cc(s),showingPlaceholder:c.showingPlaceholder,temporary:c.temporary,...c.tag===void 0?{}:{tag:c.tag},...c.alias===void 0?{}:{alias:c.alias},...c.id===void 0?{}:{id:c.id},...c.dataBinding===void 0?{}:{dataBinding:c.dataBinding},paragraphIds:d,fragments:f});}return a}var Uo=Object.freeze([]);function Mn(e,t,n){let r=e.lines?.find(o=>{let a=o.spans;if(!a)return n<o.range.end;let i=a.filter(c=>c.range.paragraphId===t);return i.length===a.length?n<o.range.end:i.length>0&&n<i[i.length-1].range.end});return r?r.box.y:e.fragmentY}function Jo(e,t){let n=new Map;for(let r of e.pages)for(let[o,a]of Qo(r,t))n.has(o)||n.set(o,a);return n}var _n=new WeakMap;function Qo(e,t){let n=_n.get(t);n||(n=new WeakMap,_n.set(t,n));let r=n.get(e);if(r)return r;let o=new Map;for(let a of t(e)){let i=new Set([a.paragraphId]);for(let c of a.lines??[])for(let s of c.spans??[])i.add(s.range.paragraphId);for(let c of i)o.has(c)||o.set(c,{pageIndex:e.index,contentY:e.contentBox.y,fragmentY:a.box.y,...a.lines?{lines:a.lines}:{}});}return n.set(e,o),o}function ea(e,t){let n=chunkFIJZIQXA_cjs.zj(e);if(!n)return null;let r=t.get(n.start.paragraphId);return r?{pageIndex:r.pageIndex,y:r.contentY+Mn(r,n.start.paragraphId,n.start.offset)}:null}var zn=new WeakMap;function ta(e){let t=zn.get(e);if(t!==void 0)return t;let n=chunk4GBTELJV_cjs.i(e),r=new DataView(n.buffer,n.byteOffset,n.byteLength),o=false,a=r.getUint32(0)===1953784678?r.getUint32(12+e.faceIndex*4):0,i=r.getUint16(a+4);for(let c=0;c<i;c++){let s=a+12+c*16;if(r.getUint32(s)!==1330851634)continue;let d=r.getUint32(s+8),l=r.getUint32(s+12);l>=86&&d<=n.byteLength-l&&r.getUint16(d)>=1&&(o=(r.getUint32(d+78)&1966080)!==0);break}return zn.set(e,o),o}function kn(e,t,n,r,o){if(r>o||Math.abs(n.height-t)>o||!ta(e))return n;let a=t*.3;return {height:n.height+a,baseline:n.baseline+a/2}}var na="abcdefghijklmnopqrstuvwxyz";function H(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function V(e,t,n,r,o){let a=r.shaping?.context;return e.shape({text:o,fontSizeHalfPoints:H(r),bidiLevel:r.shaping?.direction==="rtl"?1:0,environment:ra(t,n,r),...a?{context:a}:{}})}var Nn=new WeakMap;function ra(e,t,n){if(!Object.isFrozen(e)||!Object.isFrozen(e.features)||!Object.isFrozen(e.variationAxes)||!Object.isFrozen(e.shapingLibrary))return Dn(e,t,n);let r=n.shaping?.direction??"ltr",o=n.shaping?.script,a=`${r}|${o??""}|${D(n)?1:0}|${e.documentLigatures?chunk4GBTELJV_cjs.D(n):""}|${n.smallCaps?1:0}`,i=Nn.get(e);i||Nn.set(e,i=new WeakMap);let c=i.get(t);c||i.set(t,c=new Map);let s=c.get(a);return s||c.set(a,s=Dn(e,t,n)),s}function Dn(e,t,n){return chunk4GBTELJV_cjs.p({...e,font:t,direction:n.shaping?.direction??"ltr",script:n.shaping?.script==="Zyyy"?e.script:n.shaping?.script??e.script,features:{...e.features,kern:D(n)?1:0,...e.documentLigatures?chunk4GBTELJV_cjs.C(n):{},...n.smallCaps?{smcp:1}:{}},fallbackOrder:[]})}function Ae(e,t,n,r,o){let a=o.get(n);if(a!==void 0)return a;let i=true;try{for(let c of na){let s=V(e,t,n,{...r,smallCaps:!0},c),d=V(e,t,n,{...r,smallCaps:!1},c);if(!(s.glyphs.length!==d.glyphs.length||s.glyphs.some((f,h)=>f.id!==d.glyphs[h]?.id))){i=!1;break}}}catch{i=false;}return o.set(n,i),i}function Hn(e,t,n,r,o){let a=new WeakMap;return (i,c)=>{let s=chunk4GBTELJV_cjs.fa(c),d=a.get(i);d||(d=new Map,a.set(i,d));let l=H(c),f=d.get(l);if(f)return s===1?f:{height:f.height*s,baseline:f.baseline*s};let h,y=true,b=i.substitution?.lineMetrics;if(b){let x=l/2;h={height:b.heightEm*x,baseline:b.baselineEm*x};}else try{let x=V(e,t,i,c,""),m=x.metrics.ascent/t.fixedPointScale,g=x.metrics.descent/t.fixedPointScale,S=l/2,F=m+g,v=S*r,C=F>v?v/F:1,O=F*C,p=Math.min(Math.max(0,x.metrics.lineGap/t.fixedPointScale),O*o),u=O+p;u>0?h=kn(i,S,{height:u,baseline:m*C+p},p,2/t.fixedPointScale):(h=n.lineMetrics(c),y=!1);}catch{h=n.lineMetrics(c),y=false;}return y?(d.set(l,h),s===1?h:{height:h.height*s,baseline:h.baseline*s}):h}}var pt=2048,oa=32,aa=new Map([["symbol",{ascent:2059,descent:450,advances:[512,682,1460,1024,1124,1706,1593,899,682,682,1024,1124,512,1124,512,569,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,569,569,1124,1124,1124,909,1124,1479,1366,1479,1253,1251,1563,1235,1479,682,1292,1479,1405,1821,1479,1479,1573,1518,1139,1212,1251,1413,899,1573,1321,1628,1251,682,1767,682,1348,1024,1024,1292,1124,1124,1012,899,1067,842,1235,674,1235,1124,1124,1180,1067,1124,1124,1067,1124,1235,899,1180,1460,1405,1010,1405,1012,983,410,983,1124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1270,506,1124,342,1460,1024,1542,1542,1542,1542,2134,2021,1235,2021,1235,819,1124,842,1124,1124,1460,1012,942,1124,1124,1124,1124,2048,1235,2048,1348,1686,1405,1628,2021,1573,1573,1686,1573,1573,1460,1460,1460,1460,1460,1460,1460,1573,1460,1618,1618,1823,1686,1124,512,1460,1235,1235,2134,2021,1235,2021,1235,1012,674,1618,1618,1610,1460,786,786,786,786,786,786,1012,1012,1012,1012,0,674,561,1405,1405,1405,786,786,786,786,786,786,1012,1012,1012,0]}],["wingdings",{ascent:1841,descent:432,advances:[2048,2110,2344,2665,2752,1830,2492,938,2220,1826,2319,2319,2399,2399,2951,2956,2245,2751,1431,1431,1826,1135,1233,2196,1941,2208,1924,1825,1826,1826,1825,1863,1863,1203,1624,1381,1381,1929,1929,1124,1124,1826,1727,1727,1727,2275,1352,1739,2230,1819,1803,1332,1665,1529,1529,1480,1420,1627,1813,1826,1834,1825,2368,2159,1974,2233,1927,1911,1937,2099,1902,2245,2181,1597,2150,2603,1529,1951,1529,1825,1825,1825,1825,937,1529,2020,1825,1183,2171,2171,1825,1826,1826,1086,1086,0,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,2048,2048,2048,2048,2048,2048,2048,2048,641,937,641,1825,1825,1825,1825,1825,1951,937,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2146,2146,2146,2146,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2566,2566,1627,1627,1825,1825,1825,1825,1825,1825,2006,2006,1825,1825,1589,1589,1589,1589,2186,2186,1825,1825,1787,1787,1787,1787,1825,1825,1660,1660,2171,1660,1601,1601,1601,1601,987,789,1301,1609,1826,1826,2119]}],["wingdings 2",{ascent:1727,descent:432,advances:[2048,2110,2090,2073,2086,2344,2045,2220,989,1431,1431,1826,1431,1431,1826,1431,1431,1826,1431,1431,2320,2246,1826,1826,1826,2320,2170,2170,1381,1381,1938,1938,1938,1938,1928,1928,1928,1928,1047,1047,1047,1047,1178,1178,1178,1178,1826,1321,1568,1826,1826,1826,1826,1825,1825,1826,1826,2226,1727,1548,1579,984,1035,864,1018,2048,2048,2048,2048,2048,2048,2048,2048,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,0,1899,1899,1453,1453,1673,1332,1431,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2048,2048,542,740,1135,1825,1825,1825,1825,1825,1825,1825,542,740,1135,1825,1825,1825,1825,1825,1825,1825,1825,1825,624,764,903,1461,2020,2020,2020,2020,2020,542,641,740,1135,1529,1529,1085,1085,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1496,1825,0,0,0,0,0,0]}],["wingdings 3",{ascent:1900,descent:432,advances:[2048,1825,1825,1135,1135,1444,1444,1444,1444,1825,1825,1135,1135,1677,1677,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1825,1825,1455,1455,1455,1455,2010,2010,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2220,1825,1751,1114,1115,1660,1660,1930,1930,1930,1930,1924,1924,1924,1924,1930,1930,1931,1931,1825,1825,1232,1232,1444,1444,1444,1444,1825,1232,2005,2005,2005,2005,1801,1801,1801,1801,1801,1801,1801,1801,1085,1085,1825,0,1825,1825,1825,1825,1825,1627,1627,1825,1825,1825,1825,789,789,1825,1825,987,987,1825,1825,1184,1184,1825,1825,1579,1579,1825,1825,888,888,1825,1825,1381,1381,1825,1825,1875,1875,1825,1825,1825,1825,1825,1825,1825,789,592,493,394,1825,1825,1825,1825,1825,1085,1085,1381,1381,1628,1628,1184,1184,900,900,1825,1825,1019,1019,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1291,1291,1291,1291,1961,1961,1825,1825,1540,1540,1540,1540,2096,2096,1825,1825,1688,1688,1688,1688,2277,2277,1825,1825,1885,1885,1885,1885,543,543,1234,1234,766,766,1234,1234,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}],["webdings",{ascent:1638,descent:410,advances:[1024,2048,2048,2048,2048,2028,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1100,1100,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1144,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,0,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2500,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1377,1377,2048,1726,1058,2048,2048,2048,2048,877,1240,2048,2048,2048,2048,1357,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2645,2048,2048,2048,2048]}]]);function ia(e){if(chunkFIJZIQXA_cjs.b(e))return aa.get(e.toLowerCase())}function Un(e,t,n,r){let o=H(r)/2*chunk4GBTELJV_cjs.fa(r)*(r.horizontalScalePercent/100)/pt,a=[];for(let i=0;i<n.length;i++){let c=chunkFIJZIQXA_cjs.c(n.charCodeAt(i),t),s=c===null?0:e.advances[c-oa]??0;if(s===0)return;a.push(s*o+r.characterSpacingPt);}return a}function Gn(e){let t=new WeakMap,n=r=>{let o=t.get(r);return o===void 0&&(o=ia(r.fontFamily)??null,t.set(r,o)),o};return {...e,measure(r,o){let a=n(o),i=a&&Un(a,o.fontFamily,r,o);if(!i)return e.measure(r,o);let c=0;for(let s of i)c+=s;return c},caretAdvances(r,o){let a=n(o),i=a&&Un(a,o.fontFamily,r,o);if(!i)return e.caretAdvances?.(r,o);let c=[0];for(let s of i)c.push(c[c.length-1]+s);return c},lineMetrics(r,o){let a=n(r);if(!a)return e.lineMetrics(r,o);let i=H(r)/2*chunk4GBTELJV_cjs.fa(r);return {height:(a.ascent+a.descent)*i/pt,baseline:a.ascent*i/pt}}}}var ft=new WeakMap;function sa(e){let t=ft.get(e);if(t!==void 0)return t??void 0;let n=e.path;if(!n.startsWith("M")||n.length>1e6||/[^MLQCZ0-9eE+.,\s-]/u.test(n))return;let r=1/0,o=-1/0,a=n.matchAll(/([MLQCZ])([^MLQCZ]*)/gu);for(let c of a){let s=c[1]==="Z"?0:c[1]==="C"?6:c[1]==="Q"?4:2,d=c[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(d.length!==s||d.some(l=>!Number.isFinite(l))){ft.set(e,null);return}for(let l=0;l<d.length;l+=2)r=Math.min(r,d[l]),o=Math.max(o,d[l]);}let i=Number.isFinite(r)&&Number.isFinite(o)?{left:r,right:o}:void 0;return ft.set(e,i??null),i}function Wn(e,t,n,r){if(e.clusters.length!==1||e.glyphs.length===0)return;let o=1/0,a=-1/0;for(let c of e.glyphs){if(c.id===0)return;let s=sa(c.outline),d=c.outline.unitsPerEm;if(!s||!(d>0))return;let l=(c.originX+c.offsetX)/n;o=Math.min(o,l+s.left*t*(c.drawScale??1)/d),a=Math.max(a,l+s.right*t*(c.drawScale??1)/d);}let i={left:o*r,right:a*r};return Number.isFinite(i.left)&&Number.isFinite(i.right)?i:void 0}function ca(e,t,n){if(t<12)return null;if(e.getUint32(0)!==1953784678)return 0;let o=12+(Number.isSafeInteger(n)&&n>0?n:0)*4;if(o+4>t)return null;let a=e.getUint32(o);return a+12<=t?a:null}function Kn(e,t,n,r,o){let a=e.getUint16(n+4);if(a>4096||n+12+a*16>t)return null;for(let i=0;i<a;i+=1){let c=n+12+i*16;if(e.getUint32(c)!==r)continue;let s=e.getUint32(c+8),d=e.getUint32(c+12);return d<o||s+d>t?null:s}return null}function Xn(e,t){let n=e.byteLength,r=new DataView(e.buffer,e.byteOffset,n),o=ca(r,n,t);if(o===null)return null;let a=Kn(r,n,o,1751474532,54);if(a===null)return null;let i=r.getUint16(a+18);if(i<=0)return null;let c=Kn(r,n,o,1330851634,30);if(c===null)return null;let s=r.getInt16(c+26)/i,d=r.getInt16(c+28)/i;return !(s>0)||s>1||!(Math.abs(d)<=1)?null:{offsetEm:d,thicknessEm:s}}var la=.5,da=4,Vn=4096;function jn(e){let t="environment"in e?e.environment:void 0,n="environment"in e?void 0:e,{shaper:r,resolveFont:o}=e,a=Gn(e.fallback),i=t??{shapingLibrary:n.shapingLibrary,unicodeDataVersion:n.unicodeDataVersion,script:n?.script??"Latn",fixedPointScale:n?.fixedPointScale??1e3,normalization:n?.normalization??"none",features:n?.features??{},roundingMode:n?.roundingMode??"halfToEven",language:n?.language??"en",variationAxes:{}},c=new WeakMap,s=new WeakMap,d=Hn(r,i,a,da,la),l=new WeakMap,f=new WeakMap,h=new Array(Vn),y=0,b=(p,u,R)=>{let E=h[y];E&&E.cache.delete(E.text),p.set(u,R),h[y]={cache:p,text:u},y=(y+1)%Vn;},x=p=>{let u=l.get(p);if(u!==void 0)return u;let R=o(p);return l.set(p,R),R},m=(p,u,R)=>{let E=R?s:c,L=E.get(p);L||(L=new Map,E.set(p,L));let B=L.get(u);return B||(B=new Map,L.set(u,B)),B},g=new WeakMap,S=p=>{if(!p.shaping?.wordSpacingPt)return p;let u=g.get(p);return u||(u={...p,shaping:{...p.shaping,wordSpacingPt:void 0}},g.set(p,u)),u},F=(p,u)=>u.shaping?.wordSpacingPt?chunk4GBTELJV_cjs.Bd(p)*u.shaping.wordSpacingPt:0,v=(p,u)=>a.measure(p,S(u))+F(p,u),C=(p,u)=>{let R=Math.max(0,a.measure(p,S(u))),E=a.caretAdvances?.(p,S(u))??chunk4GBTELJV_cjs.zd(p,R);if(!E||E.length!==p.length+1)return chunk4GBTELJV_cjs.zd(p,v(p,u));let L=Math.max(0,v(p,u)),B=0,P=0;return E.map((A,M)=>{if(M===0)return 0;p[M-1]===" "&&P++;let I=A+P*(u.shaping?.wordSpacingPt??0);return B=Math.max(B,Math.min(L,Number.isFinite(I)?I:B)),M===p.length?L:B})},O=new WeakMap;return {hasResolvedFont(p){return x(p)!==null},strikeoutMetrics(p){let u=x(p);if(!u)return;let R=O.get(u);if(R===void 0&&(R=Xn(u.bytes,u.faceIndex),O.set(u,R)),!R)return;let E=H(p)/2*chunk4GBTELJV_cjs.fa(p);return {offsetPt:R.offsetEm*E,thicknessPt:R.thicknessEm*E}},measure(p,u){if(p.length===0)return 0;let R=x(u);if(!R)return v(p,u);let E=m(R,H(u),u.smallCaps),L=u.shaping?.context,B=u.shaping?`1:${JSON.stringify(L?[u.shaping.script,u.shaping.direction,p,L.before,L.after]:[u.shaping.script,u.shaping.direction,p])}`:`0:${p}`,P=`${D(u)?1:0}:${chunk4GBTELJV_cjs.D(u)}:${B}`,A=E.get(P);if(A===void 0){let M=0;try{if(u.smallCaps&&!Ae(r,i,R,u,f))return v(p,u);let I=V(r,i,R,u,p);if(I.glyphs.some(U=>U.id===0))return v(p,u);for(let U of I.glyphs)M+=U.advanceX;}catch{return v(p,u)}A=M/i.fixedPointScale,b(E,P,A);}return A*chunk4GBTELJV_cjs.fa(u)*(u.horizontalScalePercent/100)+p.length*u.characterSpacingPt+F(p,u)},inkBounds(p,u){if(!p||p.length>2||u.shaping?.direction==="rtl"||chunk4GBTELJV_cjs.ma(p).length!==1)return;let R=x(u);if(!R)return a.inkBounds?.(p,u);try{if(u.smallCaps&&!Ae(r,i,R,u,f))return a.inkBounds?.(p,u);let E=V(r,i,R,u,p);return Wn(E,H(u)/2,i.fixedPointScale,chunk4GBTELJV_cjs.fa(u)*u.horizontalScalePercent/100)}catch{return}},caretAdvances(p,u){let R=x(u);if(!R)return C(p,u);try{if(u.smallCaps&&!Ae(r,i,R,u,f))return C(p,u);let E=V(r,i,R,u,p);return E.glyphs.some(L=>L.id===0)?C(p,u):chunk4GBTELJV_cjs.Ad(p,E,chunk4GBTELJV_cjs.fa(u)*(u.horizontalScalePercent/100)/i.fixedPointScale,u.characterSpacingPt,u.shaping?.wordSpacingPt??0)??chunk4GBTELJV_cjs.zd(p,E.glyphs.reduce((L,B)=>L+B.advanceX,0)*chunk4GBTELJV_cjs.fa(u)*(u.horizontalScalePercent/100)/i.fixedPointScale+p.length*u.characterSpacingPt+F(p,u))}catch{return C(p,u)}},lineMetrics(p,u){let R=x(p);if(!R)return a.lineMetrics(p,u);if(!u||/^[\t\n\r\f ]*$/.test(u))return d(R,p);try{let E=V(r,i,R,p,u),L=0,B=0;for(let P of E.fontSpans){let A=d(P.font,p);L=Math.max(L,A.baseline),B=Math.max(B,A.height-A.baseline);}if(L+B>0)return {height:L+B,baseline:L}}catch{}return d(R,p)}}}function ua(e,t){return jn({...t,shaper:e.shaper,environment:e.environment})}function pa(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let s of t.pages)r.add(s.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,c=-1;for(let s of t.pages){let d=s.box.y;d+s.box.height>=n.top&&d<=a&&(i===-1&&(i=s.index),c=s.index);}if(i===-1){let s=fa(t,n.top);s!==null&&(i=s,c=s);}if(i!==-1){let s=Math.max(0,i-o),d=Math.min(t.pages.length-1,c+o);for(let l=s;l<=d;l+=1)r.add(l);}for(let s of e.pinnedPages??[])s>=0&&s<t.pages.length&&r.add(s);return r}function fa(e,t){let n=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=t<o.box.y?o.box.y-t:t>o.box.y+o.box.height?t-(o.box.y+o.box.height):0;a<r&&(r=a,n=o.index);}return n}var Yn=["text-local","paragraph-local","flow-structural","global"];function $n(e,t){return Yn.indexOf(t)>Yn.indexOf(e)?t:e}function ya(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function ma(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,c=null,s=0,d=0;function l(m){let g=e.runCooperatively;if(!g)return t(m);let S=g(m);c=S;try{for(;;){let F=S.step();if(F)return F;if(n()!==m.revision)return S.cancel(),d+=1,null;if(c!==S)return null}}finally{c===S&&(c=null);}}function f(m){let g=y(n());g.impact=$n(g.impact,m.impact),g.structural=g.structural||m.structural;for(let S of m.paragraphIds)g.paragraphIds.add(S);for(let S of m.created)g.created.add(S);for(let S of m.deleted)g.deleted.add(S);for(let S of m.dependencyKeys)g.dependencyKeys.add(S);}let h=m=>({impact:m.impact,paragraphIds:m.paragraphIds,created:m.created,deleted:m.deleted,dependencyKeys:m.dependencyKeys,structural:m.structural,revision:m.revision});function y(m){return a||(a=ya(m)),a.revision=Math.max(a.revision,m),a}function b(){!o||i||(i=o(()=>{i=null,x();}));}function x(){i&&(i(),i=null),c&&(c.cancel(),c=null,d+=1);let m=a;if(!m)return false;a=null;let g=h(m),S=l(g);return !S||S.revision!==n()?(s+=1,f(g),b(),false):(r(S,g),true)}return {notify(m){let g=y(n());g.impact=$n(g.impact,m.impact);for(let S of m.dirty)g.paragraphIds.add(S);for(let S of m.created)g.created.add(S),g.paragraphIds.add(S);for(let S of m.deleted)g.deleted.add(S),g.paragraphIds.add(S);for(let S of m.dependencyKeys)g.dependencyKeys.add(S);for(let S of m.splitJoin)g.structural=true,"split"in S?(g.paragraphIds.add(S.split.from),g.paragraphIds.add(S.split.tail)):(g.paragraphIds.add(S.join.kept),g.paragraphIds.add(S.join.removed));(m.impact==="flow-structural"||m.impact==="global")&&(g.structural=true),b();},invalidateAll(m,g){let S=y(m);S.impact="flow-structural",S.structural=true,g&&S.dependencyKeys.add(g),b();},flush:x,pending:()=>a?h(a):null,cancel(){i?.(),i=null,c?.cancel(),c=null,a=null;},get staleDiscards(){return s},get cancelledRuns(){return d}}}var qn=new WeakMap;function $(e){let t=qn.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=new Map,i=(s,d,l,f)=>{for(let h of s){if(h.kind==="paragraph")continue;let y=h.tableId;a.set(y,Math.max(a.get(y)??0,(h.columnEdges?.length??1)-1));let b=o.get(y);b||(b=new Map,o.set(y,b),n.set(y,[]),r.set(y,new Map));for(let x of h.rows){let m=b.get(x.id);m===void 0&&(m=b.size,b.set(x.id,m),r.get(y).set(m,x.cells));for(let g of x.cells)n.get(y).push({pageIndex:d,tableId:y,row:x,cell:g,rowIndex:m,isHeaderRepeat:x.isHeaderRepeat,offsetX:l,offsetY:f}),i(g.blocks,d,l,f);}}};for(let s of e.pages){i(s.fragments,s.index,0,0);for(let d of [s.header,s.footer])d&&i(d.fragments,s.index,d.box.x-s.contentBox.x,d.box.y-s.contentBox.y);for(let d of [s.footnotes,s.endnotes])if(d)for(let l of d.notes)i(l.fragments,s.index,l.box.x-s.contentBox.x,l.box.y-s.contentBox.y);}let c=new Map;for(let[s,d]of n)c.set(s,{placed:d,rows:r.get(s)??new Map,columnCount:a.get(s)??0});return qn.set(e,c),c}function ha(e){let t=e.columnCount;for(let n of e.rows.values())for(let r of n)t=Math.max(t,Y(r).to+1);return t}var Y=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function ga(e,t,n){if(t.tableId!==n.tableId)return null;let r=$(e).get(t.tableId);if(!r)return null;let o=Math.min(t.rowIndex,n.rowIndex),a=Math.max(t.rowIndex,n.rowIndex),i=Math.min(Y(t).from,Y(n).from),c=Math.max(Y(t).to,Y(n).to),s=y=>{let{from:b,to:x}=Y(y);return x>=i&&b<=c},d=y=>(r.rows.get(y)??[]).some(b=>b.vMergeContinue&&s(b)),l=r.rows.size+ha(r)+2;for(let y=0;!(y>l);y+=1){let b=false;for(let[x,m]of r.rows)if(!(x<o||x>a))for(let g of m){if(!s(g))continue;let{from:S,to:F}=Y(g);S<i&&(i=S,b=true),F>c&&(c=F,b=true);}for(;o>0&&d(o);)o-=1,b=true;for(;d(a+1);)a+=1,b=true;if(!b)break}let f=[],h=new Set;for(let y of r.placed){if(y.isHeaderRepeat||y.rowIndex<o||y.rowIndex>a)continue;let{from:b,to:x}=Y(y.cell);x<i||b>c||h.has(y.cell.id)||(h.add(y.cell.id),f.push(y.cell.id));}return f.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:f,rows:{from:o,to:a},columns:{from:i,to:c},text:Sa(e,t.tableId,f)}}function ps(e,t){return Jn(e,t,true)}function Pe(e,t){return Jn(e,t,false)}function Jn(e,t,n){let r=new Set(t),o=[],a=new Set;for(let i of $(e).values())for(let c of i.placed)if(!(c.isHeaderRepeat||!r.has(c.cell.id)))for(let s of c.cell.blocks)n&&s.kind!=="paragraph"||ue(s,o,a);return o}function ue(e,t,n){if(e.kind==="paragraph"){for(let r of chunk4GBTELJV_cjs.Pa(e))n.has(r)||(n.add(r),t.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)ue(a,t,n);}function Sa(e,t,n){let r=Pe(e,n),o=r[0],a=r[r.length-1];return !o||!a?ba(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:chunk4GBTELJV_cjs.pe(e,a).length}}}function ba(e,t){let n=$(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let c of o.cell.blocks)ue(c,a,new Set);let i=a[0];if(i){let c={paragraphId:i,offset:0};return {anchor:c,head:c}}}for(let o of e.pages)for(let a of chunk4GBTELJV_cjs.xa(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function xa(e){let t=[...chunk4GBTELJV_cjs.xa(e)];for(let n of [e.header,e.footer])n&&t.push(...chunk4GBTELJV_cjs.ya(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...chunk4GBTELJV_cjs.ya(r.fragments));return t}function Ra(e,t){let n=new Set(Pe(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of xa(a))if(n.has(i.paragraphId))for(let c of i.lines)for(let s of c.spans){let d=`${s.range.paragraphId}:${s.range.start}:${s.range.end}`;o.has(d)||(o.add(d),r.push(s));}return r}function Fa(e,t){let n=new Set(t),r=[];for(let o of $(e).values())for(let a of o.placed)n.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x+a.offsetX,y:a.cell.box.y+a.offsetY,width:a.cell.box.width,height:a.cell.box.height});return r}function Ca(e,t,n=chunk4GBTELJV_cjs.pe){let r=$(e).get(t.tableId);if(!r)return "";let o=new Set(t.cellIds),a=r.placed.some(s=>s.cell.logicalGridColumn!==void 0),i=new Map,c=new Set;for(let s of r.placed){if(s.isHeaderRepeat||!o.has(s.cell.id)||c.has(s.cell.id))continue;c.add(s.cell.id);let d=Pe(e,[s.cell.id]).map(h=>n(e,h)).join(`
2
- `),l=i.get(s.rowIndex),f=s.cell.gridColumn+(a?Math.max(1,s.cell.gridSpan)-1:0);l?l.set(f,d):i.set(s.rowIndex,new Map([[f,d]]));}return [...i.keys()].sort((s,d)=>s-d).map(s=>{let d=i.get(s),l=[];for(let f=0;f<=t.columns.to-t.columns.from;f+=1){let h=a?t.columns.to-f:t.columns.from+f;l.push(d.get(h)??"");}return l.join(" ")}).join(`
3
- `)}function yt(e,t){return chunk4GBTELJV_cjs.De(e,t)}function fs(e,t,n){if(n){let a=yt(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let c=$(e).get(n.tableId);if(!c)return null;for(let s of c.placed)if(s.cell.id===i)return {tableId:n.tableId,rowId:s.row.id,cellId:i,cellIds:n.cellIds,gridColumnIndex:s.cell.logicalGridColumn??s.cell.gridColumn,isHeaderRepeat:s.isHeaderRepeat};return null}let r=yt(e,t);if(!r)return null;let o=$(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let c of a.cell.blocks)ue(c,i,new Set);if(i.includes(t))return {tableId:r.tableId,rowId:a.row.id,cellId:a.cell.id,cellIds:[a.cell.id],gridColumnIndex:a.cell.logicalGridColumn??a.cell.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}var Zn=new WeakMap;function ys(e,t){let n=Zn.get(e);if(n)return n.get(t)??null;let r=new Map;for(let[o,a]of $(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let c=[];for(let d of i.cell.blocks)ue(d,c,new Set);let s={tableId:o,rowId:i.row.id,cellId:i.cell.id,rowIndex:i.rowIndex,gridColumn:i.cell.gridColumn,gridSpan:i.cell.gridSpan};for(let d of c){let l=r.get(d);l&&l.tableId.length>=o.length||r.set(d,s);}}return Zn.set(e,r),r.get(t)??null}function va(e,t,n){if(![e,t,n].every(Number.isFinite)||t<=0||n<=0)return {offsetPt:0,count:0};let r=Math.ceil(e/n-1e-9)*n;if(!Number.isFinite(r))return {offsetPt:0,count:0};let o=Math.max(0,r-e);return {offsetPt:o,count:Math.min(8192,Math.max(0,Math.floor((t-o)/n+1e-9)))}}exports.$=Ae;exports.A=mn;exports.B=hn;exports.C=gn;exports.D=Sn;exports.E=bn;exports.F=yo;exports.G=mo;exports.H=te;exports.I=So;exports.J=dt;exports.K=Fn;exports.L=vo;exports.M=To;exports.N=D;exports.O=Bn;exports.P=pi;exports.Q=On;exports.R=In;exports.S=_o;exports.T=Mo;exports.U=zo;exports.V=Ci;exports.W=Ho;exports.X=Mn;exports.Y=Jo;exports.Z=ea;exports._=V;exports.a=Ze;exports.aa=jn;exports.b=or;exports.ba=ua;exports.c=Z;exports.ca=pa;exports.d=Qe;exports.da=ma;exports.e=ar;exports.ea=ga;exports.f=T;exports.fa=ps;exports.g=et;exports.ga=Pe;exports.h=rt;exports.ha=Ra;exports.i=Na;exports.ia=Fa;exports.j=K;exports.ja=Ca;exports.k=to;exports.ka=yt;exports.l=no;exports.la=fs;exports.m=Ka;exports.ma=ys;exports.n=at;exports.na=va;exports.o=Xa;exports.p=ro;exports.q=ao;exports.r=Va;exports.s=io;exports.t=it;exports.u=Oe;exports.v=so;exports.w=co;exports.x=lo;exports.y=ct;exports.z=yn;
@@ -1 +0,0 @@
1
- import {gf,Ze,If,Va,Za,ha,Ge,Me,$e,Ke,hc,hf,af,Gf,Ye,_a,Ya,ff,Ea,Ue,Ca,Fa,Ba as Ba$1,wa,La,ge,qd as qd$1,ob,ne,xe,ze,od as od$1,ye as ye$1}from'./chunk-FRXAOVTB.js';import {Ba,aa,ba}from'./chunk-J6BVWIDB.js';import {ie,kf,yj,ch,bd,ff as ff$1,Yj,jb,Lj,Nj,og,ab,td,Hd,$,sd,rd,Ld,Kd,od,qd,hk,_h,dk,_j,jg,la,Aa}from'./chunk-4R3TEXMN.js';var Kt=Object.freeze({}),zt=Object.freeze([]);function Ht(e){let t=Object.keys(e);if(t.length===0)return Kt;let r={};for(let n of t){let o=e[n];o!==void 0&&(r[n]=o);}return Object.freeze(r)}function Wt(e){let t=new Map(og(e.part())),r=new Set([e.part()]);for(let o of e.headerFooterPartsBySection())for(let a of [o.headers,o.footers])for(let i of a.values())if(!r.has(i)){r.add(i);for(let[s,c]of og(i))t.has(s)||t.set(s,c);}let n=e.currentPackage();for(let o of ["footnote","endnote"]){let a=ch(n,o);if(!(!a||r.has(a))){r.add(a);for(let[i,s]of og(a))t.has(i)||t.set(i,s);}}return t}function $t(e,t){let r=ne(e,t);if(!r)return null;let n=e.pages[r.pageIndex];if(!n)return null;let o=xe(n),a=ze(e,t.paragraphId,r.pageIndex),i=Object.freeze({x:r.x+a.x,y:r.y+a.y,height:r.height});return Object.freeze({anchor:Object.freeze({...t}),pageIndex:r.pageIndex,pageContent:i,pageStack:Object.freeze({x:o.x+i.x,y:o.y+i.y})})}function Ut(e,t){let r=[];for(let n of t.values()){let o=$t(e,n);o&&r.push(o);}return r.length===0?zt:Object.freeze(r)}function ft(e,t){return {documentMetadata:Ht(e.documentProperties()),destinations:Ut(t,Wt(e))}}function Er(e,t){let r=e.destinations;if(r){for(let n of r)if(n.anchor.name===t)return n}}function yt(e={}){return Object.freeze({async decode(t,r,n){let o=ie(t,r);if(!o)throw new Error(`Unsupported or malformed ${r} image`);if(o.pixelWidth>n.maxDimension||o.pixelHeight>n.maxDimension||o.pixelWidth>n.maxPixels/o.pixelHeight)throw new Error("Image dimensions exceed resource limits");return Object.freeze({pixelWidth:o.pixelWidth,pixelHeight:o.pixelHeight,dpiX:o.dpiX??96,dpiY:o.dpiY??96})},...e.convertPreserved?{convertPreserved:e.convertPreserved}:{}})}var gt=new WeakMap;function ht(e,t){let r=gt.get(e);r||(r=Ke(e),gt.set(e,r));let n=r.styleCascade(),o=new Set;if(t===e.part())for(let c of qd$1(t,void 0,void 0,n,r.numberingIndex()))for(let h of ob(c)?.slice(0,-1)??[])o.add(h.paragraph.id);let a=c=>{if(c.kind==="textValue")return false;let h=c.children.find(d=>d.kind!=="textValue"&&d.namespaceUri===la&&d.localName==="pPr"),p=h?.kind!=="textValue"?h?.children.find(d=>d.kind!=="textValue"&&d.namespaceUri===la&&d.localName==="rPr"):void 0;return p!==void 0&&Aa(p,"vanish")},i=0,s=(c,h)=>{if(++i>Hd||h>$||c.kind==="textValue")return false;if(c.kind==="paragraph"&&!o.has(c.id)&&(od$1(c,n,false)||a(c))&&jg(c).length>0)return true;for(let p of c.children){if(i>=Hd)break;if(s(p,h+1))return true}return false};return s(t.root,0)}var wt=new WeakMap,Gt=new Set(["shape","rect","roundrect","oval","line","group","arc","curve","polyline","image"]);function Yt(e,t){let r=wt.get(e.root);if(r&&r.stylesPart===t)return r.codes;let n=ab(t),o=new Set,a=[{node:e.root,scope:td(),depth:0,mcSelected:false,framed:false}],i=0;for(;a.length;){let{node:c,scope:h,depth:p,mcSelected:d,framed:y}=a.pop();if(++i>Hd||p>$){o.add("scan-limit");break}if(c.kind==="textValue")continue;if(i+a.length+c.children.length>Hd){o.add("scan-limit");break}let g=sd(h,c),w=y||n(c),l=rd(c)?c:void 0;if(l){if(Ld(l,g).drawing)continue;let m=Kd(l,g);m.refused&&o.add("scan-limit"),m.branch&&a.push({node:m.branch,scope:g,depth:p+1,mcSelected:true,framed:w});continue}if(!d&&od(c)&&!(w&&c.localName==="object")){let m=qd(c,e.name)?.textboxStory?.content;m&&a.push({node:m,scope:g,depth:p+1,mcSelected:d,framed:w});continue}if(c.namespaceUri==="urn:schemas-microsoft-com:vml"&&c.localName==="textbox"){o.add("legacy-textbox");continue}c.namespaceUri==="urn:schemas-microsoft-com:vml"&&Gt.has(c.localName)&&!c.children.some(m=>m.kind!=="textValue"&&m.namespaceUri==="urn:schemas-microsoft-com:vml"&&m.localName==="textbox")&&o.add("legacy-drawing");for(let m of c.children)a.push({node:m,scope:g,depth:p+1,mcSelected:d,framed:w});}let s=Object.freeze([...o]);return wt.set(e.root,{stylesPart:t,codes:s}),s}function xt(e){let t=new Set([e.part()]);for(let r of e.headerFooterPartsBySection())for(let n of [r.headers,r.footers])for(let o of n.values())t.add(o);for(let r of ["footnote","endnote"]){let n=ch(e.currentPackage(),r);n&&t.add(n);}return Object.freeze([...t].flatMap(r=>[...Yt(r,bd(e.currentPackage())),...ht(e,r)?["unsupported-style-separator"]:[]].map(n=>Object.freeze({code:n,partName:r.name}))))}function bt(e){return kf(e.fieldResults,()=>ff(Xt(e)))}function Xt(e){return gf(e.fieldResults,qt(e))}function*qt(e){let t=e.defaultTabStopPt?.(),r=e.view.part().name,n={view:e.view,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,compatibilityMode:e.compatibilityMode?.(),inlineDrawingLayoutForPart:e.inlineDrawingLayoutForPart,drawingTokenForParagraphForPart:e.drawingTokenForParagraphForPart,drawingLayoutEpochForPart:e.drawingLayoutEpochForPart,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter},o=Ze(n),a={view:e.view,revision:e.revision,measurer:e.measurer,cache:e.cache,session:e.session,producer:e.producer,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,furniture:e.furniture,compatibilityMode:e.compatibilityMode,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,fieldResults:e.fieldResults,inlineDrawingLayout:e.inlineDrawingLayout,drawingTokenForParagraph:e.drawingTokenForParagraph,drawingLayoutEpoch:e.drawingLayoutEpoch,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,bodyBlockLimit:e.bodyBlockLimit},i={measurer:a.measurer,cache:a.cache,session:a.session,producer:a.producer,styleCascade:a.styleCascade?.(),defaultTabStopPt:a.defaultTabStopPt,compatibilityMode:a.compatibilityMode?.(),numberingIndex:a.numberingIndex?.(),sectionFurniture:a.furniture.sectionFurniture(),furniture:a.furniture.furniture(),evenAndOddHeaders:a.view.headerFooterPartsBySection()[0]?.evenAndOddHeaders===true,projectLink:a.linkProjectors.projectLink,projectFieldLink:a.projectFieldLink,showFieldCodes:a.showFieldCodes,fieldResults:a.fieldResults,documentProperties:a.view.documentProperties(),inlineDrawingLayout:a.inlineDrawingLayout,drawingTokenForParagraph:a.drawingTokenForParagraph,drawingLayoutEpoch:a.drawingLayoutEpoch,projectionTokenForParagraph:s=>a.linkProjectors.tokenForParagraphForPart(r,s),projectionTokenForTable:s=>a.linkProjectors.tokenForTableForPart(r,s),projectionEpoch:a.linkProjectors.epochForPart(r),notes:o,displayMode:a.displayMode,revisionAuthorFilter:a.revisionAuthorFilter,bodyBlockLimit:a.bodyBlockLimit};return yield*If(a.view.part(),a.revision,i)}var Jt=65536;function St(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function Qt(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])}function Zt(e,t,r){return e.rootStory!==t?false:t==="footnote"||t==="endnote"?e.noteScopeId===r:true}function er(e,t){if(t.story!=="textbox"||t.textboxPath.length===0)return null;let r=null;return Ba$1(e,n=>{if(r||!Zt(t,n.story,n.noteScopeId))return;let o=n.story==="header"||n.story==="footer"?a=>wa(a,n.origin,{x:e.box.x,y:e.box.y}):void 0;Fa(n.host,(a,i)=>{if(r||i.textboxDepth===0)return;let s=i.textboxPath.map(c=>c.drawingNodeId);Qt(s,t.textboxPath)&&(r=St(e,i.storyOrigin));},n.origin,o);}),r}function tr(e,t){if(t.story==="textbox")return er(e,t)??{x:0,y:0};switch(t.rootStory){case "body":return {x:0,y:0};case "header":return e.header?ye$1(e,e.header.box):{x:0,y:0};case "footer":return e.footer?ye$1(e,e.footer.box):{x:0,y:0};case "footnote":case "endnote":{let n=(t.rootStory==="footnote"?e.footnotes:e.endnotes)?.notes.find(o=>o.scopeId===t.noteScopeId);return n?ye$1(e,n.box):{x:0,y:0}}case "note-separator":{let r=t.noteAreaKind==="endnotes"?e.endnotes:e.footnotes,n=r?.separator?.box;return r?.continuationNotice&&Fa(r.continuationNotice,o=>{o.paragraphId===t.source.start.paragraphId&&(n=r.continuationNotice.box);}),n?ye$1(e,n):{x:0,y:0}}default:return {x:0,y:0}}}function It(e){return Object.freeze({x:e.x,y:e.y,width:e.width,height:e.height})}function Rt(e,t){let r=xe(e);return Object.freeze({x:r.x+t.x,y:r.y+t.y,width:t.width,height:t.height})}function rr(e,t){let r=ne(e,{paragraphId:t.source.start.paragraphId,offset:t.source.start.offset},{preferredPageIndex:t.pageIndex});if(!r||r.pageIndex!==t.pageIndex)return;let n=e.pages[r.pageIndex];if(!n)return;let o=tr(n,t),a=Object.freeze([It({x:r.x+o.x,y:r.y+o.y,width:0,height:r.height})]);return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>Rt(n,i)))})}function nr(e,t,r){let n=r.filter(i=>i.pageIndex===t.pageIndex);if(n.length===0)return Ot(t)?rr(e,t):void 0;let o=e.pages[t.pageIndex];if(!o)return;let a=Object.freeze(n.map(i=>It(i)));return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>Rt(o,i)))})}function Ot(e){return e.source.start.paragraphId===e.source.end.paragraphId&&e.source.start.offset===e.source.end.offset}function vt(e,t){return `${e}\0${t}`}function or(e,t,r){let n=Math.max(e.start,t.offset),o=Math.min(e.end,r.offset);return o>n?{start:n,end:o}:null}function ar(e,t){let r=new Map,n=new Map,o=new Set,a=0;let i=(s,c)=>{if(a>=Jt)return false;a+=1;let h=vt(s.pageIndex,c),p=n.get(h);return p?p.push(s):n.set(h,[s]),true};for(let[s,c]of t.entries())for(let[h,p]of c.occurrences.entries()){if(Ot(p)||p.source.start.paragraphId!==p.source.end.paragraphId)continue;o.add(p.pageIndex);let d=`${s}\0${h}`,y={paragraphId:p.source.start.paragraphId,offset:p.source.start.offset},g={paragraphId:p.source.end.paragraphId,offset:p.source.end.offset},w=y.offset<=g.offset?{from:y,to:g}:{from:g,to:y};i({key:d,from:w.from,to:w.to,pageIndex:p.pageIndex},w.from.paragraphId);}if(n.size===0)return r;for(let s of e.pages)o.has(s.index)&&Ba$1(s,c=>{let h=c.story==="header"||c.story==="footer"?p=>wa(p,c.origin,{x:s.box.x,y:s.box.y}):void 0;Fa(c.host,(p,d)=>{let y=St(s,d.storyOrigin);for(let g of p.lines)for(let w of La(g)){let l=n.get(vt(s.index,w.paragraphId));if(l)for(let m of l){let b=or(w,m.from,m.to);if(!b)continue;let x=ge(g,b.start,void 0,w),v=ge(g,b.end,void 0,w,b.end>b.start),I=r.get(m.key)??[];I.push({pageIndex:s.index,x:Math.min(x,v)+y.x,y:g.box.y+y.y,width:Math.abs(v-x),height:g.box.height}),r.set(m.key,I);}}},c.origin,h);});return r}function kt(e,t){let r=false;for(let o of t)if(o.occurrences.length!==0){r=true;break}if(!r)return t;let n=ar(e,t);return t.map((o,a)=>{if(o.occurrences.length===0)return o;let i=o.occurrences.map((s,c)=>{let h=`${a}\0${c}`,p=nr(e,s,n.get(h)??[]);return p?{...s,geometry:p}:s});return {...o,occurrences:Object.freeze(i)}})}function ir(e){let t=new Map,r=[{node:e.root,depth:0}];for(;r.length>0;){let{node:n,depth:o}=r.pop();if(!(n.kind==="textValue"||o>64)){n.kind==="paragraph"&&!t.has(n.id)&&t.set(n.id,t.size);for(let a=n.children.length-1;a>=0;a-=1)r.push({node:n.children[a],depth:o+1});}}return t}function Mt(){let e=new Map,t=n=>{let o=e.get(n.root);if(o)return o;let a=ir(n);return e.set(n.root,a),a},r={retainRevisionItems:false,revisionSites:_j,locations:dk,commentAnchors:_h,deepOrder:t};return Object.freeze({collectReviewItems:n=>hk(n,r),deepParagraphOrderOfPart:t})}function sr(e,t){if(t)return true;let r=e.map(n=>n.root);for(;r.length>0;){let n=r.pop();if(Yj(n))return true;if(n.kind!=="textValue")for(let o of n.children)r.push(o);}return false}function cr(e,t){let r=[],n=new Set([t.name]),o=a=>{!a||n.has(a.name)||(n.add(a.name),r.push(a));};for(let a of ff$1(e)){for(let i of a.headers.values())o(i);for(let i of a.footers.values())o(i);}return o(ch(e,"footnote")),o(ch(e,"endnote")),r}function dr(e,t){switch(t.story){case "body":return e.mainDocumentPart;case "header":case "footer":return t.host.partName;case "footnote":return ch(e,"footnote")?.name??null;case "endnote":return ch(e,"endnote")?.name??null;case "note-separator":return ch(e,t.noteAreaKind==="footnotes"?"footnote":"endnote")?.name??null;default:return t}}function ur(e,t){let r=new Map;for(let n of e){let o=t.get(n.partName),a=o?.get(n.start.paragraphId),i=o?.get(n.end.paragraphId);if(a===void 0||i===void 0)continue;let s=Math.min(a,i),c=Math.max(a,i),h=r.get(n.partName);r.set(n.partName,{lower:Math.min(h?.lower??s,s),upper:Math.max(h?.upper??c,c)});}return r}function lr(e,t,r,n,o){let a=new Map(r.map(d=>[d.name,o(d)])),i=ur(n,a),s=new Map,c=new Map,h=(d,y,g,w,l,m,b)=>{let x=a.get(d)?.get(l),v=i.get(d);if(x===void 0||!v||x<v.lower||x>v.upper)return;let I=s.get(d)??new Map;s.set(d,I);let V=c.get(d)??new Map;c.set(d,V);let W=JSON.stringify([y.story,y.noteScopeId,y.noteAreaKind]),K=g==="textbox"?JSON.stringify([W,"textbox",w]):W,$=I.get(l)??[],j=`${l}\0${y.page.index}\0${K}`,T=V.get(j);T||(T={pageIndex:y.page.index,story:g,rootStory:y.story,textboxPath:w,noteScopeId:y.noteScopeId,noteAreaKind:y.noteAreaKind,laneKey:K,intervals:[],intervalKeys:new Set},V.set(j,T),$.push(T),I.set(l,$));let U=`${m}\0${b}`;T.intervalKeys?.has(U)||(T.intervalKeys?.add(U),T.intervals.push({start:m,end:b}));};Ca(e,d=>{let y=dr(t,d);!y||!i.has(y)||Fa(d.host,(g,w)=>{let l=w.textboxDepth>0?"textbox":d.story,m=w.textboxPath.map(x=>x.drawingNodeId),b=[];for(let x of g.lines){for(let v of x.spans)b.push(v.range);for(let v of x.drawings??[])b.push({paragraphId:v.paragraphId,start:v.start,end:v.start+1});}b.length===0&&b.push({paragraphId:g.range.paragraphId,start:g.range.start,end:g.range.end});for(let{paragraphId:x,start:v,end:I}of b)h(y,d,l,m,x,v,I);});}),Ea(e,d=>{let y=d.drawing.ownerPartName;d.drawing.accessibility.hidden||!i.has(y)||h(y,d.root,d.story,d.textboxPath.map(g=>g.drawingNodeId),d.drawing.paragraphId,d.drawing.start,d.drawing.start+1);});for(let d of s.values())for(let y of d.values())for(let g of y){g.intervals.sort((l,m)=>l.start-m.start||l.end-m.end);let w=[];for(let l of g.intervals){let m=w.at(-1);m&&l.start<=m.end?m.end=Math.max(m.end,l.end):w.push({...l});}g.intervals.splice(0,g.intervals.length,...w),g.intervalKeys=void 0;}let p=new Map;for(let[d,y]of s){let g=a.get(d);if(!g)continue;let w=[];for(let[l,m]of y){let b=g.get(l);b!==void 0&&w.push({paragraphId:l,position:b,laneKeys:new Set(m.map(({laneKey:x})=>x))});}w.sort((l,m)=>l.position-m.position),p.set(d,w);}return {byPart:s,orderByPart:a,visibleByPart:p}}function Dt(e,t){let r=0,n=e.length;for(;r<n;){let o=r+n>>>1;e[o].position<t?r=o+1:n=o;}return r}function pr(e,t){if(e.start.paragraphId===e.end.paragraphId)return [e.start.paragraphId];let r=t.orderByPart.get(e.partName),n=t.visibleByPart.get(e.partName),o=r?.get(e.start.paragraphId),a=r?.get(e.end.paragraphId);if(!r||!n||o===void 0||a===void 0)return [e.start.paragraphId,e.end.paragraphId];let i=Math.min(o,a),s=Math.max(o,a),c=new Set(t.byPart.get(e.partName)?.get(e.start.paragraphId)?.map(({laneKey:d})=>d)??[]),h=new Set(t.byPart.get(e.partName)?.get(e.end.paragraphId)?.map(({laneKey:d})=>d)??[]),p=new Set([...c].filter(d=>h.has(d)));return p.size===0?[e.start.paragraphId,e.end.paragraphId]:n.slice(Dt(n,i),Dt(n,s+1)).filter(d=>[...d.laneKeys].some(y=>p.has(y))).map(d=>d.paragraphId)}function mr(e,t,r,n){return n?e.intervals.filter(a=>a.start<=t&&t<a.end).length>0?[{start:t,end:t}]:[]:e.intervals.flatMap(o=>{if(o.start===o.end)return [];let a={start:Math.max(o.start,t),end:Math.min(o.end,r)};return a.end>a.start?[a]:[]})}function fr(e,t){let r=Number.NEGATIVE_INFINITY;for(let n of e)for(let o of n.intervals)r=Math.max(r,o.end);return t!==r?new Set:new Set(e.filter(n=>n.intervals.some(o=>o.end===r)))}function Lt(e,t,r){let n=[],o=new Set;for(let[a,i]of e.entries()){let s=r===void 0?void 0:r===null?"neutral":a<r?"replaced":"replacement";for(let c of pr(i,t)){let h=t.byPart.get(i.partName)?.get(c)??[],d=i.start.paragraphId===i.end.paragraphId&&i.start.offset===i.end.offset,y=c===i.start.paragraphId?i.start.offset:0,g=c===i.end.paragraphId?i.end.offset:Number.POSITIVE_INFINITY,w=d?fr(h,y):new Set;for(let l of h){let m=mr(l,y,g,d);d&&m.length===0&&w.has(l)&&(m=[{start:y,end:y}]);for(let b of m){let x=`${l.pageIndex}\0${l.story}\0${l.noteScopeId??""}\0${l.noteAreaKind??""}\0${l.textboxPath.join("\0")}\0${i.partName}\0${c}\0${b.start}\0${b.end}\0${s??""}`;o.has(x)||(o.add(x),n.push({pageIndex:l.pageIndex,physicalPageNumber:l.pageIndex+1,story:l.story,rootStory:l.rootStory,textboxPath:l.textboxPath,noteScopeId:l.noteScopeId,noteAreaKind:l.noteAreaKind,...s?{revisionRole:s}:{},source:{partName:i.partName,start:{paragraphId:c,offset:b.start},end:{paragraphId:c,offset:b.end}}}));}}}}return n}function At(e,t){let r=2166136261,n=2654435769;for(let o=0;o<t.length;o+=1){let a=t.charCodeAt(o);r=Math.imul(r^a,16777619)>>>0,n=Math.imul(n^a+o,2246822507)>>>0,n^=n>>>13;}return `${e}_${t.length.toString(36)}_${r.toString(36)}_${n.toString(36)}`}function Et(e,t,r=At){let n=new Map;for(let a of t){let i=r(e,a),s=n.get(i)??new Set;s.add(a),n.set(i,s);}let o=new Map;for(let[a,i]of n){let s=[...i].sort();for(let[c,h]of s.entries())o.set(h,s.length===1?a:`${a}_${c.toString(36)}`);}return o}function yr(e){let t=new Set,r=new Set;for(let n of e){if(n.kind==="comment"){t.add(n.id),n.parentId!==void 0&&t.add(n.parentId),n.parentRevisionId!==void 0&&r.add(n.parentRevisionId);for(let o of n.replyIds)t.add(o);}if(n.kind==="revision"){r.add(n.id),n.pairedWith!==void 0&&r.add(n.pairedWith);for(let o of n.replyIds)t.add(o);}}return {comment:Et("comment",t),revision:Et("change",r)}}function _(e,t,r){return e.get(r)??At(t,r)}function gr(e,t,r){return e.kind==="revision"?{kind:"tracked-change",id:_(r.revision,"change",e.id),change:e.revisionKind,...e.structuralChanges?{structuralChanges:e.structuralChanges}:{},...e.markDirection?{markDirection:e.markDirection}:{},author:e.author,...e.date!==void 0?{date:e.date}:{},text:jb(e.text),replacedText:jb(e.replacedText),nesting:e.nesting,...e.replacedRangeCount!==void 0?{replacedRangeCount:e.replacedRangeCount}:{},readOnly:e.readOnly,...e.pairedWith!==void 0?{pairedWith:_(r.revision,"change",e.pairedWith)}:{},replyIds:e.replyIds.map(n=>_(r.comment,"comment",n)),occurrences:t?Lt(e.ranges,t,e.revisionKind==="replace"?e.replacedRangeCount??null:void 0):[]}:e.kind!=="comment"?null:{kind:"comment",id:_(r.comment,"comment",e.id),author:e.comment.author,initials:Nj(e.comment),...e.comment.date!==void 0?{date:e.comment.date}:{},text:Lj(e.comment),resolved:e.resolved,...e.parentId!==void 0?{parentId:_(r.comment,"comment",e.parentId)}:{},...e.parentRevisionId!==void 0?{parentRevisionId:_(r.revision,"change",e.parentRevisionId)}:{},replyIds:e.replyIds.map(n=>_(r.comment,"comment",n)),orphaned:e.orphaned,occurrences:t&&e.range?Lt([e.range],t):[]}}function Ft(e,t){let r=t.parts.get(t.mainDocumentPart);if(!r)return [];let n=cr(t,r),o=[r,...n],a=t.parts.get(aa(t,r.name));if(!sr(o,a))return [];let i=Mt(),s=i.collectReviewItems({storyPart:r,furnitureParts:n,commentsPart:a,commentsExtendedPart:t.parts.get(ba(t,r.name))});if(s.length===0)return [];let c=s.flatMap(d=>yj(d)),h=c.length>0?lr(e,t,o,c,i.deepParagraphOrderOfPart):null,p=yr(s);return s.map(d=>gr(d,h,p)).filter(d=>d!==null)}var hr=new Set(["part","validatedHandle"]);function Tt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function q(e,t,r,n,o){if(!(n!==void 0&&hr.has(n))){if(typeof e=="function")throw new TypeError("Semantic layout publication encountered a function value");if(!(e===null||typeof e!="object")&&!o?.has(e)){if(r.has(e))throw new TypeError("Semantic layout publication encountered a cyclic record graph");if(!t.has(e)){t.add(e),r.add(e);try{if(Array.isArray(e)){for(let a of e)q(a,t,r,void 0,o);Object.freeze(e);return}if(!Tt(e))throw new TypeError("Semantic layout publication encountered a non-record value");for(let a of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,a);if(i){if(!("value"in i))throw new TypeError("Semantic layout publication encountered an accessor property");q(i.value,t,r,a,o);}}Object.freeze(e);}finally{r.delete(e);}}}}}function Ct(e){if(!Tt(e))throw new TypeError("Semantic layout publication encountered a non-record value");let t=new Set;for(let n of e.pages)if(!(n===null||typeof n!="object"))for(let o of ["header","footer"]){let a=Object.getOwnPropertyDescriptor(n,o);if(!a||!("value"in a))continue;let i=a.value;if(i===null||typeof i!="object"||t.has(i))continue;let s=new Set;s.add(e),q(i,new Set,s,o),t.add(i);}let r=(n,o)=>{let a=new Set;for(let i of n){let s=new Set;s.add(e),q(i,a,s,void 0,o);}Object.freeze(n);};for(let n of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,n);if(!o)continue;if(!("value"in o))throw new TypeError("Semantic layout publication encountered an accessor property");if(n==="pages"&&Array.isArray(o.value)){r(o.value,t);continue}if(n==="reviewArtifacts"&&Array.isArray(o.value)){r(o.value);continue}let a=new Set;a.add(e),q(o.value,new Set,a,n);}return Object.freeze(e),e}var wr=Object.freeze([]),k=class extends Error{constructor(r,n,o){super(n,o);this.code=r;this.name="ExportResourceError";}code};function xr(e){try{return e instanceof k}catch{return false}}function br(e){try{return e instanceof Ue}catch{return false}}function Pr(e){try{return e instanceof Error&&typeof e.message=="string"&&e.message.length>0?e.message:null}catch{return null}}function vr(e){if(xr(e))return e;let t=br(e),r=Pr(e),n=r?`: ${r}`:"",o=new k(t?"layoutInvariant":"layoutFailed",t?`Authored geometry could not be represented within the bounded page model${n}`:`Export layout failed${n}`);return Object.defineProperty(o,"cause",{configurable:true,value:e}),o}function Sr(e){if(e===void 0)return 6e4;if(!Number.isFinite(e)||e<=0)throw new RangeError("resourceTimeoutMs must be a positive finite number");return Math.max(1,e)}function Nt(e){if(e==="all-markup"||e==="simple-markup"||e==="proposed"||e==="original")return e;throw new RangeError("displayMode must be all-markup, simple-markup, proposed, or original")}var Ir=50,ye=64;function Rr(e){switch(e.kind){case "pending":return true;case "ready":case "unrenderable":case "external":case "missing":return false;default:return e}}function Or(e){let t=false;return Ea(e,({drawing:r})=>{Rr(r.resource)&&(t=true);}),t}function jt(e){return !ArrayBuffer.isView(e)}function Yn(e,t={}){if(t.signal?.aborted)return {ok:false,reason:"aborted"};if(t.revisionAuthorSlots!==void 0&&(!t.revisionAuthorSlots||typeof t.revisionAuthorSlots!="object"||Array.isArray(t.revisionAuthorSlots)))throw new TypeError("revisionAuthorSlots must map author names to nonnegative safe integers.");let r=t.revisionAuthorSlots===void 0?void 0:Object.freeze(Object.fromEntries(Object.entries(t.revisionAuthorSlots).map(([f,P])=>{if(!Number.isSafeInteger(P)||P<0)throw new TypeError("revisionAuthorSlots values must be nonnegative safe integers.");return [f,P]}))),n=t.revisionMarkup?Va(t.revisionMarkup):void 0,o=n?{revisionMarkup:n,hiddenAuthors:new Set,cacheKey:JSON.stringify(n)}:void 0,a=Nt(t.displayMode??Za),i=jt(e),s=jt(e)?{ok:true,view:e}:Ba(e);if(!s.ok)return s;let c=s.view,h=t.reuseAcrossRevisions??i,p=Sr(t.resourceTimeoutMs),d=t.measurer??ha(),y=t.producer??(t.measurer?"host-export-measurer":"export-fixed-measurer"),g=Ge({retainAcrossPasses:h}),w=0,l=new Set,m=()=>{w+=1;for(let f of l)f();l.clear();},b=Me({session:c,decodePort:t.imageDecodePort??yt(t.convertPreservedImage?{convertPreserved:t.convertPreservedImage}:void 0),onResourcesChanged:m}),x={view:c,measurer:d,paragraphCache:g,sessions:new Map,completed:new Map,inFlight:new Map,styles:Ke(c),fieldLinks:new Map,links:$e(c),drawingBundle:b,furniture:new Map},v=new AbortController,I=t.signal,V=false,W=()=>V?new k("aborted","Export resource settlement was aborted"):new k("disposed","Export session has been disposed"),K=()=>{V=true,$();};function $(){let f=x;if(f){x=null,I?.removeEventListener("abort",K),v.abort(I?.reason),f.drawingBundle.dispose(),f.paragraphCache.clear();for(let P of f.completed.values())hc(P.internal),hf(P.internal);for(let P of f.fieldLinks.values())P.registry.clear();f.fieldLinks.clear(),f.completed.clear(),f.inFlight.clear(),f.furniture.clear(),f.sessions.clear(),m();}}I?.addEventListener("abort",K,{once:true}),I?.aborted&&K();let j=()=>{if(!x)throw W();if(v.signal.aborted)throw new k("aborted","Export resource settlement was aborted")},T=(f,P,D,u)=>w!==f||x?.view.packageRevision()!==P||x?.view.currentPackage()!==D?Promise.resolve():(j(),new Promise((B,O)=>{let M=false,C,L=A=>{M||(M=true,C!==void 0&&clearTimeout(C),l.delete(E),v.signal.removeEventListener("abort",G),A?O(A):B());},E=()=>L(),G=()=>L(new k("aborted","Export resource settlement was aborted")),Y=()=>{if(x?.view.packageRevision()!==P||x?.view.currentPackage()!==D){L();return}let A=u-Date.now();if(A<=0){L(new k("timedOut",`Image resources did not settle within ${p}ms`));return}C=setTimeout(Y,Math.min(Ir,A));};if(l.add(E),v.signal.addEventListener("abort",G,{once:true}),w!==f||x?.view.packageRevision()!==P||x?.view.currentPackage()!==D){L();return}Y();})),U=async(f,P=0,D=Date.now()+p)=>{if(j(),Date.now()>=D)throw new k("timedOut",`Export layout did not stabilize within ${p}ms`);let u=x,B=D,O=u.view.packageRevision(),M=u.view.currentPackage(),C=u.completed.get(f);if(C&&C.revision===O&&C.pkg===M)return C.published;let L=()=>{if(u.view.packageRevision()===O&&u.view.currentPackage()===M)return null;if(P>=ye-1)throw new k("nonConvergent","Document revision did not stabilize during export layout");return U(f,P+1,B)},E=u.fieldLinks.get(f);if(!E||E.revision!==O||E.pkg!==M){let R=E?.registry??af();R.clear(),E={revision:O,pkg:M,registry:R},u.fieldLinks.set(f,E),u.furniture.delete(f);}let G=E.registry,Y=u.sessions.get(f)??Gf();u.sessions.set(f,Y);let A=u.furniture.get(f);A||(A=Ye({view:u.view,measurer:u.measurer,producer:y,cache:u.paragraphCache,styleCascade:u.styles.styleCascade,numberingIndex:u.styles.numberingIndex,defaultTabStopPt:u.styles.defaultTabStopPt,compatibilityMode:u.styles.compatibilityMode,displayMode:Ya(f),revisionAuthorFilter:f==="simple-markup"?_a(o):o,showFieldCodes:false,inlineDrawingLayoutForPart:R=>u.drawingBundle.contextForPart(R),drawingLayoutTokenForPart:R=>u.drawingBundle.cacheTokenForPart(R),drawingTokenForParagraphForPart:(R,ae)=>u.drawingBundle.drawingTokenForParagraph(ae,R),linkProjectors:u.links,projectFieldLink:R=>G.project(R)}),u.furniture.set(f,A));for(let R=0;R<ye;R+=1){let ae=w;u.drawingBundle.sync(u.view);let he=L();if(he)return he;let N=bt({view:u.view,revision:u.view.packageRevision(),measurer:u.measurer,cache:u.paragraphCache,session:Y,producer:y,styleCascade:u.styles.styleCascade,defaultTabStopPt:u.styles.defaultTabStopPt,numberingIndex:u.styles.numberingIndex,furniture:A,compatibilityMode:u.styles.compatibilityMode,linkProjectors:u.links,projectFieldLink:S=>G.project(S),inlineDrawingLayout:u.drawingBundle.bodyContext,inlineDrawingLayoutForPart:S=>u.drawingBundle.contextForPart(S),drawingTokenForParagraph:S=>u.drawingBundle.drawingTokenForParagraph(S,u.view.part().name),drawingTokenForParagraphForPart:(S,J)=>u.drawingBundle.drawingTokenForParagraph(J,S),drawingLayoutEpoch:u.drawingBundle.cacheTokenForPart(u.view.part().name),drawingLayoutEpochForPart:S=>u.drawingBundle.cacheTokenForPart(S),displayMode:Ya(f),revisionAuthorFilter:f==="simple-markup"?_a(o):o,showFieldCodes:false,bodyBlockLimit:void 0,fieldResults:"atomic"});if(!Or(N)){let S=L();if(S)return S;h||(hc(N),hf(N),u.paragraphCache.clear(),u.sessions.delete(f),u.furniture.delete(f));let J=Ft(N,M),Bt=J.length===0?wr:Object.freeze(kt(N,J)),_t=ft(u.view,N),Vt={...N,..._t,reviewDisplayMode:f,...n?{revisionMarkup:n}:{},...r?{revisionAuthorSlots:r}:{},facingPages:[...M.parts.values()].some(Pe=>Pe.root.localName==="settings"&&Pe.root.children.some(Q=>Q.kind!=="textValue"&&(Q.localName==="mirrorMargins"||Q.localName==="evenAndOddHeaders")&&!Q.attributes.some(ve=>ve.localName==="val"&&["0","false","off"].includes(ve.value)))),contentWarnings:xt(u.view),reviewArtifacts:Bt},be=Ct(Vt);return u.completed.set(f,{revision:O,pkg:M,internal:N,published:be}),be}let we=ae;for(;u.drawingBundle.pendingResourceCount()>0;){await T(we,O,M,B),we=w,j();let S=L();if(S)return S}j();let xe=L();if(xe)return xe}throw new k("nonConvergent",`Image resources did not reach quiescence after ${ye} layout passes`)},ge=f=>{let P;try{P=Nt(f);}catch(O){return Promise.reject(O)}if(!x)return Promise.reject(W());let D=x,u=D.inFlight.get(P);if(u)return u;let B=U(P).catch(O=>{throw vr(O)}).finally(()=>D.inFlight.delete(P));return D.inFlight.set(P,B),B};return {ok:true,session:{layout:()=>ge(a),layoutFor:ge,validatedImageBytes(f){let P=x;return !P||f.resource.kind!=="ready"?null:P.drawingBundle.mintValidatedBytes(f.resource.validatedHandle,f.resource.contentId)?.slice()??null},dispose:$}}}export{Xt as a,Er as b,yt as c,k as d,Yn as e};
@@ -1,2 +0,0 @@
1
- 'use strict';var chunk6APGXLBB_cjs=require('./chunk-6APGXLBB.cjs'),chunk4GBTELJV_cjs=require('./chunk-4GBTELJV.cjs');function Q(t,e,n,o,i,r){let a=chunk4GBTELJV_cjs.Xa(e,n);if(a.background==="byAuthor"&&!r?(t.style.setProperty("--doc-revision-background",`color-mix(in srgb, ${o} 15%, var(--doc-revision-color-white))`),t.style.backgroundColor="var(--doc-revision-background)"):a.background!=="none"&&(t.style.backgroundColor=a.background==="byAuthor"?r:chunk4GBTELJV_cjs.Wa(a.background,o)),a.mark==="none")return;let s=chunk4GBTELJV_cjs.Wa(a.color,i??o);a.color!=="auto"&&(t.style.color=s),a.mark==="bold"&&(t.style.fontWeight="bold"),a.mark==="italic"&&(t.style.fontStyle="italic");let l=a.mark==="underline"||a.mark==="doubleUnderline"?"underline":a.mark==="strikethrough"||a.mark==="doubleStrikethrough"?"line-through":void 0;l&&(t.style.textDecorationLine=l,t.style.textDecorationStyle=a.mark.startsWith("double")?"double":"solid",t.style.textDecorationColor=s);}var mt=new WeakMap;function Vn(t){let e=null;for(let n of t)if(!(n.localName!=="rPrChange"&&n.localName!=="pPrChange")){e=n.attributes?.author??"";break}return e}function ee(t){let e=chunk4GBTELJV_cjs.ef(t),n=mt.get(e);if(n)return n;let o=[],i=new Set,r=true,a=y=>{y===""||i.has(y)||(i.add(y),o.push(y));},s=y=>{for(let u of y.props)u.localName==="pPrChange"&&a(u.attributes?.author??"");for(let u of y.lines){if(u.changeSites)for(let f of u.changeSites)a(f.author);for(let f of u.spans){let g=f.revisions;if(g!==void 0)for(let R=0;R<g.length;R+=1)a(g[R].author);let b=Vn(f.props);b!==null&&a(b);}}for(let u of y.lines){let f=u.drawings;if(f!==void 0)for(let g=0;g<f.length;g+=1){let b=f[g].revisions;if(b!==void 0)for(let m=0;m<b.length;m+=1)a(b[m].author);let R=f[g].accessibility.hidden?void 0:f[g].textboxStory;if(R)for(let m of ee(R.fragments).authors)a(m);}}let h=y.markRevisions;if(h)for(let u=0;u<h.length;u+=1)a(h[u].author);},l=y=>{y.marker?.picture&&(r=false);for(let h of y.lines)(h.drawings?.length??0)>0&&(r=false);},d=[],c=(y,h)=>{for(let u of y){if(u.kind==="paragraph"){h&&s(u),r&&l(u);continue}for(let f of u.rows){let g=h&&!f.isHeaderRepeat;for(let b of f.cells)b.revisionShadingAuthor&&d.push(b.revisionShadingAuthor),c(b.blocks,g);}}};c(t,true);for(let y of d)a(y);let p={authors:o,drawingFree:r};return mt.set(e,p),p}var T=8,xt={color:"painted",background:"painted",activeBackground:"painted",spanClassName:"painted",avatarUrl:"card-only"},vt=Object.keys(xt),Yn=vt.filter(t=>xt[t]==="painted"),qn=new Set(["http","https","data","blob"]),Zn=/^([a-zA-Z][a-zA-Z0-9+.-]*):/;function Jn(t){let e=t.replace(/[\u0000-\u0020\u007f]/g,"");if(e.length===0)return;let n=Zn.exec(e);if(n)return !qn.has(n[1].toLowerCase())||/^data:/i.test(e)&&!/^data:image\/(?!svg)/i.test(e)?void 0:e;let o=i=>e[i]==="/"||e[i]==="\\";return o(0)&&o(1)?void 0:e}function Qn(t){if(typeof t=="string")return t.length>0?{color:t}:null;if(t===null||typeof t!="object")return null;let e={},n=Object.prototype.hasOwnProperty;for(let o of vt){if(!n.call(t,o))continue;let i=t[o];if(!(typeof i!="string"||i.length===0)){if(o==="avatarUrl"){let r=Jn(i);r!==void 0&&(e.avatarUrl=r);continue}e[o]=i;}}return Object.keys(e).length>0?e:null}function A(t){return `var(--doc-review-author-${t%T})`}function Rt(t){let e=new Map;if(t===void 0||t==="kind"||t==="author")return e;for(let[n,o]of Object.entries(t.authors)){let i=Qn(o);i&&e.set(n,i);}return e}function zr(t,e){let n=Rt(e);return [...t].map(([o,i])=>{let r=n.get(o);return {author:o,slot:i,color:r?.color??A(i),...r?{style:r}:{}}})}var eo=128;function le(t,e,n=eo){let o=e.length<n?e.length:n,i=t;for(let r=0;r<o;r+=1)i=Math.imul(i^e.charCodeAt(r),16777619);return Math.imul(i^e.length,16777619)}function to(t,e,n){let o=le(2166136261,n);for(let i of t.keys())o=le(o,i);for(let[i,r]of e){o=le(o,i);for(let a of Yn)o=le(o,r[a]??"",1/0);}return `${t.size}.${e.size}.${(o>>>0).toString(36)}`}function Se(t){return t===null?"kind":t.key}var Re=new WeakMap;function we(t,e,n){if(t==="kind")return null;let o=Re.get(e);if(o&&o.option===t&&o.authorSlots===n)return o.context;let i=Rt(t),r=t===void 0||t==="author"?"author":t.others??"author";if(i.size===0&&r==="kind")return Re.set(e,{option:t,authorSlots:n,context:null}),null;let a=n??oo(e),s=new Map;for(let[d,c]of i){if(!c.spanClassName)continue;let p=c.spanClassName.split(/\s+/).filter(y=>y.length>0);p.length>0&&s.set(d,p);}let l={authorSlots:a,styles:i,classTokens:s,others:r,key:to(a,i,r)};return Re.set(e,{option:t,authorSlots:n,context:l}),l}function no(t){return ee(t).authors}var bt=new WeakMap;function oo(t){let e=bt.get(t);if(e)return e;let n=new Map,o=i=>{for(let r of no(i))n.has(r)||n.set(r,n.size);};for(let i of t.pages){o(i.fragments),i.header&&o(i.header.fragments),i.footer&&o(i.footer.fragments);for(let r of [i.footnotes,i.endnotes])if(r){r.separator&&o(r.separator.fragments),r.continuationNotice&&o(r.continuationNotice.fragments);for(let a of r.notes)o(a.fragments);}for(let r of [i.anchoredDrawings,i.header?.anchoredDrawings,i.footer?.anchoredDrawings])if(r)for(let a of r){if(a.accessibility.hidden)continue;let s=a.revisions;if(s!==void 0)for(let l=0;l<s.length;l+=1){let d=s[l].author;d!==""&&!n.has(d)&&n.set(d,n.size);}a.textboxStory&&o(a.textboxStory.fragments);}}return bt.set(t,n),n}function ro(t,e){let n=null;for(let o of e)o===""||t.has(o)||(n===null&&(n=new Map(t)),n.has(o)||n.set(o,n.size));return n??t}function Kr(){let t=new Map,e=0;return {resolve(n,o){let i=ro(n,o);for(let r of i.keys())t.has(r)||(t.set(r,e),e+=1);return new Map([...i.keys()].map(r=>[r,t.get(r)]).sort((r,a)=>r[1]-a[1]))}}}function j(t,e,n){if(t===void 0||t.length===0)return null;let o=t[t.length-1],i=t.some(s=>s.kind==="delete"||s.kind==="moveFrom"),r=o.kind,a=r==="delete"||r==="moveFrom"?"line-through":r==="insert"||r==="moveTo"?"underline":null;return {attribution:o,line:i&&a==="underline"?"line-through":a,decorationStyle:r==="moveFrom"||r==="moveTo"?"double":"solid",color:i?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)",authorColor:n?.get(o.author)?.color??A(e?.get(o.author)??0),deleted:i}}function ke(t,e=false){let n=t.spans.find(r=>r.style.shaping)?.style.shaping?.baseLevel,o=n===void 0?e:n===1,i=chunk4GBTELJV_cjs.Eb(t.spans,t.drawings??[]);return i?{x:o?i.left:i.right,rtl:o}:{x:t.contentX,rtl:o}}function Ee(t,e,n,o,i,r){let a=ke(n,o),s=e.ownerDocument.createElement("span");s.className="docx-terminator-seat",s.dataset.docxMarker="",s.setAttribute("aria-hidden","true"),s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(a.x-n.contentX)*r}px`,s.style.bottom=`${Math.max(0,n.box.height-n.baseline)*r}px`,s.style.width="0",s.style.fontSize="0",s.style.lineHeight="0",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none",a.rtl&&(s.style.direction="rtl"),t.style.display="inline-block",t.style.verticalAlign="baseline",t.style.fontSize=`${i*r}px`,s.append(t),e.append(s);}function St(t,e,n,o,i,r=false){let a=t.createElement("span"),s=e.spans[e.spans.length-1];a.className="docx-line-break-mark",a.dataset.docxMarker="",a.setAttribute("aria-hidden","true"),a.contentEditable="false",a.textContent="\u21B5",a.style.pointerEvents="none",a.style.userSelect="none",a.style.color="var(--doc-revision-format)";let l=j(s?.revisions,i?.authorSlots,i?.styles);if(l){let{attribution:c}=l,p=i?.styles.get(c.author),y=i&&(p?.color!==void 0||i.others==="author");if(a.style.color=y?l.authorColor:l.color,a.dataset.revisionKind=c.kind,a.dataset.revisionId=c.id,a.dataset.reviewAuthor=c.author,i){a.dataset.reviewAuthorSlot=String((i.authorSlots.get(c.author)??0)%T);for(let h of i.classTokens.get(c.author)??[])a.classList.add(h);}l.line&&(a.style.textDecorationLine=l.line,a.style.textDecorationStyle=l.decorationStyle,a.style.textDecorationColor=a.style.color);}let d=s?.style.fontSizePt??chunk4GBTELJV_cjs.$.fontSizePt;Ee(a,n,e,r,d,o);}function wt(t,e,n,o,i=false){let r=chunk4GBTELJV_cjs.eb(e);if(!r){let c=t.createElement("span");return c.className="docx-paragraph-mark",c.setAttribute("aria-hidden","true"),c.contentEditable="false",c.textContent="\xB6",c.style.pointerEvents="none",c.style.color="var(--doc-revision-format)",c}let a=t.createElement("span");a.className=`docx-paragraph-mark docx-revision-pmark docx-revision-pmark-${r.kind}`,a.setAttribute("aria-hidden","true"),a.contentEditable="false",a.dataset.revisionKind=r.kind,a.dataset.revisionId=r.id,r.author!==""&&(a.dataset.reviewAuthor=r.author),a.dataset.revisionIds=e.map(c=>c.id).join(" "),a.dataset.revisionKinds=e.map(c=>c.kind).join(" "),a.textContent="\xB6",a.style.pointerEvents="none";let s=chunk4GBTELJV_cjs.fb(r),l=n?.styles.get(r.author),d=n?(n.authorSlots.get(r.author)??0)%T:0;if(n){a.dataset.reviewAuthorSlot=String(d);let c=n.classTokens.get(r.author);if(c)for(let p=0;p<c.length;p+=1)a.classList.add(c[p]);}if(a.style.color=l?.color??(n?.others==="author"?A(d):s?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)"),o){let c=a.style.color;a.style.color="";let p=chunk4GBTELJV_cjs.Xa(o,r.kind).mark;p==="hidden"&&(a.style.visibility="hidden"),p==="caret"&&(a.textContent="^"),p==="pound"&&(a.textContent="#"),Q(a,o,r.kind,l?.color??A(d),i||n?.others==="kind"||l?.color?c:void 0,l?.background);}else s&&(a.style.textDecorationLine="line-through");return a}function de(t){let e=Object.getPrototypeOf(t);return e===Object.prototype||e===Array.prototype||e===null}function Le(t,e,n,o){if(t===e)return true;if(typeof t!="object"||typeof e!="object"||t===null||e===null||n>32||!de(t)||!de(e)||o&&--o.remaining<0)return false;let i=Array.isArray(t);if(i!==Array.isArray(e))return false;if(i){let r=t,a=e;if(r.length!==a.length)return false;for(let s=0;s<r.length;s+=1)if(!Le(r[s],a[s],n+1,o))return false;return true}return kt(t,e,void 0,n,o)}function kt(t,e,n,o,i){let r=t,a=e,s=0;for(let l in r)if(!(!Object.hasOwn(r,l)||n?.has(l))){if(!Object.hasOwn(a,l)||!Le(r[l],a[l],o+1,i))return false;s+=1;}for(let l in a)Object.hasOwn(a,l)&&!n?.has(l)&&(s-=1);return s===0}function C(t,e,n){return t===e?true:!de(t)||!de(e)?false:kt(t,e,n,0)}function Et(t,e,n){return Le(t,e,0,{remaining:n})}var io=/^[0-9A-Fa-f]{6}$/,ao=new Set(["box","lines","shadingBox","marker"]),so=new Set(["box","contentX","spans"]),Pt=new Set(["box"]);function G(t,e,n,o,i,r){let a=(o.x-i.x)*r;a!==(e.x-n.x)*r&&(t.left=`${a}px`);let s=(o.y-i.y)*r;s!==(e.y-n.y)*r&&(t.top=`${s}px`),o.width!==e.width&&(t.width=`${o.width*r}px`),o.height!==e.height&&(t.height=`${o.height*r}px`);}function Lt(t,e){return ke(t,e).x-t.contentX}function lo(t,e,n,o,i){if((e.drawings?.length??0)>0||t.box.height!==e.box.height||t.spans.length!==e.spans.length||!C(t,e,so))return false;for(let r=0;r<e.spans.length;r+=1){let a=t.spans[r],s=e.spans[r];if(s.tabLeader||s.noteSeparator||s.style.shaping||s.style.border||a.box.width!==s.box.width||a.box.height!==s.box.height||!C(a,s,Pt)||r>0&&n(t,r)!==n(e,r))return false}return !o||Lt(t,i)===Lt(e,i)}function co(t,e,n){if(e.borders||e.bottomBorder||e.marker?.picture||t.box.height!==e.box.height||t.lines.length!==e.lines.length||!C(t,e,ao)||t.shadingBox===void 0!=(e.shadingBox===void 0)||t.shadingBox&&t.shadingBox.height!==e.shadingBox.height||t.marker===void 0!=(e.marker===void 0))return false;if(t.marker){let a=e.marker;if(t.marker.box.height!==a.box.height||!C(t.marker,a,Pt))return false}let o=chunk4GBTELJV_cjs.sd(e.props),i=e.lines.length-1,r=n.showParagraphMarks&&!!e.paragraphEnd||(e.markRevisions?.length??0)>0;for(let a=0;a<=i;a+=1){let s=e.lines[a],l=n.showParagraphMarks&&!!s.manualBreakAfter||a===i&&r;if(!lo(t.lines[a],s,n.gapOf,l,o))return false}return true}function Mt(t,e,n,o){if(!co(e,n,o))return false;let i=o.scale,r=!!(n.shading&&io.test(n.shading)&&n.shadingBox),a=n.marker!==void 0,s=(r?1:0)+(a?1:0),l=t.children;if(l.length!==s+n.lines.length)return false;for(let d=0;d<n.lines.length;d+=1)if(l[s+d].dataset.lineId!==n.lines[d].id)return false;if(r&&!l[0].classList.contains("docx-paragraph-shading")||a&&!l[s-1].classList.contains("docx-list-marker"))return false;if(r){let d=l[0];G(d.style,e.shadingBox,e.box,n.shadingBox,n.box,i);}if(a){let d=l[s-1];G(d.style,e.marker.box,e.box,n.marker.box,n.box,i);}for(let d=0;d<n.lines.length;d+=1){let c=e.lines[d],p=n.lines[d],y=l[s+d],h=(p.box.y-n.box.y)*i;h!==(c.box.y-e.box.y)*i&&(y.style.top=`${h}px`);let u=(p.contentX-n.box.x)*i;u!==(c.contentX-e.box.x)*i&&(y.style.left=`${u}px`);}return true}var Pe=new WeakMap,ce=new WeakMap;function At(t,e,n){Pe.set(t,{fragment:e,rows:n});}function Me(t,e,n,o,i){ce.set(t,{cell:e,host:n,strokes:o,blocks:i});}function $t(t,e){for(let[n,o]of t)if(n.kind==="table"&&n.tableId===e.tableId&&n.fragmentIndex===e.fragmentIndex)return o}var uo=new Set(["rows","box","columnEdges"]),po=new Set(["box","cells"]),yo=new Set(["box","blocks","borders"]),ho=new Set(["strokes","edgeSegments"]),ue=[];function Te(t,e,n){let o=t.children[n]??null,i=0;for(;i<e.length&&o===e[i];)o=o.nextElementSibling,i+=1;if(i===e.length&&o===null)return;let r=new Set(e);for(;o;){let a=o.nextElementSibling;r.has(o)||o.remove(),o=a;}o=t.children[n+i]??null;for(let a=i;a<e.length;a+=1){let s=e[a];s===o?o=o.nextElementSibling:t.insertBefore(s,o);}}function fo(t,e,n){if(t===e)return true;if(!t||!e||!C(t,e,ho))return false;let o=t.strokes??ue,i=e.strokes??ue;if(o.length!==i.length||i.length>0&&n?.length!==i.length)return false;for(let r=0;r<i.length;r+=1){let a=o[r],s=i[r];if(a.side!==s.side||a.role!==s.role||a.color!==s.color||a.cssStyle!==s.cssStyle)return false;let l=s.side==="top"||s.side==="bottom";if(s.cssStyle!=="solid"&&(l?a.height!==s.height:a.width!==s.width))return false}return true}function go(t,e,n,o){let i=e?.strokes??ue,r=n?.strokes??ue;if(!(i===r||!t))for(let a=0;a<r.length;a+=1){let s=i[a],l=r[a],d=t[a].style;s.x!==l.x&&(d.left=`${l.x*o}px`),s.y!==l.y&&(d.top=`${l.y*o}px`),s.width!==l.width&&(d.width=`${l.width*o}px`),s.height!==l.height&&(d.height=`${l.height*o}px`);}}function mo(t,e,n){return t[n]?.id===e?n:t.findIndex(o=>o.id===e)}function bo(t,e,n){let o=t.cell,i=n.scale,r=new Set,a=[];for(let s=0;s<e.blocks.length;s+=1){let l=e.blocks[s],d=mo(o.blocks,l.id,s),c=d<0||r.has(d)?void 0:o.blocks[d],p=c?t.blocks[d]:void 0;if(c&&r.add(d),c&&p&&(c===l||c.kind==="paragraph"&&l.kind==="paragraph"&&Mt(p,c,l,n))){G(p.style,c.box,o.box,l.box,e.box,i),a.push(p);continue}let y=l.kind==="table"&&c?.kind==="table"?n.block(l,p):n.block(l);y.style.left=`${(l.box.x-e.box.x)*i}px`,y.style.top=`${(l.box.y-e.box.y)*i}px`,a.push(y);}return a}function xo(t,e,n,o,i,r){let a=ce.get(t);if(!a||a.cell!==e)return null;if(e!==o){if(!C(e,o,yo))return null;if(o.paintInert||o.vMergeContinue)ce.set(t,{...a,cell:o});else {if(o.textDirection==="btLr"&&(e.box.width!==o.box.width||e.box.height!==o.box.height)||!fo(e.borders,o.borders,a.strokes))return null;let l=a.host,d=l.children.length-a.blocks.length;if(d<0)return null;for(let p of a.blocks)if(p.parentElement!==l)return null;go(a.strokes,e.borders,o.borders,r.scale);let c=bo(a,o,r);Te(l,c,d),ce.set(t,{cell:o,host:l,strokes:a.strokes,blocks:c});}}return G(t.style,e.box,n,o.box,i,r.scale),t}function vo(t,e,n,o,i,r){if(e!==o){if(!C(e,o,po))return null;let a=t.children;if(a.length!==e.cells.length)return null;let s=new Set,l=[];for(let d=0;d<o.cells.length;d+=1){let c=o.cells[d],p=e.cells[d]?.id===c.id?d:e.cells.findIndex(h=>h.id===c.id),y=p>=0&&!s.has(p)?xo(a[p],e.cells[p],e.box,c,o.box,r):null;y&&s.add(p),l.push(y??r.cell(c,o.box));}Te(t,l,0);}return G(t.style,e.box,n,o.box,i,r.scale),t}function Tt(t){return `${t.id}\0${t.isHeaderRepeat?1:0}${t.isContinuation?1:0}`}function Ct(t,e,n){let o=Pe.get(t);if(!o)return null;let i=o.fragment;if(!C(i,e,uo))return null;let r=new Map;for(let[d,c]of o.rows){let p=Tt(d);r.set(p,r.has(p)?null:[d,c]);}let a=new Map;for(let d of e.rows){let c=Tt(d),p=r.get(c);r.delete(c);let y=p?vo(p[1],p[0],i.box,d,e.box,n):null;a.set(d,y??n.row(d));}let s=n.scale,l=t.style;return i.box.x!==e.box.x&&(l.left=`${e.box.x*s}px`),i.box.y!==e.box.y&&(l.top=`${e.box.y*s}px`),i.box.width!==e.box.width&&(l.width=`${e.box.width*s}px`),i.box.height!==e.box.height&&(l.height=`${e.box.height*s}px`),Te(t,[...a.values()],0),Pe.set(t,{fragment:e,rows:a}),t}function Ae(t,e,n){let o=chunk4GBTELJV_cjs.hb(e.props)??n.paragraphFormatRevision,i=n.revisionStyles,r=j(e.revisions,i?.authorSlots,i?.styles);if(!(!r&&!o)){if(r){let{attribution:a}=r;t.classList.add("docx-revision",`docx-revision-${a.kind}`),t.dataset.revisionKind=a.kind,t.dataset.revisionId=a.id,a.author!==""&&(t.dataset.reviewAuthor=a.author),a.date!==void 0&&(t.dataset.revisionDate=a.date);let s=i?.styles.get(a.author);if(i){t.dataset.reviewAuthorSlot=String((i.authorSlots.get(a.author)??0)%T);let c=i.classTokens.get(a.author);if(c)for(let p=0;p<c.length;p+=1)t.classList.add(c[p]);}let d=i!==void 0&&(s?.color!==void 0||i.others==="author")?r.authorColor:r.color;if(n.revisionMarkup){s?.background&&(t.style.backgroundColor=s.background),Q(t,n.revisionMarkup,r.deleted?e.revisions?.find(c=>c.kind==="delete"||c.kind==="moveFrom")?.kind??a.kind:a.kind,r.authorColor,n.revisionKindColors||i?.others==="kind"||s?.color?d:void 0,s?.background);return}t.style.color=d,t.style.backgroundColor=s?.background??(r.deleted?"var(--doc-revision-deletion-wash)":"var(--doc-revision-insertion-wash)"),r.line&&(t.style.textDecorationLine=r.line,a.kind==="insert"&&r.line==="underline"?(t.style.textDecorationStyle="var(--doc-revision-insertion-decoration-style)",t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"):t.style.textDecorationStyle=r.decorationStyle,t.style.textDecorationColor=d);return}if(t.classList.add("docx-revision",...n.revisionMarkup?[]:["docx-revision-format"]),t.dataset.revisionKind="format",t.dataset.formattingKind=chunk4GBTELJV_cjs.hb(e.props)?"rPrChange":"pPrChange",t.dataset.revisionId=o.id,o.author!==""&&(t.dataset.reviewAuthor=o.author),o.date!==void 0&&(t.dataset.revisionDate=o.date),i){let a=i.styles.get(o.author);t.dataset.reviewAuthorSlot=String((i.authorSlots.get(o.author)??0)%T);let s=i.classTokens.get(o.author);if(s)for(let l=0;l<s.length;l+=1)t.classList.add(s[l]);!n.revisionMarkup&&a?.color!==void 0&&(t.style.color=a.color),a?.background!==void 0&&(t.style.backgroundColor=a.background);}n.revisionMarkup&&Q(t,n.revisionMarkup,"format",i?.styles.get(o.author)?.color??A(i?.authorSlots.get(o.author)??0),void 0,i?.styles.get(o.author)?.background);}}function Ht(t,e,n,o,i){if(e.spans.length!==0)return;i({...chunk4GBTELJV_cjs.$,fontFamily:o.fontFamily,fontSizePt:o.fontSizePt,bold:o.bold,italic:o.italic});let r=t.ownerDocument.createElement("br");r.style.lineHeight=`${e.box.height*n}px`,t.append(r);}function Bt(t,e,n){let o=e.marker?.picture,i=n.urlRegistry;if(!o||o.resource.kind!=="ready"||!i)return null;let r=n.scale,a=i.urlForReady(o.resource.validatedHandle,o.resource.mime);if(a===null)return null;let s=o.box,l=t.createElement("span");l.className="docx-list-marker",l.dataset.docxMarker="",l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.x-e.box.x)*r}px`,l.style.top=`${(s.y-e.box.y)*r}px`,l.style.width=`${s.width*r}px`,l.style.height=`${s.height*r}px`,l.style.display="block",l.style.overflow="hidden";let d=t.createElement("img");return d.className="docx-list-marker-image",d.setAttribute("src",a),d.setAttribute("alt",""),d.setAttribute("draggable","false"),d.style.display="block",d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,d.style.maxWidth="none",d.style.maxHeight="none",l.append(d),l}function Ft(t,e,n,o){let i=t.createElement("span");i.dataset.docxNoteRule="single",i.setAttribute("contenteditable","false"),i.setAttribute("aria-hidden","true"),i.style.display="inline-block",i.style.position="relative",i.style.verticalAlign="top",i.style.width=`${e.box.width*o}px`,i.style.height=`${Math.min(e.box.height+(n.leading??0),n.box.height)*o}px`;let r=chunk4GBTELJV_cjs.jf(e,n),a=t.createElement("span");return a.style.position="absolute",a.style.left="0",a.style.top=`${(r.y-n.box.y)*o}px`,a.style.width=`${r.width*o}px`,a.style.height=`${r.height*o}px`,a.style.backgroundColor=e.style.color?`#${e.style.color}`:"#000000",i.append(a),i}function pe(t){return t==="double"||t==="triple"||t==="doubleWave"||t.startsWith("thinThick")||t.startsWith("thickThin")}function W(t,e,n,o,i,r){switch(e){case "dashed":case "dashSmallGap":case "dotDash":case "dotDotDash":case "dashDotStroked":{let a=Math.max(4,4*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"bottom":"right"}, #${n} 60%, transparent 60%)`,t.style.backgroundSize=o?`100% ${a}px`:`${a}px 100%`;return}case "dotted":{let a=Math.max(3,3*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"bottom":"right"}, #${n} 35%, transparent 35%)`,t.style.backgroundSize=o?`100% ${a}px`:`${a}px 100%`;return}case "double":case "doubleWave":case "triple":case "thinThickSmallGap":case "thickThinSmallGap":case "thinThickThinSmallGap":case "thinThickMediumGap":case "thickThinMediumGap":case "thinThickThinMediumGap":case "thinThickLargeGap":case "thickThinLargeGap":case "thinThickThinLargeGap":{let a=i/3;t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"right":"bottom"}, #${n} 0px, #${n} ${a}px, transparent ${a}px, transparent ${a*2}px, #${n} ${a*2}px)`;return}case "threeDEmboss":case "ridge":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px ridge #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "threeDEngrave":case "groove":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px groove #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "inset":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px inset #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "outset":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px outset #${n}`,o?t.style.width="0px":t.style.height="0px";return}default:return}}var Ro=/^[0-9A-Fa-f]{6}$/;function Dt(t,e,n,o){for(let{box:i,edge:r,side:a}of chunk4GBTELJV_cjs.Fb(n)){let s=r.color&&Ro.test(r.color)?r.color:"000000",l=t.createElement("span");l.className=`docx-run-border docx-run-border-${a}`,l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),Object.assign(l.style,{position:"absolute",pointerEvents:"none",left:`${(i.x-n.contentX)*o}px`,top:`${(i.y-n.box.y)*o}px`,width:`${i.width*o}px`,height:`${i.height*o}px`,backgroundColor:`#${s}`});let d=a==="left"||a==="right";W(l,r.val,s,d,(d?i.width:i.height)*o,o),e.append(l);}}function It(t,e){let n=e.fieldAtom?.formControl;if(n?.kind!=="dropdown"||n.entries.length===0)return;let o=t.ownerDocument.createElement("select");o.dataset.docxFormDropdown="",o.dataset.docxMarker="",o.setAttribute("aria-label",n.accessibleName??e.text);for(let[i,r]of n.entries.entries()){let a=t.ownerDocument.createElement("option");a.value=String(i),a.textContent=r,o.append(a);}o.selectedIndex=n.selectedIndex,Object.assign(o.style,{position:"absolute",inset:"0",width:"100%",height:"100%",opacity:"0",cursor:"pointer",font:"inherit",padding:"0",border:"0"}),t.style.position="relative",t.append(o);}function Ot(t,e,n){let o=e.fieldAtom?.formControl;if(o?.kind!=="checkbox")return;t.dataset.docxFormCheckbox="",t.dataset.checked=String(o.checked),t.setAttribute("role","checkbox"),t.tabIndex=0,t.setAttribute("aria-checked",String(o.checked)),o.accessibleName&&t.setAttribute("aria-label",o.accessibleName),t.style.width=`${e.box.width*n}px`;let i=t.ownerDocument.createElement("span");i.className="docx-form-checkbox-hit",i.dataset.docxMarker="",i.setAttribute("aria-hidden","true"),t.append(i);}function Nt(t){t.style.fontFamily=chunk6APGXLBB_cjs.O,t.style.direction="ltr";}function $e(t,e,n=false){let o=n?null:chunk4GBTELJV_cjs.hb(e.props.filter(r=>r.localName==="pPrChange")),i=o??e.markFormatRevision;i&&(So(t,i,o?"pPrChange":"rPrChange"),t.dataset.paragraphId=e.paragraphId,t.dataset.reviewStart=String(e.range.start),t.dataset.reviewEnd=String(e.range.end));}function So(t,e,n){t.dataset.revisionKind="format",t.dataset.revisionId=e.id,t.dataset.formattingKind=n,e.author&&(t.dataset.reviewAuthor=e.author),e.date!==void 0&&(t.dataset.revisionDate=e.date);}function _t(t,e,n,o,i,r){for(let a of [n.footnotes,n.endnotes])a&&e.append(wo(t,n,a,o,i,r));}function wo(t,e,n,o,i,r){let a=t.createElement("div");a.className="docx-notes",a.dataset.docxNotes=n.kind,a.dataset.docxNotesPlacement=n.placement,a.style.position="absolute",a.style.left=`${(n.box.x-e.box.x)*o.scale}px`,a.style.top=`${(n.box.y-e.box.y)*o.scale}px`,a.style.width=`${n.box.width*o.scale}px`,a.style.height=`${n.box.height*o.scale}px`;for(let s of [n.separator,n.continuationNotice]){if(!s)continue;let l=t.createElement("div");l.className="docx-note-separator",l.dataset.docxNoteSeparator=s.kind,l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.box.x-n.box.x)*o.scale}px`,l.style.top=`${(s.box.y-n.box.y)*o.scale}px`,l.style.width=`${s.box.width*o.scale}px`,l.style.height=`${s.box.height*o.scale}px`;let d=s.ruleStyle;if(d||s.synthetic)ko(l,t,d??"single",o.scale,s.box.height,s.ruleColor);else {let c={...o,tabLeaderOriginXPt:s.box.x-e.box.x};for(let p of s.fragments)l.append(p.kind==="table"?r(t,p,c):i(t,p,c));}a.append(l);}for(let s of n.notes){let l={...o,tabLeaderOriginXPt:s.box.x-e.box.x},d=t.createElement("div");d.className="docx-note",d.dataset.docxNote=s.noteKind,d.dataset.docxNoteId=String(s.noteId),d.dataset.docxNoteScope=s.scopeId,s.mark!==null&&(d.dataset.docxNoteMark=s.mark),s.continuation&&(d.dataset.docxNoteContinuation=""),d.setAttribute("role","doc-footnote"),d.style.position="absolute",d.style.left=`${(s.box.x-n.box.x)*o.scale}px`,d.style.top=`${(s.box.y-n.box.y)*o.scale}px`,d.style.width=`${s.box.width*o.scale}px`,d.style.height=`${s.box.height*o.scale}px`;for(let c of s.fragments)d.append(c.kind==="table"?r(t,c,l):i(t,c,l));a.append(d);}return a}function ko(t,e,n,o,i,r){t.dataset.docxNoteRule=n;let a=r&&/^[a-f\d]{6}$/i.test(r)?`#${r}`:"#000000";t.style.color=a;let s=Math.max(1,o*.75);if(n==="single"){t.style.backgroundColor=a,t.style.height=`${i*o}px`;return}t.style.opacity="0.85";let l=Math.max(1,o*1.25);for(let d of [0,s+l]){let c=e.createElement("div");c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.left="0",c.style.right="0",c.style.top=`${d}px`,c.style.height="0",c.style.borderTop=`${s}px solid currentColor`,t.append(c);}}var Eo=new Set(["dropdown","comboBox","date","checkbox","picture","buildingBlockGallery"]);function zt(t,e,n,o){let i=o.contentControlChrome,r=i?.suppressedIds,a=(n.contentControls??[]).filter(y=>r?.has(y.id)!==true),s=[...a,...(i?.additionalBoundaries??[]).filter(y=>r?.has(y.id)!==true&&!a.some(h=>h.id===y.id))];if(s.length===0)return;let l=i?.showAll===true,d=i?.activeIds,c=i?.hoverIds,p=i?.tocControlIds;for(let y of s){let h=p?.has(y.id)===true,u=!h&&d?.has(y.id)===true,f=c?.has(y.id)===true;e.append(Po(t,n,y,o.scale,u,f,l||u||h&&f,i?.checkedIds?.has(y.id),h,i?.readOnly===true));}}function Lo(t,e,n,o){let i=t.contentBox.x-t.box.x,r=t.contentBox.y-t.box.y;if(n==="checkbox"){let y=Math.max(1,Math.min(e.height,16))*o,h=e.width>0?(i+e.x+e.width/2)*o-y/2:(i+e.x)*o,u=(r+e.y)*o+Math.max(0,(e.height*o-y)/2);return {left:h,top:u,size:y}}let a=16*o,s=(i+e.x+e.width)*o,l=t.box.width*o,d=s+2*o,c=d+a<=l?d:Math.max(0,s-a),p=(r+e.y)*o+Math.max(0,(e.height*o-a)/2);return {left:c,top:p,size:a}}function Po(t,e,n,o,i,r,a,s,l,d){let c=t.createElement("div");c.className="docx-content-control-chrome",c.dataset.docxContentControl=n.id,c.dataset.docxMarker="",c.dataset.controlType=n.controlType,c.dataset.lock=n.effectiveLock,n.bound&&(c.dataset.bound=""),n.placeholder&&(c.dataset.placeholder=""),l&&(c.dataset.docxToc=""),d&&(c.dataset.readOnly=""),i&&(c.dataset.active=""),r&&(c.dataset.hover=""),a&&(c.dataset.boundaryVisible=""),c.setAttribute("contenteditable","false"),c.setAttribute("role","group"),n.alias&&(c.dataset.alias=n.alias),n.tag&&(c.dataset.tag=n.tag),n.alias&&c.setAttribute("aria-label",n.alias),c.style.position="absolute",c.style.inset="0",c.style.pointerEvents="none",c.style.zIndex="2";let p=e.contentBox.x-e.box.x,y=e.contentBox.y-e.box.y;for(let u of n.fragments){if(u.pageIndex!==e.index)continue;let f=t.createElement("div");f.className="docx-content-control-boundary",f.dataset.docxMarker="",f.setAttribute("contenteditable","false"),f.setAttribute("aria-hidden","true"),f.style.position="absolute",f.style.left=`${(p+u.box.x)*o}px`,f.style.top=`${(y+u.box.y)*o}px`,f.style.width=`${Math.max(u.box.width,1)*o}px`,f.style.height=`${Math.max(u.box.height,1)*o}px`,f.style.pointerEvents="none",c.append(f);}let h=n.fragments.find(u=>u.pageIndex===e.index);if(h&&n.alias){let u=t.createElement("div");u.className="docx-content-control-label",u.dataset.docxMarker="",u.setAttribute("contenteditable","false"),u.setAttribute("aria-hidden","true"),u.textContent=n.alias,u.style.position="absolute",u.style.left=`${(p+h.box.x)*o}px`,u.style.top=`${Math.max(0,(y+h.box.y)*o-16)}px`,u.style.pointerEvents="none",c.append(u);}if(h&&Eo.has(n.controlType)){let u=t.createElement("button");u.type="button",u.className="docx-content-control-widget",u.dataset.docxMarker="",u.dataset.docxCcWidget=n.controlType,u.dataset.docxCcId=n.id,u.setAttribute("contenteditable","false"),u.setAttribute("tabindex","-1"),n.controlType==="checkbox"?u.setAttribute("role","checkbox"):n.controlType==="dropdown"||n.controlType==="comboBox"||n.controlType==="buildingBlockGallery"?u.setAttribute("role","listbox"):(n.controlType==="date"||n.controlType==="picture")&&u.setAttribute("role","button"),n.alias&&(u.dataset.name=n.alias),n.alias&&u.setAttribute("aria-label",n.alias),n.controlType==="checkbox"&&(u.setAttribute("data-checked",s?"true":"false"),u.setAttribute("aria-checked",s?"true":"false"));let f=n.effectiveLock==="contentLocked"||n.effectiveLock==="sdtContentLocked";(d||f||n.bound)&&(u.disabled=true,u.dataset.disabledReason=d?"readOnly":n.bound?"bound":"locked",u.setAttribute("aria-disabled","true"));let g=Lo(e,h.box,n.controlType,o);u.style.position="absolute",u.style.left=`${g.left}px`,u.style.top=`${g.top}px`,u.style.width=`${g.size}px`,u.style.height=`${g.size}px`,u.style.fontSize=`${g.size}px`,u.style.pointerEvents="auto",u.style.padding="0",u.style.margin="0",u.style.cursor=u.disabled?"not-allowed":"pointer",c.append(u);}return c}var Ut="docx-change-bars",ye="docx-change-bar",Mo=.5;function jt(t,e){for(let n of e)switch(t.author??=n.author,n.kind){case "insert":case "moveTo":t.insertion=true;break;case "delete":case "moveFrom":t.deletion=true;break;case "format":t.format=true;break}}function Gt(t,e,n){let o=t.lines,i=o.length-1,r=[];for(let a=0;a<=i;a+=1){let s=o[a];if(r.length=0,e.mode==="simple-markup"){s.changeSites&&r.push(...s.changeSites),a===i&&t.markChangeSites&&r.push(...t.markChangeSites),r.length>0&&Kt(t,o,a,e,r,n);continue}s.changeSites&&r.push(...s.changeSites);for(let l of s.spans){l.revisions&&r.push(...l.revisions);let d=chunk4GBTELJV_cjs.hb(l.props);d&&r.push(d);}for(let l of s.drawings??[])l.revisions&&r.push(...l.revisions);if(s.anchorRevisions&&r.push(...s.anchorRevisions),a===i){t.markRevisions&&r.push(...t.markRevisions),t.markFormatRevision&&r.push(t.markFormatRevision);let l=chunk4GBTELJV_cjs.hb(t.props);l&&r.push(l);}r.length!==0&&Kt(t,o,a,e,r,n);}}function Kt(t,e,n,o,i,r){let a=e[n],s=e.length-1,l=(n===0?t.box.y:a.box.y)+o.dy,d=Math.min((n===s?t.box.y+t.box.height:e[n+1].box.y)+o.dy,o.limit);if(d<=l)return;let c={top:l,bottom:d,story:o.story,insertion:false,deletion:false,format:false};jt(c,i),r.push(c);}function To(t,e,n){for(let o of t.rows){let i=e.mode==="simple-markup"?o.changeSites:void 0;if(e.mode==="all-markup"&&o.revisionKind||i&&i.length>0){let r=chunk4GBTELJV_cjs.Ne(o)?Math.max(o.box.y,...o.cells.map(s=>s.box.y+s.box.height)):o.box.y+o.box.height,a={top:o.box.y+e.dy,bottom:Math.min(r+e.dy,e.limit),story:e.story,author:o.revisionAuthor,insertion:o.revisionKind==="insert",deletion:o.revisionKind==="delete",format:false};i&&jt(a,i),n.push(a);}for(let r of o.cells){if(r.textDirection==="btLr"){let a=[];if(Ce(r.blocks,e,a),a.length===0)continue;let s={top:r.box.y+e.dy,bottom:Math.min(r.box.y+r.box.height+e.dy,e.limit),story:e.story,insertion:false,deletion:false,format:false};for(let l of a)s.insertion||=l.insertion,s.deletion||=l.deletion,s.format||=l.format;s.bottom>s.top&&n.push(s);continue}Ce(r.blocks,e,n);}}}function Ce(t,e,n){for(let o of t)o.kind==="table"?To(o,e,n):Gt(o,e,n);}function Ao(t){t.sort((n,o)=>n.top-o.top||n.bottom-o.bottom);let e=[];for(let n of t){let o=e[e.length-1];if(o&&o.story===n.story&&o.author===n.author&&n.top<=o.bottom+Mo){o.bottom=Math.max(o.bottom,n.bottom),o.insertion||=n.insertion,o.deletion||=n.deletion,o.format||=n.format;continue}e.push({...n});}return e}function He(t,e,n,o=false,i,r=false,a){let s=[];if(n==="none"||i?.changedLines.mark==="none")return {mode:n,toggle:o,left:0,runs:s,signature:"none"};let l=t.box.height,d=t.contentBox.y-t.box.y+t.contentBox.height,c={x:t.box.x,y:t.box.y};chunk4GBTELJV_cjs.Ba(t,g=>{if(g.story==="note-separator")return;let b={mode:n,story:g.story,dy:g.origin.y-t.box.y,limit:g.story==="body"?d:l};Ce(g.host.fragments,b,s);let R=g.story==="header"||g.story==="footer"?m=>chunk4GBTELJV_cjs.wa(m,g.origin,c):void 0;chunk4GBTELJV_cjs.Fa(g.host,(m,P)=>{P.textboxDepth!==0&&Gt(m,{mode:n,story:g.story,dy:P.storyOrigin.y-t.box.y,limit:l},s);},g.origin,R);});let p=i?.changedLines.mark==="rightBorder"||i?.changedLines.mark==="outsideBorder"&&r&&t.index%2===0,y=Math.round((p?t.box.width-Math.max(0,(t.box.width-t.contentBox.width-(t.contentBox.x-t.box.x))/2):Math.max(0,(t.contentBox.x-t.box.x)/2))*e),h=i?chunk4GBTELJV_cjs.Wa(i.changedLines.color,"var(--doc-review-author-0)",n==="simple-markup"?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"):void 0,u=Ao(s);if(i?.changedLines.color==="byAuthor")for(let g of u)g.color=a?.styles.get(g.author??"")?.color??A(a?.authorSlots.get(g.author??"")??0);let f=`${n}|${o?"t":""}|${y}|${h??""}`;for(let g of u)f+=`|${g.story}:${g.top.toFixed(3)}-${g.bottom.toFixed(3)}${g.insertion?"i":""}${g.deletion?"d":""}${g.format?"f":""}:${g.color??""}`;return {mode:n,toggle:o,left:y,runs:u,signature:f,...h?{color:h}:{}}}function Wt(t,e,n){if(e.runs.length===0)return null;let o=e.mode==="simple-markup",i=t.createElement("div");i.className=Ut,i.dataset.docxChangeBars=e.signature,i.dataset.docxChangeBarsMode=e.mode,i.setAttribute("aria-hidden","true"),i.setAttribute("contenteditable","false"),i.style.position="absolute",i.style.inset="0",i.style.pointerEvents="none";for(let r of e.runs){let a=t.createElement("div");a.className=ye,r.insertion&&a.classList.add(`${ye}-insertion`),r.deletion&&a.classList.add(`${ye}-deletion`),r.format&&a.classList.add(`${ye}-format`),a.dataset.docxStory=r.story,a.style.position="absolute",a.style.left=`${e.left}px`,a.style.top=`${r.top*n}px`,a.style.height=`${(r.bottom-r.top)*n}px`,a.style.width=o?"var(--doc-review-change-bar-simple-width)":"var(--doc-review-change-bar-width)",a.style.backgroundColor=r.color??e.color??(o?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"),e.toggle?(a.dataset.docxChangeBarToggle="",a.style.pointerEvents="auto",a.style.cursor="pointer"):a.style.pointerEvents="none",i.append(a);}return i}function Xt(t,e,n,o,i=false,r,a=false,s){return Wt(t,He(e,n,o,i,r,a,s),n)}function Vt(t,e,n,o,i,r=false,a,s=false,l){let d=e.querySelector(`:scope > .${Ut}`),c=He(n,o,i,r,a,s,l);if(d&&d.dataset.docxChangeBars===c.signature)return;d?.remove();let p=Wt(t,c,o);p&&e.append(p);}function he(t,e,n){return !!n.activeHeaderFooterRId&&!!t.rId&&n.activeHeaderFooterRId===t.rId&&(n.activeHeaderFooterPageIndex===void 0||n.activeHeaderFooterPageIndex===e)}function Be(t,e,n){return n?t.kind==="footer"?Math.max(t.box.height,e.box.y+e.box.height-t.box.y):Math.max(t.box.height,e.contentBox.y-t.box.y):t.box.height}function $o(t,e){let{box:n}=e,o=t.contentBox,i=e.kind==="header"?n.y:Math.max(n.y,o.y+o.height),r=e.kind==="header"?Math.min(n.y+n.height,o.y):n.y+n.height;return r>i?{x:n.x,y:i,width:n.width,height:r-i}:null}function Co(t,e){let n=e.box,o=t.contentBox;return n.x<o.x+o.width&&o.x<n.x+n.width&&n.y<o.y+o.height&&o.y<n.y+n.height}function Yt(t,e,n,o,i){let r=o.box;if(Co(n,o)){e.dataset.docxHfOverBody="";let s=$o(n,o);if(!s)return null;let l=t.createElement("div");l.className="docx-hf-hover",l.dataset.docxHfHover=o.kind,l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(s.x-n.box.x)*i}px`,l.style.top=`${(s.y-n.box.y)*i}px`,l.style.width=`${s.width*i}px`,l.style.height=`${s.height*i}px`,e.before(l),r=s;}let a=t.createElement("div");return a.className="docx-hf-edit-hint",a.dataset.docxHfHint=o.kind,a.setAttribute("contenteditable","false"),a.style.position="absolute",a.style.left=`${(r.x-n.box.x)*i}px`,a.style.width=`${r.width*i}px`,a.style.top=o.kind==="header"?`${(r.y+r.height-n.box.y)*i}px`:`${(r.y-n.box.y)*i}px`,o.kind==="footer"&&(a.style.transform="translateY(-100%)"),a}function qt(t,e){for(let{record:n,element:o,materialized:i}of t){if(!i)continue;let r=o.querySelector(":scope > .docx-page-content");r&&fe(r,"contenteditable",e.activeHeaderFooterRId?"false":null);let a=null;for(let s of o.querySelectorAll(":scope > .docx-hf:not(.docx-hf--placeholder)")){let l=Ho(n,s);if(!l)continue;let d=he(l,n.index,e);d&&(a=l.kind),Bo(s,n,l,d,e.scale);}fe(o,"data-docx-hf-active-kind",a);for(let s of o.querySelectorAll(":scope > [data-docx-hf-front]")){let l=Zt(n,s.dataset.docxHfFront);Jt(s,!!l&&he(l,n.index,e));}}}function Ho(t,e){return Zt(t,e.dataset.docxHf)}function Zt(t,e){if(e==="header")return t.header;if(e==="footer")return t.footer}function Bo(t,e,n,o,i){fe(t,"data-docx-hf-active",o?"":null),fe(t,"contenteditable",o?"true":"false");let r=`${Be(n,e,o)*i}px`;t.style.height!==r&&(t.style.height=r),Jt(t,o);}function fe(t,e,n){t.getAttribute(e)!==n&&(n===null?t.removeAttribute(e):t.setAttribute(e,n));}function Jt(t,e){let n=t.querySelectorAll(t instanceof Element&&t.classList.contains("docx-drawing-layer")?":scope > *":":scope > .docx-drawing-layer > *"),o=e?"auto":"none";for(let i of n){i.style.pointerEvents!==o&&(i.style.pointerEvents=o);for(let r of i.querySelectorAll(".docx-drawing"))r.style.pointerEvents!==o&&(r.style.pointerEvents=o);}}function Qt(t){return t.horizontalFrame==="page"||t.verticalFrame==="page"}function en(t,e,n){let o=e.paintBounds,i=chunk4GBTELJV_cjs.wa(e,t.box,n),r=i.x-e.x,a=i.y-e.y,s=l=>Object.freeze({x:l.x+r,y:l.y+a,width:l.width,height:l.height});return Object.freeze({...e,x:e.x+r,y:e.y+a,paintBounds:s(o),hitBounds:s(e.hitBounds),geometry:Object.freeze({...e.geometry,contentBounds:s(e.geometry.contentBounds),paintBounds:s(e.geometry.paintBounds),...e.geometry.clipPolygon?{clipPolygon:Object.freeze(e.geometry.clipPolygon.map(l=>Object.freeze({x:l.x+r,y:l.y+a})))}:{}})})}function Fo(t,e,n,o,i){let r=n.anchoredDrawings??[];if(r.length===0)return;let a=r.map(l=>en(n,l,i)),s=t.createElement("div");s.className="docx-hf-behind-layer",s.dataset.docxHfBehind=n.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",o.appendDrawings(s,a,i,"behind",false),s.childElementCount>0&&e.append(s);}function Do(t,e,n,o,i,r){let{scale:a}=i.chrome,s=t.createElement("div");s.className="docx-hf",s.dataset.docxHf=o.kind,o.rId&&(s.dataset.docxRId=o.rId),r?(s.dataset.docxHfActive="",s.setAttribute("contenteditable","true")):s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(o.box.x-n.box.x)*a}px`,s.style.top=`${(o.box.y-n.box.y)*a}px`,s.style.width=`${o.box.width*a}px`,s.style.height=`${Be(o,n,r)*a}px`,s.style.overflow="visible";let l=(n.box.x-o.box.x)*a,d=(n.box.y-o.box.y)*a,c=l+n.box.width*a,p=d+n.box.height*a;s.style.clipPath=`polygon(${l}px ${d}px, ${c}px ${d}px, ${c}px ${p}px, ${l}px ${p}px)`;for(let u of o.fragments)s.append(i.paintFragment(u,o.box.x-n.box.x));let y=(o.anchoredDrawings??[]).filter(u=>!Qt(u)),h=Object.freeze({x:0,y:0,width:o.box.width,height:o.box.height});return i.appendDrawings(s,y,h,"inFront",r),e.append(s),s}function tn(t,e,n,o){let i=Object.freeze({x:n.box.x,y:n.box.y,width:n.box.width,height:n.box.height}),r=[n.header,n.footer].filter(s=>!!s);for(let s of r)Fo(t,e,s,o,i);let a=[];for(let s of r){let l=he(s,n.index,o.chrome),d=Do(t,e,n,s,o,l),c=Yt(t,d,n,s,o.chrome.scale);c&&a.push(c);let p=(s.anchoredDrawings??[]).filter(Qt).map(y=>en(s,y,i));o.appendDrawings(e,p,i,"inFront",l,s.kind);}return a}var Io=0;function nn(t,e,n,o){if(o===void 0||!Number.isFinite(o)||o<0||o>1)return;let i="http://www.w3.org/2000/svg",r=(p,y)=>{let h=t.createElementNS(i,p);for(let[u,f]of Object.entries(y))h.setAttribute(u,f);return h},a=`docx-bilevel-${++Io}`,s=r("svg",{width:"0",height:"0","aria-hidden":"true"});s.style.position="absolute",s.style.pointerEvents="none";let l=r("filter",{id:a,"color-interpolation-filters":"sRGB"});l.append(r("feColorMatrix",{type:"saturate",values:"0"}));let d=r("feComponentTransfer",{}),c=Array.from({length:256},(p,y)=>y/255>=o?1:0).join(" ");for(let p of ["R","G","B"])d.append(r(`feFunc${p}`,{type:"discrete",tableValues:c}));l.append(d),s.append(l),e.append(s),n.style.filter=`${n.style.filter} url(#${a})`.trim();}function on(t){return Math.max(-1,Math.min(1,t))}function Oo(t,e){if(!Number.isFinite(t)||!Number.isFinite(e))return null;let n=on(t/100),o=on(e/100);if(n===0&&o===0)return null;let i=o>=0?Math.min(1e3,1/(1-o)):Math.max(0,1+o),r=.5-n/2,a=r+n-i*r;return Object.freeze({slope:i,intercept:a})}function ge(t){if(!Number.isFinite(t))return "0";let e=Math.round(t*1e6)/1e6;return String(Object.is(e,-0)?0:e)}function No(t){let{slope:e,intercept:n}=t;if(n>=0){let i=e+2*n;return i<=0?"brightness(0)":`contrast(${ge(e/i)}) brightness(${ge(i)})`}let o=1-2*n;return `brightness(${ge(e/o)}) contrast(${ge(o)})`}function Fe(t){let e=[];t.grayscale&&e.push("grayscale(1)");let n=Oo(t.brightness,t.contrast);n&&e.push(No(n));let{opacity:o}=t;return o!==void 0&&Number.isFinite(o)&&o>=0&&o<1&&e.push(`opacity(${Math.round(o*1e3)/1e3})`),e.length>0?e.join(" "):void 0}var rn="http://www.w3.org/2000/svg",_o=0;function an(t,e){let{cx:n,cy:o}=t.extentEmu;if(n>0&&o>0)return {viewBox:[0,0,n,o],frame:e};let i=1;for(let a of t.components)i=Math.max(i,a.strokeWidthEmu);if(n<=0){let a=o>0?e.height/o:0;return {viewBox:[-i,0,2*i,Math.max(1,o)],frame:{...e,x:e.x-i*a,width:2*i*a}}}let r=e.width/n;return {viewBox:[0,-i,n,2*i],frame:{...e,y:e.y-i*r,height:2*i*r}}}function sn(t,e,n,o,i){let r=`docx-inset-${++_o}`,a=t.createElementNS(rn,"clipPath");a.setAttribute("id",r);let s=t.createElementNS(rn,"path");s.setAttribute("d",o),s.setAttribute("clip-rule","evenodd"),a.append(s),e.append(a),n.setAttribute("stroke-width",String(2*Math.max(1,i))),n.setAttribute("clip-path",`url(#${r})`);}var De="http://www.w3.org/2000/svg";function H(t){return Number.isFinite(t)?String(t):"0"}function Ie(t,e,n,o,i){if(o===n)return;let r=a=>`${H(-a*i)}px`;t.style.overflow="visible",t.style.clipPath=`inset(${r(n.y-o.y)} ${r(o.x+o.width-(n.x+n.width))} ${r(o.y+o.height-(n.y+n.height))} ${r(n.x-o.x)})`,e.style.pointerEvents="none";}function Oe(t,e,n){let o=e.vectorShape,i=e.geometry.contentBounds,r=e.paintBounds,a=t.createElement("div");a.className="docx-drawing-image-frame",a.style.position="absolute";let s=an(o,i);a.style.left=`${(s.frame.x-r.x)*n}px`,a.style.top=`${(s.frame.y-r.y)*n}px`,a.style.width=`${s.frame.width*n}px`,a.style.height=`${s.frame.height*n}px`;let l=t.createElementNS(De,"svg");l.setAttribute("viewBox",s.viewBox.map(H).join(" ")),l.setAttribute("preserveAspectRatio","none"),l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.style.display="block",l.style.overflow="visible";for(let d of o.components){let c=t.createElementNS(De,"path"),p=d.subpathsEmu.map((y,h)=>`M${y.map(u=>`${H(u.x)} ${H(u.y)}`).join("L")}${d.subpathsClosed?.[h]===false?"":"Z"}`).join("");if(c.setAttribute("d",p),c.setAttribute("fill",d.fillHex!==null?`#${d.fillHex}`:"none"),c.setAttribute("fill-rule","evenodd"),d.fillAlpha<1&&c.setAttribute("fill-opacity",H(Math.max(0,d.fillAlpha))),d.strokeHex!==null&&(c.setAttribute("stroke",`#${d.strokeHex}`),c.setAttribute("stroke-width",H(Math.max(1,d.strokeWidthEmu))),d.strokeInset&&sn(t,l,c,p,chunk4GBTELJV_cjs.He(d.strokeWidthEmu)),d.strokeAlpha<1&&c.setAttribute("stroke-opacity",H(Math.max(0,d.strokeAlpha)))),l.append(c),d.strokeHex!==null)for(let y of d.arrowheadsEmu??[]){let h=t.createElementNS(De,"path");h.setAttribute("d",`M${y.map(u=>`${H(u.x)} ${H(u.y)}`).join("L")}Z`),h.setAttribute("fill",`#${d.strokeHex}`),h.setAttribute("fill-opacity",H(Math.max(0,Math.min(1,d.strokeAlpha)))),h.setAttribute("data-docx-line-end","triangle"),l.append(h);}}return a.append(l),a}function Ne(t,e,n,o){let i=e.groupTextboxStories;if(!i||e.accessibility.hidden||!n.paintStoryFragment)return null;let r=e.paintBounds;if(r.width<=0||r.height<=0)return null;let a=n.scale,s=t.createElement("div");s.className="docx-drawing-group-text",s.dataset.groupTextFor=e.drawingNodeId,s.setAttribute("contenteditable","false");let l=o?.x??0,d=o?.y??0;s.style.position="absolute",s.style.left=`${(r.x-l)*a}px`,s.style.top=`${(r.y-d)*a}px`,s.style.width=`${r.width*a}px`,s.style.height=`${r.height*a}px`,s.style.overflow="hidden",s.style.pointerEvents="none";let c=e.x-r.x,p=e.y-r.y;for(let y of i){let h=y.story,u=t.createElement("div");u.className="docx-drawing-textbox-content",u.style.position="absolute",u.style.left=`${(c+y.box.x+h.contentOffset.x)*a}px`,u.style.top=`${(p+y.box.y+h.contentOffset.y)*a}px`,u.style.width=`${h.contentWidth*a}px`,u.style.height=`${Math.max(0,h.contentHeight)*a}px`,u.style.overflow="hidden";let f=y.rotationDegrees;if(f!==0&&Number.isFinite(f)){let g=y.box.width/2-h.contentOffset.x,b=y.box.height/2-h.contentOffset.y;u.style.transformOrigin=`${g*a}px ${b*a}px`,u.style.transform=`rotate(${f}deg)`;}for(let g of h.fragments)u.append(n.paintStoryFragment(t,g,{readOnly:true}));for(let g of u.querySelectorAll('[style*="pointer-events"]'))g.style.pointerEvents="none";s.append(u);}return s}var zo=new Map([["image/svg+xml","SVG"],["image/tiff","TIFF"],["image/x-emf","EMF"],["image/x-wmf","WMF"]]),Ko="Unknown",be=new WeakMap,me=new WeakMap,Uo=256;function cn(t,e){let n=be.get(t);if(n)return n;let o=new Map,i=new Map;return n=Object.freeze({urlForReady(r,a){let s=o.get(r.resourceKey);if(s)return s;let l;try{l=e.create(r,a);}catch(d){if(d instanceof Error&&d.message.startsWith("PaintImageUrlSource:"))return null;throw d}return o.set(r.resourceKey,l),l},imageFor(r,a,s){let l=i.get(r);if(l&&l.resourceKey===a)return l.element;let d=s.createElement("img");return i.size<Uo&&i.set(r,{element:d,resourceKey:a,...l?.readyElement?{readyElement:l.readyElement}:{}}),d},imageForPending(r){return i.get(r)?.element??null},readyElementFor(r){return i.get(r)?.readyElement??null},rememberReadyElement(r,a){let s=i.get(r);s&&i.set(r,{...s,readyElement:a});},reconcile(r,a){for(let[s,l]of o)r.has(s)||(e.revoke(l),o.delete(s));for(let[s,l]of i)a.has(s)||(l.element.removeAttribute("src"),i.delete(s));},revokeAll(){for(let r of o.values())e.revoke(r);o.clear();for(let r of i.values())r.element.removeAttribute("src");i.clear();}}),be.set(t,n),n}function _e(t,e){return `${e.paintInstance??""}|${t.drawingNodeId}`}function Qi(t){be.get(t)?.revokeAll(),be.delete(t);}function X(t){return Number.isFinite(t)?String(t):"0"}function un(t,e){if(t.length<3||e.width<=0||e.height<=0)return null;let n=[];for(let o of t){if(!Number.isFinite(o.x)||!Number.isFinite(o.y))return null;let i=(o.x-e.x)/e.width*100,r=(o.y-e.y)/e.height*100;n.push(`${X(i)}% ${X(r)}%`);}return `polygon(${n.join(", ")})`}function pn(t){let e=t.geometry.contentBounds;return chunk4GBTELJV_cjs.Je({transform:t.transform,contentWidth:e.width,contentHeight:e.height})}function yn(t,e){let{crop:n}=t,o=Math.max(0,Math.min(1,n.left)),i=Math.max(0,Math.min(1,n.top)),r=Math.max(0,Math.min(1,n.right)),a=Math.max(0,Math.min(1,n.bottom)),s=Math.max(1e-4,1-o-r),l=Math.max(1e-4,1-i-a);return Object.freeze({width:`${X(1/s*100)}%`,height:`${X(1/l*100)}%`,left:`${X(-o/s*100)}%`,top:`${X(-i/l*100)}%`})}function jo(t,e){let{resource:n}=t;switch(n.kind){case "external":return e.externalResource;case "missing":return e.missingResource;case "pending":return e.pendingResource;case "unrenderable":switch(n.reason){case "unsupported-format":return e.unsupportedFormat(zo.get(n.mime)??Ko);case "non-picture-graphic":return e.nonPictureGraphic(t.placeholderGraphicKind??"graphic");case "signature-mismatch":return e.contentMismatch;case "decode-failed":return e.decodeFailed;case "resource-limit":return e.resourceLimit;default:return e.invalidResource}default:return e.invalidResource}}function I(t,e,n){let{accessibility:o}=e;o.hidden||(t.setAttribute("role",n?"link":"img"),o.label?t.setAttribute("aria-label",o.label):n||t.setAttribute("aria-hidden","true"));}function V(t,e,n,o){let i=o?.x??0,r=o?.y??0;t.style.position="absolute",t.style.left=`${(e.x-i)*n}px`,t.style.top=`${(e.y-r)*n}px`,t.style.width=`${e.width*n}px`,t.style.height=`${e.height*n}px`,t.style.boxSizing="border-box",t.style.overflow="hidden",t.style.pointerEvents="auto";}function hn(t){let e=t.groupPicture?t.geometry.imageTransformCorners:void 0;if(!e||e.length===0)return t.geometry.contentBounds;let n=1/0,o=1/0,i=-1/0,r=-1/0;for(let a of e)n=Math.min(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.x),r=Math.max(r,a.y);return {x:n,y:o,width:i-n,height:r-o}}function Go(t,e,n,o,i){let r=t.paintBounds,a=hn(t),s=yn(t);return [o,n.scale,i?.x??0,i?.y??0,r.x,r.y,r.width,r.height,a.x,a.y,a.width,a.height,un(t.geometry.clipPolygon??[],r)??"",Fe(t.effects)??"",t.effects.bilevel??"",pn(t)??"",s.width,s.height,s.left,s.top,n.inertLinks?"":t.hyperlinkHref??"",t.accessibility.label??""].join("|")}function te(t,e,n,o){let i=t.createElement("div");i.className="docx-drawing docx-drawing-placeholder",n.unbound||(i.dataset.drawingNodeId=e.drawingNodeId),V(i,e.paintBounds,n.scale,o);let r=t.createElement("div");r.className="docx-drawing-placeholder-card";let a=t.createElement("span");return a.className="docx-drawing-placeholder-label",a.textContent=jo(e,n.strings),r.append(a),i.append(r),e.hyperlinkHref&&!n.inertLinks?(i.dataset.docxDrawingLink=e.drawingNodeId,i.dataset.docxDrawingLinkKind="external",i.dataset.docxDrawingLinkHref=e.hyperlinkHref,i.setAttribute("tabindex","-1"),I(i,e,true)):I(i,e,false),i}function Wo(t,e,n,o,i,r){let a=e.resource;if(a.kind!=="ready")return te(t,e,n,r);let s=_e(e,n),l=i?.readyElementFor?.(s)??t.createElement("div"),d=Go(e,a,n,o,r),c=!e.vectorShape;if(c&&me.get(l)===d)return l;l.className="docx-drawing docx-drawing-ready",l.style.cssText="",n.unbound||(l.dataset.drawingNodeId=e.drawingNodeId),delete l.dataset.docxDrawingLink,delete l.dataset.docxDrawingLinkKind,delete l.dataset.docxDrawingLinkHref,l.removeAttribute("aria-hidden"),l.removeAttribute("aria-label"),l.removeAttribute("role"),l.removeAttribute("tabindex"),V(l,e.paintBounds,n.scale,r);let p=t.createElement("div");p.className="docx-drawing-image-frame",p.style.position="absolute";let y=hn(e),h=e.paintBounds,u=un(e.geometry.clipPolygon??[],e.groupPicture?y:h);u&&((e.groupPicture?p:l).style.clipPath=u),p.style.left=`${(y.x-h.x)*n.scale}px`,p.style.top=`${(y.y-h.y)*n.scale}px`,p.style.width=`${y.width*n.scale}px`,p.style.height=`${y.height*n.scale}px`;let f=Fe(e.effects);f&&(p.style.filter=f);let g=t.createElement("div");g.className="docx-drawing-transform-stage",g.style.position="relative",g.style.width="100%",g.style.height="100%";let b=pn(e);b&&(g.style.transform=b,g.style.transformOrigin="0 0");let R=t.createElement("div");R.className="docx-drawing-crop-viewport",R.style.position="relative",R.style.width="100%",R.style.height="100%",R.style.overflow="hidden";let m=i?.imageFor?.(s,a.resourceKey,t)??t.createElement("img");m.className="docx-drawing-image",m.setAttribute("draggable","false"),m.getAttribute("src")!==o&&m.setAttribute("src",o),m.setAttribute("alt","");let P=yn(e);if(m.style.position="absolute",m.style.width=P.width,m.style.height=P.height,m.style.left=P.left,m.style.top=P.top,m.style.maxWidth="none",m.style.maxHeight="none",R.append(m),g.append(R),p.append(g),l.replaceChildren(p),e.vectorShape){let B=Oe(t,e,n.scale),D=e.paintBounds;Ie(l,B,D,chunk6APGXLBB_cjs.M(e,D),n.scale),l.append(B);}return nn(t,l,p,e.effects.bilevel),e.hyperlinkHref&&!n.inertLinks?(l.dataset.docxDrawingLink=e.drawingNodeId,l.dataset.docxDrawingLinkKind="external",l.dataset.docxDrawingLinkHref=e.hyperlinkHref,l.setAttribute("tabindex","-1"),I(l,e,true)):I(l,e,false),i?.rememberReadyElement?.(s,l),c?me.set(l,d):me.delete(l),l}function Xo(t,e,n,o,i){let r=t.createElement("div");r.className="docx-drawing docx-drawing-shape",n.unbound||(r.dataset.drawingNodeId=e.drawingNodeId);let a=e.paintBounds;V(r,a,n.scale,i);let s=Oe(t,e,n.scale);return Ie(r,s,a,o,n.scale),r.append(s),e.hyperlinkHref&&!n.inertLinks?(r.dataset.docxDrawingLink=e.drawingNodeId,r.dataset.docxDrawingLinkKind="external",r.dataset.docxDrawingLinkHref=e.hyperlinkHref,r.setAttribute("tabindex","-1"),I(r,e,true)):I(r,e,false),r}function Vo(t,e,n,o,i){let r=o.scale,a=t.createElement("div");a.className="docx-drawing docx-drawing-textbox",o.unbound||(a.dataset.drawingNodeId=e.drawingNodeId),a.setAttribute("contenteditable","false"),V(a,e.paintBounds,o.scale,i),a.style.overflow="hidden";let s=(e.x-e.paintBounds.x)*r,l=(e.y-e.paintBounds.y)*r;if(n.fillHex!==null||n.strokeHex!==null){let c=t.createElement("div");c.className="docx-drawing-textbox-box",c.style.position="absolute",c.style.left=`${s}px`,c.style.top=`${l}px`,c.style.width=`${e.width*r}px`,c.style.height=`${e.height*r}px`,c.style.boxSizing="border-box",n.fillHex!==null&&(c.style.backgroundColor=`#${n.fillHex}`),n.strokeHex!==null&&(c.style.border=`${Math.max(n.strokeWidthPt*r,.5)}px solid #${n.strokeHex}`),a.append(c);}let d=t.createElement("div");d.className="docx-drawing-textbox-content",d.style.position="absolute",d.style.left=`${s+n.contentOffset.x*r}px`,d.style.top=`${l+n.contentOffset.y*r}px`,d.style.width=`${n.contentWidth*r}px`,d.style.height=`${Math.max(0,n.contentHeight)*r}px`,d.style.overflow="hidden";for(let c of n.fragments)d.append(o.paintStoryFragment(t,c));for(let c of d.querySelectorAll("[data-paragraph-id]"))c.dataset.textboxParagraphId=c.dataset.paragraphId,delete c.dataset.paragraphId;return a.append(d),I(a,e,false),a}function Yo(t,e,n){let o=n.revisionStyles,i=j(e.revisions,o?.authorSlots,o?.styles);if(!i){if(t.dataset.revisionKind===void 0)return;t.classList.remove("docx-drawing--revision","docx-drawing--revision-insertion","docx-drawing--revision-deletion"),delete t.dataset.revisionKind,delete t.dataset.revisionId,delete t.dataset.reviewAuthor,delete t.dataset.revisionDate,delete t.dataset.reviewAuthorSlot;return}let{attribution:r}=i;t.classList.add("docx-drawing--revision",i.deleted?"docx-drawing--revision-deletion":"docx-drawing--revision-insertion"),t.classList.remove(i.deleted?"docx-drawing--revision-insertion":"docx-drawing--revision-deletion"),t.dataset.revisionKind=r.kind,t.dataset.revisionId=r.id,r.author!==""?t.dataset.reviewAuthor=r.author:delete t.dataset.reviewAuthor,r.date!==void 0?t.dataset.revisionDate=r.date:delete t.dataset.revisionDate,o?t.dataset.reviewAuthorSlot=String((o.authorSlots.get(r.author)??0)%T):delete t.dataset.reviewAuthorSlot;}function fn(t,e,n,o,i){let r=qo(t,e,n,o,i);return r&&Yo(r,e,n),r}function qo(t,e,n,o,i){if(e.accessibility.hidden)return null;let r=e.vectorShape?chunk6APGXLBB_cjs.M(e,e.paintBounds):e.paintBounds;if(r.width<=0||r.height<=0)return null;if(e.textboxStory!==void 0&&n.paintStoryFragment!==void 0)return Vo(t,e,e.textboxStory,n,i);if(e.groupTextboxStories&&!e.groupPicture&&!e.vectorShape){let d=t.createElement("div");return d.className="docx-drawing docx-drawing-group-frame",n.unbound||(d.dataset.drawingNodeId=e.drawingNodeId),V(d,e.paintBounds,n.scale,i),I(d,e,false),d}let{resource:a}=e,s=a.kind==="ready"&&n.imageUrlPort&&o?o.urlForReady(a.validatedHandle,a.mime):null;if(e.groupPicture&&a.kind!=="pending"&&!s)return te(t,e,n,i);let l=e.groupPicture!==void 0&&s!==null;if(e.vectorShape&&e.vectorShape.subpathsEmu.length>0&&!l)return Xo(t,e,n,r,i);if(a.kind==="ready")return !s||!o?te(t,e,n,i):Wo(t,e,n,s,o,i);if(a.kind==="pending"){let d=o?.readyElementFor?.(_e(e,n))??o?.imageForPending?.(_e(e,n))?.closest(".docx-drawing-ready");return d?(me.delete(d),n.unbound||(d.dataset.drawingNodeId=e.drawingNodeId),V(d,e.paintBounds,n.scale,i),d):te(t,e,n,i)}return te(t,e,n,i)}function gn(t,e,n,o,i){let r=[];for(let a of e.drawings??[]){let s=fn(t,a,n,o,i);s&&r.push(s);let l=Ne(t,a,n,i);l&&r.push(l);}return Object.freeze(r)}function mn(t,e,n,o,i,r){let a=[];for(let s of e){if(chunk4GBTELJV_cjs.Db(s)!==n)continue;let l=fn(t,s,o,i,r);l&&(l.dataset.drawingLayer=n,a.push(l));let d=Ne(t,s,o,r);d&&(d.dataset.drawingLayer=n,a.push(d));}return Object.freeze(a)}var ln=new WeakMap;function Zo(t){let e=ln.get(t);if(e)return e;let n=[],o=[];chunk4GBTELJV_cjs.Ba(t,({host:r})=>{(!("anchoredDrawings"in r)||(r.anchoredDrawings?.length??0)===0)&&ee(r.fragments).drawingFree||(chunk4GBTELJV_cjs.Da(r,a=>{a.resource.kind==="ready"&&n.push(a.resource.resourceKey),o.push(`p${t.index}|${a.drawingNodeId}`);}),chunk4GBTELJV_cjs.Fa(r,a=>{let s=a.marker?.picture;s?.resource.kind==="ready"&&n.push(s.resource.resourceKey);}));});let i=Object.freeze({resourceKeys:Object.freeze(n),elementKeys:Object.freeze(o)});return ln.set(t,i),i}var dn=new WeakMap;function bn(t){let e=dn.get(t);if(e)return e;let n=new Set,o=new Set;for(let r of t.pages){let a=Zo(r);for(let s of a.resourceKeys)n.add(s);for(let s of a.elementKeys)o.add(s);}let i=Object.freeze({resourceKeys:n,elementKeys:o});return dn.set(t,i),i}function xn(t){return bn(t).resourceKeys}function vn(t){return bn(t).elementKeys}function Rn(t){return [t.missingResource,t.externalResource,t.invalidResource,t.contentMismatch,t.decodeFailed,t.resourceLimit,t.pendingResource,t.unsupportedFormat("probe"),t.nonPictureGraphic("probe")].join("\0")}var ze=Object.freeze({unsupportedFormat:t=>`Unsupported image format (${t})`,nonPictureGraphic:t=>`Unsupported graphic (${t})`,missingResource:"Image missing",externalResource:"External image not loaded",invalidResource:"Invalid image",contentMismatch:"Image content does not match its type",decodeFailed:"Image could not be decoded",resourceLimit:"Image exceeds size limits",pendingResource:"Loading image"});function ea(t){return Object.freeze({unsupportedFormat:e=>t("image.unsupportedFormat",{format:e}),nonPictureGraphic:e=>t("image.nonPictureGraphic",{kind:e}),missingResource:t("image.missingResource"),externalResource:t("image.externalResource"),invalidResource:t("image.invalidResource"),contentMismatch:t("image.contentMismatch"),decodeFailed:t("image.decodeFailed"),resourceLimit:t("image.resourceLimit"),pendingResource:t("image.pendingResource")})}function Jo(t,e,n){t.style.position="absolute",t.style.left=`${e.x*n}px`,t.style.top=`${e.y*n}px`,t.style.width=`${e.width*n}px`,t.style.height=`${e.height*n}px`;}function Sn(t,e,n,o){let i=t.createElement("span");return i.className=e,i.setAttribute("aria-hidden","true"),i.style.position="absolute",i.style.display="block",i.style.left=`${n.x*o}px`,i.style.top=`${n.y*o}px`,i.style.width=`${n.width*o}px`,i.style.height=`${n.height*o}px`,i.style.backgroundColor="currentColor",i.style.pointerEvents="none",i}function L(t,e,n,o,i=0,r=0,a=[]){let s=i+n.box.x,l=r+n.box.y,d=[...a,n.kind];switch(n.kind){case "text":case "fallback":{let c=t.createElement("span");c.className=["docx-equation-node",...d.map(p=>`docx-equation-${p}`)].join(" "),Jo(c,{x:s,y:l,width:n.box.width,height:n.box.height},o),c.textContent=n.text,c.style.display="block",c.style.fontSize=`${n.fontSizePt*o}px`,c.style.lineHeight=`${n.box.height*o}px`,c.style.whiteSpace="pre",e.append(c);break}case "row":for(let c of n.items)L(t,e,c,o,s,l,d);break;case "fraction":L(t,e,n.numerator,o,s,l,d),e.append(Sn(t,"docx-equation-fraction-bar",{...n.bar,x:s+n.bar.x,y:l+n.bar.y},o)),L(t,e,n.denominator,o,s,l,d);break;case "radical":L(t,e,n.sign,o,s,l,d),n.degree&&L(t,e,n.degree,o,s,l,d),e.append(Sn(t,"docx-equation-radical-bar",{...n.bar,x:s+n.bar.x,y:l+n.bar.y},o)),L(t,e,n.radicand,o,s,l,d);break;case "script":L(t,e,n.base,o,s,l,d),n.subscript&&L(t,e,n.subscript,o,s,l,d),n.superscript&&L(t,e,n.superscript,o,s,l,d);break;case "nary":L(t,e,n.operator,o,s,l,d),n.lowerLimit&&L(t,e,n.lowerLimit,o,s,l,d),n.upperLimit&&L(t,e,n.upperLimit,o,s,l,d),L(t,e,n.body,o,s,l,d);break}}function wn(t,e,n,o){let i=n.geometry;e.className="layout-run docx-equation",e.dataset.docxEquation=n.sourceNodeId,e.setAttribute("contenteditable","false"),e.setAttribute("role","math"),n.fallbackText&&e.setAttribute("aria-label",n.fallbackText),e.style.position="relative",e.style.display="inline-block",e.style.width=`${i.box.width*o}px`,e.style.height=`${i.box.height*o}px`,e.style.lineHeight="0",e.style.pointerEvents="auto",e.style.userSelect="none",e.style.verticalAlign=`${-(i.box.height-i.baseline)*o}px`;let r=t.createDocumentFragment();L(t,r,i,o),e.append(r);}function kn(t,e,n,o){if(n.glyphOffsetPt!==void 0){let s=n.style.horizontalScalePercent/100,l=n.box.width*o;e.style.width=`${l/s}px`,s!==1&&(e.style.marginRight=`${l-l/s}px`);let d=t.createElement("span");if(d.dataset.docxGlyphOffset="",s!==1&&(d.style.letterSpacing=`${n.style.characterSpacingPt*o/s}px`),n.glyphOffsetPt){d.dataset.docxShiftedInk="",d.style.setProperty("forced-color-adjust","preserve-parent-color"),d.style.setProperty("-webkit-text-fill-color","transparent");let c=`${n.glyphOffsetPt*o/s}px`;d.style.setProperty("--docx-glyph-ink-offset",c),e.style.color&&e.style.color!=="inherit"&&d.style.setProperty("--docx-glyph-ink-color",e.style.color),d.style.textShadow=`${c} 0 currentColor`;}return e.append(d),d}let i=n.lineEndWhitespace===true;(n.style.horizontalScalePercent!==100||n.text===" "||i)&&(e.style.width=`${n.box.width*o}px`);let r=n.style.shaping!==void 0&&n.style.horizontalScalePercent!==100;if(!i&&!r||(i&&(e.style.clipPath="inset(-1em 0)"),n.style.horizontalScalePercent===100))return e;let a=t.createElement("span");if(a.dataset.docxClippedFill="",a.style.display="inline-block",a.style.transform=e.style.transform,a.style.transformOrigin=e.style.transformOrigin,r){let s=n.style.horizontalScalePercent/100;a.style.width=`${n.box.width*o/s}px`,a.style.letterSpacing=`${n.style.characterSpacingPt*o/s}px`,n.style.shaping?.wordSpacingPt&&(a.style.wordSpacing=`${n.style.shaping.wordSpacingPt*o/s}px`),a.style.direction=n.style.shaping?.direction??"ltr",a.style.transformOrigin=a.style.direction==="rtl"?"right":"left";}return a.style.textDecorationLine=e.style.textDecorationLine,a.style.textDecorationStyle=e.style.textDecorationStyle,a.style.textDecorationColor=e.style.textDecorationColor,a.style.textDecorationThickness=e.style.textDecorationThickness,e.style.removeProperty("transform"),e.style.removeProperty("transform-origin"),e.style.removeProperty("text-decoration-line"),e.style.removeProperty("text-decoration-style"),e.style.removeProperty("text-decoration-color"),e.style.removeProperty("text-decoration-thickness"),e.append(a),a}function En(t,e,n){let o=e.textOutline;if(!o||!Number.isFinite(n)||n<=0||!Number.isFinite(o.widthPt)||o.widthPt<=0||o.widthPt>1584||!/^[0-9a-f]{6}$/i.test(o.color))return;let i=o.widthPt*n;Number.isFinite(i)&&(t.setProperty("-webkit-text-stroke-width",`${i}px`),t.setProperty("-webkit-text-stroke-color",`#${o.color}`));}var Qo=/^[0-9A-Fa-f]{6}$/;function er(t,e,n){let o=t.createElement("div");o.className=`docx-page-border docx-page-border-${e.side}`,o.setAttribute("aria-hidden","true"),o.style.position="absolute";let i=e.side==="left"||e.side==="right",r=(i?e.box.width:e.box.height)*n,a=pe(e.edge.val)?r:Math.max(1,r),s=a-r;o.style.left=`${e.box.x*n-(e.side==="right"?s:0)}px`,o.style.top=`${e.box.y*n-(e.side==="bottom"?s:0)}px`,o.style.width=i?`${a}px`:`${e.box.width*n}px`,o.style.height=i?`${e.box.height*n}px`:`${a}px`;let l=e.edge.color&&Qo.test(e.edge.color)?e.edge.color:"000000";return o.style.backgroundColor=`#${l}`,W(o,e.edge.val,l,i,a,n),o}function Ln(t,e,n){let o=t.createElement("div");o.className="docx-page-borders",o.setAttribute("aria-hidden","true"),o.setAttribute("contenteditable","false"),o.style.position="absolute",o.style.inset="0",o.style.pointerEvents="none";for(let i of e.strokes)o.append(er(t,i,n));return o}var tr=/^[0-9A-Fa-f]{6}$/;function nr(t){switch(t){case "dashed":return "dashed";case "dotted":return "dotted";case "double":case "triple":return "solid";default:return "solid"}}function je(t){return t&&tr.test(t)?t:"000000"}function Ke(t,e){let n=t.createElement("div");return n.className=e,n.setAttribute("aria-hidden","true"),n.setAttribute("contenteditable","false"),n.style.position="absolute",n.style.left="0",n.style.top="0",n.style.right="0",n.style.bottom="0",n.style.overflow="visible",n.style.pointerEvents="none",n.style.boxSizing="border-box",n}function or(t,e,n,o){if(!n)return;let i=`#${je(n.color)}`,r=`${Math.max(0,n.widthPt*o)}px`;if(t.style[`border${e}Width`]=r,t.style[`border${e}Color`]=i,n.style==="double"||n.style==="triple"){t.style[`border${e}Style`]="none";return}t.style[`border${e}Style`]=nr(n.style);}function Ue(t,e,n,o,i){let r=t.createElement("div");if(r.className=i,r.dataset.edge=n.side,r.dataset.stroke=n.role,r.style.position="absolute",r.style.left=`${n.x*o}px`,r.style.top=`${n.y*o}px`,r.style.width=`${n.width*o}px`,r.style.height=`${n.height*o}px`,r.style.pointerEvents="none",n.cssStyle==="solid")r.style.backgroundColor=`#${je(n.color)}`;else {let a=n.side==="top"||n.side==="bottom";r.style.boxSizing="border-box",r.style[a?"borderTop":"borderLeft"]=`${(a?n.height:n.width)*o}px ${n.cssStyle} #${je(n.color)}`;}return e.append(r),r}function rr(t){let e=new Set;for(let n of t)e.add(`${n.side}\0${n.role}`);return e}function ir(t,e,n,o){let i=rr(n),r=h=>i.has(`${h}\0middle`),a=Ke(t,"docx-table-border-double"),s=Ke(t,"docx-table-border-triple"),l=Ke(t,"docx-table-border-edge");for(let h of [a,s,l])h.style.zIndex="1";let d=false,c=false,p=false,y=[];for(let h of n){if(h.role==="edge"){p=true,y.push(Ue(t,l,h,o,"docx-table-border-edge-stroke"));continue}if(r(h.side)){c=true,y.push(Ue(t,s,h,o,"docx-table-border-triple-stroke"));continue}(h.role==="outer"||h.role==="inner")&&(d=true,y.push(Ue(t,a,h,o,"docx-table-border-double-stroke")));}return d&&e.append(a),c&&e.append(s),p&&e.append(l),y}function Pn(t,e,n,o){let i=new Set((n?.strokes??[]).map(r=>r.side));for(let r of ["top","right","bottom","left"]){let a=`${r[0].toUpperCase()}${r.slice(1)}`;or(e,a,n?.[r],o),i.has(r)&&(e.style[`border${a}Style`]="none");}if(n?.strokes&&n.strokes.length>0)return ir(t,e,n.strokes,o)}function Mn(t,e,n){e.revisionKind&&(n&&(t.style.backgroundColor="transparent"),t.classList.add("docx-table-row--revision",e.revisionKind==="insert"?"layout-revision-ins":"layout-revision-del"),t.dataset.revisionKind=e.revisionKind,e.revisionId!==void 0&&(t.dataset.revisionId=e.revisionId),e.revisionAuthor!==void 0&&(t.dataset.reviewAuthor=e.revisionAuthor),e.revisionDate!==void 0&&(t.dataset.revisionDate=e.revisionDate));}function Tn(t,e,n,o){if(e.textDirection!=="btLr")return o;let i=t.createElement("div");return i.className="docx-table-cell-content-btlr",i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.width=`${e.box.height*n}px`,i.style.height=`${e.box.width*n}px`,i.style.transformOrigin="0 0",i.style.transform=`translateY(${e.box.height*n}px) rotate(-90deg)`,o.append(i),i}var Ge="when-selected",An=new WeakMap,$n=0;function ar(t){let e=An.get(t);return e||($n+=1,e=`alias${$n}`,An.set(t,e)),e}function _n(t){return {...t,drawingStrings:t.drawingStrings??ze,urlRegistry:t.urlRegistry??null,changeBars:t.changeBars??"none",changeBarsToggle:t.changeBarsToggle??false}}function sr(t){let e={...t,inertLinks:true,tabLeaderOriginXPt:0};return Object.freeze({scale:t.scale,strings:t.drawingStrings,...t.imageUrlPort?{imageUrlPort:t.imageUrlPort}:{},...t.inertLinks?{inertLinks:true}:{},...t.paintInstance?{paintInstance:t.paintInstance}:{},...t.revisionStyles?{revisionStyles:t.revisionStyles}:{},...t.unbound?{unbound:true}:{},paintStoryFragment:(n,o,i)=>{let r=i?.readOnly?{...e,unbound:true}:e;return o.kind==="table"?K(n,o,r):z(n,o,r)}})}function zn(t){return Object.freeze({ctx:sr(t),urlRegistry:t.urlRegistry})}function Cn(t,e,n,o,i,r){Kn(t,e,chunk4GBTELJV_cjs.Aa(n),o,i,r);}function Kn(t,e,n,o,i,r,a=true,s){if(n.length===0)return;let l=zn(o),d=t.createElement("div");d.className=r==="behind"?"docx-drawing-layer docx-drawing-layer-behind":"docx-drawing-layer docx-drawing-layer-front",d.style.position="absolute",d.style.inset="0",d.style.pointerEvents="none",s&&(d.dataset.docxHfFront=s);for(let c of mn(t,n,r,l.ctx,l.urlRegistry,i)){if(c.style.pointerEvents=a?"auto":"none",!a)for(let p of c.querySelectorAll(".docx-drawing"))p.style.pointerEvents="none";d.append(c);}d.childElementCount>0&&e.append(d);}var Y=/^[0-9A-Fa-f]{6}$/,Hn=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,lr=new Map(Object.entries({single:"solid",words:"solid",thick:"solid",double:"double",dotted:"dotted",dottedHeavy:"dotted",dash:"dashed",dashedHeavy:"dashed",dashLong:"dashed",dashLongHeavy:"dashed",dotDash:"dashed",dashDotHeavy:"dashed",dotDotDash:"dashed",dashDotDotHeavy:"dashed",wave:"wavy",wavyHeavy:"wavy",wavyDouble:"wavy"})),dr=new Map(Object.entries({black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkBlue:"#000080",darkCyan:"#008080",darkGray:"#808080",darkGreen:"#008000",darkMagenta:"#800080",darkRed:"#800000",darkYellow:"#808000",green:"#00ff00",lightGray:"#c0c0c0",magenta:"#ff00ff",red:"#ff0000",yellow:"#ffff00",white:"#ffffff"}));function cr(t){return t.doubleStrike?"double":t.strike?"single":"none"}function ur(t){return t==="thick"||t.endsWith("Heavy")}function Un(t){if(!t.underline)return null;let e=t.underline.color&&Y.test(t.underline.color)?t.underline.color:null;return {cssStyle:lr.get(t.underline.variant)??"solid",color:e,heavy:ur(t.underline.variant)}}function jn(t,e,n,o){t.textDecorationLine=e,t.textDecorationStyle=n,o.color&&(t.textDecorationColor=`#${o.color}`),o.heavy&&(t.textDecorationThickness=`max(${2*o.scale}px, 0.12em)`);}function Bn(t,e,n){e!=="none"&&jn(t,"line-through",e==="double"?"double":"solid",{scale:n});}function Fn(t,e,n){jn(t,"underline",e.cssStyle,{color:e.color,heavy:e.heavy,scale:n});}function pr(t,e,n){let o=e.color?`#${e.color}`:"currentColor";t.borderBottomWidth=`${(e.heavy?2:1)*n}px`,t.borderBottomStyle=e.cssStyle==="wavy"?"solid":e.cssStyle,t.borderBottomColor=o;}function ne(t,e,n){let o=t.style,i=n.scale;En(o,e,i);let r=chunk4GBTELJV_cjs.fa(e);o.fontSize=`${e.fontSizePt*r*i}px`,e.bold&&(o.fontWeight="bold"),e.italic&&(o.fontStyle="italic");let a=e.fontFamily&&Hn.test(e.fontFamily)?e.fontFamily:n.defaultFontFamily&&Hn.test(n.defaultFontFamily)?n.defaultFontFamily:null;if(a){let d=n.fontAlias?.(a);o.fontFamily=d?`"${d}", "${a}", ${chunk6APGXLBB_cjs.O}`:`"${a}", ${chunk6APGXLBB_cjs.O}`;}e.color&&Y.test(e.color)&&(o.color=`#${e.color}`);let s=e.highlight?dr.get(e.highlight):void 0;s?(o.backgroundColor=s,t.dataset.highlight=e.highlight??""):e.shading&&Y.test(e.shading)&&(o.backgroundColor=`#${e.shading}`),e.caps&&(o.textTransform="uppercase"),o.fontKerning=chunk6APGXLBB_cjs.N(e)?"normal":"none",e.smallCaps&&(o.fontVariant="small-caps");let l=chunk4GBTELJV_cjs.ea(e);l!==0&&(o.position="relative",o.top=`${-l*i}px`),e.characterSpacingPt!==0&&(o.letterSpacing=`${e.characterSpacingPt*i}px`),e.horizontalScalePercent!==100&&(o.transformOrigin="left",o.transform=`scaleX(${e.horizontalScalePercent/100})`);}function Gn(t,e,n,o,i){let r=n===" "?null:Un(o),a=cr(o),s=e;if(r&&a!=="none"){let l=t.createElement("span");l.dataset.docxDeco="underline",Fn(l.style,r,i);let d=t.createElement("span");d.dataset.docxDeco="strike",Bn(d.style,a,i),l.append(d),e.append(l),s=d;}else r?Fn(e.style,r,i):a!=="none"&&Bn(e.style,a,i);s.textContent=n;}function O(t,e,n,o){let i=t.createElement(e);return i.style.position="absolute",i.style.left=`${n.x*o}px`,i.style.top=`${n.y*o}px`,i.style.width=`${n.width*o}px`,i.style.height=`${n.height*o}px`,i}function yr(t,e,n){let o=e.fieldAtom;!o||(t.dataset.fieldAtom=o.formField?"form":"field",o.resultStart!==void 0&&o.resultEnd!==void 0&&(t.dataset.fieldResultStart=String(o.resultStart),t.dataset.fieldResultEnd=String(o.resultEnd)),!(o.formField?n.shadeFormFields!==false:(n.fieldShading??Ge)!=="never"))||(t.classList.add("docx-field-atom"),(o.formField||(n.fieldShading??Ge)==="always")&&t.classList.add("docx-field-atom--shaded"));}function hr(t,e,n,o,i){let r=t.createElement("span"),a=chunk4GBTELJV_cjs.ua(e.style,e.fontSlot);if(e.equation)return n.unbound||(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)),ne(r,a,n),wn(t,r,e.equation,n.scale),Ae(r,e,n),r;r.className="layout-run layout-run-text",r.style.display="inline-block",r.style.verticalAlign="baseline",r.style.boxSizing="border-box",r.style.height=`${o*n.scale}px`,r.style.paddingTop=`${i*n.scale}px`,r.style.lineHeight=`${(o-i)*n.scale}px`,e.range.end>e.range.start?n.unbound||(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)):(r.setAttribute("aria-hidden","true"),r.contentEditable="false"),ne(r,a,n),yr(r,e,n),Ae(r,e,n);let s=kn(t,r,e,n.scale);if(e.text===" "){r.style.overflow="hidden",r.style.verticalAlign="top";let l=Un(e.style);l&&e.tabLeader!=="underscore"&&(r.dataset.docxTabUnderline="",pr(r.style,l,n.scale));}return Gn(t,s,chunk4GBTELJV_cjs.ed(e),e.style,n.scale),Ot(r,e,n.scale),It(r,e),e.projected&&(r.dataset.docxField="",r.setAttribute("contenteditable","false"),e.noteNav?(r.style.userSelect="none",e.noteNav.direction==="to-note"?(r.dataset.docxNoteRef="",r.dataset.docxNoteScope=e.noteNav.scopeId,e.text.length>0&&r.setAttribute("aria-description",e.text)):(r.dataset.docxNoteMarkBack="",r.dataset.docxNoteScope=e.noteNav.scopeId)):e.fieldAtom?.formControl?(r.style.userSelect="none",r.style.cursor="pointer"):(r.style.pointerEvents="none",r.style.userSelect="none")),r}function Dn(t,e,n){let o=t.createElement("a");return o.className="docx-hyperlink",o.style.cursor=!n.inertLinks&&e.href?"pointer":"default",o.dataset.docxLink=e.id,o.dataset.docxLinkKind=e.kind,o.setAttribute("tabindex","-1"),!n.inertLinks&&e.href&&(o.setAttribute("href",e.href),e.kind==="external"&&o.setAttribute("rel","noopener noreferrer")),e.tooltip&&o.setAttribute("title",e.tooltip),o.style.display="inline-block",o.style.verticalAlign="baseline",o.style.textDecoration="none",o.style.color="inherit",o}function fr(t,e,n,o=false,i=chunk4GBTELJV_cjs.$){let r=n.scale,a=t.createElement("div");a.className="docx-line layout-line",a.dataset.lineId=e.id,n.unbound||(a.dataset.paragraphId=e.range.paragraphId),a.style.position="absolute",a.style.top=`${e.box.y*r}px`,a.style.left=`${e.contentX*r}px`,a.style.height=`${e.box.height*r}px`,a.style.fontSize="0",a.style.whiteSpace="pre",a.style.overflow="visible";let s=e.leading??0,l=Math.min(Math.max(s,...e.spans.map(v=>v.box.height+s),e.spans.length===0?e.box.height-(e.trailingSpacing??0):0),e.box.height),d=Math.max(0,e.box.height-l);a.style.boxSizing="border-box",a.style.paddingBottom=`${d*r}px`,a.style.lineHeight=`${(e.box.height-d)*r}px`;let c=null,p=null,y=null,h=new Map;for(let[v,x]of chunk4GBTELJV_cjs.La(e).entries())h.set(x.paragraphId,v);let u=v=>h.get(v)??0,f=[...e.drawings??[]].sort((v,x)=>u(v.paragraphId)-u(x.paragraphId)||v.start-x.start),g=0,b=e.spans.some(v=>v.style.shaping!==void 0)||(e.drawings??[]).some(chunk4GBTELJV_cjs.Cd),R=0,m=e.contentX,P=(v,x)=>{for(;g<f.length&&(u(f[g].paragraphId)<u(v)||u(f[g].paragraphId)===u(v)&&f[g].start<x);){let w=f[g],$=b?Math.max(0,w.advanceEnd-w.advanceStart):Math.max(0,w.advanceEnd-m);m=Math.max(m,w.advanceEnd);let k=t.createElement("span");k.className="docx-inline-drawing-advance",k.dataset.docxMarker="",n.unbound||(k.dataset.drawingParagraphId=w.paragraphId,k.dataset.drawingStart=String(w.start)),k.setAttribute("contenteditable","false"),k.setAttribute("aria-hidden","true"),k.style.display="inline-block",k.style.width=`${$*r}px`,k.style.height=`${w.baselineOffset*r}px`,k.style.lineHeight="0",k.style.pointerEvents="none",k.style.verticalAlign="baseline",a.append(k),R+=$,g+=1,c=null,p=null;}},B=v=>{let x=v.wrapAdvanceBefore??0;if(x<=.001)return;let w=t.createElement("span");w.className="docx-wrap-advance",w.dataset.docxMarker="",w.setAttribute("contenteditable","false"),w.setAttribute("aria-hidden","true"),w.style.display="inline-block",w.style.width=`${x*r}px`,w.style.height="0",w.style.lineHeight="0",w.style.pointerEvents="none",w.style.verticalAlign="baseline",a.append(w),c=null,p=null;},D=0,F=false;for(let[v,x]of e.spans.entries()){let w=g;P(x.range.paragraphId,x.range.start),b||B(x);let $=!b&&g>w?x.box.x-m-(x.wrapAdvanceBefore??0):0;m=Math.max(m,x.box.x+x.box.width);let k=Math.min(x.box.height+s,e.box.height),E=x.noteSeparator?Ft(t,x,e,r):hr(t,x,n,k,s);b&&(E.style.position="relative",E.style.left=`${(x.box.x-e.contentX-R)*r}px`,E.style.width||(E.style.width=`${x.box.width*r}px`),E.style.direction=x.style.shaping?.direction??"ltr",E.style.unicodeBidi="isolate",x.style.shaping?.wordSpacingPt&&(E.style.wordSpacing=`${x.style.shaping.wordSpacingPt*r}px`),R+=x.box.width);let Ve=D>0&&!F?D:$;Ve>.001&&(E.style.marginLeft=`${Ve*r}px`);let Ye=e.spans[v+1],xe=b?0:Wn(e,v+1,u);F=xe>0&&Ye!==void 0&&mr(x,Ye),F&&(E.style.wordSpacing=`${xe*r}px`),D=xe;let N=x.link;if(!N){c=null,p=null,y=null,a.append(E);continue}if(x.fieldAtom){let qe=We(x);c!==null&&p===N.id&&y===qe||(c=Dn(t,N,n),p=N.id,y=qe,a.append(c)),c.append(E);continue}(!c||p!==N.id||y!==null)&&(c=Dn(t,N,n),p=N.id,y=null,a.append(c)),c.append(E);}P(chunk4GBTELJV_cjs.La(e)[chunk4GBTELJV_cjs.La(e).length-1]?.paragraphId??e.range.paragraphId,Number.POSITIVE_INFINITY),Ht(a,e,r,i,v=>ne(a,v,n));let U=Object.freeze({x:e.contentX,y:e.box.y,width:e.box.width,height:e.box.height});Dt(t,a,e,r),n.showParagraphMarks&&e.manualBreakAfter&&St(t,e,a,r,n.revisionStyles,o);let S=zn(_n(n));if(e.drawings&&e.drawings.length>0)for(let v of gn(t,e,S.ctx,S.urlRegistry,U))a.append(v);return a}function Wn(t,e,n){if(e<=0||e>=t.spans.length)return 0;let o=t.spans[e-1],i=t.spans[e],r=n(o.range.paragraphId),a=n(i.range.paragraphId);if(t.drawings?.some(d=>{let c=n(d.paragraphId),p=c>r||c===r&&d.start>=o.range.start,y=c<a||c===a&&d.start<i.range.start;return p&&y}))return 0;let l=i.box.x-(o.box.x+o.box.width)-(i.wrapAdvanceBefore??0);return l>.001?l:0}var gr=/[\t\n\r \u00A0\u1361\u{10100}-\u{10102}\u{1039F}\u{1091F}]/u;function mr(t,e){return !t.text.endsWith(" ")||t.style.horizontalScalePercent!==100||!br(t,e)||(e.wrapAdvanceBefore??0)>.001?false:!gr.test(t.text.slice(0,-1))}function br(t,e){return !t.link&&!e.link?true:!t.link||!e.link||t.link.id!==e.link.id||!!t.fieldAtom!=!!e.fieldAtom?false:!t.fieldAtom||We(t)===We(e)}function We(t){return t.fieldAtom?.resultStart??t.range.start}function z(t,e,n){let o=n.scale,i=O(t,"div",e.box,o);i.className="docx-paragraph-fragment layout-paragraph",e.clipToBox&&(i.style.overflow="hidden"),n.unbound||(i.dataset.paragraphId=e.paragraphId),i.dataset.fragmentIndex=String(e.fragmentIndex),n.unbound||$e(i,e),n.readOnlyParagraphIds?.has(e.paragraphId)&&(i.classList.add("docx-generated-region"),i.dataset.docxReadOnly="",i.setAttribute("contenteditable","false")),n.emptyTocPlaceholderIds?.has(e.paragraphId)&&(i.classList.add("docx-toc-empty-placeholder"),i.dataset.docxTocEmpty=""),e.shading&&Y.test(e.shading)&&e.shadingBox&&i.append(Rr(t,e,o)),e.marker&&i.append(xr(t,e,n));for(let a of e.lines)for(let s of a.spans){if(!s.tabLeader)continue;let l=vr(t,e,a,s,n);l&&i.append(l);}let r=null;for(let a of e.lines){let s=fr(t,a,n.revisionMarkup&&chunk4GBTELJV_cjs.hb(e.props)?{...n,paragraphFormatRevision:chunk4GBTELJV_cjs.hb(e.props)}:n,chunk4GBTELJV_cjs.sd(e.props),e.emptyParagraphStyle);r=s,e.markFormatRevision&&a===e.lines[e.lines.length-1]&&$e(s,e,true),s.style.top=`${(a.box.y-e.box.y)*o}px`,s.style.left=`${(a.contentX-e.box.x)*o}px`,i.append(s);}if(n.showParagraphMarks&&e.paragraphEnd||e.markRevisions&&e.markRevisions.length>0){let a=wt(t,e.markRevisions??[],n.revisionStyles,n.revisionMarkup,n.revisionKindColors),s=e.lines[e.lines.length-1];if(s&&r){let l=e.paragraphMarkSizePt??e.emptyParagraphStyle?.fontSizePt??s.spans.at(-1)?.style.fontSizePt??chunk4GBTELJV_cjs.$.fontSizePt;Ee(a,r,s,chunk4GBTELJV_cjs.sd(e.props),l,o);}}if(e.borders)for(let a of e.borders)i.append(In(t,e,a,o));else e.bottomBorder&&i.append(In(t,e,{side:"bottom",edge:e.bottomBorder.edge,box:e.bottomBorder.box},o));return i}function xr(t,e,n){let o=e.marker,i=n.scale,r=Bt(t,e,_n(n));if(r)return r;let a=e.lines[0]?.leading??0,s=O(t,"span",o.box,i);s.className="docx-list-marker",s.dataset.docxMarker="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.left=`${(o.box.x-e.box.x)*i}px`,s.style.top=`${(o.box.y-e.box.y)*i}px`,s.style.display="block",s.style.overflow="visible",s.style.whiteSpace="pre";let l=e.lines[0],d=l?Math.max(a,...l.spans.map(h=>h.box.height+a),l.spans.length===0?l.box.height-(l.trailingSpacing??0):0):o.box.height,c=Math.min(d,o.box.height),p=Math.max(0,o.box.height-c);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${p*i}px`,s.style.lineHeight=`${c*i}px`;let y=t.createElement("span");return y.style.display="inline-block",y.style.verticalAlign="baseline",y.style.boxSizing="border-box",y.style.height=`${c*i}px`,y.style.paddingTop=`${a*i}px`,y.style.lineHeight=`${(c-a)*i}px`,ne(y,o.style,n),o.pieces&&(y.dir="rtl"),Gn(t,y,o.text,o.style,i),s.append(y),s}function vr(t,e,n,o,i){let r=o.tabLeader?chunk4GBTELJV_cjs.ub.get(o.tabLeader):void 0;if(!r||o.box.width<=0)return null;let a=i.scale,s=t.createElement("div");s.className="docx-tab-leader",s.dataset.docxTabLeader="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.position="absolute",o.tabLeader==="underscore"&&(s.style.zIndex="1"),s.style.left=`${(o.box.x-e.box.x)*a}px`,s.style.top=`${(n.box.y-e.box.y)*a}px`,s.style.width=`${o.box.width*a}px`,s.style.height=`${n.box.height*a}px`,s.style.overflow="hidden",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none";let l=n.leading??0,d=Math.min(o.box.height+l,n.box.height),c=Math.max(0,n.box.height-d);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${c*a}px`,s.style.lineHeight=`${(n.box.height-c)*a}px`;let p=t.createElement("span");p.style.display="inline-block",p.style.verticalAlign="baseline",ne(p,o.style,i),p.style.boxSizing="border-box",p.style.height=`${d*a}px`,p.style.paddingTop=`${l*a}px`,p.style.lineHeight=`${(d-l)*a}px`,o.tabLeader==="heavy"&&(p.style.fontWeight="bold");let y=o.tabLeaderAdvancePt&&o.tabLeaderAdvancePt>0?o.tabLeaderAdvancePt:Math.max(.5,o.style.fontSizePt*.2),h=chunk6APGXLBB_cjs.na((i.tabLeaderOriginXPt??0)+o.box.x,o.box.width,y);return p.style.marginLeft=`${h.offsetPt*a}px`,p.textContent=r.repeat(h.count),p.style.letterSpacing="0",s.append(p),s}function Rr(t,e,n){let o=e.shadingBox,i=O(t,"div",o,n);return i.className="docx-paragraph-shading",i.setAttribute("aria-hidden","true"),i.style.left=`${(o.x-e.box.x)*n}px`,i.style.top=`${(o.y-e.box.y)*n}px`,i.style.backgroundColor=`#${e.shading}`,i}function In(t,e,n,o){let i=O(t,"div",n.box,o);i.className=`docx-paragraph-border docx-paragraph-border-${n.side}`,i.setAttribute("aria-hidden","true");let r=(n.box.x-e.box.x)*o,a=(n.box.y-e.box.y)*o,s=n.side==="left"||n.side==="right"||n.side==="bar",l=(s?n.box.width:n.box.height)*o,c=pe(n.edge.val)?l:Math.max(1,l);i.style.left=`${n.side==="right"?r-(c-l):r}px`,i.style.top=`${n.side==="bottom"?a-(c-l):a}px`,s?i.style.width=`${c}px`:i.style.height=`${c}px`;let p=n.edge.color&&Y.test(n.edge.color)?n.edge.color:"000000";return i.style.backgroundColor=`#${p}`,W(i,n.edge.val,p,s,c,o),i}function Xn(t,e,n,o){let i=o.scale,r=O(t,"div",e.box,i);if(r.className="docx-table-cell",r.style.left=`${(e.box.x-n.x)*i}px`,r.style.top=`${(e.box.y-n.y)*i}px`,r.style.boxSizing="border-box",r.style.overflow="visible",r.dataset.cellId=e.id,r.dataset.gridColumn=String(e.gridColumn),r.dataset.gridSpan=String(e.gridSpan),e.rowSpan&&e.rowSpan>1&&(r.dataset.rowSpan=String(e.rowSpan)),e.paintInert||e.vMergeContinue)return r.dataset.vMergeContinue="true",r.style.border="none",r.style.backgroundColor="transparent",Me(r,e,r,void 0,[]),r;r.style.border="none";let a=Pn(t,r,e.borders,i);if(e.shading&&Y.test(e.shading)&&(r.style.backgroundColor=`#${e.shading}`),e.revisionShading&&o.revisionMarkup){let d=o.revisionMarkup.cells[e.revisionShading];if(r.dataset.revisionCell=e.revisionShading,d!=="none"){let c=e.revisionShadingAuthor??"";r.style.backgroundColor=d==="byAuthor"?o.revisionStyles?.styles.get(c)?.color??A(o.revisionCellStyles?.authorSlots.get(c)??0):`var(--doc-revision-color-${d})`;}}let s=Tn(t,e,i,r),l=[];for(let d of e.blocks){let c=d.kind==="table"?K(t,d,o):z(t,d,o);c.style.left=`${(d.box.x-e.box.x)*i}px`,c.style.top=`${(d.box.y-e.box.y)*i}px`,s.append(c),l.push(c);}return Me(r,e,s,a,l),r}function On(t,e,n,o){let i=o.scale,r=O(t,"div",e.box,i);r.className="docx-table-row",Mn(r,e,!!o.revisionMarkup),r.dataset.rowId=e.id,e.isHeaderRepeat&&(r.dataset.headerRepeat="true"),r.style.left=`${(e.box.x-n.box.x)*i}px`,r.style.top=`${(e.box.y-n.box.y)*i}px`,r.style.overflow="visible";for(let a of e.cells)r.append(Xn(t,a,e.box,o));return r}function K(t,e,n,o){let i=o&&Ct(o,e,{scale:n.scale,showParagraphMarks:n.showParagraphMarks===true,row:l=>On(t,l,e,n),cell:(l,d)=>Xn(t,l,d,n),block:(l,d)=>l.kind==="table"?K(t,l,n,d):z(t,l,n),gapOf:(l,d)=>Wn(l,d,()=>0)});if(i)return i;let r=n.scale,a=O(t,"div",e.box,r);a.className="docx-table-fragment layout-table",a.dataset.tableId=e.tableId,a.dataset.fragmentIndex=String(e.fragmentIndex),a.style.overflow="visible";let s=new Map;for(let l of e.rows){let d=On(t,l,e,n);s.set(l,d),a.append(d);}return At(a,e,s),a}function Sr(t,e,n,o,i){let r={...n,paintInstance:`p${e.index}`,tabLeaderOriginXPt:e.contentBox.x-e.box.x},a=O(t,"div",e.box,r.scale);if(a.className="docx-page",Nt(a),a.dataset.pageIndex=String(e.index),r.ariaHidden&&(a.setAttribute("aria-hidden","true"),a.setAttribute("role","presentation")),a.dataset.materialized=String(o),!o)return a;let s=Object.freeze({x:-(e.contentBox.x-e.box.x),y:-(e.contentBox.y-e.box.y),width:e.box.width,height:e.box.height}),l=e.pageBorders?Ln(t,e.pageBorders,r.scale):null;l&&e.pageBorders&&(l.dataset.docxZOrder=e.pageBorders.zOrder),l&&e.pageBorders?.zOrder==="back"&&a.append(l);let d=new Map,c=tn(t,a,e,{chrome:r,paintFragment:(u,f)=>{let g=d.get(f);return g||(g={...r,inertLinks:true,tabLeaderOriginXPt:f},d.set(f,g)),u.kind==="table"?K(t,u,g):z(t,u,g)},appendDrawings:(u,f,g,b,R,m)=>Kn(t,u,f,r,g,b,R,m)});Cn(t,a,e,r,s,"behind");let p=t.createElement("div");p.className="docx-page-content",p.style.position="absolute",p.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,p.style.top=`${(e.contentBox.y-e.box.y)*r.scale}px`,p.style.width=`${e.contentBox.width*r.scale}px`,p.style.height=`${e.contentBox.height*r.scale}px`,r.activeHeaderFooterRId&&p.setAttribute("contenteditable","false");for(let u of e.columnSeparators??[]){let f=t.createElement("div");f.className="docx-column-separator",f.setAttribute("contenteditable","false"),f.style.position="absolute",f.style.left=`${u.x*r.scale}px`,f.style.top=`${u.y*r.scale}px`,f.style.width=`${u.width*r.scale}px`,f.style.height=`${u.height*r.scale}px`,f.style.backgroundColor="currentColor",f.style.pointerEvents="none",p.append(f);}let y=i?new Map:null;for(let u of e.fragments){let f=u.kind==="table"?K(t,u,r):z(t,u,r);y?.set(u,f),p.append(f);}i&&y&&(i.content=p,i.blocks=y),a.append(p),Cn(t,a,e,r,s,"inFront"),l&&e.pageBorders?.zOrder==="front"&&a.append(l),_t(t,a,e,r,z,K);for(let u of ["header","footer"]){if(e[u]||e.parityBlank)continue;let f=t.createElement("div");f.className="docx-hf docx-hf--placeholder",f.dataset.docxHf=u,f.setAttribute("contenteditable","false");let g=u==="header"?e.contentBox.y-e.box.y:e.box.y+e.box.height-(e.contentBox.y+e.contentBox.height),b=Math.min(g,wr);if(b<=0)continue;let R=Math.max(0,Math.min(kr,g-b)),m=u==="header"?R:e.box.height-R-b;f.style.position="absolute",f.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,f.style.top=`${m*r.scale}px`,f.style.width=`${e.contentBox.width*r.scale}px`,f.style.height=`${b*r.scale}px`,a.append(f);}for(let u of c)a.append(u);zt(t,a,e,r);let h=Xt(t,e,r.scale,r.changeBars,r.changeBarsToggle,r.revisionMarkup,r.facingPages,r.revisionStyles);return h&&a.append(h),a}var wr=30,kr=36,Xe=new WeakMap;function Va(t){Xe.delete(t);}function Er(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Lr(t,e){let n=Object.keys(t);if(n.length!==Object.keys(e).length)return false;for(let o of n){let i=t[o],r=e[o];if(i!==r)return false}return true}function Pr(t,e){if(t.length!==e.length)return false;for(let n=0;n<t.length;n+=1)if(t[n]!==e[n])return false;return true}function Mr(t,e){if(t===e)return false;let n=new Set([...Object.keys(t),...Object.keys(e)]);for(let o of n){if(o==="fragments"||o==="pageFieldSource")continue;let i=t[o],r=e[o];if(i!==r&&!(Array.isArray(i)&&Array.isArray(r)&&Pr(i,r))&&!(typeof i=="object"&&typeof r=="object"&&i!==null&&r!==null&&!Array.isArray(i)&&!Array.isArray(r)&&Lr(i,r))&&!Et(i,r,Tr))return false}return true}var Nn="docx-column-separator",Tr=2e4;function Ar(t,e,n,o){let i=e.content,r=e.blocks;if(!i||!r||i.parentElement!==e.element)return null;let a={...o,paintInstance:`p${n.index}`,tabLeaderOriginXPt:n.contentBox.x-n.box.x},s=new Map,l=[];for(let y of n.fragments){let h=r.get(y)??(y.kind==="table"?K(t,y,a,$t(r,y)):z(t,y,a));s.set(y,h),l.push(h);}let d=new Set(l),c=i.firstChild;for(;c;){let y=c.nextSibling,h=c;!d.has(h)&&h.classList?.contains(Nn)!==true&&c.remove(),c=y;}let p=i.firstChild;for(;p&&p.classList?.contains(Nn);)p=p.nextSibling;for(let y of l){if(y===p){p=p.nextSibling;continue}i.insertBefore(y,p);}return Vt(t,e.element,n,o.scale,o.changeBars,o.changeBarsToggle,o.revisionMarkup,o.facingPages,o.revisionStyles),{record:n,materialized:true,element:e.element,content:i,blocks:s}}function $r(t,e,n,o){let i=t.element;return !t.materialized&&Er(t.record.box,e.box)&&i.style.left===`${e.box.x*n}px`&&i.style.top===`${e.box.y*n}px`&&i.style.width===`${e.box.width*n}px`&&i.style.height===`${e.box.height*n}px`&&i.getAttribute("aria-hidden")===(o?"true":null)}function Cr(t,e,n={}){Hr(t,e,n);}function Hr(t,e,n,o){t.classList.toggle("docx-show-paragraph-marks",n.showParagraphMarks??false);let i=n.contentControlChrome,r=i?`${i.showAll===true?"1":"0"}:${i.activeIds?[...i.activeIds].sort().join(","):""}:${i.checkedIds?[...i.checkedIds].sort().join(","):""}:${i.tocControlIds?[...i.tocControlIds].sort().join(","):""}:${i.suppressedIds?[...i.suppressedIds].sort().join(","):""}:${i.readOnly===true?"ro":""}`:"",a=n.drawingStrings??ze,s=n.imageUrlPort!==void 0?cn(t,n.imageUrlPort):null,l=i?.additionalBoundaries?i.additionalBoundaries.flatMap(S=>S.fragments.map(v=>`${S.id}:${v.pageIndex}:${v.box.x}:${v.box.y}:${v.box.width}:${v.box.height}`)).sort().join(","):"",d=n.readOnlyParagraphIds?[...n.readOnlyParagraphIds].sort().join(","):"",c=n.emptyTocPlaceholderIds?[...n.emptyTocPlaceholderIds].sort().join(","):"",p=i?.tocControlIds?[...i.tocControlIds].sort().join(","):"",y=we(n.revisionStyles??(n.revisionMarkup?"author":void 0),e,o),h=n.revisionMarkup&&Object.values(n.revisionMarkup.cells).includes("byAuthor")?y??we("author",e,o):null,u={scale:n.scale??96/72,ariaHidden:n.ariaHidden??true,drawingStrings:a,urlRegistry:s,...n.fontAlias?{fontAlias:n.fontAlias}:{},...n.readOnlyParagraphIds?{readOnlyParagraphIds:n.readOnlyParagraphIds}:{},...n.emptyTocPlaceholderIds?{emptyTocPlaceholderIds:n.emptyTocPlaceholderIds}:{},...n.defaultFontFamily?{defaultFontFamily:n.defaultFontFamily}:{},...n.fieldShading?{fieldShading:n.fieldShading}:{},showParagraphMarks:n.showParagraphMarks??false,changeBars:n.changeBars??"all-markup",changeBarsToggle:n.changeBarsToggle??false,...n.shadeFormFields!==void 0?{shadeFormFields:n.shadeFormFields}:{},...y?{revisionStyles:y}:{},...h?{revisionCellStyles:h}:{},...n.revisionMarkup?{revisionMarkup:n.revisionMarkup}:{},facingPages:n.facingPages,revisionKindColors:n.revisionStyles==="kind",...n.imageUrlPort?{imageUrlPort:n.imageUrlPort}:{},...n.activeHeaderFooterRId?{activeHeaderFooterRId:n.activeHeaderFooterRId}:{},...n.activeHeaderFooterPageIndex!==void 0?{activeHeaderFooterPageIndex:n.activeHeaderFooterPageIndex}:{},...i?{contentControlChrome:i}:{}},f=t.ownerDocument,g=`${u.scale}|${u.ariaHidden}|${u.fontAlias?ar(u.fontAlias):""}|${u.defaultFontFamily??""}|cc:${r}:${l}|toc:${p}|ro:${d}|tocEmpty:${c}|${n.imageUrlPort?"url":""}|${Rn(a)}|markup:${JSON.stringify(n.revisionMarkup)}|facing:${n.facingPages}|rev:${Se(y)}|cells:${Se(h)}|marks:${n.showParagraphMarks??false}|bars:${u.changeBars}:${u.changeBarsToggle}`,b=Xe.get(t),R=b?.parameters===g,m=R?new Map(b.pages.map(S=>[S.record,S])):null,P=b?new Map(b.pages.map(S=>[S.record.index,S])):null,B=e.pages.map(S=>{let v=n.materialize?.has(S.index)??true,x=m?.get(S);if(x&&x.materialized===v)return x;let w=P?.get(S.index);if(!v&&w&&$r(w,S,u.scale,u.ariaHidden))return {record:S,materialized:false,element:w.element};if(R&&v&&w?.materialized&&Mr(w.record,S)){let E=Ar(f,w,S,u);if(E)return E}let $={},k=Sr(f,S,u,v,$);return {record:S,materialized:v,element:k,...$.content?{content:$.content}:{},...$.blocks?{blocks:$.blocks}:{}}});Xe.set(t,{parameters:g,pages:B}),t.dataset.revision=String(e.revision),s&&s.reconcile(xn(e),vn(e));let D=new Set(B.map(S=>S.element)),F=t.firstChild;for(;F;){let S=F.nextSibling;D.has(F)||F.remove(),F=S;}let U=t.firstChild;for(let S of B){if(S.element===U){U=U.nextSibling;continue}t.insertBefore(S.element,U);}qt(B,u);}function Br(t,e,n,o){let i=t.ownerDocument,r=o.scale,a=[];for(let s of n){let l=e.pages[s.pageIndex];if(!l)continue;let d=i.createElement("div");d.className=s.className??o.className??"docx-cell-selection-rect",d.style.position="absolute";let c=o.pageOffsetX?.get(s.pageIndex)??0;d.style.left=`${(l.contentBox.x+s.x+c)*r}px`,d.style.top=`${(l.contentBox.y+s.y)*r}px`,d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,s.reviewAuthor&&(d.dataset.reviewAuthor=s.reviewAuthor.author,d.dataset.reviewAuthorSlot=String(s.reviewAuthor.slot%T),d.style.setProperty("--doc-review-author-current",s.reviewAuthor.color)),s.activeBackground!==void 0&&(d.style.backgroundColor=s.activeBackground,d.style.boxShadow="none"),a.push(d);}t.replaceChildren(...a);}
2
- exports.a=A;exports.b=Rt;exports.c=zr;exports.d=oo;exports.e=Kr;exports.f=He;exports.g=Qi;exports.h=Rn;exports.i=ze;exports.j=ea;exports.k=Ge;exports.l=dr;exports.m=Va;exports.n=Cr;exports.o=Hr;exports.p=Br;