@docx-editor.dev/core 2.9.0 → 2.9.1

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.
@@ -1,18 +1,18 @@
1
- 'use strict';var chunkXMHWBL3K_cjs=require('./chunk-XMHWBL3K.cjs'),chunkIMMAG4QP_cjs=require('./chunk-IMMAG4QP.cjs');var hx=Symbol("validated-resolved-font"),Ql=64*1024*1024,ed=256,td=128*1024*1024,Xn=class extends Error{name="FontResolutionError";request;code;limit;actual;diagnostic;expectedHash;actualHash;constructor(t,n,r={}){super(`Font resolution failed (${t}) for ${Yr(n)}`),this.code=t,this.request=Kr(n),this.limit=r.limit,this.actual=r.actual,this.diagnostic=r.diagnostic,this.expectedHash=r.expectedHash,this.actualHash=r.actualHash;}},Zf=e=>{if(e.family.trim().length===0)throw new TypeError("Font family must not be empty");if(!Number.isInteger(e.weight)||e.weight<1||e.weight>1e3)throw new RangeError("Font weight must be an integer from 1 through 1000");if(e.style!=="normal"&&e.style!=="italic")throw new TypeError("Font style must be normal or italic")},Kr=e=>(Zf(e),Object.freeze({family:e.family,weight:e.weight,style:e.style})),Yr=e=>(Zf(e),JSON.stringify([e.family,e.weight,e.style])),nd=class{[hx]=true;id;identity;request;family;byteLength;hash;faceIndex;substitution;constructor(t,n){if(t.id.length===0)throw new TypeError("Resolved font id must not be empty");if(!Number.isInteger(t.faceIndex)||t.faceIndex<0)throw new RangeError("Font face index must be a non-negative integer");this.id=t.id,this.request=Kr(t.request),this.family=this.request.family,this.hash=t.hash,this.faceIndex=t.faceIndex,this.identity=`${this.hash}#${this.faceIndex}`,this.byteLength=t.byteLength,this.substitution=null,n&&(this.substitution=Object.freeze({requested:Kr(n.requested),resolved:Kr(n.resolved)})),Object.freeze(this);}get bytes(){return xi(this).slice()}},Jf=new WeakSet,Qf=new WeakMap,ep=new WeakMap,tp=(e,t,n,r)=>{let o=new nd(e,r);return Qf.set(o,t),ep.set(o,n),Jf.add(o),o},xi=e=>{qr(e);let t=Qf.get(e);if(!t)throw new TypeError("Resolved font has no owned byte capability");return t},Si=e=>{qr(e);let t=ep.get(e);if(!t)throw new TypeError("Resolved font has no admitted table metadata");return t},qr=e=>{if(typeof e!="object"||e===null||!Jf.has(e))throw new TypeError("Shaping requires a validated resolved font")};var np=(e,t)=>e[t]<<8|e[t+1],Ur=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,qf=(e,t)=>{if(t>e.byteLength-12)return {valid:false,diagnostic:"truncated sfnt header"};let n=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]);if(!(e[t]===0&&e[t+1]===1&&e[t+2]===0&&e[t+3]===0)&&n!=="OTTO"&&n!=="true"&&n!=="typ1")return {valid:false,diagnostic:"unsupported sfnt signature"};let o=np(e,t+4),a=t+12+o*16;if(!Number.isSafeInteger(a)||a>e.byteLength)return {valid:false,diagnostic:"truncated sfnt table directory"};for(let i=0;i<o;i+=1){let s=t+12+i*16,l=Ur(e,s+8),d=Ur(e,s+12);if(l>e.byteLength||d>e.byteLength-l)return {valid:false,diagnostic:"sfnt table range exceeds font bytes"}}return {valid:true}},yx=(e,t)=>{let r=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?Ur(e,12+t*4):0,o=np(e,r+4),a=new Set;for(let i=0;i<o;i+=1){let s=r+12+i*16;a.add(String.fromCharCode(e[s],e[s+1],e[s+2],e[s+3]));}return Object.freeze(a)},Ri=(e,t)=>{if(!Number.isSafeInteger(t)||t<0)return {valid:false,diagnostic:"invalid font face index"};if(e.byteLength<12)return {valid:false,diagnostic:"truncated sfnt header"};if(String.fromCharCode(e[0],e[1],e[2],e[3])!=="ttcf")return t!==0?{valid:false,diagnostic:"standalone sfnt has only face index zero"}:qf(e,0);let r=Ur(e,4);if(r!==65536&&r!==131072)return {valid:false,diagnostic:"unsupported TTC version"};let o=Ur(e,8),a=12+o*4;if(o===0||!Number.isSafeInteger(a)||a>e.byteLength||t>=o)return {valid:false,diagnostic:"invalid TTC face directory"};let i=Ur(e,12+t*4);return i<a?{valid:false,diagnostic:"invalid TTC face offset"}:qf(e,i)},bx=(e,t,n,r)=>{if(e.availability==="forbidden")return {kind:"forbidden"};if(e.bytes.byteLength>t)return {kind:"overLimit",actual:e.bytes.byteLength};let o=e.bytes.slice();r?.onOwnedByteCopy?.(),r?.onHash?.();let a=chunkIMMAG4QP_cjs.a(o);if(e.hash!==a)return {kind:"hashMismatch",expectedHash:e.hash,actualHash:a};let i=Ri(o,e.faceIndex);if(!i.valid)return {kind:"malformed",diagnostic:i.diagnostic};r?.onTableScan?.();let s=yx(o,e.faceIndex);try{let d=n(o,e.faceIndex);if(!d.valid)return {kind:"malformed",diagnostic:d.diagnostic}}catch(d){return {kind:"malformed",diagnostic:d instanceof Error?d.message:"font validator threw"}}let l={kind:"resolved",font:tp({...e,byteLength:o.byteLength},o,s)};return r?.onAdmission?.(),l},xx=e=>{if(!Number.isSafeInteger(e.epoch)||e.epoch<0)throw new RangeError("Font resource epoch must be a non-negative safe integer");if(!Number.isSafeInteger(e.maxFontBytes)||e.maxFontBytes<=0||e.maxFontBytes>Ql)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${Ql}`);if(typeof e.validateFont!="function")throw new TypeError("Font snapshot requires a validator");if(e.resources.length>ed)throw new RangeError(`Font source count must not exceed ${ed}`);let t=0;for(let l of e.resources){if(l.bytes.byteLength>td-t)throw new RangeError(`Aggregate font bytes must not exceed ${td}`);t+=l.bytes.byteLength;}let n=e.epoch,r=e.maxFontBytes,o=e.validateFont,a=new Map;for(let l of e.resources){let d=Yr(l.request);if(a.has(d))throw new TypeError(`Duplicate font resource request: ${d}`);a.set(d,bx(l,r,o,e.instrumentation));}let i=new Map;for(let l of e.substitutions??[]){let d=Yr(l.from);if(i.has(d))throw new TypeError(`Duplicate font substitution request: ${d}`);i.set(d,Kr(l.to));}return Object.freeze({epoch:n,resolve:l=>{let d=Kr(l),c=Yr(d),u=i.get(c),f=u??d,p=a.get(Yr(f));return p?p.kind==="forbidden"?new Xn("forbidden",d):p.kind==="overLimit"?new Xn("overLimit",d,{limit:r,actual:p.actual}):p.kind==="malformed"?new Xn("malformed",d,{diagnostic:p.diagnostic}):p.kind==="hashMismatch"?new Xn("hashMismatch",d,{expectedHash:p.expectedHash,actualHash:p.actualHash}):u?tp({request:p.font.request,id:p.font.id,hash:p.font.hash,faceIndex:p.font.faceIndex,byteLength:p.font.byteLength},xi(p.font),Si(p.font),{requested:d,resolved:u}):p.font:new Xn("missing",d)}})};var rn=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},wi=(e,t)=>{if(e.trim().length===0||/[\u0000-\u001f\u007f]/.test(e))throw new TypeError(`${t} must be non-blank and contain no control characters`)},Sx=(e,t)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${t} must be a four-byte ASCII tag`)},rp=(e,t,n)=>{let r=Object.entries(e).sort(([a],[i])=>a<i?-1:a>i?1:0),o=Object.create(null);for(let[a,i]of r){if(Sx(a,`${t} key`),!Number.isFinite(i)||n&&(!Number.isSafeInteger(i)||i<0))throw new RangeError(`${t} value must be ${n?"a non-negative safe integer":"finite"}`);if(n&&i>4294967295)throw new RangeError(`${t} value must fit an unsigned 32-bit integer`);o[a]=i;}return Object.freeze(o)},rd=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),Rx=e=>e?Object.freeze({requested:rd(e.requested),resolved:rd(e.resolved)}):void 0,op=new WeakSet,ad=e=>{if(qr(e),!op.has(e)){if(e.identity!==`${e.hash}#${e.faceIndex}`)throw new TypeError("Resolved font identity does not match hash and face index");if(!Number.isSafeInteger(e.byteLength)||e.byteLength<0)throw new TypeError("Resolved font byte length is invalid");op.add(e);}},od=e=>(ad(e),e),Ii=e=>(ad(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:rd(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:Rx(e.substitution)??null})),mr=e=>{if(wi(e.shapingLibrary.name,"shaping library name"),wi(e.shapingLibrary.version,"shaping library version"),wi(e.unicodeDataVersion,"Unicode data version"),!/^\d+(?:\.\d+){0,3}(?:[-+][0-9A-Za-z.-]+)?$/.test(e.shapingLibrary.version))throw new TypeError("shaping library version must be a numeric version");if(!/^\d+(?:\.\d+){1,2}$/.test(e.unicodeDataVersion))throw new TypeError("Unicode data version must be a dotted numeric version");if(!/^[A-Z][a-z]{3}$/.test(e.script))throw new TypeError("script must be a four-letter ISO 15924 code");if(wi(e.language,"language"),!/^(?:und|[A-Za-z]{2,8})(?:-[A-Za-z0-9]{1,8})*$/.test(e.language))throw new TypeError("language must be a BCP 47 language tag");if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("direction must be ltr or rtl");if(!["none","NFC","NFD","NFKC","NFKD"].includes(e.normalization))throw new TypeError("invalid normalization policy");if(!["halfAwayFromZero","halfToEven","towardZero"].includes(e.roundingMode))throw new TypeError("invalid fixed-point rounding mode");if(!Number.isSafeInteger(e.fixedPointScale)||e.fixedPointScale<=0)throw new RangeError("fixed-point scale must be a positive safe integer");let t=od(e.font),n=e.fallbackOrder.map(od),r=new Set;for(let o of n){let a=JSON.stringify(Ii(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:t,variationAxes:rp(e.variationAxes,"variation axis",false),shapingLibrary:Object.freeze({name:e.shapingLibrary.name,version:e.shapingLibrary.version}),unicodeDataVersion:e.unicodeDataVersion,normalization:e.normalization,script:e.script,language:e.language,direction:e.direction,features:rp(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...n]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},ip=e=>{let t=mr(e);return Object.freeze({font:Ii(t.font),variationAxes:Object.freeze(Object.entries(t.variationAxes).map(n=>Object.freeze(n))),shapingLibrary:Object.freeze({name:t.shapingLibrary.name,version:t.shapingLibrary.version}),unicodeDataVersion:t.unicodeDataVersion,normalization:t.normalization,script:t.script,language:t.language,direction:t.direction,features:Object.freeze(Object.entries(t.features).map(n=>Object.freeze(n))),fallbackOrder:Object.freeze(t.fallbackOrder.map(Ii)),fixedPointScale:t.fixedPointScale,roundingMode:t.roundingMode})},id=e=>JSON.stringify(ip(e)),pr=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},Xt=e=>{try{return rn(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},ap=new WeakMap,Pi=e=>{let t=ap.get(e);if(t)return t;ad(e);let n=JSON.stringify({identity:e.identity,id:e.id,family:e.family,request:e.request,hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:e.substitution??null});return ap.set(e,n),n},vi=(e,t)=>{let n=mr(t);if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("Shaped run direction must be ltr or rtl");if(e.direction!==n.direction)throw new TypeError("Shaped run direction does not match shaping environment");if(pr(e.bidiLevel,"bidi level"),(e.bidiLevel&1)===1!=(e.direction==="rtl"))throw new TypeError("Shaped run direction does not match bidi level parity");let r=new Map,o=e.glyphs.map(l=>{pr(l.id,"glyph id"),pr(l.cluster,"glyph cluster");let d=r.get(l.outline);if(!d){if(!Number.isSafeInteger(l.outline.unitsPerEm)||l.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");d=Object.isFrozen(l.outline)?l.outline:Object.freeze({path:l.outline.path,unitsPerEm:l.outline.unitsPerEm}),r.set(l.outline,d);}return Object.freeze({id:l.id,cluster:l.cluster,originX:Xt(l.originX),originY:Xt(l.originY),advanceX:Xt(l.advanceX),advanceY:Xt(l.advanceY),offsetX:Xt(l.offsetX),offsetY:Xt(l.offsetY),outline:d})}),a=e.fontSpans.map(l=>{if(pr(l.glyphStart,"font span start"),pr(l.glyphEnd,"font span end"),l.glyphEnd<=l.glyphStart||l.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");l.fallbackIndex!==null&&pr(l.fallbackIndex,"fallback index");let d=od(l.font);if(l.fallbackIndex===null){if(Pi(d)!==Pi(n.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let c=n.fallbackOrder[l.fallbackIndex];if(!c)throw new RangeError("Shaped fallback index is outside fallback order");if(Pi(d)!==Pi(c))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...l,font:d})});for(let l=0;l<a.length;l+=1){let d=l===0?0:a[l-1].glyphEnd;if(a[l].glyphStart!==d)throw new RangeError("Font spans must cover glyphs contiguously")}if(o.length===0&&a.length!==0||o.length>0&&a.at(-1)?.glyphEnd!==o.length)throw new RangeError("Font spans must cover every glyph exactly once");let i=e.clusters.map(l=>{for(let[c,u]of [["cluster text start",l.textStart],["cluster text end",l.textEnd],["cluster glyph start",l.glyphStart],["cluster glyph end",l.glyphEnd],["cluster font span",l.fontSpan]])pr(u,c);if(l.textEnd<=l.textStart||l.textEnd>e.text.length||l.glyphEnd<=l.glyphStart||l.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let d=a[l.fontSpan];if(!d||l.glyphStart<d.glyphStart||l.glyphEnd>d.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...l,advance:Xt(l.advance),caretEdges:Object.freeze(l.caretEdges.map(Xt))})}),s=Object.freeze({ascent:Xt(e.metrics.ascent),descent:Xt(e.metrics.descent),lineGap:Xt(e.metrics.lineGap)});return Object.freeze({text:e.text,direction:e.direction,bidiLevel:e.bidiLevel,glyphs:Object.freeze(o),clusters:Object.freeze(i),fontSpans:Object.freeze(a),metrics:s})},wx=(e,t)=>{let n=vi(e,t);return Object.freeze({text:n.text,direction:n.direction,script:t.script,language:t.language,bidiLevel:n.bidiLevel,glyphs:n.glyphs,clusters:n.clusters,fontSpans:Object.freeze(n.fontSpans.map(r=>Object.freeze({glyphStart:r.glyphStart,glyphEnd:r.glyphEnd,fallbackIndex:r.fallbackIndex,font:Ii(r.font)}))),metrics:n.metrics})};function Jr(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 sp(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>Jr(t))}function vx(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 lp(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function dp(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 and 22.3. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${sp(e instanceof Error?e.message:String(e))})`}function cp(e){let t=sp(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 up(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var ra=Object.freeze({name:"HarfBuzz",version:"14.3.0"}),oa=null,ta=null;function Tx(){return oa?Promise.resolve():ta||(ta=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==ra.version)throw new Ee("shapingLibraryMismatch",{diagnostic:up(ra.version,t)});oa=e;}).catch(e=>{throw ta=null,e instanceof Ee?e:lp(e)?new Ee("unsupportedRuntime",{diagnostic:dp(e),cause:e}):new Ee("wasmUnavailable",{diagnostic:cp(e),cause:e})}),ta)}function kx(){return oa!==null}function Ox(){if(!oa)throw new Ee("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return oa}var Ee=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;}},Cx=16*1024*1024,Bx=1e6,Lx=1e6,Fx=1e6,Ex=4,Mx=512,Nx=1024*1024,Ax=16*1024*1024,Dx=32*1024*1024,_x=64*1024*1024,zx=64*1024*1024,Hx=1e6,jx=1e6,Gx=1e6,Wx=64,$x=4096,Xx=4*1024*1024,Vx=64*1024*1024,Yx=64*1024*1024,Kx=256*1024*1024,Ux=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),fp=["cmap","head","hhea","hmtx","maxp"],qx=(e,t)=>e[t]<<8|e[t+1],Zx=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,Jx=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?Zx(e,12+t*4):0,Qx=(e,t)=>{let n=Jx(e,t),r=qx(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},eS=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),tS=(e,t)=>{let n=Ri(e,t);if(!n.valid)return n;let r=Qx(e,t);for(let o of fp)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},nS=tS,on=(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},rS=(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 s=r?-a:a,l=Number(s);if(!Number.isSafeInteger(l))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return l},pp=(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");return rn(rS(BigInt(e)*BigInt(n),BigInt(t),r))},oS=(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=>pp(i,a,o,r)},aS=(e,t)=>{if(t.length===0)return [];let n=[...new Set(t.map(i=>i.cluster))].sort((i,s)=>i-s),r=new Map;for(let i=0;i<n.length;i+=1)r.set(n[i],n[i+1]??e.length);let o=[],a=0;for(;a<t.length;){let i=t[a].cluster,s=a+1;for(;s<t.length&&t[s].cluster===i;)s+=1;let l=t.slice(a,s).reduce((c,u)=>c+u.advanceX,0),d=rn(l);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:s,advance:d,caretEdges:Object.freeze([rn(0),d]),fontSpan:0}),a=s;}return o},an=64,wn=8,gr=8,iS=32,mp=an+2*wn,sS=an+wn+gr,lS=an+wn+gr,dS=an+wn+gr,gp=an+8*wn,hp=an+8*gr+wn,cS=an+6*gr+wn,uS=an+3*gr+2*wn,fS=an+3*gr,aa=e=>an+e.length*Uint16Array.BYTES_PER_ELEMENT,ld=e=>dS+aa(e),na=e=>iS+e*wn,pS=(e,t)=>mp+aa(e)+sS+ld(t),mS=e=>gp+aa(e)+na(e.length)+e.length*hp,gS=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return gp+aa(e.text)+na(e.glyphs.length)+e.glyphs.length*hp+na(e.clusters.length)+e.clusters.length*cS+e.clusters.reduce((n,r)=>n+na(r.caretEdges.length),0)+na(e.fontSpans.length)+e.fontSpans.length*uS+fS+[...t].reduce((n,r)=>n+ld(r.path),0)},hS=(e,t)=>mp+aa(e)+lS+t,sd=class{#t;#s;#u;#f;#p;#y;#b;#m;#g;#l;#h;#d;#e;#o=new Map;#a=new Map;#n=new Map;#i=0;#r=0;#c;constructor(t,n){this.#t=t,this.#s=on(n.maxFontBytes??Cx,"maximum font bytes",zx),this.#u=on(n.maxInputUtf16??Bx,"maximum input UTF-16 code units",Hx),this.#f=on(n.maxCodepoints??Lx,"maximum input code points",jx),this.#p=on(n.maxGlyphs??Fx,"maximum shaped glyphs",Gx),this.#y=on(n.maxCachedFaces??Ex,"maximum cached faces",Wx),this.#b=on(n.maxCachedShapes??Mx,"maximum cached shape results",$x),this.#m=on(n.maxOutlineBytes??Nx,"maximum outline bytes",Xx),this.#g=on(n.maxCachedOutlineBytes??Ax,"maximum cached outline bytes",Vx),this.#l=on(n.maxShapedRunBytes??Dx,"maximum shaped run bytes",Yx),this.#h=on(n.maxCachedShapeBytes??_x,"maximum cached shape bytes",Kx),this.#d=n.instrumentation?.onFaceCacheEvent,this.#e=n.instrumentation,this.#c=new this.#t.Buffer;}dispose(){this.#o.clear(),this.#a.clear(),this.#n.clear(),this.#i=0,this.#r=0,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#c=void 0;}#S(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=Si(t);for(let c of fp)if(!o.has(c))throw new Ee("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#t.Blob(eS(n)),i=new this.#t.Face(a,t.faceIndex),s=new this.#t.Font(i),l=s.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(l.ascender)||!Number.isSafeInteger(l.descender)||!Number.isSafeInteger(l.lineGap))throw new Ee("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});if(s.setScale(i.upem,i.upem),this.#o.size>=this.#y){let c=this.#o.keys().next().value;c!==void 0&&(this.#o.delete(c),this.#d?.(Object.freeze({kind:"evicted",identity:c})));}let d={identity:t.identity,blob:a,face:i,font:s,unitsPerEm:i.upem};return this.#o.set(t.identity,d),this.#d?.(Object.freeze({kind:"created",identity:t.identity})),d}#R(t,n,r){let o=JSON.stringify([t.identity,t.unitsPerEm,r,n]),a=this.#a.get(o);if(a)return this.#a.delete(o),this.#a.set(o,a),this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#i})),a.outline;this.#e?.onOutlinePathCall?.();let i=t.font.glyphToPath(n),s=ld(i);if(s>this.#m)throw new Ee("outlineOverLimit",{limit:this.#m,actual:s});let l=Object.freeze({path:i,unitsPerEm:t.unitsPerEm}),d=pS(o,i);if(d>this.#g)return this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#i})),l;for(;this.#i+d>this.#g;){let c=this.#a.keys().next().value;if(c===void 0)break;let u=this.#a.get(c);this.#a.delete(c),this.#i-=u.bytes,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#i}));}return this.#a.set(o,{outline:l,bytes:d}),this.#i+=d,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#i})),l}#x(t){if(t.length>this.#u)throw new Ee("textOverLimit",{limit:this.#u,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.#f)throw new Ee("codepointsOverLimit",{limit:this.#f,actual:n})}}shape(t){if(!this.#c)throw new Ee("disposed");if(qr(t.environment.font),t.environment.font.byteLength>this.#s)throw new Ee("fontOverLimit",{limit:this.#s,actual:t.environment.font.byteLength});this.#x(t.text);let n=mS(t.text);if(n>this.#l)throw new Ee("shapedRunOverLimit",{limit:this.#l,actual:n});let r=mr(t.environment),o=JSON.stringify([t.text,t.fontSizeHalfPoints,t.bidiLevel,id(r)]),a=this.#n.get(o);if(a)return this.#n.delete(o),this.#n.set(o,a),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==ra.name||r.shapingLibrary.version!==ra.version)throw new Ee("shapingLibraryMismatch");if(r.normalization!=="none")throw new Ee("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new Ee("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new Ee("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new Ee("unsupportedFallback");let i=xi(r.font),s=Si(r.font);if([...Ux].some(d=>s.has(d)))throw new Ee("unsupportedColorFont");let l=t.text;this.#x(l);try{let d=this.#S(r.font,i),{face:c,font:u}=d,f=this.#c;f.reset(),f.addText(l),f.setDirection(r.direction==="rtl"?this.#t.Direction.RTL:this.#t.Direction.LTR),f.setScript(r.script),f.setLanguage(r.language),f.setClusterLevel(this.#t.ClusterLevel.MONOTONE_CHARACTERS);let p=Object.entries(r.features).map(([C,k])=>new this.#t.Feature(C,k));this.#e?.onShapeCall?.(),this.#t.shape(u,f,p);let m=f.getGlyphInfosAndPositions();if(m.length>this.#p)throw new Ee("glyphOverLimit",{limit:this.#p,actual:m.length});let g=oS(c.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),h=rn(0),b=rn(0),x=new Map,v=JSON.stringify(Object.entries(r.variationAxes).sort(([C],[k])=>C.localeCompare(k))),w=m.map(C=>{let k=g(C.xAdvance??0),H=g(C.yAdvance??0),D={id:C.codepoint,cluster:C.cluster,originX:h,originY:b,advanceX:k,advanceY:H,offsetX:g(C.xOffset??0),offsetY:g(C.yOffset??0),outline:x.get(C.codepoint)??(()=>{let y=this.#R(d,C.codepoint,v);return x.set(C.codepoint,y),y})()};return h=rn(h+k),b=rn(b+H),D}),O=u.hExtents(),E=vi({text:l,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:w,clusters:aS(l,w),fontSpans:w.length===0?[]:[{glyphStart:0,glyphEnd:w.length,font:r.font,fallbackIndex:null}],metrics:{ascent:g(O.ascender),descent:g(-O.descender),lineGap:g(O.lineGap)}},r),P=gS(E);if(P>this.#l)throw new Ee("shapedRunOverLimit",{limit:this.#l,actual:P});let L=hS(o,P);if(L>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),E;for(;this.#n.size>=this.#b||this.#r+L>this.#h;){let C=this.#n.keys().next().value;if(C===void 0)break;let k=this.#n.get(C);this.#n.delete(C),this.#r-=k.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:E,bytes:L}),this.#r+=L,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),E}catch(d){throw d instanceof Ee?d:new Ee("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},yS=(e={})=>new sd(Ox(),e);var te=(e,t,n)=>e>=t&&e<=n,Ti=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(t){super(`Unsupported Unicode script at U+${t.toString(16).toUpperCase()}`),this.codePoint=t;}},bS=e=>{if(te(e,65313,65338)||te(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(te(e,1424,1535)||te(e,64285,64335))return {slot:"cs",script:"Hebr"};if(te(e,1536,1791)||te(e,1872,1919)||te(e,2160,2207)||te(e,2208,2303)||te(e,64336,65023)||te(e,65136,65279)||te(e,126464,126719))return {slot:"cs",script:"Arab"};if(te(e,4352,4607)||te(e,11904,12351)||te(e,12352,12543)||te(e,12544,12687)||te(e,12784,12799)||te(e,13312,19903)||te(e,19968,40959)||te(e,44032,55215)||te(e,63744,64255)||te(e,65382,65437)||te(e,65440,65500)||te(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(te(e,2304,2431)||te(e,43232,43263))return {slot:"cs",script:"Deva"};if(te(e,2432,2559))return {slot:"cs",script:"Beng"};if(te(e,880,1023)||te(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(te(e,1024,1327)||te(e,7296,7311)||te(e,11744,11775)||te(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(te(e,3584,3711))return {slot:"cs",script:"Thai"};if(te(e,6016,6143)||te(e,6624,6655))return {slot:"cs",script:"Khmr"};if(te(e,768,879)||te(e,6832,6911)||te(e,7616,7679)||te(e,8400,8447)||te(e,8192,8303)||te(e,65056,65071)||e<=47||te(e,58,64)||te(e,91,96)||te(e,123,191)||e===5760||te(e,8192,11263)||te(e,65024,65039)||te(e,65280,65381)||te(e,65438,65439)||te(e,65501,65535)||te(e,126976,129791)||te(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(te(e,192,687)||te(e,7424,7551)||te(e,7552,7615)||te(e,7680,7935)||te(e,11360,11391)||te(e,42784,43007)||te(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new Ti(e)};function xS(e,t,n){let r=[];for(let s=0;s<e.length;){let l=e.codePointAt(s),d=s+(l>65535?2:1);r.push({from:s,to:d,classified:bS(l)}),s=d;}let o=null;for(let s of r)s.classified?o=s.classified:o&&(s.classified=o);o=null;for(let s=r.length-1;s>=0;s-=1){let l=r[s];l.classified?o=l.classified:o&&(l.classified=o);}let a=[],i=r.every(({from:s})=>e.codePointAt(s)<=127)?"ascii":"hAnsi";for(let s of r){let l=n.levels[t+s.from]??0,d=(l&1)===1?"rtl":"ltr",c=s.classified??{slot:i,script:"Zyyy"},u=a.at(-1);u&&u.to===s.from&&u.bidiLevel===l&&u.slot===c.slot&&u.script===c.script?a[a.length-1]={...u,to:s.to}:a.push({from:s.from,to:s.to,direction:d,bidiLevel:l,script:c.script,slot:c.slot});}return a}var SS="und";function RS(){return typeof Intl.Segmenter=="function"}function wS(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function PS(){let e=new(wS())("und",{granularity:"grapheme"});return {segment(t){let n=[],r=0;for(let o of e.segment(t)){let a=o.index,i=a+o.segment.length;n.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return n}}}var ud=PS(),fd=ud,yp=0;function pd(){return yp}var Qr=null,hr=null,ki=null,ia=null;function Vt(e){if(Qr===e&&hr)return hr;if(ki===e&&ia){let n=ia;return ki=Qr,ia=hr,Qr=e,hr=n,n}let t=fd.segment(e);return ki=Qr,ia=hr,Qr=e,hr=t,t}function IS(e){fd=e,bp();}function vS(){fd=ud,bp();}function bp(){yp+=1,Qr=null,hr=null,ki=null,ia=null,dd=null,Oi=null,cd=0;}function TS(e){return Vt(e).length}var dd=null,Oi=null,cd=0;function kS(e){if(dd===e&&Oi)return {offsets:Oi,count:cd};let t=Vt(e),n=new Int32Array(e.length+1);for(let r of t)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)n[o]=r.index;return n[e.length]=t.length,dd=e,Oi=n,cd=t.length,{offsets:n,count:t.length}}function Ci(e,t){let n=Math.max(0,Math.min(t,e.length)),{offsets:r}=kS(e);return r[n]}function OS(e,t){let n=Vt(e);if(n.length===0)return 0;let r=Math.max(0,Math.min(t,n.length));return r>=n.length?e.length:n[r].utf16From}function md(e){let t=new Set([0,e.text.length]);for(let r of Vt(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 Bi(e,t){return md(e).includes(t)}function CS(e,t){return Bi(e,t)}function BS(e,t,n){return n>=t&&Bi(e,t)&&Bi(e,n)}function LS(e){let t=Vt(e.text);return md(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var hd="und";function wp(){return typeof Intl.Segmenter=="function"}function FS(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${hd})`);return e}function Pp(){let e=new(FS())(hd,{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 ES=/^[\p{L}\p{N}']$/u,MS=/^\s$/u;function xp(e){return ES.test(e)}function Sp(e){return MS.test(e)}function gd(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function Ip(e){let t=Vt(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(Sp(o.text)){let a=r+1;for(;a<t.length&&Sp(t[a].text);)a+=1;n.push(gd(t,r,a,false)),r=a;continue}if(xp(o.text)){let a=r+1;for(;a<t.length&&xp(t[a].text);)a+=1;n.push(gd(t,r,a,true)),r=a;continue}n.push(gd(t,r,r+1,false)),r+=1;}return n}function vp(){return {segment:Ip}}function Tp(e={}){let t=e.isIntlAvailable??wp,n=e.createIntlBoundary??Pp,r=e.createFallbackBoundary??vp;if(!t())return r();try{return n()}catch{return r()}}var Rp;function kp(){return Rp??=Tp(),Rp}function NS(e,t=kp()){return t.segment(e)}function AS(e,t){return t.map(n=>({graphemeFrom:Ci(e,n.utf16From),graphemeTo:Ci(e,n.utf16To),wordLike:n.wordLike}))}var Op={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},xd=Object.keys(Op),Cp=xd.filter(e=>Op[e]==="coarse-gate"),Li=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},eo=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},DS={resourceEpoch:Li,configEpoch:Li,extensionFingerprint:eo,shapingHash:eo,producerVersion:Li},_S=(e,t)=>{DS[t](e[t],t);},to=e=>{for(let t of xd)_S(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},zS=(e,t)=>{let n=to(e),r=to(t),o=xd.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},yd=e=>{let t=e.map(({key:n,fingerprint:r})=>(eo(n,"resource dependency key"),eo(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)},HS=e=>(Li(e.revision,"revision"),eo(e.dependencyFingerprint,"dependencyFingerprint"),eo(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:yd(e.resourceDependencies),...to(e)})),jS=(e,t)=>{let n=yd(e),r=yd(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],s=r[a];if(i?.key!==s?.key||i?.fingerprint!==s?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??s.key}}return null};function GS(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=jS(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of Cp)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var bd=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=GS(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:HS(r)});}evictEpoch(t){let n=to(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;Cp.some(s=>i[s]!==n[s])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=to(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(l=>n.get(l.key)!==l.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function Ke(e,t=false){return Yt(e.fragments,t)}var Bp=new WeakMap;function Yt(e,t=false){let n=Bp.get(e),r=t?"withRepeats":"withoutRepeats",o=n?.[r];if(o)return o;let a=[],i=s=>{for(let l of s){if(l.kind==="paragraph"){a.push(l);continue}for(let d of l.rows)if(!(d.isHeaderRepeat&&!t))for(let c of d.cells)i(c.blocks);}};return i(e),n||(n={},Bp.set(e,n)),n[r]=a,a}function Sd(e){let t=[];for(let n of e.pages)for(let r of Ke(n))t.push(...r.lines);return t}function WS(e){return e.anchoredDrawings??[]}function Lp(e,t){let n=[];for(let r of e.pages)for(let o of Ke(r))o.paragraphId===t&&n.push(o);return n.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function sa(e,t,n,r){for(let o of r??Sd(e)){let a=o.range.paragraphId===t?o.range.start:Number.NaN,i=o.range.paragraphId===t?o.range.end:Number.NaN;for(let s of o.spans)s.range.paragraphId===t&&(a=Number.isNaN(a)?s.range.start:Math.min(a,s.range.start),i=Number.isNaN(i)?s.range.end:Math.max(i,s.range.end));for(let s of o.drawings??[])s.paragraphId===t&&(a=Number.isNaN(a)?s.start:Math.min(a,s.start),i=Number.isNaN(i)?s.start+1:Math.max(i,s.start+1));if(!Number.isNaN(a)&&n>=a&&n<=i)return o}return null}function Fi(e){return e.contentControls??[]}function la(e){if(e.length===0)return null;let t=1/0,n=1/0,r=-1/0,o=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:t,y:n,width:r-t,height:o-n}}function da(e){let t=false,n=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(t=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(n=true);return t&&n?"sdtContentLocked":t?"contentLocked":n?"sdtLocked":"unlocked"}var ca=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var Fp=1,Ei=1;function no(e){let t=Math.max(e,1),n=3;if(t>=n){let i=t/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:t,insetPt:0}}let r=1,o=1,a=Math.max(t,n);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(t-a)/2}}var $S=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function XS(e){return $S.has(e)}function Ep(e,t){return XS(e)?no(t).extentPt:t}function wd(e){let t=false;for(let n of e){if(n.localName!=="pageBreakBefore")continue;let r=n.attributes?.val;t=r===void 0||Ni(r);}return t}var Np=31680/20,fa=12,Ap=3168,Dp=14,oo=Object.freeze({rule:"auto",value:240}),VS=132,YS=1584,_p=["top","left","bottom","right","between","bar"],KS=Object.freeze({}),US=/^[0-9A-Fa-f]{6}$/,qS=new Set(["nil","none"]);function Mi(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Rd(e,t){return !Number.isFinite(e)||e<=0?0:e>t?t:e}function Mp(e){let t=Mi(e,true);return t===null?0:Rd(chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(t)),Np)}function Ni(e){return e!=="0"&&e!=="false"&&e!=="off"}function ZS(e){return e===void 0||e==="auto"?null:US.test(e)?e.toUpperCase():null}function ua(e,t){return e.attributes.find(n=>n.localName===t)?.value}function sn(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Rk(e,t){let n=null;for(let r of e)r.localName===t&&(n={...n??{},...r.attributes??{}});return n}function Pd(e,t){let n=0,r=0,o=false,a=false;for(let i of e){if(i.localName!=="spacing")continue;let s=i.attributes?.before,l=i.attributes?.after;s!==void 0&&(n=Mp(s)),l!==void 0&&(r=Mp(l));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Ni(d)),c!==void 0&&(a=Ni(c));}if(o||a){let i=t?.inList||t?.inTableCell?0:Dp;o&&(n=i),a&&(r=i);}return {before:n,after:r}}function Id(e){let t,n;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(t=i);let s=a.attributes?.line;if(s!==void 0){let l=Mi(s,true);l!==null&&(n=l);}}if(n===void 0)return oo;let r=t??"auto";if(r==="auto"){let a=n/240;return a>0?{rule:"auto",value:Math.min(a,VS)*240}:oo}let o=n/20;return o>0?{rule:r,value:Math.min(o,YS)}:oo}function vd(e,t,n){let r=e.rule==="auto"?t*(e.value/240):e.rule==="exact"?e.value:Math.max(t,e.value),o=r-t;return o<0?{height:r,baseline:Math.max(0,Math.min(n,r))}:e.rule==="exact"?{height:r,baseline:n+o/2}:{height:r,baseline:n}}function Td(e){let t=false;for(let n of e){if(n.localName!=="contextualSpacing")continue;let r=n.attributes?.val;t=r===void 0||Ni(r);}return t}function ro(e){if(!e)return;let t=ua(e,"val");if(!t||qS.has(t))return;let n=Mi(ua(e,"sz")),r=n===null?.5:Rd(n/8,fa)||.5,o=Mi(ua(e,"space")),a=o===null?0:Rd(o,Ap),i=ua(e,"shadow"),s=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:t,color:ZS(ua(e,"color")),widthPt:r,spacePt:a,...s?{shadow:true}:{}}}function zp(e){let t=ro(sn(e,"top")),n=ro(sn(e,"left")??sn(e,"start")),r=ro(sn(e,"bottom")),o=ro(sn(e,"right")??sn(e,"end")),a=ro(sn(e,"between")),i=ro(sn(e,"bar"));return {...t?{top:t}:{},...n?{left:n}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function Pn(e){if(!e||e.kind==="textValue")return {};let t=sn(e,"pBdr");return t?zp(t):{}}function pa(e){let t=KS;for(let n of e){if(!n||n.kind==="textValue")continue;let r=sn(n,"pBdr");r&&(t=zp(r));}return t}function wt(e){return Ep(e.val,e.widthPt)}function Vn(e){return e?e.spacePt+wt(e):0}function JS(e){return Vn(e)}function kd(e){let t=[];for(let n of _p){let r=e[n];r&&t.push(`${n}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return t.join("|")}function ao(e,t){return Math.max(e,t)-t}function Od(e,t,n,r){return n&&!r?0:ao(e,t)}var QS=/^[0-9A-Fa-f]{6}$/;function Ai(e){if(!(e===void 0||e==="auto"||e==="nil")&&QS.test(e))return e.toUpperCase()}function ma(e){if(e&&e.val!=="nil")return Ai(e.fill)}function Cd(e){if(!e||e.localName!=="shd")return;let t={};for(let n of e.attributes)t[n.localName]=n.value;return ma(t)}function Bd(e){let t;for(let n of e)n.localName==="shd"&&(t=ma(n.attributes));return t}function ga(e,t,n){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:t,y:r,width:n,height:Math.max(o.y+o.height-r,0)}}var eR=64,tR=31680,nR=720,rR=36,Ld=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),io=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),oR=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),aR=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function ha(e){return e.kind!=="textValue"}function Di(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Fd(e,t){for(let n of e.children)if(ha(n)&&n.localName===t)return n}function Hp(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function iR(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function jp(e,t){if(!t)return;let n=0;for(let r of t.children){if(n>=128)break;if(n+=1,!ha(r)||r.localName!=="tab")continue;let o=iR(Hp(Di(r,"pos"))??NaN);if(o===null)continue;let a=Di(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=oR.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let s=Di(r,"leader");e.set(o,{alignment:i,...s!==void 0&&aR.has(s)?{leader:s}:{}});}}function Gp(e,t=36){let n=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<n.length&&o<64;o+=1){let[a,i]=n[o];r.push({positionPt:a/20,alignment:i.alignment,...sR(i)});}return {stops:Object.freeze(r),defaultIntervalPt:t}}function sR(e){return e.leader?{leader:e.leader}:{}}function Ed(e){let t=new Map;for(let n of e)!n||!ha(n)||jp(t,Fd(n,"tabs"));return Gp(t)}function Md(e){if(!e||!ha(e))return io;let t=new Map;return jp(t,Fd(e,"tabs")),Gp(t)}function ya(e,t){return t===void 0||!Number.isFinite(t)||t<=0||t===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:t}}function lR(e){if(!e||!ha(e))return 36;let t=Fd(e,"defaultTabStop");if(!t)return 36;let n=Hp(Di(t,"val"));return n===null||n<=0||n>31680?36:n/20}function so(e,t,n){let r=Math.max(t,n);for(let i of e.stops)if(i.positionPt>t)return {positionPt:Math.min(i.positionPt,r),alignment:i.alignment,...i.leader?{leader:i.leader}:{}};let o=e.defaultIntervalPt>0?e.defaultIntervalPt:36,a=Math.ceil((t+1e-9)/o)*o;return a<=t&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function Nd(e,t,n,r,o){let a=n;switch(e){case "center":a=n-r/2;break;case "right":a=n-r;break;case "decimal":a=n-o;break;default:a=n;}let i=a-t;return i>0?i:0}function yr(e){return `tabs(${e.stops.map(n=>`${n.alignment}@${Math.round(n.positionPt*1e3)}${n.leader?`/${n.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var _i=4,Wp=4096,Yn=64,zd=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),dR=/\s*\\\*\s*MERGEFORMAT\s*$/i;function lo(e){if(e.length>chunkIMMAG4QP_cjs.nc)return null;let t=e.replace(/\s+/g," ").trim().toUpperCase();return t.length>chunkIMMAG4QP_cjs.nc?null:t.replace(dR,"").trim()}function br(e){let t=lo(e);return t==="PAGE"||t==="NUMPAGES"||t==="SECTIONPAGES"?t:null}function Pt(e,t){return chunkIMMAG4QP_cjs.cc(e,t)}function xr(e){return chunkIMMAG4QP_cjs.dc(e)}function Hd(){return {nodes:0,exhausted:false}}function In(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Wp?(e.exhausted=true,false):true)}function xa(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function ba(e){e.nesting=0,e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="idle",e.inner.length=0;}function zi(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function cR(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function Sa(e){e.nesting===0&&(e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="instruction",e.inner.length=0),e.nesting+=1,e.nesting>_i?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function co(e){return e.nesting<2||e.nesting>_i?null:e.inner[e.nesting-2]??null}function $p(e){if(e.nesting===1)return e.phase==="instruction";let t=co(e);return t!==null&&!t.separated}function Dd(e,t){if(!$p(e))return false;if(e.nesting===1)return t?!e.deletedInstructionOverflow:!e.instructionOverflow;let n=co(e);return t?!n.deletedOverflow:!n.overflow}function Xp(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let t=co(e);t&&(t.sawLive=true);}function _d(e,t){if(e.nesting===1){t?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let n=co(e);n&&(t?(n.deletedOverflow=true,n.deletedInstruction=""):(n.overflow=true,n.instruction=""));}function Ad(e){_d(e,false),_d(e,true);}function uR(e,t,n=false){if(!Dd(e,n))return;let r=co(e);n||Xp(e);let o=r?n?r.deletedInstruction:r.instruction:n?e.deletedInstruction:e.instruction;if(o.length+t.length>chunkIMMAG4QP_cjs.nc){_d(e,n);return}r?n?r.deletedInstruction=o+t:r.instruction=o+t:n?e.deletedInstruction=o+t:e.instruction=o+t;}function Ra(e,t,n,r){if(!$p(e))return;let o=chunkIMMAG4QP_cjs.ec(t);if(o||Xp(e),!Dd(e,o))return;if(r>Yn){Ad(e);return}let a=[],i=t.kind==="textValue"?[]:t.children??[];for(let s=i.length-1;s>=0;s-=1)a.push({node:i[s],depth:r+1});for(;a.length>0;){let s=a.pop();if(!In(n)){Ad(e);return}if(s.depth>Yn){Ad(e);return}if(s.node.kind==="textValue"){if(uR(e,s.node.value,o),!Dd(e,o))return;continue}let l=s.node.children??[];for(let d=l.length-1;d>=0;d-=1)a.push({node:l[d],depth:s.depth+1});}}function wa(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=zi(e);return r.overflow?null:br(r.instruction)}let t=co(e);if(!t||t.separated)return null;t.separated=true;let n=cR(t);return n.overflow?null:br(n.instruction)}function Pa(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&ba(e);}function Vp(e){return e.phase==="instruction"&&e.nesting>=1}function Yp(e){return e.phase==="result"&&e.nesting>=1}function jd(e){let t=false,n=false,r=false,o=Hd(),a=xa(),i=()=>t&&n&&r,s=p=>{p==="PAGE"?t=true:p==="NUMPAGES"?n=true:r=true;},l=false,d=[],c=(p,m)=>{if(p.kind!=="runProperties"){if(Pt(p,"begin")){Sa(a),a.nestingOverflow&&(l=true);return}if(xr(p)){Ra(a,p,o,m);return}if(Pt(p,"separate")){let g=a.nesting,h=a.phase,b=wa(a);if(l)return;b&&(g<=1||h==="result")&&d.push(b);return}if(Pt(p,"end")&&(Pa(a),a.nesting===0)){if(!l)for(let g of d)s(g);d.length=0;}}},u=(p,m)=>{if(p.kind==="run")for(let g of p.children){if(!In(o))return;if(c(g,m+1),(g.kind==="drawing"||g.kind==="generic")&&!xr(g)&&"children"in g&&g.children.length>0){let h={...a,inner:a.inner.map(v=>({...v}))},b=l,x=d;d=[],f(g,m+1),Object.assign(a,h),l=b,d=x;}if(i()||o.exhausted)return}},f=(p,m)=>{if(!i()&&In(o)&&!(m>Yn)&&p.kind!=="textValue"){if(p.kind==="paragraph"){ba(a),l=false,d.length=0;for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return;ba(a),l=false,d.length=0;return}if(p.kind==="run"){u(p,m);return}if(chunkIMMAG4QP_cjs.fc(p)){let g=br(chunkIMMAG4QP_cjs.hc(p)??"");if(g){s(g);return}}for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return}};return f(e,0),!t&&!n&&!r?zd:{hasPage:t,hasNumPages:n,hasSectionPages:r}}var fR=64,pR=64,mR=[{value:1e3,glyph:"M"},{value:900,glyph:"CM"},{value:500,glyph:"D"},{value:400,glyph:"CD"},{value:100,glyph:"C"},{value:90,glyph:"XC"},{value:50,glyph:"L"},{value:40,glyph:"XL"},{value:10,glyph:"X"},{value:9,glyph:"IX"},{value:5,glyph:"V"},{value:4,glyph:"IV"},{value:1,glyph:"I"}];function vn(e){if(!Number.isFinite(e))return 1;let t=Math.trunc(e);return t<0?1:t>9999?9999:t}function Kn(e){return String(vn(e))}function Kp(e){let t=vn(e);return t<10?`0${t}`:String(t)}function Gd(e){let t=vn(e);t>3999&&(t=3999);let n="";for(let{value:r,glyph:o}of mR)for(;t>=r;)if(n+=o,t-=r,n.length>=64)return n.slice(0,64);return n||"I"}function Up(e){return Gd(e).toLowerCase()}function Wd(e){let t=vn(e),n="";for(;t>0&&n.length<8;)t-=1,n=String.fromCharCode(65+t%26)+n,t=Math.floor(t/26);return n||"A"}function qp(e){return Wd(e).toLowerCase()}function gR(e){let t=vn(e),n=t%100,r=t%10,o=n>=11&&n<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${t}${o}`}function hR(e){return vn(e).toString(16).toUpperCase()}function yR(e){let t=["*","\u2020","\u2021","\xA7"],n=vn(e);if(n<=0)return t[0];let r=(n-1)%t.length,o=Math.min(Math.floor((n-1)/t.length)+1,bR);return t[r].repeat(o)}var bR=8,Hi=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],xR=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function ji(e){let t=vn(e);if(t<20)return Hi[t];if(t<100){let r=t%10;return xR[Math.floor(t/10)]+(r===0?"":`-${Hi[r]}`)}if(t<1e3){let r=t%100;return `${Hi[Math.floor(t/100)]} hundred${r===0?"":` ${ji(r)}`}`}let n=t%1e3;return `${Hi[Math.floor(t/1e3)]} thousand${n===0?"":` ${ji(n)}`}`}function Zp(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function SR(e){return Zp(ji(e))}var RR=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function wR(e){let t=RR.get(e);return t!==void 0?t:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function PR(e){let t=ji(e),n=Math.max(t.lastIndexOf(" "),t.lastIndexOf("-")),r=n<0?"":t.slice(0,n+1);return Zp(r+wR(t.slice(n+1)))}function Tn(e,t){switch(e){case "decimal":return Kn(t);case "decimalZero":return Kp(t);case "upperRoman":return Gd(t);case "lowerRoman":return Up(t);case "upperLetter":return Wd(t);case "lowerLetter":return qp(t);case "ordinal":return gR(t);case "cardinalText":return SR(t);case "ordinalText":return PR(t);case "hex":return hR(t);case "chicago":return yR(t);case "numberInDash":return `- ${Kn(t)} -`;case "none":case "bullet":return "";default:return Kn(t)}}function $d(e,t,n){let r=e.length>64?e.slice(0,64):e,o="";for(let a=0;a<r.length&&!(o.length>=64);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let s=r[a+1];if(s>="1"&&s<="9"){let l=Number(s)-1,d=n[l]??"decimal",c=t[l]??1,u=d==="bullet"?"":Tn(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}var Gi="0";function Xd(e,t){if(!Number.isFinite(e)||e<0)return "";let n=Math.floor(e),r=t&&t.length>0?t:"decimal";if(r==="none"||r==="bullet")return Kn(n);let o=Tn(r,n);return o.length>0?o:Kn(n)}function kn(e,t){if(e==="PAGE")return Xd(t.pageNumber,t.format);let n=e==="NUMPAGES"?t.pageCount:t.sectionPageCount??t.pageCount;return !Number.isFinite(n)||n<0?"":Kn(Math.floor(n))}function Un(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function Vd(e,t=zd){if(!e||!Un(t))return "";let n=[];return t.hasPage&&(n.push(`p${e.pageNumber}`),e.format&&n.push(`f${e.format}`)),t.hasNumPages&&n.push(`n${e.pageCount}`),t.hasSectionPages&&n.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${n.join("/")}`}function uo(e,t,n,r){let o=false,a=e.map((i,s)=>{let l=t+s,d=i.pageFieldSource;return d&&d.pageNumber===l&&d.sectionPageCount===n&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:l,sectionPageCount:n,...r?{format:r}:{}}})});return o?a:e}function IR(e){for(let t of e.spans)if(t.fieldAtom?.pageField)return true;return false}function Jp(e){if(e.kind==="paragraph"){for(let t of e.lines)if(IR(t))return true;return false}for(let t of e.rows)for(let n of t.cells)for(let r of n.blocks)if(Jp(r))return true;return false}function Yd(e,t){let n=t,r=false;for(let o of e)n=Math.max(n,o.box.y+o.box.height),!r&&Jp(o)&&(r=true);return {usedBottom:n,hasBodyPageFields:r}}function vR(e,t){let n=null;for(let r=0;r<e.spans.length;r+=1){let o=e.spans[r],a=o.fieldAtom?.pageField?.kind;if(!a)continue;let i=kn(a,t);i!==o.text&&(n||(n=e.spans.slice()),n[r]={...o,text:i});}return n?{...e,spans:n}:e}function Qp(e,t){let n=null;for(let r=0;r<e.length;r+=1){let o=e[r],a=o;if(o.kind==="paragraph"){let i=null;for(let s=0;s<o.lines.length;s+=1){let l=o.lines[s],d=vR(l,t);d!==l&&(i||(i=o.lines.slice()),i[s]=d);}i&&(a={...o,lines:i});}else {let i=null;for(let s=0;s<o.rows.length;s+=1){let l=o.rows[s],d=null;for(let c=0;c<l.cells.length;c+=1){let u=l.cells[c],f=Qp(u.blocks,t);f!==u.blocks&&(d||(d=l.cells.slice()),d[c]={...u,blocks:f});}d&&(i||(i=o.rows.slice()),i[s]={...l,cells:d});}i&&(a={...o,rows:i});}a!==o&&(n||(n=e.slice()),n[r]=a);}return n??e}function qn(e){let t=e.pages.length;if(t===0)return e;let n=false,r=e.pages.map(o=>{let a=o.pageFieldSource,i={pageNumber:a?.pageNumber??o.index+1,pageCount:t,sectionPageCount:a?.sectionPageCount??t,...a?.format?{format:a.format}:{}},s=u=>{if(!u?.pageFieldProjector)return u;n=true;let f=u.pageFieldProjector(i),{pageFieldProjector:p,...m}=f;return m},l=s(o.header),d=s(o.footer),c=o.hasBodyPageFields===false?o.fragments:Qp(o.fragments,i);return l===o.header&&d===o.footer&&c===o.fragments?o:(c!==o.fragments&&(n=true),{...o,...l!==void 0?{header:l}:{},...d!==void 0?{footer:d}:{},...c!==o.fragments?{fragments:c}:{}})});return n?{revision:e.revision,pages:r}:e}var TR=`
2
- \r`,kR=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function em(e,t){let n=t;for(;n<e.length&&TR.includes(e[n]);)n+=1;return n}function tm(e,t){if(e[t]==='"'){let r=t+1;for(;r<e.length&&e[r]!=='"';)r+=1;return r<e.length?r+1:r}let n=t;for(;n<e.length&&!`
3
- \r"`.includes(e[n]);)n+=1;return n}function Wi(e){if(e.length===0||e.length>256)return null;let t=em(e,0);if(e[t]==='"')return null;let n=tm(e,t),r=e.slice(t,n).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=em(e,n);if(o>=e.length)return null;let a=tm(e,o),i=e.slice(a).trim();for(;;){let s=i.replace(kR,"").trimEnd();if(s===i)break;i=s;}if(i[0]==='"'){let s=i.indexOf('"',1);s===-1?i=i.slice(1):s===i.length-1&&(i=i.slice(1,-1));}return i.length===0?null:{display:i}}var nm=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),OR=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function CR(e){let t=e;for(;;){let n=t.replace(OR,"").trimEnd();if(n===t)return t;t=n;}}function BR(e){let t=e.trimStart();if(t.length===0)return null;if(t[0]==='"'){let o=t.indexOf('"',1),a=o===-1?t.slice(1):t.slice(1,o);return a.length>0?a:null}let n=t.search(/\s/),r=n===-1?t:t.slice(0,n);return r.length>0?r:null}function $i(e){let t=lo(e);if(t===null||t.length===0)return null;let n=CR(t),r=nm[n];if(r)return {property:r};if(!n.startsWith("DOCPROPERTY"))return null;let o=n.slice(11);if(o.length===0||!/^\s/.test(o))return null;let a=BR(o);if(a===null)return null;let i=nm[a];return i?{property:i}:null}function Xi(e,t){if(!t)return null;let n=t[e.property];return n!==void 0&&n.length>0?n:null}var LR=chunkIMMAG4QP_cjs.nc,FR=2048,ER=256;function MR(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
1
+ 'use strict';var chunkXMHWBL3K_cjs=require('./chunk-XMHWBL3K.cjs'),chunkIMMAG4QP_cjs=require('./chunk-IMMAG4QP.cjs');var xx=Symbol("validated-resolved-font"),Ql=64*1024*1024,ed=256,td=128*1024*1024,Xn=class extends Error{name="FontResolutionError";request;code;limit;actual;diagnostic;expectedHash;actualHash;constructor(t,n,r={}){super(`Font resolution failed (${t}) for ${Yr(n)}`),this.code=t,this.request=Kr(n),this.limit=r.limit,this.actual=r.actual,this.diagnostic=r.diagnostic,this.expectedHash=r.expectedHash,this.actualHash=r.actualHash;}},Zf=e=>{if(e.family.trim().length===0)throw new TypeError("Font family must not be empty");if(!Number.isInteger(e.weight)||e.weight<1||e.weight>1e3)throw new RangeError("Font weight must be an integer from 1 through 1000");if(e.style!=="normal"&&e.style!=="italic")throw new TypeError("Font style must be normal or italic")},Kr=e=>(Zf(e),Object.freeze({family:e.family,weight:e.weight,style:e.style})),Yr=e=>(Zf(e),JSON.stringify([e.family,e.weight,e.style])),nd=class{[xx]=true;id;identity;request;family;byteLength;hash;faceIndex;substitution;constructor(t,n){if(t.id.length===0)throw new TypeError("Resolved font id must not be empty");if(!Number.isInteger(t.faceIndex)||t.faceIndex<0)throw new RangeError("Font face index must be a non-negative integer");this.id=t.id,this.request=Kr(t.request),this.family=this.request.family,this.hash=t.hash,this.faceIndex=t.faceIndex,this.identity=`${this.hash}#${this.faceIndex}`,this.byteLength=t.byteLength,this.substitution=null,n&&(this.substitution=Object.freeze({requested:Kr(n.requested),resolved:Kr(n.resolved)})),Object.freeze(this);}get bytes(){return xi(this).slice()}},Jf=new WeakSet,Qf=new WeakMap,ep=new WeakMap,tp=(e,t,n,r)=>{let o=new nd(e,r);return Qf.set(o,t),ep.set(o,n),Jf.add(o),o},xi=e=>{qr(e);let t=Qf.get(e);if(!t)throw new TypeError("Resolved font has no owned byte capability");return t},Si=e=>{qr(e);let t=ep.get(e);if(!t)throw new TypeError("Resolved font has no admitted table metadata");return t},qr=e=>{if(typeof e!="object"||e===null||!Jf.has(e))throw new TypeError("Shaping requires a validated resolved font")};var np=(e,t)=>e[t]<<8|e[t+1],Ur=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,qf=(e,t)=>{if(t>e.byteLength-12)return {valid:false,diagnostic:"truncated sfnt header"};let n=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]);if(!(e[t]===0&&e[t+1]===1&&e[t+2]===0&&e[t+3]===0)&&n!=="OTTO"&&n!=="true"&&n!=="typ1")return {valid:false,diagnostic:"unsupported sfnt signature"};let o=np(e,t+4),a=t+12+o*16;if(!Number.isSafeInteger(a)||a>e.byteLength)return {valid:false,diagnostic:"truncated sfnt table directory"};for(let i=0;i<o;i+=1){let s=t+12+i*16,l=Ur(e,s+8),d=Ur(e,s+12);if(l>e.byteLength||d>e.byteLength-l)return {valid:false,diagnostic:"sfnt table range exceeds font bytes"}}return {valid:true}},Sx=(e,t)=>{let r=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?Ur(e,12+t*4):0,o=np(e,r+4),a=new Set;for(let i=0;i<o;i+=1){let s=r+12+i*16;a.add(String.fromCharCode(e[s],e[s+1],e[s+2],e[s+3]));}return Object.freeze(a)},Ri=(e,t)=>{if(!Number.isSafeInteger(t)||t<0)return {valid:false,diagnostic:"invalid font face index"};if(e.byteLength<12)return {valid:false,diagnostic:"truncated sfnt header"};if(String.fromCharCode(e[0],e[1],e[2],e[3])!=="ttcf")return t!==0?{valid:false,diagnostic:"standalone sfnt has only face index zero"}:qf(e,0);let r=Ur(e,4);if(r!==65536&&r!==131072)return {valid:false,diagnostic:"unsupported TTC version"};let o=Ur(e,8),a=12+o*4;if(o===0||!Number.isSafeInteger(a)||a>e.byteLength||t>=o)return {valid:false,diagnostic:"invalid TTC face directory"};let i=Ur(e,12+t*4);return i<a?{valid:false,diagnostic:"invalid TTC face offset"}:qf(e,i)},Rx=(e,t,n,r)=>{if(e.availability==="forbidden")return {kind:"forbidden"};if(e.bytes.byteLength>t)return {kind:"overLimit",actual:e.bytes.byteLength};let o=e.bytes.slice();r?.onOwnedByteCopy?.(),r?.onHash?.();let a=chunkIMMAG4QP_cjs.a(o);if(e.hash!==a)return {kind:"hashMismatch",expectedHash:e.hash,actualHash:a};let i=Ri(o,e.faceIndex);if(!i.valid)return {kind:"malformed",diagnostic:i.diagnostic};r?.onTableScan?.();let s=Sx(o,e.faceIndex);try{let d=n(o,e.faceIndex);if(!d.valid)return {kind:"malformed",diagnostic:d.diagnostic}}catch(d){return {kind:"malformed",diagnostic:d instanceof Error?d.message:"font validator threw"}}let l={kind:"resolved",font:tp({...e,byteLength:o.byteLength},o,s)};return r?.onAdmission?.(),l},wx=e=>{if(!Number.isSafeInteger(e.epoch)||e.epoch<0)throw new RangeError("Font resource epoch must be a non-negative safe integer");if(!Number.isSafeInteger(e.maxFontBytes)||e.maxFontBytes<=0||e.maxFontBytes>Ql)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${Ql}`);if(typeof e.validateFont!="function")throw new TypeError("Font snapshot requires a validator");if(e.resources.length>ed)throw new RangeError(`Font source count must not exceed ${ed}`);let t=0;for(let l of e.resources){if(l.bytes.byteLength>td-t)throw new RangeError(`Aggregate font bytes must not exceed ${td}`);t+=l.bytes.byteLength;}let n=e.epoch,r=e.maxFontBytes,o=e.validateFont,a=new Map;for(let l of e.resources){let d=Yr(l.request);if(a.has(d))throw new TypeError(`Duplicate font resource request: ${d}`);a.set(d,Rx(l,r,o,e.instrumentation));}let i=new Map;for(let l of e.substitutions??[]){let d=Yr(l.from);if(i.has(d))throw new TypeError(`Duplicate font substitution request: ${d}`);i.set(d,Kr(l.to));}return Object.freeze({epoch:n,resolve:l=>{let d=Kr(l),c=Yr(d),u=i.get(c),f=u??d,p=a.get(Yr(f));return p?p.kind==="forbidden"?new Xn("forbidden",d):p.kind==="overLimit"?new Xn("overLimit",d,{limit:r,actual:p.actual}):p.kind==="malformed"?new Xn("malformed",d,{diagnostic:p.diagnostic}):p.kind==="hashMismatch"?new Xn("hashMismatch",d,{expectedHash:p.expectedHash,actualHash:p.actualHash}):u?tp({request:p.font.request,id:p.font.id,hash:p.font.hash,faceIndex:p.font.faceIndex,byteLength:p.font.byteLength},xi(p.font),Si(p.font),{requested:d,resolved:u}):p.font:new Xn("missing",d)}})};var rn=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},wi=(e,t)=>{if(e.trim().length===0||/[\u0000-\u001f\u007f]/.test(e))throw new TypeError(`${t} must be non-blank and contain no control characters`)},Px=(e,t)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${t} must be a four-byte ASCII tag`)},rp=(e,t,n)=>{let r=Object.entries(e).sort(([a],[i])=>a<i?-1:a>i?1:0),o=Object.create(null);for(let[a,i]of r){if(Px(a,`${t} key`),!Number.isFinite(i)||n&&(!Number.isSafeInteger(i)||i<0))throw new RangeError(`${t} value must be ${n?"a non-negative safe integer":"finite"}`);if(n&&i>4294967295)throw new RangeError(`${t} value must fit an unsigned 32-bit integer`);o[a]=i;}return Object.freeze(o)},rd=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),Ix=e=>e?Object.freeze({requested:rd(e.requested),resolved:rd(e.resolved)}):void 0,op=new WeakSet,ad=e=>{if(qr(e),!op.has(e)){if(e.identity!==`${e.hash}#${e.faceIndex}`)throw new TypeError("Resolved font identity does not match hash and face index");if(!Number.isSafeInteger(e.byteLength)||e.byteLength<0)throw new TypeError("Resolved font byte length is invalid");op.add(e);}},od=e=>(ad(e),e),Ii=e=>(ad(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:rd(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:Ix(e.substitution)??null})),gr=e=>{if(wi(e.shapingLibrary.name,"shaping library name"),wi(e.shapingLibrary.version,"shaping library version"),wi(e.unicodeDataVersion,"Unicode data version"),!/^\d+(?:\.\d+){0,3}(?:[-+][0-9A-Za-z.-]+)?$/.test(e.shapingLibrary.version))throw new TypeError("shaping library version must be a numeric version");if(!/^\d+(?:\.\d+){1,2}$/.test(e.unicodeDataVersion))throw new TypeError("Unicode data version must be a dotted numeric version");if(!/^[A-Z][a-z]{3}$/.test(e.script))throw new TypeError("script must be a four-letter ISO 15924 code");if(wi(e.language,"language"),!/^(?:und|[A-Za-z]{2,8})(?:-[A-Za-z0-9]{1,8})*$/.test(e.language))throw new TypeError("language must be a BCP 47 language tag");if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("direction must be ltr or rtl");if(!["none","NFC","NFD","NFKC","NFKD"].includes(e.normalization))throw new TypeError("invalid normalization policy");if(!["halfAwayFromZero","halfToEven","towardZero"].includes(e.roundingMode))throw new TypeError("invalid fixed-point rounding mode");if(!Number.isSafeInteger(e.fixedPointScale)||e.fixedPointScale<=0)throw new RangeError("fixed-point scale must be a positive safe integer");let t=od(e.font),n=e.fallbackOrder.map(od),r=new Set;for(let o of n){let a=JSON.stringify(Ii(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:t,variationAxes:rp(e.variationAxes,"variation axis",false),shapingLibrary:Object.freeze({name:e.shapingLibrary.name,version:e.shapingLibrary.version}),unicodeDataVersion:e.unicodeDataVersion,normalization:e.normalization,script:e.script,language:e.language,direction:e.direction,features:rp(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...n]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},ip=e=>{let t=gr(e);return Object.freeze({font:Ii(t.font),variationAxes:Object.freeze(Object.entries(t.variationAxes).map(n=>Object.freeze(n))),shapingLibrary:Object.freeze({name:t.shapingLibrary.name,version:t.shapingLibrary.version}),unicodeDataVersion:t.unicodeDataVersion,normalization:t.normalization,script:t.script,language:t.language,direction:t.direction,features:Object.freeze(Object.entries(t.features).map(n=>Object.freeze(n))),fallbackOrder:Object.freeze(t.fallbackOrder.map(Ii)),fixedPointScale:t.fixedPointScale,roundingMode:t.roundingMode})},id=e=>JSON.stringify(ip(e)),mr=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},Xt=e=>{try{return rn(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},ap=new WeakMap,Pi=e=>{let t=ap.get(e);if(t)return t;ad(e);let n=JSON.stringify({identity:e.identity,id:e.id,family:e.family,request:e.request,hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:e.substitution??null});return ap.set(e,n),n},vi=(e,t)=>{let n=gr(t);if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("Shaped run direction must be ltr or rtl");if(e.direction!==n.direction)throw new TypeError("Shaped run direction does not match shaping environment");if(mr(e.bidiLevel,"bidi level"),(e.bidiLevel&1)===1!=(e.direction==="rtl"))throw new TypeError("Shaped run direction does not match bidi level parity");let r=new Map,o=e.glyphs.map(l=>{mr(l.id,"glyph id"),mr(l.cluster,"glyph cluster");let d=r.get(l.outline);if(!d){if(!Number.isSafeInteger(l.outline.unitsPerEm)||l.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");d=Object.isFrozen(l.outline)?l.outline:Object.freeze({path:l.outline.path,unitsPerEm:l.outline.unitsPerEm}),r.set(l.outline,d);}return Object.freeze({id:l.id,cluster:l.cluster,originX:Xt(l.originX),originY:Xt(l.originY),advanceX:Xt(l.advanceX),advanceY:Xt(l.advanceY),offsetX:Xt(l.offsetX),offsetY:Xt(l.offsetY),outline:d})}),a=e.fontSpans.map(l=>{if(mr(l.glyphStart,"font span start"),mr(l.glyphEnd,"font span end"),l.glyphEnd<=l.glyphStart||l.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");l.fallbackIndex!==null&&mr(l.fallbackIndex,"fallback index");let d=od(l.font);if(l.fallbackIndex===null){if(Pi(d)!==Pi(n.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let c=n.fallbackOrder[l.fallbackIndex];if(!c)throw new RangeError("Shaped fallback index is outside fallback order");if(Pi(d)!==Pi(c))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...l,font:d})});for(let l=0;l<a.length;l+=1){let d=l===0?0:a[l-1].glyphEnd;if(a[l].glyphStart!==d)throw new RangeError("Font spans must cover glyphs contiguously")}if(o.length===0&&a.length!==0||o.length>0&&a.at(-1)?.glyphEnd!==o.length)throw new RangeError("Font spans must cover every glyph exactly once");let i=e.clusters.map(l=>{for(let[c,u]of [["cluster text start",l.textStart],["cluster text end",l.textEnd],["cluster glyph start",l.glyphStart],["cluster glyph end",l.glyphEnd],["cluster font span",l.fontSpan]])mr(u,c);if(l.textEnd<=l.textStart||l.textEnd>e.text.length||l.glyphEnd<=l.glyphStart||l.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let d=a[l.fontSpan];if(!d||l.glyphStart<d.glyphStart||l.glyphEnd>d.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...l,advance:Xt(l.advance),caretEdges:Object.freeze(l.caretEdges.map(Xt))})}),s=Object.freeze({ascent:Xt(e.metrics.ascent),descent:Xt(e.metrics.descent),lineGap:Xt(e.metrics.lineGap)});return Object.freeze({text:e.text,direction:e.direction,bidiLevel:e.bidiLevel,glyphs:Object.freeze(o),clusters:Object.freeze(i),fontSpans:Object.freeze(a),metrics:s})},vx=(e,t)=>{let n=vi(e,t);return Object.freeze({text:n.text,direction:n.direction,script:t.script,language:t.language,bidiLevel:n.bidiLevel,glyphs:n.glyphs,clusters:n.clusters,fontSpans:Object.freeze(n.fontSpans.map(r=>Object.freeze({glyphStart:r.glyphStart,glyphEnd:r.glyphEnd,fallbackIndex:r.fallbackIndex,font:Ii(r.font)}))),metrics:n.metrics})};function Jr(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 sp(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>Jr(t))}function Ox(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 lp(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function dp(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 and 22.3. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${sp(e instanceof Error?e.message:String(e))})`}function cp(e){let t=sp(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 up(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var ra=Object.freeze({name:"HarfBuzz",version:"14.3.0"}),oa=null,ta=null;function Cx(){return oa?Promise.resolve():ta||(ta=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==ra.version)throw new Me("shapingLibraryMismatch",{diagnostic:up(ra.version,t)});oa=e;}).catch(e=>{throw ta=null,e instanceof Me?e:lp(e)?new Me("unsupportedRuntime",{diagnostic:dp(e),cause:e}):new Me("wasmUnavailable",{diagnostic:cp(e),cause:e})}),ta)}function Bx(){return oa!==null}function Lx(){if(!oa)throw new Me("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return oa}var Me=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;}},Fx=16*1024*1024,Mx=1e6,Ex=1e6,Nx=1e6,Ax=4,Dx=512,_x=1024*1024,zx=16*1024*1024,Hx=32*1024*1024,jx=64*1024*1024,Gx=64*1024*1024,Wx=1e6,$x=1e6,Xx=1e6,Vx=64,Yx=4096,Kx=4*1024*1024,Ux=64*1024*1024,qx=64*1024*1024,Zx=256*1024*1024,Jx=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),fp=["cmap","head","hhea","hmtx","maxp"],Qx=(e,t)=>e[t]<<8|e[t+1],eS=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,tS=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?eS(e,12+t*4):0,nS=(e,t)=>{let n=tS(e,t),r=Qx(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},rS=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),oS=(e,t)=>{let n=Ri(e,t);if(!n.valid)return n;let r=nS(e,t);for(let o of fp)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},aS=oS,on=(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},iS=(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 s=r?-a:a,l=Number(s);if(!Number.isSafeInteger(l))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return l},pp=(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");return rn(iS(BigInt(e)*BigInt(n),BigInt(t),r))},sS=(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=>pp(i,a,o,r)},lS=(e,t)=>{if(t.length===0)return [];let n=[...new Set(t.map(i=>i.cluster))].sort((i,s)=>i-s),r=new Map;for(let i=0;i<n.length;i+=1)r.set(n[i],n[i+1]??e.length);let o=[],a=0;for(;a<t.length;){let i=t[a].cluster,s=a+1;for(;s<t.length&&t[s].cluster===i;)s+=1;let l=t.slice(a,s).reduce((c,u)=>c+u.advanceX,0),d=rn(l);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:s,advance:d,caretEdges:Object.freeze([rn(0),d]),fontSpan:0}),a=s;}return o},an=64,wn=8,hr=8,dS=32,mp=an+2*wn,cS=an+wn+hr,uS=an+wn+hr,fS=an+wn+hr,gp=an+8*wn,hp=an+8*hr+wn,pS=an+6*hr+wn,mS=an+3*hr+2*wn,gS=an+3*hr,aa=e=>an+e.length*Uint16Array.BYTES_PER_ELEMENT,ld=e=>fS+aa(e),na=e=>dS+e*wn,hS=(e,t)=>mp+aa(e)+cS+ld(t),yS=e=>gp+aa(e)+na(e.length)+e.length*hp,bS=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return gp+aa(e.text)+na(e.glyphs.length)+e.glyphs.length*hp+na(e.clusters.length)+e.clusters.length*pS+e.clusters.reduce((n,r)=>n+na(r.caretEdges.length),0)+na(e.fontSpans.length)+e.fontSpans.length*mS+gS+[...t].reduce((n,r)=>n+ld(r.path),0)},xS=(e,t)=>mp+aa(e)+uS+t,sd=class{#t;#s;#u;#f;#p;#y;#b;#m;#g;#l;#h;#d;#e;#o=new Map;#a=new Map;#n=new Map;#i=0;#r=0;#c;constructor(t,n){this.#t=t,this.#s=on(n.maxFontBytes??Fx,"maximum font bytes",Gx),this.#u=on(n.maxInputUtf16??Mx,"maximum input UTF-16 code units",Wx),this.#f=on(n.maxCodepoints??Ex,"maximum input code points",$x),this.#p=on(n.maxGlyphs??Nx,"maximum shaped glyphs",Xx),this.#y=on(n.maxCachedFaces??Ax,"maximum cached faces",Vx),this.#b=on(n.maxCachedShapes??Dx,"maximum cached shape results",Yx),this.#m=on(n.maxOutlineBytes??_x,"maximum outline bytes",Kx),this.#g=on(n.maxCachedOutlineBytes??zx,"maximum cached outline bytes",Ux),this.#l=on(n.maxShapedRunBytes??Hx,"maximum shaped run bytes",qx),this.#h=on(n.maxCachedShapeBytes??jx,"maximum cached shape bytes",Zx),this.#d=n.instrumentation?.onFaceCacheEvent,this.#e=n.instrumentation,this.#c=new this.#t.Buffer;}dispose(){this.#o.clear(),this.#a.clear(),this.#n.clear(),this.#i=0,this.#r=0,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#c=void 0;}#S(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=Si(t);for(let c of fp)if(!o.has(c))throw new Me("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#t.Blob(rS(n)),i=new this.#t.Face(a,t.faceIndex),s=new this.#t.Font(i),l=s.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(l.ascender)||!Number.isSafeInteger(l.descender)||!Number.isSafeInteger(l.lineGap))throw new Me("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});if(s.setScale(i.upem,i.upem),this.#o.size>=this.#y){let c=this.#o.keys().next().value;c!==void 0&&(this.#o.delete(c),this.#d?.(Object.freeze({kind:"evicted",identity:c})));}let d={identity:t.identity,blob:a,face:i,font:s,unitsPerEm:i.upem};return this.#o.set(t.identity,d),this.#d?.(Object.freeze({kind:"created",identity:t.identity})),d}#R(t,n,r){let o=JSON.stringify([t.identity,t.unitsPerEm,r,n]),a=this.#a.get(o);if(a)return this.#a.delete(o),this.#a.set(o,a),this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#i})),a.outline;this.#e?.onOutlinePathCall?.();let i=t.font.glyphToPath(n),s=ld(i);if(s>this.#m)throw new Me("outlineOverLimit",{limit:this.#m,actual:s});let l=Object.freeze({path:i,unitsPerEm:t.unitsPerEm}),d=hS(o,i);if(d>this.#g)return this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#i})),l;for(;this.#i+d>this.#g;){let c=this.#a.keys().next().value;if(c===void 0)break;let u=this.#a.get(c);this.#a.delete(c),this.#i-=u.bytes,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#i}));}return this.#a.set(o,{outline:l,bytes:d}),this.#i+=d,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#i})),l}#x(t){if(t.length>this.#u)throw new Me("textOverLimit",{limit:this.#u,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.#f)throw new Me("codepointsOverLimit",{limit:this.#f,actual:n})}}shape(t){if(!this.#c)throw new Me("disposed");if(qr(t.environment.font),t.environment.font.byteLength>this.#s)throw new Me("fontOverLimit",{limit:this.#s,actual:t.environment.font.byteLength});this.#x(t.text);let n=yS(t.text);if(n>this.#l)throw new Me("shapedRunOverLimit",{limit:this.#l,actual:n});let r=gr(t.environment),o=JSON.stringify([t.text,t.fontSizeHalfPoints,t.bidiLevel,id(r)]),a=this.#n.get(o);if(a)return this.#n.delete(o),this.#n.set(o,a),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==ra.name||r.shapingLibrary.version!==ra.version)throw new Me("shapingLibraryMismatch");if(r.normalization!=="none")throw new Me("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new Me("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new Me("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new Me("unsupportedFallback");let i=xi(r.font),s=Si(r.font);if([...Jx].some(d=>s.has(d)))throw new Me("unsupportedColorFont");let l=t.text;this.#x(l);try{let d=this.#S(r.font,i),{face:c,font:u}=d,f=this.#c;f.reset(),f.addText(l),f.setDirection(r.direction==="rtl"?this.#t.Direction.RTL:this.#t.Direction.LTR),f.setScript(r.script),f.setLanguage(r.language),f.setClusterLevel(this.#t.ClusterLevel.MONOTONE_CHARACTERS);let p=Object.entries(r.features).map(([O,k])=>new this.#t.Feature(O,k));this.#e?.onShapeCall?.(),this.#t.shape(u,f,p);let m=f.getGlyphInfosAndPositions();if(m.length>this.#p)throw new Me("glyphOverLimit",{limit:this.#p,actual:m.length});let g=sS(c.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),h=rn(0),b=rn(0),x=new Map,v=JSON.stringify(Object.entries(r.variationAxes).sort(([O],[k])=>O.localeCompare(k))),w=m.map(O=>{let k=g(O.xAdvance??0),_=g(O.yAdvance??0),D={id:O.codepoint,cluster:O.cluster,originX:h,originY:b,advanceX:k,advanceY:_,offsetX:g(O.xOffset??0),offsetY:g(O.yOffset??0),outline:x.get(O.codepoint)??(()=>{let y=this.#R(d,O.codepoint,v);return x.set(O.codepoint,y),y})()};return h=rn(h+k),b=rn(b+_),D}),C=u.hExtents(),M=vi({text:l,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:w,clusters:lS(l,w),fontSpans:w.length===0?[]:[{glyphStart:0,glyphEnd:w.length,font:r.font,fallbackIndex:null}],metrics:{ascent:g(C.ascender),descent:g(-C.descender),lineGap:g(C.lineGap)}},r),P=bS(M);if(P>this.#l)throw new Me("shapedRunOverLimit",{limit:this.#l,actual:P});let B=xS(o,P);if(B>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),M;for(;this.#n.size>=this.#b||this.#r+B>this.#h;){let O=this.#n.keys().next().value;if(O===void 0)break;let k=this.#n.get(O);this.#n.delete(O),this.#r-=k.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:M,bytes:B}),this.#r+=B,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),M}catch(d){throw d instanceof Me?d:new Me("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},SS=(e={})=>new sd(Lx(),e);var te=(e,t,n)=>e>=t&&e<=n,Ti=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(t){super(`Unsupported Unicode script at U+${t.toString(16).toUpperCase()}`),this.codePoint=t;}},RS=e=>{if(te(e,65313,65338)||te(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(te(e,1424,1535)||te(e,64285,64335))return {slot:"cs",script:"Hebr"};if(te(e,1536,1791)||te(e,1872,1919)||te(e,2160,2207)||te(e,2208,2303)||te(e,64336,65023)||te(e,65136,65279)||te(e,126464,126719))return {slot:"cs",script:"Arab"};if(te(e,4352,4607)||te(e,11904,12351)||te(e,12352,12543)||te(e,12544,12687)||te(e,12784,12799)||te(e,13312,19903)||te(e,19968,40959)||te(e,44032,55215)||te(e,63744,64255)||te(e,65382,65437)||te(e,65440,65500)||te(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(te(e,2304,2431)||te(e,43232,43263))return {slot:"cs",script:"Deva"};if(te(e,2432,2559))return {slot:"cs",script:"Beng"};if(te(e,880,1023)||te(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(te(e,1024,1327)||te(e,7296,7311)||te(e,11744,11775)||te(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(te(e,3584,3711))return {slot:"cs",script:"Thai"};if(te(e,6016,6143)||te(e,6624,6655))return {slot:"cs",script:"Khmr"};if(te(e,768,879)||te(e,6832,6911)||te(e,7616,7679)||te(e,8400,8447)||te(e,8192,8303)||te(e,65056,65071)||e<=47||te(e,58,64)||te(e,91,96)||te(e,123,191)||e===5760||te(e,8192,11263)||te(e,65024,65039)||te(e,65280,65381)||te(e,65438,65439)||te(e,65501,65535)||te(e,126976,129791)||te(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(te(e,192,687)||te(e,7424,7551)||te(e,7552,7615)||te(e,7680,7935)||te(e,11360,11391)||te(e,42784,43007)||te(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new Ti(e)};function wS(e,t,n){let r=[];for(let s=0;s<e.length;){let l=e.codePointAt(s),d=s+(l>65535?2:1);r.push({from:s,to:d,classified:RS(l)}),s=d;}let o=null;for(let s of r)s.classified?o=s.classified:o&&(s.classified=o);o=null;for(let s=r.length-1;s>=0;s-=1){let l=r[s];l.classified?o=l.classified:o&&(l.classified=o);}let a=[],i=r.every(({from:s})=>e.codePointAt(s)<=127)?"ascii":"hAnsi";for(let s of r){let l=n.levels[t+s.from]??0,d=(l&1)===1?"rtl":"ltr",c=s.classified??{slot:i,script:"Zyyy"},u=a.at(-1);u&&u.to===s.from&&u.bidiLevel===l&&u.slot===c.slot&&u.script===c.script?a[a.length-1]={...u,to:s.to}:a.push({from:s.from,to:s.to,direction:d,bidiLevel:l,script:c.script,slot:c.slot});}return a}var PS="und";function IS(){return typeof Intl.Segmenter=="function"}function vS(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function TS(){let e=new(vS())("und",{granularity:"grapheme"});return {segment(t){let n=[],r=0;for(let o of e.segment(t)){let a=o.index,i=a+o.segment.length;n.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return n}}}var ud=TS(),fd=ud,yp=0;function pd(){return yp}var Qr=null,yr=null,ki=null,ia=null;function Vt(e){if(Qr===e&&yr)return yr;if(ki===e&&ia){let n=ia;return ki=Qr,ia=yr,Qr=e,yr=n,n}let t=fd.segment(e);return ki=Qr,ia=yr,Qr=e,yr=t,t}function kS(e){fd=e,bp();}function OS(){fd=ud,bp();}function bp(){yp+=1,Qr=null,yr=null,ki=null,ia=null,dd=null,Oi=null,cd=0;}function CS(e){return Vt(e).length}var dd=null,Oi=null,cd=0;function BS(e){if(dd===e&&Oi)return {offsets:Oi,count:cd};let t=Vt(e),n=new Int32Array(e.length+1);for(let r of t)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)n[o]=r.index;return n[e.length]=t.length,dd=e,Oi=n,cd=t.length,{offsets:n,count:t.length}}function Ci(e,t){let n=Math.max(0,Math.min(t,e.length)),{offsets:r}=BS(e);return r[n]}function LS(e,t){let n=Vt(e);if(n.length===0)return 0;let r=Math.max(0,Math.min(t,n.length));return r>=n.length?e.length:n[r].utf16From}function md(e){let t=new Set([0,e.text.length]);for(let r of Vt(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 Bi(e,t){return md(e).includes(t)}function FS(e,t){return Bi(e,t)}function MS(e,t,n){return n>=t&&Bi(e,t)&&Bi(e,n)}function ES(e){let t=Vt(e.text);return md(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var hd="und";function wp(){return typeof Intl.Segmenter=="function"}function NS(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${hd})`);return e}function Pp(){let e=new(NS())(hd,{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 AS=/^[\p{L}\p{N}']$/u,DS=/^\s$/u;function xp(e){return AS.test(e)}function Sp(e){return DS.test(e)}function gd(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function Ip(e){let t=Vt(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(Sp(o.text)){let a=r+1;for(;a<t.length&&Sp(t[a].text);)a+=1;n.push(gd(t,r,a,false)),r=a;continue}if(xp(o.text)){let a=r+1;for(;a<t.length&&xp(t[a].text);)a+=1;n.push(gd(t,r,a,true)),r=a;continue}n.push(gd(t,r,r+1,false)),r+=1;}return n}function vp(){return {segment:Ip}}function Tp(e={}){let t=e.isIntlAvailable??wp,n=e.createIntlBoundary??Pp,r=e.createFallbackBoundary??vp;if(!t())return r();try{return n()}catch{return r()}}var Rp;function kp(){return Rp??=Tp(),Rp}function _S(e,t=kp()){return t.segment(e)}function zS(e,t){return t.map(n=>({graphemeFrom:Ci(e,n.utf16From),graphemeTo:Ci(e,n.utf16To),wordLike:n.wordLike}))}var Op={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},xd=Object.keys(Op),Cp=xd.filter(e=>Op[e]==="coarse-gate"),Li=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},eo=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},HS={resourceEpoch:Li,configEpoch:Li,extensionFingerprint:eo,shapingHash:eo,producerVersion:Li},jS=(e,t)=>{HS[t](e[t],t);},to=e=>{for(let t of xd)jS(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},GS=(e,t)=>{let n=to(e),r=to(t),o=xd.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},yd=e=>{let t=e.map(({key:n,fingerprint:r})=>(eo(n,"resource dependency key"),eo(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)},WS=e=>(Li(e.revision,"revision"),eo(e.dependencyFingerprint,"dependencyFingerprint"),eo(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:yd(e.resourceDependencies),...to(e)})),$S=(e,t)=>{let n=yd(e),r=yd(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],s=r[a];if(i?.key!==s?.key||i?.fingerprint!==s?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??s.key}}return null};function XS(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=$S(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of Cp)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var bd=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=XS(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:WS(r)});}evictEpoch(t){let n=to(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;Cp.some(s=>i[s]!==n[s])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=to(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(l=>n.get(l.key)!==l.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function We(e,t=false){return Yt(e.fragments,t)}var Bp=new WeakMap;function Yt(e,t=false){let n=Bp.get(e),r=t?"withRepeats":"withoutRepeats",o=n?.[r];if(o)return o;let a=[],i=s=>{for(let l of s){if(l.kind==="paragraph"){a.push(l);continue}for(let d of l.rows)if(!(d.isHeaderRepeat&&!t))for(let c of d.cells)i(c.blocks);}};return i(e),n||(n={},Bp.set(e,n)),n[r]=a,a}function Sd(e){let t=[];for(let n of e.pages)for(let r of We(n))t.push(...r.lines);return t}function VS(e){return e.anchoredDrawings??[]}function Lp(e,t){let n=[];for(let r of e.pages)for(let o of We(r))o.paragraphId===t&&n.push(o);return n.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function sa(e,t,n,r){for(let o of r??Sd(e)){let a=o.range.paragraphId===t?o.range.start:Number.NaN,i=o.range.paragraphId===t?o.range.end:Number.NaN;for(let s of o.spans)s.range.paragraphId===t&&(a=Number.isNaN(a)?s.range.start:Math.min(a,s.range.start),i=Number.isNaN(i)?s.range.end:Math.max(i,s.range.end));for(let s of o.drawings??[])s.paragraphId===t&&(a=Number.isNaN(a)?s.start:Math.min(a,s.start),i=Number.isNaN(i)?s.start+1:Math.max(i,s.start+1));if(!Number.isNaN(a)&&n>=a&&n<=i)return o}return null}function Fi(e){return e.contentControls??[]}function la(e){if(e.length===0)return null;let t=1/0,n=1/0,r=-1/0,o=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:t,y:n,width:r-t,height:o-n}}function da(e){let t=false,n=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(t=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(n=true);return t&&n?"sdtContentLocked":t?"contentLocked":n?"sdtLocked":"unlocked"}var ca=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var Fp=1,Mi=1;function no(e){let t=Math.max(e,1),n=3;if(t>=n){let i=t/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:t,insetPt:0}}let r=1,o=1,a=Math.max(t,n);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(t-a)/2}}var YS=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function KS(e){return YS.has(e)}function Mp(e,t){return KS(e)?no(t).extentPt:t}function wd(e){let t=false;for(let n of e){if(n.localName!=="pageBreakBefore")continue;let r=n.attributes?.val;t=r===void 0||Ni(r);}return t}var Np=31680/20,fa=12,Ap=3168,Dp=14,oo=Object.freeze({rule:"auto",value:240}),US=132,qS=1584,_p=["top","left","bottom","right","between","bar"],ZS=Object.freeze({}),JS=/^[0-9A-Fa-f]{6}$/,QS=new Set(["nil","none"]);function Ei(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Rd(e,t){return !Number.isFinite(e)||e<=0?0:e>t?t:e}function Ep(e){let t=Ei(e,true);return t===null?0:Rd(chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(t)),Np)}function Ni(e){return e!=="0"&&e!=="false"&&e!=="off"}function eR(e){return e===void 0||e==="auto"?null:JS.test(e)?e.toUpperCase():null}function ua(e,t){return e.attributes.find(n=>n.localName===t)?.value}function sn(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function kk(e,t){let n=null;for(let r of e)r.localName===t&&(n={...n??{},...r.attributes??{}});return n}function Pd(e,t){let n=0,r=0,o=false,a=false;for(let i of e){if(i.localName!=="spacing")continue;let s=i.attributes?.before,l=i.attributes?.after;s!==void 0&&(n=Ep(s)),l!==void 0&&(r=Ep(l));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Ni(d)),c!==void 0&&(a=Ni(c));}if(o||a){let i=t?.inList||t?.inTableCell?0:Dp;o&&(n=i),a&&(r=i);}return {before:n,after:r}}function Id(e){let t,n;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(t=i);let s=a.attributes?.line;if(s!==void 0){let l=Ei(s,true);l!==null&&(n=l);}}if(n===void 0)return oo;let r=t??"auto";if(r==="auto"){let a=n/240;return a>0?{rule:"auto",value:Math.min(a,US)*240}:oo}let o=n/20;return o>0?{rule:r,value:Math.min(o,qS)}:oo}function vd(e,t,n){let r=e.rule==="auto"?t*(e.value/240):e.rule==="exact"?e.value:Math.max(t,e.value),o=r-t;return o<0?{height:r,baseline:Math.max(0,Math.min(n,r))}:e.rule==="exact"?{height:r,baseline:n+o/2}:{height:r,baseline:n}}function Td(e){let t=false;for(let n of e){if(n.localName!=="contextualSpacing")continue;let r=n.attributes?.val;t=r===void 0||Ni(r);}return t}function ro(e){if(!e)return;let t=ua(e,"val");if(!t||QS.has(t))return;let n=Ei(ua(e,"sz")),r=n===null?.5:Rd(n/8,fa)||.5,o=Ei(ua(e,"space")),a=o===null?0:Rd(o,Ap),i=ua(e,"shadow"),s=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:t,color:eR(ua(e,"color")),widthPt:r,spacePt:a,...s?{shadow:true}:{}}}function zp(e){let t=ro(sn(e,"top")),n=ro(sn(e,"left")??sn(e,"start")),r=ro(sn(e,"bottom")),o=ro(sn(e,"right")??sn(e,"end")),a=ro(sn(e,"between")),i=ro(sn(e,"bar"));return {...t?{top:t}:{},...n?{left:n}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function Pn(e){if(!e||e.kind==="textValue")return {};let t=sn(e,"pBdr");return t?zp(t):{}}function pa(e){let t=ZS;for(let n of e){if(!n||n.kind==="textValue")continue;let r=sn(n,"pBdr");r&&(t=zp(r));}return t}function wt(e){return Mp(e.val,e.widthPt)}function Vn(e){return e?e.spacePt+wt(e):0}function tR(e){return Vn(e)}function kd(e){let t=[];for(let n of _p){let r=e[n];r&&t.push(`${n}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return t.join("|")}function ao(e,t){return Math.max(e,t)-t}function Od(e,t,n,r){return n&&!r?0:ao(e,t)}var nR=/^[0-9A-Fa-f]{6}$/;function Ai(e){if(!(e===void 0||e==="auto"||e==="nil")&&nR.test(e))return e.toUpperCase()}function ma(e){if(e&&e.val!=="nil")return Ai(e.fill)}function Cd(e){if(!e||e.localName!=="shd")return;let t={};for(let n of e.attributes)t[n.localName]=n.value;return ma(t)}function Bd(e){let t;for(let n of e)n.localName==="shd"&&(t=ma(n.attributes));return t}function ga(e,t,n){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:t,y:r,width:n,height:Math.max(o.y+o.height-r,0)}}var rR=64,oR=31680,aR=720,iR=36,Ld=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),io=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),sR=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),lR=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function ha(e){return e.kind!=="textValue"}function Di(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Fd(e,t){for(let n of e.children)if(ha(n)&&n.localName===t)return n}function Hp(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function dR(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function jp(e,t){if(!t)return;let n=0;for(let r of t.children){if(n>=128)break;if(n+=1,!ha(r)||r.localName!=="tab")continue;let o=dR(Hp(Di(r,"pos"))??NaN);if(o===null)continue;let a=Di(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=sR.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let s=Di(r,"leader");e.set(o,{alignment:i,...s!==void 0&&lR.has(s)?{leader:s}:{}});}}function Gp(e,t=36){let n=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<n.length&&o<64;o+=1){let[a,i]=n[o];r.push({positionPt:a/20,alignment:i.alignment,...cR(i)});}return {stops:Object.freeze(r),defaultIntervalPt:t}}function cR(e){return e.leader?{leader:e.leader}:{}}function Md(e){let t=new Map;for(let n of e)!n||!ha(n)||jp(t,Fd(n,"tabs"));return Gp(t)}function Ed(e){if(!e||!ha(e))return io;let t=new Map;return jp(t,Fd(e,"tabs")),Gp(t)}function ya(e,t){return t===void 0||!Number.isFinite(t)||t<=0||t===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:t}}function uR(e){if(!e||!ha(e))return 36;let t=Fd(e,"defaultTabStop");if(!t)return 36;let n=Hp(Di(t,"val"));return n===null||n<=0||n>31680?36:n/20}function so(e,t,n){let r=Math.max(t,n);for(let i of e.stops)if(i.positionPt>t)return {positionPt:Math.min(i.positionPt,r),alignment:i.alignment,...i.leader?{leader:i.leader}:{}};let o=e.defaultIntervalPt>0?e.defaultIntervalPt:36,a=Math.ceil((t+1e-9)/o)*o;return a<=t&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function Nd(e,t,n,r,o){let a=n;switch(e){case "center":a=n-r/2;break;case "right":a=n-r;break;case "decimal":a=n-o;break;default:a=n;}let i=a-t;return i>0?i:0}function br(e){return `tabs(${e.stops.map(n=>`${n.alignment}@${Math.round(n.positionPt*1e3)}${n.leader?`/${n.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var _i=4,Wp=4096,Yn=64,zd=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),fR=/\s*\\\*\s*MERGEFORMAT\s*$/i;function lo(e){if(e.length>chunkIMMAG4QP_cjs.nc)return null;let t=e.replace(/\s+/g," ").trim().toUpperCase();return t.length>chunkIMMAG4QP_cjs.nc?null:t.replace(fR,"").trim()}function xr(e){let t=lo(e);return t==="PAGE"||t==="NUMPAGES"||t==="SECTIONPAGES"?t:null}function Pt(e,t){return chunkIMMAG4QP_cjs.cc(e,t)}function Sr(e){return chunkIMMAG4QP_cjs.dc(e)}function Hd(){return {nodes:0,exhausted:false}}function In(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Wp?(e.exhausted=true,false):true)}function xa(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function ba(e){e.nesting=0,e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="idle",e.inner.length=0;}function zi(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function pR(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function Sa(e){e.nesting===0&&(e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="instruction",e.inner.length=0),e.nesting+=1,e.nesting>_i?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function co(e){return e.nesting<2||e.nesting>_i?null:e.inner[e.nesting-2]??null}function $p(e){if(e.nesting===1)return e.phase==="instruction";let t=co(e);return t!==null&&!t.separated}function Dd(e,t){if(!$p(e))return false;if(e.nesting===1)return t?!e.deletedInstructionOverflow:!e.instructionOverflow;let n=co(e);return t?!n.deletedOverflow:!n.overflow}function Xp(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let t=co(e);t&&(t.sawLive=true);}function _d(e,t){if(e.nesting===1){t?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let n=co(e);n&&(t?(n.deletedOverflow=true,n.deletedInstruction=""):(n.overflow=true,n.instruction=""));}function Ad(e){_d(e,false),_d(e,true);}function mR(e,t,n=false){if(!Dd(e,n))return;let r=co(e);n||Xp(e);let o=r?n?r.deletedInstruction:r.instruction:n?e.deletedInstruction:e.instruction;if(o.length+t.length>chunkIMMAG4QP_cjs.nc){_d(e,n);return}r?n?r.deletedInstruction=o+t:r.instruction=o+t:n?e.deletedInstruction=o+t:e.instruction=o+t;}function Ra(e,t,n,r){if(!$p(e))return;let o=chunkIMMAG4QP_cjs.ec(t);if(o||Xp(e),!Dd(e,o))return;if(r>Yn){Ad(e);return}let a=[],i=t.kind==="textValue"?[]:t.children??[];for(let s=i.length-1;s>=0;s-=1)a.push({node:i[s],depth:r+1});for(;a.length>0;){let s=a.pop();if(!In(n)){Ad(e);return}if(s.depth>Yn){Ad(e);return}if(s.node.kind==="textValue"){if(mR(e,s.node.value,o),!Dd(e,o))return;continue}let l=s.node.children??[];for(let d=l.length-1;d>=0;d-=1)a.push({node:l[d],depth:s.depth+1});}}function wa(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=zi(e);return r.overflow?null:xr(r.instruction)}let t=co(e);if(!t||t.separated)return null;t.separated=true;let n=pR(t);return n.overflow?null:xr(n.instruction)}function Pa(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&ba(e);}function Vp(e){return e.phase==="instruction"&&e.nesting>=1}function Yp(e){return e.phase==="result"&&e.nesting>=1}function jd(e){let t=false,n=false,r=false,o=Hd(),a=xa(),i=()=>t&&n&&r,s=p=>{p==="PAGE"?t=true:p==="NUMPAGES"?n=true:r=true;},l=false,d=[],c=(p,m)=>{if(p.kind!=="runProperties"){if(Pt(p,"begin")){Sa(a),a.nestingOverflow&&(l=true);return}if(Sr(p)){Ra(a,p,o,m);return}if(Pt(p,"separate")){let g=a.nesting,h=a.phase,b=wa(a);if(l)return;b&&(g<=1||h==="result")&&d.push(b);return}if(Pt(p,"end")&&(Pa(a),a.nesting===0)){if(!l)for(let g of d)s(g);d.length=0;}}},u=(p,m)=>{if(p.kind==="run")for(let g of p.children){if(!In(o))return;if(c(g,m+1),(g.kind==="drawing"||g.kind==="generic")&&!Sr(g)&&"children"in g&&g.children.length>0){let h={...a,inner:a.inner.map(v=>({...v}))},b=l,x=d;d=[],f(g,m+1),Object.assign(a,h),l=b,d=x;}if(i()||o.exhausted)return}},f=(p,m)=>{if(!i()&&In(o)&&!(m>Yn)&&p.kind!=="textValue"){if(p.kind==="paragraph"){ba(a),l=false,d.length=0;for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return;ba(a),l=false,d.length=0;return}if(p.kind==="run"){u(p,m);return}if(chunkIMMAG4QP_cjs.fc(p)){let g=xr(chunkIMMAG4QP_cjs.hc(p)??"");if(g){s(g);return}}for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return}};return f(e,0),!t&&!n&&!r?zd:{hasPage:t,hasNumPages:n,hasSectionPages:r}}var gR=64,hR=64,yR=[{value:1e3,glyph:"M"},{value:900,glyph:"CM"},{value:500,glyph:"D"},{value:400,glyph:"CD"},{value:100,glyph:"C"},{value:90,glyph:"XC"},{value:50,glyph:"L"},{value:40,glyph:"XL"},{value:10,glyph:"X"},{value:9,glyph:"IX"},{value:5,glyph:"V"},{value:4,glyph:"IV"},{value:1,glyph:"I"}];function vn(e){if(!Number.isFinite(e))return 1;let t=Math.trunc(e);return t<0?1:t>9999?9999:t}function Kn(e){return String(vn(e))}function Kp(e){let t=vn(e);return t<10?`0${t}`:String(t)}function Gd(e){let t=vn(e);t>3999&&(t=3999);let n="";for(let{value:r,glyph:o}of yR)for(;t>=r;)if(n+=o,t-=r,n.length>=64)return n.slice(0,64);return n||"I"}function Up(e){return Gd(e).toLowerCase()}function Wd(e){let t=vn(e),n="";for(;t>0&&n.length<8;)t-=1,n=String.fromCharCode(65+t%26)+n,t=Math.floor(t/26);return n||"A"}function qp(e){return Wd(e).toLowerCase()}function bR(e){let t=vn(e),n=t%100,r=t%10,o=n>=11&&n<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${t}${o}`}function xR(e){return vn(e).toString(16).toUpperCase()}function SR(e){let t=["*","\u2020","\u2021","\xA7"],n=vn(e);if(n<=0)return t[0];let r=(n-1)%t.length,o=Math.min(Math.floor((n-1)/t.length)+1,RR);return t[r].repeat(o)}var RR=8,Hi=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],wR=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function ji(e){let t=vn(e);if(t<20)return Hi[t];if(t<100){let r=t%10;return wR[Math.floor(t/10)]+(r===0?"":`-${Hi[r]}`)}if(t<1e3){let r=t%100;return `${Hi[Math.floor(t/100)]} hundred${r===0?"":` ${ji(r)}`}`}let n=t%1e3;return `${Hi[Math.floor(t/1e3)]} thousand${n===0?"":` ${ji(n)}`}`}function Zp(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function PR(e){return Zp(ji(e))}var IR=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function vR(e){let t=IR.get(e);return t!==void 0?t:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function TR(e){let t=ji(e),n=Math.max(t.lastIndexOf(" "),t.lastIndexOf("-")),r=n<0?"":t.slice(0,n+1);return Zp(r+vR(t.slice(n+1)))}function Tn(e,t){switch(e){case "decimal":return Kn(t);case "decimalZero":return Kp(t);case "upperRoman":return Gd(t);case "lowerRoman":return Up(t);case "upperLetter":return Wd(t);case "lowerLetter":return qp(t);case "ordinal":return bR(t);case "cardinalText":return PR(t);case "ordinalText":return TR(t);case "hex":return xR(t);case "chicago":return SR(t);case "numberInDash":return `- ${Kn(t)} -`;case "none":case "bullet":return "";default:return Kn(t)}}function $d(e,t,n){let r=e.length>64?e.slice(0,64):e,o="";for(let a=0;a<r.length&&!(o.length>=64);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let s=r[a+1];if(s>="1"&&s<="9"){let l=Number(s)-1,d=n[l]??"decimal",c=t[l]??1,u=d==="bullet"?"":Tn(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}var Gi="0";function Xd(e,t){if(!Number.isFinite(e)||e<0)return "";let n=Math.floor(e),r=t&&t.length>0?t:"decimal";if(r==="none"||r==="bullet")return Kn(n);let o=Tn(r,n);return o.length>0?o:Kn(n)}function kn(e,t){if(e==="PAGE")return Xd(t.pageNumber,t.format);let n=e==="NUMPAGES"?t.pageCount:t.sectionPageCount??t.pageCount;return !Number.isFinite(n)||n<0?"":Kn(Math.floor(n))}function Un(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function Vd(e,t=zd){if(!e||!Un(t))return "";let n=[];return t.hasPage&&(n.push(`p${e.pageNumber}`),e.format&&n.push(`f${e.format}`)),t.hasNumPages&&n.push(`n${e.pageCount}`),t.hasSectionPages&&n.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${n.join("/")}`}function uo(e,t,n,r){let o=false,a=e.map((i,s)=>{let l=t+s,d=i.pageFieldSource;return d&&d.pageNumber===l&&d.sectionPageCount===n&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:l,sectionPageCount:n,...r?{format:r}:{}}})});return o?a:e}function kR(e){for(let t of e.spans)if(t.fieldAtom?.pageField)return true;return false}function Jp(e){if(e.kind==="paragraph"){for(let t of e.lines)if(kR(t))return true;return false}for(let t of e.rows)for(let n of t.cells)for(let r of n.blocks)if(Jp(r))return true;return false}function Yd(e,t){let n=t,r=false;for(let o of e)n=Math.max(n,o.box.y+o.box.height),!r&&Jp(o)&&(r=true);return {usedBottom:n,hasBodyPageFields:r}}function OR(e,t){let n=null;for(let r=0;r<e.spans.length;r+=1){let o=e.spans[r],a=o.fieldAtom?.pageField?.kind;if(!a)continue;let i=kn(a,t);i!==o.text&&(n||(n=e.spans.slice()),n[r]={...o,text:i});}return n?{...e,spans:n}:e}function Qp(e,t){let n=null;for(let r=0;r<e.length;r+=1){let o=e[r],a=o;if(o.kind==="paragraph"){let i=null;for(let s=0;s<o.lines.length;s+=1){let l=o.lines[s],d=OR(l,t);d!==l&&(i||(i=o.lines.slice()),i[s]=d);}i&&(a={...o,lines:i});}else {let i=null;for(let s=0;s<o.rows.length;s+=1){let l=o.rows[s],d=null;for(let c=0;c<l.cells.length;c+=1){let u=l.cells[c],f=Qp(u.blocks,t);f!==u.blocks&&(d||(d=l.cells.slice()),d[c]={...u,blocks:f});}d&&(i||(i=o.rows.slice()),i[s]={...l,cells:d});}i&&(a={...o,rows:i});}a!==o&&(n||(n=e.slice()),n[r]=a);}return n??e}function qn(e){let t=e.pages.length;if(t===0)return e;let n=false,r=e.pages.map(o=>{let a=o.pageFieldSource,i={pageNumber:a?.pageNumber??o.index+1,pageCount:t,sectionPageCount:a?.sectionPageCount??t,...a?.format?{format:a.format}:{}},s=u=>{if(!u?.pageFieldProjector)return u;n=true;let f=u.pageFieldProjector(i),{pageFieldProjector:p,...m}=f;return m},l=s(o.header),d=s(o.footer),c=o.hasBodyPageFields===false?o.fragments:Qp(o.fragments,i);return l===o.header&&d===o.footer&&c===o.fragments?o:(c!==o.fragments&&(n=true),{...o,...l!==void 0?{header:l}:{},...d!==void 0?{footer:d}:{},...c!==o.fragments?{fragments:c}:{}})});return n?{revision:e.revision,pages:r}:e}var CR=`
2
+ \r`,BR=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function em(e,t){let n=t;for(;n<e.length&&CR.includes(e[n]);)n+=1;return n}function tm(e,t){if(e[t]==='"'){let r=t+1;for(;r<e.length&&e[r]!=='"';)r+=1;return r<e.length?r+1:r}let n=t;for(;n<e.length&&!`
3
+ \r"`.includes(e[n]);)n+=1;return n}function Wi(e){if(e.length===0||e.length>256)return null;let t=em(e,0);if(e[t]==='"')return null;let n=tm(e,t),r=e.slice(t,n).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=em(e,n);if(o>=e.length)return null;let a=tm(e,o),i=e.slice(a).trim();for(;;){let s=i.replace(BR,"").trimEnd();if(s===i)break;i=s;}if(i[0]==='"'){let s=i.indexOf('"',1);s===-1?i=i.slice(1):s===i.length-1&&(i=i.slice(1,-1));}return i.length===0?null:{display:i}}var nm=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),LR=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function FR(e){let t=e;for(;;){let n=t.replace(LR,"").trimEnd();if(n===t)return t;t=n;}}function MR(e){let t=e.trimStart();if(t.length===0)return null;if(t[0]==='"'){let o=t.indexOf('"',1),a=o===-1?t.slice(1):t.slice(1,o);return a.length>0?a:null}let n=t.search(/\s/),r=n===-1?t:t.slice(0,n);return r.length>0?r:null}function $i(e){let t=lo(e);if(t===null||t.length===0)return null;let n=FR(t),r=nm[n];if(r)return {property:r};if(!n.startsWith("DOCPROPERTY"))return null;let o=n.slice(11);if(o.length===0||!/^\s/.test(o))return null;let a=MR(o);if(a===null)return null;let i=nm[a];return i?{property:i}:null}function Xi(e,t){if(!t)return null;let n=t[e.property];return n!==void 0&&n.length>0?n:null}var ER=chunkIMMAG4QP_cjs.nc,NR=2048,AR=256;function DR(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
4
4
  `||r==="\r"){n+=1;continue}if(r==='"'){let a=n+1;for(;a<e.length&&e[a]!=='"';)a+=1;t.push({value:e.slice(n+1,a),quoted:true}),n=a<e.length?a+1:a;continue}let o=n;for(;o<e.length&&!`
5
- \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}var NR=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function Vi(e){if(e.length===0||e.length>LR)return null;let t=MR(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="HYPERLINK")return null;let r=null,o=false,a=null,i=false,s=null,l=false;for(let d=1;d<t.length;d+=1){let c=t[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!NR.has(u))continue;let f=t[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let p=f.value.length>0&&f.value.length<=ER;u==="\\l"?i||(i=true,p&&(a=f.value)):u==="\\o"&&(l||(l=true,p&&(s=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=FR&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:s}}function Ia(e){if(e.kind==="text"||e.kind==="deletedText"){let t="";for(let n of e.children)n.kind==="textValue"&&(t+=n.value);return t}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunkIMMAG4QP_cjs.Xb(e):""}function fo(e){if(!e||e.kind==="textValue")return [];let t=[];for(let n of e.children){if(n.kind==="textValue")continue;let r={};for(let o of n.attributes)r[o.localName]=o.value;t.push(Object.keys(r).length>0?{localName:n.localName,attributes:r}:{localName:n.localName});}return t}function Yi(e,t,n){let r=fo(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return n?[...n(t,r)]:t.length===0?r:[...t,...r]}var ln=Object.freeze({fontFamily:null,fontSizePt:10,color:null,bold:false,italic:false,underline:null,strike:false,doubleStrike:false,highlight:null,shading:null,verticalAlign:"baseline",baselineShiftPt:0,caps:false,smallCaps:false,characterSpacingPt:0,horizontalScalePercent:100,kerningMinPt:0,hidden:false}),AR=/^[0-9A-Fa-f]{6}$/;function Zn(e){let t=e.attributes?.val;return t===void 0||!(t==="0"||t==="false"||t==="off")}function va(e,t=false){return e===void 0||!(t?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function rm(e){return e===void 0||e==="auto"?null:AR.test(e)?e.toUpperCase():null}function om(e,t){return e==="minorAscii"||e==="minorHAnsi"?t.minor:e==="majorAscii"||e==="majorHAnsi"?t.major:null}function Me(e,t){let n={...ln};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(t?om(o?.asciiTheme,t)??om(o?.hAnsiTheme,t):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(n.fontFamily=i);break}case "sz":{let o=va(r.attributes?.val);o!==null&&o>0&&(n.fontSizePt=o/2);break}case "color":{n.color=rm(r.attributes?.val);break}case "b":n.bold=Zn(r);break;case "i":n.italic=Zn(r);break;case "u":{let o=r.attributes?.val??"single";n.underline=o==="none"||!Zn(r)?null:{variant:o,color:rm(r.attributes?.color)};break}case "strike":n.strike=Zn(r);break;case "dstrike":n.doubleStrike=Zn(r);break;case "highlight":{let o=r.attributes?.val;n.highlight=o&&o!=="none"?o:null;break}case "shd":{n.shading=ma(r.attributes)??null;break}case "vertAlign":{let o=r.attributes?.val;o==="superscript"||o==="subscript"?n.verticalAlign=o:o==="baseline"&&(n.verticalAlign="baseline");break}case "position":{let o=va(r.attributes?.val,true);o!==null&&(n.baselineShiftPt=o/2);break}case "caps":n.caps=Zn(r);break;case "smallCaps":n.smallCaps=Zn(r);break;case "spacing":{let o=va(r.attributes?.val,true);o!==null&&(n.characterSpacingPt=o/20);break}case "w":{let o=va(r.attributes?.val);o!==null&&o>0&&(n.horizontalScalePercent=o);break}case "kern":{let o=va(r.attributes?.val);o!==null&&(n.kerningMinPt=o/2);break}case "vanish":n.hidden=Zn(r);break;}return n}function Jn(e,t){return t.caps?e.toUpperCase():e}function Et(e,t,n){return n.measure(Jn(e,t),t)}function DR(e,t){return e.fontFamily===t.fontFamily&&e.fontSizePt===t.fontSizePt&&e.color===t.color&&e.bold===t.bold&&e.italic===t.italic&&e.strike===t.strike&&e.doubleStrike===t.doubleStrike&&e.highlight===t.highlight&&e.shading===t.shading&&e.verticalAlign===t.verticalAlign&&e.baselineShiftPt===t.baselineShiftPt&&e.caps===t.caps&&e.smallCaps===t.smallCaps&&e.characterSpacingPt===t.characterSpacingPt&&e.horizontalScalePercent===t.horizontalScalePercent&&e.kerningMinPt===t.kerningMinPt&&e.hidden===t.hidden&&e.underline?.variant===t.underline?.variant&&e.underline?.color===t.underline?.color}function Kd(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var _R=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),am=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),im=new Map([[167,"\u25AA"],[183,"\u2022"]]),sm=new Map([["symbol",_R],["wingdings",am],["wingdings 2",im],["wingdings 3",im],["webdings",am]]),zR=64;function Ta(e){return !e||e.length>zR?false:sm.has(e.toLowerCase())}function po(e,t,n){if(e.length===0||!Ta(t))return e;let r=sm.get(t.toLowerCase());if(n?.(t)===true)return e;let o="",a=false;for(let i of e){let s=i.codePointAt(0);if(s>=61440&&s<=61695){let l=r.get(s-61440);if(l!==void 0){o+=l,a=true;continue}}o+=i;}return a?o:e}var Qn=61440,ka=61695,Ud=128;function mo(e){return e.kind==="generic"&&e.namespaceUri===chunkIMMAG4QP_cjs.ca&&e.localName==="sym"}function lm(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes)if(n.localName===t&&(n.namespaceUri===chunkIMMAG4QP_cjs.ca||n.namespaceUri===""))return n.value}}function HR(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function Ki(e){return !(!Number.isInteger(e)||e<32||e>1114111||e>=127&&e<=159||e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65534)===65534||e===65532)}function go(e){if(!mo(e))return null;let t=HR(lm(e,"char"));if(t===null)return null;let n=lm(e,"font"),r=n&&n.length<=Ud?n:null,o=Ta(r),a=o&&t<=255&&t+Qn<=ka?t+Qn:t;if(o&&a>=Qn&&a<=ka){let i=po(String.fromCodePoint(a),r),s=i.codePointAt(0)<Qn;return {text:i,font:r,unicode:s}}return Ki(t)?{text:String.fromCodePoint(t),font:r,unicode:t<57344||t>63743}:null}function qd(e,t,n){if(!t.font)return {props:e,style:Me(e,n)};let r=[...e,{localName:"rFonts",attributes:{ascii:t.font,hAnsi:t.font}}];return {props:r,style:Me(r,n)}}var jR=256,GR=9;function WR(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
5
+ \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}var _R=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function Vi(e){if(e.length===0||e.length>ER)return null;let t=DR(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="HYPERLINK")return null;let r=null,o=false,a=null,i=false,s=null,l=false;for(let d=1;d<t.length;d+=1){let c=t[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!_R.has(u))continue;let f=t[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let p=f.value.length>0&&f.value.length<=AR;u==="\\l"?i||(i=true,p&&(a=f.value)):u==="\\o"&&(l||(l=true,p&&(s=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=NR&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:s}}function Ia(e){if(e.kind==="text"||e.kind==="deletedText"){let t="";for(let n of e.children)n.kind==="textValue"&&(t+=n.value);return t}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunkIMMAG4QP_cjs.Xb(e):""}function fo(e){if(!e||e.kind==="textValue")return [];let t=[];for(let n of e.children){if(n.kind==="textValue")continue;let r={};for(let o of n.attributes)r[o.localName]=o.value;t.push(Object.keys(r).length>0?{localName:n.localName,attributes:r}:{localName:n.localName});}return t}function Yi(e,t,n){let r=fo(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return n?[...n(t,r)]:t.length===0?r:[...t,...r]}var ln=Object.freeze({fontFamily:null,fontSizePt:10,color:null,bold:false,italic:false,underline:null,strike:false,doubleStrike:false,highlight:null,shading:null,verticalAlign:"baseline",baselineShiftPt:0,caps:false,smallCaps:false,characterSpacingPt:0,horizontalScalePercent:100,kerningMinPt:0,hidden:false}),zR=/^[0-9A-Fa-f]{6}$/;function Zn(e){let t=e.attributes?.val;return t===void 0||!(t==="0"||t==="false"||t==="off")}function va(e,t=false){return e===void 0||!(t?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function rm(e){return e===void 0||e==="auto"?null:zR.test(e)?e.toUpperCase():null}function om(e,t){return e==="minorAscii"||e==="minorHAnsi"?t.minor:e==="majorAscii"||e==="majorHAnsi"?t.major:null}function Ee(e,t){let n={...ln};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(t?om(o?.asciiTheme,t)??om(o?.hAnsiTheme,t):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(n.fontFamily=i);break}case "sz":{let o=va(r.attributes?.val);o!==null&&o>0&&(n.fontSizePt=o/2);break}case "color":{n.color=rm(r.attributes?.val);break}case "b":n.bold=Zn(r);break;case "i":n.italic=Zn(r);break;case "u":{let o=r.attributes?.val??"single";n.underline=o==="none"||!Zn(r)?null:{variant:o,color:rm(r.attributes?.color)};break}case "strike":n.strike=Zn(r);break;case "dstrike":n.doubleStrike=Zn(r);break;case "highlight":{let o=r.attributes?.val;n.highlight=o&&o!=="none"?o:null;break}case "shd":{n.shading=ma(r.attributes)??null;break}case "vertAlign":{let o=r.attributes?.val;o==="superscript"||o==="subscript"?n.verticalAlign=o:o==="baseline"&&(n.verticalAlign="baseline");break}case "position":{let o=va(r.attributes?.val,true);o!==null&&(n.baselineShiftPt=o/2);break}case "caps":n.caps=Zn(r);break;case "smallCaps":n.smallCaps=Zn(r);break;case "spacing":{let o=va(r.attributes?.val,true);o!==null&&(n.characterSpacingPt=o/20);break}case "w":{let o=va(r.attributes?.val);o!==null&&o>0&&(n.horizontalScalePercent=o);break}case "kern":{let o=va(r.attributes?.val);o!==null&&(n.kerningMinPt=o/2);break}case "vanish":n.hidden=Zn(r);break;}return n}function Jn(e,t){return t.caps?e.toUpperCase():e}function Mt(e,t,n){return n.measure(Jn(e,t),t)}function HR(e,t){return e.fontFamily===t.fontFamily&&e.fontSizePt===t.fontSizePt&&e.color===t.color&&e.bold===t.bold&&e.italic===t.italic&&e.strike===t.strike&&e.doubleStrike===t.doubleStrike&&e.highlight===t.highlight&&e.shading===t.shading&&e.verticalAlign===t.verticalAlign&&e.baselineShiftPt===t.baselineShiftPt&&e.caps===t.caps&&e.smallCaps===t.smallCaps&&e.characterSpacingPt===t.characterSpacingPt&&e.horizontalScalePercent===t.horizontalScalePercent&&e.kerningMinPt===t.kerningMinPt&&e.hidden===t.hidden&&e.underline?.variant===t.underline?.variant&&e.underline?.color===t.underline?.color}function Kd(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var jR=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),am=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),im=new Map([[167,"\u25AA"],[183,"\u2022"]]),sm=new Map([["symbol",jR],["wingdings",am],["wingdings 2",im],["wingdings 3",im],["webdings",am]]),GR=64;function Ta(e){return !e||e.length>GR?false:sm.has(e.toLowerCase())}function po(e,t,n){if(e.length===0||!Ta(t))return e;let r=sm.get(t.toLowerCase());if(n?.(t)===true)return e;let o="",a=false;for(let i of e){let s=i.codePointAt(0);if(s>=61440&&s<=61695){let l=r.get(s-61440);if(l!==void 0){o+=l,a=true;continue}}o+=i;}return a?o:e}var Qn=61440,ka=61695,Ud=128;function mo(e){return e.kind==="generic"&&e.namespaceUri===chunkIMMAG4QP_cjs.ca&&e.localName==="sym"}function lm(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes)if(n.localName===t&&(n.namespaceUri===chunkIMMAG4QP_cjs.ca||n.namespaceUri===""))return n.value}}function WR(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function Ki(e){return !(!Number.isInteger(e)||e<32||e>1114111||e>=127&&e<=159||e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65534)===65534||e===65532)}function go(e){if(!mo(e))return null;let t=WR(lm(e,"char"));if(t===null)return null;let n=lm(e,"font"),r=n&&n.length<=Ud?n:null,o=Ta(r),a=o&&t<=255&&t+Qn<=ka?t+Qn:t;if(o&&a>=Qn&&a<=ka){let i=po(String.fromCodePoint(a),r),s=i.codePointAt(0)<Qn;return {text:i,font:r,unicode:s}}return Ki(t)?{text:String.fromCodePoint(t),font:r,unicode:t<57344||t>63743}:null}function qd(e,t,n){if(!t.font)return {props:e,style:Ee(e,n)};let r=[...e,{localName:"rFonts",attributes:{ascii:t.font,hAnsi:t.font}}];return {props:r,style:Ee(r,n)}}var $R=256,XR=9;function VR(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
6
6
  `||r==="\r"){n+=1;continue}if(r==='"'){let a=n+1;for(;a<e.length&&e[a]!=='"';)a+=1;t.push({value:e.slice(n+1,a),quoted:true}),n=a<e.length?a+1:a;continue}let o=n;for(;o<e.length&&!`
7
- \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}function $R(e){if(e.quoted)return null;let t=e.value;if(t.length===0||t.length>GR)return null;let n;if(t.startsWith("0x")||t.startsWith("0X")){let r=t.slice(2);if(!/^[0-9A-Fa-f]{1,6}$/.test(r))return null;n=Number.parseInt(r,16);}else {if(!/^\d{1,7}$/.test(t))return null;n=Number.parseInt(t,10);}return n>1114111||n>=55296&&n<=57343?null:n}function Ui(e){if(e.length===0||e.length>jR)return null;let t=WR(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="SYMBOL")return null;let r=$R(t[1]);if(r===null)return null;let o=null,a=null,i=false;for(let s=2;s<t.length;s+=1){let l=t[s];if(l.quoted||!l.value.startsWith("\\"))continue;let d=l.value.toLowerCase();if(d==="\\f"){let c=t[s+1];c&&c.value.length>0&&c.value.length<=Ud&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,s+=1);continue}if(d==="\\s"){let c=t[s+1];if(c&&(c.quoted||!c.value.startsWith("\\"))&&(s+=1,/^\d{1,3}$/.test(c.value))){let u=Number(c.value);u>=1&&u<=999&&(a=u);}continue}d==="\\u"&&(i=true);}return {code:r,font:o,sizePt:a,unicode:i}}function qi(e,t,n){let r=[];e.font&&r.push({localName:"rFonts",attributes:{ascii:e.font,hAnsi:e.font}}),e.sizePt!==null&&r.push({localName:"sz",attributes:{val:String(e.sizePt*2)}});let o=r.length>0?[...t,...r]:t,a=Me(o,n);if(e.unicode)return Ki(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(Ta(i)){let s=e.code<=255&&e.code+Qn<=ka?e.code+Qn:e.code;if(s>=Qn&&s<=ka)return {text:po(String.fromCodePoint(s),i),props:o,style:a}}return Ki(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function Zi(){let e=null,t=0,n=false,r=false,o=()=>{e=null,t=0,n=false,r=false;};return {get active(){return e!==null},onSeparate(a,i){e===null&&a!==null&&(e=a,t=i,n=false,r=false);},onEnd(a,i){if(e===null||a>t)return null;let s=a===t,d=s&&i&&!(n&&!r)?kn(e,i):"";return o(),s?d:null},reset:o,noteResult(a){n=true,a&&(r=true);}}}var gt="all-markup",dm=Object.freeze([]),XR=32,VR={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function On(e,t){for(let n of e.attributes)if(n.localName===t&&n.namespaceUri===e.namespaceUri&&(n.kind==="wmlVal"||n.kind==="genericExtension"||n.kind==="xmlSpace"))return n.value}function Qi(e){if(e.kind==="textValue")return null;let t=VR[e.kind];if(t===void 0)return null;let n=On(e,"date");return {kind:t,id:On(e,"id")??"",author:On(e,"author")??"",...n===void 0?{}:{date:n},nodeId:e.id}}function es(e,t){return e.length===0?[t]:[...e,t]}function ts(e){return e.kind!=="textValue"&&chunkIMMAG4QP_cjs.ha(e.kind)}var ho=XR;function ot(e,t){if(t==="all-markup"||e.length===0)return true;for(let n of e)if(t==="proposed"?n.kind==="delete"||n.kind==="moveFrom":n.kind==="insert"||n.kind==="moveTo")return false;return true}function yo(e){if(e.kind==="textValue")return Ji;let t=e.children.find(o=>o.kind==="paragraphProperties");if(!t||t.kind==="textValue")return Ji;let n=t.children.find(o=>o.kind==="runProperties");if(!n||n.kind==="textValue")return Ji;let r=[];for(let o of n.children){if(o.kind==="textValue"||o.namespaceUri!==chunkIMMAG4QP_cjs.ca)continue;let a=YR[o.localName];if(a===void 0)continue;let i=On(o,"date");r.push({kind:a,id:On(o,"id")??"",author:On(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:Ji}var YR={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function Oa(e){if(e.kind==="textValue")return null;let t=e.children.find(r=>r.kind==="paragraphProperties");if(!t||t.kind==="textValue")return null;let n=t.children.find(r=>r.kind==="runProperties");if(!n||n.kind==="textValue")return null;for(let r of n.children){if(r.kind==="textValue"||r.namespaceUri!==chunkIMMAG4QP_cjs.ca||r.localName!=="rPrChange")continue;let o=On(r,"date");return {kind:"format",id:On(r,"id")??"",author:On(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var Ji=Object.freeze([]);function Zd(e){return e.find(t=>cm(t))??e[0]}function cm(e){return e.kind==="delete"||e.kind==="moveFrom"}function ns(e,t){let n=Zd(e);return {...n?{markRevisions:e,markRevision:n}:{},...t?{markFormatRevision:t}:{}}}function KR(e){return Zd(yo(e))??null}function UR(e){for(let t of e){if(t.localName!=="rPrChange"&&t.localName!=="pPrChange")continue;let n=t.attributes??{},r=n.date;return {kind:"format",id:n.id??"",author:n.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function dn(e){return e.some(t=>t.kind==="delete"||t.kind==="moveFrom")}function qR(e){let{simple:t,depth:n,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:s,cascadeRuns:l,themeFonts:d}=e,c="",u,f,p=false,m=xa(),g=Zi(),h=(x,v)=>{u||(u=x,f=v);},b=(x,v,w)=>{if(!(x.kind==="textValue"||v>Yn)){for(let O of x.children)if(O.kind!=="textValue"){if(!In(o))return;if(O.kind==="run"){let E=Yi(O,s,l),P=Me(E,d);for(let L of O.children){if(L.kind==="runProperties")continue;if(Pt(L,"begin")){Sa(m),m.nesting===1&&g.reset();continue}if(xr(L)){Ra(m,L,o,v+1);continue}if(Pt(L,"separate")){let y=m.nesting,ee=m.phase,I=wa(m);(y===1||ee==="result"&&!m.nestingOverflow)&&g.onSeparate(r?I:null,y);continue}if(Pt(L,"end")){let y=g.onEnd(m.nesting,r);y!==null&&(c+=y),Pa(m);continue}if(chunkIMMAG4QP_cjs.kc(L))continue;if(mo(L)){if(ot(w,i)&&(p=true),g.active){g.noteResult(!P.hidden&&ot(w,i));continue}let y=go(L);if(!y?.unicode||P.hidden||!ot(w,i))continue;h(E,P),c+=y.text;continue}let C=Ia(L);if(C.length===0)continue;let k=dn(w),H=!ot(w,i)||L.kind==="deletedText"&&!k;H||(p=true);let D=P.hidden||H;if(g.active){g.noteResult(!D),D||h(E,P);continue}D||(h(E,P),c+=C);}continue}if(chunkIMMAG4QP_cjs.fc(O)){let E=g.active?null:br(chunkIMMAG4QP_cjs.hc(O)??"");if(E&&r){if(!ot(w,i))continue;let P=c.length;b(O,v+1,w),c=c.slice(0,P),c+=kn(E,r);continue}b(O,v+1,w);continue}if(O.kind==="hyperlink"){b(O,v+1,w);continue}if(ts(O)&&w.length<ho){let E=Qi(O);b(O,v+1,E?es(w,E):w);continue}b(O,v+1,w);}}};return b(t,n,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:p}}function um(e){let{simple:t,pageContext:n,inheritedRunProperties:r,themeFonts:o}=e,a=qR(e),i=chunkIMMAG4QP_cjs.hc(t)??"",s=a.resultProps??r,l=br(i);if(l&&n){let g=a.resultStyle??Me(r,o);return g.hidden?null:{text:kn(l,n),props:s,style:g}}if(l&&e.bodyPageFields&&!n&&a.text.length===0&&!a.sawResultContent){let g=a.resultStyle??Me(r,o);return g.hidden?null:{text:Gi,props:s,style:g,pageField:{kind:l}}}let d=Ui(i);if(d){let g=qi(d,s,o);if(g)return g.style.hidden?null:{text:g.text,props:g.props,style:g.style}}let c=a.text.length===0&&!a.sawResultContent;if(c){let g=$i(i);if(g){let h=Xi(g,e.documentProperties);if(h!==null){let b=a.resultStyle??Me(r,o);return b.hidden?null:{text:h,props:s,style:b}}}}let u=c?Wi(i):null;if(u){let g=a.resultStyle??Me(r,o);return g.hidden?null:{text:u.display,props:s,style:g}}if(a.text.length===0)return null;let f=a.resultStyle??Me(r,o);if(f.hidden)return null;let p=e.currentLink?null:Vi(i),m=p?e.projectFieldLink?.(p)??null:null;return {text:a.text,props:s,style:f,...m?{link:m}:{}}}var ZR="\u2612",JR="\u2610";function QR(e){let t=lo(e);return t==="FORMCHECKBOX"?"checkbox":t==="FORMDROPDOWN"?"dropdown":null}function Jd(e,t){e.symbolSpec=Ui(t),!e.symbolSpec&&(e.linkSpec=Vi(t),!e.linkSpec&&(e.formSpec=QR(t),!e.formSpec&&(e.buttonSpec=Wi(t),!e.buttonSpec&&(e.docPropertySpec=$i(t)))));}function fm(e,t){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let n=e.formData.checked?ZR:JR;if(e.formData.sizeHalfPoints===null)return {text:n,props:e.props,style:e.style};let r=[...e.props,{localName:"sz",attributes:{val:String(e.formData.sizeHalfPoints)}}];return {text:n,props:r,style:Me(r,t)}}if(e.formSpec==="dropdown"){if(e.cachedText.length>0||e.sawResultContent||e.formData?.kind!=="dropdown")return null;let n=e.formData.entries[e.formData.selectedIndex]??"";return n.length===0?null:{text:n,props:e.props,style:e.style}}return null}function pm(e,t){if(e.symbolSpec){let r=qi(e.symbolSpec,e.props,t.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let n=fm(e,t.themeFonts);if(n)return {text:n.text,props:n.props,style:n.style};if(e.kind&&t.pageContext)return {text:kn(e.kind,t.pageContext),props:e.props,style:e.style};if(e.cachedText.length>0)return {text:e.cachedText,props:e.props,style:e.style};if(!e.sawResultContent){if(e.kind&&t.bodyPageFields)return {text:Gi,props:e.props,style:e.style,pageField:{kind:e.kind}};if(e.docPropertySpec){let r=Xi(e.docPropertySpec,t.documentProperties);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.buttonSpec)return {text:e.buttonSpec.display,props:e.props,style:e.style}}return null}function er(e,t,n){if(n<=t)return;let r=e[e.length-1];if(r&&r.end>=t){r.end=Math.max(r.end,n);return}e.push({start:t,end:n});}var ew=new Set(["left","center","right"]),tw=new Set(["margin","indent","leftMargin"]),nw=new Set(["dot","hyphen","underscore","middleDot"]);function mm(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkIMMAG4QP_cjs.ca)return null;let t="left",n="margin",r;for(let o of e.attributes)o.namespaceUri===chunkIMMAG4QP_cjs.ca&&(o.localName==="alignment"?t=o.value:o.localName==="relativeTo"?n=o.value:o.localName==="leader"&&(r=o.value));return {alignment:ew.has(t)?t:"left",relativeTo:tw.has(n)?n:"margin",...r!==void 0&&nw.has(r)?{leader:r}:{}}}Object.freeze({marks:Object.freeze(new Map)});function Sr(e,t){return chunkIMMAG4QP_cjs.gd(e,t)}function Qd(e,t){if(!chunkIMMAG4QP_cjs.xd(e))return null;if(chunkIMMAG4QP_cjs.nd(e)||chunkIMMAG4QP_cjs.od(e))return {text:"",projected:true,kind:null,noteId:null};let n=chunkIMMAG4QP_cjs.ld(e),r=chunkIMMAG4QP_cjs.td(e)??chunkIMMAG4QP_cjs.ud(e);if(!r)return null;let o=chunkIMMAG4QP_cjs.qd(e),a=o!==null?Sr(r,o):n?void 0:t?.activeNoteKey,i=o!==null?o:a?rw(a,r)??null:null,s=a,l=s!==void 0?n?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...l?{nav:l}:{},...s?{scopeId:s}:{}};if(n&&o!==null&&chunkIMMAG4QP_cjs.vd(e))return {text:"",...d};if(!t||!a)return {text:"",...d};let c=t.marks.get(a);return c==null?{text:"",...d}:t.reservedMarkText&&t.reservedMarkText.length>0?{text:c,measureText:t.reservedMarkText,...d}:{text:c,...d}}function rw(e,t){let n=`${t}:`;if(!e.startsWith(n))return null;let r=e.slice(n.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function hm(e){return chunkIMMAG4QP_cjs.ld(e)||chunkIMMAG4QP_cjs.md(e)||chunkIMMAG4QP_cjs.nd(e)||chunkIMMAG4QP_cjs.od(e)}function ow(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return (t>>>0).toString(16).padStart(8,"0")}var gm=new WeakMap;function ym(e){if(!e)return "";let t=gm.get(e);if(t!==void 0)return t;let n=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null]),r=`${e.marks.size}:${ow(n)}`;return gm.set(e,r),r}var bo=.7,aw=1.25,bm="Cambria Math";function os(e){return e.fontFamily===bm?e:Object.freeze({...e,fontFamily:bm})}function cn(e,t,n,r){return Object.freeze({x:e,y:t,width:n,height:r})}function Ct(e,t,n){return Object.freeze({...e,box:cn(t,n,e.box.width,e.box.height)})}var iw=4,sw=8,xm=new WeakMap;function lw(e){let t=os(e);return [t.fontFamily??"",t.fontSizePt,t.bold?1:0,t.italic?1:0,t.verticalAlign,t.baselineShiftPt,t.caps?1:0,t.smallCaps?1:0,t.characterSpacingPt,t.horizontalScalePercent,t.kerningMinPt].join("|")}function dw(e,t){if(t===void 0)return {projections:new WeakMap};let n=xm.get(e);n||(n=new Map,xm.set(e,n));let r=n.get(t);if(r)return n.delete(t),n.set(t,r),r;if(n.size>=iw){let a=n.keys().next().value;a!==void 0&&n.delete(a);}let o={projections:new WeakMap};return n.set(t,o),o}function xo(e,t,n){let r=n.styles.get(t);if(r)return r;let o=t===1?e:Object.freeze({...e,fontSizePt:e.fontSizePt*t,characterSpacingPt:e.characterSpacingPt*t});return n.styles.set(t,o),o}function Sm(e,t,n,r){let o=r.metrics.get(n);if(o)return o;let a=e.lineMetrics(xo(t,n,r));return r.metrics.set(n,a),a}function rs(e,t,n,r,o,a){let i=xo(r,o,a),s=Sm(n,r,o,a);return Object.freeze({kind:e,text:t,fontSizePt:i.fontSizePt,box:cn(0,0,Et(t,i,n),s.height),baseline:s.baseline})}function cw(e,t){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:cn(0,0,0,t.height),baseline:t.baseline});let n=Math.max(...e.map(i=>i.baseline)),r=Math.max(...e.map(i=>i.box.height-i.baseline)),o=0,a=e.map(i=>{let s=Ct(i,o,n-i.baseline);return o+=i.box.width,s});return Object.freeze({kind:"row",items:Object.freeze(a),box:cn(0,0,o,n+r),baseline:n})}function Mt(e,t,n,r,o){switch(e.kind){case "text":return rs("text",e.value,t,n,r,o);case "fallback":return rs("fallback",e.text||"\u2026",t,n,r,o);case "row":return cw(e.items.map(a=>Mt(a,t,n,r,o)),Sm(t,n,r,o));case "fraction":{let a=xo(n,r,o),i=Mt(e.numerator,t,n,r*bo,o),s=Mt(e.denominator,t,n,r*bo,o),l=Math.max(.75,a.fontSizePt*.08),d=Math.max(.75,a.fontSizePt*.08),c=Math.max(.6,a.fontSizePt*.055),u=Math.max(i.box.width,s.box.width)+l*2,f=i.box.height+d,p=f+c+d,m=p+s.box.height,g=Math.min(m,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:Ct(i,(u-i.box.width)/2,0),denominator:Ct(s,(u-s.box.width)/2,p),bar:cn(l/2,f,u-l,c),box:cn(0,0,u,m),baseline:g})}case "radical":{let a=xo(n,r,o),i=Mt(e.radicand,t,n,r,o),s=rs("text","\u221A",t,n,r,o),l=e.degree?Mt(e.degree,t,n,r*.55,o):void 0,d=Math.max(.55,a.fontSizePt*.05),c=Math.max(.35,a.fontSizePt*.035),u=d+c,f=l?Math.max(0,l.box.width*.65):0,p=f+s.box.width,m=u+i.baseline,g=Math.max(u+i.box.height,m+(s.box.height-s.baseline));return Object.freeze({kind:"radical",sign:Ct(s,f,m-s.baseline),radicand:Ct(i,p,u),...l?{degree:Ct(l,0,0)}:{},bar:cn(p,0,i.box.width,d),box:cn(0,0,p+i.box.width,g),baseline:m})}case "script":{let a=xo(n,r,o),i=Mt(e.base,t,n,r,o),s=e.subscript?Mt(e.subscript,t,n,r*bo,o):void 0,l=e.superscript?Mt(e.superscript,t,n,r*bo,o):void 0,d=Math.max(.4,a.fontSizePt*.04),c=i.box.width+d,u=0,f=l?Math.max(0,l.box.height-i.baseline*.45):0,p=f+i.baseline,m=p+a.fontSizePt*.08,g=c+Math.max(s?.box.width??0,l?.box.width??0,-d),h=Math.max(f+i.box.height,l?u+l.box.height:0,s?m+s.box.height:0);return Object.freeze({kind:"script",base:Ct(i,0,f),...s?{subscript:Ct(s,c,m)}:{},...l?{superscript:Ct(l,c,u)}:{},box:cn(0,0,g,h),baseline:p})}case "nary":{let a=xo(n,r,o),i=rs("text",e.operator,t,n,r*aw,o),s=Mt(e.body,t,n,r,o),l=e.lowerLimit?Mt(e.lowerLimit,t,n,r*bo,o):void 0,d=e.upperLimit?Mt(e.upperLimit,t,n,r*bo,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,l?.box.width??0,d?.box.width??0),p=d?d.box.height+c:0,m=p+i.baseline,g=p+i.box.height+(l?c:0),h=u+c,b=m-s.baseline,v=-Math.min(0,p,b,l?g:0),w=m+v,O=Math.max(p+i.box.height,l?g+l.box.height:0,b+s.box.height)+v;return Object.freeze({kind:"nary",operator:Ct(i,(u-i.box.width)/2,p+v),body:Ct(s,h,b+v),...l?{lowerLimit:Ct(l,(u-l.box.width)/2,g+v)}:{},...d?{upperLimit:Ct(d,(u-d.box.width)/2,v)}:{},box:cn(0,0,h+s.box.width,O),baseline:w})}}}function Rm(e,t,n){let r=os(n),o={styles:new Map,metrics:new Map};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:Mt(e.expression,t,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function wm(e,t){let n=dw(e,t);return (r,o)=>{let a=lw(o),i=n.projections.get(r),s=i?.get(a);if(s&&i)return i.delete(a),i.set(a,s),s;let l=Rm(r,e,o);if(i||(i=new Map,n.projections.set(r,i)),i.size>=sw){let d=i.keys().next().value;d!==void 0&&i.delete(d);}return i.set(a,l),l}}function as(e,t=[],n,r,o,a,i=gt,s,l,d,c,u,f=false){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let p=[],m=0,g,h=chunkIMMAG4QP_cjs.oc(e,{maxNesting:_i,maxInstructionChars:chunkIMMAG4QP_cjs.nc}),b=h.filter(T=>T.addressing==="atomic"),x=new Set(b.filter(T=>T.kind==="complex").map(T=>T.node.id)),v=new Set(h.filter(T=>T.kind==="complex"&&T.addressing==="editable-result").map(T=>T.node.id)),w=new Set;for(let T of b)for(let z of T.removeNodeIds)w.add(z);let O=xa(),E=Hd(),P=null,L=null,C=Zi(),k=dm,H=(T,z,F,K,W,V,Y)=>{if(T.length===0&&!K&&!Y?.inlineDrawing)return;let Q=Y?.linkOverride??g,G=Y?.revisionsOverride??k,U=Q?{link:Q}:{},re=G.length===0?{}:{revisions:G};if(K){p.push({text:T,props:z,style:F,start:W,end:V,projected:true,...Y?.measureText!==void 0?{measureText:Y.measureText}:{},...Y?.noteNav?{noteNav:Y.noteNav}:{},...Y?.inlineDrawing?{inlineDrawing:Y.inlineDrawing}:{},...Y?.equation?{equation:Y.equation}:{},...Y?.fieldAtom?{fieldAtom:Y.fieldAtom}:{},...U,...re});return}T.length!==0&&p.push({text:T,props:z,style:F,start:W,end:V,...Y?.positionalTab?{positionalTab:Y.positionalTab}:{},...Y?.breakKind?{breakKind:Y.breakKind}:{},...U,...re});},D=()=>{if(!P||!P.atomic){P=null,L=null;return}let T=P.atomStart,z=T+1;if(P.style.hidden){P=null,L=null;return}if(!ot(P.resultRevisions,i)){s&&dn(P.resultRevisions)&&er(s,T,z),P=null,L=null;return}let{resultLink:F,linkSpec:K,resultRevisions:W,formField:V}=P,Y,Q=()=>{if(Y)return Y;let U=!F&&K?c?.(K)??null:null,re=F??U;return Y={...W.length>0?{revisionsOverride:W}:{},...re?{linkOverride:re}:{},fieldAtom:{formField:V}},Y},G=pm(P,{pageContext:n,themeFonts:d,documentProperties:u,bodyPageFields:f});if(G){let U=Q(),re=G.pageField?{...U,fieldAtom:{formField:P.formField,pageField:G.pageField}}:U;H(G.text,G.props,G.style,true,T,z,re);}P=null,L=null;},y=()=>{if(!P)return;let T=!P.resultLink&&P.linkSpec?c?.(P.linkSpec)??null:null,z=F=>T&&!F.link?{...F,link:T}:F;if(P.atomic){m=P.atomStart;for(let F of P.buffered)p.push({...z(F),start:m,end:m+(F.end-F.start)}),m+=F.end-F.start;P.cachedText.length>0&&P.buffered.length===0&&(H(P.cachedText,P.props,P.style,false,m,m+P.cachedText.length,T?{linkOverride:T}:void 0),m+=P.cachedText.length);}else {for(let F of P.buffered)p.push(z(F));m=P.bufferOffset;}P=null,L=null;},ee=(T,z,F)=>{let K=(G,U,re,xe)=>{let ae=dn(k),se=F.hidden||!ot(k,i)||ae;if(U.hidden||se){if(ae&&s&&er(s,re,xe),!U.hidden)return;H("\uFFFC",z,F,true,re,xe);return}H("\uFFFC",z,F,true,re,xe,{inlineDrawing:Object.freeze({drawingNodeId:G,ownerPartName:l.ownerPartName,projection:U,resource:l.resourceOf(U)})});};if(T.kind==="drawing"){let G=m;m+=1;let U=m;if(!l)return;let re=l.projectionForAtom?.(T.id)??(T.kind==="drawing"?l.project(T):null);if(!re||re.kind!=="inline"){H("\uFFFC",z,F,true,G,U);return}K(T.id,re,G,U);return}if(chunkIMMAG4QP_cjs.Sa(T)){let G=m;m+=1;let U=m;if(!l)return;let re=l.projectionForAtom?.(T.id)??null;if(!re||re.kind!=="inline"){H("\uFFFC",z,F,true,G,U);return}K(T.id,re,G,U);return}if(hm(T)){let G=Qd(T,a),U=m,re=U+1;if(m=re,F.hidden||!G||G.text.length===0&&!G.measureText)return;let xe=G.scopeId&&G.nav?{scopeId:G.scopeId,direction:G.nav}:void 0;H(G.text.length>0?G.text:G.measureText??"",z,F,true,U,re,{...G.measureText!==void 0?{measureText:G.measureText}:{},...xe?{noteNav:xe}:{}});return}let W=mm(T);if(W){F.hidden||H(" ",z,F,false,m,m,{positionalTab:W});return}if(mo(T)){let G=go(T);if(!G||F.hidden||!ot(k,i))return;let U=qd(z,G,d);H(G.text,U.props,U.style,true,m,m);return}let V=Ia(T);if(V.length===0)return;let Y=dn(k);F.hidden||!ot(k,i)||T.kind==="deletedText"&&!Y||H(V,z,F,false,m,m+V.length,{...T.kind==="hardBreak"?{breakKind:chunkIMMAG4QP_cjs.Vb(T)}:{}}),Y&&s&&er(s,m,m+V.length),m+=V.length;},I=(T,z)=>{if(T.kind!=="run")return;let F=Yi(T,t,r),K=Me(F,d),W=()=>{P&&(P.capturedResultStyle||(P.props=F,P.style=K,P.capturedResultStyle=true),P.capturedResultRevisions||(P.resultRevisions=k,P.capturedResultRevisions=true,!P.resultLink&&g&&(P.resultLink=g)));};for(let V of T.children){if(!In(E)){if(y(),ba(O),C.reset(),V.kind==="runProperties"||Pt(V,"begin")||Pt(V,"separate")||Pt(V,"end")||xr(V)||w.has(V.id)&&L===null)continue;ee(V,F,K);continue}if(V.kind!=="runProperties"){if(Pt(V,"begin")){let Y=x.has(V.id);Sa(O),O.nesting===1&&(y(),C.reset(),L=Y?V.id:null,P={kind:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,formData:chunkIMMAG4QP_cjs.mc(V),atomic:Y,editableResult:v.has(V.id),atomStart:m,props:F,style:K,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:m,resultRevisions:k,capturedResultRevisions:k.length>0,formField:chunkIMMAG4QP_cjs.lc(V),...g?{resultLink:g}:{}},Y&&(m+=1));continue}if(xr(V)){Ra(O,V,E,z+1);continue}if(Pt(V,"separate")){let Y=O.nesting===1&&O.phase==="instruction",Q=O.nesting,G=wa(O);if(Y&&P){P.kind=G;let U=zi(O);!P.kind&&!U.overflow&&!O.nestingOverflow&&Jd(P,U.instruction),P.props=F,P.style=K;}else P?.atomic&&O.phase==="result"&&!O.nestingOverflow&&C.onSeparate(n?G:null,Q);continue}if(Pt(V,"end")){let Y=O.nesting===1;if(Y&&P?.atomic&&O.phase==="instruction"){let G=zi(O);!G.overflow&&!O.nestingOverflow&&Jd(P,G.instruction);}let Q=C.onEnd(O.nesting,n);Q!==null&&P?.atomic&&(P.cachedText+=Q),Pa(O),Y&&(P?.atomic?D():y());continue}if(!(Vp(O)&&P?.atomic)){if(P&&Yp(O)){if(mo(V)){if(P.atomic){if(ot(k,i)&&(P.sawResultContent=true),C.active){C.noteResult(!K.hidden&&ot(k,i));continue}if(!K.hidden&&ot(k,i)){let xe=go(V);xe?.unicode&&(W(),P.cachedText+=xe.text);}continue}let U=go(V);if(!U||K.hidden||!ot(k,i))continue;let re=qd(F,U,d);P.buffered.push({text:U.text,props:re.props,style:re.style,start:m,end:m,projected:true,...k.length>0?{revisions:k}:{},...g?{link:g}:{},fieldAtom:{formField:P.formField}});continue}let Y=Ia(V);if(Y.length===0)continue;let Q=dn(k),G=!ot(k,i)||V.kind==="deletedText"&&!Q;if(P.atomic&&!G&&(P.sawResultContent=true),Q&&s&&(P.atomic?er(s,P.atomStart,P.atomStart+1):er(s,m,m+Y.length)),G){P.atomic&&C.active&&C.noteResult(false),P.atomic||(m+=Y.length,P.bufferOffset=m);continue}if(P.atomic){if(C.active){if(C.noteResult(!K.hidden),K.hidden)continue;W();continue}if(K.hidden)continue;W(),P.cachedText+=Y;continue}if(K.hidden){m+=Y.length,P.bufferOffset=m;continue}P.capturedResultStyle||(P.props=F,P.style=K,P.capturedResultStyle=true),P.buffered.push({text:Y,props:F,style:K,start:m,end:m+Y.length,...k.length>0?{revisions:k}:{},...g?{link:g}:{},fieldAtom:{formField:P.formField}}),m+=Y.length,P.bufferOffset=m;continue}w.has(V.id)&&L===null&&x.size>0,ee(V,F,K);}}}};if(!In(E))return p;let M=chunkIMMAG4QP_cjs.Ma(),j=(T,z)=>{let F=m;if(m+=1,T.kind==="textValue"||(dn(k)&&s&&er(s,F,F+1),!ot(k,i)))return;let K=um({simple:T,depth:z,pageContext:n,budget:E,revisions:k,displayMode:i,inheritedRunProperties:t,cascadeRuns:r,themeFonts:d,currentLink:g,projectFieldLink:c,documentProperties:u,bodyPageFields:f});K&&H(K.text,K.props,K.style,true,F,F+1,{fieldAtom:{formField:false,...K.pageField?{pageField:K.pageField}:{}},...K.link?{linkOverride:K.link}:{}});},A=(T,z,F,K)=>{let W=chunkIMMAG4QP_cjs.Cb(T);if(W){let G=m++;dn(k)&&s&&er(s,G,m);let U=os(Me(t,d));return U.hidden||!ot(k,i)?void 0:H("\uFFFC",t,U,true,G,m,{equation:W})}if(chunkIMMAG4QP_cjs.fc(T)){j(T,z);return}if(T.kind==="run"){I(T,z);return}if(chunkIMMAG4QP_cjs.Hb(T)){if(K>=chunkIMMAG4QP_cjs.Gb||z>Yn)return;for(let G of chunkIMMAG4QP_cjs.Kb(T))A(G,z+1,F,K+1);return}if(z>Yn||z>=ho)return;let V=T.kind!=="textValue"&&"localName"in T?chunkIMMAG4QP_cjs.La(F,T):F;if(T.kind==="hyperlink"){let G=g;g=o?.(T)??void 0;for(let U of T.children)A(U,z+1,V,K);g=G;return}if(!ts(T))return;let Y=Qi(T);if(!Y||!In(E))return;let Q=k;k=es(Q,Y);for(let G of T.children)A(G,z+1,V,K);k=Q;};for(let T of e.children)A(T,1,M,0);return y(),p}function uw(e){let t=Object.entries(e.attributes??{}).sort(([n],[r])=>n<r?-1:n>r?1:0).map(([n,r])=>`${n}=${r}`).join(",");return `${e.localName}(${t})`}function fw(e){return e.map(uw).join(";")}var Pm=new WeakMap,vm=1<<18;function Tm(e){if(e.kind==="textValue")return `t:${e.value}`;let t=e.kind==="paragraph"||e.kind==="table";if(t){let r=Pm.get(e);if(r!==void 0)return r}let n=pw(e);return t&&n.length<=vm&&Pm.set(e,n),n}function pw(e){if(e.kind==="textValue")return `t:${e.value}`;let t=[`${e.kind}:${"localName"in e?e.localName:""}#${"id"in e?e.id:""}`];if("attributes"in e&&Array.isArray(e.attributes)){let n=[...e.attributes].map(r=>`${r.namespaceUri??""}:${r.localName}=${r.value}`).sort();for(let r of n)t.push(r);}for(let n of e.children??[])t.push(Tm(n));return `(${t.join("|")})`}var Im=new WeakMap;function Rr(e){let t=Math.round(e.width*1e3),n=e.drawingToken??"",r=e.exclusionToken??"",o=fw(e.properties),a=Im.get(e.paragraph);if(a&&a.producer===e.producer&&a.width===t&&a.drawingToken===n&&a.exclusionToken===r&&a.propertiesToken===o)return a.key;let i=[e.producer,t,n,r,o,Tm(e.paragraph)].join("\0");return i.length<=vm&&Im.set(e.paragraph,{producer:e.producer,width:t,drawingToken:n,exclusionToken:r,propertiesToken:o,key:i}),i}var km=new WeakMap;function Om(e,t){km.set(e,t);}function Cm(e,t,n,r){if(!e)return;let o=t??new Set;for(let a of n)o.add(a);for(let a of r){let i=km.get(a);if(i)for(let s of i)o.add(s);}t||e.retain(o);}var mw=8,gw=8;function hw(e={}){let t=Math.max(1,e.maxEntries??4096),n=t*8,r=new Map,o=0,a=0,i=0,s=0,l=0;return {get(d){let c=r.get(d);if(c===void 0){s+=1;return}return i+=1,r.delete(d),c.generation=o,r.set(d,c),c.value},set(d,c){for(r.has(d)&&r.delete(d),r.set(d,{value:c,generation:o});r.size>t;){let u=r.entries().next();if(u.done||u.value[1].generation>=o&&r.size<=n)break;r.delete(u.value[0]),l+=1;}},retentionPassDue(){return a+=1,a%mw===0},retain(d){o+=1;for(let c of d){let u=r.get(c);u&&(u.generation=o);}for(let[c,u]of r)o-u.generation>gw&&(r.delete(c),l+=1);},clear(){r.clear();},get stats(){return {hits:i,misses:s,evictions:l,size:r.size}}}}var Bm=21600;function We(e){return Number.isFinite(e)?e:0}function Ca(e){if(e.length===0)return Object.freeze([]);let t=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),n=[],r=t[0];for(let o=1;o<t.length;o+=1){let a=t[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(n.push(r),r=a);}return n.push(r),Object.freeze(n)}function yw(e,t){let n=[];for(let r of e)for(let o of t){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&n.push(Object.freeze({start:a,end:i}));}return Ca(n)}function ec(e,t,n){let r=[];for(let o of e){let a=Math.max(o.start,t),i=Math.min(o.end,n);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return Ca(r)}function bw(e,t,n){let r=[],o=t;for(let a of e)a.start>o&&r.push(Object.freeze({start:o,end:a.start})),o=Math.max(o,a.end);return o<n&&r.push(Object.freeze({start:o,end:n})),Object.freeze(r)}function Fm(e,t){return So(e,t)}function tc(e,t,n){return Fm(So(e,t),n)}function xw(e,t){let n=[],r=Math.min(e.length,ct);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],s=a.y,l=i.y;if(s===l)continue;let d=Math.min(s,l),c=Math.max(s,l);if(t<d||t>c||t===c&&l>s||t===d&&l<s)continue;let u=(t-s)/(l-s),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&n.push({x:f,delta:l>s?1:-1});}return n.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(n)}function Sw(e,t){let n=[],r=Math.min(e.length,ct);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(t-a.y)>1e-6)continue;let s=Math.min(a.x,i.x),l=Math.max(a.x,i.x);l>s&&n.push(Object.freeze({start:s,end:l}));}return Ca(n)}function Lm(e,t,n){let r=Rw(xw(e,t),n),o=Sw(e,t);return Ca([...r,...o])}function Rw(e,t){if(e.length===0)return Object.freeze([]);let n=[];if(t==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,s=e[a+1].x;s>i&&n.push(Object.freeze({start:i,end:s}));}return Object.freeze(n)}let r=0,o=null;for(let a of e){let i=r;r+=a.delta,i===0&&r!==0?o=a.x:i!==0&&r===0&&o!==null&&(a.x>o&&n.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(n)}function ww(e,t){return Object.freeze({top:We(e.top)+We(t.top),right:We(e.right)+We(t.right),bottom:We(e.bottom)+We(t.bottom),left:We(e.left)+We(t.left)})}function Pw(e,t,n,r,o,a){let i=t.x-e.x,s=t.y-e.y,l=r.x-n.x,d=r.y-n.y,c=i*d-s*l;if(Math.abs(c)<1e-12)return null;let f=((n.x-e.x)*s-(n.y-e.y)*i)/c,p=((n.x-e.x)*d-(n.y-e.y)*l)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let m=e.y+f*s;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function Iw(e,t,n,r){let o=[],a=Math.min(e.length,ct),i=Math.min(t.length,ct);if(a<2||i<2)return Object.freeze([]);let s=ct*ct,l=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let f=0;f<i;f+=1){if(l>=s)return Object.freeze(o);l+=1;let p=t[f],m=t[(f+1)%i],g=Pw(c,u,p,m,n,r);g!==null&&o.push(g);}}return Object.freeze(o)}function vw(e,t,n){let r=new Set;r.add(t),r.add(n);for(let o of e){let a=Math.min(o.length,ct);for(let i=0;i<a;i+=1){let s=o[i].y;Number.isFinite(s)&&s>=t-1e-6&&s<=n+1e-6&&r.add(s);}for(let i=0;i<a;i+=1){let s=o[i],l=o[(i+1)%a],d=s.y,c=l.y;if(d!==c)for(let u of [t,n]){let f=Math.min(d,c),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of Iw(e[0],e[1],t,n))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function Tw(e,t,n,r){let o=Lm(e,n,r);return t&&t.length>=3&&(o=yw(o,Lm(t,n,"nonzero"))),o}function Em(e,t,n,r,o=null){let a=We(n.top),i=We(n.bottom),s=We(n.left),l=We(n.right),d=t-i,c=t+a,u=vw(o&&o.length>=3?[e,o]:[e],d,c),f=[],p=u.length>=2?u.flatMap((m,g)=>{if(g+1>=u.length)return [];let h=u[g+1];return h<=m+1e-6?[m]:[m,h,(m+h)/2]}):[d];for(let m of p){let g=Tw(e,o,m,r);for(let h of g)f.push(Object.freeze({start:h.start-s,end:h.end+l}));}return Ca(f)}function Mm(e){let{x:t,y:n,width:r,height:o}=e;return Object.freeze([Object.freeze({x:t,y:n}),Object.freeze({x:t+r,y:n}),Object.freeze({x:t+r,y:n+o}),Object.freeze({x:t,y:n+o})])}function kw(e){let t=Math.max(0,We(e.extentWidthPt)),n=Math.max(0,We(e.extentHeightPt)),r=ss(e.transform,t,n),o=Math.min(e.polygonEmu.length,ct);if(o<3)return Mm({x:e.anchorX,y:e.anchorY,width:t,height:n});let a=r.width/Bm,i=r.height/Bm,s=[];for(let l=0;l<o;l+=1){let d=e.polygonEmu[l];s.push(Object.freeze({x:We(d.x)*a,y:We(d.y)*i}));}return ls({points:Object.freeze(s),sourceWidth:r.width,sourceHeight:r.height,offsetX:r.offsetX,offsetY:r.offsetY,crop:{left:0,top:0,right:0,bottom:0},transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:e.anchorX,anchorY:e.anchorY})}function Ow(e,t){let n=t.effectInsets??is,r=t.wrapDistances??is,o=We(t.contentLeft),a=We(t.contentRight);if(t.mode==="topAndBottom"){let c=Fm(So(t.contentBounds,n),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):ec([{start:o,end:a}],o,a)}if(t.mode==="square"){let c=tc(t.contentBounds,n,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):ec([{start:c.x,end:c.x+c.width}],o,a)}let i=t.polygon&&t.polygon.length>=3?t.polygon:Mm(t.contentBounds),s=t.mode==="through"?"evenodd":"nonzero",l=ww(r,n),d=Em(i,e,l,s,t.clipPolygon);return ec(d,o,a)}function Cw(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(t=>t.start)),end:Math.max(...e.map(t=>t.end))})}function Bw(e,t,n,r,o){if(n==="bothSides"||t.length===0)return e;let a=Cw(t);if(!a)return e;if(n==="left")return Object.freeze(e.filter(l=>l.end<=a.start+1e-4));if(n==="right")return Object.freeze(e.filter(l=>l.start>=a.end-1e-4));let i=Math.max(0,a.start-r),s=Math.max(0,o-a.end);return i===s?Object.freeze(e.filter(l=>l.start>=a.end-1e-4)):i>s?Object.freeze(e.filter(l=>l.end<=a.start+1e-4)):Object.freeze(e.filter(l=>l.start>=a.end-1e-4))}function Nm(e,t){let n=Ow(e,t),r=bw(n,t.contentLeft,t.contentRight);return Bw(r,n,t.textSide,t.contentLeft,t.contentRight)}function Lw(e,t,n,r){return n.length<3?false:Em(n,t,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function nc(e,t,n){let r=n.effectInsets??is,o=n.hitBounds;if(e<o.x||e>o.x+o.width||t<o.y||t>o.y+o.height)return false;if(n.clipPolygon&&n.clipPolygon.length>=3)return Lw(e,t,n.clipPolygon,r);let a=So(n.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function Am(e){let t=Object.freeze({top:We(e.wrapDistancesEmu.top/un),right:We(e.wrapDistancesEmu.right/un),bottom:We(e.wrapDistancesEmu.bottom/un),left:We(e.wrapDistancesEmu.left/un)}),n=e.mode==="tight"||e.mode==="through"?kw({polygonEmu:e.polygonEmu,extentWidthPt:e.extentWidthPt,extentHeightPt:e.extentHeightPt,anchorX:e.contentBounds.x,anchorY:e.contentBounds.y,transform:e.transform}):null;return Object.freeze({mode:e.mode,contentBounds:e.contentBounds,polygon:n,clipPolygon:e.geometry.clipPolygon,wrapDistances:t,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var It=1e5,ct=chunkIMMAG4QP_cjs.m.maxPolygonPoints,is=Object.freeze({top:0,right:0,bottom:0,left:0}),Fw=32,Ew=.1,Mw=new Set(["rect","ellipse","roundRect"]);function ge(e){return Number.isFinite(e)?e:0}function Nt(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function Dm(e,t){let n=e+t;return Number.isFinite(n)?n:0}function _m(e,t,n){let r=Nt(e,0,n),o=Nt(t,0,n);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=n){let i=(n-1)/a;r*=i,o*=i;}return {left:r,right:o}}function Nw(e){let t=_m(Nt(e.left,0,It),Nt(e.right,0,It),It),n=_m(Nt(e.top,0,It),Nt(e.bottom,0,It),It);return Object.freeze({left:t.left,top:n.left,right:t.right,bottom:n.right})}function Aw(e){let t=Nw({left:e.left*It,top:e.top*It,right:e.right*It,bottom:e.bottom*It});return Object.freeze({left:t.left/It,top:t.top/It,right:t.right/It,bottom:t.bottom/It})}function Dw(e){let t=n=>{if(!Number.isFinite(n))return 0;let r=n/un;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:t(e.top),right:t(e.right),bottom:t(e.bottom),left:t(e.left)})}function So(e,t){let n=ge(t.left),r=ge(t.right),o=ge(t.top),a=ge(t.bottom);return Object.freeze({x:e.x-n,y:e.y-o,width:Math.max(0,Dm(e.width,n+r)),height:Math.max(0,Dm(e.height,o+a))})}function _w(e,t,n){let r=e*Nt(n.left,0,1),o=t*Nt(n.top,0,1),a=e*(1-Nt(n.right,0,1)),i=t*(1-Nt(n.bottom,0,1));if(a<=r||i<=o){let s=e/2,l=t/2;return Object.freeze({left:s,top:l,right:s,bottom:l})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function ss(e,t,n){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?ge(tr(r)??t):Math.max(0,ge(t)),s=o>0?ge(tr(o)??n):Math.max(0,ge(n));return Object.freeze({offsetX:ge(tr(a.x)??0),offsetY:ge(tr(a.y)??0),width:i,height:s})}function zw(e,t,n,r){let o=_w(t,n,r),a=o.right-o.left,i=o.bottom-o.top,s=t>0?t:1,l=n>0?n:1,d=[],c=Math.min(e.length,ct);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+Nt(f.x/s,0,1)*a,m=i<=0?o.top:o.top+Nt(f.y/l,0,1)*i;d.push(Object.freeze({x:ge(p),y:ge(m)}));}return Object.freeze(d)}function zm(e,t,n){let r=e.x-t.x,o=e.y-t.y;n.flipHorizontal&&(r=-r),n.flipVertical&&(o=-o);let a=ge(n.rotationDegrees)*Math.PI/180,i=Math.cos(a),s=Math.sin(a),l=r*i-o*s,d=r*s+o*i;return Object.freeze({x:ge(l+t.x),y:ge(d+t.y)})}function Hm(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let t=e[0].x,n=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,ct);for(let i=1;i<a;i+=1){let s=e[i];!Number.isFinite(s.x)||!Number.isFinite(s.y)||(t=Math.min(t,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),o=Math.max(o,s.y));}return Object.freeze({x:t,y:r,width:Math.max(0,n-t),height:Math.max(0,o-r)})}function rc(e){let t=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),n=Ba(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let s of n)r.push(zm(Object.freeze({x:s.x+e.offsetX,y:s.y+e.offsetY}),t,e.transform));let o=Hm(r),a=Math.max(o.width,1e-6),i=Math.max(o.height,1e-6);return Object.freeze({bboxX:o.x,bboxY:o.y,scaleX:Math.max(0,ge(e.layoutWidth))/a,scaleY:Math.max(0,ge(e.layoutHeight))/i,anchorX:ge(e.anchorX),anchorY:ge(e.anchorY)})}function Hw(e,t){return Object.freeze({x:ge(t.anchorX+(e.x-t.bboxX)*t.scaleX),y:ge(t.anchorY+(e.y-t.bboxY)*t.scaleY)})}function ls(e){let t=e.mapping??rc({sourceWidth:e.sourceWidth,sourceHeight:e.sourceHeight,offsetX:e.offsetX,offsetY:e.offsetY,transform:e.transform,layoutWidth:e.layoutWidth,layoutHeight:e.layoutHeight,anchorX:e.anchorX,anchorY:e.anchorY}),n=zw(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(n.length>0?n.length:e.points.length,ct),o=n.length>0?n:e.points.slice(0,r),a=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),i=[];for(let s=0;s<r;s+=1){let l=o[s],d=Object.freeze({x:ge(l.x+e.offsetX),y:ge(l.y+e.offsetY)});i.push(Hw(zm(d,a,e.transform),t));}return Object.freeze(i)}function Ba(e,t,n,r){if(n<=0||r<=0){let o=Object.freeze({x:e,y:t});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:t}),Object.freeze({x:e+n,y:t}),Object.freeze({x:e+n,y:t+r}),Object.freeze({x:e,y:t+r})])}function jw(e,t,n){if(!e||!Mw.has(e))return null;if(t<=0||n<=0)return Ba(0,0,Math.max(0,t),Math.max(0,n));if(e==="rect")return Ba(0,0,t,n);if(e==="ellipse"){let s=[],l=t/2,d=n/2,c=t/2,u=n/2,f=Math.min(Fw,ct);for(let p=0;p<f;p+=1){let m=p/f*Math.PI*2;s.push(Object.freeze({x:l+c*Math.cos(m),y:d+u*Math.sin(m)}));}return Object.freeze(s)}let r=Math.min(t,n)*Ew,o=Math.max(0,r),a=t,i=n;return Object.freeze([Object.freeze({x:o,y:0}),Object.freeze({x:a-o,y:0}),Object.freeze({x:a,y:o}),Object.freeze({x:a,y:i-o}),Object.freeze({x:a-o,y:i}),Object.freeze({x:o,y:i}),Object.freeze({x:0,y:i-o}),Object.freeze({x:0,y:o})])}function wo(e){return Object.freeze({x:ge(e.x),y:ge(e.y)})}function Gw(e,t){if(e.length===0)return Object.freeze([]);let n=t.x+t.width,r=t.y+t.height,o=(i,s,l)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,ct);for(let u=0;u<c;u+=1){let f=wo(i[u]),p=wo(i[(u+1)%c]),m=s(f),g=s(p);if(m&&g?d.push(p):m&&!g?d.push(wo(l(f,p))):!m&&g&&(d.push(wo(l(f,p))),d.push(p)),d.length>=ct)break}return Object.freeze(d.slice(0,ct))},a=e.slice(0,ct).map(wo);return a=[...o(a,i=>i.x>=t.x,(i,s)=>{let l=s.x-i.x,d=Math.abs(l)>1e-6?(t.x-i.x)/l:0;return Object.freeze({x:t.x,y:ge(i.y+d*(s.y-i.y))})})],a=[...o(a,i=>i.x<=n,(i,s)=>{let l=s.x-i.x,d=Math.abs(l)>1e-6?(n-i.x)/l:0;return Object.freeze({x:n,y:ge(i.y+d*(s.y-i.y))})})],a=[...o(a,i=>i.y>=t.y,(i,s)=>{let l=s.y-i.y,d=Math.abs(l)>1e-6?(t.y-i.y)/l:0;return Object.freeze({x:ge(i.x+d*(s.x-i.x)),y:t.y})})],a=[...o(a,i=>i.y<=r,(i,s)=>{let l=s.y-i.y,d=Math.abs(l)>1e-6?(r-i.y)/l:0;return Object.freeze({x:ge(i.x+d*(s.x-i.x)),y:r})})],Object.freeze(a)}function Ww(e){let t=Hm(e);return Object.freeze({x:t.x,y:t.y,width:t.width,height:t.height})}function ds(e,t){let n=$w(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=a=>{if(!a||a.length===0)return a;let i=Gw(a,t);return i.length>=3?Object.freeze(i.map(wo)):Object.freeze([])};return Object.freeze({...e,paintBounds:n,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function $w(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function Xw(e){let t=Math.max(0,ge(e.extentWidth)),n=Math.max(0,ge(e.extentHeight)),r=ge(e.anchorX),o=ge(e.anchorY),a=Aw(e.crop),i=Dw(e.effectExtentEmu),s=ss(e.transform,t,n),l=Object.freeze({x:r,y:o,width:t,height:n}),d={sourceWidth:s.width,sourceHeight:s.height,offsetX:s.offsetX,offsetY:s.offsetY,crop:a,transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:r,anchorY:o},c=rc(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=ls({points:Ba(0,0,s.width,s.height),...d,crop:u,mapping:c}),p=jw(e.presetGeometry,s.width,s.height),m="none",g=p;g||(m=e.presetGeometry?"unsupported-preset":"none",g=Ba(0,0,s.width,s.height));let h=ls({points:g,...d,crop:u,mapping:c}),b=Ww(h.length>=3?h:f),x=So(b,i);return Object.freeze({contentBounds:l,paintBounds:x,hitBounds:x,transformedCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:m,effectInsets:i})}function Po(e){let t=e.projection.picture,n=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return Xw({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:t?.crop??{left:0,top:0,right:0,bottom:0},transform:t?.transform??n,presetGeometry:t?.presetGeometry??null})}function Vw(e){let{transform:t,contentWidth:n,contentHeight:r}=e;if(n<=0||r<=0)return null;let o=ss(t,n,r),a=o.width,i=o.height,s=rc({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:t,layoutWidth:n,layoutHeight:r,anchorX:0,anchorY:0}),l=ge(t.rotationDegrees),d=Math.abs(l%360)>1e-4,c=t.flipHorizontal?-1:1,u=t.flipVertical?-1:1,f=s.scaleX,p=s.scaleY,m=a>0?a/n:1,g=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(p-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(m-1)<1e-4&&Math.abs(g-1)<1e-4)return null;let b=l*Math.PI/180,x=Math.cos(b),v=Math.sin(b),w=o.offsetX+a/2,O=o.offsetY+i/2,E=f*x*c,P=-f*v*u,L=p*v*c,C=p*x*u,k=f*(w-x*c*(a/2)+v*u*(i/2)-s.bboxX),H=p*(O-v*c*(a/2)-x*u*(i/2)-s.bboxY);return Object.freeze({a:ge(E*m),b:ge(L*m),c:ge(P*g),d:ge(C*g),e:ge(k),f:ge(H)})}function aC(e){let t=Vw(e);if(t)return `matrix(${Ro(t.a)}, ${Ro(t.b)}, ${Ro(t.c)}, ${Ro(t.d)}, ${Ro(t.e)}, ${Ro(t.f)})`}function Ro(e){return Number.isFinite(e)?String(e):"0"}var Yw=Object.freeze({"http://schemas.openxmlformats.org/drawingml/2006/chart":"chart","http://schemas.openxmlformats.org/drawingml/2006/diagram":"diagram","http://schemas.microsoft.com/office/word/2010/wordprocessingGroup":"group","http://schemas.microsoft.com/office/word/2010/wordprocessingShape":"textbox","http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas":"canvas"}),Kw=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),Uw=Object.freeze({left:0,top:0,right:0,bottom:0});function Wm(e){let t=e.picture,n=null;if(!t){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";n=Yw[o]??"graphic";break}n===null&&(n="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:t?.crop??Uw,transform:t?.transform??Kw,placeholderGraphicKind:t?null:n,vectorShape:e.vectorShape})}var un=12700;function st(e){return e/un}function tr(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*un*72)return null;let t=e/un;return Number.isFinite(t)?t:null}function Cn(e){let t=st(e.inlineDistancesEmu.left),n=st(e.inlineDistancesEmu.right),r=st(e.inlineDistancesEmu.top),o=st(e.inlineDistancesEmu.bottom),a=st(e.effectExtentEmu.left),i=st(e.effectExtentEmu.right),s=st(e.effectExtentEmu.top),l=st(e.effectExtentEmu.bottom),d=st(e.extentEmu.cx),c=st(e.extentEmu.cy);return Object.freeze({distL:t,distR:n,distT:r,distB:o,effectL:a,effectR:i,effectT:s,effectB:l,width:d,height:c,totalWidth:t+a+d+i+n,lineContribution:r+s+c+l+o})}function $m(e,t,n){let r=Math.max(n.distT+n.effectT,e-n.height),o=Math.max(t,r-n.effectT+n.height+n.effectB+n.distB),a=r+n.height+n.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function cs(e,t,n){if(Math.abs(t)<1e-4&&Math.abs(n)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+t,y:a.y+n}),o=a=>Object.freeze({x:a.x+t,y:a.y+n});return Object.freeze({...e,contentBounds:r(e.contentBounds),paintBounds:r(e.paintBounds),hitBounds:r(e.hitBounds),transformedCorners:Object.freeze(e.transformedCorners.map(o)),clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function us(e,t,n){return Math.abs(t)<1e-4&&Math.abs(n)<1e-4?e:Object.freeze({...e,x:e.x+t,y:e.y+n,advanceStart:e.advanceStart+t,advanceEnd:e.advanceEnd+t,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+t,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+t,y:e.hitBounds.y+n}),geometry:cs(e.geometry,t,n)})}function oc(e,t){return e.length===0?e:e.map(n=>{let r=n.geometry.effectInsets.bottom,o=t-n.height-r,a=o-n.y;return Math.abs(a)<1e-4&&n.baselineOffset===t?n:Object.freeze({...n,y:o,baselineOffset:t,geometry:cs(n.geometry,0,a),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+a}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+a})})})}function ac(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function fs(e,t){let n=ac(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=cs(e.geometry,o,a);return Object.freeze({...e,paintBounds:n,hitBounds:r,geometry:ds(i,t)})}var jm=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),Gm=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function fn(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function Xm(e,t){return !(!t.layoutInCell||t.cellBox===null||!Number.isFinite(t.cellBox.height)||t.cellBox.height<=0||!Number.isFinite(t.cellBox.width)||t.cellBox.width<=0)}function Vm(e,t){if(Xm(e,t)){let l=t.cellBox;if(!l)return null;let{x:d,width:c}=l;switch(e){case "page":case "column":case "margin":case "leftMargin":return {left:d,right:d+c,center:d+c/2};case "rightMargin":return {left:d,right:d+c,center:d+c/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "insideMargin":return fn(t)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return fn(t)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let n=-t.marginLeft,r=t.contentWidth+t.marginRight,o=0,a=t.contentWidth,i=t.columnBox.x,s=t.columnBox.x+t.columnBox.width;switch(e){case "page":return {left:n,right:r,center:(n+r)/2};case "margin":return {left:o,right:a,center:o+t.contentWidth/2};case "column":return {left:i,right:s,center:i+t.columnBox.width/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "leftMargin":return {left:n,right:n,center:n};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return fn(t)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return fn(t)?{left:r,right:r,center:r}:{left:n,right:n,center:n};default:return null}}function Ym(e,t){if(Xm(e,t)){let l=t.cellBox;if(!l)return null;let{y:d,height:c}=l;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:d,bottom:d+c,center:d+c/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "insideMargin":return fn(t)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return fn(t)?{top:d+c,bottom:d+c,center:d+c}:{top:d,bottom:d+c,center:d+c/2};default:return null}}let n=-t.contentInsetTop,r=t.contentBandHeight,o=n+t.pageHeight-t.marginBottom,a=r+t.contentInsetBottom,i=0,s=t.contentHeight;switch(e){case "page":return {top:n,bottom:a,center:(n+a)/2};case "margin":return {top:i,bottom:s,center:i+t.contentHeight/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "topMargin":return {top:n,bottom:n,center:n};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return fn(t)?{top:i,bottom:i,center:i}:{top:s,bottom:s,center:s};case "outsideMargin":return fn(t)?{top:a,bottom:a,center:a}:{top:n,bottom:n,center:n};default:return null}}function Km(e){return e===null?0:tr(e)}function qw(e,t,n){let r=fn(n);if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.width)&&n.cellBox.width>0){let{x:o,width:a}=n.cellBox;return e==="inside"?r?o:o+a-t:e==="outside"?r?o+a-t:o:null}return e==="inside"?r?0:n.contentWidth-t:e==="outside"?r?n.contentWidth-t:0:null}function Zw(e,t,n){let r=fn(n),o=n.contentBandHeight;if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.height)&&n.cellBox.height>0){let{y:a,height:i}=n.cellBox;return e==="inside"?r?a:a+i-t:e==="outside"?r?a+i-t:a:null}return e==="inside"?r?0:o-t:e==="outside"?r?o-t:0:null}function Jw(e,t,n,r,o){let a=Vm(e,o);if(!a)return null;let i=Km(n);if(i===null)return null;if(t==="left")return a.left+i;if(t==="center")return a.center-r/2+i;if(t==="right")return a.right-r+i;if(t==="inside"||t==="outside"){let s=qw(t,r,o);if(s!==null)return s+i}return a.left+i}function Qw(e,t,n,r,o){let a=Ym(e,o);if(!a)return null;let i=Km(n);if(i===null)return null;if(t==="top")return a.top+i;if(t==="center")return a.center-r/2+i;if(t==="bottom")return a.bottom-r+i;if(t==="inside"||t==="outside"){let s=Zw(t,r,o);if(s!==null)return s+i}return a.top+i}function La(e){let t=e.contentBandHeight;return Object.freeze({x:-e.marginLeft,y:-e.contentInsetTop,width:e.pageWidth,height:t+e.contentInsetTop+e.contentInsetBottom})}function ic(e,t){let n=Cn(e),r=e.position,o=e.anchor,a="page",i="page";if(!r||!o)return Object.freeze({x:0,y:0,horizontalFrame:a,verticalFrame:i,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"});if(o.simplePos){let g=tr(r.simplePosition.xEmu),h=tr(r.simplePosition.yEmu);return Object.freeze(g===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:g-t.marginLeft,y:h-t.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let s=r.horizontal.relativeFrom,l=r.vertical.relativeFrom,d=Vm(s,t),c=Ym(l,t),u=d?.left??0,f=c?.top??0;if(!jm.has(s)||!Gm.has(l))return Object.freeze({x:0,y:0,horizontalFrame:jm.has(s)?s:a,verticalFrame:Gm.has(l)?l:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=Jw(s,r.horizontal.align,r.horizontal.offsetEmu,n.width,t),m=Qw(l,r.vertical.align,r.vertical.offsetEmu,n.height,t);return Object.freeze(p===null||m===null?{x:0,y:0,horizontalFrame:s,verticalFrame:l,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:m,horizontalFrame:s,verticalFrame:l,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function e0(e){let t=e.input.projection,n=t.anchor,r=Cn(t),o=Po({projection:t,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?ac(o.paintBounds,e.clipRegion):o.paintBounds,i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"anchoredDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.anchorParagraphId,anchorParagraphId:e.anchorParagraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:e.resolved.x,y:e.resolved.y,width:r.width,height:r.height,horizontalFrame:e.resolved.horizontalFrame,verticalFrame:e.resolved.verticalFrame,horizontalFrameOrigin:e.resolved.horizontalFrameOrigin,verticalFrameOrigin:e.resolved.verticalFrameOrigin,behindDocument:n?.behindDocument??false,allowOverlap:n?.allowOverlap??true,layoutInCell:n?.layoutInCell??true,relativeHeight:n?.relativeHeight??0,wrap:t.wrap==="inline"?"inFront":t.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?ds(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkIMMAG4QP_cjs.Ta(t),...Wm(t)})}function At(e,t){if(e.kind!=="paragraph")return [];let n=[],r=o=>{if(o.kind==="drawing"){let a=t.projectionForAtom?.(o.id)??t.project(o);a?.kind==="anchored"&&n.push({atomId:o.id,projection:a});return}if(chunkIMMAG4QP_cjs.Sa(o)){let a=t.projectionForAtom?.(o.id)??null;a?.kind==="anchored"&&n.push({atomId:o.id,projection:a});return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children)r(o);return Object.freeze(n)}function Kt(e){let t=new Map;if(e.kind!=="paragraph")return t;let n=0,r=o=>{if(o.kind==="drawing"||chunkIMMAG4QP_cjs.Sa(o)){t.set(o.id,n),n+=1;return}if(o.kind==="textValue"){n+=o.value.length;return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children){if(o.kind==="run"){for(let a of o.children)r(a);continue}if(o.kind==="hyperlink"){for(let a of o.children)if(a.kind==="run")for(let i of a.children)r(i);}}return t}function t0(e,t,n){for(let o of e.spans){if(t<o.range.start)break;if(t<o.range.end){if(n&&o.text!==void 0&&o.style!==void 0){let s=t-o.range.start;return o.box.x+Et(o.text.slice(0,s),o.style,n)}let a=o.range.end-o.range.start;if(a<=0)return o.box.x;let i=t-o.range.start;return o.box.x+o.box.width*i/a}if(t===o.range.end)return n&&o.text!==void 0&&o.style!==void 0?o.box.x+Et(o.text,o.style,n):o.box.x+o.box.width}let r;for(let o of e.spans)o.range.end<=t&&(r=o);return r?n&&r.text!==void 0&&r.style!==void 0?r.box.x+Et(r.text,r.style,n):r.box.x+r.box.width:e.box.x}function n0(e,t){let n=e.range.start;for(let r of e.spans)r.range.end<=t&&(n=r.range.end);return n}function sc(e,t,n){if(!(Math.abs(n)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===t&&(e[r]=Object.freeze({...o,y:o.y+n,geometry:cs(o.geometry,0,n),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+n}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+n})}));}}function Io(e){let t=At(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=Kt(e.paragraph),r=[];for(let o of t){let a=o.projection;if(a.hidden)continue;let i=n.get(o.atomId);if(i===void 0||e.fragmentRange&&(i<e.fragmentRange.start||i>=e.fragmentRange.end))continue;let s=e.lines.find(h=>i>=h.range.start&&i<h.range.end);if(!s)continue;let l=a.anchor?.layoutInCell??true,c=a.position?.horizontal.relativeFrom==="character"?n0(s,i):i,u=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:s.box,anchorCharacterX:t0(s,c,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:l}),f=ic(a,u),m=l&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0?e.cellBox:La(e.frameBase),g=e0({input:Object.freeze({drawingNodeId:o.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:a,resource:e.drawingLayout.resourceOf(a)}),anchorParagraphId:e.paragraphId,start:c,resolved:f,clipRegion:m,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(o.atomId)}:{},...a.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(a)}:{}});r.push(g);}return Object.freeze(r)}function Um(e){let t=Cn(e.input.projection),n=e.slotX+t.distL+t.effectL,r=Po({projection:e.input.projection,anchorX:n,anchorY:e.y,extentWidth:t.width,extentHeight:t.height}),o=e.contentTop!==void 0&&e.contentBottom!==void 0?Object.freeze({x:e.contentLeft,y:e.contentTop,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,e.contentBottom-e.contentTop)}):Object.freeze({x:e.contentLeft,y:r.paintBounds.y,width:Math.max(0,e.contentRight-e.contentLeft),height:r.paintBounds.height}),a=ac(r.paintBounds,o),i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"inlineDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.paragraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:n,y:e.y,width:t.width,height:t.height,distL:t.distL,distR:t.distR,distT:t.distT,distB:t.distB,advanceStart:e.slotX,advanceEnd:e.slotX+t.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:ds(r,o),resource:e.input.resource,accessibility:chunkIMMAG4QP_cjs.Ta(e.input.projection),...Wm(e.input.projection)})}var r0=256,cc=8,wr=8,vo=class extends Error{name="DrawingExclusionConvergenceError";constructor(t="drawing exclusion reflow did not converge"){super(t);}};function o0(e,t){let n=Math.max(1,t.columnCount);if(n<=1)return 0;let r=e.x+e.width/2;if(t.columnLefts&&t.columnWidths&&t.columnLefts.length===n){for(let i=0;i<n;i+=1){let s=t.columnLefts[i],l=s+t.columnWidths[i];if(r>=s-.001&&r<l+.001)return i}return n-1}let o=t.columnGapPt,a=(t.contentWidth-o*(n-1))/n;for(let i=0;i<n;i+=1){let s=i*(a+o),l=s+a;if(r>=s-.001&&r<l+.001)return i}return n-1}function dc(e){return e.behindDocument?"behind":"inFront"}function qm(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function a0(e){switch(e){case "inline":case "behind":case "inFront":return null;case "square":case "squareLeft":case "squareRight":return "square";case "tight":return "tight";case "through":return "through";case "topAndBottom":return "topAndBottom";default:return null}}function i0(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function uc(e){let t=a0(e.projection.wrap);if(!t||!e.projection.wrapGeometry)return null;let n=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return Am({mode:t,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:n.distancesEmu,polygonEmu:n.polygon,crop:e.projection.picture?.crop??{},transform:e.projection.picture?.transform??{rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:{x:0,y:0},extentEmu:{cx:0,cy:0}},extentWidthPt:e.geometry.contentBounds.width,extentHeightPt:e.geometry.contentBounds.height,textSide:t==="square"?i0(e.projection.wrap):n.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function fc(e){if(e.mode==="topAndBottom"||e.mode==="square")return tc(e.contentBounds,e.effectInsets,e.wrapDistances);let t=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)t.push(o.y);let n=Math.min(...t)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...t)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:n,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-n)})}function s0(e){if(e.drawing.behindDocument||!qm(e.drawing.wrap))return null;let t=e.yOverride??e.drawing.y,n=uc({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:t});return n?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,sourceOrder:e.sourceOrder,paintLayer:dc(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:t,verticalBand:fc(n),input:n}):null}function Zm(e,t){let n=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=t.sourceOrder??Number.MAX_SAFE_INTEGER;return n!==r?n-r:e.drawingNodeId.localeCompare(t.drawingNodeId)}function l0(e,t){let n=dc(e),r=dc(t);return n!==r?n==="behind"?-1:1:e.relativeHeight!==t.relativeHeight?e.relativeHeight-t.relativeHeight:Zm(e,t)}function Jm(e){return Object.freeze([...e].sort(l0))}function lc(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function pc(e,t){if(Math.abs(t)<=1e-4)return e;let n=e.geometry;return Object.freeze({...e,y:e.y+t,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+t}),geometry:Object.freeze({...n,contentBounds:Object.freeze({...n.contentBounds,y:n.contentBounds.y+t}),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+t}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+t}),transformedCorners:n.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+t})),clipPolygon:n.clipPolygon?n.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+t})):null})})}function Qm(e,t){let n=t.maxAttempts??r0,r=[...e].sort(Zm),o=[],a=[],i=[];for(let s of r){if(s.allowOverlap){o.push(s);continue}let l=s,d=0;for(;d<n&&o.some(g=>lc(g.paintBounds,l.paintBounds));){let p=o.find(g=>lc(g.paintBounds,l.paintBounds)),m=p.paintBounds.y+p.paintBounds.height-l.paintBounds.y+.001;l=pc(l,m),d+=1;}let c=o.some(f=>lc(f.paintBounds,l.paintBounds)),u=l.paintBounds.y+l.paintBounds.height>t.pageBottom+.001;if(c||u){a.push(l),i.push(l.drawingNodeId);continue}o.push(l);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}function To(e,t,n,r){let o=[{start:n,end:r}];for(let a of t){let i=a.verticalBand;if(e<i.y||e>=i.y+i.height)continue;let s=Nm(e,a.input),l=[];for(let d of o)for(let c of s){let u=Math.max(d.start,c.start),f=Math.min(d.end,c.end);f>u+1e-6&&l.push(Object.freeze({start:u,end:f}));}if(o=l,o.length===0)break}return Object.freeze(o)}function eg(e,t){for(let n of t)if(e>=n.start-1e-6&&e<n.end-1e-6)return Math.max(0,n.end-e);return 0}function d0(e,t){for(let n of t)if(n.end>e+1e-6)return n;return null}function mc(e,t){let n=d0(e,t);if(!n)return null;let r=Math.max(e,n.start),o=n.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function c0(e,t,n){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+t,y:r.y+n}),contentLeft:e.contentLeft+t,contentRight:e.contentRight+t,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{}})}function gc(e,t){return Object.freeze({...e,layoutFallback:t})}function tg(e,t,n,r){return e.length===0?e:Object.freeze(e.map(o=>{let a=o.verticalBand,i=o.input;return Object.freeze({...o,y:o.y-n,verticalBand:Object.freeze({...a,x:a.x-t,y:a.y-n}),input:Object.freeze({...c0(i,-t,-n),contentLeft:r?.left,contentRight:r?.right??i.contentRight-t})})}))}function ng(e,t,n){return Object.freeze(e.filter(r=>{let o=n(r.anchorParagraphId);return o===void 0?r.sourceOrder<=t:o<=t}))}function rg(e){let t=At(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Kt(e.paragraph),r=Math.max(1,e.contentRight-e.contentLeft),o=[];for(let a of t){if(a.projection.anchor?.behindDocument||!qm(a.projection.wrap)||a.projection.wrap==="topAndBottom")continue;let i=n.get(a.atomId);if(i===void 0)continue;let s=e.anchorLineTopByModelStart.get(i);if(s===void 0)continue;let l=Object.freeze({x:e.contentLeft,y:s,width:r,height:14}),d=e.anchorCellBox!=null,c=ic(a.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+r,pageHeight:792,marginLeft:e.contentLeft,marginRight:0,marginBottom:0,contentInsetTop:0,contentInsetBottom:0,contentWidth:r,contentHeight:648,contentBandHeight:648,paragraphBox:l,anchorLineBox:l,anchorCharacterX:e.contentLeft,columnBox:l,cellBox:d?e.anchorCellBox:null,layoutInCell:d,ownerPartName:e.drawingLayout.ownerPartName,storyKind:"body"}),u=e.paragraphStartY+s,f=Cn(a.projection),p=Po({projection:a.projection,anchorX:c.x,anchorY:u,extentWidth:f.width,extentHeight:f.height}),m=uc({projection:a.projection,geometry:p,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:c.x,anchorY:u});m&&o.push(Object.freeze({drawingNodeId:a.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:i,sourceOrder:e.sourceOrderOf?.(a.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:a.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:a.projection.anchor?.relativeHeight??0,allowOverlap:a.projection.anchor?.allowOverlap??true,columnIndex:0,y:u,verticalBand:fc(m),input:m}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function ps(e){let t=At(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Kt(e.paragraph),r=[];for(let o of t){if(o.projection.anchor?.behindDocument||o.projection.wrap!=="topAndBottom")continue;let a=n.get(o.atomId);if(a===void 0)continue;let i=e.anchorLineTopByModelStart.get(a);if(i===void 0)continue;let s=e.paragraphStartY+i,l=Cn(o.projection),d=Po({projection:o.projection,anchorX:e.contentLeft,anchorY:s,extentWidth:l.width,extentHeight:l.height}),c=uc({projection:o.projection,geometry:d,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:s});c&&r.push(Object.freeze({drawingNodeId:o.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:a,sourceOrder:e.sourceOrderOf?.(o.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:o.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:o.projection.anchor?.relativeHeight??0,allowOverlap:o.projection.anchor?.allowOverlap??true,columnIndex:e.columnIndex??0,y:s,verticalBand:fc(c),input:c}));}return r.sort((o,a)=>o.sourceOrder-a.sourceOrder),Object.freeze(r)}var u0=8;function f0(e,t,n,r){return e<r&&t>n}function Bn(e,t,n){if(t<=0||n.length===0)return 0;let r=0;for(let o=0;o<u0;o+=1){let a=e+r,i=a+t,s=a,l=false;for(let c of n){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,f=u+c.verticalBand.height;f0(a,i,u,f)&&(l=true,s=Math.max(s,f));}if(!l)break;let d=s-e;if(d<=r+.001)break;r=d;}return r}function p0(e){return e.map(t=>`${t.start.toFixed(3)}-${t.end.toFixed(3)}`).join(",")}function m0(e){let t=e.contentBounds,n=e.wrapDistances,r=e.effectInsets,o=e.polygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"",a=e.clipPolygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"";return [e.mode,e.textSide,t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),n.top.toFixed(3),n.right.toFixed(3),n.bottom.toFixed(3),n.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function pn(e){return e.length===0?"":e.map(t=>{let n=t.verticalBand,r=t.y+t.input.contentBounds.height/2,o=To(r,[t],t.input.contentLeft,t.input.contentRight);return [t.drawingNodeId,String(t.sourceOrder),String(t.columnIndex),t.y.toFixed(3),n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),m0(t.input),p0(o)].join("|")}).join(`
8
- `)}function hc(e,t,n,r,o,a){let i=[];for(let s of e){let l=t.projectionForAtom?.(s.drawingNodeId);if(!l)continue;let d=s.sourceOrder??o?.(s.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?o0(s,a):0,u=s0({drawing:s,projection:l,sourceOrder:d,contentLeft:n,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((s,l)=>s.sourceOrder-l.sourceOrder),Object.freeze(i)}function Fa(e,t,n,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:n}),i=new Map;for(let s of e){let l=s.anchoredDrawings??[],d=hc(l,t,0,n,r,a);d.length>0&&i.set(s.index,d);}return i}function ms(e,t){if(e.size!==t.size)return false;for(let[n,r]of e){let o=t.get(n);if(!o||pn(r)!==pn(o))return false}return true}function gs(e){return e.size===0?"":[...e.entries()].sort(([t],[n])=>t-n).map(([t,n])=>`${t}:${pn(n)}`).join(`
9
- `)}var g0=.001;function vt(e){return fo(e)}var ys=new Set(["-","\u2010","\u2013","\u2014"]);function og(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];r===" "?(n>0&&t[t.length-1]!==n&&t.push(n),t.push(n+1)):(r===" "||ys.has(r)&&n>0&&e[n-1]!==" "&&n+1<e.length&&e[n+1]!==" "&&!ys.has(e[n+1]))&&t.push(n+1);}return t[t.length-1]!==e.length&&t.push(e.length),t}function h0(e,t,n){for(let r=t;r<e.length;r+=1){let o=e[r];if(o.inlineDrawing)return true;let a=r===t?n:0;for(let i=a;i<o.text.length;i+=1){let s=o.text[i];if(s===`
10
- `||s===chunkIMMAG4QP_cjs.Ub)return false;if(s!==" "&&s!==" ")return true}}return false}function y0(e,t,n,r){let o=0,a=0,i=false;for(let s=t;s<e.length;s+=1){let l=e[s],d=s===t?n:0;for(let c=d;c<l.text.length;){let u=l.text[c];if(u===" "||u===`
11
- `||u===chunkIMMAG4QP_cjs.Ub)return {width:o,decimalOffset:i?a:o};let f=c+1,p=l.text.slice(c,f),m=r.measure(Jn(p,l.style),l.style);!i&&u==="."?i=true:i||(a+=m),o+=m,c=f;}}return {width:o,decimalOffset:i?a:o}}function b0(e,t,n,r){let o=e.relativeTo==="indent"||!r?{left:t,right:n}:r;return {positionPt:e.alignment==="right"?o.right:e.alignment==="center"?(o.left+o.right)/2:o.left,alignment:e.alignment,...e.leader?{leader:e.leader}:{}}}function ag(e,t,n,r=0){return (n.length>0?Bn(e,t.height,n):t.exclusionSkipBefore??0)+Math.max(0,t.height-t.trailingSpacing)+r}function x0(e){return Object.freeze({spans:e.spans.map(t=>Object.freeze({...t,box:Object.freeze({...t.box})})),drawings:e.drawings.map(t=>Object.freeze({...t,paintBounds:Object.freeze({...t.paintBounds}),hitBounds:Object.freeze({...t.hitBounds})})),start:e.start,end:e.end,width:e.width,height:e.height,baseline:e.baseline,leading:e.leading,trailingSpacing:e.trailingSpacing,...e.pageBreakAfter?{pageBreakAfter:true}:{},...e.columnBreakAfter?{columnBreakAfter:true}:{},...e.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{}})}var hs=31680;function Ea(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let t=Number(e);return Number.isFinite(t)?t>hs?chunkIMMAG4QP_cjs.Bc(hs):t<-hs?chunkIMMAG4QP_cjs.Bc(-hs):chunkIMMAG4QP_cjs.Bc(t):null}function Ma(e){let t=0,n=0;for(let r of e){if(r.localName!=="ind")continue;let o=r.attributes?.left??r.attributes?.start,a=r.attributes?.right??r.attributes?.end,i=Ea(o),s=Ea(a);i!==null&&(t=chunkIMMAG4QP_cjs.Dc(i)),s!==null&&(n=chunkIMMAG4QP_cjs.Dc(s));}return {left:t,right:n}}function ig(e){let t="left";for(let n of e)if(n.localName==="jc")switch(n.attributes?.val){case "center":t="center";break;case "right":case "end":t="right";break;case "both":case "distribute":t="both";break;default:t="left";}return t}function S0(e){return e.endsWith(" ")}function R0(e,t){let n=e.range.end-e.range.start;if(n<=0||e.text===" "||e.projected||e.text.length!==n)return Object.freeze([0,e.box.width]);let r=[0];for(let o=1;o<=e.text.length;o+=1)r.push(Et(e.text.slice(0,o),e.style,t));return Object.freeze(r)}function ko(e,t){return e.map(n=>n.caretEdges?n:{...n,caretEdges:R0(n,t)})}function bs(e,t,n,r,o,a,i){if(e.length===0)return e;if(o==="left")return ko(e,t);let s=e[e.length-1],l=s.text.replace(/\s+$/,""),d=l===s.text?0:s.box.width-Et(l,s.style,t),c=i??s.box.x-n+s.box.width-d,u=r-c;if(u<=0)return ko(e,t);if(o==="both"){if(a)return ko(e,t);let p=[];for(let b=1;b<e.length;b+=1)S0(e[b-1].text)&&p.push(b);if(p.length===0)return ko(e,t);let m=u/p.length,g=new Set(p),h=0;return ko(e.map((b,x)=>(g.has(x)&&(h+=m),h===0?b:{...b,box:{...b.box,x:b.box.x+h}})),t)}let f=o==="center"?u/2:u;return ko(e.map(p=>({...p,box:{...p.box,x:p.box.x+f}})),t)}function xs(e,t){return t===0||e.length===0?e:e.map(n=>us(n,t,0))}function Ss(e,t,n,r,o,a,i,s=[],l=io,d,c,u){let f=i!==null&&a?a.get(i):void 0;if(f)return f;let p=u?.lineSpacing??oo,m=u?.firstLineOffset??0,g=[],h=as(e,s,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??gt,g,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false),b=Math.max(0,u?.startOffset??0),x=h.flatMap(N=>{if(N.end<=b)return [];if(N.start>=b)return [N];let S=b-N.start;return [{...N,text:N.projected?N.text:N.text.slice(S),start:b}]}),v=wm(o,u?.equationCacheToken),w=N=>N.equation?v(N.equation,N.style):null;if(x.length===0&&u?.suppressEmptyPlaceholderLine)return [];let O=N=>({...N.revisions===void 0?{}:{revisions:N.revisions},...N.fieldAtom===void 0?{}:{fieldAtom:N.fieldAtom}}),E=u?.markRunProperties??s,P=E.length===0?ln:Me(E,u?.themeFonts),L=n+r,C=u?.contentLeft??n,k=u?.contentRight??L,H=u?.contentOriginX??0,D=[],y={spans:[],start:b,end:b,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},ee=false,I=new Map,M=(()=>{let N=new Set;if(!u?.inlineDrawingLayout)return N;let S=Kt(e);for(let B of At(e,u.inlineDrawingLayout)){if(B.projection.wrap!=="topAndBottom")continue;let q=S.get(B.atomId);q!==void 0&&N.add(q);}return N})(),j=(()=>{let N=new Set;if(!u?.inlineDrawingLayout)return N;let S=Kt(e);for(let B of At(e,u.inlineDrawingLayout)){if(B.projection.anchor?.behindDocument||B.projection.wrap==="topAndBottom"||B.projection.wrap==="inline"||B.projection.wrap==="behind"||B.projection.wrap==="inFront")continue;let q=S.get(B.atomId);q!==void 0&&N.add(q);}return N})(),A=[...(u?.pageExclusionZones??[]).filter(N=>N.anchorParagraphId===t).map(N=>N.anchorModelStart),...M,...j],T=(()=>{let N=new Map;if(A.length===0)return N;let S=0,B=0,q=0,ne=()=>q===0?m:0,$=()=>Math.max(1,r-ne()),be=le=>{S=le,B=0,q+=1;};for(let le of x){let _e=w(le);if(_e){let Ne=_e.geometry.box.width;B>0&&B+Ne>$()&&be(le.start),A.includes(le.start)&&N.set(le.start,S),B+=Ne;continue}if(le.inlineDrawing){let Ne=Cn(le.inlineDrawing.projection).totalWidth;B>0&&B+Ne>$()&&be(le.start),A.includes(le.start)&&N.set(le.start,S),B+=Ne;continue}if(le.text===`
12
- `||le.text===chunkIMMAG4QP_cjs.Ub){be(le.end);continue}let Pe=0;for(let Ne of og(le.text)){let et=le.text.slice(Pe,Ne);if(et.length===0)continue;let ht=le.style,Lt=o.measure(et,ht),Ge=le.start+Pe;B>0&&B+Lt>$()&&be(Ge),A.includes(Ge)&&N.set(Ge,S),A.includes(le.start)&&N.set(le.start,S),B+=Lt,Pe=Ne;}}for(let le of A)N.has(le)||N.set(le,S);return N})();for(let N of j){let S=T.get(N);S!==void 0&&I.set(N,S);}let z=N=>{if(N.anchorParagraphId!==t)return true;let S=T.get(N.anchorModelStart);return S!==void 0&&y.start>=S||y.end>=N.anchorModelStart},F=()=>{let N=u?.pageExclusionZones?.filter(q=>!(!z(q)||q.anchorParagraphId===t&&(q.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],S=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&I.size>0?rg({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:C,contentRight:k,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:I,anchorCellBox:u.anchorCellBox}):Object.freeze([]),B=u?.inlineDrawingLayout&&I.size>0?ps({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:C,contentRight:k,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:I}):Object.freeze([]);return Object.freeze([...N,...S,...B])},K=()=>D.length===0?m:0,W=()=>H+n+K(),V=()=>Math.max(1,r-K()),Y=()=>D.reduce((N,S)=>N+S.height+(S.exclusionSkipBefore??0),0),Q=()=>(u?.paragraphStartY??0)+Y(),G=N=>{M.has(N)&&I.set(N,Y());},U=()=>{if(ee)return;let N=F();if(N.length===0||y.spans.length>0||y.drawings.length>0)return;let S=o.lineMetrics(P),B=Bn(Q(),y.height>0?y.height:S.height,N);B>.001&&(ee=true,y.exclusionSkipBefore=B);},re=()=>Q()+(y.exclusionSkipBefore??0)+.001,xe=()=>{let N=F();if(N.length===0)return true;U();let S=To(re(),N,C,k),B=W()+y.width,q=mc(B,S);return q?(q.x>B+.001&&(y.width=q.x-W()),true):false},ae=()=>{let N=V(),S=F();if(S.length===0)return N;if(U(),!xe())return 0;let B=To(re(),S,C,k),q=W()+y.width,ne=eg(q,B);return ne<=.001?0:Math.min(N,y.width+ne)},se=()=>Math.max(0,ae()-y.width),we=()=>{let N=F();if(N.length===0||!N.some($=>$.anchorParagraphId!==t||y.end>$.anchorModelStart))return false;let B=To(re(),N,C,k),q=W()+y.width,ne=false;for(let $ of B){if(!ne){q>=$.start-1e-6&&q<$.end-1e-6&&(ne=true);continue}if($.end-$.start>.001)return y.width=$.start-W(),true}return false},Ie=N=>{if(A.length===0||N<Math.min(...A))return;let S=F().filter(be=>be.anchorParagraphId===t&&N>=be.anchorModelStart);if(S.length===0)return;U();let B=To(re(),S,C,k),q=W()+y.width,ne=-1;for(let be=0;be<B.length;be+=1){let le=B[be];if(q>=le.start-.001&&q<le.end-.001){ne=be;break}}if(ne>=0)return;let $=mc(q,B);$&&$.x>q+.001&&(y.width=$.x-W());},Se=N=>{F().filter(B=>B.input.mode==="topAndBottom"&&B.anchorParagraphId===t&&N>=B.anchorModelStart).length!==0&&((y.spans.length>0||y.drawings.length>0)&&Xe(),U());},Be=(N,S=0)=>S>64?se()>=N:(U(),xe()?N<=se()+.001?true:y.spans.length>0||y.drawings.length>0?we()&&N<=se()+.001?true:(Xe(),Be(N,S+1)):we()?Be(N,S+1):true:y.spans.length>0||y.drawings.length>0?(Xe(),Be(N,S+1)):true),He=(N,S)=>g.filter(B=>B.start<S&&B.end>N).map(B=>({start:Math.max(B.start,N),end:Math.min(B.end,S)})),je=-1,ft=0,zt=0,$e="",Ht=(N,S)=>{let B=o.lineMetrics(N),q=$m(B.baseline,y.height||B.height,S);return y.height===0?(y.height=q.lineHeight,y.baseline=q.baseline):(q.lineHeight>y.height&&(y.height=q.lineHeight),y.baseline=Math.max(y.baseline,q.baseline)),{extentTopY:q.extentTopY}},jt=()=>{if(y.drawings.length===0)return;y.spans.length===0&&(y.baseline=Math.max(y.baseline,...y.drawings.map(S=>S.y+S.height)));let N=oc(y.drawings,y.baseline);y.drawings.splice(0,y.drawings.length,...N),y.baseline=Math.max(y.baseline,...y.drawings.map(S=>S.y+S.height));},Qe=()=>{if(y.drawings.length===0)return;let N=oc(y.drawings,y.baseline);y.drawings.splice(0,y.drawings.length,...N);},Gt=N=>{let S=0;for(let B of y.spans)S=Math.max(S,o.lineMetrics(B.style).height);return S>0?S:N},at=()=>{if(y.drawings.length===0)return;let N=Math.max(0,...y.drawings.map(S=>S.y+S.height+S.distB));y.height=Math.max(y.height,N);},Bt=()=>{jt(),at();},An=()=>{if(!(y.spans.length<2))for(let N=1;N<y.spans.length;N+=1){let S=y.spans[N-1],B=y.spans[N],q=B.box.x-(S.box.x+S.box.width);q<=.001||y.drawings.some($=>$.start>=S.range.end&&$.start<B.range.start)||(y.spans[N]={...B,wrapAdvanceBefore:q});}},Xe=N=>{let S=o.lineMetrics(P),B=y.baseline;y.height===0?(y.height=S.height,y.baseline=S.baseline,B=S.baseline):N?.includeParagraphMark&&(y.height=Math.max(y.height,S.height)),Bt();let q=y.height,ne=p.rule==="auto"&&y.drawings.length>0,$=ne?Gt(S.height):q,be=vd(p,$,y.baseline);ne||(y.baseline=be.baseline),y.leading=Math.max(0,y.baseline-B),y.height=be.height,Qe(),p.rule!=="exact"&&at(),y.trailingSpacing=y.drawings.length===0&&p.rule!=="exact"?Math.max(0,be.height-q):0,(()=>{let Pe=F();if(Pe.length===0)return;let Ne=Bn(Q(),y.height,Pe);Ne>.001?y.exclusionSkipBefore=Ne:delete y.exclusionSkipBefore;})(),An();let _e=He(y.start,y.end);_e.length>0&&(y.deletedRanges=_e),D.push(y),je=-1,ft=0,ee=false,y={spans:[],drawings:[],start:y.end,end:y.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},U();},Le=false;for(let N=0;N<x.length;N+=1){let S=x[N];if(S.breakKind==="column"){let ne=o.lineMetrics(S.style);y.spans.push({range:{paragraphId:t,start:S.start,end:S.end},text:S.text,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:0,height:ne.height},...S.link?{link:S.link}:{},...O(S)}),y.height=Math.max(y.height,ne.height),y.baseline=Math.max(y.baseline,ne.baseline),y.end=S.end,Xe(),D[D.length-1].columnBreakAfter=true,Le=true;continue}if(S.equation){let ne=w(S),$=ne.geometry.box.width;if((y.spans.length>0||y.drawings.length>0)&&y.width+$>ae()&&Xe(),!Be($))continue;let le=Math.max(0,y.height-y.baseline),_e=Math.max(0,ne.geometry.box.height-ne.geometry.baseline);y.baseline=Math.max(y.baseline,ne.geometry.baseline),y.height=y.baseline+Math.max(le,_e),y.spans.push({range:{paragraphId:t,start:S.start,end:S.end},text:"\uFFFC",props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:$,height:ne.geometry.box.height},projected:true,equation:ne,...O(S)}),y.width+=$,y.end=S.end,je=-1,$e="";continue}if(S.projected&&!S.inlineDrawing&&S.text==="\uFFFC"){G(S.start),y.end=S.end;continue}if(S.inlineDrawing){G(S.start);let ne=Cn(S.inlineDrawing.projection),$=ne.totalWidth;if((y.spans.length>0||y.drawings.length>0)&&y.width+$>ae()&&Xe(),!Be($))continue;let{extentTopY:le}=Ht(S.style,ne),_e=W()+y.width;y.drawings.push(Um({input:S.inlineDrawing,paragraphId:t,start:S.start,slotX:_e,y:le,baseline:y.baseline,contentLeft:C,contentRight:k})),y.width+=$,y.end=S.end,je=-1,$e="";continue}if(S.text===chunkIMMAG4QP_cjs.Ub){let ne=o.lineMetrics(S.style);y.spans.push({range:{paragraphId:t,start:S.start,end:S.end},text:chunkIMMAG4QP_cjs.Ub,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:0,height:ne.height},...S.link?{link:S.link}:{},...O(S)}),y.height=Math.max(y.height,ne.height),y.baseline=Math.max(y.baseline,ne.baseline),y.end=S.end,Xe(),D[D.length-1].pageBreakAfter=true,Le=false;continue}if(S.text===`
7
+ \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}function YR(e){if(e.quoted)return null;let t=e.value;if(t.length===0||t.length>XR)return null;let n;if(t.startsWith("0x")||t.startsWith("0X")){let r=t.slice(2);if(!/^[0-9A-Fa-f]{1,6}$/.test(r))return null;n=Number.parseInt(r,16);}else {if(!/^\d{1,7}$/.test(t))return null;n=Number.parseInt(t,10);}return n>1114111||n>=55296&&n<=57343?null:n}function Ui(e){if(e.length===0||e.length>$R)return null;let t=VR(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="SYMBOL")return null;let r=YR(t[1]);if(r===null)return null;let o=null,a=null,i=false;for(let s=2;s<t.length;s+=1){let l=t[s];if(l.quoted||!l.value.startsWith("\\"))continue;let d=l.value.toLowerCase();if(d==="\\f"){let c=t[s+1];c&&c.value.length>0&&c.value.length<=Ud&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,s+=1);continue}if(d==="\\s"){let c=t[s+1];if(c&&(c.quoted||!c.value.startsWith("\\"))&&(s+=1,/^\d{1,3}$/.test(c.value))){let u=Number(c.value);u>=1&&u<=999&&(a=u);}continue}d==="\\u"&&(i=true);}return {code:r,font:o,sizePt:a,unicode:i}}function qi(e,t,n){let r=[];e.font&&r.push({localName:"rFonts",attributes:{ascii:e.font,hAnsi:e.font}}),e.sizePt!==null&&r.push({localName:"sz",attributes:{val:String(e.sizePt*2)}});let o=r.length>0?[...t,...r]:t,a=Ee(o,n);if(e.unicode)return Ki(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(Ta(i)){let s=e.code<=255&&e.code+Qn<=ka?e.code+Qn:e.code;if(s>=Qn&&s<=ka)return {text:po(String.fromCodePoint(s),i),props:o,style:a}}return Ki(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function Zi(){let e=null,t=0,n=false,r=false,o=()=>{e=null,t=0,n=false,r=false;};return {get active(){return e!==null},onSeparate(a,i){e===null&&a!==null&&(e=a,t=i,n=false,r=false);},onEnd(a,i){if(e===null||a>t)return null;let s=a===t,d=s&&i&&!(n&&!r)?kn(e,i):"";return o(),s?d:null},reset:o,noteResult(a){n=true,a&&(r=true);}}}var gt="all-markup",dm=Object.freeze([]),KR=32,UR={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function On(e,t){for(let n of e.attributes)if(n.localName===t&&n.namespaceUri===e.namespaceUri&&(n.kind==="wmlVal"||n.kind==="genericExtension"||n.kind==="xmlSpace"))return n.value}function Qi(e){if(e.kind==="textValue")return null;let t=UR[e.kind];if(t===void 0)return null;let n=On(e,"date");return {kind:t,id:On(e,"id")??"",author:On(e,"author")??"",...n===void 0?{}:{date:n},nodeId:e.id}}function es(e,t){return e.length===0?[t]:[...e,t]}function ts(e){return e.kind!=="textValue"&&chunkIMMAG4QP_cjs.ha(e.kind)}var ho=KR;function ot(e,t){if(t==="all-markup"||e.length===0)return true;for(let n of e)if(t==="proposed"?n.kind==="delete"||n.kind==="moveFrom":n.kind==="insert"||n.kind==="moveTo")return false;return true}function yo(e){if(e.kind==="textValue")return Ji;let t=e.children.find(o=>o.kind==="paragraphProperties");if(!t||t.kind==="textValue")return Ji;let n=t.children.find(o=>o.kind==="runProperties");if(!n||n.kind==="textValue")return Ji;let r=[];for(let o of n.children){if(o.kind==="textValue"||o.namespaceUri!==chunkIMMAG4QP_cjs.ca)continue;let a=qR[o.localName];if(a===void 0)continue;let i=On(o,"date");r.push({kind:a,id:On(o,"id")??"",author:On(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:Ji}var qR={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function Oa(e){if(e.kind==="textValue")return null;let t=e.children.find(r=>r.kind==="paragraphProperties");if(!t||t.kind==="textValue")return null;let n=t.children.find(r=>r.kind==="runProperties");if(!n||n.kind==="textValue")return null;for(let r of n.children){if(r.kind==="textValue"||r.namespaceUri!==chunkIMMAG4QP_cjs.ca||r.localName!=="rPrChange")continue;let o=On(r,"date");return {kind:"format",id:On(r,"id")??"",author:On(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var Ji=Object.freeze([]);function Zd(e){return e.find(t=>cm(t))??e[0]}function cm(e){return e.kind==="delete"||e.kind==="moveFrom"}function ns(e,t){let n=Zd(e);return {...n?{markRevisions:e,markRevision:n}:{},...t?{markFormatRevision:t}:{}}}function ZR(e){return Zd(yo(e))??null}function JR(e){for(let t of e){if(t.localName!=="rPrChange"&&t.localName!=="pPrChange")continue;let n=t.attributes??{},r=n.date;return {kind:"format",id:n.id??"",author:n.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function dn(e){return e.some(t=>t.kind==="delete"||t.kind==="moveFrom")}function QR(e){let{simple:t,depth:n,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:s,cascadeRuns:l,themeFonts:d}=e,c="",u,f,p=false,m=xa(),g=Zi(),h=(x,v)=>{u||(u=x,f=v);},b=(x,v,w)=>{if(!(x.kind==="textValue"||v>Yn)){for(let C of x.children)if(C.kind!=="textValue"){if(!In(o))return;if(C.kind==="run"){let M=Yi(C,s,l),P=Ee(M,d);for(let B of C.children){if(B.kind==="runProperties")continue;if(Pt(B,"begin")){Sa(m),m.nesting===1&&g.reset();continue}if(Sr(B)){Ra(m,B,o,v+1);continue}if(Pt(B,"separate")){let y=m.nesting,ee=m.phase,I=wa(m);(y===1||ee==="result"&&!m.nestingOverflow)&&g.onSeparate(r?I:null,y);continue}if(Pt(B,"end")){let y=g.onEnd(m.nesting,r);y!==null&&(c+=y),Pa(m);continue}if(chunkIMMAG4QP_cjs.kc(B))continue;if(mo(B)){if(ot(w,i)&&(p=true),g.active){g.noteResult(!P.hidden&&ot(w,i));continue}let y=go(B);if(!y?.unicode||P.hidden||!ot(w,i))continue;h(M,P),c+=y.text;continue}let O=Ia(B);if(O.length===0)continue;let k=dn(w),_=!ot(w,i)||B.kind==="deletedText"&&!k;_||(p=true);let D=P.hidden||_;if(g.active){g.noteResult(!D),D||h(M,P);continue}D||(h(M,P),c+=O);}continue}if(chunkIMMAG4QP_cjs.fc(C)){let M=g.active?null:xr(chunkIMMAG4QP_cjs.hc(C)??"");if(M&&r){if(!ot(w,i))continue;let P=c.length;b(C,v+1,w),c=c.slice(0,P),c+=kn(M,r);continue}b(C,v+1,w);continue}if(C.kind==="hyperlink"){b(C,v+1,w);continue}if(ts(C)&&w.length<ho){let M=Qi(C);b(C,v+1,M?es(w,M):w);continue}b(C,v+1,w);}}};return b(t,n,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:p}}function um(e){let{simple:t,pageContext:n,inheritedRunProperties:r,themeFonts:o}=e,a=QR(e),i=chunkIMMAG4QP_cjs.hc(t)??"",s=a.resultProps??r,l=xr(i);if(l&&n){let g=a.resultStyle??Ee(r,o);return g.hidden?null:{text:kn(l,n),props:s,style:g}}if(l&&e.bodyPageFields&&!n&&a.text.length===0&&!a.sawResultContent){let g=a.resultStyle??Ee(r,o);return g.hidden?null:{text:Gi,props:s,style:g,pageField:{kind:l}}}let d=Ui(i);if(d){let g=qi(d,s,o);if(g)return g.style.hidden?null:{text:g.text,props:g.props,style:g.style}}let c=a.text.length===0&&!a.sawResultContent;if(c){let g=$i(i);if(g){let h=Xi(g,e.documentProperties);if(h!==null){let b=a.resultStyle??Ee(r,o);return b.hidden?null:{text:h,props:s,style:b}}}}let u=c?Wi(i):null;if(u){let g=a.resultStyle??Ee(r,o);return g.hidden?null:{text:u.display,props:s,style:g}}if(a.text.length===0)return null;let f=a.resultStyle??Ee(r,o);if(f.hidden)return null;let p=e.currentLink?null:Vi(i),m=p?e.projectFieldLink?.(p)??null:null;return {text:a.text,props:s,style:f,...m?{link:m}:{}}}var ew="\u2612",tw="\u2610";function nw(e){let t=lo(e);return t==="FORMCHECKBOX"?"checkbox":t==="FORMDROPDOWN"?"dropdown":null}function Jd(e,t){e.symbolSpec=Ui(t),!e.symbolSpec&&(e.linkSpec=Vi(t),!e.linkSpec&&(e.formSpec=nw(t),!e.formSpec&&(e.buttonSpec=Wi(t),!e.buttonSpec&&(e.docPropertySpec=$i(t)))));}function fm(e,t){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let n=e.formData.checked?ew:tw;if(e.formData.sizeHalfPoints===null)return {text:n,props:e.props,style:e.style};let r=[...e.props,{localName:"sz",attributes:{val:String(e.formData.sizeHalfPoints)}}];return {text:n,props:r,style:Ee(r,t)}}if(e.formSpec==="dropdown"){if(e.cachedText.length>0||e.sawResultContent||e.formData?.kind!=="dropdown")return null;let n=e.formData.entries[e.formData.selectedIndex]??"";return n.length===0?null:{text:n,props:e.props,style:e.style}}return null}function pm(e,t){if(e.symbolSpec){let r=qi(e.symbolSpec,e.props,t.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let n=fm(e,t.themeFonts);if(n)return {text:n.text,props:n.props,style:n.style};if(e.kind&&t.pageContext)return {text:kn(e.kind,t.pageContext),props:e.props,style:e.style};if(e.cachedText.length>0)return {text:e.cachedText,props:e.props,style:e.style};if(!e.sawResultContent){if(e.kind&&t.bodyPageFields)return {text:Gi,props:e.props,style:e.style,pageField:{kind:e.kind}};if(e.docPropertySpec){let r=Xi(e.docPropertySpec,t.documentProperties);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.buttonSpec)return {text:e.buttonSpec.display,props:e.props,style:e.style}}return null}function er(e,t,n){if(n<=t)return;let r=e[e.length-1];if(r&&r.end>=t){r.end=Math.max(r.end,n);return}e.push({start:t,end:n});}var rw=new Set(["left","center","right"]),ow=new Set(["margin","indent","leftMargin"]),aw=new Set(["dot","hyphen","underscore","middleDot"]);function mm(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkIMMAG4QP_cjs.ca)return null;let t="left",n="margin",r;for(let o of e.attributes)o.namespaceUri===chunkIMMAG4QP_cjs.ca&&(o.localName==="alignment"?t=o.value:o.localName==="relativeTo"?n=o.value:o.localName==="leader"&&(r=o.value));return {alignment:rw.has(t)?t:"left",relativeTo:ow.has(n)?n:"margin",...r!==void 0&&aw.has(r)?{leader:r}:{}}}Object.freeze({marks:Object.freeze(new Map)});function Rr(e,t){return chunkIMMAG4QP_cjs.gd(e,t)}function Qd(e,t){if(!chunkIMMAG4QP_cjs.xd(e))return null;if(chunkIMMAG4QP_cjs.nd(e)||chunkIMMAG4QP_cjs.od(e))return {text:"",projected:true,kind:null,noteId:null};let n=chunkIMMAG4QP_cjs.ld(e),r=chunkIMMAG4QP_cjs.td(e)??chunkIMMAG4QP_cjs.ud(e);if(!r)return null;let o=chunkIMMAG4QP_cjs.qd(e),a=o!==null?Rr(r,o):n?void 0:t?.activeNoteKey,i=o!==null?o:a?iw(a,r)??null:null,s=a,l=s!==void 0?n?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...l?{nav:l}:{},...s?{scopeId:s}:{}};if(n&&o!==null&&chunkIMMAG4QP_cjs.vd(e))return {text:"",...d};if(!t||!a)return {text:"",...d};let c=t.marks.get(a);return c==null?{text:"",...d}:t.reservedMarkText&&t.reservedMarkText.length>0?{text:c,measureText:t.reservedMarkText,...d}:{text:c,...d}}function iw(e,t){let n=`${t}:`;if(!e.startsWith(n))return null;let r=e.slice(n.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function hm(e){return chunkIMMAG4QP_cjs.ld(e)||chunkIMMAG4QP_cjs.md(e)||chunkIMMAG4QP_cjs.nd(e)||chunkIMMAG4QP_cjs.od(e)}function sw(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return (t>>>0).toString(16).padStart(8,"0")}var gm=new WeakMap;function ym(e){if(!e)return "";let t=gm.get(e);if(t!==void 0)return t;let n=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null]),r=`${e.marks.size}:${sw(n)}`;return gm.set(e,r),r}var bo=.7,lw=1.25,bm="Cambria Math";function os(e){return e.fontFamily===bm?e:Object.freeze({...e,fontFamily:bm})}function cn(e,t,n,r){return Object.freeze({x:e,y:t,width:n,height:r})}function Ct(e,t,n){return Object.freeze({...e,box:cn(t,n,e.box.width,e.box.height)})}var dw=4,cw=8,xm=new WeakMap;function uw(e){let t=os(e);return [t.fontFamily??"",t.fontSizePt,t.bold?1:0,t.italic?1:0,t.verticalAlign,t.baselineShiftPt,t.caps?1:0,t.smallCaps?1:0,t.characterSpacingPt,t.horizontalScalePercent,t.kerningMinPt].join("|")}function fw(e,t){if(t===void 0)return {projections:new WeakMap};let n=xm.get(e);n||(n=new Map,xm.set(e,n));let r=n.get(t);if(r)return n.delete(t),n.set(t,r),r;if(n.size>=dw){let a=n.keys().next().value;a!==void 0&&n.delete(a);}let o={projections:new WeakMap};return n.set(t,o),o}function xo(e,t,n){let r=n.styles.get(t);if(r)return r;let o=t===1?e:Object.freeze({...e,fontSizePt:e.fontSizePt*t,characterSpacingPt:e.characterSpacingPt*t});return n.styles.set(t,o),o}function Sm(e,t,n,r){let o=r.metrics.get(n);if(o)return o;let a=e.lineMetrics(xo(t,n,r));return r.metrics.set(n,a),a}function rs(e,t,n,r,o,a){let i=xo(r,o,a),s=Sm(n,r,o,a);return Object.freeze({kind:e,text:t,fontSizePt:i.fontSizePt,box:cn(0,0,Mt(t,i,n),s.height),baseline:s.baseline})}function pw(e,t){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:cn(0,0,0,t.height),baseline:t.baseline});let n=Math.max(...e.map(i=>i.baseline)),r=Math.max(...e.map(i=>i.box.height-i.baseline)),o=0,a=e.map(i=>{let s=Ct(i,o,n-i.baseline);return o+=i.box.width,s});return Object.freeze({kind:"row",items:Object.freeze(a),box:cn(0,0,o,n+r),baseline:n})}function Et(e,t,n,r,o){switch(e.kind){case "text":return rs("text",e.value,t,n,r,o);case "fallback":return rs("fallback",e.text||"\u2026",t,n,r,o);case "row":return pw(e.items.map(a=>Et(a,t,n,r,o)),Sm(t,n,r,o));case "fraction":{let a=xo(n,r,o),i=Et(e.numerator,t,n,r*bo,o),s=Et(e.denominator,t,n,r*bo,o),l=Math.max(.75,a.fontSizePt*.08),d=Math.max(.75,a.fontSizePt*.08),c=Math.max(.6,a.fontSizePt*.055),u=Math.max(i.box.width,s.box.width)+l*2,f=i.box.height+d,p=f+c+d,m=p+s.box.height,g=Math.min(m,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:Ct(i,(u-i.box.width)/2,0),denominator:Ct(s,(u-s.box.width)/2,p),bar:cn(l/2,f,u-l,c),box:cn(0,0,u,m),baseline:g})}case "radical":{let a=xo(n,r,o),i=Et(e.radicand,t,n,r,o),s=rs("text","\u221A",t,n,r,o),l=e.degree?Et(e.degree,t,n,r*.55,o):void 0,d=Math.max(.55,a.fontSizePt*.05),c=Math.max(.35,a.fontSizePt*.035),u=d+c,f=l?Math.max(0,l.box.width*.65):0,p=f+s.box.width,m=u+i.baseline,g=Math.max(u+i.box.height,m+(s.box.height-s.baseline));return Object.freeze({kind:"radical",sign:Ct(s,f,m-s.baseline),radicand:Ct(i,p,u),...l?{degree:Ct(l,0,0)}:{},bar:cn(p,0,i.box.width,d),box:cn(0,0,p+i.box.width,g),baseline:m})}case "script":{let a=xo(n,r,o),i=Et(e.base,t,n,r,o),s=e.subscript?Et(e.subscript,t,n,r*bo,o):void 0,l=e.superscript?Et(e.superscript,t,n,r*bo,o):void 0,d=Math.max(.4,a.fontSizePt*.04),c=i.box.width+d,u=0,f=l?Math.max(0,l.box.height-i.baseline*.45):0,p=f+i.baseline,m=p+a.fontSizePt*.08,g=c+Math.max(s?.box.width??0,l?.box.width??0,-d),h=Math.max(f+i.box.height,l?u+l.box.height:0,s?m+s.box.height:0);return Object.freeze({kind:"script",base:Ct(i,0,f),...s?{subscript:Ct(s,c,m)}:{},...l?{superscript:Ct(l,c,u)}:{},box:cn(0,0,g,h),baseline:p})}case "nary":{let a=xo(n,r,o),i=rs("text",e.operator,t,n,r*lw,o),s=Et(e.body,t,n,r,o),l=e.lowerLimit?Et(e.lowerLimit,t,n,r*bo,o):void 0,d=e.upperLimit?Et(e.upperLimit,t,n,r*bo,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,l?.box.width??0,d?.box.width??0),p=d?d.box.height+c:0,m=p+i.baseline,g=p+i.box.height+(l?c:0),h=u+c,b=m-s.baseline,v=-Math.min(0,p,b,l?g:0),w=m+v,C=Math.max(p+i.box.height,l?g+l.box.height:0,b+s.box.height)+v;return Object.freeze({kind:"nary",operator:Ct(i,(u-i.box.width)/2,p+v),body:Ct(s,h,b+v),...l?{lowerLimit:Ct(l,(u-l.box.width)/2,g+v)}:{},...d?{upperLimit:Ct(d,(u-d.box.width)/2,v)}:{},box:cn(0,0,h+s.box.width,C),baseline:w})}}}function Rm(e,t,n){let r=os(n),o={styles:new Map,metrics:new Map};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:Et(e.expression,t,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function wm(e,t){let n=fw(e,t);return (r,o)=>{let a=uw(o),i=n.projections.get(r),s=i?.get(a);if(s&&i)return i.delete(a),i.set(a,s),s;let l=Rm(r,e,o);if(i||(i=new Map,n.projections.set(r,i)),i.size>=cw){let d=i.keys().next().value;d!==void 0&&i.delete(d);}return i.set(a,l),l}}function as(e,t=[],n,r,o,a,i=gt,s,l,d,c,u,f=false){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let p=[],m=0,g,h=chunkIMMAG4QP_cjs.oc(e,{maxNesting:_i,maxInstructionChars:chunkIMMAG4QP_cjs.nc}),b=h.filter(T=>T.addressing==="atomic"),x=new Set(b.filter(T=>T.kind==="complex").map(T=>T.node.id)),v=new Set(h.filter(T=>T.kind==="complex"&&T.addressing==="editable-result").map(T=>T.node.id)),w=new Set;for(let T of b)for(let H of T.removeNodeIds)w.add(H);let C=xa(),M=Hd(),P=null,B=null,O=Zi(),k=dm,_=(T,H,F,K,W,V,Y)=>{if(T.length===0&&!K&&!Y?.inlineDrawing)return;let Q=Y?.linkOverride??g,G=Y?.revisionsOverride??k,U=Q?{link:Q}:{},re=G.length===0?{}:{revisions:G};if(K){p.push({text:T,props:H,style:F,start:W,end:V,projected:true,...Y?.measureText!==void 0?{measureText:Y.measureText}:{},...Y?.noteNav?{noteNav:Y.noteNav}:{},...Y?.inlineDrawing?{inlineDrawing:Y.inlineDrawing}:{},...Y?.equation?{equation:Y.equation}:{},...Y?.fieldAtom?{fieldAtom:Y.fieldAtom}:{},...U,...re});return}T.length!==0&&p.push({text:T,props:H,style:F,start:W,end:V,...Y?.positionalTab?{positionalTab:Y.positionalTab}:{},...Y?.breakKind?{breakKind:Y.breakKind}:{},...U,...re});},D=()=>{if(!P||!P.atomic){P=null,B=null;return}let T=P.atomStart,H=T+1;if(P.style.hidden){P=null,B=null;return}if(!ot(P.resultRevisions,i)){s&&dn(P.resultRevisions)&&er(s,T,H),P=null,B=null;return}let{resultLink:F,linkSpec:K,resultRevisions:W,formField:V}=P,Y,Q=()=>{if(Y)return Y;let U=!F&&K?c?.(K)??null:null,re=F??U;return Y={...W.length>0?{revisionsOverride:W}:{},...re?{linkOverride:re}:{},fieldAtom:{formField:V}},Y},G=pm(P,{pageContext:n,themeFonts:d,documentProperties:u,bodyPageFields:f});if(G){let U=Q(),re=G.pageField?{...U,fieldAtom:{formField:P.formField,pageField:G.pageField}}:U;_(G.text,G.props,G.style,true,T,H,re);}P=null,B=null;},y=()=>{if(!P)return;let T=!P.resultLink&&P.linkSpec?c?.(P.linkSpec)??null:null,H=F=>T&&!F.link?{...F,link:T}:F;if(P.atomic){m=P.atomStart;for(let F of P.buffered)p.push({...H(F),start:m,end:m+(F.end-F.start)}),m+=F.end-F.start;P.cachedText.length>0&&P.buffered.length===0&&(_(P.cachedText,P.props,P.style,false,m,m+P.cachedText.length,T?{linkOverride:T}:void 0),m+=P.cachedText.length);}else {for(let F of P.buffered)p.push(H(F));m=P.bufferOffset;}P=null,B=null;},ee=(T,H,F)=>{let K=(G,U,re,xe)=>{let ae=dn(k),se=F.hidden||!ot(k,i)||ae;if(U.hidden||se){if(ae&&s&&er(s,re,xe),!U.hidden)return;_("\uFFFC",H,F,true,re,xe);return}_("\uFFFC",H,F,true,re,xe,{inlineDrawing:Object.freeze({drawingNodeId:G,ownerPartName:l.ownerPartName,projection:U,resource:l.resourceOf(U)})});};if(T.kind==="drawing"){let G=m;m+=1;let U=m;if(!l)return;let re=l.projectionForAtom?.(T.id)??(T.kind==="drawing"?l.project(T):null);if(!re||re.kind!=="inline"){_("\uFFFC",H,F,true,G,U);return}K(T.id,re,G,U);return}if(chunkIMMAG4QP_cjs.Sa(T)){let G=m;m+=1;let U=m;if(!l)return;let re=l.projectionForAtom?.(T.id)??null;if(!re||re.kind!=="inline"){_("\uFFFC",H,F,true,G,U);return}K(T.id,re,G,U);return}if(hm(T)){let G=Qd(T,a),U=m,re=U+1;if(m=re,F.hidden||!G||G.text.length===0&&!G.measureText)return;let xe=G.scopeId&&G.nav?{scopeId:G.scopeId,direction:G.nav}:void 0;_(G.text.length>0?G.text:G.measureText??"",H,F,true,U,re,{...G.measureText!==void 0?{measureText:G.measureText}:{},...xe?{noteNav:xe}:{}});return}let W=mm(T);if(W){F.hidden||_(" ",H,F,false,m,m,{positionalTab:W});return}if(mo(T)){let G=go(T);if(!G||F.hidden||!ot(k,i))return;let U=qd(H,G,d);_(G.text,U.props,U.style,true,m,m);return}let V=Ia(T);if(V.length===0)return;let Y=dn(k);F.hidden||!ot(k,i)||T.kind==="deletedText"&&!Y||_(V,H,F,false,m,m+V.length,{...T.kind==="hardBreak"?{breakKind:chunkIMMAG4QP_cjs.Vb(T)}:{}}),Y&&s&&er(s,m,m+V.length),m+=V.length;},I=(T,H)=>{if(T.kind!=="run")return;let F=Yi(T,t,r),K=Ee(F,d),W=()=>{P&&(P.capturedResultStyle||(P.props=F,P.style=K,P.capturedResultStyle=true),P.capturedResultRevisions||(P.resultRevisions=k,P.capturedResultRevisions=true,!P.resultLink&&g&&(P.resultLink=g)));};for(let V of T.children){if(!In(M)){if(y(),ba(C),O.reset(),V.kind==="runProperties"||Pt(V,"begin")||Pt(V,"separate")||Pt(V,"end")||Sr(V)||w.has(V.id)&&B===null)continue;ee(V,F,K);continue}if(V.kind!=="runProperties"){if(Pt(V,"begin")){let Y=x.has(V.id);Sa(C),C.nesting===1&&(y(),O.reset(),B=Y?V.id:null,P={kind:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,formData:chunkIMMAG4QP_cjs.mc(V),atomic:Y,editableResult:v.has(V.id),atomStart:m,props:F,style:K,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:m,resultRevisions:k,capturedResultRevisions:k.length>0,formField:chunkIMMAG4QP_cjs.lc(V),...g?{resultLink:g}:{}},Y&&(m+=1));continue}if(Sr(V)){Ra(C,V,M,H+1);continue}if(Pt(V,"separate")){let Y=C.nesting===1&&C.phase==="instruction",Q=C.nesting,G=wa(C);if(Y&&P){P.kind=G;let U=zi(C);!P.kind&&!U.overflow&&!C.nestingOverflow&&Jd(P,U.instruction),P.props=F,P.style=K;}else P?.atomic&&C.phase==="result"&&!C.nestingOverflow&&O.onSeparate(n?G:null,Q);continue}if(Pt(V,"end")){let Y=C.nesting===1;if(Y&&P?.atomic&&C.phase==="instruction"){let G=zi(C);!G.overflow&&!C.nestingOverflow&&Jd(P,G.instruction);}let Q=O.onEnd(C.nesting,n);Q!==null&&P?.atomic&&(P.cachedText+=Q),Pa(C),Y&&(P?.atomic?D():y());continue}if(!(Vp(C)&&P?.atomic)){if(P&&Yp(C)){if(mo(V)){if(P.atomic){if(ot(k,i)&&(P.sawResultContent=true),O.active){O.noteResult(!K.hidden&&ot(k,i));continue}if(!K.hidden&&ot(k,i)){let xe=go(V);xe?.unicode&&(W(),P.cachedText+=xe.text);}continue}let U=go(V);if(!U||K.hidden||!ot(k,i))continue;let re=qd(F,U,d);P.buffered.push({text:U.text,props:re.props,style:re.style,start:m,end:m,projected:true,...k.length>0?{revisions:k}:{},...g?{link:g}:{},fieldAtom:{formField:P.formField}});continue}let Y=Ia(V);if(Y.length===0)continue;let Q=dn(k),G=!ot(k,i)||V.kind==="deletedText"&&!Q;if(P.atomic&&!G&&(P.sawResultContent=true),Q&&s&&(P.atomic?er(s,P.atomStart,P.atomStart+1):er(s,m,m+Y.length)),G){P.atomic&&O.active&&O.noteResult(false),P.atomic||(m+=Y.length,P.bufferOffset=m);continue}if(P.atomic){if(O.active){if(O.noteResult(!K.hidden),K.hidden)continue;W();continue}if(K.hidden)continue;W(),P.cachedText+=Y;continue}if(K.hidden){m+=Y.length,P.bufferOffset=m;continue}P.capturedResultStyle||(P.props=F,P.style=K,P.capturedResultStyle=true),P.buffered.push({text:Y,props:F,style:K,start:m,end:m+Y.length,...k.length>0?{revisions:k}:{},...g?{link:g}:{},fieldAtom:{formField:P.formField}}),m+=Y.length,P.bufferOffset=m;continue}w.has(V.id)&&B===null&&x.size>0,ee(V,F,K);}}}};if(!In(M))return p;let E=chunkIMMAG4QP_cjs.Ma(),j=(T,H)=>{let F=m;if(m+=1,T.kind==="textValue"||(dn(k)&&s&&er(s,F,F+1),!ot(k,i)))return;let K=um({simple:T,depth:H,pageContext:n,budget:M,revisions:k,displayMode:i,inheritedRunProperties:t,cascadeRuns:r,themeFonts:d,currentLink:g,projectFieldLink:c,documentProperties:u,bodyPageFields:f});K&&_(K.text,K.props,K.style,true,F,F+1,{fieldAtom:{formField:false,...K.pageField?{pageField:K.pageField}:{}},...K.link?{linkOverride:K.link}:{}});},A=(T,H,F,K)=>{let W=chunkIMMAG4QP_cjs.Cb(T);if(W){let G=m++;dn(k)&&s&&er(s,G,m);let U=os(Ee(t,d));return U.hidden||!ot(k,i)?void 0:_("\uFFFC",t,U,true,G,m,{equation:W})}if(chunkIMMAG4QP_cjs.fc(T)){j(T,H);return}if(T.kind==="run"){I(T,H);return}if(chunkIMMAG4QP_cjs.Hb(T)){if(K>=chunkIMMAG4QP_cjs.Gb||H>Yn)return;for(let G of chunkIMMAG4QP_cjs.Kb(T))A(G,H+1,F,K+1);return}if(H>Yn||H>=ho)return;let V=T.kind!=="textValue"&&"localName"in T?chunkIMMAG4QP_cjs.La(F,T):F;if(T.kind==="hyperlink"){let G=g;g=o?.(T)??void 0;for(let U of T.children)A(U,H+1,V,K);g=G;return}if(!ts(T))return;let Y=Qi(T);if(!Y||!In(M))return;let Q=k;k=es(Q,Y);for(let G of T.children)A(G,H+1,V,K);k=Q;};for(let T of e.children)A(T,1,E,0);return y(),p}function mw(e){let t=Object.entries(e.attributes??{}).sort(([n],[r])=>n<r?-1:n>r?1:0).map(([n,r])=>`${n}=${r}`).join(",");return `${e.localName}(${t})`}function gw(e){return e.map(mw).join(";")}var Pm=new WeakMap,vm=1<<18;function Tm(e){if(e.kind==="textValue")return `t:${e.value}`;let t=e.kind==="paragraph"||e.kind==="table";if(t){let r=Pm.get(e);if(r!==void 0)return r}let n=hw(e);return t&&n.length<=vm&&Pm.set(e,n),n}function hw(e){if(e.kind==="textValue")return `t:${e.value}`;let t=[`${e.kind}:${"localName"in e?e.localName:""}#${"id"in e?e.id:""}`];if("attributes"in e&&Array.isArray(e.attributes)){let n=[...e.attributes].map(r=>`${r.namespaceUri??""}:${r.localName}=${r.value}`).sort();for(let r of n)t.push(r);}for(let n of e.children??[])t.push(Tm(n));return `(${t.join("|")})`}var Im=new WeakMap;function wr(e){let t=Math.round(e.width*1e3),n=e.drawingToken??"",r=e.exclusionToken??"",o=gw(e.properties),a=Im.get(e.paragraph);if(a&&a.producer===e.producer&&a.width===t&&a.drawingToken===n&&a.exclusionToken===r&&a.propertiesToken===o)return a.key;let i=[e.producer,t,n,r,o,Tm(e.paragraph)].join("\0");return i.length<=vm&&Im.set(e.paragraph,{producer:e.producer,width:t,drawingToken:n,exclusionToken:r,propertiesToken:o,key:i}),i}var km=new WeakMap;function Om(e,t){km.set(e,t);}function Cm(e,t,n,r){if(!e)return;let o=t??new Set;for(let a of n)o.add(a);for(let a of r){let i=km.get(a);if(i)for(let s of i)o.add(s);}t||e.retain(o);}var yw=8,bw=8;function xw(e={}){let t=Math.max(1,e.maxEntries??4096),n=t*8,r=new Map,o=0,a=0,i=0,s=0,l=0;return {get(d){let c=r.get(d);if(c===void 0){s+=1;return}return i+=1,r.delete(d),c.generation=o,r.set(d,c),c.value},set(d,c){for(r.has(d)&&r.delete(d),r.set(d,{value:c,generation:o});r.size>t;){let u=r.entries().next();if(u.done||u.value[1].generation>=o&&r.size<=n)break;r.delete(u.value[0]),l+=1;}},retentionPassDue(){return a+=1,a%yw===0},retain(d){o+=1;for(let c of d){let u=r.get(c);u&&(u.generation=o);}for(let[c,u]of r)o-u.generation>bw&&(r.delete(c),l+=1);},clear(){r.clear();},get stats(){return {hits:i,misses:s,evictions:l,size:r.size}}}}var Bm=21600;function $e(e){return Number.isFinite(e)?e:0}function Ca(e){if(e.length===0)return Object.freeze([]);let t=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),n=[],r=t[0];for(let o=1;o<t.length;o+=1){let a=t[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(n.push(r),r=a);}return n.push(r),Object.freeze(n)}function Sw(e,t){let n=[];for(let r of e)for(let o of t){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&n.push(Object.freeze({start:a,end:i}));}return Ca(n)}function ec(e,t,n){let r=[];for(let o of e){let a=Math.max(o.start,t),i=Math.min(o.end,n);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return Ca(r)}function Rw(e,t,n){let r=[],o=t;for(let a of e)a.start>o&&r.push(Object.freeze({start:o,end:a.start})),o=Math.max(o,a.end);return o<n&&r.push(Object.freeze({start:o,end:n})),Object.freeze(r)}function Fm(e,t){return So(e,t)}function tc(e,t,n){return Fm(So(e,t),n)}function ww(e,t){let n=[],r=Math.min(e.length,ut);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],s=a.y,l=i.y;if(s===l)continue;let d=Math.min(s,l),c=Math.max(s,l);if(t<d||t>c||t===c&&l>s||t===d&&l<s)continue;let u=(t-s)/(l-s),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&n.push({x:f,delta:l>s?1:-1});}return n.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(n)}function Pw(e,t){let n=[],r=Math.min(e.length,ut);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(t-a.y)>1e-6)continue;let s=Math.min(a.x,i.x),l=Math.max(a.x,i.x);l>s&&n.push(Object.freeze({start:s,end:l}));}return Ca(n)}function Lm(e,t,n){let r=Iw(ww(e,t),n),o=Pw(e,t);return Ca([...r,...o])}function Iw(e,t){if(e.length===0)return Object.freeze([]);let n=[];if(t==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,s=e[a+1].x;s>i&&n.push(Object.freeze({start:i,end:s}));}return Object.freeze(n)}let r=0,o=null;for(let a of e){let i=r;r+=a.delta,i===0&&r!==0?o=a.x:i!==0&&r===0&&o!==null&&(a.x>o&&n.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(n)}function vw(e,t){return Object.freeze({top:$e(e.top)+$e(t.top),right:$e(e.right)+$e(t.right),bottom:$e(e.bottom)+$e(t.bottom),left:$e(e.left)+$e(t.left)})}function Tw(e,t,n,r,o,a){let i=t.x-e.x,s=t.y-e.y,l=r.x-n.x,d=r.y-n.y,c=i*d-s*l;if(Math.abs(c)<1e-12)return null;let f=((n.x-e.x)*s-(n.y-e.y)*i)/c,p=((n.x-e.x)*d-(n.y-e.y)*l)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let m=e.y+f*s;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function kw(e,t,n,r){let o=[],a=Math.min(e.length,ut),i=Math.min(t.length,ut);if(a<2||i<2)return Object.freeze([]);let s=ut*ut,l=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let f=0;f<i;f+=1){if(l>=s)return Object.freeze(o);l+=1;let p=t[f],m=t[(f+1)%i],g=Tw(c,u,p,m,n,r);g!==null&&o.push(g);}}return Object.freeze(o)}function Ow(e,t,n){let r=new Set;r.add(t),r.add(n);for(let o of e){let a=Math.min(o.length,ut);for(let i=0;i<a;i+=1){let s=o[i].y;Number.isFinite(s)&&s>=t-1e-6&&s<=n+1e-6&&r.add(s);}for(let i=0;i<a;i+=1){let s=o[i],l=o[(i+1)%a],d=s.y,c=l.y;if(d!==c)for(let u of [t,n]){let f=Math.min(d,c),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of kw(e[0],e[1],t,n))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function Cw(e,t,n,r){let o=Lm(e,n,r);return t&&t.length>=3&&(o=Sw(o,Lm(t,n,"nonzero"))),o}function Mm(e,t,n,r,o=null){let a=$e(n.top),i=$e(n.bottom),s=$e(n.left),l=$e(n.right),d=t-i,c=t+a,u=Ow(o&&o.length>=3?[e,o]:[e],d,c),f=[],p=u.length>=2?u.flatMap((m,g)=>{if(g+1>=u.length)return [];let h=u[g+1];return h<=m+1e-6?[m]:[m,h,(m+h)/2]}):[d];for(let m of p){let g=Cw(e,o,m,r);for(let h of g)f.push(Object.freeze({start:h.start-s,end:h.end+l}));}return Ca(f)}function Em(e){let{x:t,y:n,width:r,height:o}=e;return Object.freeze([Object.freeze({x:t,y:n}),Object.freeze({x:t+r,y:n}),Object.freeze({x:t+r,y:n+o}),Object.freeze({x:t,y:n+o})])}function Bw(e){let t=Math.max(0,$e(e.extentWidthPt)),n=Math.max(0,$e(e.extentHeightPt)),r=ss(e.transform,t,n),o=Math.min(e.polygonEmu.length,ut);if(o<3)return Em({x:e.anchorX,y:e.anchorY,width:t,height:n});let a=r.width/Bm,i=r.height/Bm,s=[];for(let l=0;l<o;l+=1){let d=e.polygonEmu[l];s.push(Object.freeze({x:$e(d.x)*a,y:$e(d.y)*i}));}return ls({points:Object.freeze(s),sourceWidth:r.width,sourceHeight:r.height,offsetX:r.offsetX,offsetY:r.offsetY,crop:{left:0,top:0,right:0,bottom:0},transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:e.anchorX,anchorY:e.anchorY})}function Lw(e,t){let n=t.effectInsets??is,r=t.wrapDistances??is,o=$e(t.contentLeft),a=$e(t.contentRight);if(t.mode==="topAndBottom"){let c=Fm(So(t.contentBounds,n),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):ec([{start:o,end:a}],o,a)}if(t.mode==="square"){let c=tc(t.contentBounds,n,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):ec([{start:c.x,end:c.x+c.width}],o,a)}let i=t.polygon&&t.polygon.length>=3?t.polygon:Em(t.contentBounds),s=t.mode==="through"?"evenodd":"nonzero",l=vw(r,n),d=Mm(i,e,l,s,t.clipPolygon);return ec(d,o,a)}function Fw(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(t=>t.start)),end:Math.max(...e.map(t=>t.end))})}function Mw(e,t,n,r,o){if(n==="bothSides"||t.length===0)return e;let a=Fw(t);if(!a)return e;if(n==="left")return Object.freeze(e.filter(l=>l.end<=a.start+1e-4));if(n==="right")return Object.freeze(e.filter(l=>l.start>=a.end-1e-4));let i=Math.max(0,a.start-r),s=Math.max(0,o-a.end);return i===s?Object.freeze(e.filter(l=>l.start>=a.end-1e-4)):i>s?Object.freeze(e.filter(l=>l.end<=a.start+1e-4)):Object.freeze(e.filter(l=>l.start>=a.end-1e-4))}function Nm(e,t){let n=Lw(e,t),r=Rw(n,t.contentLeft,t.contentRight);return Mw(r,n,t.textSide,t.contentLeft,t.contentRight)}function Ew(e,t,n,r){return n.length<3?false:Mm(n,t,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function nc(e,t,n){let r=n.effectInsets??is,o=n.hitBounds;if(e<o.x||e>o.x+o.width||t<o.y||t>o.y+o.height)return false;if(n.clipPolygon&&n.clipPolygon.length>=3)return Ew(e,t,n.clipPolygon,r);let a=So(n.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function Am(e){let t=Object.freeze({top:$e(e.wrapDistancesEmu.top/un),right:$e(e.wrapDistancesEmu.right/un),bottom:$e(e.wrapDistancesEmu.bottom/un),left:$e(e.wrapDistancesEmu.left/un)}),n=e.mode==="tight"||e.mode==="through"?Bw({polygonEmu:e.polygonEmu,extentWidthPt:e.extentWidthPt,extentHeightPt:e.extentHeightPt,anchorX:e.contentBounds.x,anchorY:e.contentBounds.y,transform:e.transform}):null;return Object.freeze({mode:e.mode,contentBounds:e.contentBounds,polygon:n,clipPolygon:e.geometry.clipPolygon,wrapDistances:t,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var It=1e5,ut=chunkIMMAG4QP_cjs.m.maxPolygonPoints,is=Object.freeze({top:0,right:0,bottom:0,left:0}),Nw=32,Aw=.1,Dw=new Set(["rect","ellipse","roundRect"]);function ge(e){return Number.isFinite(e)?e:0}function Nt(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function Dm(e,t){let n=e+t;return Number.isFinite(n)?n:0}function _m(e,t,n){let r=Nt(e,0,n),o=Nt(t,0,n);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=n){let i=(n-1)/a;r*=i,o*=i;}return {left:r,right:o}}function _w(e){let t=_m(Nt(e.left,0,It),Nt(e.right,0,It),It),n=_m(Nt(e.top,0,It),Nt(e.bottom,0,It),It);return Object.freeze({left:t.left,top:n.left,right:t.right,bottom:n.right})}function zw(e){let t=_w({left:e.left*It,top:e.top*It,right:e.right*It,bottom:e.bottom*It});return Object.freeze({left:t.left/It,top:t.top/It,right:t.right/It,bottom:t.bottom/It})}function Hw(e){let t=n=>{if(!Number.isFinite(n))return 0;let r=n/un;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:t(e.top),right:t(e.right),bottom:t(e.bottom),left:t(e.left)})}function So(e,t){let n=ge(t.left),r=ge(t.right),o=ge(t.top),a=ge(t.bottom);return Object.freeze({x:e.x-n,y:e.y-o,width:Math.max(0,Dm(e.width,n+r)),height:Math.max(0,Dm(e.height,o+a))})}function jw(e,t,n){let r=e*Nt(n.left,0,1),o=t*Nt(n.top,0,1),a=e*(1-Nt(n.right,0,1)),i=t*(1-Nt(n.bottom,0,1));if(a<=r||i<=o){let s=e/2,l=t/2;return Object.freeze({left:s,top:l,right:s,bottom:l})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function ss(e,t,n){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?ge(tr(r)??t):Math.max(0,ge(t)),s=o>0?ge(tr(o)??n):Math.max(0,ge(n));return Object.freeze({offsetX:ge(tr(a.x)??0),offsetY:ge(tr(a.y)??0),width:i,height:s})}function Gw(e,t,n,r){let o=jw(t,n,r),a=o.right-o.left,i=o.bottom-o.top,s=t>0?t:1,l=n>0?n:1,d=[],c=Math.min(e.length,ut);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+Nt(f.x/s,0,1)*a,m=i<=0?o.top:o.top+Nt(f.y/l,0,1)*i;d.push(Object.freeze({x:ge(p),y:ge(m)}));}return Object.freeze(d)}function zm(e,t,n){let r=e.x-t.x,o=e.y-t.y;n.flipHorizontal&&(r=-r),n.flipVertical&&(o=-o);let a=ge(n.rotationDegrees)*Math.PI/180,i=Math.cos(a),s=Math.sin(a),l=r*i-o*s,d=r*s+o*i;return Object.freeze({x:ge(l+t.x),y:ge(d+t.y)})}function Hm(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let t=e[0].x,n=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,ut);for(let i=1;i<a;i+=1){let s=e[i];!Number.isFinite(s.x)||!Number.isFinite(s.y)||(t=Math.min(t,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),o=Math.max(o,s.y));}return Object.freeze({x:t,y:r,width:Math.max(0,n-t),height:Math.max(0,o-r)})}function rc(e){let t=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),n=Ba(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let s of n)r.push(zm(Object.freeze({x:s.x+e.offsetX,y:s.y+e.offsetY}),t,e.transform));let o=Hm(r),a=Math.max(o.width,1e-6),i=Math.max(o.height,1e-6);return Object.freeze({bboxX:o.x,bboxY:o.y,scaleX:Math.max(0,ge(e.layoutWidth))/a,scaleY:Math.max(0,ge(e.layoutHeight))/i,anchorX:ge(e.anchorX),anchorY:ge(e.anchorY)})}function Ww(e,t){return Object.freeze({x:ge(t.anchorX+(e.x-t.bboxX)*t.scaleX),y:ge(t.anchorY+(e.y-t.bboxY)*t.scaleY)})}function ls(e){let t=e.mapping??rc({sourceWidth:e.sourceWidth,sourceHeight:e.sourceHeight,offsetX:e.offsetX,offsetY:e.offsetY,transform:e.transform,layoutWidth:e.layoutWidth,layoutHeight:e.layoutHeight,anchorX:e.anchorX,anchorY:e.anchorY}),n=Gw(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(n.length>0?n.length:e.points.length,ut),o=n.length>0?n:e.points.slice(0,r),a=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),i=[];for(let s=0;s<r;s+=1){let l=o[s],d=Object.freeze({x:ge(l.x+e.offsetX),y:ge(l.y+e.offsetY)});i.push(Ww(zm(d,a,e.transform),t));}return Object.freeze(i)}function Ba(e,t,n,r){if(n<=0||r<=0){let o=Object.freeze({x:e,y:t});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:t}),Object.freeze({x:e+n,y:t}),Object.freeze({x:e+n,y:t+r}),Object.freeze({x:e,y:t+r})])}function $w(e,t,n){if(!e||!Dw.has(e))return null;if(t<=0||n<=0)return Ba(0,0,Math.max(0,t),Math.max(0,n));if(e==="rect")return Ba(0,0,t,n);if(e==="ellipse"){let s=[],l=t/2,d=n/2,c=t/2,u=n/2,f=Math.min(Nw,ut);for(let p=0;p<f;p+=1){let m=p/f*Math.PI*2;s.push(Object.freeze({x:l+c*Math.cos(m),y:d+u*Math.sin(m)}));}return Object.freeze(s)}let r=Math.min(t,n)*Aw,o=Math.max(0,r),a=t,i=n;return Object.freeze([Object.freeze({x:o,y:0}),Object.freeze({x:a-o,y:0}),Object.freeze({x:a,y:o}),Object.freeze({x:a,y:i-o}),Object.freeze({x:a-o,y:i}),Object.freeze({x:o,y:i}),Object.freeze({x:0,y:i-o}),Object.freeze({x:0,y:o})])}function wo(e){return Object.freeze({x:ge(e.x),y:ge(e.y)})}function Xw(e,t){if(e.length===0)return Object.freeze([]);let n=t.x+t.width,r=t.y+t.height,o=(i,s,l)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,ut);for(let u=0;u<c;u+=1){let f=wo(i[u]),p=wo(i[(u+1)%c]),m=s(f),g=s(p);if(m&&g?d.push(p):m&&!g?d.push(wo(l(f,p))):!m&&g&&(d.push(wo(l(f,p))),d.push(p)),d.length>=ut)break}return Object.freeze(d.slice(0,ut))},a=e.slice(0,ut).map(wo);return a=[...o(a,i=>i.x>=t.x,(i,s)=>{let l=s.x-i.x,d=Math.abs(l)>1e-6?(t.x-i.x)/l:0;return Object.freeze({x:t.x,y:ge(i.y+d*(s.y-i.y))})})],a=[...o(a,i=>i.x<=n,(i,s)=>{let l=s.x-i.x,d=Math.abs(l)>1e-6?(n-i.x)/l:0;return Object.freeze({x:n,y:ge(i.y+d*(s.y-i.y))})})],a=[...o(a,i=>i.y>=t.y,(i,s)=>{let l=s.y-i.y,d=Math.abs(l)>1e-6?(t.y-i.y)/l:0;return Object.freeze({x:ge(i.x+d*(s.x-i.x)),y:t.y})})],a=[...o(a,i=>i.y<=r,(i,s)=>{let l=s.y-i.y,d=Math.abs(l)>1e-6?(r-i.y)/l:0;return Object.freeze({x:ge(i.x+d*(s.x-i.x)),y:r})})],Object.freeze(a)}function Vw(e){let t=Hm(e);return Object.freeze({x:t.x,y:t.y,width:t.width,height:t.height})}function ds(e,t){let n=Yw(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=a=>{if(!a||a.length===0)return a;let i=Xw(a,t);return i.length>=3?Object.freeze(i.map(wo)):Object.freeze([])};return Object.freeze({...e,paintBounds:n,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function Yw(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function Kw(e){let t=Math.max(0,ge(e.extentWidth)),n=Math.max(0,ge(e.extentHeight)),r=ge(e.anchorX),o=ge(e.anchorY),a=zw(e.crop),i=Hw(e.effectExtentEmu),s=ss(e.transform,t,n),l=Object.freeze({x:r,y:o,width:t,height:n}),d={sourceWidth:s.width,sourceHeight:s.height,offsetX:s.offsetX,offsetY:s.offsetY,crop:a,transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:r,anchorY:o},c=rc(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=ls({points:Ba(0,0,s.width,s.height),...d,crop:u,mapping:c}),p=$w(e.presetGeometry,s.width,s.height),m="none",g=p;g||(m=e.presetGeometry?"unsupported-preset":"none",g=Ba(0,0,s.width,s.height));let h=ls({points:g,...d,crop:u,mapping:c}),b=Vw(h.length>=3?h:f),x=So(b,i);return Object.freeze({contentBounds:l,paintBounds:x,hitBounds:x,transformedCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:m,effectInsets:i})}function Po(e){let t=e.projection.picture,n=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return Kw({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:t?.crop??{left:0,top:0,right:0,bottom:0},transform:t?.transform??n,presetGeometry:t?.presetGeometry??null})}function Uw(e){let{transform:t,contentWidth:n,contentHeight:r}=e;if(n<=0||r<=0)return null;let o=ss(t,n,r),a=o.width,i=o.height,s=rc({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:t,layoutWidth:n,layoutHeight:r,anchorX:0,anchorY:0}),l=ge(t.rotationDegrees),d=Math.abs(l%360)>1e-4,c=t.flipHorizontal?-1:1,u=t.flipVertical?-1:1,f=s.scaleX,p=s.scaleY,m=a>0?a/n:1,g=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(p-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(m-1)<1e-4&&Math.abs(g-1)<1e-4)return null;let b=l*Math.PI/180,x=Math.cos(b),v=Math.sin(b),w=o.offsetX+a/2,C=o.offsetY+i/2,M=f*x*c,P=-f*v*u,B=p*v*c,O=p*x*u,k=f*(w-x*c*(a/2)+v*u*(i/2)-s.bboxX),_=p*(C-v*c*(a/2)-x*u*(i/2)-s.bboxY);return Object.freeze({a:ge(M*m),b:ge(B*m),c:ge(P*g),d:ge(O*g),e:ge(k),f:ge(_)})}function uC(e){let t=Uw(e);if(t)return `matrix(${Ro(t.a)}, ${Ro(t.b)}, ${Ro(t.c)}, ${Ro(t.d)}, ${Ro(t.e)}, ${Ro(t.f)})`}function Ro(e){return Number.isFinite(e)?String(e):"0"}var qw=Object.freeze({"http://schemas.openxmlformats.org/drawingml/2006/chart":"chart","http://schemas.openxmlformats.org/drawingml/2006/diagram":"diagram","http://schemas.microsoft.com/office/word/2010/wordprocessingGroup":"group","http://schemas.microsoft.com/office/word/2010/wordprocessingShape":"textbox","http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas":"canvas"}),Zw=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),Jw=Object.freeze({left:0,top:0,right:0,bottom:0});function Wm(e){let t=e.picture,n=null;if(!t){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";n=qw[o]??"graphic";break}n===null&&(n="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:t?.crop??Jw,transform:t?.transform??Zw,placeholderGraphicKind:t?null:n,vectorShape:e.vectorShape})}var un=12700;function st(e){return e/un}function tr(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*un*72)return null;let t=e/un;return Number.isFinite(t)?t:null}function Cn(e){let t=st(e.inlineDistancesEmu.left),n=st(e.inlineDistancesEmu.right),r=st(e.inlineDistancesEmu.top),o=st(e.inlineDistancesEmu.bottom),a=st(e.effectExtentEmu.left),i=st(e.effectExtentEmu.right),s=st(e.effectExtentEmu.top),l=st(e.effectExtentEmu.bottom),d=st(e.extentEmu.cx),c=st(e.extentEmu.cy);return Object.freeze({distL:t,distR:n,distT:r,distB:o,effectL:a,effectR:i,effectT:s,effectB:l,width:d,height:c,totalWidth:t+a+d+i+n,lineContribution:r+s+c+l+o})}function $m(e,t,n){let r=Math.max(n.distT+n.effectT,e-n.height),o=Math.max(t,r-n.effectT+n.height+n.effectB+n.distB),a=r+n.height+n.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function cs(e,t,n){if(Math.abs(t)<1e-4&&Math.abs(n)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+t,y:a.y+n}),o=a=>Object.freeze({x:a.x+t,y:a.y+n});return Object.freeze({...e,contentBounds:r(e.contentBounds),paintBounds:r(e.paintBounds),hitBounds:r(e.hitBounds),transformedCorners:Object.freeze(e.transformedCorners.map(o)),clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function us(e,t,n){return Math.abs(t)<1e-4&&Math.abs(n)<1e-4?e:Object.freeze({...e,x:e.x+t,y:e.y+n,advanceStart:e.advanceStart+t,advanceEnd:e.advanceEnd+t,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+t,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+t,y:e.hitBounds.y+n}),geometry:cs(e.geometry,t,n)})}function oc(e,t){return e.length===0?e:e.map(n=>{let r=n.geometry.effectInsets.bottom,o=t-n.height-r,a=o-n.y;return Math.abs(a)<1e-4&&n.baselineOffset===t?n:Object.freeze({...n,y:o,baselineOffset:t,geometry:cs(n.geometry,0,a),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+a}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+a})})})}function ac(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function fs(e,t){let n=ac(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=cs(e.geometry,o,a);return Object.freeze({...e,paintBounds:n,hitBounds:r,geometry:ds(i,t)})}var jm=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),Gm=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function fn(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function Xm(e,t){return !(!t.layoutInCell||t.cellBox===null||!Number.isFinite(t.cellBox.height)||t.cellBox.height<=0||!Number.isFinite(t.cellBox.width)||t.cellBox.width<=0)}function Vm(e,t){if(Xm(e,t)){let l=t.cellBox;if(!l)return null;let{x:d,width:c}=l;switch(e){case "page":case "column":case "margin":case "leftMargin":return {left:d,right:d+c,center:d+c/2};case "rightMargin":return {left:d,right:d+c,center:d+c/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "insideMargin":return fn(t)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return fn(t)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let n=-t.marginLeft,r=t.contentWidth+t.marginRight,o=0,a=t.contentWidth,i=t.columnBox.x,s=t.columnBox.x+t.columnBox.width;switch(e){case "page":return {left:n,right:r,center:(n+r)/2};case "margin":return {left:o,right:a,center:o+t.contentWidth/2};case "column":return {left:i,right:s,center:i+t.columnBox.width/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "leftMargin":return {left:n,right:n,center:n};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return fn(t)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return fn(t)?{left:r,right:r,center:r}:{left:n,right:n,center:n};default:return null}}function Ym(e,t){if(Xm(e,t)){let l=t.cellBox;if(!l)return null;let{y:d,height:c}=l;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:d,bottom:d+c,center:d+c/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "insideMargin":return fn(t)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return fn(t)?{top:d+c,bottom:d+c,center:d+c}:{top:d,bottom:d+c,center:d+c/2};default:return null}}let n=-t.contentInsetTop,r=t.contentBandHeight,o=n+t.pageHeight-t.marginBottom,a=r+t.contentInsetBottom,i=0,s=t.contentHeight;switch(e){case "page":return {top:n,bottom:a,center:(n+a)/2};case "margin":return {top:i,bottom:s,center:i+t.contentHeight/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "topMargin":return {top:n,bottom:n,center:n};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return fn(t)?{top:i,bottom:i,center:i}:{top:s,bottom:s,center:s};case "outsideMargin":return fn(t)?{top:a,bottom:a,center:a}:{top:n,bottom:n,center:n};default:return null}}function Km(e){return e===null?0:tr(e)}function Qw(e,t,n){let r=fn(n);if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.width)&&n.cellBox.width>0){let{x:o,width:a}=n.cellBox;return e==="inside"?r?o:o+a-t:e==="outside"?r?o+a-t:o:null}return e==="inside"?r?0:n.contentWidth-t:e==="outside"?r?n.contentWidth-t:0:null}function e0(e,t,n){let r=fn(n),o=n.contentBandHeight;if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.height)&&n.cellBox.height>0){let{y:a,height:i}=n.cellBox;return e==="inside"?r?a:a+i-t:e==="outside"?r?a+i-t:a:null}return e==="inside"?r?0:o-t:e==="outside"?r?o-t:0:null}function t0(e,t,n,r,o){let a=Vm(e,o);if(!a)return null;let i=Km(n);if(i===null)return null;if(t==="left")return a.left+i;if(t==="center")return a.center-r/2+i;if(t==="right")return a.right-r+i;if(t==="inside"||t==="outside"){let s=Qw(t,r,o);if(s!==null)return s+i}return a.left+i}function n0(e,t,n,r,o){let a=Ym(e,o);if(!a)return null;let i=Km(n);if(i===null)return null;if(t==="top")return a.top+i;if(t==="center")return a.center-r/2+i;if(t==="bottom")return a.bottom-r+i;if(t==="inside"||t==="outside"){let s=e0(t,r,o);if(s!==null)return s+i}return a.top+i}function La(e){let t=e.contentBandHeight;return Object.freeze({x:-e.marginLeft,y:-e.contentInsetTop,width:e.pageWidth,height:t+e.contentInsetTop+e.contentInsetBottom})}function ic(e,t){let n=Cn(e),r=e.position,o=e.anchor,a="page",i="page";if(!r||!o)return Object.freeze({x:0,y:0,horizontalFrame:a,verticalFrame:i,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"});if(o.simplePos){let g=tr(r.simplePosition.xEmu),h=tr(r.simplePosition.yEmu);return Object.freeze(g===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:g-t.marginLeft,y:h-t.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let s=r.horizontal.relativeFrom,l=r.vertical.relativeFrom,d=Vm(s,t),c=Ym(l,t),u=d?.left??0,f=c?.top??0;if(!jm.has(s)||!Gm.has(l))return Object.freeze({x:0,y:0,horizontalFrame:jm.has(s)?s:a,verticalFrame:Gm.has(l)?l:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=t0(s,r.horizontal.align,r.horizontal.offsetEmu,n.width,t),m=n0(l,r.vertical.align,r.vertical.offsetEmu,n.height,t);return Object.freeze(p===null||m===null?{x:0,y:0,horizontalFrame:s,verticalFrame:l,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:m,horizontalFrame:s,verticalFrame:l,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function r0(e){let t=e.input.projection,n=t.anchor,r=Cn(t),o=Po({projection:t,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?ac(o.paintBounds,e.clipRegion):o.paintBounds,i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"anchoredDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.anchorParagraphId,anchorParagraphId:e.anchorParagraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:e.resolved.x,y:e.resolved.y,width:r.width,height:r.height,horizontalFrame:e.resolved.horizontalFrame,verticalFrame:e.resolved.verticalFrame,horizontalFrameOrigin:e.resolved.horizontalFrameOrigin,verticalFrameOrigin:e.resolved.verticalFrameOrigin,behindDocument:n?.behindDocument??false,allowOverlap:n?.allowOverlap??true,layoutInCell:n?.layoutInCell??true,relativeHeight:n?.relativeHeight??0,wrap:t.wrap==="inline"?"inFront":t.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?ds(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkIMMAG4QP_cjs.Ta(t),...Wm(t)})}function At(e,t){if(e.kind!=="paragraph")return [];let n=[],r=o=>{if(o.kind==="drawing"){let a=t.projectionForAtom?.(o.id)??t.project(o);a?.kind==="anchored"&&n.push({atomId:o.id,projection:a});return}if(chunkIMMAG4QP_cjs.Sa(o)){let a=t.projectionForAtom?.(o.id)??null;a?.kind==="anchored"&&n.push({atomId:o.id,projection:a});return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children)r(o);return Object.freeze(n)}function Kt(e){let t=new Map;if(e.kind!=="paragraph")return t;let n=0,r=o=>{if(o.kind==="drawing"||chunkIMMAG4QP_cjs.Sa(o)){t.set(o.id,n),n+=1;return}if(o.kind==="textValue"){n+=o.value.length;return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children){if(o.kind==="run"){for(let a of o.children)r(a);continue}if(o.kind==="hyperlink"){for(let a of o.children)if(a.kind==="run")for(let i of a.children)r(i);}}return t}function o0(e,t,n){for(let o of e.spans){if(t<o.range.start)break;if(t<o.range.end){if(n&&o.text!==void 0&&o.style!==void 0){let s=t-o.range.start;return o.box.x+Mt(o.text.slice(0,s),o.style,n)}let a=o.range.end-o.range.start;if(a<=0)return o.box.x;let i=t-o.range.start;return o.box.x+o.box.width*i/a}if(t===o.range.end)return n&&o.text!==void 0&&o.style!==void 0?o.box.x+Mt(o.text,o.style,n):o.box.x+o.box.width}let r;for(let o of e.spans)o.range.end<=t&&(r=o);return r?n&&r.text!==void 0&&r.style!==void 0?r.box.x+Mt(r.text,r.style,n):r.box.x+r.box.width:e.box.x}function a0(e,t){let n=e.range.start;for(let r of e.spans)r.range.end<=t&&(n=r.range.end);return n}function sc(e,t,n){if(!(Math.abs(n)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===t&&(e[r]=Object.freeze({...o,y:o.y+n,geometry:cs(o.geometry,0,n),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+n}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+n})}));}}function Io(e){let t=At(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=Kt(e.paragraph),r=[];for(let o of t){let a=o.projection;if(a.hidden)continue;let i=n.get(o.atomId);if(i===void 0||e.fragmentRange&&(i<e.fragmentRange.start||i>=e.fragmentRange.end))continue;let s=e.lines.find(h=>i>=h.range.start&&i<h.range.end);if(!s)continue;let l=a.anchor?.layoutInCell??true,c=a.position?.horizontal.relativeFrom==="character"?a0(s,i):i,u=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:s.box,anchorCharacterX:o0(s,c,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:l}),f=ic(a,u),m=l&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0?e.cellBox:La(e.frameBase),g=r0({input:Object.freeze({drawingNodeId:o.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:a,resource:e.drawingLayout.resourceOf(a)}),anchorParagraphId:e.paragraphId,start:c,resolved:f,clipRegion:m,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(o.atomId)}:{},...a.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(a)}:{}});r.push(g);}return Object.freeze(r)}function Um(e){let t=Cn(e.input.projection),n=e.slotX+t.distL+t.effectL,r=Po({projection:e.input.projection,anchorX:n,anchorY:e.y,extentWidth:t.width,extentHeight:t.height}),o=e.contentTop!==void 0&&e.contentBottom!==void 0?Object.freeze({x:e.contentLeft,y:e.contentTop,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,e.contentBottom-e.contentTop)}):Object.freeze({x:e.contentLeft,y:r.paintBounds.y,width:Math.max(0,e.contentRight-e.contentLeft),height:r.paintBounds.height}),a=ac(r.paintBounds,o),i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"inlineDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.paragraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:n,y:e.y,width:t.width,height:t.height,distL:t.distL,distR:t.distR,distT:t.distT,distB:t.distB,advanceStart:e.slotX,advanceEnd:e.slotX+t.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:ds(r,o),resource:e.input.resource,accessibility:chunkIMMAG4QP_cjs.Ta(e.input.projection),...Wm(e.input.projection)})}var i0=256,cc=8,Pr=8,vo=class extends Error{name="DrawingExclusionConvergenceError";constructor(t="drawing exclusion reflow did not converge"){super(t);}};function s0(e,t){let n=Math.max(1,t.columnCount);if(n<=1)return 0;let r=e.x+e.width/2;if(t.columnLefts&&t.columnWidths&&t.columnLefts.length===n){for(let i=0;i<n;i+=1){let s=t.columnLefts[i],l=s+t.columnWidths[i];if(r>=s-.001&&r<l+.001)return i}return n-1}let o=t.columnGapPt,a=(t.contentWidth-o*(n-1))/n;for(let i=0;i<n;i+=1){let s=i*(a+o),l=s+a;if(r>=s-.001&&r<l+.001)return i}return n-1}function dc(e){return e.behindDocument?"behind":"inFront"}function qm(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function l0(e){switch(e){case "inline":case "behind":case "inFront":return null;case "square":case "squareLeft":case "squareRight":return "square";case "tight":return "tight";case "through":return "through";case "topAndBottom":return "topAndBottom";default:return null}}function d0(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function uc(e){let t=l0(e.projection.wrap);if(!t||!e.projection.wrapGeometry)return null;let n=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return Am({mode:t,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:n.distancesEmu,polygonEmu:n.polygon,crop:e.projection.picture?.crop??{},transform:e.projection.picture?.transform??{rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:{x:0,y:0},extentEmu:{cx:0,cy:0}},extentWidthPt:e.geometry.contentBounds.width,extentHeightPt:e.geometry.contentBounds.height,textSide:t==="square"?d0(e.projection.wrap):n.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function fc(e){if(e.mode==="topAndBottom"||e.mode==="square")return tc(e.contentBounds,e.effectInsets,e.wrapDistances);let t=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)t.push(o.y);let n=Math.min(...t)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...t)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:n,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-n)})}function c0(e){if(e.drawing.behindDocument||!qm(e.drawing.wrap))return null;let t=e.yOverride??e.drawing.y,n=uc({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:t});return n?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,sourceOrder:e.sourceOrder,paintLayer:dc(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:t,verticalBand:fc(n),input:n}):null}function Zm(e,t){let n=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=t.sourceOrder??Number.MAX_SAFE_INTEGER;return n!==r?n-r:e.drawingNodeId.localeCompare(t.drawingNodeId)}function u0(e,t){let n=dc(e),r=dc(t);return n!==r?n==="behind"?-1:1:e.relativeHeight!==t.relativeHeight?e.relativeHeight-t.relativeHeight:Zm(e,t)}function Jm(e){return Object.freeze([...e].sort(u0))}function lc(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function pc(e,t){if(Math.abs(t)<=1e-4)return e;let n=e.geometry;return Object.freeze({...e,y:e.y+t,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+t}),geometry:Object.freeze({...n,contentBounds:Object.freeze({...n.contentBounds,y:n.contentBounds.y+t}),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+t}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+t}),transformedCorners:n.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+t})),clipPolygon:n.clipPolygon?n.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+t})):null})})}function Qm(e,t){let n=t.maxAttempts??i0,r=[...e].sort(Zm),o=[],a=[],i=[];for(let s of r){if(s.allowOverlap){o.push(s);continue}let l=s,d=0;for(;d<n&&o.some(g=>lc(g.paintBounds,l.paintBounds));){let p=o.find(g=>lc(g.paintBounds,l.paintBounds)),m=p.paintBounds.y+p.paintBounds.height-l.paintBounds.y+.001;l=pc(l,m),d+=1;}let c=o.some(f=>lc(f.paintBounds,l.paintBounds)),u=l.paintBounds.y+l.paintBounds.height>t.pageBottom+.001;if(c||u){a.push(l),i.push(l.drawingNodeId);continue}o.push(l);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}function To(e,t,n,r){let o=[{start:n,end:r}];for(let a of t){let i=a.verticalBand;if(e<i.y||e>=i.y+i.height)continue;let s=Nm(e,a.input),l=[];for(let d of o)for(let c of s){let u=Math.max(d.start,c.start),f=Math.min(d.end,c.end);f>u+1e-6&&l.push(Object.freeze({start:u,end:f}));}if(o=l,o.length===0)break}return Object.freeze(o)}function eg(e,t){for(let n of t)if(e>=n.start-1e-6&&e<n.end-1e-6)return Math.max(0,n.end-e);return 0}function f0(e,t){for(let n of t)if(n.end>e+1e-6)return n;return null}function mc(e,t){let n=f0(e,t);if(!n)return null;let r=Math.max(e,n.start),o=n.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function p0(e,t,n){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+t,y:r.y+n}),contentLeft:e.contentLeft+t,contentRight:e.contentRight+t,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{}})}function gc(e,t){return Object.freeze({...e,layoutFallback:t})}function tg(e,t,n,r){return e.length===0?e:Object.freeze(e.map(o=>{let a=o.verticalBand,i=o.input;return Object.freeze({...o,y:o.y-n,verticalBand:Object.freeze({...a,x:a.x-t,y:a.y-n}),input:Object.freeze({...p0(i,-t,-n),contentLeft:r?.left,contentRight:r?.right??i.contentRight-t})})}))}function ng(e,t,n){return Object.freeze(e.filter(r=>{let o=n(r.anchorParagraphId);return o===void 0?r.sourceOrder<=t:o<=t}))}function rg(e){let t=At(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Kt(e.paragraph),r=Math.max(1,e.contentRight-e.contentLeft),o=[];for(let a of t){if(a.projection.anchor?.behindDocument||!qm(a.projection.wrap)||a.projection.wrap==="topAndBottom")continue;let i=n.get(a.atomId);if(i===void 0)continue;let s=e.anchorLineTopByModelStart.get(i);if(s===void 0)continue;let l=Object.freeze({x:e.contentLeft,y:s,width:r,height:14}),d=e.anchorCellBox!=null,c=ic(a.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+r,pageHeight:792,marginLeft:e.contentLeft,marginRight:0,marginBottom:0,contentInsetTop:0,contentInsetBottom:0,contentWidth:r,contentHeight:648,contentBandHeight:648,paragraphBox:l,anchorLineBox:l,anchorCharacterX:e.contentLeft,columnBox:l,cellBox:d?e.anchorCellBox:null,layoutInCell:d,ownerPartName:e.drawingLayout.ownerPartName,storyKind:"body"}),u=e.paragraphStartY+s,f=Cn(a.projection),p=Po({projection:a.projection,anchorX:c.x,anchorY:u,extentWidth:f.width,extentHeight:f.height}),m=uc({projection:a.projection,geometry:p,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:c.x,anchorY:u});m&&o.push(Object.freeze({drawingNodeId:a.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:i,sourceOrder:e.sourceOrderOf?.(a.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:a.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:a.projection.anchor?.relativeHeight??0,allowOverlap:a.projection.anchor?.allowOverlap??true,columnIndex:0,y:u,verticalBand:fc(m),input:m}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function ps(e){let t=At(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Kt(e.paragraph),r=[];for(let o of t){if(o.projection.anchor?.behindDocument||o.projection.wrap!=="topAndBottom")continue;let a=n.get(o.atomId);if(a===void 0)continue;let i=e.anchorLineTopByModelStart.get(a);if(i===void 0)continue;let s=e.paragraphStartY+i,l=Cn(o.projection),d=Po({projection:o.projection,anchorX:e.contentLeft,anchorY:s,extentWidth:l.width,extentHeight:l.height}),c=uc({projection:o.projection,geometry:d,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:s});c&&r.push(Object.freeze({drawingNodeId:o.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:a,sourceOrder:e.sourceOrderOf?.(o.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:o.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:o.projection.anchor?.relativeHeight??0,allowOverlap:o.projection.anchor?.allowOverlap??true,columnIndex:e.columnIndex??0,y:s,verticalBand:fc(c),input:c}));}return r.sort((o,a)=>o.sourceOrder-a.sourceOrder),Object.freeze(r)}var m0=8;function g0(e,t,n,r){return e<r&&t>n}function Bn(e,t,n){if(t<=0||n.length===0)return 0;let r=0;for(let o=0;o<m0;o+=1){let a=e+r,i=a+t,s=a,l=false;for(let c of n){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,f=u+c.verticalBand.height;g0(a,i,u,f)&&(l=true,s=Math.max(s,f));}if(!l)break;let d=s-e;if(d<=r+.001)break;r=d;}return r}function h0(e){return e.map(t=>`${t.start.toFixed(3)}-${t.end.toFixed(3)}`).join(",")}function y0(e){let t=e.contentBounds,n=e.wrapDistances,r=e.effectInsets,o=e.polygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"",a=e.clipPolygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"";return [e.mode,e.textSide,t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),n.top.toFixed(3),n.right.toFixed(3),n.bottom.toFixed(3),n.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function pn(e){return e.length===0?"":e.map(t=>{let n=t.verticalBand,r=t.y+t.input.contentBounds.height/2,o=To(r,[t],t.input.contentLeft,t.input.contentRight);return [t.drawingNodeId,String(t.sourceOrder),String(t.columnIndex),t.y.toFixed(3),n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),y0(t.input),h0(o)].join("|")}).join(`
8
+ `)}function hc(e,t,n,r,o,a){let i=[];for(let s of e){let l=t.projectionForAtom?.(s.drawingNodeId);if(!l)continue;let d=s.sourceOrder??o?.(s.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?s0(s,a):0,u=c0({drawing:s,projection:l,sourceOrder:d,contentLeft:n,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((s,l)=>s.sourceOrder-l.sourceOrder),Object.freeze(i)}function Fa(e,t,n,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:n}),i=new Map;for(let s of e){let l=s.anchoredDrawings??[],d=hc(l,t,0,n,r,a);d.length>0&&i.set(s.index,d);}return i}function ms(e,t){if(e.size!==t.size)return false;for(let[n,r]of e){let o=t.get(n);if(!o||pn(r)!==pn(o))return false}return true}function gs(e){return e.size===0?"":[...e.entries()].sort(([t],[n])=>t-n).map(([t,n])=>`${t}:${pn(n)}`).join(`
9
+ `)}var b0=.001;function vt(e){return fo(e)}var ys=new Set(["-","\u2010","\u2013","\u2014"]);function og(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];r===" "?(n>0&&t[t.length-1]!==n&&t.push(n),t.push(n+1)):(r===" "||ys.has(r)&&n>0&&e[n-1]!==" "&&n+1<e.length&&e[n+1]!==" "&&!ys.has(e[n+1]))&&t.push(n+1);}return t[t.length-1]!==e.length&&t.push(e.length),t}function x0(e,t,n){for(let r=t;r<e.length;r+=1){let o=e[r];if(o.inlineDrawing)return true;let a=r===t?n:0;for(let i=a;i<o.text.length;i+=1){let s=o.text[i];if(s===`
10
+ `||s===chunkIMMAG4QP_cjs.Ub)return false;if(s!==" "&&s!==" ")return true}}return false}function S0(e,t,n,r){let o=0,a=0,i=false;for(let s=t;s<e.length;s+=1){let l=e[s],d=s===t?n:0;for(let c=d;c<l.text.length;){let u=l.text[c];if(u===" "||u===`
11
+ `||u===chunkIMMAG4QP_cjs.Ub)return {width:o,decimalOffset:i?a:o};let f=c+1,p=l.text.slice(c,f),m=r.measure(Jn(p,l.style),l.style);!i&&u==="."?i=true:i||(a+=m),o+=m,c=f;}}return {width:o,decimalOffset:i?a:o}}function R0(e,t,n,r){let o=e.relativeTo==="indent"||!r?{left:t,right:n}:r;return {positionPt:e.alignment==="right"?o.right:e.alignment==="center"?(o.left+o.right)/2:o.left,alignment:e.alignment,...e.leader?{leader:e.leader}:{}}}function ag(e,t,n,r=0){return (n.length>0?Bn(e,t.height,n):t.exclusionSkipBefore??0)+Math.max(0,t.height-t.trailingSpacing)+r}function w0(e){return Object.freeze({spans:e.spans.map(t=>Object.freeze({...t,box:Object.freeze({...t.box})})),drawings:e.drawings.map(t=>Object.freeze({...t,paintBounds:Object.freeze({...t.paintBounds}),hitBounds:Object.freeze({...t.hitBounds})})),start:e.start,end:e.end,width:e.width,height:e.height,baseline:e.baseline,leading:e.leading,trailingSpacing:e.trailingSpacing,...e.pageBreakAfter?{pageBreakAfter:true}:{},...e.columnBreakAfter?{columnBreakAfter:true}:{},...e.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{}})}var hs=31680;function Ma(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let t=Number(e);return Number.isFinite(t)?t>hs?chunkIMMAG4QP_cjs.Bc(hs):t<-hs?chunkIMMAG4QP_cjs.Bc(-hs):chunkIMMAG4QP_cjs.Bc(t):null}function Ea(e){let t=0,n=0;for(let r of e){if(r.localName!=="ind")continue;let o=r.attributes?.left??r.attributes?.start,a=r.attributes?.right??r.attributes?.end,i=Ma(o),s=Ma(a);i!==null&&(t=chunkIMMAG4QP_cjs.Dc(i)),s!==null&&(n=chunkIMMAG4QP_cjs.Dc(s));}return {left:t,right:n}}function ig(e){let t="left";for(let n of e)if(n.localName==="jc")switch(n.attributes?.val){case "center":t="center";break;case "right":case "end":t="right";break;case "both":case "distribute":t="both";break;default:t="left";}return t}function P0(e){return e.endsWith(" ")}function I0(e,t){let n=e.range.end-e.range.start;if(n<=0||e.text===" "||e.projected||e.text.length!==n)return Object.freeze([0,e.box.width]);let r=[0];for(let o=1;o<=e.text.length;o+=1)r.push(Mt(e.text.slice(0,o),e.style,t));return Object.freeze(r)}function ko(e,t){return e.map(n=>n.caretEdges?n:{...n,caretEdges:I0(n,t)})}function bs(e,t,n,r,o,a,i){if(e.length===0)return e;if(o==="left")return ko(e,t);let s=e[e.length-1],l=s.text.replace(/\s+$/,""),d=l===s.text?0:s.box.width-Mt(l,s.style,t),c=i??s.box.x-n+s.box.width-d,u=r-c;if(u<=0)return ko(e,t);if(o==="both"){if(a)return ko(e,t);let p=[];for(let b=1;b<e.length;b+=1)P0(e[b-1].text)&&p.push(b);if(p.length===0)return ko(e,t);let m=u/p.length,g=new Set(p),h=0;return ko(e.map((b,x)=>(g.has(x)&&(h+=m),h===0?b:{...b,box:{...b.box,x:b.box.x+h}})),t)}let f=o==="center"?u/2:u;return ko(e.map(p=>({...p,box:{...p.box,x:p.box.x+f}})),t)}function xs(e,t){return t===0||e.length===0?e:e.map(n=>us(n,t,0))}function Ss(e,t,n,r,o,a,i,s=[],l=io,d,c,u){let f=i!==null&&a?a.get(i):void 0;if(f)return f;let p=u?.lineSpacing??oo,m=u?.firstLineOffset??0,g=[],h=as(e,s,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??gt,g,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false),b=Math.max(0,u?.startOffset??0),x=h.flatMap(N=>{if(N.end<=b)return [];if(N.start>=b)return [N];let S=b-N.start;return [{...N,text:N.projected?N.text:N.text.slice(S),start:b}]}),v=wm(o,u?.equationCacheToken),w=N=>N.equation?v(N.equation,N.style):null;if(x.length===0&&u?.suppressEmptyPlaceholderLine)return [];let C=N=>({...N.revisions===void 0?{}:{revisions:N.revisions},...N.fieldAtom===void 0?{}:{fieldAtom:N.fieldAtom}}),M=u?.markRunProperties??s,P=M.length===0?ln:Ee(M,u?.themeFonts),B=n+r,O=u?.contentLeft??n,k=u?.contentRight??B,_=u?.contentOriginX??0,D=[],y={spans:[],start:b,end:b,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},ee=false,I=new Map,E=(()=>{let N=new Set;if(!u?.inlineDrawingLayout)return N;let S=Kt(e);for(let L of At(e,u.inlineDrawingLayout)){if(L.projection.wrap!=="topAndBottom")continue;let q=S.get(L.atomId);q!==void 0&&N.add(q);}return N})(),j=(()=>{let N=new Set;if(!u?.inlineDrawingLayout)return N;let S=Kt(e);for(let L of At(e,u.inlineDrawingLayout)){if(L.projection.anchor?.behindDocument||L.projection.wrap==="topAndBottom"||L.projection.wrap==="inline"||L.projection.wrap==="behind"||L.projection.wrap==="inFront")continue;let q=S.get(L.atomId);q!==void 0&&N.add(q);}return N})(),A=[...(u?.pageExclusionZones??[]).filter(N=>N.anchorParagraphId===t).map(N=>N.anchorModelStart),...E,...j],T=(()=>{let N=new Map;if(A.length===0)return N;let S=0,L=0,q=0,ne=()=>q===0?m:0,$=()=>Math.max(1,r-ne()),be=le=>{S=le,L=0,q+=1;};for(let le of x){let _e=w(le);if(_e){let Ne=_e.geometry.box.width;L>0&&L+Ne>$()&&be(le.start),A.includes(le.start)&&N.set(le.start,S),L+=Ne;continue}if(le.inlineDrawing){let Ne=Cn(le.inlineDrawing.projection).totalWidth;L>0&&L+Ne>$()&&be(le.start),A.includes(le.start)&&N.set(le.start,S),L+=Ne;continue}if(le.text===`
12
+ `||le.text===chunkIMMAG4QP_cjs.Ub){be(le.end);continue}let Pe=0;for(let Ne of og(le.text)){let et=le.text.slice(Pe,Ne);if(et.length===0)continue;let ht=le.style,Lt=o.measure(et,ht),Ge=le.start+Pe;L>0&&L+Lt>$()&&be(Ge),A.includes(Ge)&&N.set(Ge,S),A.includes(le.start)&&N.set(le.start,S),L+=Lt,Pe=Ne;}}for(let le of A)N.has(le)||N.set(le,S);return N})();for(let N of j){let S=T.get(N);S!==void 0&&I.set(N,S);}let H=N=>{if(N.anchorParagraphId!==t)return true;let S=T.get(N.anchorModelStart);return S!==void 0&&y.start>=S||y.end>=N.anchorModelStart},F=()=>{let N=u?.pageExclusionZones?.filter(q=>!(!H(q)||q.anchorParagraphId===t&&(q.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],S=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&I.size>0?rg({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:O,contentRight:k,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:I,anchorCellBox:u.anchorCellBox}):Object.freeze([]),L=u?.inlineDrawingLayout&&I.size>0?ps({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:O,contentRight:k,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:I}):Object.freeze([]);return Object.freeze([...N,...S,...L])},K=()=>D.length===0?m:0,W=()=>_+n+K(),V=()=>Math.max(1,r-K()),Y=()=>D.reduce((N,S)=>N+S.height+(S.exclusionSkipBefore??0),0),Q=()=>(u?.paragraphStartY??0)+Y(),G=N=>{E.has(N)&&I.set(N,Y());},U=()=>{if(ee)return;let N=F();if(N.length===0||y.spans.length>0||y.drawings.length>0)return;let S=o.lineMetrics(P),L=Bn(Q(),y.height>0?y.height:S.height,N);L>.001&&(ee=true,y.exclusionSkipBefore=L);},re=()=>Q()+(y.exclusionSkipBefore??0)+.001,xe=()=>{let N=F();if(N.length===0)return true;U();let S=To(re(),N,O,k),L=W()+y.width,q=mc(L,S);return q?(q.x>L+.001&&(y.width=q.x-W()),true):false},ae=()=>{let N=V(),S=F();if(S.length===0)return N;if(U(),!xe())return 0;let L=To(re(),S,O,k),q=W()+y.width,ne=eg(q,L);return ne<=.001?0:Math.min(N,y.width+ne)},se=()=>Math.max(0,ae()-y.width),we=()=>{let N=F();if(N.length===0||!N.some($=>$.anchorParagraphId!==t||y.end>$.anchorModelStart))return false;let L=To(re(),N,O,k),q=W()+y.width,ne=false;for(let $ of L){if(!ne){q>=$.start-1e-6&&q<$.end-1e-6&&(ne=true);continue}if($.end-$.start>.001)return y.width=$.start-W(),true}return false},Ie=N=>{if(A.length===0||N<Math.min(...A))return;let S=F().filter(be=>be.anchorParagraphId===t&&N>=be.anchorModelStart);if(S.length===0)return;U();let L=To(re(),S,O,k),q=W()+y.width,ne=-1;for(let be=0;be<L.length;be+=1){let le=L[be];if(q>=le.start-.001&&q<le.end-.001){ne=be;break}}if(ne>=0)return;let $=mc(q,L);$&&$.x>q+.001&&(y.width=$.x-W());},Se=N=>{F().filter(L=>L.input.mode==="topAndBottom"&&L.anchorParagraphId===t&&N>=L.anchorModelStart).length!==0&&((y.spans.length>0||y.drawings.length>0)&&Ve(),U());},Be=(N,S=0)=>S>64?se()>=N:(U(),xe()?N<=se()+.001?true:y.spans.length>0||y.drawings.length>0?we()&&N<=se()+.001?true:(Ve(),Be(N,S+1)):we()?Be(N,S+1):true:y.spans.length>0||y.drawings.length>0?(Ve(),Be(N,S+1)):true),He=(N,S)=>g.filter(L=>L.start<S&&L.end>N).map(L=>({start:Math.max(L.start,N),end:Math.min(L.end,S)})),je=-1,ft=0,zt=0,Xe="",Ht=(N,S)=>{let L=o.lineMetrics(N),q=$m(L.baseline,y.height||L.height,S);return y.height===0?(y.height=q.lineHeight,y.baseline=q.baseline):(q.lineHeight>y.height&&(y.height=q.lineHeight),y.baseline=Math.max(y.baseline,q.baseline)),{extentTopY:q.extentTopY}},jt=()=>{if(y.drawings.length===0)return;y.spans.length===0&&(y.baseline=Math.max(y.baseline,...y.drawings.map(S=>S.y+S.height)));let N=oc(y.drawings,y.baseline);y.drawings.splice(0,y.drawings.length,...N),y.baseline=Math.max(y.baseline,...y.drawings.map(S=>S.y+S.height));},Qe=()=>{if(y.drawings.length===0)return;let N=oc(y.drawings,y.baseline);y.drawings.splice(0,y.drawings.length,...N);},Gt=N=>{let S=0;for(let L of y.spans)S=Math.max(S,o.lineMetrics(L.style).height);return S>0?S:N},at=()=>{if(y.drawings.length===0)return;let N=Math.max(0,...y.drawings.map(S=>S.y+S.height+S.distB));y.height=Math.max(y.height,N);},Bt=()=>{jt(),at();},An=()=>{if(!(y.spans.length<2))for(let N=1;N<y.spans.length;N+=1){let S=y.spans[N-1],L=y.spans[N],q=L.box.x-(S.box.x+S.box.width);q<=.001||y.drawings.some($=>$.start>=S.range.end&&$.start<L.range.start)||(y.spans[N]={...L,wrapAdvanceBefore:q});}},Ve=N=>{let S=o.lineMetrics(P),L=y.baseline;y.height===0?(y.height=S.height,y.baseline=S.baseline,L=S.baseline):N?.includeParagraphMark&&(y.height=Math.max(y.height,S.height)),Bt();let q=y.height,ne=p.rule==="auto"&&y.drawings.length>0,$=ne?Gt(S.height):q,be=vd(p,$,y.baseline);ne||(y.baseline=be.baseline),y.leading=Math.max(0,y.baseline-L),y.height=be.height,Qe(),p.rule!=="exact"&&at(),y.trailingSpacing=y.drawings.length===0&&p.rule!=="exact"?Math.max(0,be.height-q):0,(()=>{let Pe=F();if(Pe.length===0)return;let Ne=Bn(Q(),y.height,Pe);Ne>.001?y.exclusionSkipBefore=Ne:delete y.exclusionSkipBefore;})(),An();let _e=He(y.start,y.end);_e.length>0&&(y.deletedRanges=_e),D.push(y),je=-1,ft=0,ee=false,y={spans:[],drawings:[],start:y.end,end:y.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},U();},Le=false;for(let N=0;N<x.length;N+=1){let S=x[N];if(S.breakKind==="column"){let ne=o.lineMetrics(S.style);y.spans.push({range:{paragraphId:t,start:S.start,end:S.end},text:S.text,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:0,height:ne.height},...S.link?{link:S.link}:{},...C(S)}),y.height=Math.max(y.height,ne.height),y.baseline=Math.max(y.baseline,ne.baseline),y.end=S.end,Ve(),D[D.length-1].columnBreakAfter=true,Le=true;continue}if(S.equation){let ne=w(S),$=ne.geometry.box.width;if((y.spans.length>0||y.drawings.length>0)&&y.width+$>ae()&&Ve(),!Be($))continue;let le=Math.max(0,y.height-y.baseline),_e=Math.max(0,ne.geometry.box.height-ne.geometry.baseline);y.baseline=Math.max(y.baseline,ne.geometry.baseline),y.height=y.baseline+Math.max(le,_e),y.spans.push({range:{paragraphId:t,start:S.start,end:S.end},text:"\uFFFC",props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:$,height:ne.geometry.box.height},projected:true,equation:ne,...C(S)}),y.width+=$,y.end=S.end,je=-1,Xe="";continue}if(S.projected&&!S.inlineDrawing&&S.text==="\uFFFC"){G(S.start),y.end=S.end;continue}if(S.inlineDrawing){G(S.start);let ne=Cn(S.inlineDrawing.projection),$=ne.totalWidth;if((y.spans.length>0||y.drawings.length>0)&&y.width+$>ae()&&Ve(),!Be($))continue;let{extentTopY:le}=Ht(S.style,ne),_e=W()+y.width;y.drawings.push(Um({input:S.inlineDrawing,paragraphId:t,start:S.start,slotX:_e,y:le,baseline:y.baseline,contentLeft:O,contentRight:k})),y.width+=$,y.end=S.end,je=-1,Xe="";continue}if(S.text===chunkIMMAG4QP_cjs.Ub){let ne=o.lineMetrics(S.style);y.spans.push({range:{paragraphId:t,start:S.start,end:S.end},text:chunkIMMAG4QP_cjs.Ub,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:0,height:ne.height},...S.link?{link:S.link}:{},...C(S)}),y.height=Math.max(y.height,ne.height),y.baseline=Math.max(y.baseline,ne.baseline),y.end=S.end,Ve(),D[D.length-1].pageBreakAfter=true,Le=false;continue}if(S.text===`
13
13
  `){let ne=o.lineMetrics(S.style);y.spans.push({range:{paragraphId:t,start:S.start,end:S.end},text:`
14
- `,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:0,height:ne.height},...S.link?{link:S.link}:{},...O(S)}),y.height=Math.max(y.height,ne.height),y.baseline=Math.max(y.baseline,ne.baseline),y.end=S.end,Xe(),Le=true;continue}Le=false,Se(S.start),A.length>0&&S.start>=Math.min(...A)&&Ie(S.start);let B=o.lineMetrics(S.style),q=0;for(let ne of og(S.text)){let $=S.text.slice(q,ne);if($.length===0)continue;let be=!!S.projected||!!S.positionalTab||S.end-S.start!==S.text.length,le=be?{paragraphId:t,start:S.start,end:S.end}:{paragraphId:t,start:S.start+q,end:S.start+ne};if($===" "){(y.spans.length>0||y.drawings.length>0)&&y.width>=ae()&&h0(x,N,ne)&&Xe();let Ge=W()+y.width,ye=y0(x,N,ne,o),Ve=S.positionalTab?b0(S.positionalTab,n,L,u?.marginExtent):null,Ft=Ve===null?so(l,Ge,L):Ve.positionPt>Ge?Ve:{...so(l,Ge,L),...Ve.leader?{leader:Ve.leader}:{}},Dn=Nd(Ft.alignment,Ge,Ft.positionPt,ye.width,ye.decimalOffset);y.spans.push({range:le,text:" ",props:S.props,style:S.style,box:{x:Ge,y:0,width:Dn,height:B.height},...Ft.leader?{tabLeader:Ft.leader,tabLeaderAdvancePt:o.measure(Ld.get(Ft.leader)??".",S.style)}:{},...S.link?{link:S.link}:{},...Ft.leader?{tabLeader:Ft.leader}:{},...be&&!S.positionalTab?{projected:true}:{},...S.noteNav?{noteNav:S.noteNav}:{},...O(S)}),y.width+=Dn,y.height=Math.max(y.height,B.height),y.baseline=Math.max(y.baseline,B.baseline),y.end=be?S.end:S.start+ne,$e=" ",q=ne;continue}let _e=S.measureText??$,Pe=o.measure(Jn(_e,S.style),S.style),Ne=q>0||$e===""||/[\s\u00a0]$/.test($e)||/^[\s\u00a0]/.test($)||ys.has($e[$e.length-1])&&!ys.has($[0]);if(Ne&&(je=y.spans.length,ft=y.width,zt=y.end),Ie(S.start+q),y.width+Pe>ae()+g0&&(y.spans.length>0||y.drawings.length>0))if(Ne||je<=0){if(!(we()&&y.width+Pe<=ae()+.001)){if(Xe(),!Be(Pe))continue}}else {let Ge=y.spans.splice(je);y.width=ft,y.end=zt,y.height=0,y.baseline=0;for(let ye of y.spans){let Ve=o.lineMetrics(ye.style);y.height=Math.max(y.height,Ve.height),y.baseline=Math.max(y.baseline,Ve.baseline);}Xe();for(let ye of Ge){let Ve=o.lineMetrics(ye.style);y.spans.push({...ye,box:{...ye.box,x:W()+y.width}}),y.width+=ye.box.width,y.height=Math.max(y.height,Ve.height),y.baseline=Math.max(y.baseline,Ve.baseline),y.end=ye.range.end;}je=0,ft=0;}else if(y.spans.length===0&&y.drawings.length===0&&Pe>ae()+.001&&!Be(Pe))continue;let et=$,ht=S.start+q,Lt=Pe;if(!be&&S.measureText===void 0)for(;y.spans.length===0&&et.length>1&&Lt>ae();){let Ge=1,ye=et.length-1,Ve=1;for(;Ge<=ye;){let gn=Ge+ye>>1;o.measure(Jn(et.slice(0,gn),S.style),S.style)<=ae()?(Ve=gn,Ge=gn+1):ye=gn-1;}let Ft=et.slice(0,Ve),Dn=o.measure(Jn(Ft,S.style),S.style);y.spans.push({range:{paragraphId:t,start:ht,end:ht+Ve},text:Ft,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:Dn,height:B.height},...S.link?{link:S.link}:{},...S.noteNav?{noteNav:S.noteNav}:{},...O(S)}),y.width+=Dn,y.height=Math.max(y.height,B.height),y.baseline=Math.max(y.baseline,B.baseline),y.end=ht+Ve,Xe(),et=et.slice(Ve),ht+=Ve,Lt=o.measure(Jn(et,S.style),S.style);}y.spans.push({range:be?le:{paragraphId:t,start:ht,end:S.start+ne},text:et,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:Lt,height:B.height},...S.link?{link:S.link}:{},...be&&!S.positionalTab?{projected:true}:{},...S.noteNav?{noteNav:S.noteNav}:{},...O(S)}),y.width+=Lt,y.height=Math.max(y.height,B.height),y.baseline=Math.max(y.baseline,B.baseline),y.end=be?S.end:S.start+ne,$e=$,q=ne;}}return (y.spans.length>0||y.drawings.length>0||D.length===0||Le)&&Xe({includeParagraphMark:true}),i!==null&&a&&a.set(i,D.map(x0)),D}var ws=32,lg=4096,w0=128,P0=/[\u0000-\u001F\u007F-\u009F]/,I0={major:null,minor:null};function Pr(e){return e.kind!=="textValue"}function Na(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Aa(e,t){for(let n of e.children)if(Pr(n)&&n.localName===t)return n}function Oo(e){return !(e===void 0||e.length===0||e.length>w0||P0.test(e)||chunkIMMAG4QP_cjs.I(e))}function v0(e){return e==="1"||e==="true"||e==="on"}function Rs(e){return e.map(t=>t.attributes?{n:t.localName,a:t.attributes}:{n:t.localName})}function _a(e){if(e){for(let t of e.children)if(Pr(t)&&(t.kind==="runProperties"||t.localName==="rPr"))return t}}function Ps(e){if(e){for(let t of e.children)if(Pr(t)&&(t.kind==="paragraphProperties"||t.localName==="pPr"))return t}}var sg=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function Co(e){return e.some(t=>sg.has(t.localName))?e.filter(t=>!sg.has(t.localName)):e}function T0(e){let t=Aa(e,"docDefaults");if(!t)return {run:[],paragraph:[],paragraphNode:void 0};let n=Aa(t,"rPrDefault"),r=Aa(t,"pPrDefault"),o=_a(n),a=Ps(r);return {run:Co(vt(o)),paragraph:Co(vt(a)),paragraphNode:a}}function k0(e){let t=Na(e,"styleId");if(!Oo(t))return null;let n=Na(e,"type")??"",r=(()=>{let d=Aa(e,"basedOn");return d?Na(d,"val"):void 0})(),o=Oo(r)?r:null,a=Ps(e),i=_a(e),s=new Map,l=0;for(let d of e.children){if(d.kind==="textValue"||d.localName!=="tblStylePr")continue;if(l>=O0)break;l+=1;let c=Na(d,"type");c&&!s.has(c)&&s.set(c,d);}return {styleId:t,type:n,basedOn:o,isDefault:v0(Na(e,"default")),paragraphProperties:Co(vt(a)),runProperties:Co(vt(i)),paragraphPropertiesNode:a,tablePropertiesNode:Aa(e,"tblPr"),conditionalTableFormats:s}}var O0=32,Da=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function dg(e,t){if(!t||!Oo(t))return Da;let n=xc(e,t,"table");if(n.length===0)return Da;let r=[],o=[],a=[],i=[],s=new Map;for(let l of n){l.tablePropertiesNode&&r.push(l.tablePropertiesNode),l.paragraphPropertiesNode&&o.push(l.paragraphPropertiesNode),a.push(...l.paragraphProperties),i.push(...l.runProperties);for(let[d,c]of l.conditionalTableFormats)s.set(d,c);}return {tablePropertyNodes:r,paragraphPropertyNodes:o,paragraphProperties:a,runProperties:i,conditional:s}}var yc=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function cg(e,t){let n=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of t){let i=e.conditional.get(a);if(!i)continue;let s=Ps(i);s&&(n.push(s),r.push(...Co(vt(s))));let l=_a(i);l&&o.push(...Co(vt(l)));}return n.length===0&&r.length===0&&o.length===0?yc:{paragraphProperties:r,paragraphPropertyNodes:n,runProperties:o}}function C0(e,t=I0){let n=new Map;if(!e)return {cacheToken:chunkXMHWBL3K_cjs.y({empty:true,theme:t}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,themeFonts:t,styles:n};let r=T0(e),o=null,a=null,i=0;for(let l of e.children){if(!Pr(l)||l.localName!=="style")continue;if(i>=lg)break;i+=1;let d=k0(l);if(!d)continue;let{isDefault:c,...u}=d;n.set(u.styleId,u),u.type==="paragraph"?c?o=u.styleId:o===u.styleId&&(o=null):u.type==="character"&&(c?a=u.styleId:a===u.styleId&&(a=null));}return {cacheToken:chunkXMHWBL3K_cjs.y({dR:Rs(r.run),dP:Rs(r.paragraph),defP:o,defC:a,theme:t,styles:[...n.values()].map(l=>({id:l.styleId,type:l.type,basedOn:l.basedOn,p:Rs(l.paragraphProperties),r:Rs(l.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,themeFonts:t,styles:n}}function bc(e,t){let n=null;for(let r of e){if(r.localName!==t)continue;let o=r.attributes?.val;n=Oo(o)?o:null;}return n}function xc(e,t,n){let r=e.styles.get(t);if(!r||r.type!==n)return [];let o=[],a=new Set,i=t,s=0;for(;i!==null&&s<ws&&!(a.has(i)||!Oo(i));){a.add(i);let l=e.styles.get(i);if(!l)break;o.push(l),i=l.basedOn,s+=1;}return o.reverse()}function Bo(e,t,n){let r=vt(t),o=bc(r,"pStyle")??e.defaultParagraphStyleId,a=o?xc(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...n?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],s=[...i,...r],l=[];e.docDefaultsParagraphNode&&l.push(e.docDefaultsParagraphNode),n&&l.push(...n.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&l.push(p.paragraphPropertiesNode);t&&l.push(t);let d=_a(t&&Pr(t)?t:void 0),c=vt(d),u=[...e.docDefaultsRun,...n?.runProperties??[],...a.flatMap(p=>p.runProperties)],f=c.length===0?u:[...u,...c];return {paragraphProperties:s,inheritedParagraphProperties:i,paragraphPropertyNodes:l,runProperties:u,markRunProperties:f,styleId:o??null}}function ug(e){let t;for(let n of e){if(!n||n.kind==="textValue")continue;let r=false;for(let o of n.children)if(Pr(o)&&o.localName==="pBdr"){r=true;break}r&&(t=Pn(n).bottom);}return t}function Ln(e,t,n){let r=[];if(n){let a=bc(t,"rStyle")??n.defaultCharacterStyleId;a&&(r=xc(n,a,"character").flatMap(i=>i.runProperties));}return e.length===0&&r.length===0?t:t.length===0&&r.length===0?e:[...e,...r,...t]}function za(e,t,n,r,o,a=false){let i=Ps(e),s=n?Bo(n,i,o):null,l=s?[...s.paragraphProperties]:vt(i),d=vt(_a(i&&Pr(i)?i:void 0)),c=s?s.runProperties:[],u=s?s.markRunProperties:d,f=Ma(l),p=0,m=0;if(r)p=r.indent.hanging,m=r.indent.firstLine;else for(let b of l){if(b.localName!=="ind")continue;let x=Ea(b.attributes?.hanging),v=Ea(b.attributes?.firstLine);(b.attributes?.hanging!==void 0||b.attributes?.firstLine!==void 0)&&(p=x!==null?Math.max(0,chunkIMMAG4QP_cjs.Dc(x)):0,m=v!==null?chunkIMMAG4QP_cjs.Dc(v):0);}let g=r?{left:r.indent.left,right:r.indent.right,hanging:p,firstLine:m}:{left:f.left,right:f.right,hanging:p,firstLine:m},h=s?Ed(s.paragraphPropertyNodes):Md(i);return {props:l,indent:g,available:Math.max(1,t-g.left-g.right),alignment:ig(l),spacing:Pd(l,{inList:r!==void 0,inTableCell:a}),lineSpacing:Id(l),contextualSpacing:Td(l),styleId:s?s.styleId:bc(l,"pStyle")??null,bottomBorder:s?ug(s.paragraphPropertyNodes):Pn(i).bottom,borders:s?pa(s.paragraphPropertyNodes):Pn(i),shading:Bd(l),inheritedRunProperties:c,markRunProperties:u,tabStops:h,tabStopsCacheToken:yr(h),...r?{listItem:r}:{}}}var fg=new WeakMap;function B0(e){let t=fg.get(e);if(t!==void 0)return t;let n=o=>o.some(a=>a.localName==="pBdr"),r=n(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(n(o.paragraphProperties)){r=true;break}}return fg.set(e,r),r}function pg(e,t){return !t||!B0(t)?Pn(e):pa(Bo(t,e).paragraphPropertyNodes)}var L0=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function Sc(e){let t=e?.val;return t!=="0"&&t!=="false"&&t!=="off"}function mg(e){let t=false,n=false,r=true;for(let o of e)switch(o.localName){case "keepNext":t=Sc(o.attributes);break;case "keepLines":n=Sc(o.attributes);break;case "widowControl":r=Sc(o.attributes);break;}return !t&&!n&&r?L0:{keepNext:t,keepLines:n,widowControl:r}}function gg(e,t,n,r,o){if(e<=t)return e;if(r.keepLines&&!o)return t;if(!r.widowControl||n<2)return e;let a=e;return n-a<2&&(a-=1),a-t===1&&(a-=1),a<t&&(a=t),a===t&&o?e:a}function hg(e,t,n,r){let o=0,a=n;for(let i=t;i-t<8;i+=1){let s=e[i];if(!s||s.kind!=="paragraph"||!s.spacing||!s.keeps)return null;o+=Math.max(s.spacing.before,a)-a;let l=r(i);if(!s.keeps.keepNext||i+1>=e.length)return o+=l[0]??0,s.keeps.widowControl&&l.length>1&&(o+=l[1]),o;for(let d of l)o+=d;o+=s.spacing.after,a=s.spacing.after;}return null}function F0(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==void 0&&(n===e&&(n=[...e]),n[r]=`${n[r]}~mk~${o}`);}return n}function E0(e,t,n){let r=e;for(let o=0;o<e.length;o+=1){if(!t(o))continue;let a=n(o);if(a===null)continue;let i=o>0&&n(o-1)===a,s=o+1<e.length&&n(o+1)===a;r===e&&(r=[...e]),r[o]=`${r[o]}~cs~${i?1:0}${s?1:0}`;}return r}function M0(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);if(o==="")continue;let a=r>0&&t(r-1)===o,i=r+1<e.length&&t(r+1)===o;n===e&&(n=[...e]),n[r]=`${n[r]}~bg~${a?1:0}${i?1:0}`;}return n}function N0(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==""&&(n===e&&(n=[...e]),n[r]=`${n[r]}~toc~${o}`);}return n}function A0(e,t){let n=e,r=0;for(let o=e.length-2;o>=0;o-=1)t(o)&&r<8?(n===e&&(n=[...e]),n[o]=`${e[o]}~kn~${n[o+1]}`,r+=1):r=0;return n}function yg(e,t){let n=E0(e,t.contextualSpacingAt,t.styleIdAt);return n=M0(n,t.borderGroupKeyAt),t.tocVerdicts.length>0&&(n=N0(n,r=>t.tocVerdicts[r])),n=F0(n,t.markerTextAt),n=A0(n,t.keepsNextAt),n}var D0=ho;function Ut(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkIMMAG4QP_cjs.ca&&n.localName===t)return n}}function bg(e){if(e.kind==="textValue")return false;let t=Ut(e,"paragraphProperties")??Ut(e,"pPr");if(!t)return false;let n=Ut(t,"runProperties")??Ut(t,"rPr");return n===void 0?false:Ut(n,"del")!==void 0||Ut(n,"moveFrom")!==void 0}function xg(e,t){if(e.kind==="textValue"||t>D0)return true;let n=(r,o)=>{for(let a of r){if(a.kind==="textValue")continue;if(a.kind==="run"){for(let s of a.children){if(s.kind==="text"){for(let l of s.children)if(l.kind==="textValue"&&l.value.length>0)return false;continue}if(s.kind!=="runProperties")return false}continue}if(chunkIMMAG4QP_cjs.Hb(a)){if(o>=chunkIMMAG4QP_cjs.Gb)continue;let s=chunkIMMAG4QP_cjs.Jb(a);if(s&&!n(s,o+1))return false;continue}if((a.kind==="hyperlink"||a.kind==="revisionInsert"||a.kind==="revisionMoveTo")&&!xg(a,o+1))return false}return true};return n(e.children,t)}function Sg(e,t){if(t==="all-markup"||e.kind==="textValue")return false;let n=Ut(e,"paragraphProperties")??Ut(e,"pPr");if(!n)return false;let r=Ut(n,"runProperties")??Ut(n,"rPr");return r===void 0?false:(t==="proposed"?["del","moveFrom"]:["ins","moveTo"]).some(a=>Ut(r,a)!==void 0)}function Rc(e,t="proposed"){return e.kind!=="paragraph"||t!=="proposed"||!bg(e)?false:xg(e,0)}function _0(e){let t=e.root;if(t.localName==="hdr"||t.localName==="ftr")return t;let n=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=n(o);if(a)return a}}};return n(t)}function z0(e,t){return !(e.kind==="paragraph"&&Rc(e,t))}var vg=new WeakMap;function Is(e){return vg.get(e)??null}function Tg(e,t){let n=t.children.filter(a=>Rg(a)),r=e.flatMap(a=>a.children.filter(i=>!Rg(i))),o={...t,children:[...n,...r]};return vg.set(o,{merged:o,members:e}),o}function Rg(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function H0(e,t){if(t==="all-markup")return e.map(i=>i.block);let n=[],r=[],o=null,a=()=>{n.push(...wg(r)),r=[],o=null;};for(let{block:i,parentKey:s}of e){if(r.length>0&&s!==o&&a(),i.kind!=="paragraph"){a(),n.push(i);continue}let l=Sg(i,t);if((l||r.length>0)&&!G0(i,t)){a(),n.push(i);continue}if(l){r.push(i),o=s;continue}if(r.length===0){n.push(i);continue}let d=[...r,i];r=[],o=null,n.push(Tg(d,i));}return n.push(...wg(r)),n}function wg(e){if(e.length<2)return e;let t=e[e.length-1];return [Tg(e,t)]}function Ha(e,t){return H0(j0(e),t).filter(r=>z0(r,t))}function j0(e){let t=[],n=(r,o,a)=>{for(let i of r)if(i.kind!=="textValue"){if(i.kind==="paragraph"||i.kind==="table"){t.push({block:i,parentKey:a});continue}chunkIMMAG4QP_cjs.Hb(i)&&o<chunkIMMAG4QP_cjs.Gb&&n(chunkIMMAG4QP_cjs.Kb(i),o+1,i.id);}};return n(e,0,""),t}var Pg=new WeakMap;function G0(e,t){let n=Pg.get(e),r=n?.get(t);if(r!==void 0)return r;let o=W0(e,t);return n?n.set(t,o):Pg.set(e,new Map([[t,o]])),o}function W0(e,t){if(!$0(e))return false;let n=as(e,[],void 0,void 0,void 0,void 0,t),r=0;for(let o of n)r=Math.max(r,o.end);return r<=chunkIMMAG4QP_cjs.Ud(e).length}function $0(e){let t=0,n=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunkIMMAG4QP_cjs.ca&&o.localName==="fldChar"){let a=o.attributes.find(i=>i.localName==="fldCharType")?.value;a==="begin"?t+=1:a==="end"&&(t-=1,t<0&&(n=true));}for(let a of o.children)r(a);}};return r(e),t===0&&!n}var Ig=chunkIMMAG4QP_cjs.Ke(16);function Fn(e,t="all-markup"){let n=Ig.get(e),r=n?.[t];if(r)return r;let o=_0(e),a=o?Ha(o.children,t):[];return n?n[t]=a:Ig.set(e,{[t]:a}),a}function vs(e,t="all-markup"){return e.kind!=="note"?[]:Ha(e.children,t)}function kg(e,t="all-markup"){return e.kind==="textValue"?[]:Ha(e.children,t)}var X0={state:"none"},Og=(e,t)=>t.state==="omitted"?e:t;function Ts(e,t,n={}){return e.state==="omitted"?t:e.state==="none"?X0:e}function wc(e,t){let n=Og;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right),insideH:n(e.insideH,t.insideH),insideV:n(e.insideV,t.insideV)}}function Pc(e,t){let n=Og;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right)}}function ks(e=1048576){let t=e|0;return {intervalsRemaining:t>0?t:0}}function Cg(e,t,n,r){let o=Math.max(0,Math.min(t|0,1024)),a=new Array(e.length);for(let i=0;i<e.length;i+=1){if(r&&r.intervalsRemaining<=0){a[i]=[];continue}a[i]=V0(e[i],o,n,r);}return a}function V0(e,t,n,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),p=Math.min(t,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,s=o[0].x,l=[],d=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>s&&i&&(!r||r.intervalsRemaining>0)){let u=l[l.length-1];u&&u.end===s&&u.cellIndex===i.cellIndex&&u.cell===i.cell?l[l.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(l.push({start:s,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),n&&(n.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),s=c.x;}return l}function Y0(e,t){let n=0,r=e.length;for(;n<r;){let o=n+r>>1;e[o].start<=t?n=o+1:r=o;}return n}function Ic(e,t,n,r){r&&(r.columnLookups+=1);let o=e[t];if(!o||n<0)return;let a=Y0(o,n)-1;if(a<0)return;let i=o[a];if(!(n>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var Eg=256,qe={state:"omitted"},Es={state:"none"},Mg={top:qe,left:qe,bottom:qe,right:qe,insideH:qe,insideV:qe},Ng={top:qe,left:qe,bottom:qe,right:qe},Bg={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},U0=new Map([["single","single"],["thick","thick"],["double","double"],["dotted","dotted"],["dashed","dashed"],["dashSmallGap","dashed"],["dotDash","dashed"],["dotDotDash","dashed"],["triple","triple"],["wave","single"],["hairline","single"],["inset","single"],["outset","single"]]);function Lo(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function vc(e,t){return e.attributes.find(n=>n.localName===t)?.value}function q0(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function Z0(e){if(e===null)return .5;let t=e/8;return !Number.isFinite(t)||t<=0?.5:t>fa?fa:t}function Ms(e){if(!e)return qe;let t=vc(e,"val");if(!t)return qe;if(t==="nil"||t==="none")return Es;let n=U0.get(t)??"single",r=vc(e,"color"),o=r===void 0||r==="auto"?null:Ai(r)??null;return {state:"edge",style:n,color:o,widthPt:Z0(q0(vc(e,"sz")))}}function Ag(e,t){if(!e)return Ng;let n={top:qe,left:qe,bottom:qe,right:qe};for(let r of t){let o=r==="left"?"start":r==="right"?"end":void 0,a=Lo(e,r)??(o?Lo(e,o):void 0);n[r]=Ms(a);}return n}function Ns(e){let t=e&&Lo(e,"tblBorders");return t?{...Ag(t,["top","left","bottom","right"]),insideH:Ms(Lo(t,"insideH")),insideV:Ms(Lo(t,"insideV"))}:Mg}function As(e){return Ag(e&&Lo(e,"tcBorders"),["top","left","bottom","right"])}function Tc(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function Lg(e){if(!e)return 0;let t=Number.parseInt(e.slice(0,2),16),n=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return t+n+r}function Dg(e,t,n=true){if(e.state==="omitted")return t.state==="omitted"?qe:t;if(t.state==="omitted")return e;if(e.state==="none")return t.state==="none"?Es:t;if(t.state==="none")return e;let r=Tc(e),o=Tc(t);if(r>o)return e;if(o>r)return t;let a=Bg[e.style],i=Bg[t.style];if(a!==i)return a>i?e:t;let s=Lg(e.color),l=Lg(t.color);return s<l?e:l<s?t:n?e:t}function Os(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function J0(e,t,n){return n?t==="top"||t==="bottom"?e.insideH:e.insideV:e[t]}function Q0(e,t){return e===void 0&&t===void 0?true:!e||!t?false:e.style===t.style&&e.color===t.color&&e.widthPt===t.widthPt}function Cs(e){if(e.length===0)return [];let t=[],n={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];n.gridEnd===o.gridStart&&Q0(n.edge,o.edge)?n={...n,gridEnd:o.gridEnd}:(t.push(n),n={...o});}return t.push(n),t}function Bs(e,t,n){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==t||o.gridEnd!==n))return o.edge}function Fg(e,t,n){let r=0,o=Math.min(n,e.length);for(let a=Math.max(0,t);a<o;a+=1)r+=e[a];return r}function eP(e){if(!(!e||e.style!=="double"))return no(e.widthPt)}function Ls(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function tP(e,t){return t?e==="outer"?t.insetPt:t.insetPt+t.strokePt+t.gapPt:0}function nP(e,t,n){return n?e==="outer"?t-n.insetPt:t-n.insetPt-n.strokePt-n.gapPt:t}function rP(e,t){return t?e==="outer"?t.insetPt+t.strokePt:t.insetPt+t.extentPt:0}function oP(e,t,n){return n?e==="outer"?t-n.insetPt-n.strokePt:t-n.insetPt-n.extentPt:t}function nr(e,t){e.length>=Eg||!(t.width>0)||!(t.height>0)||e.push(t);}function aP(e,t,n,r,o,a,i,s,l,d,c){let u=no(n.widthPt),{strokePt:f,gapPt:p,extentPt:m,insetPt:g}=u,h=Math.abs(r)<1e-6,b=Math.abs(o-a)<1e-6,x=Math.abs(r)<1e-6,v=Math.abs(o-i)<1e-6;if(t==="top"||t==="bottom"){let E=t==="top"?g:i-g-f,P=t==="top"?g+f+p:i-g-m;for(let L of ["outer","inner"]){let C=r,k=o;h&&(C=tP(L,s)),b&&(k=nP(L,a,l)),nr(e,{side:t,role:L,color:n.color,cssStyle:"solid",x:C,y:L==="outer"?E:P,width:k-C,height:f});}return}let w=t==="left"?g:a-g-f,O=t==="left"?g+f+p:a-g-m;for(let E of ["outer","inner"]){let P=r,L=o;x&&(P=rP(E,d)),v&&(L=oP(E,i,c)),nr(e,{side:t,role:E,color:n.color,cssStyle:"solid",x:E==="outer"?w:O,y:P,width:f,height:L-P});}}function iP(e,t,n,r,o,a,i){let s=n.widthPt,l=Math.max(1,s),d=s*3+l*2;if(t==="top"||t==="bottom"){let u=t==="top"?0:i-d;for(let f=0;f<3;f+=1)nr(e,{side:t,role:f===0?"outer":f===1?"middle":"inner",color:n.color,cssStyle:"solid",x:r,y:u+f*(s+l),width:o-r,height:s});return}let c=t==="left"?0:a-d;for(let u=0;u<3;u+=1)nr(e,{side:t,role:u===0?"outer":u===1?"middle":"inner",color:n.color,cssStyle:"solid",x:c+u*(s+l),y:r,width:s,height:o-r});}function sP(e,t,n,r,o,a,i){let s=n.widthPt;t==="top"?nr(e,{side:t,role:"edge",color:n.color,cssStyle:Ls(n.style),x:r,y:0,width:o-r,height:s}):t==="bottom"?nr(e,{side:t,role:"edge",color:n.color,cssStyle:Ls(n.style),x:r,y:i-s,width:o-r,height:s}):t==="left"?nr(e,{side:t,role:"edge",color:n.color,cssStyle:Ls(n.style),x:0,y:r,width:s,height:o-r}):nr(e,{side:t,role:"edge",color:n.color,cssStyle:Ls(n.style),x:a-s,y:r,width:s,height:o-r});}function Fs(e,t){if(e.length===0)return;let n=e[0];return eP(n.edge)}function lP(e,t,n,r,o,a,i,s,l,d){let c=(D,y,ee)=>{let I=[];for(let M of y){if(!M.edge)continue;let j,A;ee?(j=Fg(i,s,M.gridStart),A=Fg(i,s,M.gridEnd)):(j=l[M.gridStart-d]??0,A=l[M.gridEnd-d]??a),I.push({side:D,gridStart:M.gridStart,gridEnd:M.gridEnd,startPt:j,endPt:A,edge:M.edge});}return I},u=c("top",e,true),f=c("left",t,false),p=c("bottom",n,true),m=c("right",r,false),g=[...u,...m,...p,...f],h=Fs(t),b=Fs(r),x=Fs(e),v=Fs(n),w=(D,y)=>D.length===1&&Math.abs(D[0].startPt)<1e-6&&Math.abs(D[0].endPt-y)<1e-6,O=w(u,o),E=w(f,a),P=w(p,o),L=w(m,a),C=[],k=(D,y,ee)=>{for(let I of y){let{edge:M,startPt:j,endPt:A}=I;M.style==="double"?aP(C,D,M,j,A,o,a,D==="top"||D==="bottom"?h:void 0,D==="top"||D==="bottom"?b:void 0,D==="left"||D==="right"?x:void 0,D==="left"||D==="right"?v:void 0):M.style==="triple"?iP(C,D,M,j,A,o,a):ee||sP(C,D,M,j,A,o,a);}};k("top",u,O),k("left",f,E),k("bottom",p,P),k("right",m,L);let H={};return O&&u[0]&&(H.top=u[0].edge),E&&f[0]&&(H.left=f[0].edge),P&&p[0]&&(H.bottom=p[0].edge),L&&m[0]&&(H.right=m[0].edge),g.length>0&&(H.edgeSegments=g),C.length>0&&(H.strokes=C),H}function kc(e,t,n,r,o,a){let i=e.length,s=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let l=Cg(e,n,o,a),d=(u,f,p)=>Ts(u.borders[f],J0(t,f,p),{}),c=(u,f,p,m)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?Es:Dg(p,m);for(let u=0;u<i;u+=1){let f=e[u];for(let p=0;p<f.length;p+=1){let m=f[p];if(m.vMergeContinue){s[u][p]={};continue}let g=m.mergeRowSpan??1,h=u+g-1,b=u===0,x=h===i-1,v=m.gridColumn===0,w=m.gridColumn+m.gridSpan-1,O=w>=n-1,E=[];if(b)for(let j=m.gridColumn;j<=w;j+=1)E.push({gridStart:j,gridEnd:j+1,edge:Os(d(m,"top",false))});let P=[];if(v)for(let j=u;j<=h;j+=1)P.push({gridStart:j,gridEnd:j+1,edge:Os(d(m,"left",false))});let L=[];for(let j=m.gridColumn;j<=w;j+=1){let A;if(x)A=d(m,"bottom",false);else {let T=Ic(l,h+1,j,o);T?.cell.vMergeContinue?A=qe:A=c(m.borders.bottom,T?T.cell.borders.top:qe,d(m,"bottom",true),T?d(T.cell,"top",true):t.insideH);}L.push({gridStart:j,gridEnd:j+1,edge:Os(A)});}let C=[];for(let j=u;j<=h;j+=1){let A;if(O)A=d(m,"right",false);else {let T=Ic(l,j,w+1,o);A=c(m.borders.right,T?T.cell.borders.left:qe,d(m,"right",true),T?d(T.cell,"left",true):t.insideV);}C.push({gridStart:j,gridEnd:j+1,edge:Os(A)});}let k=Cs(E),H=Cs(P),D=Cs(L),y=Cs(C);if(!r){let j={},A=Bs(k,m.gridColumn,w+1),T=Bs(H,u,h+1),z=Bs(D,m.gridColumn,w+1),F=Bs(y,u,h+1);A&&(j.top=A),T&&(j.left=T),z&&(j.bottom=z),F&&(j.right=F);let K=[],W=(V,Y)=>{for(let Q of Y)Q.edge&&K.push({side:V,gridStart:Q.gridStart,gridEnd:Q.gridEnd,startPt:Q.gridStart,endPt:Q.gridEnd,edge:Q.edge});};W("top",k),W("left",H),W("bottom",D),W("right",y),K.length>0&&(j.edgeSegments=K),s[u][p]=j;continue}let ee=r.cellBoxes[u][p],I=[0],M=0;for(let j=u;j<=h;j+=1){let A=r.rowBands[j];M+=A.height,I.push(M);}I.length>1&&(I[I.length-1]=ee.height),s[u][p]=lP(k,H,D,y,ee.width,ee.height,r.columnWidthsPt,m.gridColumn,I,u);}}return s}function Ir(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var Oc=Mg,Cc=Ng;var zg=31680/20,qt=Object.freeze({type:"auto",value:0}),dP=100,cP=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function uP(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Lc(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Hg(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let t=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(t){let r=Number(t[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let n=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(n){let r=Number(n[1])*cP[n[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function vr(e){if(!e)return qt;let t=Lc(e,"type");if(t!==void 0&&t!=="pct"&&t!=="dxa")return t==="nil"?{type:"nil",value:0}:qt;let n=Lc(e,"w");if(n===void 0)return qt;let r=Hg(n);if(!r)return qt;let o=/^\d{1,9}$/.test(n);if(r.kind==="percent"||o&&t==="pct"){let a=r.kind==="percent"?r.percent:Number(n)/50;return !Number.isFinite(a)||a<=0?qt:{type:"pct",value:Math.min(a,dP)}}return !Number.isFinite(r.pt)||r.pt<=0?qt:{type:"dxa",value:Math.min(r.pt,zg)}}function ja(e,t){if(!e)return;let n=vr(e);if(n.type==="dxa")return Math.min(n.value,t)}function jg(e){let t=uP(e,"tblGrid");if(!t)return [];let n=[];for(let r of t.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(n.push(r),n.length>=1024))break;return n}function fP(e){let t=[];for(let n of e){let r=Lc(n,"w"),o=r===void 0?null:Hg(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){t.push(void 0);continue}t.push(o.pt>zg?void 0:o.pt);}return t}var Bc=1,_g=.001;function pP(e,t,n,r){let o=[];for(let i=0;i<n;i+=1)o.push(e[i]);let a=t.filter(i=>i.start<n&&(i.preferred.type==="dxa"||i.preferred.type==="pct"&&r>0)).sort((i,s)=>i.span-s.span);for(let i of a){let s=Math.min(i.start+i.span,n);if(s<=i.start)continue;let l=i.preferred.type==="pct"?r*i.preferred.value/100:i.preferred.value;if(!Number.isFinite(l)||l<=0)continue;if(s-i.start===1){let f=o[i.start];o[i.start]=f===void 0?l:Math.max(f,l);continue}let d=[],c=l;for(let f=i.start;f<s;f+=1){let p=o[f];p===void 0?d.push(f):c-=p;}if(d.length===0||c<=0)continue;let u=c/d.length;for(let f of d)o[f]=u;}return o}function Gg(e){let{columnCount:t,tableWidth:n}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:Bc,a=n.type==="dxa"?n.value:n.type==="pct"?o*n.value/100:0,i=fP(e.gridCols),s=pP(i,e.claims,t,a),l=0,d=0;for(let b of s)b===void 0?d+=1:l+=b;let c=[];if(d>0){let b=l>0?l/Math.max(t-d,1):o/t,x=Math.max(o-l,0)/d,v=Math.max(Math.min(x,b),Bc);for(let w of s)c.push(w??v);}else for(let b of s)c.push(b);let u=c.reduce((b,x)=>b+x,0);if(!Number.isFinite(u)||u<=0)return new Array(t).fill(o/t);let f=t*Bc,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),g=n.type==="pct"&&a>0;if(u<=m+_g&&!g||Math.abs(u-m)<=_g)return c;let h=m/u;return c.map(b=>b*h)}var zs=16,Wa=3,_s=31680/20,nh=31680/20,Wg=1023,mP=256,$g=31680/20;function Xg(e){let t=e&&he(e,"jc");if(!t)return;let n=De(t,"val");if(n==="center")return "center";if(n==="right"||n==="end")return "right";if(n==="left"||n==="start")return "left"}var Vg=31680/20,rh={top:Wa,right:Wa,bottom:Wa,left:Wa};function he(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function De(e,t){return e.attributes.find(n=>n.localName===t)?.value}function gP(e){let t=e&&he(e,"gridSpan"),n=t&&De(t,"val");if(!n||!/^\d{1,7}$/.test(n))return 1;let r=Number(n);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function Yg(e,t){let n=e&&he(e,t),r=n&&De(n,"val");if(!r||!/^\d{1,7}$/.test(r))return 0;let o=Number(r);return Number.isInteger(o)&&o>0?Math.min(o,1024):0}function hP(e){let t=e&&he(e,"vMerge");return t?De(t,"val")!=="restart":false}function yP(e){let t=e&&he(e,"vAlign"),n=t&&De(t,"val");return n==="center"?"center":n==="bottom"?"bottom":"top"}function Kg(e){return Cd(e&&he(e,"shd"))}function Ug(e,t){let n=e&&he(e,t);if(!n)return false;let r=De(n,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var Ga=Object.freeze({rule:"auto"});function bP(e){let t=e&&he(e,"trHeight");if(!t)return Ga;let n=De(t,"hRule"),r=n==="auto"||n==="exact"||n==="atLeast"?n:void 0;if(r==="auto")return Ga;let o=De(t,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return Ga;let a=Number(o);if(!Number.isFinite(a)||a<=0)return Ga;let i=Math.min(a/20,nh);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:Ga}function Ds(e){if(!e)return;let t=De(e,"w");if(t===void 0||!/^\d{1,9}$/.test(t))return;let n=Number(t);if(!Number.isFinite(n)||n<0)return;let r=n/20;return r>_s?_s:r}function Fc(e){if(!e)return {};let t=Ds(he(e,"top")),n=Ds(he(e,"left")??he(e,"start")),r=Ds(he(e,"bottom")),o=Ds(he(e,"right")??he(e,"end"));return {...t===void 0?{}:{top:t},...n===void 0?{}:{left:n},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function Ec(e,t){return {top:t.top??e.top,right:t.right??e.right,bottom:t.bottom??e.bottom,left:t.left??e.left}}function $a(e,t){let n=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=t-n;return !Number.isFinite(r)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?r:Math.min(e.indentPt,r)}function qg(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function Zg(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let t=Number(e);if(!Number.isFinite(t))return;let n=t/20;return Math.max(-Vg,Math.min(Vg,n))}function Jg(e){let t=e&&he(e,"tblpPr");if(!t)return;let n=De(t,"tblpXSpec"),r=n==="left"||n==="center"||n==="right"||n==="inside"||n==="outside"?n:void 0,o=De(t,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:qg(De(t,"horzAnchor"))??"text",vertAnchor:qg(De(t,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:Zg(De(t,"tblpX"))??0,...a?{ySpec:a}:{},yPt:Zg(De(t,"tblpY"))??0}}function oh(e,t,n){let r=n[e.horzAnchor],o=r.width-t,a;if(e.xSpec==="center"?a=r.left+o/2:e.xSpec==="right"||e.xSpec==="outside"?a=r.left+o:e.xSpec?a=r.left:a=r.left+e.xPt,!Number.isFinite(a))return r.left;let i=n.page.left+n.page.width;return Math.max(n.page.left,Math.min(a,i))}var xP=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function En(e,t){let n=De(e,t);if(n!==void 0)return n!=="0"&&n!=="false"&&n!=="off"}function SP(e){let t=e&&he(e,"tblLook");if(!t)return xP;let n=De(t,"val"),r=n&&/^[0-9A-Fa-f]{1,4}$/.test(n)?Number.parseInt(n,16):0;return {firstRow:En(t,"firstRow")??(r&32)!==0,lastRow:En(t,"lastRow")??(r&64)!==0,firstColumn:En(t,"firstColumn")??(r&128)!==0,lastColumn:En(t,"lastColumn")??(r&256)!==0,rowBanding:En(t,"noHBand")===void 0?(r&512)===0:!En(t,"noHBand"),columnBanding:En(t,"noVBand")===void 0?(r&1024)===0:!En(t,"noVBand")}}var Mc=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],Qg=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function eh(e,t){let n=e&&he(e,"cnfStyle");if(!n)return;let r=De(n,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<Mc.length;o+=1)r[o]==="1"&&t.add(Mc[o]);for(let o=0;o<Qg.length;o+=1)En(n,Qg[o])===true&&t.add(Mc[o]);}var RP=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function wP(e){let t=new Set;eh(e.rowProperties,t),eh(e.cellProperties,t);let{look:n,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:s}=e,l=t.has("firstRow")||n.firstRow&&r===0,d=t.has("lastRow")||n.lastRow&&r===o-1,c=t.has("firstCol")||n.firstColumn&&a===0,u=t.has("lastCol")||n.lastColumn&&a+i>=s;if(!(t.has("band1Vert")||t.has("band2Vert"))&&n.columnBanding&&!c&&!u){let g=a-(n.firstColumn?1:0);t.add(g%2===0?"band1Vert":"band2Vert");}if(!(t.has("band1Horz")||t.has("band2Horz"))&&n.rowBanding&&!l&&!d){let g=r-(n.firstRow?1:0);t.add(g%2===0?"band1Horz":"band2Horz");}c&&t.add("firstCol"),u&&t.add("lastCol"),l&&t.add("firstRow"),d&&t.add("lastRow"),l&&c&&t.add("nwCell"),l&&u&&t.add("neCell"),d&&c&&t.add("swCell"),d&&u&&t.add("seCell");let m=[];for(let g of RP)t.has(g)&&m.push(g);return m}var th=new WeakMap;function Fo(e,t,n,r,o="all-markup"){let a=th.get(e);if(a&&a.contentWidthPt===t&&a.depth===n&&a.styleCascade===r&&a.displayMode===o)return a.structure;let i=PP(e,t,n,r,o);return th.set(e,{contentWidthPt:t,depth:n,styleCascade:r,displayMode:o,structure:i}),i}function PP(e,t,n,r,o){if(n>=zs||e.kind!=="table")return null;let a=he(e,"tblPr"),i=a&&he(a,"tblStyle")?De(he(a,"tblStyle"),"val"):void 0,s=r?dg(r,i):Da,l=SP(a),d=rh,c=Oc;for(let z of s.tablePropertyNodes)d=Ec(d,Fc(he(z,"tblCellMar"))),c=wc(c,Ns(z));let u=Ec(d,Fc(a&&he(a,"tblCellMar"))),f=wc(c,a?Ns(a):Oc),p=new Map,m=z=>{if(s===Da)return yc;let F=z.join("|"),K=p.get(F);if(K)return K;let W=cg(s,z);return p.size<mP&&p.set(F,W),W},g=[],h=[],b=1;for(let z of chunkIMMAG4QP_cjs.oe(e.children)){if(z.kind!=="tableRow")continue;let F=he(z,"trPr"),K=[],W=[],V=[],Y=Math.min(Yg(F,"gridBefore"),Wg);Y>0&&h.push({start:0,span:Y,preferred:vr(F&&he(F,"wBefore"))});let Q=Y,G=chunkIMMAG4QP_cjs.oe(z.children);for(let xe of G){if(xe.kind!=="tableCell")continue;let ae=he(xe,"tcPr"),se=Math.min(Q,Wg),we=Math.min(gP(ae),1024-se),Ie=vr(ae&&he(ae,"tcW"));K.push(se),W.push(we),V.push(Ie),h.push({start:se,span:we,preferred:Ie}),Q=se+we;}let U=Yg(F,"gridAfter"),re=Math.min(Q+U,1024);U>0&&Q<1024&&h.push({start:Q,span:Math.min(U,1024-Q),preferred:vr(F&&he(F,"wAfter"))}),re>b&&(b=re),g.push({node:z,cells:G,properties:F,starts:K,spans:W,preferred:V,gridColumns:re});}let x=jg(e),v=x.length>0?x.length:b,w=g.length,O=[];for(let z=0;z<g.length;z+=1){let F=g[z],K=F.node,W=F.properties,V=0,Y=[];for(let ae of F.cells){if(ae.kind!=="tableCell")continue;let se=he(ae,"tcPr"),we=F.starts[V],Ie=F.spans[V],Se=F.preferred[V]??qt,Be=wP({look:l,rowIndex:z,rowCount:w,gridColumn:we,gridSpan:Ie,columnCount:v,rowProperties:W,cellProperties:se});V+=1;let He,je=Cc;for(let Ht of Be){let jt=s.conditional.get(Ht);if(!jt)continue;let Qe=he(jt,"tcPr");He=Kg(Qe)??He,je=Pc(je,As(Qe));}let ft=Kg(se)??He,zt=Ec(u,Fc(se&&he(se,"tcMar"))),$e=Ha(ae.children,o);Y.push({id:ae.id,gridSpan:Ie,gridColumn:we,...x[we]?.id?{gridColumnId:x[we].id}:{},vMergeContinue:hP(se),vAlign:yP(se),margins:zt,borders:Pc(je,se?As(se):Cc),...ft===void 0?{}:{shading:ft},preferredWidth:Se,styleFormatting:m(Be),blocks:$e});}let Q=W?he(W,"ins")??he(W,"del"):void 0,G=Q?Q.localName==="ins"?"insert":"delete":void 0,U=Q&&De(Q,"id"),re=Q&&De(Q,"author"),xe=Q&&De(Q,"date");O.push({id:K.id,...G?{revisionKind:G}:{},...U!==void 0?{revisionId:U}:{},...re!==void 0?{revisionAuthor:re}:{},...xe!==void 0?{revisionDate:xe}:{},isHeader:Ug(W,"tblHeader"),cantSplit:Ug(W,"cantSplit"),height:bP(W),cells:Y});}let E=qt,P,L,C,k,H;for(let z of s.tablePropertyNodes){let F=he(z,"tblW");F&&(E=vr(F));let K=he(z,"tblLayout");K&&(P=De(K,"type")==="fixed"),L=ja(he(z,"tblInd"),$g)??L,C=Xg(z)??C,k=ja(he(z,"tblCellSpacing"),_s)??k,H=Jg(z)??H;}let D=a&&he(a,"tblW"),y=D?vr(D):E,ee=a&&he(a,"tblLayout"),I=ee?De(ee,"type")==="fixed":P??false,M=ja(a&&he(a,"tblInd"),$g)??L??0,j=Xg(a)??C??"left",A=n===0?Jg(a)??H:void 0,T=ja(a&&he(a,"tblCellSpacing"),_s)??k??0;return {columnWidthsPt:Gg({gridCols:x,claims:h,columnCount:v,contentWidthPt:t,tableWidth:y,layoutFixed:I}),rows:O,tableWidth:y,layoutFixed:I,indentPt:M,alignment:j,...A?{float:A}:{},cellSpacingPt:T,tableBorders:f,defaultMargins:u}}function Hs(e){let t=[],n=0;for(let r of e.members){let o=chunkIMMAG4QP_cjs.Ud(r).length;t.push({paragraphId:r.id,base:n,length:o}),n+=o;}return {members:t,total:n}}function Nc(e,t){let n;for(let r of e.members){if(r.base>t)break;(n===void 0||r.length>0||r.base>n.base)&&(n=r);}return n??e.members[e.members.length-1]}function ah(e,t){let n=Nc(t,e.start);if(!n)return e;let r=e.end-n.base;return {paragraphId:n.paragraphId,start:e.start-n.base,end:Math.min(r,n.length)}}function IP(e,t){return {...e,range:ah(e.range,t)}}function js(e,t){return e.map(n=>{let r=n.spans.map(u=>IP(u,t)),o=r[0],a=n.drawings?.map(u=>{let f=Nc(t,u.start);return f?{...u,paragraphId:f.paragraphId,start:u.start-f.base}:u}),i=o?r.filter(u=>u.range.paragraphId===o.range.paragraphId):[],s=o?(a??[]).filter(u=>u.paragraphId===o.range.paragraphId):[],l=o?{paragraphId:o.range.paragraphId,start:Math.min(o.range.start,...s.map(u=>u.start)),end:Math.max(i[i.length-1].range.end,...s.map(u=>u.start+1))}:ah(n.range,t),d=a,c=n.deletedRanges?.map(u=>({deleted:u,member:Nc(t,u.start)})).filter(({member:u})=>u?.paragraphId===l.paragraphId).map(({deleted:u,member:f})=>({start:u.start-(f?.base??0),end:u.end-(f?.base??0)}));return {...n,range:l,spans:r,...d?{drawings:d}:{},...c?{deletedRanges:c}:{}}})}var Dc=512,sh=9,Zt=31680/20,vP=8,TP=128;function Xa(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkIMMAG4QP_cjs.ca&&e.localName===t}function Ze(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Tt(e,t){for(let n of e.children)if(Xa(n,t))return n}function Mn(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function kP(e){let t=e/20;return !Number.isFinite(t)||t<=0?0:t>Zt?Zt:t}function Ac(e){let t=e/20;return Number.isFinite(t)?t>Zt?Zt:t<-Zt?-Zt:t:0}function OP(e){let t={left:0,right:0,hanging:0,firstLine:0};if(!e)return t;let n=Tt(e,"ind");if(!n)return t;let r=Mn(Ze(n,"left")??Ze(n,"start"),true),o=Mn(Ze(n,"right")??Ze(n,"end"),true),a=Mn(Ze(n,"hanging")),i=Mn(Ze(n,"firstLine"),true);return {left:r===null?0:Ac(r),right:o===null?0:Ac(o),hanging:a===null?0:kP(a),firstLine:i===null?0:Ac(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function CP(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function BP(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function LP(e,t){let n=Tt(e,t);if(!n)return false;let r=Ze(n,"val");return r!=="0"&&r!=="false"&&r!=="off"}function ih(e,t){let n=Tt(e,t);if(!n)return;let r=Ze(n,"val");if(!(r===void 0||r.length===0||r.length>TP))return r}function FP(e,t){for(let n of e){if(n.localName!==t)continue;let r=n.attributes?.val;return !(r==="0"||r==="false")}return false}function lh(e){let t=Mn(Ze(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Tt(e,"start"),r=1;if(n){let b=Mn(Ze(n,"val"));b!==null&&b>=0&&(r=Math.min(b,9999));}let o=Tt(e,"numFmt"),a=(o?Ze(o,"val"):void 0)??"decimal",i=Tt(e,"lvlText"),s=i?Ze(i,"val")??"":"",l=Tt(e,"lvlJc"),d=BP(l?Ze(l,"val"):void 0),c=Tt(e,"suff"),u=CP(c?Ze(c,"val"):void 0),f=Tt(e,"lvlRestart"),p;if(f){let b=Mn(Ze(f,"val"));b!==null&&b>=0&&b<=9&&(p=b);}let m=Tt(e,"pPr"),g=Tt(e,"rPr"),h=g?fo(g):[];return {ilvl:t,start:r,numFmt:a.length>64?"decimal":a,lvlText:s.length>64?s.slice(0,64):s,lvlJc:d,suff:u,indent:OP(m),...p!==void 0?{lvlRestart:p}:{},isLgl:LP(e,"isLgl"),runProperties:h,vanish:FP(h,"vanish")}}function EP(e){let t=Ze(e,"abstractNumId");if(t===void 0||t.length===0||t.length>64)return null;let n=new Map;for(let a of e.children){if(!Xa(a,"lvl"))continue;if(n.size>=9)break;let i=lh(a);i&&!n.has(i.ilvl)&&n.set(i.ilvl,i);}let r=ih(e,"numStyleLink"),o=ih(e,"styleLink");return {abstractNumId:t,levels:n,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function MP(e){let t=Mn(Ze(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Tt(e,"startOverride"),r;if(n){let i=Mn(Ze(n,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=Tt(e,"lvl"),a=o?lh(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:t,override:{}}:{ilvl:t,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function NP(e){let t=Ze(e,"numId");if(t===void 0||t.length===0||t.length>64)return null;let n=Tt(e,"abstractNumId"),r=n?Ze(n,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!Xa(a,"lvlOverride"))continue;if(o.size>=sh)break;let i=MP(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:t,abstractNumId:r,overrides:o}}function AP(e){let t=new Map,n=new Map;if(!e)return {abstractNums:t,nums:n};let r=0,o=0;for(let a of e.children){if(Xa(a,"abstractNum")){if(r>=Dc)continue;r+=1;let i=EP(a);i&&!t.has(i.abstractNumId)&&t.set(i.abstractNumId,i);continue}if(Xa(a,"num")){if(o>=Dc)continue;o+=1;let i=NP(a);i&&!n.has(i.numId)&&n.set(i.numId,i);}}return {abstractNums:t,nums:n}}function DP(e,t,n){let r=new Set([t.abstractNumId]),o=t;for(let a=0;a<vP;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let s=n(i);if(s===void 0)return null;let l=e.nums.get(s);if(!l)return null;let d=e.abstractNums.get(l.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function dh(e,t){let n=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=DP(e,a,t);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),n=true);}return n?{abstractNums:r,nums:e.nums}:e}function Eo(e,t,n){if(n<0||n>8)return null;let r=e.nums.get(t);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(n),i=a?.level??o.levels.get(n);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var _c=Object.freeze({abstractNums:new Map,nums:new Map});function _P(e,t){let n=e.nums.get(t),r=[];for(let o=0;o<=8;o+=1){let a=Eo(e,t,o);if(!a){r.push(1);continue}let i=n?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function zP(e,t,n){let r=[];for(let o=0;o<=8;o+=1){let a=Eo(e,t,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...n]}}function HP(e,t){if(t===0)return null;if(t===void 0)return e-1;let n=t-1;return n>=e?null:n}function zc(e){let t=new Map,n=new Map,r=new Map,o=a=>{let i=t.get(a);i||(i=[0,0,0,0,0,0,0,0,0],t.set(a,i));let s=n.get(a);s||(s=[false,false,false,false,false,false,false,false,false],n.set(a,s));let l=r.get(a);return l||(l=_P(e,a),r.set(a,l)),{counters:i,initialized:s,starts:l}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let s=Eo(e,a,i);if(!s)return null;let{abstractNumId:l,level:d}=s,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=zP(e,a,f);for(let w=i+1;w<=8;w+=1){let O=Eo(e,a,w);if(!O)continue;let E=HP(w,O.level.lvlRestart);E!==null&&i<=E&&(u[w]=false);}let m=f[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let g=c.slice(),h=u.slice(),b=g.map((w,O)=>h[O]?w:f[O]??1),x=d.isLgl?p.map(w=>w==="bullet"||w==="none"?w:"decimal"):p,v=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:$d(d.lvlText,b,x);return {abstractNumId:l,numId:a,ilvl:i,level:d,counters:g,markerText:v}}}}var Gc=new WeakMap;function AB(e,t){let n=t.dependencyKeys.size===0||[...t.dependencyKeys].every(r=>r===chunkIMMAG4QP_cjs.g.story);Gc.set(e,{preservesNumberedSequence:t.impact==="text-local"&&!t.structural&&t.created.size===0&&t.deleted.size===0&&n});}function GP(e){let t=Gc.get(e);return Gc.delete(e),t}function WP(e){return [e.fontFamily??"",e.fontSizePt,e.bold?1:0,e.italic?1:0,e.characterSpacingPt,e.horizontalScalePercent,e.verticalAlign,e.hidden?1:0,e.kerningMinPt,e.caps?1:0,e.smallCaps?1:0].join(",")}function Wc(e){return e.kind!=="textValue"}function ch(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Gs(e,t){for(let n of e.children)if(Wc(n)&&n.localName===t)return n}function $c(e){let t=null;for(let n of e){if(!Wc(n))continue;let r=Gs(n,"numPr");if(!r)continue;let o=Gs(r,"ilvl"),a=Gs(r,"numId"),i=a?ch(a,"val"):void 0,s=o?ch(o,"val"):"0";if(!i||i==="0"){t=null;continue}if(i.length>64){t=null;continue}let l=/^\d{1,2}$/.test(s??"")?Number(s):0;if(l<0||l>8){t=null;continue}t={numId:i,ilvl:l};}return t}function $P(e,t){let n=new Set,r=e.styles.get(t);for(let o=0;r!==void 0&&o<ws;o+=1){if(n.has(r.styleId))return;n.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?$c([a]):null;if(i)return i.numId;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var Hc=new WeakMap;function Xc(e,t){if(!t)return e;let n=Hc.get(e);if(n&&n.styleCascade===t)return n.linked;let r=dh(e,a=>$P(t,a)),o={styleCascade:t,linked:r};return Hc.set(e,o),Hc.set(r,o),r}function uh(e){return Number.isFinite(e)?e>Zt?Zt:e<-Zt?-Zt:e:0}function fh(e){let t=null;for(let n of e){if(n.localName!=="ind")continue;let r=n.attributes?.hanging,o=n.attributes?.firstLine;r===void 0&&o===void 0||(t={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?uh(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?uh(Number(o)/20):0});}return t}function ph(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.left!==void 0||t.attributes?.start!==void 0))}function mh(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.right!==void 0||t.attributes?.end!==void 0))}function bh(e,t,n=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=Ma(t),a=Ma(n),i={hanging:e.hanging,firstLine:e.firstLine},s=ph(n)?a.left:r.left?e.left:ph(t)?o.left:e.left,l=mh(n)?a.right:r.right?e.right:mh(t)?o.right:e.right,d=fh(n)??(r.firstLineOffset?i:fh(t)??i);return {left:s,right:l,...d}}function Vc(e,t=8){let n=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){n.push(i);continue}if(!(i.kind!=="table"||a>=t)){for(let s of chunkIMMAG4QP_cjs.oe(i.children))if(s.kind==="tableRow")for(let l of chunkIMMAG4QP_cjs.oe(s.children)){if(l.kind!=="tableCell")continue;let d=chunkIMMAG4QP_cjs.Lb(l.children);r(d,a+1);}}}};return r(e,0),n}var gh=new WeakMap;function xh(e,t){let n=gh.get(e);if(n&&n.styleCascade===t)return n;let r=e.children.find(l=>l.kind==="paragraphProperties"),o=t?Bo(t,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&Wc(r)?Gs(r,"rPr"):void 0,s={styleCascade:t,numPr:$c(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:vt(r),inheritedMarkProps:o?o.markRunProperties:vt(i),perLevel:new WeakMap};return gh.set(e,s),s}function Sh(e,t,n,r){let o=new Map;if(t.nums.size===0)return o;let a=Xc(t,n),i=zc(a);for(let s of Vc(e)){let l=xh(s,n),d=l.numPr;if(!d)continue;let c=i.advance(d.numId,d.ilvl);if(!c)continue;let u=l.perLevel.get(c.level);if(!u){let h=bh(c.level.indent,l.inheritedParagraphProperties,l.directProps),b=Ln(l.inheritedMarkProps,c.level.runProperties,n);u={indent:h,markerStyle:Me(b,n?.themeFonts)},l.perLevel.set(c.level,u);}let{indent:f,markerStyle:p}=u,m=po(c.markerText,p.fontFamily,r),g=[c.numId,c.ilvl,c.level.numFmt,c.level.lvlText,f.left,f.right,f.hanging,f.firstLine,c.level.lvlJc,c.level.suff,c.level.vanish?1:0,m,WP(p)].join("|");o.set(s.id,{numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:m,markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:f,markerStyle:p,cacheToken:g});}return o}var Rh=new WeakMap,wh=new WeakMap;function hh(e,t,n){let r=n?wh.get(n):Rh.get(t);if(r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable)return r}function XP(e,t,n){t?wh.set(t,n):Rh.set(e,n);}function Ph(e,t,n){if(e.listItems===void 0){let i=hh(e,t,n);if(i&&n===void 0)return {...e,numberingIndex:i.linkedIndex,...i.listItems?{listItems:i.listItems}:{}}}let r=e.listItems===void 0?hh(e,t,n):void 0,o=r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable?r.linkedIndex:Xc(e.numberingIndex??_c,e.styleCascade),a=e.listItems??(o.nums.size>0?UP(t,e.numberingIndex,o,e.styleCascade,e.isFontAvailable,n):void 0);return e.listItems===void 0&&XP(t,n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:e.isFontAvailable,linkedIndex:o,listItems:a}),{...e,numberingIndex:o,...a?{listItems:a}:{}}}function Tr(e,t){return Ph(e,t,void 0)}function Ih(e,t,n){return Ph(e,t,n)}var yh=new WeakMap,VP=Object.freeze([]);function YP(e,t){let n=yh.get(e);if(n&&n.styleCascade===t)return n.numbered;let r=Vc([e]).filter(a=>xh(a,t).numPr!==null),o=r.length>0?r:VP;return yh.set(e,{styleCascade:t,numbered:o}),o}var Mo=new WeakMap,jc=new WeakMap;function KP(e,t){return e.length===t.length&&e.every((n,r)=>{let o=t[r];if(!o||n.id!==o.id)return false;let a=n.children.find(s=>s.kind==="paragraphProperties"),i=o.children.find(s=>s.kind==="paragraphProperties");return a===i})}function UP(e,t,n,r,o,a){let i=e[0],s=e[e.length-1],l=a?jc.get(a):(i?Mo.get(i):void 0)??(s?Mo.get(s):void 0);if((a?GP(a):void 0)?.preservesNumberedSequence&&l&&l.rawIndex===t&&l.styleCascade===r&&l.isFontAvailable===o)return l.listItems;let c=new Array(e.length),u=l!==void 0&&l.rawIndex===t&&l.styleCascade===r&&l.isFontAvailable===o&&l.blocks.length===e.length;for(let m=0;m<e.length;m+=1){let g=e[m],h=l&&l.blocks[m]===g?l.numberedByBlock[m]:YP(g,r);c[m]=h,u&&!KP(h,l.numberedByBlock[m])&&(u=false);}if(l&&u){let m={...l,blocks:e,numberedByBlock:c};return a?jc.set(a,m):(i&&Mo.set(i,m),s&&s!==i&&Mo.set(s,m)),l.listItems}let f=Sh(e,n,r,o),p={rawIndex:t,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?jc.set(a,p):(i&&Mo.set(i,p),s&&s!==i&&Mo.set(s,p)),f}function Ws(e,t,n,r){if((!e.markerText||e.indent.hanging<=0&&t<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=Math.min(0,o),s=Math.max(i,o-a),l=Math.max(a,t),d=s;return e.markerAlign==="right"?d=o-t:e.markerAlign==="center"&&(d=s+(l-t)/2),d<i&&(d=i),{x:d,y:n,width:Math.max(t,0),height:r}}function qP(e,t,n=io,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=t.measure(e.markerText,e.markerStyle),a=Ws(e,o,0,0);if(!a)return 0;let i=e.indent.left,s=a.x+a.width;return e.suffix==="nothing"?s-i:e.suffix==="space"?s+t.measure(" ",e.markerStyle)-i:s<=i?0:so(n,s,r).positionPt-i}function $s(e,t,n,r,o){return e?qP(e,n,r,o===void 0?void 0:t.left+o):t.hanging>0?-t.hanging:t.firstLine}function Xs(e,t,n,r=0){if(!e||!e.markerText||!n)return;let o=t.measure(e.markerText,e.markerStyle),a=Ws(e,o,n.y,n.height);if(a)return {text:e.markerText,style:e.markerStyle,box:{x:a.x+r,y:a.y,width:a.width,height:a.height},level:e.ilvl,numId:e.numId,numFmt:e.numFmt}}var vh=new WeakMap,Th=new WeakMap,kh=new WeakMap,Oh=new WeakMap;function Ch(e){let t=Oh.get(e);if(t)return t;let n=new Set,r=[];for(let o of Ke(e)){for(let a of o.lines)for(let i of ut(a))n.has(i.paragraphId)||(n.add(i.paragraphId),r.push(i.paragraphId));o.lines.length===0&&!n.has(o.paragraphId)&&(n.add(o.paragraphId),r.push(o.paragraphId));}return Oh.set(e,r),r}function kr(e){let t=vh.get(e);if(t)return t;let n=new Set,r=[];for(let o of e.pages)for(let a of Ch(o))n.has(a)||(n.add(a),r.push(a));return vh.set(e,r),r}function Va(e){let t=Th.get(e);if(t)return t;let n=new Map;for(let[r,o]of kr(e).entries())n.set(o,r);return Th.set(e,n),n}function Bh(e){let t=kh.get(e);if(t)return t;let n=new Set,r=[],o=a=>{for(let i of Yt(a)){for(let s of i.lines)for(let l of ut(s))n.has(l.paragraphId)||(n.add(l.paragraphId),r.push(l.paragraphId));i.lines.length===0&&!n.has(i.paragraphId)&&(n.add(i.paragraphId),r.push(i.paragraphId));}};for(let a of e.pages){for(let i of Ch(a))n.has(i)||(n.add(i),r.push(i));for(let i of [a.header,a.footer])i&&o(i.fragments);for(let i of [a.footnotes,a.endnotes])if(i){i.separator&&o(i.separator.fragments);for(let s of i.notes)o(s.fragments);}}return kh.set(e,r),r}var Lh=new WeakMap;function Yc(e){let t=Lh.get(e);if(t)return t;let n=[...Ke(e)];for(let r of [e.header,e.footer])r&&n.push(...Yt(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)n.push(...Yt(o.fragments));return Lh.set(e,n),n}var Fh=new WeakMap;function ut(e){let t=Fh.get(e);if(t)return t;let n={paragraphId:e.range.paragraphId,start:e.range.start,end:e.range.end,spans:e.spans,drawings:e.drawings??[]},o=e.spans.some(a=>a.range.paragraphId!==e.range.paragraphId)?ZP(e):[n];return Fh.set(e,o),o}function ZP(e){let t=[];for(let n of e.spans){let r=t[t.length-1];if(r&&r.paragraphId===n.range.paragraphId){t[t.length-1]={...r,start:Math.min(r.start,n.range.start),end:Math.max(r.end,n.range.end),spans:[...r.spans,n]};continue}t.push({paragraphId:n.range.paragraphId,start:n.range.start,end:n.range.end,spans:[n],drawings:[]});}return t.map(n=>({...n,drawings:(e.drawings??[]).filter(r=>r.paragraphId===n.paragraphId)}))}function Nn(e,t){return ut(e).find(n=>n.paragraphId===t)??null}function No(e,t,n,r){let o=Va(e),a=o.get(t.paragraphId)??-1,i=o.get(n.paragraphId)??-1,s=o.get(r.paragraphId)??-1;if(a<i||a>s)return null;let l=a===i?Math.max(t.start,n.offset):t.start,d=a===s?Math.min(t.end,r.offset):t.end;return d>l?{start:l,end:d}:null}function KB(e,t){for(let n of e.pages)for(let r of Ke(n)){let o=rr(r).indexOf(t);if(o>0)return rr(r).slice(0,o).reverse()}return []}var Eh=new WeakMap;function rr(e){let t=Eh.get(e);if(t)return t;let n=[];for(let r of e.lines??[])for(let o of ut(r))n.includes(o.paragraphId)||n.push(o.paragraphId);return n.includes(e.paragraphId)||n.push(e.paragraphId),Eh.set(e,n),n}function JP(e,t){let n=rr(e);if(n.length===1)return n[0]===t?{start:e.range.start,end:e.range.end}:null;let r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(let a of e.lines??[]){let i=Nn(a,t);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function Kc(e,t,n){let r=JP(e,t);return r!==null&&n>=r.start&&n<r.end}function UB(e,t){for(let n of e.pages)for(let r of Yc(n))if(r.paragraphId===t)return r;for(let n of e.pages)for(let r of Yc(n))if(rr(r).includes(t))return r;return null}var Qc=8,Mh=new WeakMap;function Ys(e){let t=Mh.get(e);if(t)return t;let n=[],r=new Map,o=new Map,a=new Map,i=new Map,s=new Map,l=(c,u)=>{for(let f of c){if(f.kind==="paragraph"){if(!u)for(let p of f.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of f.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let m=a.get(f.tableId)??0;r.set(p.id,m),a.set(f.tableId,m+1);}for(let m of p.cells){if(!p.isHeaderRepeat&&!u){let g=`${f.tableId}|${m.gridColumn}`;if(m.blocks.length===0){let h=s.get(g);h&&i.set(m,h);}else s.set(g,{row:p,cell:m});}l(m.blocks,u||p.isHeaderRepeat);}}}};for(let c of e.pages)n.push(c.box.y),l(c.fragments,false);let d={pageTops:n,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return Mh.set(e,d),d}function Ua(e,t){let n=Ys(e).pageTops;if(n.length===0)return -1;let r=0,o=n.length-1,a=0;for(;r<=o;){let i=r+o>>1;n[i]<=t?(a=i,r=i+1):o=i-1;}return a}function QP(e,t){let n=e.pages[Ua(e,t.y)];if(!n)return false;for(let r of [n.header,n.footer])if(r&&Us(r.box,t))return true;return false}function Zc(e,t,n,r=false){if(!e||e.length===0)return null;let o=[...e].sort((a,i)=>a.behindDocument!==i.behindDocument?a.behindDocument?-1:1:i.relativeHeight-a.relativeHeight);for(let a of o){if(r&&a.behindDocument||!Ya(a,t))continue;let i={paragraphId:a.anchorParagraphId,offset:a.start};return {position:i,caret:{position:i,x:a.x,y:a.y,height:a.height,lineId:"",pageIndex:n},pageIndex:n,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function Ks(e,t,n,r={}){let o=e.pages[t];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??Qc,measurer:r.measurer},i=Nh(e,o.index,n),s=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),l=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=Zc(s,n,a.pageIndex);if(d)return {...d,contentControlId:i};let c=Vs(o.fragments,n,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=Zc(l,n,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let f=1;f<e.pages.length;f+=1)for(let p of [t-f,t+f]){let m=e.pages[p];if(!m)continue;let g=Vs(m.fragments,n,{...a,pageIndex:m.index},null);if(g)return {...g,contentControlId:Nh(e,m.index,n)}}return null}function nL(e,t,n,r,o={}){let a=e.pages[t];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??Qc,measurer:o.measurer};return Vs(n,r,i,null)}function eI(e,t,n={}){let r=e.pages[Ua(e,t.y)];if(!r)return null;for(let o of [r.header,r.footer]){if(!o?.anchoredDrawings||o.anchoredDrawings.length===0)continue;let a=Object.freeze({x:t.x-o.box.x,y:t.y-o.box.y}),i=Zc(o.anchoredDrawings,a,r.index);if(i)return i}return Ks(e,r.index,{x:t.x-r.contentBox.x,y:t.y-r.contentBox.y},n)}function Us(e,t){return t.x>=e.x&&t.x<e.x+e.width&&t.y>=e.y&&t.y<e.y+e.height}function qs(e,t,n){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===t&&Us(i.box,n)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function Nh(e,t,n){return qs(e,t,n)?.id??null}function Jc(e,t,n){let r=Math.max(e.x-t.x,0,t.x-(e.x+e.width)),o=Math.max(e.y-t.y,0,t.y-(e.y+e.height));return r+o*n}function tI(e,t,n){return e.kind!=="table"||Math.max(e.box.y-t.y,0,t.y-(e.box.y+e.box.height))>0?Jc(e.box,t,n):0}function Vs(e,t,n,r){if(e.length===0)return null;let o=null;for(let i of e){if(!Us(i.box,t))continue;o=i;let s=Ah(i,t,n,r);if(s)return s;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:tI(i,t,n.verticalWeight)})).sort((i,s)=>i.score-s.score);for(let{block:i}of a){let s=Ah(i,t,n,r);if(s)return s}return null}function Ah(e,t,n,r){return e.kind==="paragraph"?nI(e,t,n,r,Us(e.box,t)):cI(e,t,n)}function nI(e,t,n,r,o){let a=rI(e.lines,t.y);if(!a)return null;let i=sI(a,t.x,t.y,n),s=aI(a,t.x),l=Math.min(Math.max(i.offset,s.start),s.end),d={paragraphId:s.paragraphId,offset:l},c=qa(a,l,n.measurer,s);return {position:d,caret:{position:d,x:i.x,y:c.y,height:c.height,lineId:a.id,pageIndex:n.pageIndex},pageIndex:n.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&t.y>=a.box.y&&t.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?oI(i.drawing):null}}function rI(e,t){if(e.length===0)return null;for(let o of e)if(t>=o.box.y&&t<o.box.y+o.box.height)return o;let n=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=t<o.box.y?o.box.y-t:t-(o.box.y+o.box.height);a<r&&(r=a,n=o);}return n}function oI(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function aI(e,t){let n=ut(e),r=n[0];for(let o of n){let a=o.spans[0];if(a===void 0)continue;let i=o.spans[o.spans.length-1];if(t>=a.box.x&&(r=o),t<i.box.x+i.box.width)break}return r}function iI(e,t,n){for(let r of n??e.drawings??[])if(r.start===t||r.start+1===t)return r;return null}function Ya(e,t){let n=e.hitBounds;return t.x<n.x||t.x>=n.x+n.width||t.y<n.y||t.y>=n.y+n.height?false:nc(t.x,t.y,e.geometry)}function sI(e,t,n,r){let o=e.spans;for(let l of e.drawings??[])if(Ya(l,{x:t,y:n}))return {offset:l.start,x:l.hitBounds.x,withinSpan:true,drawing:l};if(o.length===0&&(e.drawings?.length??0)>0){let l=e.drawings[0];if(t<=l.advanceStart)return {offset:e.range.start,x:l.advanceStart,withinSpan:false,drawing:l};let d=e.drawings[e.drawings.length-1];if(t>=d.advanceEnd)return Uc(e,d.advanceEnd,r);for(let c of e.drawings??[])if(t>=c.advanceStart&&t<c.advanceEnd){let u=t>=c.x+c.width/2;return {offset:u?c.start+1:c.start,x:u?c.advanceEnd:c.advanceStart,withinSpan:Ya(c,{x:t,y:n}),drawing:c}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=o[0];if(t<=a.box.x)return {offset:e.range.start,x:a.box.x,withinSpan:false};let i=o[o.length-1],s=i.box.x+i.box.width;if(t>=s)return Uc(e,s,r);for(let l of o)if(t>=l.box.x&&t<l.box.x+l.box.width)return lI(l,t,r);for(let l=0;l<o.length;l+=1){let d=o[l];for(let c of e.drawings??[]){if(t>=c.advanceStart&&t<c.advanceEnd){let u=Ya(c,{x:t,y:n}),f=t>=c.x+c.width/2;return {offset:f?c.start+1:c.start,x:f?c.advanceEnd:c.advanceStart,withinSpan:u,drawing:c}}if(!(c.start<=d.range.start&&c.hitBounds.x+c.hitBounds.width<=d.box.x)){if(Ya(c,{x:t,y:n}))return {offset:c.start,x:c.hitBounds.x,withinSpan:true,drawing:c};if(t<d.box.x&&t>=c.hitBounds.x+c.hitBounds.width)return {offset:c.start+1,x:c.hitBounds.x+c.hitBounds.width,withinSpan:false,drawing:c};if(t<c.hitBounds.x&&t>=(o[l-1]?.box.x??e.contentX))return {offset:c.start,x:c.hitBounds.x,withinSpan:false,drawing:c}}}if(t<d.box.x){let c=o[l-1],u=c.box.x+c.box.width;return t-u<=d.box.x-t?{offset:c.range.end,x:u,withinSpan:false}:{offset:d.range.start,x:d.box.x,withinSpan:false}}}return Uc(e,s,r)}function Uc(e,t,n){let r=Gh(n.layout,e);if(r===e.range.end)return {offset:r,x:t,withinSpan:false};for(let o=e.spans.length-1;o>=0;o-=1){let a=e.spans[o];if(r<a.range.start)continue;let i=r-a.range.start,s=n.measurer?Ka(a,i,n.measurer):a.box.width*(a.range.end>a.range.start?i/(a.range.end-a.range.start):0);return {offset:r,x:a.box.x+s,withinSpan:false}}return {offset:r,x:t,withinSpan:false}}function Gh(e,t){let n=t.range.end;if(n>t.range.start&&qc(t,n-1)===chunkIMMAG4QP_cjs.Ub)return n-1;if(Ys(e).lastLineIdOfParagraph.get(t.range.paragraphId)===t.id)return n;let r=n;for(r>t.range.start&&qc(t,r-1)===`
15
- `&&(r-=1);r>t.range.start&&qc(t,r-1)===" ";)r-=1;return r}function qc(e,t){for(let n of e.spans)if(!(t<n.range.start||t>=n.range.end))return n.text.length!==n.range.end-n.range.start?null:n.text[t-n.range.start]??null;return null}var Dh=new WeakMap,_h=new WeakMap;function zh(e){let t=pd(),n=Dh.get(e);if(n&&n.epoch===t)return n.boundaries;let r=[0];for(let o of Vt(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),Dh.set(e,{epoch:t,boundaries:r}),r}function Ka(e,t,n){let r=e.caretEdges;if(r&&t>=0&&t<r.length)return r[t];let o=_h.get(n);o||(o=new WeakMap,_h.set(n,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(t);if(i!==void 0)return i;let s=t<=0?0:Et(e.text.slice(0,t),e.style,n);return a.set(t,s),s}function eu(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function Zs(e,t,n){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(t-e.range.start,r)),a=e.caretEdges;return a&&o<a.length?e.box.x+a[o]:!n||eu(e)?e.box.x+e.box.width*(o/r):e.box.x+Ka(e,o,n)}function qa(e,t,n,r){let o=iI(e,t,r?.drawings);if(o)return {x:t>o.start?o.advanceEnd:o.advanceStart,y:o.y,height:o.height};let a=r?r.spans:e.spans;if(a.length===0){let d=e.leading??0;return {x:e.contentX,y:e.box.y+d,height:Math.max(0,e.box.height-d-(e.trailingSpacing??0))}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(t>c.range.start&&t<c.range.end){i=c;break}if(t===c.range.end){let u=a[d+1];if(u&&u.range.start===t&&eu(c)){i=u;break}if(u&&u.range.start===t&&c.text.endsWith(" ")&&u.box.x-(c.box.x+c.box.width)>.25){i=u;break}i=c;}else t>c.range.end&&(i=c);}let s=Zs(i,t,n),l=n?.lineMetrics(i.style);return !l||l.height<=0?{x:s,y:e.box.y,height:e.box.height}:{x:s,y:e.box.y+e.baseline-l.baseline-Kd(i.style),height:l.height}}function lI(e,t,n){let r=t-e.box.x,o=e.range.end-e.range.start;if(o<=0||eu(e)){let p=r>e.box.width/2;return {offset:p?e.range.end:e.range.start,x:p?e.box.x+e.box.width:e.box.x,withinSpan:true}}if(!n.measurer){let p=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),m=Math.round(p*o),g=zh(e),h=g[0],b=Number.POSITIVE_INFINITY;for(let x of g){let v=Math.abs(x-m);v<b&&(b=v,h=x);}return {offset:e.range.start+h,x:e.box.x+e.box.width*(h/o),withinSpan:true}}let a=zh(e),i=1,s=a.length-1;for(;i<s;){let p=i+s>>1;Ka(e,a[p],n.measurer)<r?i=p+1:s=p;}let l=a[i],d=a[i-1],c=Ka(e,l,n.measurer),u=Ka(e,d,n.measurer),f=r-u<=c-r;return {offset:e.range.start+(f?d:l),x:e.box.x+(f?u:c),withinSpan:true}}function Hh(e,t,n,r){if(e.length===0)return null;for(let i of e){let s=n(i);if(t>=s&&t<s+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let s=n(i),l=t<s?s-t:t-(s+r(i));l<a&&(a=l,o=i);}return o}function dI(e,t,n,r){return {tableId:t.tableId,rowId:n.id,cellId:r.id,rowIndex:Ys(e).rowIndexById.get(n.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function cI(e,t,n,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],s=Hh(a,t.y,d=>d.box.y,d=>d.box.height);if(s){let d=Hh(s.cells,t.x,c=>c.box.x,c=>c.box.width);d&&i.push(uI(n,s,d));}let l=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||l.push({entry:{row:d,cell:c},score:Jc(c.box,t,n.verticalWeight)}));l.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...l.map(u=>u.entry)]){let u=dI(n.layout,e,d,c),f=Vs(c.blocks,t,n,u);if(f)return f}return null}function uI(e,t,n){return n.blocks.length>0?{row:t,cell:n}:Ys(e.layout).mergeOriginOf.get(n)??{row:t,cell:n}}function Wh(e,t){let n=t.paintBounds;return n.width<=0||n.height<=0?null:Object.freeze({pageIndex:e,x:n.x,y:n.y,width:n.width,height:n.height,record:t})}function fI(e,t,n){for(let r of t.lines)for(let o of r.drawings??[])if(o.drawingNodeId===n)return Wh(e,o);return null}function $h(e,t,n){if(t.kind==="paragraph")return fI(e,t,n);for(let r of t.rows)for(let o of r.cells)for(let a of o.blocks){let i=$h(e,a,n);if(i)return i}return null}function jh(e,t,n){for(let r of t){let o=$h(e,r,n);if(o)return o}return null}function pI(e,t){for(let n of e.pages){for(let o of n.anchoredDrawings??[])if(o.drawingNodeId===t)return Wh(n.index,o);let r=jh(n.index,n.fragments,t);if(r)return r;for(let o of [n.header,n.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==t)continue;let s=i.paintBounds;return s.width<=0||s.height<=0?null:Object.freeze({pageIndex:n.index,x:o.box.x+s.x-n.contentBox.x,y:o.box.y+s.y-n.contentBox.y,width:s.width,height:s.height,record:i})}let a=jh(n.index,o.fragments,t);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:n.index,x:n.header?.box.x===o.box.x||n.footer?.box.x===o.box.x?o.box.x+i.x-n.contentBox.x:a.x,y:o.box.y+i.y-n.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}function mI(e){let t=[0],n=0;for(let r of e)n+=r,t.push(n);return t}function gI(e,t){let n=t.get(e.id);return n===void 0&&(e.isHeaderRepeat?n=0:(n=t.size,t.set(e.id,n))),{...e,rowIndex:n}}function Js(e,t,n,r){return {...e,nestingDepth:n,columnEdges:e.columnEdges??mI(t),rows:e.rows.map(o=>gI(o,r))}}var Xh=new WeakMap,Ao=4,tu=6,Vh=14,hI={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function nu(e,t,n,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let s of a.rows){o({pageIndex:t,table:a,row:s,rowOrdinal:s.rowIndex,nestingDepth:i,editable:!s.isHeaderRepeat,pageContentBox:n});for(let l of s.cells)nu(l.blocks,t,n,i+1,o);}}}function aL(e){let t=Xh.get(e);if(t)return t;let n=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o],i=s=>{n.push(s);};nu(a.fragments,o,a.contentBox,0,i);for(let s of [a.header,a.footer])s&&nu(s.fragments,o,s.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(n)});return Xh.set(e,r),r}function iL(e){let t=e.sourceRevision;switch(e.kind){case "rowDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function sL(e){switch(e.kind){case "rowDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function lL(e,t){if(t.kind==="insertRow"){for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat)return n.editable?{kind:"insertRow",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}:null;return null}for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat&&n.editable)for(let r=0;r<n.table.columnEdges.length-1;r+=1){let o=Za(n.row,r);if(o===t.gridColumnId)return {kind:"insertColumn",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,gridColumnId:o,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}}return null}function Za(e,t){for(let n of e.cells)if(n.gridColumn===t)return n.gridColumnId??null;return null}function yI(e,t,n,r,o){if(!e.pages[t.pageIndex])return null;let i=t.pageContentBox,s=n-i.x-o,l=r-i.y,d=t.table,c=s-d.box.x,u=l-d.box.y;return c<-Ao||u<-Vh||c>d.box.width+Ao||u>d.box.height+tu?null:{x:c,y:u}}function bI(e,t,n,r){if(t.row.isHeaderRepeat)return null;let o=t.table,a=t.row.box.y-o.box.y+t.row.box.height;if(!o.columnEdges.slice(1).some(l=>Math.abs(n-l)<=Ao)&&n>=0&&n<=o.box.width&&Math.abs(r-a)<=Ao)return {kind:"rowDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeY:a};if(r<t.row.box.y-t.table.box.y||r>t.row.box.y-t.table.box.y+t.row.box.height)return null;for(let l=1;l<o.columnEdges.length-1;l+=1){let d=o.columnEdges[l];if(Math.abs(n-d)>Ao)continue;let c=Za(t.row,l-1),u=Za(t.row,l);if(!(!c||!u))return {kind:"columnDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,leftGridColumnId:c,rightGridColumnId:u,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:d,sheetY:t.pageContentBox.y+o.box.y+r}}let s=o.columnEdges.at(-1);if(Math.abs(n-s)<=Ao){let l=o.columnEdges.length-2,d=Za(t.row,l);return d?{kind:"rightEdge",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,gridColumnId:d,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:s,sheetY:t.pageContentBox.y+o.box.y+r}:null}return null}function dL(e,t,n,r,o=0,a){let i=a??Ua(r,n),s=i>=0?o:0,l=null,d=-1,c=-1,u=f=>{if(!f)return;let p=hI[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,l=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=yI(r,f,t,n,s);if(!p||(u(bI(e,f,p.x,p.y)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let m=f.row.box.y-f.table.box.y;p.x<=tu&&Math.abs(p.y-(m+f.row.box.height/2))<=f.row.box.height/2+tu&&u({kind:"insertRow",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});for(let g=0;g<f.table.columnEdges.length-1;g+=1){let h=f.table.columnEdges[g],b=f.table.columnEdges[g+1],x=(h+b)/2;if(Math.abs(p.x-x)>(b-h)/2+2||p.y>Vh)continue;let v=Za(f.row,g);if(v){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:v,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return l}var Yh=1048576;function ru(e=Yh){let t=e|0;return {cellsRemaining:t>0?t:0}}function ou(e,t,n,r){let o=new Map,a=new Map,i=r?.pageFragment===true,s=new Set,l=i,c=p=>{let m=a.get(p);m&&(o.set(m.id,m.span),a.delete(p));},u=()=>n!==void 0&&n.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}l&&p.isHeaderRepeat!==true&&(l=false,f(),s?.clear());let m=new Set,g=false;for(let h of p.cells){if(n){if(n.cellsRemaining<=0){g=true;break}n.cellsRemaining-=1;}let b=Math.max(0,Math.min(h.gridColumn|0,1023));if(m.add(b),h.vMergeContinue){let x=a.get(b);x?x.span+=1:s&&!s.has(b)&&(a.set(b,{id:h.id,span:1}));}else c(b),a.set(b,{id:h.id,span:1});s?.add(b);}if(g){f();break}for(let h of [...a.keys()])m.has(h)||c(h);}return f(),o}function Uh(e,t,n,r){let o=new Map,a=0,i=s=>{let l=Fo(s,t,0,n,r);if(l)for(let d of l.rows)for(let c of d.cells)for(let u of c.blocks)u.localName==="p"?o.set(u.id,a++):u.localName==="tbl"&&i(u);};for(let s of e)s.kind==="paragraph"&&s.paragraph?o.set(s.paragraph.id,a++):s.kind==="table"&&s.table&&i(s.table);return o}var el=4096,Kh=1,Dt=class extends Error{code;constructor(t,n){super(n),this.name="TablePaginationError",this.code=t;}};function au(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0}))}function qh(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function Zh(e,t,n,r,o){let a=qh(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let s=null,l=null,d=i.lines;for(let u of t){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){s=f.box,d=f.lines,l=u.box;break}if(s)break}if(!s)continue;let c=l??Object.freeze({x:i.cellOriginX,y:n,width:i.cellContentWidth,height:r});a(Io({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:s,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(s)??s,cellBox:c,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}}function xI(e,t,n,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=t.find(s=>s.kind==="paragraph"&&s.id===o.paragraphId);!a||a.kind!=="paragraph"||At(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,Io({paragraph:a,paragraphId:o.paragraphId,paragraphBox:o.box,lines:o.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(o.box)??o.box,cellBox:n,pageClip:r.pageContentClip(),measurer:r.measurer,...r.layoutTextboxStoryFor?{layoutTextboxStory:r.layoutTextboxStoryFor}:{}}));}}function SI(e,t){let n=qh(e),r=e.deferAnchoredDrawings;return !n&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:n,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{t.push(i);}},flushDeferred:(i,s,l)=>{if(t.length!==0){if(n&&!e.anchorDeferOnly)Zh(t,i,s,l,e);else if(r)for(let d of t)r(d);t.length=0;}}}}function Qs(e,t,n){let r=0;for(let o=t;o<n&&o<e.length;o+=1)r+=e[o];return r}function iu(e,t){return t===0?[...e]:e.map(n=>n.kind==="table"?{...n,box:{...n.box,y:n.box.y+t},rows:n.rows.map(r=>({...r,box:{...r.box,y:r.box.y+t},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+t},blocks:iu(o.blocks,t)}))}))}:{...n,box:{...n.box,y:n.box.y+t},...n.shadingBox?{shadingBox:{...n.shadingBox,y:n.shadingBox.y+t}}:{},...n.bottomBorder?{bottomBorder:{...n.bottomBorder,box:{...n.bottomBorder.box,y:n.bottomBorder.box.y+t}}}:{},...n.borders?{borders:n.borders.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}:{},...n.marker?{marker:{...n.marker,box:{...n.marker.box,y:n.marker.box.y+t}}}:{},lines:n.lines.map(r=>({...r,box:{...r.box,y:r.box.y+t},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+t}})),...r.drawings?{drawings:r.drawings.map(o=>us(o,0,t))}:{}}))})}function RI(e,t,n,r,o,a,i){let s=e.id,l=o.listItems?.get(s),{props:d,indent:c,available:u,alignment:f,spacing:p,lineSpacing:m,bottomBorder:g,borders:h,shading:b,inheritedRunProperties:x,markRunProperties:v,tabStops:w,tabStopsCacheToken:O}=za(e,n,o.styleCascade,l,i?.tableCellStyle,true),E=ya(w,o.defaultTabStopPt),P=E===w?O:yr(E),L=$s(l,c,o.measurer,E,u),C=o.pageExclusionZones?.()??Object.freeze([]),k=o.paragraphOrderIndex?.(s)??Number.MAX_SAFE_INTEGER,H=o.paragraphOrderIndex?ng(C,k,S=>o.paragraphOrderIndex?.(S)):C,D=tg(H,t,0,{left:0,right:c.left+u+c.right}),y=pn(D),ee=y?`${r.toFixed(3)}|${y}`:"",I=Rr({paragraph:e,properties:[...d,...x,...v,{localName:"tabStops",attributes:{token:P}},...l?[{localName:"list",attributes:{token:l.cacheToken}}]:[]],width:u,producer:o.producer,...o.drawingTokenForParagraph?.(e)?{drawingToken:o.drawingTokenForParagraph(e)}:o.drawingLayoutToken?{drawingToken:o.drawingLayoutToken}:{},...ee?{exclusionToken:ee}:{}});o.cache&&o.onCellBreakKey?.(I);let M=Ss(e,s,c.left,u,o.measurer,o.cache,o.cache?I:null,x,E,o.pageContext,o.styleCascade?(S,B)=>Ln(S,B,o.styleCascade):void 0,{lineSpacing:m,equationCacheToken:o.producer,firstLineOffset:L,marginExtent:{left:0,right:c.left+u+c.right},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:true}:{},displayMode:o.displayMode,...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:c.left+u+c.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:c.left+u+c.right,height:Math.max(1,u)}),...D.length>0?{pageExclusionZones:D}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:v}),j=i?.lineStart??0,A=i?.fragmentIndex??0,T=i?.maxBottom??Number.POSITIVE_INFINITY,z=i?.includeAfter??true,F=i?.includeBottomBorder??true,K=j===0?ao(p.before,a):0,W=t+c.left,V=j===0?Vn(h.top):0,Y=[],Q=r+K+V,G=j,U=false;for(let S=j;S<M.length;S+=1){let B=M[S],q=S===M.length-1,ne=q&&F&&g?Vn(g):0,$=q&&z?p.after:0,be=D.length>0?Bn(Q,B.height,D):B.exclusionSkipBefore??0;if(Q+be+B.height+ne+$>T+.001)break;Q+=be;let _e=t+c.left+(S===0?L:0),Pe=Math.max(1,u-(S===0?L:0)),Ne=B.spans.map(ye=>({...ye,range:{...ye.range,paragraphId:s},box:{...ye.box,x:ye.box.x+t,y:Q}})),et=bs(Ne,o.measurer,_e,Pe,f,q,f==="center"||f==="right"?B.width:void 0),ht=Ne.length>0&&et.length>0?et[0].box.x-Ne[0].box.x:f!=="left"&&f!=="both"?(()=>{let ye=Pe-B.width;return ye<=0?0:f==="center"?ye/2:ye})():0,Lt=Object.freeze({x:t,y:r,width:n,height:Math.max(0,T-r)}),Ge=xs(B.drawings.map(ye=>fs(Object.freeze({...ye,paragraphId:s,x:t+ye.x,advanceStart:t+ye.advanceStart,advanceEnd:t+ye.advanceEnd,y:Q+ye.y,paintBounds:Object.freeze({...ye.paintBounds,x:t+ye.paintBounds.x,y:Q+ye.paintBounds.y}),hitBounds:Object.freeze({...ye.hitBounds,x:t+ye.hitBounds.x,y:Q+ye.hitBounds.y})}),Lt)),ht);Y.push({id:o.nextLineId(s,B.start,S),range:{paragraphId:s,start:B.start,end:B.end},spans:et,...Ge.length>0?{drawings:Ge}:{},box:{x:t+c.left,y:Q,width:u,height:B.height},contentX:et[0]?.box.x??_e+ht,baseline:B.baseline,leading:B.leading,trailingSpacing:B.trailingSpacing,...B.deletedRanges?{deletedRanges:B.deletedRanges}:{}}),Q+=B.height,G=S+1,U=true;}if(!U)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:j,complete:false,fitted:false};let re=G>=M.length,xe=Y[0].box.y,ae=Q,se=[],we,Ie=xe,Se=ae,Be=h.left?wt(h.left):0,He=h.right?wt(h.right):0,je=h.left?W-h.left.spacePt-Be:W,ft=h.right?W+u+h.right.spacePt+He:W+u,zt=Math.max(ft-je,0);if(V>0&&h.top){let S=wt(h.top),B=xe-h.top.spacePt-S;se.push({side:"top",edge:h.top,box:{x:je,y:B,width:zt,height:S}}),Ie=B;}if(re&&F&&g){let S=wt(g),B=ae+g.spacePt,q={x:je,y:B,width:zt,height:S};we={edge:g,box:q},se.push({side:"bottom",edge:g,box:q}),Se=B+S;}let $e=Math.max(Se-Ie,0);if(h.left&&se.push({side:"left",edge:h.left,box:{x:W-h.left.spacePt-Be,y:Ie,width:Be,height:$e}}),h.right&&se.push({side:"right",edge:h.right,box:{x:W+u+h.right.spacePt,y:Ie,width:He,height:$e}}),h.bar){let S=wt(h.bar);se.push({side:"bar",edge:h.bar,box:{x:W-h.bar.spacePt-S,y:xe,width:S,height:Math.max(ae-xe,0)}});}let Ht=re&&z?p.after:0,jt=Se+Ht,Qe=b===void 0?void 0:h.left||h.right?{x:je,y:Ie,width:zt,height:Math.max(Se-Ie,0)}:ga(Y,W,u),Gt=re&&o.displayMode==="all-markup",at=Gt?yo(e):[],Bt=Gt?Oa(e):null,An=j===0?Xs(l,o.measurer,Y[0]?{y:Y[0].box.y,height:Y[0].box.height}:void 0,t):void 0,Xe=Is(e),Le=Xe?js(Y,Hs(Xe)):Y,N={kind:"paragraph",id:`${s}#f${A}`,paragraphId:s,fragmentIndex:A,range:{paragraphId:s,start:Le[0].range.start,end:Le[Le.length-1].range.end},props:d,spacing:{before:K,after:Ht},indent:c,tabStops:E,...we?{bottomBorder:we}:{},...se.length>0?{borders:se}:{},...b===void 0?{}:{shading:b},...Qe===void 0?{}:{shadingBox:Qe},...An?{marker:An}:{},...ns(at,Bt),lines:Le,box:{x:W,y:r,width:u,height:jt-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let S=Object.freeze({x:t,y:r,width:n,height:Math.max(0,T-r)}),B=N.box,q={paragraph:e,paragraphId:s,paragraphBox:B,lines:Le};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...q,cellOriginX:t,cellContentWidth:n}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(Io({paragraph:e,paragraphId:s,paragraphBox:B,lines:Le,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(B)??B,cellBox:S,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}return {fragment:N,bottom:jt,spaceAfter:Ht,nextLineIndex:G,complete:re,fitted:true}}function Or(e,t,n,r,o,a){let i=Jh(e,t,n,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0});return {blocks:i.blocks,bottom:i.bottom}}function Jh(e,t,n,r,o,a,i,s,l){let d=[],c=r,u=s.previousSpaceAfter,f=s.blockIndex,p=s.lineIndex,m=s.paragraphFragmentIndex,g=false,h=false;for(;f<e.length;){let b=e[f];if(b.kind==="table"){p!==0&&(p=0),u=0;let v=II(b,t,n,c,a+1,i);if(!v){f+=1;continue}if(v.bottom>o+.001){h=!g;break}d.push(v.fragment),c=v.bottom,g=true,f+=1,p=0;continue}if(b.kind!=="paragraph"){f+=1,p=0;continue}let x=RI(b,t,Math.max(1,n-t),c,i,u,{lineStart:p,fragmentIndex:m,maxBottom:o,includeAfter:true,includeBottomBorder:true,...l?{tableCellStyle:l}:{}});if(!x.fitted||!x.fragment)break;if(d.push(x.fragment),c=x.bottom,g=true,x.complete)u=x.spaceAfter,f+=1,p=0,m=0;else return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:x.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:m+1},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:p,previousSpaceAfter:u,paragraphFragmentIndex:m},complete:f>=e.length,fitted:g,nestedSplitBlocked:h}}function Qh(e,t){return {top:e.top+Ir(t.top),right:e.right+Ir(t.right),bottom:e.bottom+Ir(t.bottom),left:e.left+Ir(t.left)}}function wI(e,t,n){return {top:t?{state:"none"}:e.top,left:e.left,bottom:n?{state:"none"}:e.bottom,right:e.right}}function ey(e,t,n){return !t&&!n?e:{...e,cells:e.cells.map(r=>({...r,borders:wI(r.borders,t,n)}))}}function Ja(e,t,n,r,o,a,i,s=0){let l=su(e,t,n,r,Number.POSITIVE_INFINITY,o,false,a,i,au(e),s);return {record:l.record,bottom:l.bottom}}function su(e,t,n,r,o,a,i,s,l,d,c=0){let u=Qs(t,0,t.length),f=Number.isFinite(c)&&c>0?c/2:0,p=l.measurer.lineMetrics(ln).height,m=e.height,g=m.rule==="exact"?m.valuePt:void 0,h=m.rule==="atLeast"?m.valuePt:void 0,b=[],{rowDeps:x,flushDeferred:v}=SI(l,b),w=a&&l.pageOccurrenceKey?{...x,nextLineId:(I,M,j)=>x.nextLineId(I,M,j,l.pageOccurrenceKey())}:x,O=g===void 0?o:Math.min(o,r+Math.max(0,g)),E=[],P=false,L=false,C=r;for(let I=0;I<e.cells.length;I+=1){let M=e.cells[I],j=d[I]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0},A=M.gridSpan,T=M.gridColumn,z=n+Qs(t,0,T),F=Qs(t,T,Math.min(T+A,t.length))||u,K=Math.min(f,Math.max((F-Kh)/2,0)),W=z+K,V=Math.max(F-2*K,Kh),Y=Qh(M.margins,M.borders),Q=i?Ir(M.borders.top):Y.top,G=r+Q,U=O-Y.bottom,re=[],xe=G,ae=j,se=true,we=false,Ie=false;if(!M.vMergeContinue)if(U<G+.001)se=j.blockIndex>=M.blocks.length;else {let Be=Jh(M.blocks,W+Y.left,W+V-Y.right,G,U,s,w,j,M.styleFormatting);re=Be.blocks,xe=Be.bottom,ae=Be.cursor,se=Be.complete,we=Be.fitted,Ie=Be.nestedSplitBlocked,we&&(P=true),Ie&&(L=true);}let Se=Math.min(O,we?xe+Y.bottom:r+Q+p+Y.bottom);Se>C&&(C=Se),E.push({cell:M,x:W,width:V,gridColumn:T,blocks:re,contentTop:G,contentBottom:xe,insets:{...Y,top:Q},nextCursor:ae,complete:M.vMergeContinue?true:se,fitted:we,nestedSplitBlocked:Ie});}C=Math.min(O,Math.max(C,r));for(let I of E){let M=I.fitted?I.contentBottom+I.insets.bottom:r+I.insets.top+p+I.insets.bottom;M>C&&M<=O+.001&&(C=M);}C=Math.min(O,C);let k=false;if(g!==void 0){let I=r+g;I<=o+.001?(C=I,k=true):C=Math.min(o,C);}else if(h!==void 0){let I=r+h;E.every(j=>j.complete)&&I<=o+.001&&I>C&&(C=I);}C=Math.min(o,C);let H=Math.max(0,C-r),D=E.map(I=>{let M=I.blocks,j=k?true:I.complete;if(!I.cell.vMergeContinue&&j&&I.cell.vAlign!=="top"&&M.length>0){let A=I.contentBottom-I.contentTop,T=H-I.insets.top-I.insets.bottom-A;if(T>0){let z=I.cell.vAlign==="center"?T/2:T;M=iu(M,z);}}return {id:I.cell.id,gridColumn:I.gridColumn,...I.cell.gridColumnId?{gridColumnId:I.cell.gridColumnId}:{},gridSpan:I.cell.gridSpan,vMergeContinue:I.cell.vMergeContinue,...I.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...I.cell.shading===void 0?{}:{shading:I.cell.shading},blocks:M,box:{x:I.x,y:r,width:I.width,height:H}}}),y=k||E.every(I=>I.complete)?null:E.map(I=>I.nextCursor),ee=k||E.every(I=>I.complete);return v(D,r,H),{record:{id:e.id,...e.revisionKind?{revisionKind:e.revisionKind}:{},...e.revisionId!==void 0?{revisionId:e.revisionId}:{},...e.revisionAuthor!==void 0?{revisionAuthor:e.revisionAuthor}:{},...e.revisionDate!==void 0?{revisionDate:e.revisionDate}:{},rowIndex:0,isHeaderRepeat:a,...i?{isContinuation:true}:{},cells:D,box:{x:n,y:r,width:u,height:H}},bottom:C,remainder:ee?null:y,fitted:P||e.cells.every(I=>I.vMergeContinue)||k,nestedSplitBlocked:L}}function PI(e){return {...e,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function lu(e,t,n,r,o,a=0){let i=0,s={...PI(o),pageExclusionZones:void 0,nextLineId:()=>`probe-${i++}`};return Ja(e,t,n,0,false,r,s,a).record.box.height}function du(e,t,n,r,o,a,i,s){if(e.length===0)return [];let l=new Map;for(let h of n)for(let b of h.cells)l.set(b.id,b);let d=ou(e,a,o,{pageFragment:true}),c=e.map((h,b)=>({...h,cells:h.cells.map(x=>{let v=d.get(x.id);if(x.vMergeContinue&&v===void 0)return {...x,paintInert:true,rowSpan:1,borders:{},blocks:[]};let w=x.vMergeContinue,O=v??1,E=x.box.height;if(O>1){let k=e[b+O-1];E=k.box.y+k.box.height-x.box.y;}let P=l.get(x.id),L=x.blocks;if(P&&P.vAlign!=="top"&&L.length>0){let k=Qh(P.margins,P.borders),H=Number.POSITIVE_INFINITY,D=Number.NEGATIVE_INFINITY;for(let y of L)H=Math.min(H,y.box.y),D=Math.max(D,y.box.y+y.box.height);if(Number.isFinite(H)&&Number.isFinite(D)){let y=E-k.top-k.bottom-(D-H),I=x.box.y+k.top+(y>0?P.vAlign==="center"?y/2:y:0)-H;if(Math.abs(I)>.001){L=iu(L,I);for(let M of L)M.kind==="paragraph"&&i?.(M.paragraphId,I);}}}let C=Object.freeze({x:x.box.x,y:x.box.y,width:x.box.width,height:E});return P&&s&&(O>1||P.vAlign!=="top"&&L.length>0)&&xI(L,P.blocks,C,s),{...x,...w?{vMergeContinue:false,paintInert:false}:{},rowSpan:O,blocks:L,box:{...x.box,height:E}}})})),u=c.map(h=>h.cells.map(b=>{let x=l.get(b.id);return {gridColumn:b.gridColumn,gridSpan:b.gridSpan,vMergeContinue:b.vMergeContinue,borders:x?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:b.rowSpan??1}})),f=t.columnWidthsPt.length,p=t.tableBorders,m={columnWidthsPt:t.columnWidthsPt,rowBands:c.map(h=>({y:h.box.y,height:h.box.height})),cellBoxes:c.map(h=>h.cells.map(b=>({width:b.box.width,height:b.box.height})))},g=kc(u,p,f,m,void 0,r);return c.map((h,b)=>({...h,cells:h.cells.map((x,v)=>{let w=g[b][v];return x.paintInert||x.vMergeContinue?{...x,borders:{},paintInert:true}:{...x,borders:w}})}))}function II(e,t,n,r,o,a){if(o>=zs)return null;let i=Math.max(1,n-t),s=Fo(e,i,o,a.styleCascade,a.displayMode);if(!s||s.rows.length===0)return null;let l=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:h=>{l.push(h);}},c=t+$a(s,i),u=[],f=r;for(let h of s.rows){let b=Ja(h,s.columnWidthsPt,c,f,false,o,d,s.cellSpacingPt);u.push(b.record),f=b.bottom;}let p=du(u,s,s.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let h of l)for(let b of p)if(b.cells.some(v=>v.blocks.some(w=>w.kind==="paragraph"&&w.paragraphId===h.paragraphId))){Zh([h],b.cells,b.box.y,b.box.height,a);break}let m=Qs(s.columnWidthsPt,0,s.columnWidthsPt.length),g=new Map;return {fragment:Js({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:p,box:{x:c,y:r,width:m,height:f-r}},s.columnWidthsPt,o,g),bottom:f}}function ty(e){let t=e.picture;return t?.embeddedRelationshipId?`embed:${e.ownerPartName}:${t.embeddedRelationshipId}`:t?.linkedRelationshipId?`link:${e.ownerPartName}:${t.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var ny=new WeakMap,cu=new Map,vI=16,TI=32;function oy(e,t){let n=ny.get(e);if(n)return n;let r;if(e.kind==="drawing"||chunkIMMAG4QP_cjs.Sa(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:cu,visited:1,deepest:0};else if((t<2||e.children.length>=vI)&&t<TI){let o=null,a=1,i=0;for(let s of e.children){let l=oy(s,t+1);if(a+=l.visited,l.deepest+1>i&&(i=l.deepest+1),l.atoms.size>0){o||(o=new Map);for(let[d,c]of l.atoms)o.set(d,c);}}r={atoms:o??cu,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,s=[{node:e,depth:0}];for(;s.length>0;){let l=s.pop();if(a+=1,a>chunkIMMAG4QP_cjs.Qa)break;l.depth>i&&(i=l.depth);let d=l.node;if(d.kind==="drawing"||chunkIMMAG4QP_cjs.Sa(d)){o.set(d.id,d);continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)s.push({node:d.children[c],depth:l.depth+1});}r={atoms:o.size>0?o:cu,visited:a,deepest:i};}return ny.set(e,r),r}function ry(e){let t=oy(e.root,0);return t.visited>chunkIMMAG4QP_cjs.Qa||t.deepest>chunkIMMAG4QP_cjs.Oa.maxDrawingDepth?null:t.atoms}function uu(e){let t=e.position,n=e.anchor,r=e.picture,o=e.wrapGeometry;return [e.drawingNodeId,e.ownerPartName,e.kind,e.hidden?"1":"0",String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left),e.compatibilityBranchNodeId??"",n?.simplePos?"sp":"pv",n?String(n.relativeHeight):"",n?n.layoutInCell?"1":"0":"",r?[String(r.crop.left),String(r.crop.top),String(r.crop.right),String(r.crop.bottom),String(r.transform.rotationDegrees),r.transform.flipHorizontal?"1":"0",r.transform.flipVertical?"1":"0",String(r.transform.offsetEmu.x),String(r.transform.offsetEmu.y),String(r.transform.extentEmu.cx),String(r.transform.extentEmu.cy),r.embeddedRelationshipId??"",r.linkedRelationshipId??"",r.presetGeometry??""].join(":"):"",o?[o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length)].join(":"):"",t?[t.horizontal.relativeFrom,t.horizontal.align??"",String(t.horizontal.offsetEmu??""),t.vertical.relativeFrom,t.vertical.align??"",String(t.vertical.offsetEmu??""),String(t.simplePosition.xEmu),String(t.simplePosition.yEmu)].join(":"):""].join("|")}function tl(e){switch(e.kind){case "ready":return `ready:${e.resourceKey}:${e.contentId}:${e.pixelWidth}x${e.pixelHeight}`;case "pending":return `pending:${e.resourceKey}`;case "external":return `external:${e.relationshipId}:${e.sinkSafe?"1":"0"}`;case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var kI=1;function fu(e,t){if(e.kind==="drawing"||chunkIMMAG4QP_cjs.Sa(e)){t.push(e.id);return}if("children"in e)for(let n of e.children)fu(n,t);}function OI(e){if(e.kind!=="paragraph")return [];let t=[];for(let n of e.children)fu(n,t);return Object.freeze(t)}function CI(e){let{ownerPartName:t,part:n,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:s}=e,l=false,d=0,c=new Map,u=new Set,f=new Map,p=new WeakMap,m=new WeakMap,g=0,h=chunkIMMAG4QP_cjs.Ra(r,t),b=chunkIMMAG4QP_cjs.Wa(n,{resolveRelationship:h}),x=ry(n),v=(C,k)=>{if(l||u.has(k))return;u.add(k);let H=d;o.resolveForProjection(C).then(D=>{l||H!==d||(c.set(k,D),D.kind==="ready"&&i(D.validatedHandle),g+=1,f.set(k,g),a(t));}).catch(()=>{l||H!==d||(c.set(k,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,f.set(k,g),a(t));}).finally(()=>{u.delete(k);});},w=C=>{let k=ty(C),H=c.get(k);if(H)return H;let D=C.picture?.linkedRelationshipId;if(D){let ee=o.resolveLinked(t,D);return c.set(k,ee),g+=1,f.set(k,g),ee}let y=Object.freeze({kind:"pending",resourceKey:k});return c.set(k,y),g+=1,f.set(k,g),v(C,k),y},O=C=>b.get(C)??null,E=Object.freeze({ownerPartName:t,projectionForAtom:O,project:C=>O(C.id),resourceOf:w}),P=C=>{let k=m.get(C);if(k)return k;let H=OI(C),D=null,y=(I,M)=>{if(!(M>=kI))for(let j of I){let A=b.get(j)?.textboxStory;if(!A)continue;let T=[];if(fu(A.content,T),T.length!==0){D||(D=[...H]);for(let z of T)D.push(z);y(T,M+1);}}};y(H,0);let ee=D??H;return m.set(C,ee),ee};return {context:E,cacheTokenForPart:()=>`${t}|${g}|${d}|${b.size}`,drawingTokenForParagraph:C=>{let k=p.get(C);if(k?.resourceEpoch===g)return k.token;let H=P(C);if(H.length===0)return p.set(C,{resourceEpoch:g,token:""}),"";let y=H.map(ee=>{let I=b.get(ee);if(!I)return `${ee}:refused`;let M=w(I);return [ee,uu(I),tl(M),String(f.get(ty(I))??0)].join("|")}).sort().join(";");return p.set(C,{resourceEpoch:g,token:y}),y},isCompatibleWith:(C,k)=>{if(C===n)return true;let H=ry(C);if(x&&H&&x.size===H.size){let y=true;for(let[ee,I]of x)if(H.get(ee)!==I){y=false;break}if(y)return true}let D=chunkIMMAG4QP_cjs.Wa(C,{resolveRelationship:chunkIMMAG4QP_cjs.Ra(k,t)});if(D.size!==b.size)return false;for(let[y,ee]of b){let I=D.get(y);if(!I||uu(I)!==uu(ee))return false}return true},dispose:()=>{l=true,d+=1;for(let C of c.values())C.kind==="ready"&&s(C.validatedHandle);c.clear(),u.clear(),f.clear();}}}function DL(e){let t=e.session.packageRevision(),n=e.session.currentPackage(),r=e.resourceLookup??chunkIMMAG4QP_cjs.hb(n,{decodePort:e.decodePort}),o=new Map,a=new Map,i=0,s=new WeakMap,l=new Map,d=new Map,c=g=>{l.set(g.resourceKey,g);let h=chunkIMMAG4QP_cjs.Ya(g);h&&d.set(g.resourceKey,h);},u=g=>{l.delete(g.resourceKey);let h=d.get(g.resourceKey);h&&(chunkIMMAG4QP_cjs.Za(h),d.delete(g.resourceKey));},f=(g,h)=>{let x=h.currentPackage().parts.get(g)??a.get(g);if(x)return x;if(g===h.part().name)return h.part();throw new Error(`Missing inline drawing part ${g}`)},p=(g,h)=>{let b=o.get(g);if(b)return b;let x=f(g,h);a.set(g,x);let v=CI({ownerPartName:g,part:x,pkg:h.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:c,forgetReadyHandle:u});return o.set(g,v),i+=1,s.set(v,i),v},m=g=>{let h=g.currentPackage();if(h.partBytes===n.partBytes&&h.relationships===n.relationships&&h.contentTypes===n.contentTypes){for(let[x,v]of o){let w=h.parts.get(x)??(x===g.part().name?g.part():void 0);if(w&&v.isCompatibleWith(w,h)){a.set(x,w);continue}v.dispose(),o.delete(x),a.delete(x);}t=g.packageRevision(),n=h;return}for(let x of o.values())x.dispose();o.clear(),a.clear();for(let x of d.values())chunkIMMAG4QP_cjs.Za(x);d.clear(),l.clear(),e.resourceLookup||r.dispose(),t=g.packageRevision(),n=h,r=e.resourceLookup??chunkIMMAG4QP_cjs.hb(h,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return p(e.session.part().name,e.session).context},contextForPart(g){return p(g,e.session).context},cacheTokenForPart(g){let h=p(g,e.session);return `${s.get(h)??0}|${h.cacheTokenForPart()}`},drawingTokenForParagraph(g,h){return p(h,e.session).drawingTokenForParagraph(g)},mintValidatedBytes(g,h){let b=l.get(g.resourceKey);return !b||b.contentId!==g.contentId?null:chunkIMMAG4QP_cjs.Xa(g,h)},sync(g){g.packageRevision()!==t&&m(g);},dispose(){for(let g of o.values())g.dispose();o.clear(),a.clear();for(let g of d.values())chunkIMMAG4QP_cjs.Za(g);d.clear(),l.clear(),e.resourceLookup||r.dispose();}})}function ay(e,t){let n=[],r=o=>{if(o.kind==="paragraph"){let a=t(o);a&&n.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),n.sort().join(";")}var iy=new WeakMap;function BI(e){let t=iy.get(e);if(t!==void 0)return t;let n=LI(e);return iy.set(e,n),n}function LI(e){let t=n=>{if(n.kind==="textValue"||chunkIMMAG4QP_cjs.ac(n)||chunkIMMAG4QP_cjs._b(n)!==null)return false;if(n.kind==="text"||n.localName==="t"){for(let r of n.children)if(r.kind==="textValue"&&r.value.trim().length>0)return true;return false}for(let r of n.children)if(r.kind!=="textValue"&&t(r))return true;return false};for(let n of e.children)if(n.kind!=="textValue"&&t(n))return true;return false}function cy(e,t){for(let n of t.resultParagraphIds){let r=chunkIMMAG4QP_cjs.va(e,n);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&BI(r))return true}return false}var sy=new WeakMap,ly=new WeakMap,dy=new WeakMap;function pu(e){let t=sy.get(e);if(t)return t;let n=new Set;for(let r of chunkIMMAG4QP_cjs.xc(e))n.add(r.beginParagraphId),n.add(r.endParagraphId);return sy.set(e,n),n}function mu(e){let t=ly.get(e);if(t)return t;let n=new Set;for(let r of chunkIMMAG4QP_cjs.xc(e))cy(e,r)||n.add(r.beginParagraphId);return ly.set(e,n),n}function gu(e){let t=dy.get(e);if(t)return t;let n=new Set;for(let r of chunkIMMAG4QP_cjs.xc(e))if(!cy(e,r))for(let o of r.resultParagraphIds)n.add(o);return dy.set(e,n),n}var FI=4,uy=256;function EI(e){return `txbx-${e}`}function nl(e,t){let n=e.textboxStory;if(!n)return null;let r=st(e.extentEmu.cx),o=st(e.extentEmu.cy),a=st(n.insetsEmu.left),i=st(n.insetsEmu.right),s=st(n.insetsEmu.top),l=st(n.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-s-l),u=st(n.strokeWidthEmu),f={fillHex:n.fillHex,strokeHex:n.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((t.depth??0)>=FI)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:s},...f,fallbackReason:"textbox-nesting-limit"};let m=kg(n.content,t.displayMode),g=EI(e.drawingNodeId),h=0,b=Or(m,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${g}-line-${h++}`,styleCascade:t.styleCascade,...t.pageContext?{pageContext:t.pageContext}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...t.displayMode?{displayMode:t.displayMode}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:{}}),x=b.blocks,v=b.bottom,w;if(x.length>uy){x=x.slice(0,uy);let P=x[x.length-1];v=P?P.box.y+P.box.height:0,w="textbox-fragment-limit";}if(v>c+.001){let P=x.filter(L=>L.box.y<c-.001);P.length<x.length&&(x=P,w=w??"textbox-height-clip");}let O=Math.max(0,c-v),E=n.verticalAnchor==="center"?O/2:n.verticalAnchor==="bottom"?O:0;return {fragments:x,flowHeight:v,contentOffset:{x:a,y:s+E},...f,...w?{fallbackReason:w}:{}}}var MI=128,fy=new WeakMap;function NI(e){let t=fy.get(e);if(t!==void 0)return t;let n=chunkXMHWBL3K_cjs.y(chunkIMMAG4QP_cjs.na(e));return fy.set(e,n),n}function AI(e){let t=Math.max(1,Math.floor(e)),n=new Map;return {get(r){let o=n.get(r);if(o!==void 0)return n.delete(r),n.set(r,o),o},set(r,o){for(n.has(r)&&n.delete(r),n.set(r,o);n.size>t;){let a=n.keys().next();if(a.done)break;n.delete(a.value);}},get size(){return n.size}}}function DI(e,t,n,r,o,a,i,s=MI,l,d=gt,c,u,f,p,m,g){let h=jd(e.root),b=AI(s),x=Fn(e,d),v=Tr({numberingIndex:g?.numberingIndex,styleCascade:a},x).listItems,w=NI(e),O,E=P=>{let L=Un(h)||c?P:void 0,C=L?.pageNumber??p?.pageNumber??1,k=Vd(L,h)+(c?`|pn:${C}`:"");if(k===""){if(O)return O}else {let j=b.get(k);if(j)return j}let H=0,D=[],y=()=>{let j=L?.pageNumber??p?.pageNumber??1,A=p?.pageWidth??t,T=p?.pageHeight??Math.max(1,t),z=p?.marginLeft??0,F=p?.marginRight??0,K=p?.marginTop??0,W=p?.marginBottom??0,V=Math.max(1,T-K-W);return Object.freeze({pageNumber:j,pageWidth:A,pageHeight:T,marginLeft:z,marginRight:F,marginBottom:W,contentInsetTop:K,contentInsetBottom:W,contentWidth:t,contentHeight:V,contentBandHeight:V,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},ee=Object.freeze([]),I;if(c){let j=false;for(let A=0;A<wr;A+=1){D.splice(0,D.length),H=0,I=Or(x,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+k+(d===gt?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${H++}`,styleCascade:a,...v?{listItems:v}:{},pageContext:L,...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,anchorFrameBase:y,pageContentClip:()=>La(y()),layoutTextboxStoryFor:z=>nl(z,{measurer:n,producer:r+k+(d===gt?"":`|rev:${d}`),cache:o,styleCascade:a,...L?{pageContext:L}:{},...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{}}),collectAnchoredDrawings:z=>{D.push(...z);},columnBoxForParagraph:z=>Object.freeze({x:0,y:z.y,width:t,height:z.height}),pageExclusionZones:()=>ee,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}});let T=hc(D,c,0,t);if(T.length===0){j=true,ee=T;break}if(A>0&&pn(ee)===pn(T)){j=true,ee=T;break}ee=T;}if(!j)throw new vo(`header/footer exclusion reflow did not converge within ${wr} passes`)}else I=Or(x,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+k+(d===gt?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${H++}`,styleCascade:a,...v?{listItems:v}:{},pageContext:L,...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{}});let M={partName:e.name,part:e,contentKey:w,fragments:I.blocks,flowHeight:I.bottom,pageFieldNeeds:h,...D.length>0?{anchoredDrawings:Object.freeze([...D])}:{},withPageContext:j=>!Un(h)&&!M.anchoredDrawings?.length?O??M:E(j)};return k===""?O=M:b.set(k,M),M};return E(i)}function Qa(e,t,n){let r=n-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let f={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return f;let p=u.pageFieldProjector;return {...f,pageFieldProjector:m=>{let g=p(m);return {...g,box:o(g.box)}}}},i=u=>{if(u)return {...u,box:o(u.box),...u.separator?{separator:{...u.separator,box:o(u.separator.box)}}:{},notes:u.notes.map(f=>({...f,box:o(f.box)}))}},s=a(e.header),l=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${t}`,index:t,box:o(e.box),contentBox:o(e.contentBox),...s?{header:s}:{},...l?{footer:l}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}function hu(e){let t=[],n=r=>{if(r.kind==="table"){for(let a of r.rows)for(let i of a.cells)for(let s of i.blocks)n(s);return}let o=r.marker;o&&t.push(`${r.paragraphId}=${o.text}@${o.numFmt}:${o.level}`);};for(let r of e.fragments)n(r);return t.length===0?"":`|list:${t.join(",")}`}function yu(e){let t=[],n=r=>{if(r.kind==="table"){for(let o of r.rows)for(let a of o.cells)for(let i of a.blocks)n(i);return}for(let o of r.lines)for(let a of o.drawings??[])t.push(tl(a.resource));};for(let r of e.anchoredDrawings??[])t.push(tl(r.resource));for(let r of e.fragments)n(r);return t.length===0?"":`!${t.join("!")}`}function py(e,t,n){if(!e)return "";let r=(o,a)=>[...a].map(([i,s])=>`${o}${i}=${s.flowHeight}@${s.contentKey}${yu(s)}${hu(s)}`).sort().join(",");return `|hf:${t},${n},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+r("h",e.headers)+";"+r("f",e.footers)}function my(e){return e.delta===0?true:(e.delta%2===0||!e.evenAndOddHeaders&&!e.parityDependent&&!e.usedPageParity)&&(!e.titlePage||e.markPageCount>0)&&!e.hasNoteReserves&&!e.hasExclusionZones}var _I="http://schemas.openxmlformats.org/wordprocessingml/2006/main",zI="http://schemas.microsoft.com/office/word/2010/wordml",HI="http://schemas.microsoft.com/office/word/2012/wordml";function jI(e){if(e.kind!=="textValue"){for(let t of e.attributes)if(t.localName==="val"&&t.namespaceUri===_I)return t.value}}function Do(e){for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="contentControlProperties"||t.localName==="sdtPr"))return t}function or(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}}function mn(e,t){let n=or(e,t);return n?jI(n):void 0}function rl(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function ol(e){if(!e)return "richText";for(let t of e.children){if(t.kind==="textValue")continue;let n=t.kind,r=t.localName,o=t.namespaceUri;if(n==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(n==="contentControlComboBox"||r==="comboBox")return "comboBox";if(n==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(n==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(n==="contentControlCheckbox"||r==="checkbox"&&o===zI)return "checkbox";if(r==="repeatingSection"&&o===HI)return "repeatingSection"}return "richText"}function gy(e){let t=(n,r)=>{for(let o of n)if(o.kind!=="textValue"){if(o.kind==="tableRow")return "row";if(o.kind==="tableCell")return "cell";if(o.kind==="paragraph"||o.kind==="table")return "block";if(chunkIMMAG4QP_cjs.Hb(o)&&r<chunkIMMAG4QP_cjs.Gb){let a=t(chunkIMMAG4QP_cjs.Kb(o),r+1);if(a)return a}}return null};return t(chunkIMMAG4QP_cjs.Kb(e),0)??"inline"}function yy(e,t){let n=[t],r=new Set([t]);for(let o of e.pages)for(let a of [o.header,o.footer])!a?.part||r.has(a.part)||(r.add(a.part),n.push(a.part));return n}var hy=new WeakMap;function by(e){if(e.length===1)return ei(e[0]);let t=hy.get(e[0]);if(t&&GI(t.parts,e))return t.index;let n=[],r=new Set,o=new Set;for(let s of e){let l=ei(s);for(let d of l.controls)n.push(d);for(let d of l.neededBlockIds)r.add(d);for(let d of l.neededParagraphIds)o.add(d);}let a=`${[...r].sort().join(",")};${[...o].sort().join(",")}`,i={controls:n,neededBlockIds:r,neededParagraphIds:o,neededToken:a};return hy.set(e[0],{parts:e,index:i}),i}function GI(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}function ti(e){let t=xy.get(e);if(t!==void 0)return t;let n=WI(e);return xy.set(e,n),n}var xy=new WeakMap,Sy=new WeakMap;function WI(e){let t=(n,r)=>{if(n.kind==="textValue")return "";if(r===0&&(n.kind==="paragraph"||n.kind==="table")){let a=Sy.get(n);if(a!==void 0)return a}let o;if(chunkIMMAG4QP_cjs.Hb(n)){if(r>=chunkIMMAG4QP_cjs.Gb)return "";let a=Do(n),i=[n.id,mn(a,"alias")??"",mn(a,"tag")??"",rl(mn(a,"lock")),ol(a),or(a,"showingPlcHdr")?"1":"0",or(a,"dataBinding")?"1":"0"].join(":"),s=chunkIMMAG4QP_cjs.Kb(n).map(l=>t(l,r+1)).filter(l=>l.length>0);o=[i,...s].join("|");}else o=n.children.map(a=>t(a,r)).filter(a=>a.length>0).join("|");return r===0&&(n.kind==="paragraph"||n.kind==="table")&&Sy.set(n,o),o};return t(e.root,0)}function al(e){if(e.kind==="textValue")return e.value.length;if(e.kind==="tab"||e.kind==="hardBreak")return 1;if(e.kind==="runProperties"||e.kind==="paragraphProperties"||e.kind==="generic")return 0;if(chunkIMMAG4QP_cjs.Hb(e)){let n=0;for(let r of chunkIMMAG4QP_cjs.Kb(e))n+=al(r);return n}let t=0;for(let n of e.children)t+=al(n);return t}var Ry=new WeakMap;function ei(e){let t=Ry.get(e);if(t!==void 0)return t;let n=$I(e),r=new Set,o=new Set;for(let i of n){for(let s of i.blockIds)r.add(s);i.paragraphId!==void 0&&o.add(i.paragraphId);}let a={controls:n,neededBlockIds:r,neededParagraphIds:o,neededToken:`${[...r].sort().join(",")};${[...o].sort().join(",")}`};return Ry.set(e,a),a}function $I(e){let t=[],n=(a,i)=>{for(let s of a){if(s.kind==="paragraph"||s.kind==="table"){i.push(s.id);continue}if(chunkIMMAG4QP_cjs.Hb(s)){n(chunkIMMAG4QP_cjs.Kb(s),i);continue}(s.kind==="tableRow"||s.kind==="tableCell")&&n(s.children,i);}},r=(a,i,s,l,d)=>{let c=s;for(let u of a)if(!(u.kind==="textValue"||u.kind==="paragraphProperties")){if(chunkIMMAG4QP_cjs.Hb(u)){if(l>=chunkIMMAG4QP_cjs.Gb){c+=al(u);continue}let f=Do(u),p=rl(mn(f,"lock")),m=[...d,p],g=c,h=r(chunkIMMAG4QP_cjs.Kb(u),i,c,l+1,m);t.push({control:u,nestingDepth:l,lockStack:m,level:"inline",paragraphId:i,range:{start:g,end:h},blockIds:[]}),c=h;continue}if(u.kind==="hyperlink"){c=r(u.children,i,c,l,d);continue}c+=al(u);}return c},o=(a,i,s)=>{for(let l of a){if(l.kind==="textValue")continue;if(l.kind==="paragraph"){r(l.children,l.id,0,i,s);continue}if(l.kind==="table"){for(let g of l.children)g.kind==="tableRow"&&o([g],i,s);continue}if(l.kind==="tableRow"){for(let g of l.children)g.kind==="tableCell"?o(g.children,i,s):chunkIMMAG4QP_cjs.Hb(g)&&o([g],i,s);continue}if(!chunkIMMAG4QP_cjs.Hb(l)||i>=chunkIMMAG4QP_cjs.Gb)continue;let d=Do(l),c=rl(mn(d,"lock")),u=[...s,c],f=gy(l),p=chunkIMMAG4QP_cjs.Kb(l);if(f==="inline"){o(p,i+1,u);continue}let m=[];n(p,m),t.push({control:l,nestingDepth:i,lockStack:u,level:f,blockIds:m}),o(p,i+1,u);}};for(let a of chunkIMMAG4QP_cjs.Fe(e))if(a.root.kind!=="textValue")for(let i of a.root.children){if(i.kind==="textValue")continue;let s=wy.get(i);if(s!==void 0){for(let d of s)t.push(d);continue}let l=t.length;o([i],0,[]),wy.set(i,Object.freeze(t.slice(l)));}return t}var wy=new WeakMap,bu=1<<20,Py=new WeakMap,Iy=null,vy=0;function XI(e){return e!==Iy&&(Iy=e,vy+=1),vy}function VI(e,t,n,r){let o=Py.get(e);if(o!==void 0&&o.neededStamp===n)return o;let a=[],i=[],s=e.index*bu,l=0,d=0,c=p=>l===0&&d===0?p:{x:p.x+l,y:p.y+d,width:p.width,height:p.height},u=(p,m)=>{if(m.kind==="paragraph"){t.neededBlockIds.has(m.paragraphId)&&(a.push({pageIndex:p,blockId:m.paragraphId,box:c(m.box)}));let g=t.neededParagraphIds.has(m.paragraphId);for(let h of m.lines){let b=s;if(s=Math.min(s+1,e.index*bu+bu-1),!g)continue;let x=Math.max(0,h.box.height-h.leading-(h.trailingSpacing??0));for(let v of h.spans)i.push({pageIndex:p,paragraphId:v.range.paragraphId,start:v.range.start,end:v.range.end,line:b,box:{x:v.box.x+l,y:v.box.y+h.leading+d,width:v.box.width,height:x}});}return}t.neededBlockIds.has(m.tableId)&&(a.push({pageIndex:p,blockId:m.tableId,box:c(m.box)}));for(let g of m.rows)if(!g.isHeaderRepeat)for(let h of g.cells)for(let b of h.blocks)u(p,b);};for(let p of e.fragments)u(e.index,p);for(let p of [e.header,e.footer])if(p){l=p.box.x-e.contentBox.x,d=p.box.y-e.contentBox.y;for(let m of p.fragments)u(e.index,m);}l=0,d=0;let f={neededStamp:n,blocks:a,spans:i};return Py.set(e,f),f}function YI(e,t,n){let r=XI(t.neededToken),o=new Map,a=new Map,i=new Set;for(let s of e.pages){let l=VI(s,t,r);for(let d of l.blocks){let c=o.get(d.blockId);c?c.push(d):o.set(d.blockId,[d]);}for(let d of l.spans){let c=a.get(d.paragraphId);c?(d.start<c[c.length-1].start&&i.add(d.paragraphId),c.push(d)):a.set(d.paragraphId,[d]);}}return {blocksById:o,spansByParagraph:a,repeatedParagraphs:i}}function KI(e,t,n){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of t.blocksById.get(a)??[]){let s=r.get(i.pageIndex);s?s.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let s=la(i);return s?[{pageIndex:a,box:s}]:[]})}function UI(e,t,n,r){let o=n.spansByParagraph.get(e)??[],a=new Map,i=n.repeatedParagraphs.has(e),s=0,l=o.length;for(;!i&&s<l;){let d=s+(l-s>>1);(t.start===t.end?o[d].end<t.start:o[d].end<=t.start)?s=d+1:l=d;}i&&(s=0);for(let d=s;d<o.length;d+=1){let c=o[d];if(c.end<=t.start)continue;if(c.start>=t.end){if(i)continue;break}let u=a.get(c.line);u?u.boxes.push(c.box):a.set(c.line,{pageIndex:c.pageIndex,boxes:[c.box]});}if(a.size===0&&t.start===t.end){let d=[],c=new Set;for(let u=s;u<o.length;u+=1){let f=o[u];if(f.start>t.start){if(i)continue;break}if(t.start>f.end||c.has(f.pageIndex))continue;c.add(f.pageIndex);let p=f.start===f.end?f.box.x:f.box.x+f.box.width*(t.start-f.start)/Math.max(1,f.end-f.start);if(d.push({pageIndex:f.pageIndex,box:{x:p,y:f.box.y,width:0,height:f.box.height}}),!i)break}if(d.length>0)return d}return [...a.entries()].sort(([d],[c])=>d-c).flatMap(([,d])=>{let c=la(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}function qI(e,t,n){let r=Do(e.control),o=mn(r,"alias"),a=mn(r,"tag"),i=e.lockStack[e.lockStack.length-1]??"unlocked",s=e.level==="inline"&&e.paragraphId&&e.range?UI(e.paragraphId,e.range,t):KI(e.blockIds,t);return {id:e.control.id,...o!==void 0?{alias:o}:{},...a!==void 0?{tag:a}:{},controlType:ol(r),lock:i,effectiveLock:da(e.lockStack),placeholder:or(r,"showingPlcHdr")!==void 0,bound:or(r,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:s}}function ZI(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&(r.pageIndex!==o.pageIndex||r.box.x!==o.box.x||r.box.y!==o.box.y||r.box.width!==o.box.width||r.box.height!==o.box.height))return false}return true}function JI(e,t){return e.id===t.id&&e.alias===t.alias&&e.tag===t.tag&&e.controlType===t.controlType&&e.lock===t.lock&&e.effectiveLock===t.effectiveLock&&e.placeholder===t.placeholder&&e.bound===t.bound&&e.nestingDepth===t.nestingDepth&&e.level===t.level&&ZI(e.fragments,t.fragments)}function _o(e,t){if(!e)return t.length===0;if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(!JI(e[n],t[n]))return false;return true}function xu(e,t){return {revision:e.revision,pages:e.pages,...t.contentControls!==void 0?{contentControls:t.contentControls}:{},...t.controlContextToken!==void 0?{controlContextToken:t.controlContextToken}:{}}}var Ty=new WeakMap;function Su(e,t,n=ti(t),r){let o=yy(e,t);if(o.length>1){let f=o.map(p=>ti(p));n=f.some(p=>p!=="")?f.join("|"):"";}if(n===""){let f=e.pages.some(m=>m.contentControls!==void 0&&m.contentControls.length>0);if(!f&&e.controlContextToken===n&&_o(e.contentControls,[]))return e;let p=f?e.pages.map(m=>m.contentControls!==void 0&&m.contentControls.length>0?{...m,contentControls:[]}:m):e.pages;return {revision:e.revision,pages:p,contentControls:[],controlContextToken:n}}let a=by(o),i=YI(e,a),s=a.controls.map(f=>qI(f,i)),l=new Map;for(let f of s)for(let p of f.fragments){let m=l.get(p.pageIndex),g={...f,fragments:[p]};m?m.push(g):l.set(p.pageIndex,[g]);}if(e.controlContextToken===n&&_o(e.contentControls,s)&&e.pages.every(f=>_o(f.contentControls,l.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let p=l.get(f.index)??[];if(_o(f.contentControls,p)||p.length===0&&!f.contentControls)return f;d=true;let m=Ty.get(f);if(m&&_o(m.controls,p))return m.wrapped;let g={...f,contentControls:p};return Ty.set(f,{controls:p,wrapped:g}),g}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===n&&_o(e.contentControls,s)?e:{revision:e.revision,pages:u,contentControls:s,controlContextToken:n}}function QI(e,t){return ei(e).controls.filter(r=>t?r.paragraphId!==void 0?t.has(r.paragraphId):ky(r.control).some(o=>t.has(o)):true).map(Oy)}function ky(e){let t=[],n=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);continue}if(chunkIMMAG4QP_cjs.Hb(o)){n(chunkIMMAG4QP_cjs.Kb(o));continue}n(o.children);}};return n(chunkIMMAG4QP_cjs.Kb(e)),t}function ev(e,t){let n=null;for(let r of ei(e).controls)(r.paragraphId===t||r.blockIds.includes(t)||ky(r.control).includes(t))&&(!n||r.nestingDepth>=n.nestingDepth)&&(n=r);return n?Oy(n):null}function Oy(e){let t=Do(e.control),n=mn(t,"alias"),r=mn(t,"tag");return {id:e.control.id,...n!==void 0?{alias:n}:{},...r!==void 0?{tag:r}:{},controlType:ol(t),lock:e.lockStack[e.lockStack.length-1]??"unlocked",effectiveLock:da(e.lockStack),placeholder:or(t,"showingPlcHdr")!==void 0,bound:or(t,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var il=4096,Jt=Object.freeze({pageSize:Object.freeze({widthTwips:12240,heightTwips:15840}),margins:Object.freeze({topTwips:1440,rightTwips:1440,bottomTwips:1440,leftTwips:1440,headerTwips:720,footerTwips:720,gutterTwips:0}),columns:Object.freeze({count:1,gapTwips:720,equalWidth:true,separator:false,definitions:Object.freeze([])}),landscape:false,titlePage:false,breakType:"nextPage"});function Ru(e,t,n=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<=0||r>n?t:r}function Cr(e,t){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let n=Number(e);return !Number.isFinite(n)||Math.abs(n)>31680?t:n}function Ly(e,t,n=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<0||r>n?t:r}var Je=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},Br=(e,t)=>{if(e.kind!=="textValue"){for(let n of e.children??[])if(n.kind!=="textValue"&&"localName"in n&&n.localName===t)return n}};function Cy(e,t,n){let r=Je(e,t);return r===void 0?n:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:n}function tv(e){if(!e)return 1;let t=Je(e,"num");return !t||!/^\d{1,7}$/.test(t)?1:Math.max(1,Math.min(12,Number(t)))}function nv(e,t,n){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=t||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:Ru(Je(o,"w"),1,31680),gapTwips:a===t-1?0:Ly(Je(o,"space"),n)});}return r}function rv(e){let t=e?Br(e,"type"):void 0,n=t?Je(t,"val"):void 0;return n==="continuous"||n==="evenPage"||n==="oddPage"||n==="nextColumn"?n:"nextPage"}var ov=new Set(["hyphen","period","colon","emDash","enDash"]);function Fy(e){let t=Br(e,"pgNumType");if(!t||t.kind==="textValue")return;let n={},r=Je(t,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let s=Number(r);Number.isFinite(s)&&s>=0&&s<=9999&&(n.start=s);}let o=Je(t,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(n.fmt=o);let a=Je(t,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let s=Number(a);Number.isFinite(s)&&s>=0&&s<=9&&(n.chapStyle=s);}let i=Je(t,"chapSep");return i!==void 0&&ov.has(i)&&(n.chapSep=i),n}function sl(e){if(!e)return Jt;let t=Br(e,"pgSz"),n=Br(e,"pgMar"),r=Br(e,"cols"),o=Jt,a=t?Je(t,"orient"):void 0,i=t?Ru(Je(t,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,s=t?Ru(Je(t,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,l=Fy(e),d=tv(r),c=r?Ly(Je(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?Cy(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:s},margins:{topTwips:n?Cr(Je(n,"top"),1440):o.margins.topTwips,rightTwips:n?Cr(Je(n,"right"),1440):o.margins.rightTwips,bottomTwips:n?Cr(Je(n,"bottom"),1440):o.margins.bottomTwips,leftTwips:n?Cr(Je(n,"left"),1440):o.margins.leftTwips,headerTwips:n?Cr(Je(n,"header"),720):o.margins.headerTwips,footerTwips:n?Cr(Je(n,"footer"),720):o.margins.footerTwips,gutterTwips:n?Cr(Je(n,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?Cy(r,"sep",false):false,definitions:u?[]:nv(r,d,c)},landscape:a==="landscape"||i>s,titlePage:chunkIMMAG4QP_cjs.ja(e,"titlePg"),breakType:rv(e),...l!==void 0?{pageNumbering:l}:{}}}function av(e){let t=n=>{if(n.kind!=="textValue"){if(n.kind==="body")return Br(n,"sectPr");for(let r of n.children??[]){let o=t(r);if(o)return o}}};return t(e.root)}function ll(e){let t=e.children.find(r=>r.kind==="paragraphProperties");if(!t)return;let n=Br(t,"sectPr");return n&&n.kind!=="textValue"?n:void 0}function iv(e){let t=Ey(e);return t[t.length-1]?.properties??Jt}function Ey(e,t="all-markup"){return My(e,t).sections}function My(e,t="all-markup"){return wu(e,Fn(e,t))}var By=chunkIMMAG4QP_cjs.Ke(16);function wu(e,t){let n=By.get(t);if(n&&n.part===e)return n.result;let r=sv(e,t);return By.set(t,{part:e,result:r}),r}function sv(e,t){let n=[],r=0,o=false;for(let i=0;i<t.length;i+=1){let s=t[i];if(s.kind!=="paragraph")continue;let l=ll(s);if(l){if(n.length>=il){o=true;continue}n.push({index:n.length,properties:sl(l),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(n.length>0){let i=n[n.length-1];n[n.length-1]={...i,blockEndExclusive:t.length};}return {sections:n,truncated:true}}let a=av(e);if(r<t.length||n.length===0){if(n.length>=il){let i=n[n.length-1];return n[n.length-1]={...i,blockEndExclusive:t.length},{sections:n,truncated:true}}n.push({index:n.length,properties:sl(a),blockStart:r,blockEndExclusive:t.length});}else if(a){if(n.length>=il)return {sections:n,truncated:true};n.push({index:n.length,properties:sl(a),blockStart:r,blockEndExclusive:t.length});}return {sections:n,truncated:o}}function Lr(e){let t=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.pageSize.widthTwips)),n=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.pageSize.heightTwips)),r=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.margins.leftTwips+e.margins.gutterTwips)),o=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.margins.rightTwips)),a=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.margins.topTwips)),i=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.margins.bottomTwips));return t-r-o<=0||n-a-i<=0?ca:{width:t,height:n,margin:{top:a,right:o,bottom:i,left:r},headerDistance:chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(Math.max(0,e.margins.headerTwips))),footerDistance:chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(Math.max(0,e.margins.footerTwips)))}}var zo=1;function Pu(e,t){let n=Math.max(zo,t),r=Math.max(1,Math.min(12,Math.floor(e.count))),o=e.definitions??[],a=e.equalWidth===false&&o.length===r&&o.every(c=>c.widthTwips>0),i,s;if(a){i=o.map(p=>Math.max(zo,chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(p.widthTwips)))),s=o.slice(0,-1).map(p=>Math.max(0,chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(p.gapTwips))));let c=s.reduce((p,m)=>p+m,0),u=Math.max(r*zo,n-c),f=i.reduce((p,m)=>p+m,0);if(f>u){let p=u/f;i=i.map(m=>Math.max(zo,m*p));}}else {let c=Math.max(0,chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.gapTwips))),u=Math.min(c,Math.max(0,(n-r*zo)/(r-1||1)));s=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(zo,(n-s.reduce((p,m)=>p+m,0))/r);i=Array.from({length:r},()=>f);}let l=[],d=0;for(let c=0;c<r;c+=1)l.push(d),d+=i[c]+(s[c]??0);return {count:r,widths:i,gaps:s,lefts:l,separator:e.separator===true&&r>1}}function lv(e,t,n){return ni(e,t,()=>n)}function ni(e,t,n){let r=[],o=null,a=-1,i=-1;for(let s of t){let l=n(s.sectionIndex);if(s.customMarkFollows){r.push({noteId:s.noteId,mark:null});continue}o===null?(o=l.numStart,a=s.sectionIndex,i=s.pageIndex??-1):l.numRestart==="eachSect"&&s.sectionIndex!==a?(o=l.numStart,a=s.sectionIndex):l.numRestart==="eachPage"&&s.pageIndex!==void 0&&s.pageIndex!==i?(o=l.numStart,i=s.pageIndex):l.numRestart==="eachSect"?a=s.sectionIndex:l.numRestart==="eachPage"&&s.pageIndex!==void 0&&(i=s.pageIndex);let d=o;o+=1,r.push({noteId:s.noteId,mark:Tn(l.numFmt,d),displayNumber:d});}return r}function Ny(e){let t=new Map;for(let n of e)t.set(n.noteId,n.mark);return t}var Ho=chunkIMMAG4QP_cjs.zd,ri=512,Iu=6,dv=1/3;function Ay(e,t){return `note-${e}-${t}`}function cv(e){if(!e)return [];let t=[];for(let n of chunkIMMAG4QP_cjs.Bd(e.root)){if(t.length>=Ho)break;chunkIMMAG4QP_cjs.sd(n)&&t.push(n);}return t}function Dy(e,t){if(e){for(let n of chunkIMMAG4QP_cjs.Bd(e.root))if(chunkIMMAG4QP_cjs.rd(n)===t)return n}}function vu(e,t,n){let r=chunkIMMAG4QP_cjs.pd(e),o=chunkIMMAG4QP_cjs.qd(e);if(!r||o===null)return null;let a=chunkIMMAG4QP_cjs.gd(r,o),i=vs(e),s=Ay(r,o),l=0,d=Math.max(1,t),c=n.maxFlowHeightPt??Number.POSITIVE_INFINITY,u=n.noteMarks?{...n.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},f=n.ownerPartName?n.drawingsForPart?.(n.ownerPartName):void 0,p=Tr({numberingIndex:n.numberingIndex,styleCascade:n.styleCascade},i).listItems,m=Or(i,0,d,0,0,{measurer:n.measurer,cache:n.cache,producer:`${n.producer}|${a}`,nextLineId:()=>`${s}-line-${l++}`,styleCascade:n.styleCascade,...p?{listItems:p}:{},noteMarks:u,...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...f?{inlineDrawingLayout:f.inlineDrawingLayout,...f.drawingTokenForParagraph?{drawingTokenForParagraph:f.drawingTokenForParagraph}:{}}:{}}),g=m.blocks,h=m.bottom,b;if(g.length>ri){g=g.slice(0,ri);let x=g[g.length-1];h=x?x.box.y+x.box.height:0,b="note-fragment-limit";}if(h>c){let x=[],v=0;for(let w of g){let O=w.box.y+w.box.height;if(O>c+.001&&x.length>0)break;x.push(w),v=O;}g=x,h=v,b=b??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkIMMAG4QP_cjs.rd(e),fragments:g,flowHeight:h,...b?{fallbackReason:b}:{}}}function dl(e,t,n,r){if(!e)return null;let o=chunkIMMAG4QP_cjs.Cd(e.root,t);return o?vu(o,n,{...r,ownerPartName:e.name}):null}function _y(e,t){return "single"}function zy(e){let t=vs(e);if(t.length===0)return true;for(let n of t){if(n.kind!=="paragraph")return false;let r=n.children.find(o=>o.kind==="paragraphProperties");if(Object.keys(Pn(r)).length>0||!uv(n))return false}return true}function uv(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="paragraphProperties"){if(t.kind==="run"){if(!fv(t))return false;continue}return false}return true}function fv(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="runProperties"&&!(chunkIMMAG4QP_cjs.nd(t)||chunkIMMAG4QP_cjs.od(t)||chunkIMMAG4QP_cjs.md(t))){if(t.kind==="text"){if(t.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function oi(e,t,n,r,o,a){let i=_y(),s=Dy(e,t);if(s){if(zy(s))return {kind:t,fragments:[],flowHeight:Iu,synthetic:false,ruleStyle:i};let l=vu(s,n,{...r,...e?{ownerPartName:e.name}:{}});if(l&&l.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return l.flowHeight>d+.001?{kind:t,fragments:[],flowHeight:Iu,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:t,fragments:l.fragments,flowHeight:l.flowHeight,synthetic:false}}}return {kind:t,fragments:[],flowHeight:Iu,synthetic:true,ruleStyle:i}}function Hy(e,t){let n=Math.max(1,e*dv);return {x:0,y:Math.max(0,(t-.75)/2),width:n,height:.75}}function cl(e,t,n,r){if(e.ruleStyle!==void 0||e.synthetic){let o=Hy(n,e.flowHeight);return {x:t+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:t,y:r,width:n,height:e.flowHeight}}var ku=8,Uy=4096,qy=256,Zy=14,Ou=12;function pv(e){let t=[];for(let n of e)t.push(`${n.noteKind}|${n.noteId}|${n.paragraphId}|${n.atomOffset}|${n.customMarkFollows?1:0}|${n.sectionIndex}`);return t.join(";")}function ul(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function mv(e){return e.drawingsForPart!==void 0&&e.drawingLayoutEpoch===void 0?null:[e.producer,e.defaultTabStopPt??"",e.drawingLayoutEpoch??"",ul(e.documentFootnoteProps),ul(e.documentEndnoteProps),e.footnotePropsBySection.map(ul).join(";"),e.endnotePropsBySection.map(ul).join(";")].join("\0")}var jy=new WeakMap;function gv(e,t,n){if(!e)return {memo:null,allHits:t,reused:false};let r=mv(n);if(r===null)return e.notes=null,{memo:null,allHits:t,reused:false};let o=pv(t),a=e.notes;if(a&&a.hitsFingerprint===o){let s=jy.get(a);if(a.inputFingerprint===r&&s&&s.footnotesPart===n.footnotesPart&&s.endnotesPart===n.endnotesPart&&s.measurer===n.measurer&&s.cache===n.cache&&s.styleCascade===n.styleCascade&&s.numberingIndex===n.numberingIndex)return {memo:a,allHits:a.allHits,reused:true}}let i={hitsFingerprint:o,inputFingerprint:r,allHits:t,provisionalMarks:Mu(t,n),finalMarks:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return jy.set(i,{footnotesPart:n.footnotesPart,endnotesPart:n.endnotesPart,measurer:n.measurer,cache:n.cache,styleCascade:n.styleCascade,numberingIndex:n.numberingIndex}),e.notes=i,{memo:i,allHits:t,reused:false}}function hv(e,t){return t>=e.range.start&&t<e.range.end}var Gy=new WeakMap;function Jy(e){let t=Gy.get(e);if(t)return t;let n=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){n.push(a);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let s of i.cells)r(s.blocks);}};return r(e),Gy.set(e,n),n}function Bu(e){let t=new Map;for(let n of e){let r=t.get(n.paragraphId);r?r.push(n):t.set(n.paragraphId,[n]);}return t}function pl(e,t,n){let r=Jy(e.fragments);if(!n)return t.filter(i=>r.some(s=>Kc(s,i.paragraphId,i.atomOffset)));let o=[],a=new Set;for(let i of r)for(let s of rr(i)){let l=n.get(s);if(l)for(let d of l)a.has(d)||Kc(i,s,d.atomOffset)&&(a.add(d),o.push(d));}return o}function Qy(){let e=new Map;return {get(t,n,r,o,a,i,s){let d=`${t?.name??"none"}\0${o}\0${n}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=oi(t,n,r,i,o,a);return e.set(d,u),u.fallbackReason&&s.push(u.fallbackReason),u}}}function yv(e,t){let n=[];for(let r of e){if(n.length>=Ho)break;n.push({...r,sectionIndex:t.get(r.paragraphId)??0});}return n}function jo(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function Lu(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function eb(e,t){return {measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:e.defaultTabStopPt,projectLink:e.projectLink,projectFieldLink:e.projectFieldLink,documentProperties:e.documentProperties,noteMarks:t,drawingsForPart:e.drawingsForPart}}function bv(e,t){return t===0?e:{...e,box:{...e.box,y:e.box.y+t},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+t}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+t}}}:{},...e.borders?{borders:e.borders.map(n=>({...n,box:{...n.box,y:n.box.y+t}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+t}}}:{},lines:e.lines.map(n=>({...n,box:{...n.box,y:n.box.y+t},spans:n.spans.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}))}}function Wy(e,t){return t===0?[...e]:e.map(n=>n.kind==="paragraph"?bv(n,t):{...n,box:{...n.box,y:n.box.y+t}})}function xv(e,t){if(e.lines.length===0)return e.box.y+e.box.height<=t+.001?{head:e,tail:null}:{head:null,tail:e};let n=0;for(;n<e.lines.length;n+=1){let g=e.lines[n];if(g.box.y+g.box.height>t+.001)break}if(n===0)return {head:null,tail:e};if(n>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,n),o=e.lines.slice(n),a=r[r.length-1],i=e.box.y,s=a.box.y+a.box.height,l=e.borders?.filter(g=>g.side!=="bottom"),d={...e,range:{paragraphId:e.paragraphId,start:r[0].range.start,end:a.range.end},spacing:{before:e.spacing.before,after:0},lines:r,box:{...e.box,height:Math.max(0,s-i)},...l&&l.length>0?{borders:l}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,s-e.shadingBox.y)}}:{}},c=o[o.length-1],u=o[0].box.y,f=c.box.y+c.box.height,p=e.borders?.filter(g=>g.side!=="top"),m={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:o[o.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:o,box:{x:e.box.x,y:u,width:e.box.width,height:Math.max(0,f-u)},marker:void 0,...p&&p.length>0?{borders:p}:{borders:void 0},...e.bottomBorder?{bottomBorder:e.bottomBorder}:{},...e.shadingBox?{shadingBox:{x:e.shadingBox.x,y:u,width:e.shadingBox.width,height:Math.max(0,f-u)}}:{}};return {head:d,tail:m}}function Sv(e){let t=0;for(let n of e)t=Math.max(t,n.box.y+n.box.height);return t}function ml(e,t,n){if(e.flowHeight<=t+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(t<=.001)return {head:[],headHeight:0,tail:e.fragments,tailHeight:e.flowHeight};let r=[],o=0,a=0,i=null;for(let u=0;u<e.fragments.length&&u<ri;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=t+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let m=xv(f,t);if(m.head)r.push(m.head),o=m.head.box.y+m.head.box.height,i=m.tail,a=u+1;else {let g=n?.fullContentHeight??t,b=f.lines[0]?.box.height??f.box.height;if(r.length===0&&t>=g-.001&&b>g+.001){n?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let x=e.fragments.slice(a),v=x[0]?.box.y??0;return {head:[],headHeight:0,tail:Wy(x,-v),tailHeight:Math.max(0,e.flowHeight-v)}}a=u,i=null;}break}a=u;break}let s=[...i?[i]:[],...e.fragments.slice(a)];if(s.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let l=s[0]?.box.y??0,d=Wy(s,-l),c=Sv(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}function Rv(e,t){let n="FootnoteReference";if(!t)return {...ln,verticalAlign:"superscript"};let r=Ln([],[{localName:"rStyle",attributes:{val:n}}],t);return Me(r,t.themeFonts)}function wv(e,t,n,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(t.footnotePropsBySection.length,t.endnotePropsBySection.length,1,...n.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=jo(t,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<Ou;p+=1){let m=Tn(u.numFmt,u.numStart+p);m.length>0&&o.add(m);}}let f=Lu(t,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<Ou;p+=1){let m=Tn(f.numFmt,f.numStart+p);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let s=Rv("footnote",t.styleCascade),l,d=-1;for(let c of o){let u=t.measurer.measure(c,s);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(l?.length??0))&&(l=c,d=u);}return l}function tb(e,t,n){let r=ni("footnote",e,s=>jo(n,s)),o=ni("endnote",t,s=>Lu(n,s)),a=new Map;for(let s of r)a.set(Sr("footnote",s.noteId),s.mark);for(let s of o)a.set(Sr("endnote",s.noteId),s.mark);let i=wv(a,n,e,t);return {marks:a,...i?{reservedMarkText:i}:{}}}function gl(e){let t=0;for(let n of e.fragments)t=Math.max(t,n.box.y+n.box.height);return t}function Cu(e){if(e.footnotes===void 0&&e.endnotes===void 0&&e.noteStream===void 0)return e;let{footnotes:t,endnotes:n,noteStream:r,...o}=e;return o}function Pv(e,t){if(t.marks.size===0)return e;let n=false,r=e.pages.map(o=>{if(!Iv(o.fragments))return o;let a=nb(o.fragments,t);return a===o.fragments?o:(n=true,{...o,fragments:a})});return n?{revision:e.revision,pages:r}:e}var $y=new WeakMap;function Iv(e){let t=$y.get(e);if(t!==void 0)return t;let n=false,r=o=>{for(let a of o){if(n)return;if(a.kind==="paragraph"){for(let i of a.lines)for(let s of i.spans)if(s.projected&&s.noteNav?.direction==="to-note"){n=true;return}continue}for(let i of a.rows)for(let s of i.cells)r(s.blocks);}};return r(e),$y.set(e,n),n}function nb(e,t){let n=false,r=e.map(o=>{if(o.kind==="paragraph"){let s=vv(o,t);return s!==o&&(n=true),s}let a=false,i=o.rows.map(s=>{let l=false,d=s.cells.map(c=>{let u=nb(c.blocks,t);return u===c.blocks?c:(l=true,{...c,blocks:u})});return l?(a=true,{...s,cells:d}):s});return a?(n=true,{...o,rows:i}):o});return n?r:e}function vv(e,t){let n=false,r=e.lines.map(o=>{let a=Tv(o,t);return a!==o&&(n=true),a});return n?{...e,lines:r}:e}function Tv(e,t){let n=false,r=e.spans.map(o=>{let a=kv(o,t);return a!==o&&(n=true),a});return n?{...e,spans:r}:e}function kv(e,t){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let n=t.marks.get(e.noteNav.scopeId);if(n===void 0)return e;let r=n??"";return e.text===r?e:{...e,text:r}}function Ov(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function rb(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function Cv(e){for(let t=e.length-1;t>=0;t-=1)if(rb(e[t]))return t;return Math.max(0,e.length-1)}function Fu(e,t,n,r,o,a,i,s){let l=new Map(a),d=t.filter(I=>I.noteKind==="footnote"),c=e.contentBox.width,u=eb(n,r),f=[],p=0,m=Uy,g=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),b=s?.separatorCache?s.separatorCache.get(n.footnotesPart,g,c,"footnote",h,u,i):(()=>{let I=oi(n.footnotesPart,g,c,u,"footnote",h);return I.fallbackReason&&i.push(I.fallbackReason),I})(),x=Math.max(0,e.contentBox.height-gl(e)-b.flowHeight),v=Math.max(0,e.contentBox.height-Zy-b.flowHeight),w=s?.reserveColumnBudget?v:x,E={fullContentHeight:Math.max(0,e.contentBox.height-b.flowHeight),reasons:i};for(let[I,M]of a){let j=I.match(/^(footnote|endnote):(-?\d+)$/);if(!j||j[1]!=="footnote")continue;let A=Number(j[2]),T=Math.max(0,w-p);if(M.height<=T+.001)f.push({noteKind:"footnote",noteId:A,scopeId:I,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:M.height},fragments:M.fragments}),p+=M.height,l.delete(I);else {let z=ml({fragments:M.fragments,flowHeight:M.height},T,E);z.head.length>0&&(f.push({noteKind:"footnote",noteId:A,scopeId:I,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:z.headHeight},fragments:z.head}),p+=z.headHeight),z.tail.length>0?l.set(I,{fragments:z.tail,height:z.tailHeight,mark:null}):l.delete(I);}}for(let I of d){if(f.length>=Ho){i.push("note-count-limit");break}let M=dl(n.footnotesPart,I.noteId,c,u);if(!M){i.push("missing-note-body");continue}let j=r.marks.get(Sr("footnote",I.noteId))??null,A=Math.max(0,w-p);if(m-=M.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(M.flowHeight<=A+.001)f.push({noteKind:"footnote",noteId:I.noteId,scopeId:M.scopeId,mark:I.customMarkFollows?null:j,box:{x:e.contentBox.x,y:0,width:c,height:M.flowHeight},fragments:M.fragments}),p+=M.flowHeight;else {let T=ml(M,A,E);T.head.length>0&&(f.push({noteKind:"footnote",noteId:I.noteId,scopeId:M.scopeId,mark:I.customMarkFollows?null:j,box:{x:e.contentBox.x,y:0,width:c,height:T.headHeight},fragments:T.head}),p+=T.headHeight),T.tail.length>0&&l.set(M.scopeId,{fragments:T.tail,height:T.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:l};let P=b.flowHeight,L=P+p,C=gl(e),k;o==="beneathText"?k=e.contentBox.y+C:(k=e.contentBox.y+e.contentBox.height-L,k=Math.max(k,e.contentBox.y+C));let H=k+P,D=f.map(I=>{let M={...I,box:{...I.box,y:H}};return H+=I.box.height,M}),y=cl(b,e.contentBox.x,c,k);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:k,width:c,height:L},separator:{kind:g,box:y,fragments:b.fragments,synthetic:b.synthetic,...b.ruleStyle!==void 0?{ruleStyle:b.ruleStyle}:{}},notes:D},nextCarry:l}}function ob(e,t,n){return {id:`page-${t}`,index:t,box:e.box,contentBox:e.contentBox,fragments:[],...n?{noteStream:n}:{},...e.header?{header:e.header}:{},...e.footer?{footer:e.footer}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+(t-e.index)}}:{}}}function Eu(e,t){let n=new Set;for(let r of Jy(e.fragments))n.add(t.get(r.paragraphId)??0);return [...n].sort((r,o)=>r-o)}function ab(e,t,n){for(let r=e.length-1;r>=0;r-=1)if(Eu(e[r],n).includes(t))return r;return Math.max(0,e.length-1)}function Bv(e,t,n){let r=ab(e,t,n);for(let o=r+1;o<e.length;o+=1){let a=e[o];if(a.noteStream==="footnote-drain"||a.noteStream==="endnote-overflow"||a.fragments.length===0&&(a.footnotes?.notes.length??0)>0)continue;let i=Eu(a,n);if(i.length!==0&&!i.includes(t))return o}return e.length}function Lv(e){return e.map((t,n)=>t.index===n&&t.id===`page-${n}`?t:{...t,id:`page-${n}`,index:n})}function Fv(e){let t=Lv(e);return [...qn({revision:0,pages:t}).pages]}function Ev(e,t,n,r,o,a,i,s){let l=new Map(a),d=[];if(t.length===0&&a.size===0)return {area:void 0,nextCarry:l,remainingRefs:d};let c=e.contentBox.width,u=eb(n,r),f=s?.separatorKind??"separator",p=A=>A==="footnote"?n.footnotesPart:n.endnotesPart,m=n.endnotesPart??n.footnotesPart,g=Math.max(0,e.contentBox.height),h=s?.separatorCache?s.separatorCache.get(m,f,c,"endnote",g,u,i):(()=>{let A=oi(m,f,c,u,"endnote",g);return A.fallbackReason&&i.push(A.fallbackReason),A})(),b=h.flowHeight,x=gl(e),v=e.endnotes?Math.max(x,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):x,w=Ov(e),O=Math.max(0,w-v-b),P={fullContentHeight:Math.max(0,w-b),reasons:i},L=[],C=0,k=Uy;for(let[A,T]of a){let z=A.match(/^(footnote|endnote):(-?\d+)$/);if(!z)continue;let F=z[1],K=Number(z[2]),W=Math.max(0,O-C);if(T.height<=W+.001)L.push({noteKind:F,noteId:K,scopeId:A,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:T.height},fragments:T.fragments}),C+=T.height,l.delete(A);else {let V=ml({fragments:T.fragments,flowHeight:T.height},W,P);V.head.length>0&&(L.push({noteKind:F,noteId:K,scopeId:A,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:V.headHeight},fragments:V.head}),C+=V.headHeight),V.tail.length>0?l.set(A,{fragments:V.tail,height:V.tailHeight,mark:null}):l.delete(A);}}for(let A=0;A<t.length;A+=1){let T=t[A];if(L.length>=Ho){i.push("note-count-limit"),d.push(...t.slice(A));break}let z=p(T.noteKind),F=dl(z,T.noteId,c,u);if(!F){i.push("missing-note-body");continue}let K=r.marks.get(Sr(T.noteKind,T.noteId))??null,W=Math.max(0,O-C);if(k-=F.fragments.length,k<0){i.push("note-area-fragment-limit"),d.push(...t.slice(A));break}if(F.flowHeight<=W+.001)L.push({noteKind:T.noteKind,noteId:T.noteId,scopeId:F.scopeId,mark:T.customMarkFollows?null:K,box:{x:e.contentBox.x,y:0,width:c,height:F.flowHeight},fragments:F.fragments}),C+=F.flowHeight;else {let V=ml(F,W,P);V.head.length>0&&(L.push({noteKind:T.noteKind,noteId:T.noteId,scopeId:F.scopeId,mark:T.customMarkFollows?null:K,box:{x:e.contentBox.x,y:0,width:c,height:V.headHeight},fragments:V.head}),C+=V.headHeight),V.tail.length>0&&l.set(F.scopeId,{fragments:V.tail,height:V.tailHeight,mark:null}),d.push(...t.slice(A+1));break}}if(L.length===0&&a.size===0)return {area:void 0,nextCarry:l,remainingRefs:d};if(L.length===0)return {area:void 0,nextCarry:l,remainingRefs:d};let H=e.contentBox.y+v,D=H+b,y=L.map(A=>{let T={...A,box:{...A.box,y:D}};return D+=A.box.height,T}),ee=cl(h,e.contentBox.x,c,H),I=b+C,M=Math.max(0,w-v),j=Math.min(I,M);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:H,width:c,height:j},separator:{kind:f,box:ee,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:y},nextCarry:l,remainingRefs:d}}function Mv(e,t,n,r,o,a,i){let s=e,l=t;for(;l.size>0&&a.remaining>0;){let d=s[s.length-1],c=ob(d,d.index+1,"footnote-drain"),u=Fu(c,[],n,r,"pageBottom",l,o,{separatorCache:i}),f=u.area?.notes.length??0;if(l=u.nextCarry,f===0){o.push("note-overflow-stalled"),u.area&&(s=[...s,{...c,footnotes:u.area}],a.remaining-=1);break}s=[...s,{...c,footnotes:u.area}],a.remaining-=1;}return l.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:s,carry:l}}function Nv(e,t,n,r="endnote-overflow"){let o=ob(n,t,r);return {pages:[...e.slice(0,t),o,...e.slice(t)],pageIndex:t}}function Xy(e,t,n){if(n<=t||t>=e.length)return e;let r=Math.min(n,e.length),o=e[t],a=o.pageFieldSource?.pageNumber??t+1,i=o.pageFieldSource?.format,s=r-t,l=[...e];for(let d=t;d<r;d+=1){let c=l[d];l[d]={...c,pageFieldSource:{pageNumber:a+(d-t),sectionPageCount:s,...i?{format:i}:{}}};}return l}function Vy(e,t,n,r,o,a,i,s,l){if(n.length===0||e.length===0)return e;let d=[...e],c=[...n],u=new Map,f=t,p=0,m="separator",g=l?.stopBeforeIndex??Number.POSITIVE_INFINITY,h=l?.sectionStartIndex??t,b=l?.stopBeforeIndex!==void 0,x=l?.separatorCache;for(;c.length>0||u.size>0;){if(f>=d.length||f>=g){if(s.remaining<=0){i.push("note-overflow-page-limit");break}let E=d[Math.min(Math.max(f,1),d.length)-1]??d[d.length-1],P=Math.min(f,g,d.length),L=Nv(d,P,E,"endnote-overflow");d=L.pages,f=L.pageIndex,b&&(g=P+1),p+=1,s.remaining-=1;}let v=d[f];if(!rb(v)){f+=1;continue}let w=Ev(v,c,r,o,a,u,i,{separatorKind:m,...x?{separatorCache:x}:{}});u=w.nextCarry,c=w.remainingRefs;let O=w.area?.notes.length??0;if(w.area){let E=d[f];d[f]={...E,endnotes:E.endnotes?{...w.area,notes:[...E.endnotes.notes,...w.area.notes],box:{...w.area.box,y:E.endnotes.box.y,height:E.endnotes.box.height+w.area.box.height}}:w.area};}else {if(u.size===0&&c.length===0)break;if(!w.area&&u.size===0&&c.length>0){f+=1,m="separator";continue}}if(O===0&&(u.size>0||c.length>0)&&v.fragments.length===0&&v.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(u.size>0||c.length>0){m="continuationSeparator",f+=1;continue}break}return (c.length>0||u.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),b?d=Xy(d,h,Math.min(g,d.length)):p>0&&(d=Xy(d,h,d.length)),d}function ib(e,t,n,r,o){let a=o??null,i=new Map,s=[],l=new Map,d=Bu(t),c=Qy();for(let f of e.pages){let p=Cu(f),g=pl(p,t,d).filter(L=>L.noteKind==="footnote"),h=g[0]?.sectionIndex??0,b=jo(n,h);if(b.pos==="sectEnd"||b.pos==="docEnd")continue;if(a&&l.size===0){let L=a.pageReserve.get(f);if(L&&L.allHits===t&&L.marks===r){for(let C of L.reasons)s.push(C);L.reserve>0&&i.set(f.index,Math.max(i.get(f.index)??0,L.reserve));continue}}let x=Math.max(0,p.contentBox.height-Zy),v=l.size===0,w=s.length,{area:O,nextCarry:E}=Fu(p,g,n,r,b.pos,l,s,{reserveColumnBudget:true,separatorCache:c});l=E;let P=Math.min(O?.box.height??0,x);if(a&&v&&l.size===0&&a.pageReserve.set(f,{allHits:t,marks:r,reserve:P>0?P:0,reasons:s.slice(w)}),P>0){let L=i.get(f.index)??0;i.set(f.index,Math.max(L,P));}}let u=true;for(let f of e.pages){let p=i.get(f.index)??0;if(p<=0)continue;if(gl(Cu(f))+p>f.contentBox.height+.5){u=false;break}}return {reserves:i,stable:u,reasons:s}}function sb(e,t,n,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,s={remaining:qy},l=Bu(t),d=Qy(),c=[],u=[];for(let w of e.pages)for(let O of pl(w,t,l)){let E={noteId:O.noteId,sectionIndex:O.sectionIndex,pageIndex:w.index,customMarkFollows:O.customMarkFollows};O.noteKind==="footnote"?c.push(E):u.push(E);}let f=o?[...c,...u].map(w=>`${w.noteId}|${w.sectionIndex}|${w.pageIndex??""}|${w.customMarkFollows?1:0}`).join(";"):"",p;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===f?p=o.finalMarks.marks:(p=tb(c,u,n),o&&(o.finalMarks={sitesFingerprint:f,marks:p}));let m=new Map,g=new Map,h=[],b=e.pages.map(w=>{let O=pl(w,t,l),E=O.filter(I=>I.noteKind==="footnote"),P=O.filter(I=>I.noteKind==="endnote");for(let I of P)if(Lu(n,I.sectionIndex).pos==="sectEnd"){let j=g.get(I.sectionIndex)??[];j.push(I),g.set(I.sectionIndex,j);}else h.push(I);for(let I of E){let M=jo(n,I.sectionIndex);if(M.pos==="sectEnd"){let j=g.get(I.sectionIndex)??[];j.push(I),g.set(I.sectionIndex,j);}else M.pos==="docEnd"&&h.push(I);}if(o&&m.size===0){let I=o.pageAttach.get(w);if(I&&I.allHits===t&&I.marks===p){for(let M of I.reasons)a.push(M);return I.attached}}let L=Cu(w),C=E[0]?.sectionIndex??0,k=jo(n,C),H,D=m.size===0,y=a.length;if(k.pos==="pageBottom"||k.pos==="beneathText"){let I=E.filter(j=>{let A=jo(n,j.sectionIndex).pos;return A==="pageBottom"||A==="beneathText"}),M=Fu(L,I,n,p,k.pos,m,a,{separatorCache:d});H=M.area,m=M.nextCarry;}let ee=H?{...L,footnotes:H}:L;return o&&D&&m.size===0&&o.pageAttach.set(w,{allHits:t,marks:p,attached:ee,reserve:0,reasons:a.slice(y)}),ee}),x=b.length;if(m.size>0){let w=Mv(b,m,n,p,a,s,d);b=w.pages,m=w.carry;}if(g.size>0&&b.length>0){let w=[...g.keys()].sort((O,E)=>O-E);for(let O of w){let E=g.get(O),P=ab(b,O,i),L=Bv(b,O,i),C=P;for(let k=0;k<=P;k+=1)if(Eu(b[k],i).includes(O)){C=k;break}b=Vy(b,P,E,n,p,"sectEnd",a,s,{stopBeforeIndex:L,sectionStartIndex:C,separatorCache:d});}}return h.length>0&&b.length>0&&(b=Vy(b,Cv(b),h,n,p,"docEnd",a,s,{separatorCache:d})),b.length!==x&&(b=Fv(b)),{layout:Pv({revision:e.revision,pages:b},p),fallbackReasons:a,noteMarks:p}}function Av(e){return chunkIMMAG4QP_cjs.$d(e).map(t=>({noteKind:t.noteKind,noteId:t.noteId,paragraphId:t.paragraphId,atomOffset:t.atomOffset,customMarkFollows:t.customMarkFollows}))}function Dv(e,t,n){let r=new Map,o=Fn(e,n);for(let a=0;a<t.length;a+=1){let i=t[a];for(let s=i.blockStart;s<i.blockEndExclusive;s+=1){let l=o[s];if(l){if(l.kind==="paragraph"){r.set(l.id,a);continue}for(let d of _v(l))r.set(d,a);}}}return r}var Yy=new WeakMap;function _v(e){let t=Yy.get(e);if(t)return t;let n=[],r=(o,a)=>{if(!(a>32)&&o.kind!=="textValue"){if(o.kind==="paragraph"){n.push(o.id);return}for(let i of o.children)r(i,a+1);}};return r(e,0),Yy.set(e,n),n}function Fr(e){let t=new Map;for(let[n,r]of e)r>0&&t.set(n,r);return t}function Tu(e,t){let n=Fr(e),r=Fr(t);if(n.size!==r.size)return false;for(let[o,a]of n)if((r.get(o)??0)!==a)return false;return true}function Ky(e,t){let n=Fr(e);for(let[r,o]of t)o<=0||n.set(r,Math.max(n.get(r)??0,o));return n}function fl(e){return [...Fr(e)].map(([t,n])=>`${t}=${n}`).sort().join(",")}function lb(e,t,n,r,o){let a=Av(e);if(a.length===0)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),o({...n,noteMarks:void 0,pageBottomReserves:void 0});let i=Dv(e,t,n.displayMode??gt),s=yv(a,i),l=gv(n.session,s,r),d=l.memo,c=l.allHits,u=d?.provisionalMarks??Mu(c,r),f=n.session?.notePageBottomReserves,p=f?Fr(f):new Map,m=[],g=o({...n,noteMarks:u,pageBottomReserves:p}),h=new Set([fl(p)]);for(let x=0;x<ku;x+=1){let v=ib(g,c,r,u,d);if(m=[...v.reasons],v.stable&&Tu(v.reserves,p))break;let w=v.stable?Fr(v.reserves):Ky(p,v.reserves);if(Tu(w,p)){m.push("note-reflow-exhausted");break}let O=fl(w);if(h.has(O)){w=Ky(p,v.reserves);let E=fl(w);if(Tu(w,p)||h.has(E)){m.push("note-reflow-exhausted");break}}p=w,h.add(fl(p)),g=o({...n,noteMarks:u,pageBottomReserves:p}),x===ku-1&&m.push("note-reflow-exhausted");}let b=sb(g,c,r,{fallbackReasons:m,paragraphSectionIndex:i,memo:d});return n.session&&(n.session.previous=b.layout,n.session.notePageBottomReserves=Fr(p)),b.layout}function Mu(e,t){let n=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?n.push(a):r.push(a);}return tb(n,r,t)}function db(e,t){let n=e.projectLink??t.projectLink,r=e.projectFieldLink??t.projectFieldLink,o=e.documentProperties??t.documentProperties;return {...e,...n?{projectLink:n}:{},...r?{projectFieldLink:r}:{},...o?{documentProperties:o}:{}}}var zv={kind:"covered",id:"hashed",paragraphId:"covered",fragmentIndex:"covered",range:"hashed",props:"hashed",spacing:"hashed",indent:"hashed",bottomBorder:"hashed",borders:"hashed",shading:"hashed",shadingBox:"hashed",markRevisions:"hashed",markRevision:"covered",markFormatRevision:"hashed",marker:"hashed",tabStops:"hashed",lines:"hashed",box:"hashed"},Hv={kind:"covered",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function fb(e){return Object.keys(e).filter(t=>e[t]==="hashed")}var jv=fb(zv),Gv=fb(Hv),cb=new WeakMap;function ub(e){let t=cb.get(e);if(t!==void 0)return t;let n=e.kind==="table"?JSON.stringify(Gv.map(r=>e[r])):JSON.stringify(jv.map(r=>e[r]));return cb.set(e,n),n}function pb(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&ub(r)!==ub(o))return false}return true}function Nu(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}var mb=Object.freeze([]),gb=new Map;function hb(e,t){if(e===t)return true;if(e.size!==t.size)return false;for(let[n,r]of e)if(t.get(n)!==r)return false;return true}function hl(){return {previous:null,checkpoints:[],keys:[],context:"",parityDependent:false,startPageParity:0,prepass:null,startLineCounter:0,endLineCounter:0,endCursorY:0,endSpaceAfter:0,endsOpenPage:true,stats:{placed:0,total:0,reusedPages:0,fullPasses:0},balanceLimit:null,multi:null,notePageBottomReserves:null,notes:null}}function yb(e,t){return [...e].map(([n,r])=>`${n}=${r.flowHeight}`).sort().join(",")}function Sb(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${yb(e.headers)};f:${yb(e.footers)}`:""}function yl(e,t,n){if(e.sectionFurniture)return e.sectionFurniture[t];if(t===n-1)return e.furniture}function Wv(e,t){return e.map((n,r)=>{let o=Lr(n.properties),a=yl(t,r,e.length),i=n.properties.pageNumbering,s=i?`pn:${i.start??""},${i.fmt??""},${i.chapStyle??""},${i.chapSep??""}`:"pn:",l=n.properties.columns,d=`cols:${l.count},${l.gapTwips},${l.equalWidth===false?0:1},${l.separator?1:0};${(l.definitions??[]).map(c=>`${c.widthTwips}/${c.gapTwips}`).join(",")}`;return [n.properties.breakType,o.width,o.height,o.margin.top,o.margin.right,o.margin.bottom,o.margin.left,o.headerDistance??36,o.footerDistance??36,Sb(a),s,d].join(":")}).join("|")}function $v(e,t,n){if(!e)return null;let r=e.multi;if(r&&r.structureKey===t&&r.sections.length===n)return r;let o={structureKey:t,sections:Array.from({length:n},()=>hl()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1};return e.multi=o,o}function Xv(e){return e!=="continuous"}function Vv(e,t){return e.width===t.width&&e.height===t.height}function Yv(e,t){if(t.fragments.length===0&&!t.columnSeparators?.length&&!t.anchoredDrawings?.length)return e;let n=e.anchoredDrawings||t.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...t.anchoredDrawings??[]]):void 0;return {...e,fragments:t.fragments.length>0?[...e.fragments,...t.fragments]:e.fragments,...(e.columnSeparators?.length||t.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...t.columnSeparators??[]]},...n?{anchoredDrawings:n}:{}}}function bb(e,t,n){e.previous=t,e.startLineCounter=0,e.endLineCounter=n,e.keys=[],e.checkpoints=[],e.context="";}var xb=new WeakMap;function Kv(e,t,n,r,o,a){let i=xb.get(e);if(i&&i.globalIndex===t&&i.sheetY===n&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let s=Qa(e,t,n),l=uo([s],r,o,a)[0];return xb.set(e,{globalIndex:t,sheetY:n,pageNumber:r,sectionPageCount:o,format:a,published:l}),l}function Rb(e,t,n,r,o){let{session:a,...i}=r,s=Wv(t,r),l=$v(a,s,t.length),d=i.cache&&i.retainKeys!==false?i.retainKeys??(i.cache.retentionPassDue?.()??true?new Set:false):false,c=()=>{d&&!i.retainKeys&&i.cache?.retain(d);},u=[],f=[],p=[],m=0,g=0,h=0,b=0,x=0,v=0,w=0,O=true,E=null,P="",L=1;for(let H=0;H<t.length;H+=1){let D=t[H],y=e.slice(D.blockStart,D.blockEndExclusive),ee=Lr(D.properties),I=yl(r,H,t.length),M=u.length,j=m,A=l?.spans[H],T=Sb(I);if(y.length===0&&!Xv(D.properties.breakType)){p.push({startIndex:M,pageCount:0,sheetY:j,remappedPages:[]});continue}let z=H>0&&D.properties.breakType==="continuous"&&u.length>0&&O&&E!==null&&Vv(E,ee)&&P===T,F=l?.sections[H],K=D.properties.columns.count>1&&t[H+1]?.properties.breakType==="continuous",W=o(y,n,{...i,retainKeys:d,geometry:ee,furniture:I,sectionColumns:D.properties.columns,...K?{balanceColumns:K}:{},lineCounterStart:g,pageIndexStart:z?M-1:M,...z?{flowStartY:v,spaceBeforeCarry:w}:{},...F?{session:F}:{}});g=W.lineCounter,v=W.endCursorY,w=W.endSpaceAfter,O=W.endsOpenPage,E=ee,P=T,F?(h+=F.stats.placed,b+=F.stats.total):(h+=y.length,b+=y.length);let V=F!==void 0&&F.stats.placed===0&&F.stats.reusedPages===W.pages.length&&A!==void 0&&A.pageCount===W.pages.length,Y=A!==void 0&&A.startIndex===M&&A.sheetY===j&&A.remappedPages.length===W.pages.length,Q=D.properties.pageNumbering,G=Q?.start!==void 0?Q.start:L,U=Q?.fmt,re=A?.remappedPages[0],xe=A===void 0||A.remappedPages.length===0||re?.pageFieldSource!==void 0&&re.pageFieldSource.pageNumber===G&&re.pageFieldSource.sectionPageCount===A.remappedPages.length&&re.pageFieldSource.format===U,ae;if(z){let se=u.length-1,we=u[se],Ie=Yv(we,W.pages[0]);if(Ie!==we){u[se]=Ie;let He=f.lastIndexOf(we);He!==-1&&(f[He]=Ie);}let Se=[];for(let He of W.pages.slice(1)){let je=Qa(He,u.length+Se.length,m);Se.push(je),m=je.box.y+je.box.height+24;}let Be=Se.length+1;ae=uo(Se,G+1,Be,U);for(let He of ae)u.push(He),f.push(He);L=G+Be;}else if(V&&Y&&xe){ae=A.remappedPages,x+=ae.length;for(let se of ae)u.push(se),f.push(se),m=se.box.y+se.box.height+24;L=G+ae.length;}else {let se=[];for(let we of W.pages){let Ie=Kv(we,u.length+se.length,m,G+se.length,W.pages.length,U);se.push(Ie),m=Ie.box.y+Ie.box.height+24;}ae=se;for(let we of ae)u.push(we),f.push(we);L=G+ae.length;}p.push({startIndex:M,pageCount:ae.length,sheetY:j,remappedPages:ae});}if(u.length===0){let H=Lr(t[0]?.properties??Jt),D=o([],n,{...i,retainKeys:d,geometry:H,sectionColumns:t[0]?.properties.columns??Jt.columns});c();let y=qn({revision:n,pages:D.pages});return l&&(l.spans=[],l.previousRemapped=D.pages,l.previousFinalized=y,l.previousPageCount=y.pages.length),a&&(bb(a,y,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),y}let C=qn({revision:n,pages:u}),k=C;if(l?.previousFinalized&&l.previousPageCount===C.pages.length&&l.previousRemapped.length===f.length){let H=l.previousFinalized.pages,D=l.previousRemapped,y=C.pages.map((ee,I)=>f[I]===D[I]&&H[I]?H[I]:ee);k={revision:n,pages:y};}return l&&(l.spans=p,l.previousRemapped=f,l.previousFinalized=k,l.previousPageCount=k.pages.length),a&&(bb(a,k,g),a.stats={placed:h,total:b||1,reusedPages:x,fullPasses:a.stats.fullPasses+(h===b&&x===0?1:0)}),c(),k}function bl(e=6,t=14){let n=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*n(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=t*n(r)*o;return {height:a,baseline:a*.8}}}}var Uv=2;function qv(e,t){if(!t||t.size===0)return "";let n=[],r=o=>{if(o.kind==="paragraph"){let a=t.get(o.id)?.cacheToken;a&&n.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),n.join(";")}var wb=new WeakMap,Pb=new WeakMap;function Du(e){if(e===void 0||e.size===0)return "";let t=Pb.get(e);if(t!==void 0)return t;let n=[...e].join(",");return Pb.set(e,n),n}function Zv(e){let t=Du(e.chrome),n=Du(e.placeholder),r=Du(e.suppressed);return t===""&&n===""&&r===""?"":`${t}|${n}|${r}`}function Jv(e,t){let n=t.chrome?.has(e)??false,r=t.placeholder?.has(e)??false,o=t.suppressed?.has(e)??false;return !n&&!r&&!o?"":`${n?1:0}${r?1:0}${o?1:0}`}var Ib=new WeakMap;function Qv(e,t,n){let r=n.displayMode??gt,o=Fn(e,r),a=wu(e,o).sections,i=ti(e),s={...n,producer:`${n.producer??"unversioned-measurer"}|cc:${i}`,tocFieldChromeParagraphIds:n.tocFieldChromeParagraphIds??pu(e),emptyTocPlaceholderParagraphIds:n.emptyTocPlaceholderParagraphIds??mu(e),emptyTocSuppressedResultParagraphIds:n.emptyTocSuppressedResultParagraphIds??gu(e)},l=n.drawingSourceOrder;!l&&n.inlineDrawingLayout&&(l=Ib.get(n.inlineDrawingLayout),l||(l=(()=>{let p=new Map;return chunkIMMAG4QP_cjs.Va(e).forEach((m,g)=>{p.set(m.drawingNodeId,g);}),p})(),Ib.set(n.inlineDrawingLayout,l)));let d=n.session?Ih(l?{...s,drawingSourceOrder:l}:s,o,n.session):Tr(l?{...s,drawingSourceOrder:l}:s,o),c=p=>{if(a.length>1)return Rb(o,a,t,p,Go);let m=a[0],g=p.geometry??(m?Lr(m.properties):ca),h=yl(p,0,a.length)??p.furniture,b=Go(o,t,{...p,geometry:g,furniture:h,sectionColumns:m?.properties.columns??Jt.columns}),x=m?.properties.pageNumbering,v=xu({revision:b.layout.revision,pages:uo(b.pages,x?.start??1,b.pages.length,x?.fmt)},b.layout),w=qn(v);return p.session&&(p.session.multi=null,p.session.previous=w),w},u=p=>{let m=Su(p,e,i);return n.session&&(n.session.previous=m),m};if(!n.notes)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),u(c(d));let f=db(n.notes,n);return u(lb(e,a,d,f,c))}function vb(e,t,n,r){let o=`line:${e}:${n}:${t}`;return r===void 0?o:`${o}:occ:${r}`}function Er(e,t,n){let r=n.geometry,o=r.width-r.margin.left-r.margin.right,a=Pu(n.sectionColumns??Jt.columns,o);if(n.inlineDrawingLayout&&n.drawingExclusionPass===void 0&&!n.drawingExclusionConverged){let R=Z=>n.drawingSourceOrder?.get(Z),X=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),_=new Map,ie=null,ue=false,pe=new Set,fe=n.session?.previous?.pages;if(fe){_=Fa(fe,n.inlineDrawingLayout,o,R,X),ie=Go(e,t,{...n,drawingExclusionPass:0,drawingExclusionZonesByPage:_});let Z=Fa(ie.pages,n.inlineDrawingLayout,o,R,X);if(ms(_,Z))return ie;_=new Map(Z),pe.add(gs(Z));}for(let Z=0;Z<wr;Z+=1){ie=Go(e,t,{...n,session:void 0,drawingExclusionPass:Z,drawingExclusionZonesByPage:_});let me=Fa(ie.pages,n.inlineDrawingLayout,o,R,X);if(me.size===0){ue=true,_=me;break}let J=gs(me);if(pe.has(J)){ue=true,_=me;break}if(pe.add(J),Z>0&&ms(_,me)){ue=true,_=me;break}_=new Map(me);}if(!ue)for(let Z=0;Z<Uv&&!ue;Z+=1){ie=Go(e,t,{...n,session:void 0,drawingExclusionPass:wr+Z,drawingExclusionZonesByPage:_});let me=Fa(ie.pages,n.inlineDrawingLayout,o,R,X),J=gs(me);if(ms(_,me)||pe.has(J)){ue=true,_=me;break}pe.add(J),_=new Map(me);}if(!ue)throw new vo(`wrap exclusion reflow did not converge within ${wr} passes`);return Go(e,t,{...n,drawingExclusionConverged:true,drawingExclusionZonesByPage:_})}let i=n.measurer,s=n.cache,l=n.styleCascade,d=n.listItems,c=n.defaultTabStopPt,u=n.displayMode??gt,f=u==="all-markup",p=n.tocFieldChromeParagraphIds,m=n.emptyTocPlaceholderParagraphIds,g=n.emptyTocSuppressedResultParagraphIds,h={chrome:p,placeholder:m,suppressed:g},b=Zv(h),x=(n.producer??"unversioned-measurer")+(l?`|sc:${l.cacheToken}`:"")+(n.noteMarks?`|nm:${ym(n.noteMarks)}`:"")+(c!==void 0?`|dts:${c}`:"")+(u===gt?"":`|rev:${u}`),v=a.widths[0],w=n.furniture,O=r.headerDistance??36,E=r.footerDistance??36,P=R=>{let X=0;for(let _ of R?.values()??[])X=Math.max(X,_.flowHeight);return X},L=r.height*.4,C=Math.min(L,Math.max(r.margin.top,w?O+P(w.headers):0)),k=Math.min(L,Math.max(r.margin.bottom,w?E+P(w.footers):0)),H=r.height-C-k,D=n.pageBottomReserves,y=n.session,ee=n.lineCounterStart??0,I=py(w,O,E),M=n.flowStartY??0,j=n.spaceBeforeCarry??0,A=n.pageIndexStart??0,T=D?`|nr:${[...D].map(([R,X])=>`${R}=${X}`).join(",")}`:"",z=n.columnRegionBottom,F=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${z!==void 0?`;bal:${z}`:""}`,K=`${x}|${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${M},${j}${I}${T}${F}`,W=A&1,V=false,Y=null,Q=()=>{V=true;},G=[],U=()=>{let R=Math.max(1,H-(D?.get(G.length)??0));return z!==void 0&&G.length===0?Math.max(1,Math.min(R,z)):R},re=(R,X)=>{let _=R.kind==="paragraph"?n.drawingTokenForParagraph?.(R)??n.drawingLayoutToken??"":R.kind==="table"&&n.drawingTokenForParagraph?ay(R,n.drawingTokenForParagraph):"",ie=R.kind==="table"?qv(R,d):d?.get(R.id)?.cacheToken??"",ue=wb.get(R);if(ue&&ue.contentWidth===X&&ue.producer===x&&ue.drawingToken===_&&ue.listToken===ie)return ue.entry;let pe;if(R.kind==="table")pe={kind:"table",table:R,key:Rr({paragraph:R,properties:[],width:X,producer:x,..._?{drawingToken:_}:{}})};else {let fe=d?.get(R.id),Z=za(R,X,l,fe),{props:me,indent:J,available:Re,alignment:ve,spacing:Te,lineSpacing:ke,contextualSpacing:it,styleId:de,shading:ze,inheritedRunProperties:Ce,markRunProperties:Ae}=Z,hn=pg(R.children.find(lr=>lr.kind==="paragraphProperties"),l),Ue=kd(hn),yn=ya(Z.tabStops,c),xt=yn===Z.tabStops?Z.tabStopsCacheToken:yr(yn);pe={kind:"paragraph",paragraph:R,props:me,indent:J,available:Re,alignment:ve,spacing:Te,lineSpacing:ke,contextualSpacing:it,styleId:de,borders:hn,borderGroupKey:Ue===""?"":`${Ue}@${J.left},${J.right}`,shading:ze,inheritedRunProperties:Ce,markRunProperties:Ae,tabStops:yn,keeps:mg(me),...fe?{listItem:fe}:{},key:Rr({paragraph:R,properties:[...me,...Ce,...Ae,{localName:"tabStops",attributes:{token:xt}},...fe?[{localName:"list",attributes:{token:fe.cacheToken}}]:[]],width:Re,producer:x,..._?{drawingToken:_}:{}})};}return wb.set(R,{contentWidth:X,producer:x,drawingToken:_,listToken:ie,entry:pe}),pe},xe=n.drawingTokenForParagraph===void 0&&n.drawingLayoutToken===void 0?n.drawingLayoutEpoch??"":n.drawingLayoutEpoch??null,ae=y?.prepass,se=ae!=null&&xe!==null&&ae.drawingEpoch===xe&&ae.producer===x&&ae.contentWidth===v&&ae.styleCascade===l&&ae.listItems===d&&ae.tocToken===b&&ae.bodies.length===e.length&&ae.bodies.every((R,X)=>R===e[X]),we=se?ae:Ie();function Ie(){let R=e.map(J=>re(J,v)),X=R.map(J=>J.key),_=R.map(J=>J.kind==="paragraph"&&J.keeps.keepNext),ie=R.map(J=>J.kind==="paragraph"?d?.get(J.paragraph.id)?.markerText:void 0),ue=R.map(J=>J.kind==="paragraph"&&J.contextualSpacing),pe=R.map(J=>J.kind==="paragraph"?J.styleId:null),fe=R.map(J=>J.kind==="paragraph"?J.borderGroupKey:""),Z=b===""?[]:R.map(J=>J.kind==="paragraph"?Jv(J.paragraph.id,h):""),me=yg(X,{contextualSpacingAt:J=>ue[J],styleIdAt:J=>pe[J]??null,borderGroupKeyAt:J=>fe[J],tocVerdicts:Z,markerTextAt:J=>ie[J],keepsNextAt:J=>_[J]});return {bodies:e,producer:x,contentWidth:v,styleCascade:l,listItems:d,drawingEpoch:xe??"",prepared:R,keys:X,paragraphDocumentOrder:Uh(R,v,l,u),keepsNext:_,markerTexts:ie,tocToken:b,flowKeys:me}}y&&xe!==null&&!se&&(y.prepass=we);let{prepared:Se,keys:Be,paragraphDocumentOrder:He,keepsNext:je,flowKeys:ft}=we,zt=()=>{n.retainKeys!==false&&(n.retainKeys===void 0&&s&&!(s.retentionPassDue?.()??true)||Cm(s,n.retainKeys,Be,Se.flatMap(R=>R.kind==="table"?[R.table]:[])));},$e=y?.previous??null,Ht=$e!==null&&y!==void 0&&y.context===K&&(!y.parityDependent||y.startPageParity===W),jt=a.count===1&&Ht,Qe=0;if(Ht){let R=Math.min(ft.length,y.keys.length);for(;Qe<R&&ft[Qe]===y.keys[Qe];)Qe+=1;}let Gt=0;if(jt){let R=Math.min(ft.length,y.keys.length)-Qe;for(;Gt<R&&ft[ft.length-1-Gt]===y.keys[y.keys.length-1-Gt];)Gt+=1;}if(Ht&&Qe===Se.length&&Se.length===y.keys.length){let R=xu({revision:t,pages:$e.pages},$e),X=ee+(y.endLineCounter-y.startLineCounter);return y.previous=R,y.startLineCounter=ee,y.endLineCounter=X,y.startPageParity=W,y.stats={placed:0,total:Se.length,reusedPages:$e.pages.length,fullPasses:y.stats.fullPasses},zt(),{layout:R,pages:R.pages,lineCounter:X,endCursorY:y.endCursorY,endSpaceAfter:y.endSpaceAfter,endsOpenPage:y.endsOpenPage}}let at=[],Bt=0,An=0,Xe=()=>a.lefts[Bt],Le=()=>a.widths[Bt],N=()=>({text:{left:Xe(),width:Le()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),S=()=>at.length>An,B=[],q=[],ne=new Map,$=M,be=M,le=0,_e=ee,Pe=j,Ne=[],et=()=>({pageCount:G.length,pageFragments:[...at],pendingAnchoredDrawings:[...B],deferredAnchoredDrawings:q.length>0?[...q]:mb,anchorPageDeferCounts:ne.size>0?new Map(ne):gb,cursorY:$,lineCounter:_e,previousSpaceAfter:Pe,flowColumnIndex:le}),ht=0,Lt=0,Ge=0,ye=M===0;if(jt&&Qe>0&&Qe<y.checkpoints.length){let R=y.checkpoints[Qe];G.push(...$e.pages.slice(0,R.pageCount)),at=[...R.pageFragments],B=[...R.pendingAnchoredDrawings],q=[...R.deferredAnchoredDrawings],ne.clear();for(let[X,_]of R.anchorPageDeferCounts)ne.set(X,_);$=R.cursorY,le=R.flowColumnIndex,Bt=R.flowColumnIndex,_e=R.lineCounter,Pe=R.previousSpaceAfter,ht=Qe,ye=false,Ge=G.length,Ne.push(...y.checkpoints.slice(0,Qe));}let Ve=R=>({x:0,y:R*(r.height+24),width:r.width,height:r.height}),Ft=R=>w?.titlePage&&R===0?"first":w?.evenAndOddHeaders&&(A+R+1)%2===0?"even":"default",Dn=(R,X,_)=>{if(!w)return;let ie=Ft(X),ue=(R==="header"?w.headers:w.footers).get(ie);if(!ue)return;let pe=Te=>{let ke=R==="header"?_.y+O:_.y+r.height-E-Te.flowHeight;return {kind:R,variant:ie,partName:Te.partName,...Te.part?{part:Te.part}:{},...Te.rId?{rId:Te.rId}:{},box:{x:_.x+r.margin.left,y:ke,width:o,height:Te.flowHeight},fragments:Te.fragments,...Te.anchoredDrawings?{anchoredDrawings:Te.anchoredDrawings}:{}}},fe=A+X+1,Z={pageNumber:fe,pageCount:Math.max(fe,G.length+1),sectionPageCount:X+1},me=ue.pageFieldNeeds,Re=Un(me)||(ue.anchoredDrawings?.length??0)>0?ue.withPageContext(Z):ue,ve=pe(Re);return Un(me)?{...ve,pageFieldProjector:Te=>pe(ue.withPageContext(Te))}:ve},gn=a.count,sr=Xe,Il=R=>Object.freeze({x:a.lefts[le]??0,y:R.y,width:a.widths[le]??v,height:R.height}),vl=()=>Object.freeze({pageNumber:A+G.length+1,onPageParityRead:Q,pageWidth:r.width,pageHeight:r.height,marginLeft:r.margin.left,marginRight:r.margin.right,marginBottom:r.margin.bottom,contentInsetTop:C,contentInsetBottom:k,contentWidth:v,contentHeight:U(),contentBandHeight:H,ownerPartName:n.inlineDrawingLayout?.ownerPartName??chunkIMMAG4QP_cjs.s,storyKind:"body"}),$u=()=>La(vl()),Tl=R=>n.drawingSourceOrder?.get(R),li=R=>{if(R.length===0)return;for(let _ of R)B.some(ie=>ie.drawingNodeId===_.drawingNodeId)||B.push(_.sourceOrder===void 0&&Tl(_.drawingNodeId)!==void 0?Object.freeze({..._,sourceOrder:Tl(_.drawingNodeId)}):_);if(!n.inlineDrawingLayout)return;let X=Qm(B,{pageBottom:U()});if(B.splice(0,B.length,...X.drawings),X.deferred.length>0)for(let _ of X.deferred){let ie=(ne.get(_.drawingNodeId)??0)+1;ne.set(_.drawingNodeId,ie),ie>=cc?B.push(gc(_,"page-defer-exhausted")):q.push(_);}},Xu=()=>{if(q.length===0)return;let R=q.map(X=>pc(X,$-X.y));q=[],li(R);},Nr=()=>{let R=G.length,X=Ve(R),_=Dn("header",R,X),ie=Dn("footer",R,X),{usedBottom:ue,hasBodyPageFields:pe}=Yd(at,be);G.push({id:`page-${R}`,index:R,box:X,contentBox:{x:X.x+r.margin.left,y:X.y+C,width:o,height:H},fragments:at,hasBodyPageFields:pe,...a.separator?{columnSeparators:a.gaps.map((fe,Z)=>({x:a.lefts[Z]+a.widths[Z]+fe/2-.375,y:be,width:.75,height:Math.max(0,ue-be)}))}:{},...B.length>0?{anchoredDrawings:Jm(B)}:{},..._?{header:_}:{},...ie?{footer:ie}:{}}),at=[],B=[],$=0,Bt=0,le=0,be=0,An=0;},ix=(R,X)=>{if(R.kind!=="paragraph"||R.listItem!==void 0||R.shading!==void 0)return false;let{top:_,bottom:ie,left:ue,right:pe,between:fe}=R.borders;if(_??ie??ue??pe??fe)return false;let Z=n.inlineDrawingLayout;return Z&&At(R.paragraph,Z).length>0?false:X.every(me=>me.drawings.length===0&&!me.pageBreakAfter&&!me.columnBreakAfter&&me.spans.every(J=>J.text.length===0))},$o=()=>{if(Bt+1<a.count){Bt+=1,le=Bt,$=be,Pe=0,An=at.length;return}Nr(),Xu();},Vu=R=>nl(R,{measurer:i,producer:x,cache:s,styleCascade:l,...c!==void 0?{defaultTabStopPt:c}:{},...u?{displayMode:u}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},inlineDrawingLayout:n.inlineDrawingLayout,drawingTokenForParagraph:n.drawingTokenForParagraph}),_n={measurer:i,cache:s,producer:x,onCellBreakKey:R=>{Y?.push(R);},nextLineId:(R,X,_,ie)=>(_e+=1,vb(R,X,_,ie)),pageOccurrenceKey:()=>String(G.length),styleCascade:l,listItems:d,...c!==void 0?{defaultTabStopPt:c}:{},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:true,...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:n.drawingLayoutToken?{drawingLayoutToken:n.drawingLayoutToken}:{},...n.inlineDrawingLayout?{anchorFrameBase:vl,pageContentClip:$u,layoutTextboxStoryFor:Vu,publishAnchoredDrawings:li,collectAnchoredDrawings:li,columnBoxForParagraph:Il,pageExclusionZones:()=>n.drawingExclusionZonesByPage?.get(G.length)??Object.freeze([]),paragraphOrderIndex:R=>He.get(R),onAnchorShift:(R,X)=>sc(B,R,X),onAnchorRepublish:(R,X)=>{for(let _=B.length-1;_>=0;_-=1)B[_].anchorParagraphId===R&&B.splice(_,1);B.push(...X);}}:{},borderOwnershipBudget:ks(),vMergeResolveBudget:ru(),displayMode:u},kl=R=>$s(d?.get(R.paragraph.id)??R.listItem,R.indent,i,R.tabStops,R.available),Ol=(R,X,_=0)=>{let ie=R.paragraph.id,pe=!(m?.has(ie)??false)&&((p?.has(ie)??false)||(g?.has(ie)??false)),fe=R.available,Z=sr(),J=(n.drawingExclusionZonesByPage?.get(G.length)??Object.freeze([])).filter(it=>{let de=He.get(R.paragraph.id),ze=He.get(it.anchorParagraphId);if(de!==void 0&&ze!==void 0){if(ze>de)return false}else {let Ce=Se.findIndex(Ae=>Ae.kind==="paragraph"&&Ae.paragraph.id===it.anchorParagraphId);if(Ce<0||Ce>X)return false}return !(gn>1&&it.columnIndex!==le)}),Re=pn(J),ve=n.drawingTokenForParagraph?.(R.paragraph)??n.drawingLayoutToken??(n.inlineDrawingLayout?"drawing":void 0),Te=s&&!pe?Re||ve?Rr({paragraph:R.paragraph,properties:R.props,width:fe,producer:x,...ve?{drawingToken:ve}:{},...Re?{exclusionToken:`${le}|${$.toFixed(3)}|${Re}`}:{},..._>0?{startOffset:_}:{}}):_===0?R.key:`${R.key}|from:${_}`:null,ke=gn>1;return Ss(R.paragraph,ie,R.indent.left,fe,i,s,Te,R.inheritedRunProperties,R.tabStops,void 0,l?(it,de)=>Ln(it,de,l):void 0,{lineSpacing:R.lineSpacing,equationCacheToken:x,firstLineOffset:_===0?kl(R):0,startOffset:_,marginExtent:{left:0,right:R.indent.left+fe+R.indent.right},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:true,displayMode:u,...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},contentLeft:ke?Z:0,contentRight:ke?Z+Le():R.indent.left+fe+R.indent.right,paragraphStartY:$,...J.length>0?{pageExclusionZones:J}:{},...pe?{suppressEmptyPlaceholderLine:true}:{},...l?{themeFonts:l.themeFonts}:{},markRunProperties:R.markRunProperties})},Yu=(R,X)=>(n.drawingExclusionZonesByPage?.get(G.length)??Object.freeze([])).filter(ie=>{let ue=He.get(R.paragraph.id),pe=He.get(ie.anchorParagraphId);if(ue!==void 0&&pe!==void 0){if(pe>ue)return false}else {let fe=Se.findIndex(Z=>Z.kind==="paragraph"&&Z.paragraph.id===ie.anchorParagraphId);if(fe<0||fe>X)return false}return !(gn>1&&ie.columnIndex!==le||ie.anchorParagraphId===R.paragraph.id&&ie.input.mode==="topAndBottom")}),Ku=(R,X,_,ie,ue,pe,fe)=>{let Z=Yu(R,X);if(!n.inlineDrawingLayout||ie<=ue)return Z;let me=Kt(R.paragraph),J=new Map,Re=0;for(let de=ue;de<ie;de+=1){let ze=_[de];for(let Ae of me.values())Ae>=ze.start&&Ae<ze.end&&J.set(Ae,Re);let Ce=fe.get(de)??_[de].exclusionSkipBefore??0;Re+=Ce+_[de].height;}if(J.size===0)return Z;let ve=gn>1,Te=R.available,ke=sr(),it=ps({paragraph:R.paragraph,paragraphId:R.paragraph.id,drawingLayout:n.inlineDrawingLayout,contentLeft:ve?ke:0,contentRight:ve?ke+Le():R.indent.left+Te+R.indent.right,paragraphStartY:pe,anchorLineTopByModelStart:J,columnIndex:le});return Object.freeze([...Z,...it])},sx=(R,X,_,ie,ue,pe,fe,Z)=>{if(n.inlineDrawingLayout){let ve=[...Kt(R.paragraph).values()];if(ve.length>0){let Te=Math.min(...ve);if(fe.end<=Te||ve.some(ke=>ke>=fe.start&&ke<fe.end)&&fe.end<=Te+1)return 0}}let me=Ku(R,X,_,ie,ue,pe,Z),J=me.length>0?Bn($,fe.height,me):0,Re=fe.exclusionSkipBefore??0;return J>.001?J:Re},lx=R=>{let X=Le(),_=Fo(R,X,0,l,u);if(!_||_.rows.length===0)return;let ie=_.columnWidthsPt.reduce((de,ze)=>de+ze,0),ue=()=>_.float?oh(_.float,ie,N()):Xe()+$a(_,Le()),pe=ue();_.float&&_.float.vertAnchor==="text"&&!_.float.ySpec&&($=Math.max(0,Math.min($+_.float.yPt,U())));let fe=[];for(let de of _.rows)if(de.isHeader)fe.push(de);else break;let Z=0,me=$,J=[],Re=new Map,ve=[],Te=()=>{if(J.length===0)return;let de=du(J,_,ve,_n.borderOwnershipBudget,_n.vMergeResolveBudget,void 0,(Ce,Ae)=>{sc(B,Ce,Ae);},_n),ze=de[de.length-1];at.push(Js({kind:"table",id:`${R.id}#f${Z}`,tableId:R.id,fragmentIndex:Z,rows:de,box:{x:pe,y:me,width:_.columnWidthsPt.reduce((Ce,Ae)=>Ce+Ae,0),height:ze.box.y+ze.box.height-me}},_.columnWidthsPt,0,Re)),Z+=1,J=[],ve=[];},ke=de=>{if(fe.length===0)return;let ze=0;for(let Ce of fe)ze+=lu(Ce,_.columnWidthsPt,pe,0,_n,_.cellSpacingPt);if(ze>U()+.001)throw new Dt("table-row-overheight",`Table header group (${fe.length} row(s)) is taller than the page content box`);$+ze>U()+.001&&$>0&&(Te(),$o(),pe=ue(),me=$);for(let Ce of fe){let Ae=Ja(Ce,_.columnWidthsPt,pe,$,de,0,_n,_.cellSpacingPt);if(Ae.bottom>U()+.001)throw new Dt("table-row-overheight",`Table header row ${Ce.id} overflowed the page content box`);J.push(Ae.record),ve.push(Ce),$=Ae.bottom;}},it=de=>{Te(),$o(),pe=ue(),me=$,ke(true);};ke(false);for(let de of _.rows.slice(fe.length)){let ze=lu(de,_.columnWidthsPt,pe,0,_n,_.cellSpacingPt),Ce=au(de),Ae=false,hn=0,Ue=false;for(ze<=U()+.001&&$+ze>U()+.001&&$>0&&(it(),Ue=true);;){if(hn+=1,hn>el)throw new Dt("table-row-fragment-limit",`Table row ${de.id} exceeded ${el} page fragments`);let yn=U()-$;if(yn<=.001&&$>0){if(Ue)throw new Dt("table-row-overheight",`Table row ${de.id} cannot fit after repeated header rows`);it(),Ue=true;continue}if(!Ae&&ze<=yn+.001){let bn=Ja(de,_.columnWidthsPt,pe,$,false,0,_n,_.cellSpacingPt);if(bn.bottom>U()+.001)throw new Dt("table-row-overheight",`Table row ${de.id} overflowed the page content box after placement`);J.push(bn.record),ve.push(de),$=bn.bottom;break}if(de.cantSplit||de.height.rule==="exact"){if($>0&&!Ue){it(),Ue=true;continue}throw new Dt("table-row-overheight",de.height.rule==="exact"?`Table row ${de.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${de.id} has w:cantSplit and is taller than the available page content`)}let xt=su(de,_.columnWidthsPt,pe,$,U(),false,Ae,0,_n,Ce,_.cellSpacingPt);if(!xt.fitted&&$>0&&!Ue){it(),Ue=true;continue}if(!xt.fitted)throw new Dt(xt.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",xt.nestedSplitBlocked?`Table row ${de.id} contains a nested table taller than the page content box`:`Table row ${de.id} has content that cannot fit a page content box`);if(xt.bottom>U()+.001)throw new Dt("table-row-overheight",`Table row ${de.id} overflowed the page content box`);let lr=xt.remainder!==null,Ar=ey(de,Ae,lr);if(J.push(xt.record),ve.push(Ar),$=xt.bottom,!lr)break;Ce=xt.remainder,Ae=true,Ue=false,it();}}Te();},zn=false,Cl=Se.length,Bl=0;for(let R=ht;R<Se.length;R+=1){let X=re(e[R],Le());if(Ne[R]=et(),jt&&Gt>0&&R>=Se.length-Gt){let oe=y.checkpoints[R+(y.keys.length-Se.length)];if(oe&&oe.cursorY===$&&oe.previousSpaceAfter===Pe&&oe.flowColumnIndex===le&&pb(oe.pageFragments,at)&&Nu(oe.pendingAnchoredDrawings,B)&&Nu(oe.deferredAnchoredDrawings,q)&&hb(oe.anchorPageDeferCounts,ne)){let ce=G.length-oe.pageCount;if(my({delta:ce,titlePage:w?.titlePage===true,evenAndOddHeaders:w?.evenAndOddHeaders===true,parityDependent:y.parityDependent,usedPageParity:V,markPageCount:oe.pageCount,hasNoteReserves:D!==void 0,hasExclusionZones:(n.drawingExclusionZonesByPage?.size??0)>0})){let kt=ce===0?$e.pages.slice(oe.pageCount):$e.pages.slice(oe.pageCount).map((yt,Qt)=>Qa(yt,G.length+Qt,Ve(G.length+Qt).y));G.push(...kt),Ge+=kt.length,zn=true,Cl=R,Bl=ce,_e+=y.endLineCounter-oe.lineCounter;break}}}if(Lt+=1,X.kind==="table"){Pe=0,Y=[];try{lx(X.table),Om(X.table,Y);}finally{Y=null;}continue}let{paragraph:_,props:ie,spacing:ue,contextualSpacing:pe,styleId:fe,borders:Z,shading:me,keeps:J}=X,{indent:Re,alignment:ve,markRunProperties:Te}=X,ke=X.available,it=R>0?Se[R-1]:void 0,de=Se[R+1],ze=oe=>oe?.kind==="paragraph"&&oe.styleId===fe&&fe!==null,Ce=pe?{before:ze(it)?0:ue.before,after:ze(de)?0:ue.after}:ue,Ae=d?.get(_.id)??X.listItem,hn=kl(X),Ue=_.id,yn=X.borderGroupKey,xt=oe=>yn!==""&&oe?.kind==="paragraph"&&oe.borderGroupKey===yn,lr=xt(it),Ar=xt(de),bn=lr?void 0:Z.top,Dr=Ar?Z.between:Z.bottom,dr=Vn(bn),tf=Vn(Dr);wd(ie)&&(at.length>0||G.length===0)&&(Nr(),Pe=0);let tt=Ol(X,R);if(tt.length===0)continue;let cx=ll(_)!==void 0&&ix(X,tt),nf=()=>cx&&z===void 0&&Bt+1>=a.count,Ll=oe=>{let ce=re(_,Le());ce.kind==="paragraph"&&(Re=ce.indent,ve=ce.alignment,ke=ce.available,Te=ce.markRunProperties,hn=oe===0?kl(ce):0,tt=[...Ol(ce,R,oe)]);};{let oe=ao(Ce.before,Pe),ce=Te.length===0?ln:Me(Te,l?.themeFonts),pt=tt.length<=1?tf+Ce.after:0,kt=$+oe+dr,yt=Ku(X,R,tt,0,0,kt,new Map),Qt=tt[0]?ag(kt,tt[0],yt,pt):i.lineMetrics(ce).height+pt,jn=oe+dr+Qt;if(J.keepNext&&!je[R-1]){let nt=hg(Se,R,Pe,xn=>{let en=Se[xn];return en?.kind==="paragraph"?Ol(en,xn).map(Wt=>Wt.height):[]});nt!==null&&nt+dr<=U()&&(jn=Math.max(jn,nt+dr));}$+jn>U()&&$>0&&!nf()&&($o(),Pe=0,Ll(0));}let ux=$===0&&!S(),Fl=Od(Ce.before,Pe,ux,ye);Fl>0&&($+=Fl),dr>0&&($+=dr),ye=false;let cr=0,Fe=[],rf=tt[0]?.start??0,_r=Fl,ur=dr,El=false,Xo=$,of=0,di=new Map;Pe=0;let af=n.inlineDrawingLayout!==void 0&&At(X.paragraph,n.inlineDrawingLayout).length>0,sf=false,Ml=null,fx=yo(X.paragraph),lf=Is(X.paragraph),df=lf?Hs(lf):null,px=()=>{let oe=Fe[0];if(!oe)return 0;let ce=of;if(ce<=.001)return 0;let pt=Bn(Xo,oe.box.height,Yu(X,R));return Math.max(0,ce-pt)},ci=oe=>{if(Fe.length===0)return;let ce=Xe(),pt=sr(),kt=Fe[0].box.y,yt=kt-_r-ur,Qt=Fe[Fe.length-1].box.y+Fe[Fe.length-1].box.height,jn=oe?Ce.after:0,nt=[],xn,en=kt,Wt=Qt,Gn=Z.left?wt(Z.left):0,Yo=Z.right?wt(Z.right):0,zr=Z.left?ce+Re.left-Z.left.spacePt-Gn:ce+Re.left,Al=Z.right?ce+Re.left+ke+Z.right.spacePt+Yo:ce+Re.left+ke,Hr=Math.max(Al-zr,0);if(ur>0&&bn){let lt=wt(bn),tn=kt-bn.spacePt-lt;nt.push({side:"top",edge:bn,box:{x:zr,y:tn,width:Hr,height:lt}}),en=tn;}if(oe&&Dr){let lt=wt(Dr),tn=Qt+Dr.spacePt,Wn={x:zr,y:tn,width:Hr,height:lt};nt.push({side:Ar?"between":"bottom",edge:Dr,box:Wn}),Ar||(xn={edge:Dr,box:Wn}),Wt=tn+lt;}oe&&($=Math.max($,Wt+jn));let jr=Math.max(Wt+jn-yt,0),Oe=lr&&cr===0?yt:en,Sn=Ar&&oe?yt+jr:Wt,Gr=Math.max(Sn-Oe,0);if(Z.left&&nt.push({side:"left",edge:Z.left,box:{x:ce+Re.left-Z.left.spacePt-Gn,y:Oe,width:Gn,height:Gr}}),Z.right&&nt.push({side:"right",edge:Z.right,box:{x:ce+Re.left+ke+Z.right.spacePt,y:Oe,width:Yo,height:Gr}}),Z.bar){let lt=wt(Z.bar);nt.push({side:"bar",edge:Z.bar,box:{x:ce+Re.left-Z.bar.spacePt-lt,y:kt,width:lt,height:Math.max(Qt-kt,0)}});}let Wr=df?js(Fe,df):null,$r=cr===0?Xs(Ae,i,Fe[0]?{y:Fe[0].box.y,height:Fe[0].box.height}:void 0):void 0,ui=$r?{...$r,box:{...$r.box,x:$r.box.x+ce}}:void 0;if(at.push({kind:"paragraph",id:`${Ue}#f${cr}`,paragraphId:Ue,fragmentIndex:cr,range:Wr?Wr[Wr.length-1].range:{paragraphId:Ue,start:rf,end:Fe[Fe.length-1].range.end},props:ie,spacing:{before:_r,after:jn},indent:Re,...xn?{bottomBorder:xn}:{},...nt.length>0?{borders:nt}:{},...me===void 0?{}:{shading:me,shadingBox:Z.left||Z.right?{x:zr,y:en,width:Hr,height:Math.max(Wt-en,0)}:ga(Fe,ce+Re.left,ke)},tabStops:X.tabStops,...ui?{marker:ui}:{},...oe&&f?ns(fx,Oa(X.paragraph)):{},lines:Wr??Fe,box:{x:pt+Re.left,y:yt,width:ke,height:jr}}),n.inlineDrawingLayout&&af&&!sf){sf=true;let lt=[...Kt(X.paragraph).values()],tn=lt.length>0&&lt.every(Ot=>Fe.some(fr=>Ot>=fr.range.start&&Ot<fr.range.end)),Wn,fi,Dl;if(tn){let Ot=yt-px();Wn=Fe,fi={x:pt+Re.left,y:Ot,width:ke,height:jr},Dl=Il({x:pt+Re.left,y:Ot,height:jr});}else {let Ot=Ml??{columnX:pt,columnWidth:Le(),startY:yt},fr=Ot.startY;Wn=tt.map(($t,mx)=>{let gx={id:`anchor-line-${mx}`,range:{paragraphId:Ue,start:$t.start,end:$t.end},box:{x:Ot.columnX+Re.left,y:fr,width:ke,height:$t.height},contentX:$t.spans.length>0?$t.spans[0].box.x+Ot.columnX:Ot.columnX+Re.left,baseline:$t.baseline,leading:$t.leading,trailingSpacing:$t.trailingSpacing,spans:$t.spans.map(_l=>({..._l,box:{..._l.box,x:_l.box.x+Ot.columnX,y:fr}}))};return fr+=$t.height+($t.exclusionSkipBefore??0),gx});let cf=Ot.startY;fi={x:Ot.columnX+Re.left,y:cf,width:ke,height:Math.max(fr-cf,Fe[0]?.box.height??0)},Dl=Il(fi);}li(Io({paragraph:X.paragraph,paragraphId:Ue,paragraphBox:fi,lines:Wn,drawingLayout:n.inlineDrawingLayout,frameBase:vl(),columnBox:Dl,cellBox:null,pageClip:$u(),measurer:i,sourceOrderOf:Tl,layoutTextboxStory:Vu}));}cr+=1,rf=Fe[Fe.length-1].range.end,Fe=[],_r=0,ur=0;},Hn=0,Nl=0,Vo=tt.length+8;for(let oe=0;oe<tt.length;oe+=1){let ce=tt[oe],pt=oe===tt.length-1,kt=pt?tf+Ce.after:0;oe===Hn&&(Xo=$,af&&Ml===null&&cr===0&&(Ml=Object.freeze({columnX:sr(),columnWidth:Le(),startY:Xo})));let yt=sx(X,R,tt,oe,Hn,Xo,ce,di),Qt=yt+Math.max(0,ce.height-ce.trailingSpacing)+kt;if($+Qt>U()&&!nf()&&(Fe.length>0||at.length>0||G.length>0)){let Oe=!S(),Sn=Nl<Vo?gg(oe,Hn,tt.length,J,Oe):oe,Gr=Sn<oe;for(let lt=oe;lt>Sn;lt-=1){Fe.pop();let tn=tt[lt-1],Wn=di.get(lt-1)??tn.exclusionSkipBefore??0;di.delete(lt-1),$-=tn.height+Wn,_e-=1;}let Wr=Gr&&Fe.length===0&&cr===0,$r=tt[Sn].start,ui=Le();if(ci(false),$o(),_r=0,Wr?$=ur:ur=0,Le()!==ui){Ll($r),Vo=Math.max(Vo,tt.length+8),Hn=0,Gr&&(Nl+=1),oe=-1;continue}if(Hn=Sn,Xo=$,Gr){Nl+=1,oe=Sn-1;continue}}let nt=sr();di.set(oe,yt),$+=yt;let xn=nt+Re.left+(oe===0?hn:0),en=Math.max(1,ke-(oe===0?hn:0)),Wt=ce.spans.map(Oe=>({...Oe,range:{...Oe.range,paragraphId:Ue},box:{...Oe.box,x:Oe.box.x+nt,y:$}})),Gn=bs(Wt,i,xn,en,ve,pt,ve==="center"||ve==="right"?ce.width:void 0),Yo=Wt.length>0&&Gn.length>0?Gn[0].box.x-Wt[0].box.x:ve!=="left"&&ve!=="both"?(()=>{let Oe=en-ce.width;return Oe<=0?0:ve==="center"?Oe/2:Oe})():0,zr=Object.freeze({x:0,y:0,width:v,height:U()}),Al=ce.drawings.map(Oe=>{let Sn=Object.freeze({...Oe,paragraphId:Ue,x:nt+Oe.x,y:$+Oe.y,advanceStart:Oe.advanceStart+nt,advanceEnd:Oe.advanceEnd+nt,paintBounds:Object.freeze({...Oe.paintBounds,x:nt+Oe.paintBounds.x,y:$+Oe.paintBounds.y}),hitBounds:Object.freeze({...Oe.hitBounds,x:nt+Oe.hitBounds.x,y:$+Oe.hitBounds.y})});return fs(Sn,zr)}),Hr=xs(Al,Yo),jr={id:vb(_.id,ce.start,oe),range:{paragraphId:Ue,start:ce.start,end:ce.end},spans:Gn,box:{x:sr()+Re.left,y:$,width:ke,height:ce.height},contentX:Gn[0]?.box.x??xn+Yo,baseline:ce.baseline,leading:ce.leading,trailingSpacing:ce.trailingSpacing,...ce.deletedRanges?{deletedRanges:ce.deletedRanges}:{},...Hr.length>0?{drawings:Hr}:{}};if(_e+=1,Fe.length===0&&(of=yt),Fe.push(jr),$+=ce.height,ce.columnBreakAfter){let Oe=Le();if(ci(pt),$o(),_r=0,ur=0,El=true,!pt&&Le()!==Oe){Ll(ce.end),Vo=Math.max(Vo,tt.length+8),Hn=0,oe=-1;continue}Hn=oe+1;}else ce.pageBreakAfter&&(ci(pt),Nr(),_r=0,ur=0,El=true,Hn=oe+1);}ci(true),Pe=El?0:Ce.after;}zn||(Ne[Se.length]=et());let Uu=zn&&y?y.endCursorY:$,qu=zn&&y?y.endSpaceAfter:Pe,Zu=!zn&&(at.length>0||G.length===0),Ju=zn&&y?y.endsOpenPage:Zu;Zu&&Nr();let Qu=0,dx=cc*4+8;for(;(B.length>0||q.length>0)&&Qu<dx;)Qu+=1,B.length===0&&Xu(),Nr();q.length>0&&(B.push(...q.map(R=>gc(R,"page-defer-exhausted"))),q=[],Nr()),zt();let ef={revision:t,pages:G};if(y){y.previous=ef,y.checkpoints=zn?[...Ne.slice(0,Cl),...y.checkpoints.slice(Cl+(y.keys.length-Se.length)).map(X=>Bl===0?X:{...X,pageCount:X.pageCount+Bl})]:Ne,y.keys=ft,y.context=K;let R=V||w?.evenAndOddHeaders===true;y.parityDependent=ht===0&&!zn?R:y.parityDependent||R,y.startPageParity=W,y.startLineCounter=ee,y.endLineCounter=_e,y.endCursorY=Uu,y.endSpaceAfter=qu,y.endsOpenPage=Ju,y.stats={placed:Lt,total:Se.length,reusedPages:Ge,fullPasses:y.stats.fullPasses+(ht===0?1:0)};}return {layout:ef,pages:G,lineCounter:_e,endCursorY:Uu,endSpaceAfter:qu,endsOpenPage:Ju}}function Tb(e,t,n){let r=t.lefts.map(()=>n);for(let o of e.fragments){let a=0;for(let i=t.count-1;i>=0;i-=1)if(o.box.x+.5>=t.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var eT=.25,tT=20;function Go(e,t,n){let r=Pu(n.sectionColumns??Jt.columns,n.geometry.width-n.geometry.margin.left-n.geometry.margin.right);if(!n.balanceColumns||r.count<2||n.columnRegionBottom!==void 0)return n.session&&(n.session.balanceLimit=null),Er(e,t,n);let o=n.session,a=n.flowStartY??0,{session:i,...s}=n,l=h=>{let b=h.pages[0],x=b?Math.max(...Tb(b,r,a)):h.endCursorY;return o&&(o.endCursorY=x),{...h,endCursorY:x}};if(o&&o.balanceLimit!==null){let h=o.balanceLimit,b=Er(e,t,{...n,columnRegionBottom:h});if(o.stats.placed===0&&o.stats.reusedPages===b.pages.length)return o.balanceLimit=h,l(b)}let d=Er(e,t,s);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),Er(e,t,n);let c=Tb(d.pages[0],r,a),u=c.reduce((h,b)=>h+Math.max(0,b-a),0);if(u<=0)return o&&(o.balanceLimit=null),Er(e,t,n);let f=a+u/r.count,p=Math.max(...c)+.01,m=h=>{try{let b=Er(e,t,{...s,columnRegionBottom:h});return b.pages.length===1&&b.endsOpenPage}catch{return false}};for(let h=0;h<tT&&p-f>eT;h+=1){let b=(f+p)/2;m(b)?p=b:f=b;}let g=Er(e,t,{...n,columnRegionBottom:p});return o&&(o.balanceLimit=p),l(g)}var Bb="Calibri, Carlito, Helvetica, Arial, sans-serif",GE=new Map([["calibri","Carlito"]]),nT=65536,rT=256;function kb(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 Ob(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 Cb=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function Lb(e=null){return e!=null&&typeof e.measureText=="function"}function Fb(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??Bb,r=e.context??null;if(!Lb(r))return null;let o=r,a=Ob(kb(e.maxWidthEntries,nT)),i=Ob(kb(e.maxMetricsEntries,rT)),s=e.fontAlias,l=c=>{let u=c.fontFamily&&Cb.test(c.fontFamily)?c.fontFamily:null,f=u?s?.(u):void 0,p=f&&Cb.test(f)?f:null,m=u?p?`"${p}", "${u}", ${n}`:`"${u}", ${n}`:n,g=c.bold?"bold":"normal",h=c.italic?"italic":"normal",b=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*t;return `${h} ${g} ${b}px ${m}`},d=(c,u,f)=>c/t*(f.horizontalScalePercent/100)+u.length*f.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let f=l(u),p=`${f}\0${c}`,m=a.get(p);if(m!==void 0)return d(m,c,u);o.font=f;let g=o.measureText(c).width;return a.set(p,g),d(g,c,u)},lineMetrics(c){let u=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75),f=l(c),p=i.get(f);if(p)return p;let m=u*1.15,g=u*.8;o.font=f;let h=o.measureText("Hxg"),b=h.fontBoundingBoxAscent,x=h.fontBoundingBoxDescent;if(typeof b=="number"&&Number.isFinite(b)&&b>0&&(g=b/t,typeof x=="number"&&Number.isFinite(x)&&x>=0)){let w=(b+x)/t;w>0&&(m=w);}m>0||(m=u*1.15);let v={height:m,baseline:g};return i.set(f,v),v}}}function oT(e=1,t={}){let n=Fb({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:bl(),producer:"fixed-measurer"}}function aT(e){return e.box}function Eb(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)Eb(o,t);}function iT(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkIMMAG4QP_cjs.he*4)){for(let s of o.children)if(s.kind!=="textValue"){if(s.kind==="paragraph"){for(let l of r)t.get(l)?.push(s.id);n(s,s.id,i+1);continue}if(s.kind==="contentControl"){t.set(s.id,[]),r.push(s.id);let l=chunkIMMAG4QP_cjs.re(s);l&&n(l,a,i+1),r.pop();let d=t.get(s.id);d&&d.length===0&&a!==null&&d.push(a);continue}n(s,a,i+1);}}},r=[];return n(e,null,0),t}function sT(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 lT(e,t){let n=chunkIMMAG4QP_cjs.ve(e.root);if(n.length===0)return dT;let r=new Map;t.pages.forEach((i,s)=>{(d=>{for(let c of d){let u=new Set;Eb(c,u);for(let f of u){let p=r.get(f)??[];p.push({pageIndex:s,box:aT(c)}),r.set(f,p);}}})(i.fragments);});let o=iT(e.root),a=[];for(let i of n){let s=chunkIMMAG4QP_cjs.te(i.node),l=[...i.ancestors.map(f=>chunkIMMAG4QP_cjs.te(f).lock),s.lock],d=o.get(i.node.id)??[],c=new Map;for(let f of d)for(let p of r.get(f)??[]){let m=c.get(p.pageIndex);c.set(p.pageIndex,m?sT(m,p.box):p.box);}let u=[...c.entries()].sort((f,p)=>f[0]-p[0]).map(([f,p])=>({pageIndex:f,...p}));a.push({controlId:i.node.id,type:s.type,level:chunkIMMAG4QP_cjs.ue(i.node),depth:i.depth,lock:s.lock,effectiveLock:chunkIMMAG4QP_cjs.ye(l),showingPlaceholder:s.showingPlaceholder,temporary:s.temporary,...s.tag===void 0?{}:{tag:s.tag},...s.alias===void 0?{}:{alias:s.alias},...s.id===void 0?{}:{id:s.id},...s.dataBinding===void 0?{}:{dataBinding:s.dataBinding},paragraphIds:d,fragments:u});}return a}var dT=Object.freeze([]);function Nb(e,t,n){let r=e.lines?.find(o=>{let a=o.spans;if(!a)return n<o.range.end;let i=a.filter(s=>s.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 ST(e,t){let n=new Map;for(let r of e.pages)for(let[o,a]of RT(r,t))n.has(o)||n.set(o,a);return n}var Mb=new WeakMap;function RT(e,t){let n=Mb.get(t);n||(n=new WeakMap,Mb.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 s of a.lines??[])for(let l of s.spans??[])i.add(l.range.paragraphId);for(let s of i)o.has(s)||o.set(s,{pageIndex:e.index,contentY:e.contentBox.y,fragmentY:a.box.y,...a.lines?{lines:a.lines}:{}});}return n.set(e,o),o}function wT(e,t){let n=chunkIMMAG4QP_cjs.vg(e);if(!n)return null;let r=t.get(n.start.paragraphId);return r?{pageIndex:r.pageIndex,y:r.contentY+Nb(r,n.start.paragraphId,n.start.offset)}:null}var Ab=e=>e.verticalAlign==="baseline"?1:.75;function _u(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function PT(e){let{shaper:t,resolveFont:n,fallback:r,shapingLibrary:o,unicodeDataVersion:a,fixedPointScale:i=1e3,script:s="Latn",language:l="en"}=e,d=new WeakMap,c=new WeakMap,u=new WeakMap,f=g=>{let h=u.get(g);if(h!==void 0)return h;let b=n(g);return u.set(g,b),b},p=(g,h)=>{let b=d.get(g);b||(b=new Map,d.set(g,b));let x=b.get(h);return x||(x=new Map,b.set(h,x)),x},m=(g,h,b)=>t.shape({text:g,fontSizeHalfPoints:_u(b),bidiLevel:0,environment:mr({font:h,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:s,language:l,direction:"ltr",features:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})});return {measure(g,h){if(g.length===0)return 0;let b=f(h);if(!b)return r.measure(g,h);let x=p(b,_u(h)),v=x.get(g);if(v===void 0){let w=0;try{for(let O of m(g,b,h).glyphs)w+=O.advanceX;}catch{return r.measure(g,h)}v=w/i,x.set(g,v);}return v*Ab(h)*(h.horizontalScalePercent/100)+g.length*h.characterSpacingPt},lineMetrics(g){let h=f(g);if(!h)return r.lineMetrics(g);let b=Ab(g),x=c.get(h);x||(x=new Map,c.set(h,x));let v=_u(g),w=x.get(v);if(w)return b===1?w:{height:w.height*b,baseline:w.baseline*b};let O,E=true;try{let P=m(" ",h,g),L=P.metrics.ascent/i,C=P.metrics.descent/i,k=L+C;k>0?O={height:k,baseline:L}:(O=r.lineMetrics(g),E=!1);}catch{O=r.lineMetrics(g),E=false;}return E?(x.set(v,O),b===1?O:{height:O.height*b,baseline:O.baseline*b}):O}}}function IT(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let l of t.pages)r.add(l.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,s=-1;for(let l of t.pages){let d=l.box.y;d+l.box.height>=n.top&&d<=a&&(i===-1&&(i=l.index),s=l.index);}if(i===-1){let l=vT(t,n.top);l!==null&&(i=l,s=l);}if(i!==-1){let l=Math.max(0,i-o),d=Math.min(t.pages.length-1,s+o);for(let c=l;c<=d;c+=1)r.add(c);}for(let l of e.pinnedPages??[])l>=0&&l<t.pages.length&&r.add(l);return r}function vT(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 Db=["text-local","paragraph-local","flow-structural","global"];function _b(e,t){return Db.indexOf(t)>Db.indexOf(e)?t:e}function TT(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function kT(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,s=null,l=0,d=0;function c(h){let b=e.runCooperatively;if(!b)return t(h);let x=b(h);s=x;try{for(;;){let v=x.step();if(v)return v;if(n()!==h.revision)return x.cancel(),d+=1,null;if(s!==x)return null}}finally{s===x&&(s=null);}}function u(h){let b=p(n());b.impact=_b(b.impact,h.impact),b.structural=b.structural||h.structural;for(let x of h.paragraphIds)b.paragraphIds.add(x);for(let x of h.created)b.created.add(x);for(let x of h.deleted)b.deleted.add(x);for(let x of h.dependencyKeys)b.dependencyKeys.add(x);}let f=h=>({impact:h.impact,paragraphIds:h.paragraphIds,created:h.created,deleted:h.deleted,dependencyKeys:h.dependencyKeys,structural:h.structural,revision:h.revision});function p(h){return a||(a=TT(h)),a.revision=Math.max(a.revision,h),a}function m(){!o||i||(i=o(()=>{i=null,g();}));}function g(){i&&(i(),i=null),s&&(s.cancel(),s=null,d+=1);let h=a;if(!h)return false;a=null;let b=f(h),x=c(b);return !x||x.revision!==n()?(l+=1,u(b),m(),false):(r(x,b),true)}return {notify(h){let b=p(n());b.impact=_b(b.impact,h.impact);for(let x of h.dirty)b.paragraphIds.add(x);for(let x of h.created)b.created.add(x),b.paragraphIds.add(x);for(let x of h.deleted)b.deleted.add(x),b.paragraphIds.add(x);for(let x of h.dependencyKeys)b.dependencyKeys.add(x);for(let x of h.splitJoin)b.structural=true,"split"in x?(b.paragraphIds.add(x.split.from),b.paragraphIds.add(x.split.tail)):(b.paragraphIds.add(x.join.kept),b.paragraphIds.add(x.join.removed));(h.impact==="flow-structural"||h.impact==="global")&&(b.structural=true),m();},invalidateAll(h,b){let x=p(h);x.impact="flow-structural",x.structural=true,b&&x.dependencyKeys.add(b),m();},flush:g,pending:()=>a?f(a):null,cancel(){i?.(),i=null,s?.cancel(),s=null,a=null;},get staleDiscards(){return l},get cancelledRuns(){return d}}}function Mr(e,t,n,r){let o=r?r.spans:e.spans;for(let i of r?r.drawings:e.drawings??[]){if(t===i.start)return i.advanceStart;if(t===i.start+1)return i.advanceEnd}let a=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let i of o){if(t<=i.range.start)return i.box.x;if(t>=i.range.end){a=i.box.x+i.box.width;continue}return Zs(i,t,n)}return a}function zb(e,t,n){let r=zu(t,n);if(!r)return [];let o=[];for(let a of e.pages)for(let i of Ke(a))for(let s of i.lines)for(let l of ut(s)){let d=No(e,l,r.from,r.to);if(!d)continue;let c=Mr(s,d.start,void 0,l),u=Mr(s,d.end,void 0,l);o.push({pageIndex:a.index,x:Math.min(c,u),y:s.box.y,width:Math.abs(u-c),height:s.box.height});}return o}function Hb(e,t,n){let r=new Map;if(t.length===0)return r;for(let o of e.pages)if(!(n&&!n.has(o.index)))for(let a of Ke(o))for(let i of a.lines)for(let s of ut(i))for(let l of t){let d=No(e,s,l.from,l.to);if(!d)continue;let c=Mr(i,d.start,void 0,s),u=Mr(i,d.end,void 0,s),f=r.get(l.key)??[];f.push({pageIndex:o.index,x:Math.min(c,u),y:i.box.y,width:Math.abs(u-c),height:i.box.height}),r.set(l.key,f);}return r}function Hu(e){let t=new Map;for(let n=0;n<e.length;n+=1){let r=e[n].position,o=t.get(r.paragraphId);o||(o=new Map,t.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,n);}return {stops:e,index:t}}var xl=class{#t=new WeakMap;#s=new WeakMap;get(t,n,r,o){let a;if(!r)a=this.#t.get(t)??new Map,this.#t.has(t)||this.#t.set(t,a);else {let l=this.#s.get(t);l||(l=new WeakMap,this.#s.set(t,l)),a=l.get(r)??new Map,l.has(r)||l.set(r,a);}let i=a.get(n);if(i)return i;let s=o();return a.set(n,s),s}};function jb(e){let t=[],n=new Set;for(let r of e)n.has(r.lineId)||(n.add(r.lineId),t.push(r.lineId));return t}function Gb(e,t,n){let r=null;for(let o of e)o.lineId===t&&(!r||Math.abs(o.x-n)<Math.abs(r.x-n))&&(r=o);return r}function ai(e,t){let n=null;for(let r of e)r.position.paragraphId===t.paragraphId&&(!n||Math.abs(r.position.offset-t.offset)<Math.abs(n.position.offset-t.offset))&&(n=r);return n}function ju(e,t,n){let r=null;for(let o of e){if(o.position.paragraphId!==t.paragraphId)continue;let a=o.position.offset;n===1?a>t.offset&&(!r||a<r.position.offset)&&(r=o):a<t.offset&&(!r||a>r.position.offset)&&(r=o);}return r}function Wb(e,t,n){let r=n.index.get(e.paragraphId)?.get(e.offset),o=r===void 0?ai(n.stops,e):n.stops[r];if(!o)return null;let a=o.lineId,i=n.stops.filter(s=>s.lineId===a);return (t===-1?i[0]:i[i.length-1])?.position??null}function $b(e,t,n,r,o){let a=o(e.paragraphId),i=a.index.get(e.paragraphId)?.get(e.offset);if(i===void 0){let c=ju(a.stops,e,t);if(c)return {position:c.position,desiredX:null}}else {let c=i+t;if(c>=0&&c<a.stops.length)return {position:a.stops[c].position,desiredX:null}}let s=n[r+t];if(!s)return {position:e,desiredX:null};let l=o(s).stops,d=t===-1?l[l.length-1]:l[0];return d?{position:d.position,desiredX:null}:null}function Xb(e,t,n){let r=e===-1?t[0]:t[t.length-1];if(!r)return null;let o=n(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function Vb(e,t,n,r,o,a){let i=a(e.paragraphId),s=i.index.get(e.paragraphId)?.get(e.offset),l=s===void 0?ai(i.stops,e):i.stops[s];if(!l)return null;let d=n??l.x,c=jb(i.stops),u=c.indexOf(l.lineId),f=c[u+t];if(f){let m=Gb(i.stops,f,d);return m?{position:m.position,desiredX:d}:null}for(let m=o+t;m>=0&&m<r.length;m+=t){let g=a(r[m]),h=jb(g.stops),b=t===-1?h[h.length-1]:h[0];if(!b)continue;let x=Gb(g.stops,b,d);if(x)return {position:x.position,desiredX:d}}let p=t===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}var Yb=new WeakMap,Kb=new WeakMap;function _t(e){let t=Yb.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let[o,a]of OT(r)){let i=n.get(o);i?i.push(...a):n.set(o,[...a]);}return Yb.set(e,n),n}function OT(e){let t=Kb.get(e);if(t)return t;let n=new Map,r=(a,i)=>{for(let s of ut(a)){let l={line:a,pageIndex:i},d=n.get(s.paragraphId);d?d.push(l):n.set(s.paragraphId,[l]);}},o=(a,i)=>{let s=l=>{for(let d of l){if(d.kind==="paragraph"){for(let c of d.lines)r(c,i);continue}for(let c of d.rows)if(!c.isHeaderRepeat)for(let u of c.cells)s(u.blocks);}};s(a);};for(let a of Ke(e))for(let i of a.lines)r(i,e.index);e.header&&o(e.header.fragments,e.index),e.footer&&o(e.footer.fragments,e.index);for(let a of [e.footnotes,e.endnotes])if(a)for(let i of a.notes)o(i.fragments,e.index);return Kb.set(e,n),n}function pM(e,t,n){let r=_t(e).get(t);if(r&&r.length>0){let o=sa(e,t,n,r.map(a=>a.line));if(o)return o}return sa(e,t,n)}var Ub=new WeakMap;function Gu(e,t){let n=Ub.get(e);n||(n=new Map,Ub.set(e,n));let r=n.get(t);if(r)return r;let o=[];for(let{line:i}of _t(e).get(t)??[])if(i.range.paragraphId===t)for(let s of i.deletedRanges??[])o.push({start:s.start,end:s.end});o.sort((i,s)=>i.start-s.start);let a=[];for(let i of o){let s=a[a.length-1];s&&i.start<=s.end?s.end=Math.max(s.end,i.end):a.push(i);}return n.set(t,a),a}function qb(e,t){for(let n of e)if(t>n.start&&t<n.end)return true;return false}function Zb(e,t){for(let n of Gu(e,t.paragraphId))if(t.offset>n.start&&t.offset<n.end)return {paragraphId:t.paragraphId,offset:n.end};return t}var CT=/[\p{L}\p{N}_'\u2019]/u;function ii(e,t,n){let r=a=>{let i=e[a];return i!==void 0&&CT.test(i)},o=Math.max(0,Math.min(t,e.length));if(n===-1){for(;o>0&&!r(o-1);)o-=1;for(;o>0&&r(o-1);)o-=1;return o}for(;o<e.length&&!r(o);)o+=1;for(;o<e.length&&r(o);)o+=1;return o}function BT(e,t,n){let r=_t(e).get(t.range.paragraphId)??[],o=false;for(let a of r){if(a.line===t){o=true;continue}if(o&&a.line.range.start===n)return true}return false}function LT(e,t,n){for(let{line:r}of _t(e).get(t)??[])if(r.range.start===n&&r.drawings?.some(o=>o.start===n))return r;return null}function FT(e,t,n){for(let r of n?n.spans:e.spans)if(!(t<=r.range.start||t>=r.range.end)&&(r.projected||r.text.length!==r.range.end-r.range.start))return true;return false}function ex(e){let t=e.spans[e.spans.length-1]?.text;return t===`
16
- `||t===chunkIMMAG4QP_cjs.Ub}function wl(e,t,n,r,o,a,i){for(let s of ut(n))i!==void 0&&s.paragraphId!==i||ET(e,t,n,s,r,o,a);}function ET(e,t,n,r,o,a,i){let s=ut(n).length>1,l=Gu(t,r.paragraphId),d=c=>r.spans.some(u=>u.range.start<=c&&c<=u.range.end);for(let c=r.start;c<=r.end;c+=1)if(!(c===r.end&&c>r.start&&!s&&ex(n)&&BT(t,n,c))){if(c===r.start&&c>a&&e.length>0){let u=e[e.length-1];if(u.position.paragraphId===r.paragraphId&&u.position.offset===c)continue}FT(n,c,r)||qb(l,c)&&!d(c)||e.push({position:{paragraphId:r.paragraphId,offset:c},x:Mr(n,c,i,r),y:n.box.y,height:n.box.height,lineId:n.id,pageIndex:o});}}function tx(e,t,n,r,o){for(let a of t){if(a.kind==="paragraph"){for(let i of a.lines)wl(r,e,i,n,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let s of i.cells)tx(e,s.blocks,n,r,o);}}var MT=new xl;function nx(e,t){let n=[];for(let r of e.pages)for(let o of Ke(r))for(let a of o.lines)wl(n,e,a,r.index,o.range.start,t);return n}function NT(e,t,n){let o=(_t(e).get(t.paragraphId)??[]).find(({line:i})=>{let s=Nn(i,t.paragraphId);return s!==null&&t.offset>=s.start&&t.offset<=s.end});if(!o||ut(o.line).length<2)return null;let a=[];return wl(a,e,o.line,o.pageIndex,0,n),Hu(a)}function Sl(e,t,n){return MT.get(e,t,n,()=>{let r=[];for(let{line:o,pageIndex:a}of _t(e).get(t)??[])wl(r,e,o,a,0,n,t);return Hu(r)})}function AT(e,t,n,r){if(!e.pages[t])return [];let o=[];return tx(e,n,t,o,r),o}function DT(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function _T(e,t,n){let r=e.pages[t];if(!r)return [];let o=[];for(let a of Ke(r,true))if(a.paragraphId===n)for(let i of a.lines)o.push({line:i,pageIndex:t});return o}function rx(e,t,n){let r=DT(n),o=_t(e).get(t.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:_T(e,a,t.paragraphId),s=new Set(o.map(f=>f.line.id)),l=i.filter(f=>!s.has(f.line.id)),d=l.length>0?[...o,...l]:o,c=a===void 0?d:[...d].sort((f,p)=>{let m=f.pageIndex===a?0:1,g=p.pageIndex===a?0:1;return m-g}),u=null;for(let{line:f,pageIndex:p}of c){let m=Nn(f,t.paragraphId);if(!m||t.offset<m.start||t.offset>m.end)continue;if(t.offset===m.end&&t.offset>m.start&&ut(f).length===1&&ex(f)){u??={line:f,pageIndex:p};continue}if(t.offset===m.end&&t.offset>m.start&&LT(e,t.paragraphId,t.offset))continue;let g=qa(f,t.offset,r.measurer,m);return {position:t,x:g.x,y:g.y,height:g.height,lineId:f.id,pageIndex:p}}if(u){let f=qa(u.line,t.offset,r.measurer,Nn(u.line,t.paragraphId));return {position:t,x:f.x,y:f.y,height:f.height,lineId:u.line.id,pageIndex:u.pageIndex}}return null}function zT(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return Ks(e,n,t)?.caret??null}function HT(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return qs(e,n,t)}function jT(e){return Fi(e)}var Jb=new WeakMap;function Rl(e,t){let n=Jb.get(e);return n||(n=new Map,e.forEach((r,o)=>{n.has(r)||n.set(r,o);}),Jb.set(e,n)),n.get(t)??-1}function zu(e,t){if(e.anchor.paragraphId===e.head.paragraphId)return e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor};let n=Rl(t,e.anchor.paragraphId),r=Rl(t,e.head.paragraphId);return n===-1||r===-1?null:n<r||n===r&&e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}function Wo(e,t){let n=[],r=new Set;for(let{line:a}of _t(e).get(t)??[]){let i=Nn(a,t);if(i){for(let s of i.spans){if(s.range.end===s.range.start)continue;let l=`${s.range.start}:${s.range.end}`;if(r.has(l))continue;r.add(l);let d=s.range.end-s.range.start,c=s.text.length===d?s.text:s.text.slice(0,d).padEnd(d," ");n.push({start:s.range.start,text:c});}for(let s of i.drawings){let l=s.start,d=l+1,c=`${l}:${d}`;r.has(c)||(r.add(c),n.push({start:l,text:"\uFFFC"}));}}}n.sort((a,i)=>a.start-i.start);let o="";for(let a of n)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function Qb(e,t,n,r){let o=kr(e),a=Va(e).get(t.paragraphId);return a===void 0?null:$b(t,n,o,a,i=>Sl(e,i,r))}function GT(e,t,n,r=null,o={}){if(!o.stops&&(n==="left"||n==="right"))return Qb(e,t,n==="left"?-1:1,o.measurer);if(!o.stops&&(n==="wordLeft"||n==="wordRight")){let l=n==="wordLeft"?-1:1,d=ii(Wo(e,t.paragraphId),t.offset,l);return d===t.offset?Qb(e,t,l,o.measurer):{position:{paragraphId:t.paragraphId,offset:d},desiredX:null}}if(!o.stops&&(n==="lineStart"||n==="lineEnd")){let l=Wb(t,n==="lineStart"?-1:1,NT(e,t,o.measurer)??Sl(e,t.paragraphId,o.measurer));return l?{position:l,desiredX:null}:null}if(!o.stops&&(n==="documentStart"||n==="documentEnd")){let l=Xb(n==="documentStart"?-1:1,kr(e),d=>Sl(e,d,o.measurer));return l?{position:l,desiredX:null}:null}if(!o.stops&&(n==="up"||n==="down")){let l=Va(e).get(t.paragraphId);return l===void 0?null:Vb(t,n==="up"?-1:1,r,kr(e),l,d=>Sl(e,d,o.measurer))}let a=o.stops?[...o.stops]:nx(e,o.measurer);if(a.length===0)return null;let i=a.findIndex(l=>l.position.paragraphId===t.paragraphId&&l.position.offset===t.offset);if(i===-1){if(n==="left"||n==="right"){let d=ju(a,t,n==="left"?-1:1)??ai(a,t);return d?{position:d.position,desiredX:null}:null}let l=ai(a,t);if(!l)return null;i=a.indexOf(l);}let s=a[i];switch(n){case "left":return {position:a[Math.max(0,i-1)].position,desiredX:null};case "right":return {position:a[Math.min(a.length-1,i+1)].position,desiredX:null};case "lineStart":return {position:a.filter(d=>d.lineId===s.lineId)[0].position,desiredX:null};case "lineEnd":{let l=a.filter(d=>d.lineId===s.lineId);return {position:l[l.length-1].position,desiredX:null}}case "wordLeft":case "wordRight":{let l=Wo(e,t.paragraphId),d=n==="wordLeft"?-1:1,c=ii(l,t.offset,d);return c===t.offset?{position:a[d===-1?Math.max(0,i-1):Math.min(a.length-1,i+1)].position,desiredX:null}:{position:{paragraphId:t.paragraphId,offset:c},desiredX:null}}case "documentStart":return {position:a[0].position,desiredX:null};case "documentEnd":return {position:a[a.length-1].position,desiredX:null};case "pageUp":case "pageDown":{let l=r??s.x,d=s.pageIndex+(n==="pageUp"?-1:1),c=a.filter(p=>p.pageIndex===d);if(c.length===0)return {position:(n==="pageUp"?a[0]:a[a.length-1]).position,desiredX:l};let u=c[0],f=Number.POSITIVE_INFINITY;for(let p of c){let m=Math.abs(p.y-s.y)*1e3+Math.abs(p.x-l);m<f&&(f=m,u=p);}return {position:u.position,desiredX:l}}case "up":case "down":{let l=r??s.x,d=[],c=new Set;for(let g of a)c.has(g.lineId)||(c.add(g.lineId),d.push(g.lineId));let u=d.indexOf(s.lineId),f=n==="up"?u-1:u+1;if(f<0||f>=d.length)return {position:(n==="up"?a[0]:a[a.length-1]).position,desiredX:l};let p=a.filter(g=>g.lineId===d[f]),m=p[0];for(let g of p)Math.abs(g.x-l)<Math.abs(m.x-l)&&(m=g);return {position:m.position,desiredX:l}}default:return null}}function WT(e,t){return rx(e,t)}function $T(e,t,n){let r=zu(t,n);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return XT(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:l}of _t(e).get(r.from.paragraphId)??[]){let d=Nn(l,r.from.paragraphId);if(!d)continue;let c=No(e,d,r.from,r.to);if(c)for(let u of d.spans)u.range.end>c.start&&u.range.start<c.end&&o.push(u);}return o}let a=_t(e),i=Rl(n,r.from.paragraphId),s=Rl(n,r.to.paragraphId);if(i===-1||s===-1)return [];for(let l=i;l<=s;l+=1)for(let{line:d}of a.get(n[l])??[]){let c=Nn(d,n[l]);if(!c)continue;let u=No(e,c,r.from,r.to);if(u)for(let f of c.spans)f.range.end>u.start&&f.range.start<u.end&&o.push(f);}return o}function XT(e,t){let n=null;for(let{line:r}of _t(e).get(t.paragraphId)??[])for(let o of Nn(r,t.paragraphId)?.spans??[]){if(o.range.start<t.offset&&t.offset<=o.range.end)return [o];n===null&&o.range.start===t.offset&&(n=o);}return n?[n]:[]}var ox=new WeakMap;function ir(e){let t=ox.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=(s,l,d,c)=>{for(let u of s){if(u.kind==="paragraph")continue;let f=u.tableId,p=o.get(f);p||(p=new Map,o.set(f,p),n.set(f,[]),r.set(f,new Map));for(let m of u.rows){let g=p.get(m.id);g===void 0&&(g=p.size,p.set(m.id,g),r.get(f).set(g,m.cells));for(let h of m.cells)n.get(f).push({pageIndex:l,tableId:f,row:m,cell:h,rowIndex:g,isHeaderRepeat:m.isHeaderRepeat,offsetX:d,offsetY:c}),a(h.blocks,l,d,c);}}};for(let s of e.pages){a(s.fragments,s.index,0,0);for(let l of [s.header,s.footer])l&&a(l.fragments,s.index,l.box.x-s.contentBox.x,l.box.y-s.contentBox.y);for(let l of [s.footnotes,s.endnotes])if(l)for(let d of l.notes)a(d.fragments,s.index,d.box.x-s.contentBox.x,d.box.y-s.contentBox.y);}let i=new Map;for(let[s,l]of n)i.set(s,{placed:l,rows:r.get(s)??new Map});return ox.set(e,i),i}function ax(e){let t=0;for(let n of e.rows.values())for(let r of n)t=Math.max(t,ar(r).to+1);return t}var ar=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function VT(e,t,n){if(t.tableId!==n.tableId)return null;let r=ir(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(ar(t).from,ar(n).from),s=Math.max(ar(t).to,ar(n).to),l=p=>{let{from:m,to:g}=ar(p);return g>=i&&m<=s},d=p=>(r.rows.get(p)??[]).some(m=>m.vMergeContinue&&l(m)),c=r.rows.size+ax(r)+2;for(let p=0;!(p>c);p+=1){let m=false;for(let[g,h]of r.rows)if(!(g<o||g>a))for(let b of h){if(!l(b))continue;let{from:x,to:v}=ar(b);x<i&&(i=x,m=true),v>s&&(s=v,m=true);}for(;o>0&&d(o);)o-=1,m=true;for(;d(a+1);)a+=1,m=true;if(!m)break}let u=[],f=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:m,to:g}=ar(p.cell);g<i||m>s||f.has(p.cell.id)||(f.add(p.cell.id),u.push(p.cell.id));}return u.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:u,rows:{from:o,to:a},columns:{from:i,to:s},text:YT(e,t.tableId,u)}}function Pl(e,t){let n=new Set(t),r=[],o=new Set;for(let a of ir(e).values())for(let i of a.placed)if(!(i.isHeaderRepeat||!n.has(i.cell.id)))for(let s of i.cell.blocks)si(s,r,o);return r}function si(e,t,n){if(e.kind==="paragraph"){for(let r of rr(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)si(a,t,n);}function YT(e,t,n){let r=Pl(e,n),o=r[0],a=r[r.length-1];return !o||!a?KT(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:Wo(e,a).length}}}function KT(e,t){let n=ir(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let s of o.cell.blocks)si(s,a,new Set);let i=a[0];if(i){let s={paragraphId:i,offset:0};return {anchor:s,head:s}}}for(let o of e.pages)for(let a of Ke(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function UT(e){let t=[...Ke(e)];for(let n of [e.header,e.footer])n&&t.push(...Yt(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...Yt(r.fragments));return t}function qT(e,t){let n=new Set(Pl(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of UT(a))if(n.has(i.paragraphId))for(let s of i.lines)for(let l of s.spans){let d=`${l.range.paragraphId}:${l.range.start}:${l.range.end}`;o.has(d)||(o.add(d),r.push(l));}return r}function ZT(e,t){let n=new Set(t),r=[];for(let o of ir(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 JT(e,t){let n=ir(e).get(t.tableId);if(!n)return "";let r=new Set(t.cellIds),o=new Map,a=new Set;for(let i of n.placed){if(i.isHeaderRepeat||!r.has(i.cell.id)||a.has(i.cell.id))continue;a.add(i.cell.id);let s=Pl(e,[i.cell.id]).map(d=>Wo(e,d)).join(`
14
+ `,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:0,height:ne.height},...S.link?{link:S.link}:{},...C(S)}),y.height=Math.max(y.height,ne.height),y.baseline=Math.max(y.baseline,ne.baseline),y.end=S.end,Ve(),Le=true;continue}Le=false,Se(S.start),A.length>0&&S.start>=Math.min(...A)&&Ie(S.start);let L=o.lineMetrics(S.style),q=0;for(let ne of og(S.text)){let $=S.text.slice(q,ne);if($.length===0)continue;let be=!!S.projected||!!S.positionalTab||S.end-S.start!==S.text.length,le=be?{paragraphId:t,start:S.start,end:S.end}:{paragraphId:t,start:S.start+q,end:S.start+ne};if($===" "){(y.spans.length>0||y.drawings.length>0)&&y.width>=ae()&&x0(x,N,ne)&&Ve();let Ge=W()+y.width,ye=S0(x,N,ne,o),Ye=S.positionalTab?R0(S.positionalTab,n,B,u?.marginExtent):null,Ft=Ye===null?so(l,Ge,B):Ye.positionPt>Ge?Ye:{...so(l,Ge,B),...Ye.leader?{leader:Ye.leader}:{}},Dn=Nd(Ft.alignment,Ge,Ft.positionPt,ye.width,ye.decimalOffset);y.spans.push({range:le,text:" ",props:S.props,style:S.style,box:{x:Ge,y:0,width:Dn,height:L.height},...Ft.leader?{tabLeader:Ft.leader,tabLeaderAdvancePt:o.measure(Ld.get(Ft.leader)??".",S.style)}:{},...S.link?{link:S.link}:{},...Ft.leader?{tabLeader:Ft.leader}:{},...be&&!S.positionalTab?{projected:true}:{},...S.noteNav?{noteNav:S.noteNav}:{},...C(S)}),y.width+=Dn,y.height=Math.max(y.height,L.height),y.baseline=Math.max(y.baseline,L.baseline),y.end=be?S.end:S.start+ne,Xe=" ",q=ne;continue}let _e=S.measureText??$,Pe=o.measure(Jn(_e,S.style),S.style),Ne=q>0||Xe===""||/[\s\u00a0]$/.test(Xe)||/^[\s\u00a0]/.test($)||ys.has(Xe[Xe.length-1])&&!ys.has($[0]);if(Ne&&(je=y.spans.length,ft=y.width,zt=y.end),Ie(S.start+q),y.width+Pe>ae()+b0&&(y.spans.length>0||y.drawings.length>0))if(Ne||je<=0){if(!(we()&&y.width+Pe<=ae()+.001)){if(Ve(),!Be(Pe))continue}}else {let Ge=y.spans.splice(je);y.width=ft,y.end=zt,y.height=0,y.baseline=0;for(let ye of y.spans){let Ye=o.lineMetrics(ye.style);y.height=Math.max(y.height,Ye.height),y.baseline=Math.max(y.baseline,Ye.baseline);}Ve();for(let ye of Ge){let Ye=o.lineMetrics(ye.style);y.spans.push({...ye,box:{...ye.box,x:W()+y.width}}),y.width+=ye.box.width,y.height=Math.max(y.height,Ye.height),y.baseline=Math.max(y.baseline,Ye.baseline),y.end=ye.range.end;}je=0,ft=0;}else if(y.spans.length===0&&y.drawings.length===0&&Pe>ae()+.001&&!Be(Pe))continue;let et=$,ht=S.start+q,Lt=Pe;if(!be&&S.measureText===void 0)for(;y.spans.length===0&&et.length>1&&Lt>ae();){let Ge=1,ye=et.length-1,Ye=1;for(;Ge<=ye;){let gn=Ge+ye>>1;o.measure(Jn(et.slice(0,gn),S.style),S.style)<=ae()?(Ye=gn,Ge=gn+1):ye=gn-1;}let Ft=et.slice(0,Ye),Dn=o.measure(Jn(Ft,S.style),S.style);y.spans.push({range:{paragraphId:t,start:ht,end:ht+Ye},text:Ft,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:Dn,height:L.height},...S.link?{link:S.link}:{},...S.noteNav?{noteNav:S.noteNav}:{},...C(S)}),y.width+=Dn,y.height=Math.max(y.height,L.height),y.baseline=Math.max(y.baseline,L.baseline),y.end=ht+Ye,Ve(),et=et.slice(Ye),ht+=Ye,Lt=o.measure(Jn(et,S.style),S.style);}y.spans.push({range:be?le:{paragraphId:t,start:ht,end:S.start+ne},text:et,props:S.props,style:S.style,box:{x:W()+y.width,y:0,width:Lt,height:L.height},...S.link?{link:S.link}:{},...be&&!S.positionalTab?{projected:true}:{},...S.noteNav?{noteNav:S.noteNav}:{},...C(S)}),y.width+=Lt,y.height=Math.max(y.height,L.height),y.baseline=Math.max(y.baseline,L.baseline),y.end=be?S.end:S.start+ne,Xe=$,q=ne;}}return (y.spans.length>0||y.drawings.length>0||D.length===0||Le)&&Ve({includeParagraphMark:true}),i!==null&&a&&a.set(i,D.map(w0)),D}var ws=32,lg=4096,v0=128,T0=/[\u0000-\u001F\u007F-\u009F]/,k0={major:null,minor:null};function Ir(e){return e.kind!=="textValue"}function Na(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Aa(e,t){for(let n of e.children)if(Ir(n)&&n.localName===t)return n}function Oo(e){return !(e===void 0||e.length===0||e.length>v0||T0.test(e)||chunkIMMAG4QP_cjs.I(e))}function O0(e){return e==="1"||e==="true"||e==="on"}function Rs(e){return e.map(t=>t.attributes?{n:t.localName,a:t.attributes}:{n:t.localName})}function _a(e){if(e){for(let t of e.children)if(Ir(t)&&(t.kind==="runProperties"||t.localName==="rPr"))return t}}function Ps(e){if(e){for(let t of e.children)if(Ir(t)&&(t.kind==="paragraphProperties"||t.localName==="pPr"))return t}}var sg=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function Co(e){return e.some(t=>sg.has(t.localName))?e.filter(t=>!sg.has(t.localName)):e}function C0(e){let t=Aa(e,"docDefaults");if(!t)return {run:[],paragraph:[],paragraphNode:void 0};let n=Aa(t,"rPrDefault"),r=Aa(t,"pPrDefault"),o=_a(n),a=Ps(r);return {run:Co(vt(o)),paragraph:Co(vt(a)),paragraphNode:a}}function B0(e){let t=Na(e,"styleId");if(!Oo(t))return null;let n=Na(e,"type")??"",r=(()=>{let d=Aa(e,"basedOn");return d?Na(d,"val"):void 0})(),o=Oo(r)?r:null,a=Ps(e),i=_a(e),s=new Map,l=0;for(let d of e.children){if(d.kind==="textValue"||d.localName!=="tblStylePr")continue;if(l>=L0)break;l+=1;let c=Na(d,"type");c&&!s.has(c)&&s.set(c,d);}return {styleId:t,type:n,basedOn:o,isDefault:O0(Na(e,"default")),paragraphProperties:Co(vt(a)),runProperties:Co(vt(i)),paragraphPropertiesNode:a,tablePropertiesNode:Aa(e,"tblPr"),conditionalTableFormats:s}}var L0=32,Da=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function dg(e,t){if(!t||!Oo(t))return Da;let n=xc(e,t,"table");if(n.length===0)return Da;let r=[],o=[],a=[],i=[],s=new Map;for(let l of n){l.tablePropertiesNode&&r.push(l.tablePropertiesNode),l.paragraphPropertiesNode&&o.push(l.paragraphPropertiesNode),a.push(...l.paragraphProperties),i.push(...l.runProperties);for(let[d,c]of l.conditionalTableFormats)s.set(d,c);}return {tablePropertyNodes:r,paragraphPropertyNodes:o,paragraphProperties:a,runProperties:i,conditional:s}}var yc=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function cg(e,t){let n=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of t){let i=e.conditional.get(a);if(!i)continue;let s=Ps(i);s&&(n.push(s),r.push(...Co(vt(s))));let l=_a(i);l&&o.push(...Co(vt(l)));}return n.length===0&&r.length===0&&o.length===0?yc:{paragraphProperties:r,paragraphPropertyNodes:n,runProperties:o}}function F0(e,t=k0){let n=new Map;if(!e)return {cacheToken:chunkXMHWBL3K_cjs.y({empty:true,theme:t}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,themeFonts:t,styles:n};let r=C0(e),o=null,a=null,i=0;for(let l of e.children){if(!Ir(l)||l.localName!=="style")continue;if(i>=lg)break;i+=1;let d=B0(l);if(!d)continue;let{isDefault:c,...u}=d;n.set(u.styleId,u),u.type==="paragraph"?c?o=u.styleId:o===u.styleId&&(o=null):u.type==="character"&&(c?a=u.styleId:a===u.styleId&&(a=null));}return {cacheToken:chunkXMHWBL3K_cjs.y({dR:Rs(r.run),dP:Rs(r.paragraph),defP:o,defC:a,theme:t,styles:[...n.values()].map(l=>({id:l.styleId,type:l.type,basedOn:l.basedOn,p:Rs(l.paragraphProperties),r:Rs(l.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,themeFonts:t,styles:n}}function bc(e,t){let n=null;for(let r of e){if(r.localName!==t)continue;let o=r.attributes?.val;n=Oo(o)?o:null;}return n}function xc(e,t,n){let r=e.styles.get(t);if(!r||r.type!==n)return [];let o=[],a=new Set,i=t,s=0;for(;i!==null&&s<ws&&!(a.has(i)||!Oo(i));){a.add(i);let l=e.styles.get(i);if(!l)break;o.push(l),i=l.basedOn,s+=1;}return o.reverse()}function Bo(e,t,n){let r=vt(t),o=bc(r,"pStyle")??e.defaultParagraphStyleId,a=o?xc(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...n?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],s=[...i,...r],l=[];e.docDefaultsParagraphNode&&l.push(e.docDefaultsParagraphNode),n&&l.push(...n.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&l.push(p.paragraphPropertiesNode);t&&l.push(t);let d=_a(t&&Ir(t)?t:void 0),c=vt(d),u=[...e.docDefaultsRun,...n?.runProperties??[],...a.flatMap(p=>p.runProperties)],f=c.length===0?u:[...u,...c];return {paragraphProperties:s,inheritedParagraphProperties:i,paragraphPropertyNodes:l,runProperties:u,markRunProperties:f,styleId:o??null}}function ug(e){let t;for(let n of e){if(!n||n.kind==="textValue")continue;let r=false;for(let o of n.children)if(Ir(o)&&o.localName==="pBdr"){r=true;break}r&&(t=Pn(n).bottom);}return t}function Ln(e,t,n){let r=[];if(n){let a=bc(t,"rStyle")??n.defaultCharacterStyleId;a&&(r=xc(n,a,"character").flatMap(i=>i.runProperties));}return e.length===0&&r.length===0?t:t.length===0&&r.length===0?e:[...e,...r,...t]}function za(e,t,n,r,o,a=false){let i=Ps(e),s=n?Bo(n,i,o):null,l=s?[...s.paragraphProperties]:vt(i),d=vt(_a(i&&Ir(i)?i:void 0)),c=s?s.runProperties:[],u=s?s.markRunProperties:d,f=Ea(l),p=0,m=0;if(r)p=r.indent.hanging,m=r.indent.firstLine;else for(let b of l){if(b.localName!=="ind")continue;let x=Ma(b.attributes?.hanging),v=Ma(b.attributes?.firstLine);(b.attributes?.hanging!==void 0||b.attributes?.firstLine!==void 0)&&(p=x!==null?Math.max(0,chunkIMMAG4QP_cjs.Dc(x)):0,m=v!==null?chunkIMMAG4QP_cjs.Dc(v):0);}let g=r?{left:r.indent.left,right:r.indent.right,hanging:p,firstLine:m}:{left:f.left,right:f.right,hanging:p,firstLine:m},h=s?Md(s.paragraphPropertyNodes):Ed(i);return {props:l,indent:g,available:Math.max(1,t-g.left-g.right),alignment:ig(l),spacing:Pd(l,{inList:r!==void 0,inTableCell:a}),lineSpacing:Id(l),contextualSpacing:Td(l),styleId:s?s.styleId:bc(l,"pStyle")??null,bottomBorder:s?ug(s.paragraphPropertyNodes):Pn(i).bottom,borders:s?pa(s.paragraphPropertyNodes):Pn(i),shading:Bd(l),inheritedRunProperties:c,markRunProperties:u,tabStops:h,tabStopsCacheToken:br(h),...r?{listItem:r}:{}}}var fg=new WeakMap;function M0(e){let t=fg.get(e);if(t!==void 0)return t;let n=o=>o.some(a=>a.localName==="pBdr"),r=n(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(n(o.paragraphProperties)){r=true;break}}return fg.set(e,r),r}function pg(e,t){return !t||!M0(t)?Pn(e):pa(Bo(t,e).paragraphPropertyNodes)}var E0=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function Sc(e){let t=e?.val;return t!=="0"&&t!=="false"&&t!=="off"}function mg(e){let t=false,n=false,r=true;for(let o of e)switch(o.localName){case "keepNext":t=Sc(o.attributes);break;case "keepLines":n=Sc(o.attributes);break;case "widowControl":r=Sc(o.attributes);break;}return !t&&!n&&r?E0:{keepNext:t,keepLines:n,widowControl:r}}function gg(e,t,n,r,o){if(e<=t)return e;if(r.keepLines&&!o)return t;if(!r.widowControl||n<2)return e;let a=e;return n-a<2&&(a-=1),a-t===1&&(a-=1),a<t&&(a=t),a===t&&o?e:a}function hg(e,t,n,r){let o=0,a=n;for(let i=t;i-t<8;i+=1){let s=e[i];if(!s||s.kind!=="paragraph"||!s.spacing||!s.keeps)return null;o+=Math.max(s.spacing.before,a)-a;let l=r(i);if(!s.keeps.keepNext||i+1>=e.length)return o+=l[0]??0,s.keeps.widowControl&&l.length>1&&(o+=l[1]),o;for(let d of l)o+=d;o+=s.spacing.after,a=s.spacing.after;}return null}function N0(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==void 0&&(n===e&&(n=[...e]),n[r]=`${n[r]}~mk~${o}`);}return n}function A0(e,t,n){let r=e;for(let o=0;o<e.length;o+=1){if(!t(o))continue;let a=n(o);if(a===null)continue;let i=o>0&&n(o-1)===a,s=o+1<e.length&&n(o+1)===a;r===e&&(r=[...e]),r[o]=`${r[o]}~cs~${i?1:0}${s?1:0}`;}return r}function D0(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);if(o==="")continue;let a=r>0&&t(r-1)===o,i=r+1<e.length&&t(r+1)===o;n===e&&(n=[...e]),n[r]=`${n[r]}~bg~${a?1:0}${i?1:0}`;}return n}function _0(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==""&&(n===e&&(n=[...e]),n[r]=`${n[r]}~toc~${o}`);}return n}function z0(e,t){let n=e,r=0;for(let o=e.length-2;o>=0;o-=1)t(o)&&r<8?(n===e&&(n=[...e]),n[o]=`${e[o]}~kn~${n[o+1]}`,r+=1):r=0;return n}function yg(e,t){let n=A0(e,t.contextualSpacingAt,t.styleIdAt);return n=D0(n,t.borderGroupKeyAt),t.tocVerdicts.length>0&&(n=_0(n,r=>t.tocVerdicts[r])),n=N0(n,t.markerTextAt),n=z0(n,t.keepsNextAt),n}var H0=ho;function Ut(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkIMMAG4QP_cjs.ca&&n.localName===t)return n}}function bg(e){if(e.kind==="textValue")return false;let t=Ut(e,"paragraphProperties")??Ut(e,"pPr");if(!t)return false;let n=Ut(t,"runProperties")??Ut(t,"rPr");return n===void 0?false:Ut(n,"del")!==void 0||Ut(n,"moveFrom")!==void 0}function xg(e,t){if(e.kind==="textValue"||t>H0)return true;let n=(r,o)=>{for(let a of r){if(a.kind==="textValue")continue;if(a.kind==="run"){for(let s of a.children){if(s.kind==="text"){for(let l of s.children)if(l.kind==="textValue"&&l.value.length>0)return false;continue}if(s.kind!=="runProperties")return false}continue}if(chunkIMMAG4QP_cjs.Hb(a)){if(o>=chunkIMMAG4QP_cjs.Gb)continue;let s=chunkIMMAG4QP_cjs.Jb(a);if(s&&!n(s,o+1))return false;continue}if((a.kind==="hyperlink"||a.kind==="revisionInsert"||a.kind==="revisionMoveTo")&&!xg(a,o+1))return false}return true};return n(e.children,t)}function Sg(e,t){if(t==="all-markup"||e.kind==="textValue")return false;let n=Ut(e,"paragraphProperties")??Ut(e,"pPr");if(!n)return false;let r=Ut(n,"runProperties")??Ut(n,"rPr");return r===void 0?false:(t==="proposed"?["del","moveFrom"]:["ins","moveTo"]).some(a=>Ut(r,a)!==void 0)}function Rc(e,t="proposed"){return e.kind!=="paragraph"||t!=="proposed"||!bg(e)?false:xg(e,0)}function j0(e){let t=e.root;if(t.localName==="hdr"||t.localName==="ftr")return t;let n=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=n(o);if(a)return a}}};return n(t)}function G0(e,t){return !(e.kind==="paragraph"&&Rc(e,t))}var vg=new WeakMap;function Is(e){return vg.get(e)??null}function Tg(e,t){let n=t.children.filter(a=>Rg(a)),r=e.flatMap(a=>a.children.filter(i=>!Rg(i))),o={...t,children:[...n,...r]};return vg.set(o,{merged:o,members:e}),o}function Rg(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function W0(e,t){if(t==="all-markup")return e.map(i=>i.block);let n=[],r=[],o=null,a=()=>{n.push(...wg(r)),r=[],o=null;};for(let{block:i,parentKey:s}of e){if(r.length>0&&s!==o&&a(),i.kind!=="paragraph"){a(),n.push(i);continue}let l=Sg(i,t);if((l||r.length>0)&&!X0(i,t)){a(),n.push(i);continue}if(l){r.push(i),o=s;continue}if(r.length===0){n.push(i);continue}let d=[...r,i];r=[],o=null,n.push(Tg(d,i));}return n.push(...wg(r)),n}function wg(e){if(e.length<2)return e;let t=e[e.length-1];return [Tg(e,t)]}function Ha(e,t){return W0($0(e),t).filter(r=>G0(r,t))}function $0(e){let t=[],n=(r,o,a)=>{for(let i of r)if(i.kind!=="textValue"){if(i.kind==="paragraph"||i.kind==="table"){t.push({block:i,parentKey:a});continue}chunkIMMAG4QP_cjs.Hb(i)&&o<chunkIMMAG4QP_cjs.Gb&&n(chunkIMMAG4QP_cjs.Kb(i),o+1,i.id);}};return n(e,0,""),t}var Pg=new WeakMap;function X0(e,t){let n=Pg.get(e),r=n?.get(t);if(r!==void 0)return r;let o=V0(e,t);return n?n.set(t,o):Pg.set(e,new Map([[t,o]])),o}function V0(e,t){if(!Y0(e))return false;let n=as(e,[],void 0,void 0,void 0,void 0,t),r=0;for(let o of n)r=Math.max(r,o.end);return r<=chunkIMMAG4QP_cjs.Ud(e).length}function Y0(e){let t=0,n=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunkIMMAG4QP_cjs.ca&&o.localName==="fldChar"){let a=o.attributes.find(i=>i.localName==="fldCharType")?.value;a==="begin"?t+=1:a==="end"&&(t-=1,t<0&&(n=true));}for(let a of o.children)r(a);}};return r(e),t===0&&!n}var Ig=chunkIMMAG4QP_cjs.Ke(16);function Fn(e,t="all-markup"){let n=Ig.get(e),r=n?.[t];if(r)return r;let o=j0(e),a=o?Ha(o.children,t):[];return n?n[t]=a:Ig.set(e,{[t]:a}),a}function vs(e,t="all-markup"){return e.kind!=="note"?[]:Ha(e.children,t)}function kg(e,t="all-markup"){return e.kind==="textValue"?[]:Ha(e.children,t)}var K0={state:"none"},Og=(e,t)=>t.state==="omitted"?e:t;function Ts(e,t,n={}){return e.state==="omitted"?t:e.state==="none"?K0:e}function wc(e,t){let n=Og;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right),insideH:n(e.insideH,t.insideH),insideV:n(e.insideV,t.insideV)}}function Pc(e,t){let n=Og;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right)}}function ks(e=1048576){let t=e|0;return {intervalsRemaining:t>0?t:0}}function Cg(e,t,n,r){let o=Math.max(0,Math.min(t|0,1024)),a=new Array(e.length);for(let i=0;i<e.length;i+=1){if(r&&r.intervalsRemaining<=0){a[i]=[];continue}a[i]=U0(e[i],o,n,r);}return a}function U0(e,t,n,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),p=Math.min(t,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,s=o[0].x,l=[],d=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>s&&i&&(!r||r.intervalsRemaining>0)){let u=l[l.length-1];u&&u.end===s&&u.cellIndex===i.cellIndex&&u.cell===i.cell?l[l.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(l.push({start:s,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),n&&(n.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),s=c.x;}return l}function q0(e,t){let n=0,r=e.length;for(;n<r;){let o=n+r>>1;e[o].start<=t?n=o+1:r=o;}return n}function Ic(e,t,n,r){r&&(r.columnLookups+=1);let o=e[t];if(!o||n<0)return;let a=q0(o,n)-1;if(a<0)return;let i=o[a];if(!(n>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var Mg=256,qe={state:"omitted"},Ms={state:"none"},Eg={top:qe,left:qe,bottom:qe,right:qe,insideH:qe,insideV:qe},Ng={top:qe,left:qe,bottom:qe,right:qe},Bg={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},J0=new Map([["single","single"],["thick","thick"],["double","double"],["dotted","dotted"],["dashed","dashed"],["dashSmallGap","dashed"],["dotDash","dashed"],["dotDotDash","dashed"],["triple","triple"],["wave","single"],["hairline","single"],["inset","single"],["outset","single"]]);function Lo(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function vc(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Q0(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function eP(e){if(e===null)return .5;let t=e/8;return !Number.isFinite(t)||t<=0?.5:t>fa?fa:t}function Es(e){if(!e)return qe;let t=vc(e,"val");if(!t)return qe;if(t==="nil"||t==="none")return Ms;let n=J0.get(t)??"single",r=vc(e,"color"),o=r===void 0||r==="auto"?null:Ai(r)??null;return {state:"edge",style:n,color:o,widthPt:eP(Q0(vc(e,"sz")))}}function Ag(e,t){if(!e)return Ng;let n={top:qe,left:qe,bottom:qe,right:qe};for(let r of t){let o=r==="left"?"start":r==="right"?"end":void 0,a=Lo(e,r)??(o?Lo(e,o):void 0);n[r]=Es(a);}return n}function Ns(e){let t=e&&Lo(e,"tblBorders");return t?{...Ag(t,["top","left","bottom","right"]),insideH:Es(Lo(t,"insideH")),insideV:Es(Lo(t,"insideV"))}:Eg}function As(e){return Ag(e&&Lo(e,"tcBorders"),["top","left","bottom","right"])}function Tc(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function Lg(e){if(!e)return 0;let t=Number.parseInt(e.slice(0,2),16),n=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return t+n+r}function Dg(e,t,n=true){if(e.state==="omitted")return t.state==="omitted"?qe:t;if(t.state==="omitted")return e;if(e.state==="none")return t.state==="none"?Ms:t;if(t.state==="none")return e;let r=Tc(e),o=Tc(t);if(r>o)return e;if(o>r)return t;let a=Bg[e.style],i=Bg[t.style];if(a!==i)return a>i?e:t;let s=Lg(e.color),l=Lg(t.color);return s<l?e:l<s?t:n?e:t}function Os(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function tP(e,t,n){return n?t==="top"||t==="bottom"?e.insideH:e.insideV:e[t]}function nP(e,t){return e===void 0&&t===void 0?true:!e||!t?false:e.style===t.style&&e.color===t.color&&e.widthPt===t.widthPt}function Cs(e){if(e.length===0)return [];let t=[],n={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];n.gridEnd===o.gridStart&&nP(n.edge,o.edge)?n={...n,gridEnd:o.gridEnd}:(t.push(n),n={...o});}return t.push(n),t}function Bs(e,t,n){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==t||o.gridEnd!==n))return o.edge}function Fg(e,t,n){let r=0,o=Math.min(n,e.length);for(let a=Math.max(0,t);a<o;a+=1)r+=e[a];return r}function rP(e){if(!(!e||e.style!=="double"))return no(e.widthPt)}function Ls(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function oP(e,t){return t?e==="outer"?t.insetPt:t.insetPt+t.strokePt+t.gapPt:0}function aP(e,t,n){return n?e==="outer"?t-n.insetPt:t-n.insetPt-n.strokePt-n.gapPt:t}function iP(e,t){return t?e==="outer"?t.insetPt+t.strokePt:t.insetPt+t.extentPt:0}function sP(e,t,n){return n?e==="outer"?t-n.insetPt-n.strokePt:t-n.insetPt-n.extentPt:t}function nr(e,t){e.length>=Mg||!(t.width>0)||!(t.height>0)||e.push(t);}function lP(e,t,n,r,o,a,i,s,l,d,c){let u=no(n.widthPt),{strokePt:f,gapPt:p,extentPt:m,insetPt:g}=u,h=Math.abs(r)<1e-6,b=Math.abs(o-a)<1e-6,x=Math.abs(r)<1e-6,v=Math.abs(o-i)<1e-6;if(t==="top"||t==="bottom"){let M=t==="top"?g:i-g-f,P=t==="top"?g+f+p:i-g-m;for(let B of ["outer","inner"]){let O=r,k=o;h&&(O=oP(B,s)),b&&(k=aP(B,a,l)),nr(e,{side:t,role:B,color:n.color,cssStyle:"solid",x:O,y:B==="outer"?M:P,width:k-O,height:f});}return}let w=t==="left"?g:a-g-f,C=t==="left"?g+f+p:a-g-m;for(let M of ["outer","inner"]){let P=r,B=o;x&&(P=iP(M,d)),v&&(B=sP(M,i,c)),nr(e,{side:t,role:M,color:n.color,cssStyle:"solid",x:M==="outer"?w:C,y:P,width:f,height:B-P});}}function dP(e,t,n,r,o,a,i){let s=n.widthPt,l=Math.max(1,s),d=s*3+l*2;if(t==="top"||t==="bottom"){let u=t==="top"?0:i-d;for(let f=0;f<3;f+=1)nr(e,{side:t,role:f===0?"outer":f===1?"middle":"inner",color:n.color,cssStyle:"solid",x:r,y:u+f*(s+l),width:o-r,height:s});return}let c=t==="left"?0:a-d;for(let u=0;u<3;u+=1)nr(e,{side:t,role:u===0?"outer":u===1?"middle":"inner",color:n.color,cssStyle:"solid",x:c+u*(s+l),y:r,width:s,height:o-r});}function cP(e,t,n,r,o,a,i){let s=n.widthPt;t==="top"?nr(e,{side:t,role:"edge",color:n.color,cssStyle:Ls(n.style),x:r,y:0,width:o-r,height:s}):t==="bottom"?nr(e,{side:t,role:"edge",color:n.color,cssStyle:Ls(n.style),x:r,y:i-s,width:o-r,height:s}):t==="left"?nr(e,{side:t,role:"edge",color:n.color,cssStyle:Ls(n.style),x:0,y:r,width:s,height:o-r}):nr(e,{side:t,role:"edge",color:n.color,cssStyle:Ls(n.style),x:a-s,y:r,width:s,height:o-r});}function Fs(e,t){if(e.length===0)return;let n=e[0];return rP(n.edge)}function uP(e,t,n,r,o,a,i,s,l,d){let c=(D,y,ee)=>{let I=[];for(let E of y){if(!E.edge)continue;let j,A;ee?(j=Fg(i,s,E.gridStart),A=Fg(i,s,E.gridEnd)):(j=l[E.gridStart-d]??0,A=l[E.gridEnd-d]??a),I.push({side:D,gridStart:E.gridStart,gridEnd:E.gridEnd,startPt:j,endPt:A,edge:E.edge});}return I},u=c("top",e,true),f=c("left",t,false),p=c("bottom",n,true),m=c("right",r,false),g=[...u,...m,...p,...f],h=Fs(t),b=Fs(r),x=Fs(e),v=Fs(n),w=(D,y)=>D.length===1&&Math.abs(D[0].startPt)<1e-6&&Math.abs(D[0].endPt-y)<1e-6,C=w(u,o),M=w(f,a),P=w(p,o),B=w(m,a),O=[],k=(D,y,ee)=>{for(let I of y){let{edge:E,startPt:j,endPt:A}=I;E.style==="double"?lP(O,D,E,j,A,o,a,D==="top"||D==="bottom"?h:void 0,D==="top"||D==="bottom"?b:void 0,D==="left"||D==="right"?x:void 0,D==="left"||D==="right"?v:void 0):E.style==="triple"?dP(O,D,E,j,A,o,a):ee||cP(O,D,E,j,A,o,a);}};k("top",u,C),k("left",f,M),k("bottom",p,P),k("right",m,B);let _={};return C&&u[0]&&(_.top=u[0].edge),M&&f[0]&&(_.left=f[0].edge),P&&p[0]&&(_.bottom=p[0].edge),B&&m[0]&&(_.right=m[0].edge),g.length>0&&(_.edgeSegments=g),O.length>0&&(_.strokes=O),_}function kc(e,t,n,r,o,a){let i=e.length,s=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let l=Cg(e,n,o,a),d=(u,f,p)=>Ts(u.borders[f],tP(t,f,p),{}),c=(u,f,p,m)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?Ms:Dg(p,m);for(let u=0;u<i;u+=1){let f=e[u];for(let p=0;p<f.length;p+=1){let m=f[p];if(m.vMergeContinue){s[u][p]={};continue}let g=m.mergeRowSpan??1,h=u+g-1,b=u===0,x=h===i-1,v=m.gridColumn===0,w=m.gridColumn+m.gridSpan-1,C=w>=n-1,M=[];if(b)for(let j=m.gridColumn;j<=w;j+=1)M.push({gridStart:j,gridEnd:j+1,edge:Os(d(m,"top",false))});let P=[];if(v)for(let j=u;j<=h;j+=1)P.push({gridStart:j,gridEnd:j+1,edge:Os(d(m,"left",false))});let B=[];for(let j=m.gridColumn;j<=w;j+=1){let A;if(x)A=d(m,"bottom",false);else {let T=Ic(l,h+1,j,o);T?.cell.vMergeContinue?A=qe:A=c(m.borders.bottom,T?T.cell.borders.top:qe,d(m,"bottom",true),T?d(T.cell,"top",true):t.insideH);}B.push({gridStart:j,gridEnd:j+1,edge:Os(A)});}let O=[];for(let j=u;j<=h;j+=1){let A;if(C)A=d(m,"right",false);else {let T=Ic(l,j,w+1,o);A=c(m.borders.right,T?T.cell.borders.left:qe,d(m,"right",true),T?d(T.cell,"left",true):t.insideV);}O.push({gridStart:j,gridEnd:j+1,edge:Os(A)});}let k=Cs(M),_=Cs(P),D=Cs(B),y=Cs(O);if(!r){let j={},A=Bs(k,m.gridColumn,w+1),T=Bs(_,u,h+1),H=Bs(D,m.gridColumn,w+1),F=Bs(y,u,h+1);A&&(j.top=A),T&&(j.left=T),H&&(j.bottom=H),F&&(j.right=F);let K=[],W=(V,Y)=>{for(let Q of Y)Q.edge&&K.push({side:V,gridStart:Q.gridStart,gridEnd:Q.gridEnd,startPt:Q.gridStart,endPt:Q.gridEnd,edge:Q.edge});};W("top",k),W("left",_),W("bottom",D),W("right",y),K.length>0&&(j.edgeSegments=K),s[u][p]=j;continue}let ee=r.cellBoxes[u][p],I=[0],E=0;for(let j=u;j<=h;j+=1){let A=r.rowBands[j];E+=A.height,I.push(E);}I.length>1&&(I[I.length-1]=ee.height),s[u][p]=uP(k,_,D,y,ee.width,ee.height,r.columnWidthsPt,m.gridColumn,I,u);}}return s}function vr(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var Oc=Eg,Cc=Ng;var zg=31680/20,qt=Object.freeze({type:"auto",value:0}),fP=100,pP=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function mP(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Lc(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Hg(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let t=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(t){let r=Number(t[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let n=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(n){let r=Number(n[1])*pP[n[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function Tr(e){if(!e)return qt;let t=Lc(e,"type");if(t!==void 0&&t!=="pct"&&t!=="dxa")return t==="nil"?{type:"nil",value:0}:qt;let n=Lc(e,"w");if(n===void 0)return qt;let r=Hg(n);if(!r)return qt;let o=/^\d{1,9}$/.test(n);if(r.kind==="percent"||o&&t==="pct"){let a=r.kind==="percent"?r.percent:Number(n)/50;return !Number.isFinite(a)||a<=0?qt:{type:"pct",value:Math.min(a,fP)}}return !Number.isFinite(r.pt)||r.pt<=0?qt:{type:"dxa",value:Math.min(r.pt,zg)}}function ja(e,t){if(!e)return;let n=Tr(e);if(n.type==="dxa")return Math.min(n.value,t)}function jg(e){let t=mP(e,"tblGrid");if(!t)return [];let n=[];for(let r of t.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(n.push(r),n.length>=1024))break;return n}function gP(e){let t=[];for(let n of e){let r=Lc(n,"w"),o=r===void 0?null:Hg(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){t.push(void 0);continue}t.push(o.pt>zg?void 0:o.pt);}return t}var Bc=1,_g=.001;function hP(e,t,n,r){let o=[];for(let i=0;i<n;i+=1)o.push(e[i]);let a=t.filter(i=>i.start<n&&(i.preferred.type==="dxa"||i.preferred.type==="pct"&&r>0)).sort((i,s)=>i.span-s.span);for(let i of a){let s=Math.min(i.start+i.span,n);if(s<=i.start)continue;let l=i.preferred.type==="pct"?r*i.preferred.value/100:i.preferred.value;if(!Number.isFinite(l)||l<=0)continue;if(s-i.start===1){let f=o[i.start];o[i.start]=f===void 0?l:Math.max(f,l);continue}let d=[],c=l;for(let f=i.start;f<s;f+=1){let p=o[f];p===void 0?d.push(f):c-=p;}if(d.length===0||c<=0)continue;let u=c/d.length;for(let f of d)o[f]=u;}return o}function Gg(e){let{columnCount:t,tableWidth:n}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:Bc,a=n.type==="dxa"?n.value:n.type==="pct"?o*n.value/100:0,i=gP(e.gridCols),s=hP(i,e.claims,t,a),l=0,d=0;for(let b of s)b===void 0?d+=1:l+=b;let c=[];if(d>0){let b=l>0?l/Math.max(t-d,1):o/t,x=Math.max(o-l,0)/d,v=Math.max(Math.min(x,b),Bc);for(let w of s)c.push(w??v);}else for(let b of s)c.push(b);let u=c.reduce((b,x)=>b+x,0);if(!Number.isFinite(u)||u<=0)return new Array(t).fill(o/t);let f=t*Bc,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),g=n.type==="pct"&&a>0;if(u<=m+_g&&!g||Math.abs(u-m)<=_g)return c;let h=m/u;return c.map(b=>b*h)}var zs=16,Wa=3,_s=31680/20,nh=31680/20,Wg=1023,yP=256,$g=31680/20;function Xg(e){let t=e&&he(e,"jc");if(!t)return;let n=De(t,"val");if(n==="center")return "center";if(n==="right"||n==="end")return "right";if(n==="left"||n==="start")return "left"}var Vg=31680/20,rh={top:Wa,right:Wa,bottom:Wa,left:Wa};function he(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function De(e,t){return e.attributes.find(n=>n.localName===t)?.value}function bP(e){let t=e&&he(e,"gridSpan"),n=t&&De(t,"val");if(!n||!/^\d{1,7}$/.test(n))return 1;let r=Number(n);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function Yg(e,t){let n=e&&he(e,t),r=n&&De(n,"val");if(!r||!/^\d{1,7}$/.test(r))return 0;let o=Number(r);return Number.isInteger(o)&&o>0?Math.min(o,1024):0}function xP(e){let t=e&&he(e,"vMerge");return t?De(t,"val")!=="restart":false}function SP(e){let t=e&&he(e,"vAlign"),n=t&&De(t,"val");return n==="center"?"center":n==="bottom"?"bottom":"top"}function Kg(e){return Cd(e&&he(e,"shd"))}function Ug(e,t){let n=e&&he(e,t);if(!n)return false;let r=De(n,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var Ga=Object.freeze({rule:"auto"});function RP(e){let t=e&&he(e,"trHeight");if(!t)return Ga;let n=De(t,"hRule"),r=n==="auto"||n==="exact"||n==="atLeast"?n:void 0;if(r==="auto")return Ga;let o=De(t,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return Ga;let a=Number(o);if(!Number.isFinite(a)||a<=0)return Ga;let i=Math.min(a/20,nh);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:Ga}function Ds(e){if(!e)return;let t=De(e,"w");if(t===void 0||!/^\d{1,9}$/.test(t))return;let n=Number(t);if(!Number.isFinite(n)||n<0)return;let r=n/20;return r>_s?_s:r}function Fc(e){if(!e)return {};let t=Ds(he(e,"top")),n=Ds(he(e,"left")??he(e,"start")),r=Ds(he(e,"bottom")),o=Ds(he(e,"right")??he(e,"end"));return {...t===void 0?{}:{top:t},...n===void 0?{}:{left:n},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function Mc(e,t){return {top:t.top??e.top,right:t.right??e.right,bottom:t.bottom??e.bottom,left:t.left??e.left}}function $a(e,t){let n=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=t-n;return !Number.isFinite(r)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?r:Math.min(e.indentPt,r)}function qg(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function Zg(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let t=Number(e);if(!Number.isFinite(t))return;let n=t/20;return Math.max(-Vg,Math.min(Vg,n))}function Jg(e){let t=e&&he(e,"tblpPr");if(!t)return;let n=De(t,"tblpXSpec"),r=n==="left"||n==="center"||n==="right"||n==="inside"||n==="outside"?n:void 0,o=De(t,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:qg(De(t,"horzAnchor"))??"text",vertAnchor:qg(De(t,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:Zg(De(t,"tblpX"))??0,...a?{ySpec:a}:{},yPt:Zg(De(t,"tblpY"))??0}}function oh(e,t,n){let r=n[e.horzAnchor],o=r.width-t,a;if(e.xSpec==="center"?a=r.left+o/2:e.xSpec==="right"||e.xSpec==="outside"?a=r.left+o:e.xSpec?a=r.left:a=r.left+e.xPt,!Number.isFinite(a))return r.left;let i=n.page.left+n.page.width;return Math.max(n.page.left,Math.min(a,i))}var wP=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function Mn(e,t){let n=De(e,t);if(n!==void 0)return n!=="0"&&n!=="false"&&n!=="off"}function PP(e){let t=e&&he(e,"tblLook");if(!t)return wP;let n=De(t,"val"),r=n&&/^[0-9A-Fa-f]{1,4}$/.test(n)?Number.parseInt(n,16):0;return {firstRow:Mn(t,"firstRow")??(r&32)!==0,lastRow:Mn(t,"lastRow")??(r&64)!==0,firstColumn:Mn(t,"firstColumn")??(r&128)!==0,lastColumn:Mn(t,"lastColumn")??(r&256)!==0,rowBanding:Mn(t,"noHBand")===void 0?(r&512)===0:!Mn(t,"noHBand"),columnBanding:Mn(t,"noVBand")===void 0?(r&1024)===0:!Mn(t,"noVBand")}}var Ec=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],Qg=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function eh(e,t){let n=e&&he(e,"cnfStyle");if(!n)return;let r=De(n,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<Ec.length;o+=1)r[o]==="1"&&t.add(Ec[o]);for(let o=0;o<Qg.length;o+=1)Mn(n,Qg[o])===true&&t.add(Ec[o]);}var IP=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function vP(e){let t=new Set;eh(e.rowProperties,t),eh(e.cellProperties,t);let{look:n,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:s}=e,l=t.has("firstRow")||n.firstRow&&r===0,d=t.has("lastRow")||n.lastRow&&r===o-1,c=t.has("firstCol")||n.firstColumn&&a===0,u=t.has("lastCol")||n.lastColumn&&a+i>=s;if(!(t.has("band1Vert")||t.has("band2Vert"))&&n.columnBanding&&!c&&!u){let g=a-(n.firstColumn?1:0);t.add(g%2===0?"band1Vert":"band2Vert");}if(!(t.has("band1Horz")||t.has("band2Horz"))&&n.rowBanding&&!l&&!d){let g=r-(n.firstRow?1:0);t.add(g%2===0?"band1Horz":"band2Horz");}c&&t.add("firstCol"),u&&t.add("lastCol"),l&&t.add("firstRow"),d&&t.add("lastRow"),l&&c&&t.add("nwCell"),l&&u&&t.add("neCell"),d&&c&&t.add("swCell"),d&&u&&t.add("seCell");let m=[];for(let g of IP)t.has(g)&&m.push(g);return m}var th=new WeakMap;function Fo(e,t,n,r,o="all-markup"){let a=th.get(e);if(a&&a.contentWidthPt===t&&a.depth===n&&a.styleCascade===r&&a.displayMode===o)return a.structure;let i=TP(e,t,n,r,o);return th.set(e,{contentWidthPt:t,depth:n,styleCascade:r,displayMode:o,structure:i}),i}function TP(e,t,n,r,o){if(n>=zs||e.kind!=="table")return null;let a=he(e,"tblPr"),i=a&&he(a,"tblStyle")?De(he(a,"tblStyle"),"val"):void 0,s=r?dg(r,i):Da,l=PP(a),d=rh,c=Oc;for(let H of s.tablePropertyNodes)d=Mc(d,Fc(he(H,"tblCellMar"))),c=wc(c,Ns(H));let u=Mc(d,Fc(a&&he(a,"tblCellMar"))),f=wc(c,a?Ns(a):Oc),p=new Map,m=H=>{if(s===Da)return yc;let F=H.join("|"),K=p.get(F);if(K)return K;let W=cg(s,H);return p.size<yP&&p.set(F,W),W},g=[],h=[],b=1;for(let H of chunkIMMAG4QP_cjs.oe(e.children)){if(H.kind!=="tableRow")continue;let F=he(H,"trPr"),K=[],W=[],V=[],Y=Math.min(Yg(F,"gridBefore"),Wg);Y>0&&h.push({start:0,span:Y,preferred:Tr(F&&he(F,"wBefore"))});let Q=Y,G=chunkIMMAG4QP_cjs.oe(H.children);for(let xe of G){if(xe.kind!=="tableCell")continue;let ae=he(xe,"tcPr"),se=Math.min(Q,Wg),we=Math.min(bP(ae),1024-se),Ie=Tr(ae&&he(ae,"tcW"));K.push(se),W.push(we),V.push(Ie),h.push({start:se,span:we,preferred:Ie}),Q=se+we;}let U=Yg(F,"gridAfter"),re=Math.min(Q+U,1024);U>0&&Q<1024&&h.push({start:Q,span:Math.min(U,1024-Q),preferred:Tr(F&&he(F,"wAfter"))}),re>b&&(b=re),g.push({node:H,cells:G,properties:F,starts:K,spans:W,preferred:V,gridColumns:re});}let x=jg(e),v=x.length>0?x.length:b,w=g.length,C=[];for(let H=0;H<g.length;H+=1){let F=g[H],K=F.node,W=F.properties,V=0,Y=[];for(let ae of F.cells){if(ae.kind!=="tableCell")continue;let se=he(ae,"tcPr"),we=F.starts[V],Ie=F.spans[V],Se=F.preferred[V]??qt,Be=vP({look:l,rowIndex:H,rowCount:w,gridColumn:we,gridSpan:Ie,columnCount:v,rowProperties:W,cellProperties:se});V+=1;let He,je=Cc;for(let Ht of Be){let jt=s.conditional.get(Ht);if(!jt)continue;let Qe=he(jt,"tcPr");He=Kg(Qe)??He,je=Pc(je,As(Qe));}let ft=Kg(se)??He,zt=Mc(u,Fc(se&&he(se,"tcMar"))),Xe=Ha(ae.children,o);Y.push({id:ae.id,gridSpan:Ie,gridColumn:we,...x[we]?.id?{gridColumnId:x[we].id}:{},vMergeContinue:xP(se),vAlign:SP(se),margins:zt,borders:Pc(je,se?As(se):Cc),...ft===void 0?{}:{shading:ft},preferredWidth:Se,styleFormatting:m(Be),blocks:Xe});}let Q=W?he(W,"ins")??he(W,"del"):void 0,G=Q?Q.localName==="ins"?"insert":"delete":void 0,U=Q&&De(Q,"id"),re=Q&&De(Q,"author"),xe=Q&&De(Q,"date");C.push({id:K.id,...G?{revisionKind:G}:{},...U!==void 0?{revisionId:U}:{},...re!==void 0?{revisionAuthor:re}:{},...xe!==void 0?{revisionDate:xe}:{},isHeader:Ug(W,"tblHeader"),cantSplit:Ug(W,"cantSplit"),height:RP(W),cells:Y});}let M=qt,P,B,O,k,_;for(let H of s.tablePropertyNodes){let F=he(H,"tblW");F&&(M=Tr(F));let K=he(H,"tblLayout");K&&(P=De(K,"type")==="fixed"),B=ja(he(H,"tblInd"),$g)??B,O=Xg(H)??O,k=ja(he(H,"tblCellSpacing"),_s)??k,_=Jg(H)??_;}let D=a&&he(a,"tblW"),y=D?Tr(D):M,ee=a&&he(a,"tblLayout"),I=ee?De(ee,"type")==="fixed":P??false,E=ja(a&&he(a,"tblInd"),$g)??B??0,j=Xg(a)??O??"left",A=n===0?Jg(a)??_:void 0,T=ja(a&&he(a,"tblCellSpacing"),_s)??k??0;return {columnWidthsPt:Gg({gridCols:x,claims:h,columnCount:v,contentWidthPt:t,tableWidth:y,layoutFixed:I}),rows:C,tableWidth:y,layoutFixed:I,indentPt:E,alignment:j,...A?{float:A}:{},cellSpacingPt:T,tableBorders:f,defaultMargins:u}}function Hs(e){let t=[],n=0;for(let r of e.members){let o=chunkIMMAG4QP_cjs.Ud(r).length;t.push({paragraphId:r.id,base:n,length:o}),n+=o;}return {members:t,total:n}}function Nc(e,t){let n;for(let r of e.members){if(r.base>t)break;(n===void 0||r.length>0||r.base>n.base)&&(n=r);}return n??e.members[e.members.length-1]}function ah(e,t){let n=Nc(t,e.start);if(!n)return e;let r=e.end-n.base;return {paragraphId:n.paragraphId,start:e.start-n.base,end:Math.min(r,n.length)}}function kP(e,t){return {...e,range:ah(e.range,t)}}function js(e,t){return e.map(n=>{let r=n.spans.map(u=>kP(u,t)),o=r[0],a=n.drawings?.map(u=>{let f=Nc(t,u.start);return f?{...u,paragraphId:f.paragraphId,start:u.start-f.base}:u}),i=o?r.filter(u=>u.range.paragraphId===o.range.paragraphId):[],s=o?(a??[]).filter(u=>u.paragraphId===o.range.paragraphId):[],l=o?{paragraphId:o.range.paragraphId,start:Math.min(o.range.start,...s.map(u=>u.start)),end:Math.max(i[i.length-1].range.end,...s.map(u=>u.start+1))}:ah(n.range,t),d=a,c=n.deletedRanges?.map(u=>({deleted:u,member:Nc(t,u.start)})).filter(({member:u})=>u?.paragraphId===l.paragraphId).map(({deleted:u,member:f})=>({start:u.start-(f?.base??0),end:u.end-(f?.base??0)}));return {...n,range:l,spans:r,...d?{drawings:d}:{},...c?{deletedRanges:c}:{}}})}var Dc=512,sh=9,Zt=31680/20,OP=8,CP=128;function Xa(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkIMMAG4QP_cjs.ca&&e.localName===t}function Ze(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Tt(e,t){for(let n of e.children)if(Xa(n,t))return n}function En(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function BP(e){let t=e/20;return !Number.isFinite(t)||t<=0?0:t>Zt?Zt:t}function Ac(e){let t=e/20;return Number.isFinite(t)?t>Zt?Zt:t<-Zt?-Zt:t:0}function LP(e){let t={left:0,right:0,hanging:0,firstLine:0};if(!e)return t;let n=Tt(e,"ind");if(!n)return t;let r=En(Ze(n,"left")??Ze(n,"start"),true),o=En(Ze(n,"right")??Ze(n,"end"),true),a=En(Ze(n,"hanging")),i=En(Ze(n,"firstLine"),true);return {left:r===null?0:Ac(r),right:o===null?0:Ac(o),hanging:a===null?0:BP(a),firstLine:i===null?0:Ac(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function FP(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function MP(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function EP(e,t){let n=Tt(e,t);if(!n)return false;let r=Ze(n,"val");return r!=="0"&&r!=="false"&&r!=="off"}function ih(e,t){let n=Tt(e,t);if(!n)return;let r=Ze(n,"val");if(!(r===void 0||r.length===0||r.length>CP))return r}function NP(e,t){for(let n of e){if(n.localName!==t)continue;let r=n.attributes?.val;return !(r==="0"||r==="false")}return false}function lh(e){let t=En(Ze(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Tt(e,"start"),r=1;if(n){let b=En(Ze(n,"val"));b!==null&&b>=0&&(r=Math.min(b,9999));}let o=Tt(e,"numFmt"),a=(o?Ze(o,"val"):void 0)??"decimal",i=Tt(e,"lvlText"),s=i?Ze(i,"val")??"":"",l=Tt(e,"lvlJc"),d=MP(l?Ze(l,"val"):void 0),c=Tt(e,"suff"),u=FP(c?Ze(c,"val"):void 0),f=Tt(e,"lvlRestart"),p;if(f){let b=En(Ze(f,"val"));b!==null&&b>=0&&b<=9&&(p=b);}let m=Tt(e,"pPr"),g=Tt(e,"rPr"),h=g?fo(g):[];return {ilvl:t,start:r,numFmt:a.length>64?"decimal":a,lvlText:s.length>64?s.slice(0,64):s,lvlJc:d,suff:u,indent:LP(m),...p!==void 0?{lvlRestart:p}:{},isLgl:EP(e,"isLgl"),runProperties:h,vanish:NP(h,"vanish")}}function AP(e){let t=Ze(e,"abstractNumId");if(t===void 0||t.length===0||t.length>64)return null;let n=new Map;for(let a of e.children){if(!Xa(a,"lvl"))continue;if(n.size>=9)break;let i=lh(a);i&&!n.has(i.ilvl)&&n.set(i.ilvl,i);}let r=ih(e,"numStyleLink"),o=ih(e,"styleLink");return {abstractNumId:t,levels:n,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function DP(e){let t=En(Ze(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Tt(e,"startOverride"),r;if(n){let i=En(Ze(n,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=Tt(e,"lvl"),a=o?lh(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:t,override:{}}:{ilvl:t,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function _P(e){let t=Ze(e,"numId");if(t===void 0||t.length===0||t.length>64)return null;let n=Tt(e,"abstractNumId"),r=n?Ze(n,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!Xa(a,"lvlOverride"))continue;if(o.size>=sh)break;let i=DP(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:t,abstractNumId:r,overrides:o}}function zP(e){let t=new Map,n=new Map;if(!e)return {abstractNums:t,nums:n};let r=0,o=0;for(let a of e.children){if(Xa(a,"abstractNum")){if(r>=Dc)continue;r+=1;let i=AP(a);i&&!t.has(i.abstractNumId)&&t.set(i.abstractNumId,i);continue}if(Xa(a,"num")){if(o>=Dc)continue;o+=1;let i=_P(a);i&&!n.has(i.numId)&&n.set(i.numId,i);}}return {abstractNums:t,nums:n}}function HP(e,t,n){let r=new Set([t.abstractNumId]),o=t;for(let a=0;a<OP;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let s=n(i);if(s===void 0)return null;let l=e.nums.get(s);if(!l)return null;let d=e.abstractNums.get(l.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function dh(e,t){let n=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=HP(e,a,t);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),n=true);}return n?{abstractNums:r,nums:e.nums}:e}function Mo(e,t,n){if(n<0||n>8)return null;let r=e.nums.get(t);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(n),i=a?.level??o.levels.get(n);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var _c=Object.freeze({abstractNums:new Map,nums:new Map});function jP(e,t){let n=e.nums.get(t),r=[];for(let o=0;o<=8;o+=1){let a=Mo(e,t,o);if(!a){r.push(1);continue}let i=n?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function GP(e,t,n){let r=[];for(let o=0;o<=8;o+=1){let a=Mo(e,t,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...n]}}function WP(e,t){if(t===0)return null;if(t===void 0)return e-1;let n=t-1;return n>=e?null:n}function zc(e){let t=new Map,n=new Map,r=new Map,o=a=>{let i=t.get(a);i||(i=[0,0,0,0,0,0,0,0,0],t.set(a,i));let s=n.get(a);s||(s=[false,false,false,false,false,false,false,false,false],n.set(a,s));let l=r.get(a);return l||(l=jP(e,a),r.set(a,l)),{counters:i,initialized:s,starts:l}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let s=Mo(e,a,i);if(!s)return null;let{abstractNumId:l,level:d}=s,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=GP(e,a,f);for(let w=i+1;w<=8;w+=1){let C=Mo(e,a,w);if(!C)continue;let M=WP(w,C.level.lvlRestart);M!==null&&i<=M&&(u[w]=false);}let m=f[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let g=c.slice(),h=u.slice(),b=g.map((w,C)=>h[C]?w:f[C]??1),x=d.isLgl?p.map(w=>w==="bullet"||w==="none"?w:"decimal"):p,v=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:$d(d.lvlText,b,x);return {abstractNumId:l,numId:a,ilvl:i,level:d,counters:g,markerText:v}}}}var Gc=new WeakMap;function GB(e,t){let n=t.dependencyKeys.size===0||[...t.dependencyKeys].every(r=>r===chunkIMMAG4QP_cjs.g.story);Gc.set(e,{preservesNumberedSequence:t.impact==="text-local"&&!t.structural&&t.created.size===0&&t.deleted.size===0&&n});}function XP(e){let t=Gc.get(e);return Gc.delete(e),t}function VP(e){return [e.fontFamily??"",e.fontSizePt,e.bold?1:0,e.italic?1:0,e.characterSpacingPt,e.horizontalScalePercent,e.verticalAlign,e.hidden?1:0,e.kerningMinPt,e.caps?1:0,e.smallCaps?1:0].join(",")}function Wc(e){return e.kind!=="textValue"}function ch(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Gs(e,t){for(let n of e.children)if(Wc(n)&&n.localName===t)return n}function $c(e){let t=null;for(let n of e){if(!Wc(n))continue;let r=Gs(n,"numPr");if(!r)continue;let o=Gs(r,"ilvl"),a=Gs(r,"numId"),i=a?ch(a,"val"):void 0,s=o?ch(o,"val"):"0";if(!i||i==="0"){t=null;continue}if(i.length>64){t=null;continue}let l=/^\d{1,2}$/.test(s??"")?Number(s):0;if(l<0||l>8){t=null;continue}t={numId:i,ilvl:l};}return t}function YP(e,t){let n=new Set,r=e.styles.get(t);for(let o=0;r!==void 0&&o<ws;o+=1){if(n.has(r.styleId))return;n.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?$c([a]):null;if(i)return i.numId;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var Hc=new WeakMap;function Xc(e,t){if(!t)return e;let n=Hc.get(e);if(n&&n.styleCascade===t)return n.linked;let r=dh(e,a=>YP(t,a)),o={styleCascade:t,linked:r};return Hc.set(e,o),Hc.set(r,o),r}function uh(e){return Number.isFinite(e)?e>Zt?Zt:e<-Zt?-Zt:e:0}function fh(e){let t=null;for(let n of e){if(n.localName!=="ind")continue;let r=n.attributes?.hanging,o=n.attributes?.firstLine;r===void 0&&o===void 0||(t={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?uh(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?uh(Number(o)/20):0});}return t}function ph(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.left!==void 0||t.attributes?.start!==void 0))}function mh(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.right!==void 0||t.attributes?.end!==void 0))}function bh(e,t,n=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=Ea(t),a=Ea(n),i={hanging:e.hanging,firstLine:e.firstLine},s=ph(n)?a.left:r.left?e.left:ph(t)?o.left:e.left,l=mh(n)?a.right:r.right?e.right:mh(t)?o.right:e.right,d=fh(n)??(r.firstLineOffset?i:fh(t)??i);return {left:s,right:l,...d}}function Vc(e,t=8){let n=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){n.push(i);continue}if(!(i.kind!=="table"||a>=t)){for(let s of chunkIMMAG4QP_cjs.oe(i.children))if(s.kind==="tableRow")for(let l of chunkIMMAG4QP_cjs.oe(s.children)){if(l.kind!=="tableCell")continue;let d=chunkIMMAG4QP_cjs.Lb(l.children);r(d,a+1);}}}};return r(e,0),n}var gh=new WeakMap;function xh(e,t){let n=gh.get(e);if(n&&n.styleCascade===t)return n;let r=e.children.find(l=>l.kind==="paragraphProperties"),o=t?Bo(t,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&Wc(r)?Gs(r,"rPr"):void 0,s={styleCascade:t,numPr:$c(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:vt(r),inheritedMarkProps:o?o.markRunProperties:vt(i),perLevel:new WeakMap};return gh.set(e,s),s}function Sh(e,t,n,r){let o=new Map;if(t.nums.size===0)return o;let a=Xc(t,n),i=zc(a);for(let s of Vc(e)){let l=xh(s,n),d=l.numPr;if(!d)continue;let c=i.advance(d.numId,d.ilvl);if(!c)continue;let u=l.perLevel.get(c.level);if(!u){let h=bh(c.level.indent,l.inheritedParagraphProperties,l.directProps),b=Ln(l.inheritedMarkProps,c.level.runProperties,n);u={indent:h,markerStyle:Ee(b,n?.themeFonts)},l.perLevel.set(c.level,u);}let{indent:f,markerStyle:p}=u,m=po(c.markerText,p.fontFamily,r),g=[c.numId,c.ilvl,c.level.numFmt,c.level.lvlText,f.left,f.right,f.hanging,f.firstLine,c.level.lvlJc,c.level.suff,c.level.vanish?1:0,m,VP(p)].join("|");o.set(s.id,{numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:m,markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:f,markerStyle:p,cacheToken:g});}return o}var Rh=new WeakMap,wh=new WeakMap;function hh(e,t,n){let r=n?wh.get(n):Rh.get(t);if(r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable)return r}function KP(e,t,n){t?wh.set(t,n):Rh.set(e,n);}function Ph(e,t,n){if(e.listItems===void 0){let i=hh(e,t,n);if(i&&n===void 0)return {...e,numberingIndex:i.linkedIndex,...i.listItems?{listItems:i.listItems}:{}}}let r=e.listItems===void 0?hh(e,t,n):void 0,o=r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable?r.linkedIndex:Xc(e.numberingIndex??_c,e.styleCascade),a=e.listItems??(o.nums.size>0?JP(t,e.numberingIndex,o,e.styleCascade,e.isFontAvailable,n):void 0);return e.listItems===void 0&&KP(t,n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:e.isFontAvailable,linkedIndex:o,listItems:a}),{...e,numberingIndex:o,...a?{listItems:a}:{}}}function kr(e,t){return Ph(e,t,void 0)}function Ih(e,t,n){return Ph(e,t,n)}var yh=new WeakMap,UP=Object.freeze([]);function qP(e,t){let n=yh.get(e);if(n&&n.styleCascade===t)return n.numbered;let r=Vc([e]).filter(a=>xh(a,t).numPr!==null),o=r.length>0?r:UP;return yh.set(e,{styleCascade:t,numbered:o}),o}var Eo=new WeakMap,jc=new WeakMap;function ZP(e,t){return e.length===t.length&&e.every((n,r)=>{let o=t[r];if(!o||n.id!==o.id)return false;let a=n.children.find(s=>s.kind==="paragraphProperties"),i=o.children.find(s=>s.kind==="paragraphProperties");return a===i})}function JP(e,t,n,r,o,a){let i=e[0],s=e[e.length-1],l=a?jc.get(a):(i?Eo.get(i):void 0)??(s?Eo.get(s):void 0);if((a?XP(a):void 0)?.preservesNumberedSequence&&l&&l.rawIndex===t&&l.styleCascade===r&&l.isFontAvailable===o)return l.listItems;let c=new Array(e.length),u=l!==void 0&&l.rawIndex===t&&l.styleCascade===r&&l.isFontAvailable===o&&l.blocks.length===e.length;for(let m=0;m<e.length;m+=1){let g=e[m],h=l&&l.blocks[m]===g?l.numberedByBlock[m]:qP(g,r);c[m]=h,u&&!ZP(h,l.numberedByBlock[m])&&(u=false);}if(l&&u){let m={...l,blocks:e,numberedByBlock:c};return a?jc.set(a,m):(i&&Eo.set(i,m),s&&s!==i&&Eo.set(s,m)),l.listItems}let f=Sh(e,n,r,o),p={rawIndex:t,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?jc.set(a,p):(i&&Eo.set(i,p),s&&s!==i&&Eo.set(s,p)),f}function Ws(e,t,n,r){if((!e.markerText||e.indent.hanging<=0&&t<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=Math.min(0,o),s=Math.max(i,o-a),l=Math.max(a,t),d=s;return e.markerAlign==="right"?d=o-t:e.markerAlign==="center"&&(d=s+(l-t)/2),d<i&&(d=i),{x:d,y:n,width:Math.max(t,0),height:r}}function QP(e,t,n=io,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=t.measure(e.markerText,e.markerStyle),a=Ws(e,o,0,0);if(!a)return 0;let i=e.indent.left,s=a.x+a.width;return e.suffix==="nothing"?s-i:e.suffix==="space"?s+t.measure(" ",e.markerStyle)-i:s<=i?0:so(n,s,r).positionPt-i}function $s(e,t,n,r,o){return e?QP(e,n,r,o===void 0?void 0:t.left+o):t.hanging>0?-t.hanging:t.firstLine}function Xs(e,t,n,r=0){if(!e||!e.markerText||!n)return;let o=t.measure(e.markerText,e.markerStyle),a=Ws(e,o,n.y,n.height);if(a)return {text:e.markerText,style:e.markerStyle,box:{x:a.x+r,y:a.y,width:a.width,height:a.height},level:e.ilvl,numId:e.numId,numFmt:e.numFmt}}var vh=new WeakMap,Th=new WeakMap,kh=new WeakMap,Oh=new WeakMap;function Ch(e){let t=Oh.get(e);if(t)return t;let n=new Set,r=[];for(let o of We(e)){for(let a of o.lines)for(let i of lt(a))n.has(i.paragraphId)||(n.add(i.paragraphId),r.push(i.paragraphId));o.lines.length===0&&!n.has(o.paragraphId)&&(n.add(o.paragraphId),r.push(o.paragraphId));}return Oh.set(e,r),r}function Or(e){let t=vh.get(e);if(t)return t;let n=new Set,r=[];for(let o of e.pages)for(let a of Ch(o))n.has(a)||(n.add(a),r.push(a));return vh.set(e,r),r}function Va(e){let t=Th.get(e);if(t)return t;let n=new Map;for(let[r,o]of Or(e).entries())n.set(o,r);return Th.set(e,n),n}function Bh(e){let t=kh.get(e);if(t)return t;let n=new Set,r=[],o=a=>{for(let i of Yt(a)){for(let s of i.lines)for(let l of lt(s))n.has(l.paragraphId)||(n.add(l.paragraphId),r.push(l.paragraphId));i.lines.length===0&&!n.has(i.paragraphId)&&(n.add(i.paragraphId),r.push(i.paragraphId));}};for(let a of e.pages){for(let i of Ch(a))n.has(i)||(n.add(i),r.push(i));for(let i of [a.header,a.footer])i&&o(i.fragments);for(let i of [a.footnotes,a.endnotes])if(i){i.separator&&o(i.separator.fragments);for(let s of i.notes)o(s.fragments);}}return kh.set(e,r),r}var Lh=new WeakMap;function Yc(e){let t=Lh.get(e);if(t)return t;let n=[...We(e)];for(let r of [e.header,e.footer])r&&n.push(...Yt(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)n.push(...Yt(o.fragments));return Lh.set(e,n),n}var Fh=new WeakMap;function lt(e){let t=Fh.get(e);if(t)return t;let n={paragraphId:e.range.paragraphId,start:e.range.start,end:e.range.end,spans:e.spans,drawings:e.drawings??[]},o=e.spans.some(a=>a.range.paragraphId!==e.range.paragraphId)?eI(e):[n];return Fh.set(e,o),o}function eI(e){let t=[];for(let n of e.spans){let r=t[t.length-1];if(r&&r.paragraphId===n.range.paragraphId){t[t.length-1]={...r,start:Math.min(r.start,n.range.start),end:Math.max(r.end,n.range.end),spans:[...r.spans,n]};continue}t.push({paragraphId:n.range.paragraphId,start:n.range.start,end:n.range.end,spans:[n],drawings:[]});}return t.map(n=>({...n,drawings:(e.drawings??[]).filter(r=>r.paragraphId===n.paragraphId)}))}function Nn(e,t){return lt(e).find(n=>n.paragraphId===t)??null}function No(e,t,n,r){let o=Va(e),a=o.get(t.paragraphId)??-1,i=o.get(n.paragraphId)??-1,s=o.get(r.paragraphId)??-1;if(a<i||a>s)return null;let l=a===i?Math.max(t.start,n.offset):t.start,d=a===s?Math.min(t.end,r.offset):t.end;return d>l?{start:l,end:d}:null}function eL(e,t){for(let n of e.pages)for(let r of We(n)){let o=rr(r).indexOf(t);if(o>0)return rr(r).slice(0,o).reverse()}return []}var Mh=new WeakMap;function rr(e){let t=Mh.get(e);if(t)return t;let n=[];for(let r of e.lines??[])for(let o of lt(r))n.includes(o.paragraphId)||n.push(o.paragraphId);return n.includes(e.paragraphId)||n.push(e.paragraphId),Mh.set(e,n),n}function tI(e,t){let n=rr(e);if(n.length===1)return n[0]===t?{start:e.range.start,end:e.range.end}:null;let r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(let a of e.lines??[]){let i=Nn(a,t);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function Kc(e,t,n){let r=tI(e,t);return r!==null&&n>=r.start&&n<r.end}function tL(e,t){for(let n of e.pages)for(let r of Yc(n))if(r.paragraphId===t)return r;for(let n of e.pages)for(let r of Yc(n))if(rr(r).includes(t))return r;return null}var Qc=8,Eh=new WeakMap;function Ys(e){let t=Eh.get(e);if(t)return t;let n=[],r=new Map,o=new Map,a=new Map,i=new Map,s=new Map,l=(c,u)=>{for(let f of c){if(f.kind==="paragraph"){if(!u)for(let p of f.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of f.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let m=a.get(f.tableId)??0;r.set(p.id,m),a.set(f.tableId,m+1);}for(let m of p.cells){if(!p.isHeaderRepeat&&!u){let g=`${f.tableId}|${m.gridColumn}`;if(m.blocks.length===0){let h=s.get(g);h&&i.set(m,h);}else s.set(g,{row:p,cell:m});}l(m.blocks,u||p.isHeaderRepeat);}}}};for(let c of e.pages)n.push(c.box.y),l(c.fragments,false);let d={pageTops:n,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return Eh.set(e,d),d}function Ua(e,t){let n=Ys(e).pageTops;if(n.length===0)return -1;let r=0,o=n.length-1,a=0;for(;r<=o;){let i=r+o>>1;n[i]<=t?(a=i,r=i+1):o=i-1;}return a}function nI(e,t){let n=e.pages[Ua(e,t.y)];if(!n)return false;for(let r of [n.header,n.footer])if(r&&Us(r.box,t))return true;return false}function Zc(e,t,n,r=false){if(!e||e.length===0)return null;let o=[...e].sort((a,i)=>a.behindDocument!==i.behindDocument?a.behindDocument?-1:1:i.relativeHeight-a.relativeHeight);for(let a of o){if(r&&a.behindDocument||!Ya(a,t))continue;let i={paragraphId:a.anchorParagraphId,offset:a.start};return {position:i,caret:{position:i,x:a.x,y:a.y,height:a.height,lineId:"",pageIndex:n},pageIndex:n,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function Ks(e,t,n,r={}){let o=e.pages[t];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??Qc,measurer:r.measurer},i=Nh(e,o.index,n),s=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),l=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=Zc(s,n,a.pageIndex);if(d)return {...d,contentControlId:i};let c=Vs(o.fragments,n,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=Zc(l,n,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let f=1;f<e.pages.length;f+=1)for(let p of [t-f,t+f]){let m=e.pages[p];if(!m)continue;let g=Vs(m.fragments,n,{...a,pageIndex:m.index},null);if(g)return {...g,contentControlId:Nh(e,m.index,n)}}return null}function lL(e,t,n,r,o={}){let a=e.pages[t];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??Qc,measurer:o.measurer};return Vs(n,r,i,null)}function rI(e,t,n={}){let r=e.pages[Ua(e,t.y)];if(!r)return null;for(let o of [r.header,r.footer]){if(!o?.anchoredDrawings||o.anchoredDrawings.length===0)continue;let a=Object.freeze({x:t.x-o.box.x,y:t.y-o.box.y}),i=Zc(o.anchoredDrawings,a,r.index);if(i)return i}return Ks(e,r.index,{x:t.x-r.contentBox.x,y:t.y-r.contentBox.y},n)}function Us(e,t){return t.x>=e.x&&t.x<e.x+e.width&&t.y>=e.y&&t.y<e.y+e.height}function qs(e,t,n){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===t&&Us(i.box,n)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function Nh(e,t,n){return qs(e,t,n)?.id??null}function Jc(e,t,n){let r=Math.max(e.x-t.x,0,t.x-(e.x+e.width)),o=Math.max(e.y-t.y,0,t.y-(e.y+e.height));return r+o*n}function oI(e,t,n){return e.kind!=="table"||Math.max(e.box.y-t.y,0,t.y-(e.box.y+e.box.height))>0?Jc(e.box,t,n):0}function Vs(e,t,n,r){if(e.length===0)return null;let o=null;for(let i of e){if(!Us(i.box,t))continue;o=i;let s=Ah(i,t,n,r);if(s)return s;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:oI(i,t,n.verticalWeight)})).sort((i,s)=>i.score-s.score);for(let{block:i}of a){let s=Ah(i,t,n,r);if(s)return s}return null}function Ah(e,t,n,r){return e.kind==="paragraph"?aI(e,t,n,r,Us(e.box,t)):pI(e,t,n)}function aI(e,t,n,r,o){let a=iI(e.lines,t.y);if(!a)return null;let i=cI(a,t.x,t.y,n),s=lI(a,t.x),l=Math.min(Math.max(i.offset,s.start),s.end),d={paragraphId:s.paragraphId,offset:l},c=qa(a,l,n.measurer,s);return {position:d,caret:{position:d,x:i.x,y:c.y,height:c.height,lineId:a.id,pageIndex:n.pageIndex},pageIndex:n.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&t.y>=a.box.y&&t.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?sI(i.drawing):null}}function iI(e,t){if(e.length===0)return null;for(let o of e)if(t>=o.box.y&&t<o.box.y+o.box.height)return o;let n=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=t<o.box.y?o.box.y-t:t-(o.box.y+o.box.height);a<r&&(r=a,n=o);}return n}function sI(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function lI(e,t){let n=lt(e),r=n[0];for(let o of n){let a=o.spans[0];if(a===void 0)continue;let i=o.spans[o.spans.length-1];if(t>=a.box.x&&(r=o),t<i.box.x+i.box.width)break}return r}function dI(e,t,n){for(let r of n??e.drawings??[])if(r.start===t||r.start+1===t)return r;return null}function Ya(e,t){let n=e.hitBounds;return t.x<n.x||t.x>=n.x+n.width||t.y<n.y||t.y>=n.y+n.height?false:nc(t.x,t.y,e.geometry)}function cI(e,t,n,r){let o=e.spans;for(let l of e.drawings??[])if(Ya(l,{x:t,y:n}))return {offset:l.start,x:l.hitBounds.x,withinSpan:true,drawing:l};if(o.length===0&&(e.drawings?.length??0)>0){let l=e.drawings[0];if(t<=l.advanceStart)return {offset:e.range.start,x:l.advanceStart,withinSpan:false,drawing:l};let d=e.drawings[e.drawings.length-1];if(t>=d.advanceEnd)return Uc(e,d.advanceEnd,r);for(let c of e.drawings??[])if(t>=c.advanceStart&&t<c.advanceEnd){let u=t>=c.x+c.width/2;return {offset:u?c.start+1:c.start,x:u?c.advanceEnd:c.advanceStart,withinSpan:Ya(c,{x:t,y:n}),drawing:c}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=o[0];if(t<=a.box.x)return {offset:e.range.start,x:a.box.x,withinSpan:false};let i=o[o.length-1],s=i.box.x+i.box.width;if(t>=s)return Uc(e,s,r);for(let l of o)if(t>=l.box.x&&t<l.box.x+l.box.width)return uI(l,t,r);for(let l=0;l<o.length;l+=1){let d=o[l];for(let c of e.drawings??[]){if(t>=c.advanceStart&&t<c.advanceEnd){let u=Ya(c,{x:t,y:n}),f=t>=c.x+c.width/2;return {offset:f?c.start+1:c.start,x:f?c.advanceEnd:c.advanceStart,withinSpan:u,drawing:c}}if(!(c.start<=d.range.start&&c.hitBounds.x+c.hitBounds.width<=d.box.x)){if(Ya(c,{x:t,y:n}))return {offset:c.start,x:c.hitBounds.x,withinSpan:true,drawing:c};if(t<d.box.x&&t>=c.hitBounds.x+c.hitBounds.width)return {offset:c.start+1,x:c.hitBounds.x+c.hitBounds.width,withinSpan:false,drawing:c};if(t<c.hitBounds.x&&t>=(o[l-1]?.box.x??e.contentX))return {offset:c.start,x:c.hitBounds.x,withinSpan:false,drawing:c}}}if(t<d.box.x){let c=o[l-1],u=c.box.x+c.box.width;return t-u<=d.box.x-t?{offset:c.range.end,x:u,withinSpan:false}:{offset:d.range.start,x:d.box.x,withinSpan:false}}}return Uc(e,s,r)}function Uc(e,t,n){let r=Gh(n.layout,e);if(r===e.range.end)return {offset:r,x:t,withinSpan:false};for(let o=e.spans.length-1;o>=0;o-=1){let a=e.spans[o];if(r<a.range.start)continue;let i=r-a.range.start,s=n.measurer?Ka(a,i,n.measurer):a.box.width*(a.range.end>a.range.start?i/(a.range.end-a.range.start):0);return {offset:r,x:a.box.x+s,withinSpan:false}}return {offset:r,x:t,withinSpan:false}}function Gh(e,t){let n=t.range.end;if(n>t.range.start&&qc(t,n-1)===chunkIMMAG4QP_cjs.Ub)return n-1;if(Ys(e).lastLineIdOfParagraph.get(t.range.paragraphId)===t.id)return n;let r=n;for(r>t.range.start&&qc(t,r-1)===`
15
+ `&&(r-=1);r>t.range.start&&qc(t,r-1)===" ";)r-=1;return r}function qc(e,t){for(let n of e.spans)if(!(t<n.range.start||t>=n.range.end))return n.text.length!==n.range.end-n.range.start?null:n.text[t-n.range.start]??null;return null}var Dh=new WeakMap,_h=new WeakMap;function zh(e){let t=pd(),n=Dh.get(e);if(n&&n.epoch===t)return n.boundaries;let r=[0];for(let o of Vt(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),Dh.set(e,{epoch:t,boundaries:r}),r}function Ka(e,t,n){let r=e.caretEdges;if(r&&t>=0&&t<r.length)return r[t];let o=_h.get(n);o||(o=new WeakMap,_h.set(n,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(t);if(i!==void 0)return i;let s=t<=0?0:Mt(e.text.slice(0,t),e.style,n);return a.set(t,s),s}function eu(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function Zs(e,t,n){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(t-e.range.start,r)),a=e.caretEdges;return a&&o<a.length?e.box.x+a[o]:!n||eu(e)?e.box.x+e.box.width*(o/r):e.box.x+Ka(e,o,n)}function qa(e,t,n,r){let o=dI(e,t,r?.drawings);if(o)return {x:t>o.start?o.advanceEnd:o.advanceStart,y:o.y,height:o.height};let a=r?r.spans:e.spans;if(a.length===0){let d=e.leading??0;return {x:e.contentX,y:e.box.y+d,height:Math.max(0,e.box.height-d-(e.trailingSpacing??0))}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(t>c.range.start&&t<c.range.end){i=c;break}if(t===c.range.end){let u=a[d+1];if(u&&u.range.start===t&&eu(c)){i=u;break}if(u&&u.range.start===t&&c.text.endsWith(" ")&&u.box.x-(c.box.x+c.box.width)>.25){i=u;break}i=c;}else t>c.range.end&&(i=c);}let s=Zs(i,t,n),l=n?.lineMetrics(i.style);return !l||l.height<=0?{x:s,y:e.box.y,height:e.box.height}:{x:s,y:e.box.y+e.baseline-l.baseline-Kd(i.style),height:l.height}}function uI(e,t,n){let r=t-e.box.x,o=e.range.end-e.range.start;if(o<=0||eu(e)){let p=r>e.box.width/2;return {offset:p?e.range.end:e.range.start,x:p?e.box.x+e.box.width:e.box.x,withinSpan:true}}if(!n.measurer){let p=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),m=Math.round(p*o),g=zh(e),h=g[0],b=Number.POSITIVE_INFINITY;for(let x of g){let v=Math.abs(x-m);v<b&&(b=v,h=x);}return {offset:e.range.start+h,x:e.box.x+e.box.width*(h/o),withinSpan:true}}let a=zh(e),i=1,s=a.length-1;for(;i<s;){let p=i+s>>1;Ka(e,a[p],n.measurer)<r?i=p+1:s=p;}let l=a[i],d=a[i-1],c=Ka(e,l,n.measurer),u=Ka(e,d,n.measurer),f=r-u<=c-r;return {offset:e.range.start+(f?d:l),x:e.box.x+(f?u:c),withinSpan:true}}function Hh(e,t,n,r){if(e.length===0)return null;for(let i of e){let s=n(i);if(t>=s&&t<s+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let s=n(i),l=t<s?s-t:t-(s+r(i));l<a&&(a=l,o=i);}return o}function fI(e,t,n,r){return {tableId:t.tableId,rowId:n.id,cellId:r.id,rowIndex:Ys(e).rowIndexById.get(n.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function pI(e,t,n,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],s=Hh(a,t.y,d=>d.box.y,d=>d.box.height);if(s){let d=Hh(s.cells,t.x,c=>c.box.x,c=>c.box.width);d&&i.push(mI(n,s,d));}let l=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||l.push({entry:{row:d,cell:c},score:Jc(c.box,t,n.verticalWeight)}));l.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...l.map(u=>u.entry)]){let u=fI(n.layout,e,d,c),f=Vs(c.blocks,t,n,u);if(f)return f}return null}function mI(e,t,n){return n.blocks.length>0?{row:t,cell:n}:Ys(e.layout).mergeOriginOf.get(n)??{row:t,cell:n}}function Wh(e,t){let n=t.paintBounds;return n.width<=0||n.height<=0?null:Object.freeze({pageIndex:e,x:n.x,y:n.y,width:n.width,height:n.height,record:t})}function gI(e,t,n){for(let r of t.lines)for(let o of r.drawings??[])if(o.drawingNodeId===n)return Wh(e,o);return null}function $h(e,t,n){if(t.kind==="paragraph")return gI(e,t,n);for(let r of t.rows)for(let o of r.cells)for(let a of o.blocks){let i=$h(e,a,n);if(i)return i}return null}function jh(e,t,n){for(let r of t){let o=$h(e,r,n);if(o)return o}return null}function hI(e,t){for(let n of e.pages){for(let o of n.anchoredDrawings??[])if(o.drawingNodeId===t)return Wh(n.index,o);let r=jh(n.index,n.fragments,t);if(r)return r;for(let o of [n.header,n.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==t)continue;let s=i.paintBounds;return s.width<=0||s.height<=0?null:Object.freeze({pageIndex:n.index,x:o.box.x+s.x-n.contentBox.x,y:o.box.y+s.y-n.contentBox.y,width:s.width,height:s.height,record:i})}let a=jh(n.index,o.fragments,t);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:n.index,x:n.header?.box.x===o.box.x||n.footer?.box.x===o.box.x?o.box.x+i.x-n.contentBox.x:a.x,y:o.box.y+i.y-n.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}function yI(e){let t=[0],n=0;for(let r of e)n+=r,t.push(n);return t}function bI(e,t){let n=t.get(e.id);return n===void 0&&(e.isHeaderRepeat?n=0:(n=t.size,t.set(e.id,n))),{...e,rowIndex:n}}function Js(e,t,n,r){return {...e,nestingDepth:n,columnEdges:e.columnEdges??yI(t),rows:e.rows.map(o=>bI(o,r))}}var Xh=new WeakMap,Ao=4,tu=6,Vh=14,xI={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function nu(e,t,n,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let s of a.rows){o({pageIndex:t,table:a,row:s,rowOrdinal:s.rowIndex,nestingDepth:i,editable:!s.isHeaderRepeat,pageContentBox:n});for(let l of s.cells)nu(l.blocks,t,n,i+1,o);}}}function uL(e){let t=Xh.get(e);if(t)return t;let n=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o],i=s=>{n.push(s);};nu(a.fragments,o,a.contentBox,0,i);for(let s of [a.header,a.footer])s&&nu(s.fragments,o,s.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(n)});return Xh.set(e,r),r}function fL(e){let t=e.sourceRevision;switch(e.kind){case "rowDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function pL(e){switch(e.kind){case "rowDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function mL(e,t){if(t.kind==="insertRow"){for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat)return n.editable?{kind:"insertRow",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}:null;return null}for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat&&n.editable)for(let r=0;r<n.table.columnEdges.length-1;r+=1){let o=Za(n.row,r);if(o===t.gridColumnId)return {kind:"insertColumn",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,gridColumnId:o,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}}return null}function Za(e,t){for(let n of e.cells)if(n.gridColumn===t)return n.gridColumnId??null;return null}function SI(e,t,n,r,o){if(!e.pages[t.pageIndex])return null;let i=t.pageContentBox,s=n-i.x-o,l=r-i.y,d=t.table,c=s-d.box.x,u=l-d.box.y;return c<-Ao||u<-Vh||c>d.box.width+Ao||u>d.box.height+tu?null:{x:c,y:u}}function RI(e,t,n,r){if(t.row.isHeaderRepeat)return null;let o=t.table,a=t.row.box.y-o.box.y+t.row.box.height;if(!o.columnEdges.slice(1).some(l=>Math.abs(n-l)<=Ao)&&n>=0&&n<=o.box.width&&Math.abs(r-a)<=Ao)return {kind:"rowDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeY:a};if(r<t.row.box.y-t.table.box.y||r>t.row.box.y-t.table.box.y+t.row.box.height)return null;for(let l=1;l<o.columnEdges.length-1;l+=1){let d=o.columnEdges[l];if(Math.abs(n-d)>Ao)continue;let c=Za(t.row,l-1),u=Za(t.row,l);if(!(!c||!u))return {kind:"columnDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,leftGridColumnId:c,rightGridColumnId:u,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:d,sheetY:t.pageContentBox.y+o.box.y+r}}let s=o.columnEdges.at(-1);if(Math.abs(n-s)<=Ao){let l=o.columnEdges.length-2,d=Za(t.row,l);return d?{kind:"rightEdge",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,gridColumnId:d,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:s,sheetY:t.pageContentBox.y+o.box.y+r}:null}return null}function gL(e,t,n,r,o=0,a){let i=a??Ua(r,n),s=i>=0?o:0,l=null,d=-1,c=-1,u=f=>{if(!f)return;let p=xI[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,l=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=SI(r,f,t,n,s);if(!p||(u(RI(e,f,p.x,p.y)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let m=f.row.box.y-f.table.box.y;p.x<=tu&&Math.abs(p.y-(m+f.row.box.height/2))<=f.row.box.height/2+tu&&u({kind:"insertRow",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});for(let g=0;g<f.table.columnEdges.length-1;g+=1){let h=f.table.columnEdges[g],b=f.table.columnEdges[g+1],x=(h+b)/2;if(Math.abs(p.x-x)>(b-h)/2+2||p.y>Vh)continue;let v=Za(f.row,g);if(v){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:v,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return l}var Yh=1048576;function ru(e=Yh){let t=e|0;return {cellsRemaining:t>0?t:0}}function ou(e,t,n,r){let o=new Map,a=new Map,i=r?.pageFragment===true,s=new Set,l=i,c=p=>{let m=a.get(p);m&&(o.set(m.id,m.span),a.delete(p));},u=()=>n!==void 0&&n.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}l&&p.isHeaderRepeat!==true&&(l=false,f(),s?.clear());let m=new Set,g=false;for(let h of p.cells){if(n){if(n.cellsRemaining<=0){g=true;break}n.cellsRemaining-=1;}let b=Math.max(0,Math.min(h.gridColumn|0,1023));if(m.add(b),h.vMergeContinue){let x=a.get(b);x?x.span+=1:s&&!s.has(b)&&(a.set(b,{id:h.id,span:1}));}else c(b),a.set(b,{id:h.id,span:1});s?.add(b);}if(g){f();break}for(let h of [...a.keys()])m.has(h)||c(h);}return f(),o}function Uh(e,t,n,r){let o=new Map,a=0,i=s=>{let l=Fo(s,t,0,n,r);if(l)for(let d of l.rows)for(let c of d.cells)for(let u of c.blocks)u.localName==="p"?o.set(u.id,a++):u.localName==="tbl"&&i(u);};for(let s of e)s.kind==="paragraph"&&s.paragraph?o.set(s.paragraph.id,a++):s.kind==="table"&&s.table&&i(s.table);return o}var el=4096,Kh=1,Dt=class extends Error{code;constructor(t,n){super(n),this.name="TablePaginationError",this.code=t;}};function au(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0}))}function qh(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function Zh(e,t,n,r,o){let a=qh(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let s=null,l=null,d=i.lines;for(let u of t){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){s=f.box,d=f.lines,l=u.box;break}if(s)break}if(!s)continue;let c=l??Object.freeze({x:i.cellOriginX,y:n,width:i.cellContentWidth,height:r});a(Io({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:s,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(s)??s,cellBox:c,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}}function wI(e,t,n,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=t.find(s=>s.kind==="paragraph"&&s.id===o.paragraphId);!a||a.kind!=="paragraph"||At(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,Io({paragraph:a,paragraphId:o.paragraphId,paragraphBox:o.box,lines:o.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(o.box)??o.box,cellBox:n,pageClip:r.pageContentClip(),measurer:r.measurer,...r.layoutTextboxStoryFor?{layoutTextboxStory:r.layoutTextboxStoryFor}:{}}));}}function PI(e,t){let n=qh(e),r=e.deferAnchoredDrawings;return !n&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:n,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{t.push(i);}},flushDeferred:(i,s,l)=>{if(t.length!==0){if(n&&!e.anchorDeferOnly)Zh(t,i,s,l,e);else if(r)for(let d of t)r(d);t.length=0;}}}}function Qs(e,t,n){let r=0;for(let o=t;o<n&&o<e.length;o+=1)r+=e[o];return r}function iu(e,t){return t===0?[...e]:e.map(n=>n.kind==="table"?{...n,box:{...n.box,y:n.box.y+t},rows:n.rows.map(r=>({...r,box:{...r.box,y:r.box.y+t},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+t},blocks:iu(o.blocks,t)}))}))}:{...n,box:{...n.box,y:n.box.y+t},...n.shadingBox?{shadingBox:{...n.shadingBox,y:n.shadingBox.y+t}}:{},...n.bottomBorder?{bottomBorder:{...n.bottomBorder,box:{...n.bottomBorder.box,y:n.bottomBorder.box.y+t}}}:{},...n.borders?{borders:n.borders.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}:{},...n.marker?{marker:{...n.marker,box:{...n.marker.box,y:n.marker.box.y+t}}}:{},lines:n.lines.map(r=>({...r,box:{...r.box,y:r.box.y+t},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+t}})),...r.drawings?{drawings:r.drawings.map(o=>us(o,0,t))}:{}}))})}function II(e,t,n,r,o,a,i){let s=e.id,l=o.listItems?.get(s),{props:d,indent:c,available:u,alignment:f,spacing:p,lineSpacing:m,bottomBorder:g,borders:h,shading:b,inheritedRunProperties:x,markRunProperties:v,tabStops:w,tabStopsCacheToken:C}=za(e,n,o.styleCascade,l,i?.tableCellStyle,true),M=ya(w,o.defaultTabStopPt),P=M===w?C:br(M),B=$s(l,c,o.measurer,M,u),O=o.pageExclusionZones?.()??Object.freeze([]),k=o.paragraphOrderIndex?.(s)??Number.MAX_SAFE_INTEGER,_=o.paragraphOrderIndex?ng(O,k,S=>o.paragraphOrderIndex?.(S)):O,D=tg(_,t,0,{left:0,right:c.left+u+c.right}),y=pn(D),ee=y?`${r.toFixed(3)}|${y}`:"",I=wr({paragraph:e,properties:[...d,...x,...v,{localName:"tabStops",attributes:{token:P}},...l?[{localName:"list",attributes:{token:l.cacheToken}}]:[]],width:u,producer:o.producer,...o.drawingTokenForParagraph?.(e)?{drawingToken:o.drawingTokenForParagraph(e)}:o.drawingLayoutToken?{drawingToken:o.drawingLayoutToken}:{},...ee?{exclusionToken:ee}:{}});o.cache&&o.onCellBreakKey?.(I);let E=Ss(e,s,c.left,u,o.measurer,o.cache,o.cache?I:null,x,M,o.pageContext,o.styleCascade?(S,L)=>Ln(S,L,o.styleCascade):void 0,{lineSpacing:m,equationCacheToken:o.producer,firstLineOffset:B,marginExtent:{left:0,right:c.left+u+c.right},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:true}:{},displayMode:o.displayMode,...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:c.left+u+c.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:c.left+u+c.right,height:Math.max(1,u)}),...D.length>0?{pageExclusionZones:D}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:v}),j=i?.lineStart??0,A=i?.fragmentIndex??0,T=i?.maxBottom??Number.POSITIVE_INFINITY,H=i?.includeAfter??true,F=i?.includeBottomBorder??true,K=j===0?ao(p.before,a):0,W=t+c.left,V=j===0?Vn(h.top):0,Y=[],Q=r+K+V,G=j,U=false;for(let S=j;S<E.length;S+=1){let L=E[S],q=S===E.length-1,ne=q&&F&&g?Vn(g):0,$=q&&H?p.after:0,be=D.length>0?Bn(Q,L.height,D):L.exclusionSkipBefore??0;if(Q+be+L.height+ne+$>T+.001)break;Q+=be;let _e=t+c.left+(S===0?B:0),Pe=Math.max(1,u-(S===0?B:0)),Ne=L.spans.map(ye=>({...ye,range:{...ye.range,paragraphId:s},box:{...ye.box,x:ye.box.x+t,y:Q}})),et=bs(Ne,o.measurer,_e,Pe,f,q,f==="center"||f==="right"?L.width:void 0),ht=Ne.length>0&&et.length>0?et[0].box.x-Ne[0].box.x:f!=="left"&&f!=="both"?(()=>{let ye=Pe-L.width;return ye<=0?0:f==="center"?ye/2:ye})():0,Lt=Object.freeze({x:t,y:r,width:n,height:Math.max(0,T-r)}),Ge=xs(L.drawings.map(ye=>fs(Object.freeze({...ye,paragraphId:s,x:t+ye.x,advanceStart:t+ye.advanceStart,advanceEnd:t+ye.advanceEnd,y:Q+ye.y,paintBounds:Object.freeze({...ye.paintBounds,x:t+ye.paintBounds.x,y:Q+ye.paintBounds.y}),hitBounds:Object.freeze({...ye.hitBounds,x:t+ye.hitBounds.x,y:Q+ye.hitBounds.y})}),Lt)),ht);Y.push({id:o.nextLineId(s,L.start,S),range:{paragraphId:s,start:L.start,end:L.end},spans:et,...Ge.length>0?{drawings:Ge}:{},box:{x:t+c.left,y:Q,width:u,height:L.height},contentX:et[0]?.box.x??_e+ht,baseline:L.baseline,leading:L.leading,trailingSpacing:L.trailingSpacing,...L.deletedRanges?{deletedRanges:L.deletedRanges}:{}}),Q+=L.height,G=S+1,U=true;}if(!U)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:j,complete:false,fitted:false};let re=G>=E.length,xe=Y[0].box.y,ae=Q,se=[],we,Ie=xe,Se=ae,Be=h.left?wt(h.left):0,He=h.right?wt(h.right):0,je=h.left?W-h.left.spacePt-Be:W,ft=h.right?W+u+h.right.spacePt+He:W+u,zt=Math.max(ft-je,0);if(V>0&&h.top){let S=wt(h.top),L=xe-h.top.spacePt-S;se.push({side:"top",edge:h.top,box:{x:je,y:L,width:zt,height:S}}),Ie=L;}if(re&&F&&g){let S=wt(g),L=ae+g.spacePt,q={x:je,y:L,width:zt,height:S};we={edge:g,box:q},se.push({side:"bottom",edge:g,box:q}),Se=L+S;}let Xe=Math.max(Se-Ie,0);if(h.left&&se.push({side:"left",edge:h.left,box:{x:W-h.left.spacePt-Be,y:Ie,width:Be,height:Xe}}),h.right&&se.push({side:"right",edge:h.right,box:{x:W+u+h.right.spacePt,y:Ie,width:He,height:Xe}}),h.bar){let S=wt(h.bar);se.push({side:"bar",edge:h.bar,box:{x:W-h.bar.spacePt-S,y:xe,width:S,height:Math.max(ae-xe,0)}});}let Ht=re&&H?p.after:0,jt=Se+Ht,Qe=b===void 0?void 0:h.left||h.right?{x:je,y:Ie,width:zt,height:Math.max(Se-Ie,0)}:ga(Y,W,u),Gt=re&&o.displayMode==="all-markup",at=Gt?yo(e):[],Bt=Gt?Oa(e):null,An=j===0?Xs(l,o.measurer,Y[0]?{y:Y[0].box.y,height:Y[0].box.height}:void 0,t):void 0,Ve=Is(e),Le=Ve?js(Y,Hs(Ve)):Y,N={kind:"paragraph",id:`${s}#f${A}`,paragraphId:s,fragmentIndex:A,range:{paragraphId:s,start:Le[0].range.start,end:Le[Le.length-1].range.end},props:d,spacing:{before:K,after:Ht},indent:c,tabStops:M,...we?{bottomBorder:we}:{},...se.length>0?{borders:se}:{},...b===void 0?{}:{shading:b},...Qe===void 0?{}:{shadingBox:Qe},...An?{marker:An}:{},...ns(at,Bt),lines:Le,box:{x:W,y:r,width:u,height:jt-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let S=Object.freeze({x:t,y:r,width:n,height:Math.max(0,T-r)}),L=N.box,q={paragraph:e,paragraphId:s,paragraphBox:L,lines:Le};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...q,cellOriginX:t,cellContentWidth:n}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(Io({paragraph:e,paragraphId:s,paragraphBox:L,lines:Le,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(L)??L,cellBox:S,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}return {fragment:N,bottom:jt,spaceAfter:Ht,nextLineIndex:G,complete:re,fitted:true}}function Cr(e,t,n,r,o,a){let i=Jh(e,t,n,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0});return {blocks:i.blocks,bottom:i.bottom}}function Jh(e,t,n,r,o,a,i,s,l){let d=[],c=r,u=s.previousSpaceAfter,f=s.blockIndex,p=s.lineIndex,m=s.paragraphFragmentIndex,g=false,h=false;for(;f<e.length;){let b=e[f];if(b.kind==="table"){p!==0&&(p=0),u=0;let v=kI(b,t,n,c,a+1,i);if(!v){f+=1;continue}if(v.bottom>o+.001){h=!g;break}d.push(v.fragment),c=v.bottom,g=true,f+=1,p=0;continue}if(b.kind!=="paragraph"){f+=1,p=0;continue}let x=II(b,t,Math.max(1,n-t),c,i,u,{lineStart:p,fragmentIndex:m,maxBottom:o,includeAfter:true,includeBottomBorder:true,...l?{tableCellStyle:l}:{}});if(!x.fitted||!x.fragment)break;if(d.push(x.fragment),c=x.bottom,g=true,x.complete)u=x.spaceAfter,f+=1,p=0,m=0;else return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:x.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:m+1},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:p,previousSpaceAfter:u,paragraphFragmentIndex:m},complete:f>=e.length,fitted:g,nestedSplitBlocked:h}}function Qh(e,t){return {top:e.top+vr(t.top),right:e.right+vr(t.right),bottom:e.bottom+vr(t.bottom),left:e.left+vr(t.left)}}function vI(e,t,n){return {top:t?{state:"none"}:e.top,left:e.left,bottom:n?{state:"none"}:e.bottom,right:e.right}}function ey(e,t,n){return !t&&!n?e:{...e,cells:e.cells.map(r=>({...r,borders:vI(r.borders,t,n)}))}}function Ja(e,t,n,r,o,a,i,s=0){let l=su(e,t,n,r,Number.POSITIVE_INFINITY,o,false,a,i,au(e),s);return {record:l.record,bottom:l.bottom}}function su(e,t,n,r,o,a,i,s,l,d,c=0){let u=Qs(t,0,t.length),f=Number.isFinite(c)&&c>0?c/2:0,p=l.measurer.lineMetrics(ln).height,m=e.height,g=m.rule==="exact"?m.valuePt:void 0,h=m.rule==="atLeast"?m.valuePt:void 0,b=[],{rowDeps:x,flushDeferred:v}=PI(l,b),w=a&&l.pageOccurrenceKey?{...x,nextLineId:(I,E,j)=>x.nextLineId(I,E,j,l.pageOccurrenceKey())}:x,C=g===void 0?o:Math.min(o,r+Math.max(0,g)),M=[],P=false,B=false,O=r;for(let I=0;I<e.cells.length;I+=1){let E=e.cells[I],j=d[I]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0},A=E.gridSpan,T=E.gridColumn,H=n+Qs(t,0,T),F=Qs(t,T,Math.min(T+A,t.length))||u,K=Math.min(f,Math.max((F-Kh)/2,0)),W=H+K,V=Math.max(F-2*K,Kh),Y=Qh(E.margins,E.borders),Q=i?vr(E.borders.top):Y.top,G=r+Q,U=C-Y.bottom,re=[],xe=G,ae=j,se=true,we=false,Ie=false;if(!E.vMergeContinue)if(U<G+.001)se=j.blockIndex>=E.blocks.length;else {let Be=Jh(E.blocks,W+Y.left,W+V-Y.right,G,U,s,w,j,E.styleFormatting);re=Be.blocks,xe=Be.bottom,ae=Be.cursor,se=Be.complete,we=Be.fitted,Ie=Be.nestedSplitBlocked,we&&(P=true),Ie&&(B=true);}let Se=Math.min(C,we?xe+Y.bottom:r+Q+p+Y.bottom);Se>O&&(O=Se),M.push({cell:E,x:W,width:V,gridColumn:T,blocks:re,contentTop:G,contentBottom:xe,insets:{...Y,top:Q},nextCursor:ae,complete:E.vMergeContinue?true:se,fitted:we,nestedSplitBlocked:Ie});}O=Math.min(C,Math.max(O,r));for(let I of M){let E=I.fitted?I.contentBottom+I.insets.bottom:r+I.insets.top+p+I.insets.bottom;E>O&&E<=C+.001&&(O=E);}O=Math.min(C,O);let k=false;if(g!==void 0){let I=r+g;I<=o+.001?(O=I,k=true):O=Math.min(o,O);}else if(h!==void 0){let I=r+h;M.every(j=>j.complete)&&I<=o+.001&&I>O&&(O=I);}O=Math.min(o,O);let _=Math.max(0,O-r),D=M.map(I=>{let E=I.blocks,j=k?true:I.complete;if(!I.cell.vMergeContinue&&j&&I.cell.vAlign!=="top"&&E.length>0){let A=I.contentBottom-I.contentTop,T=_-I.insets.top-I.insets.bottom-A;if(T>0){let H=I.cell.vAlign==="center"?T/2:T;E=iu(E,H);}}return {id:I.cell.id,gridColumn:I.gridColumn,...I.cell.gridColumnId?{gridColumnId:I.cell.gridColumnId}:{},gridSpan:I.cell.gridSpan,vMergeContinue:I.cell.vMergeContinue,...I.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...I.cell.shading===void 0?{}:{shading:I.cell.shading},blocks:E,box:{x:I.x,y:r,width:I.width,height:_}}}),y=k||M.every(I=>I.complete)?null:M.map(I=>I.nextCursor),ee=k||M.every(I=>I.complete);return v(D,r,_),{record:{id:e.id,...e.revisionKind?{revisionKind:e.revisionKind}:{},...e.revisionId!==void 0?{revisionId:e.revisionId}:{},...e.revisionAuthor!==void 0?{revisionAuthor:e.revisionAuthor}:{},...e.revisionDate!==void 0?{revisionDate:e.revisionDate}:{},rowIndex:0,isHeaderRepeat:a,...i?{isContinuation:true}:{},cells:D,box:{x:n,y:r,width:u,height:_}},bottom:O,remainder:ee?null:y,fitted:P||e.cells.every(I=>I.vMergeContinue)||k,nestedSplitBlocked:B}}function TI(e){return {...e,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function lu(e,t,n,r,o,a=0){let i=0,s={...TI(o),pageExclusionZones:void 0,nextLineId:()=>`probe-${i++}`};return Ja(e,t,n,0,false,r,s,a).record.box.height}function du(e,t,n,r,o,a,i,s){if(e.length===0)return [];let l=new Map;for(let h of n)for(let b of h.cells)l.set(b.id,b);let d=ou(e,a,o,{pageFragment:true}),c=e.map((h,b)=>({...h,cells:h.cells.map(x=>{let v=d.get(x.id);if(x.vMergeContinue&&v===void 0)return {...x,paintInert:true,rowSpan:1,borders:{},blocks:[]};let w=x.vMergeContinue,C=v??1,M=x.box.height;if(C>1){let k=e[b+C-1];M=k.box.y+k.box.height-x.box.y;}let P=l.get(x.id),B=x.blocks;if(P&&P.vAlign!=="top"&&B.length>0){let k=Qh(P.margins,P.borders),_=Number.POSITIVE_INFINITY,D=Number.NEGATIVE_INFINITY;for(let y of B)_=Math.min(_,y.box.y),D=Math.max(D,y.box.y+y.box.height);if(Number.isFinite(_)&&Number.isFinite(D)){let y=M-k.top-k.bottom-(D-_),I=x.box.y+k.top+(y>0?P.vAlign==="center"?y/2:y:0)-_;if(Math.abs(I)>.001){B=iu(B,I);for(let E of B)E.kind==="paragraph"&&i?.(E.paragraphId,I);}}}let O=Object.freeze({x:x.box.x,y:x.box.y,width:x.box.width,height:M});return P&&s&&(C>1||P.vAlign!=="top"&&B.length>0)&&wI(B,P.blocks,O,s),{...x,...w?{vMergeContinue:false,paintInert:false}:{},rowSpan:C,blocks:B,box:{...x.box,height:M}}})})),u=c.map(h=>h.cells.map(b=>{let x=l.get(b.id);return {gridColumn:b.gridColumn,gridSpan:b.gridSpan,vMergeContinue:b.vMergeContinue,borders:x?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:b.rowSpan??1}})),f=t.columnWidthsPt.length,p=t.tableBorders,m={columnWidthsPt:t.columnWidthsPt,rowBands:c.map(h=>({y:h.box.y,height:h.box.height})),cellBoxes:c.map(h=>h.cells.map(b=>({width:b.box.width,height:b.box.height})))},g=kc(u,p,f,m,void 0,r);return c.map((h,b)=>({...h,cells:h.cells.map((x,v)=>{let w=g[b][v];return x.paintInert||x.vMergeContinue?{...x,borders:{},paintInert:true}:{...x,borders:w}})}))}function kI(e,t,n,r,o,a){if(o>=zs)return null;let i=Math.max(1,n-t),s=Fo(e,i,o,a.styleCascade,a.displayMode);if(!s||s.rows.length===0)return null;let l=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:h=>{l.push(h);}},c=t+$a(s,i),u=[],f=r;for(let h of s.rows){let b=Ja(h,s.columnWidthsPt,c,f,false,o,d,s.cellSpacingPt);u.push(b.record),f=b.bottom;}let p=du(u,s,s.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let h of l)for(let b of p)if(b.cells.some(v=>v.blocks.some(w=>w.kind==="paragraph"&&w.paragraphId===h.paragraphId))){Zh([h],b.cells,b.box.y,b.box.height,a);break}let m=Qs(s.columnWidthsPt,0,s.columnWidthsPt.length),g=new Map;return {fragment:Js({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:p,box:{x:c,y:r,width:m,height:f-r}},s.columnWidthsPt,o,g),bottom:f}}function ty(e){let t=e.picture;return t?.embeddedRelationshipId?`embed:${e.ownerPartName}:${t.embeddedRelationshipId}`:t?.linkedRelationshipId?`link:${e.ownerPartName}:${t.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var ny=new WeakMap,cu=new Map,OI=16,CI=32;function oy(e,t){let n=ny.get(e);if(n)return n;let r;if(e.kind==="drawing"||chunkIMMAG4QP_cjs.Sa(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:cu,visited:1,deepest:0};else if((t<2||e.children.length>=OI)&&t<CI){let o=null,a=1,i=0;for(let s of e.children){let l=oy(s,t+1);if(a+=l.visited,l.deepest+1>i&&(i=l.deepest+1),l.atoms.size>0){o||(o=new Map);for(let[d,c]of l.atoms)o.set(d,c);}}r={atoms:o??cu,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,s=[{node:e,depth:0}];for(;s.length>0;){let l=s.pop();if(a+=1,a>chunkIMMAG4QP_cjs.Qa)break;l.depth>i&&(i=l.depth);let d=l.node;if(d.kind==="drawing"||chunkIMMAG4QP_cjs.Sa(d)){o.set(d.id,d);continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)s.push({node:d.children[c],depth:l.depth+1});}r={atoms:o.size>0?o:cu,visited:a,deepest:i};}return ny.set(e,r),r}function ry(e){let t=oy(e.root,0);return t.visited>chunkIMMAG4QP_cjs.Qa||t.deepest>chunkIMMAG4QP_cjs.Oa.maxDrawingDepth?null:t.atoms}function uu(e){let t=e.position,n=e.anchor,r=e.picture,o=e.wrapGeometry;return [e.drawingNodeId,e.ownerPartName,e.kind,e.hidden?"1":"0",String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left),e.compatibilityBranchNodeId??"",n?.simplePos?"sp":"pv",n?String(n.relativeHeight):"",n?n.layoutInCell?"1":"0":"",r?[String(r.crop.left),String(r.crop.top),String(r.crop.right),String(r.crop.bottom),String(r.transform.rotationDegrees),r.transform.flipHorizontal?"1":"0",r.transform.flipVertical?"1":"0",String(r.transform.offsetEmu.x),String(r.transform.offsetEmu.y),String(r.transform.extentEmu.cx),String(r.transform.extentEmu.cy),r.embeddedRelationshipId??"",r.linkedRelationshipId??"",r.presetGeometry??""].join(":"):"",o?[o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length)].join(":"):"",t?[t.horizontal.relativeFrom,t.horizontal.align??"",String(t.horizontal.offsetEmu??""),t.vertical.relativeFrom,t.vertical.align??"",String(t.vertical.offsetEmu??""),String(t.simplePosition.xEmu),String(t.simplePosition.yEmu)].join(":"):""].join("|")}function tl(e){switch(e.kind){case "ready":return `ready:${e.resourceKey}:${e.contentId}:${e.pixelWidth}x${e.pixelHeight}`;case "pending":return `pending:${e.resourceKey}`;case "external":return `external:${e.relationshipId}:${e.sinkSafe?"1":"0"}`;case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var BI=1;function fu(e,t){if(e.kind==="drawing"||chunkIMMAG4QP_cjs.Sa(e)){t.push(e.id);return}if("children"in e)for(let n of e.children)fu(n,t);}function LI(e){if(e.kind!=="paragraph")return [];let t=[];for(let n of e.children)fu(n,t);return Object.freeze(t)}function FI(e){let{ownerPartName:t,part:n,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:s}=e,l=false,d=0,c=new Map,u=new Set,f=new Map,p=new WeakMap,m=new WeakMap,g=0,h=chunkIMMAG4QP_cjs.Ra(r,t),b=chunkIMMAG4QP_cjs.Wa(n,{resolveRelationship:h}),x=ry(n),v=(O,k)=>{if(l||u.has(k))return;u.add(k);let _=d;o.resolveForProjection(O).then(D=>{l||_!==d||(c.set(k,D),D.kind==="ready"&&i(D.validatedHandle),g+=1,f.set(k,g),a(t));}).catch(()=>{l||_!==d||(c.set(k,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,f.set(k,g),a(t));}).finally(()=>{u.delete(k);});},w=O=>{let k=ty(O),_=c.get(k);if(_)return _;let D=O.picture?.linkedRelationshipId;if(D){let ee=o.resolveLinked(t,D);return c.set(k,ee),g+=1,f.set(k,g),ee}let y=Object.freeze({kind:"pending",resourceKey:k});return c.set(k,y),g+=1,f.set(k,g),v(O,k),y},C=O=>b.get(O)??null,M=Object.freeze({ownerPartName:t,projectionForAtom:C,project:O=>C(O.id),resourceOf:w}),P=O=>{let k=m.get(O);if(k)return k;let _=LI(O),D=null,y=(I,E)=>{if(!(E>=BI))for(let j of I){let A=b.get(j)?.textboxStory;if(!A)continue;let T=[];if(fu(A.content,T),T.length!==0){D||(D=[..._]);for(let H of T)D.push(H);y(T,E+1);}}};y(_,0);let ee=D??_;return m.set(O,ee),ee};return {context:M,cacheTokenForPart:()=>`${t}|${g}|${d}|${b.size}`,drawingTokenForParagraph:O=>{let k=p.get(O);if(k?.resourceEpoch===g)return k.token;let _=P(O);if(_.length===0)return p.set(O,{resourceEpoch:g,token:""}),"";let y=_.map(ee=>{let I=b.get(ee);if(!I)return `${ee}:refused`;let E=w(I);return [ee,uu(I),tl(E),String(f.get(ty(I))??0)].join("|")}).sort().join(";");return p.set(O,{resourceEpoch:g,token:y}),y},isCompatibleWith:(O,k)=>{if(O===n)return true;let _=ry(O);if(x&&_&&x.size===_.size){let y=true;for(let[ee,I]of x)if(_.get(ee)!==I){y=false;break}if(y)return true}let D=chunkIMMAG4QP_cjs.Wa(O,{resolveRelationship:chunkIMMAG4QP_cjs.Ra(k,t)});if(D.size!==b.size)return false;for(let[y,ee]of b){let I=D.get(y);if(!I||uu(I)!==uu(ee))return false}return true},dispose:()=>{l=true,d+=1;for(let O of c.values())O.kind==="ready"&&s(O.validatedHandle);c.clear(),u.clear(),f.clear();}}}function WL(e){let t=e.session.packageRevision(),n=e.session.currentPackage(),r=e.resourceLookup??chunkIMMAG4QP_cjs.hb(n,{decodePort:e.decodePort}),o=new Map,a=new Map,i=0,s=new WeakMap,l=new Map,d=new Map,c=g=>{l.set(g.resourceKey,g);let h=chunkIMMAG4QP_cjs.Ya(g);h&&d.set(g.resourceKey,h);},u=g=>{l.delete(g.resourceKey);let h=d.get(g.resourceKey);h&&(chunkIMMAG4QP_cjs.Za(h),d.delete(g.resourceKey));},f=(g,h)=>{let x=h.currentPackage().parts.get(g)??a.get(g);if(x)return x;if(g===h.part().name)return h.part();throw new Error(`Missing inline drawing part ${g}`)},p=(g,h)=>{let b=o.get(g);if(b)return b;let x=f(g,h);a.set(g,x);let v=FI({ownerPartName:g,part:x,pkg:h.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:c,forgetReadyHandle:u});return o.set(g,v),i+=1,s.set(v,i),v},m=g=>{let h=g.currentPackage();if(h.partBytes===n.partBytes&&h.relationships===n.relationships&&h.contentTypes===n.contentTypes){for(let[x,v]of o){let w=h.parts.get(x)??(x===g.part().name?g.part():void 0);if(w&&v.isCompatibleWith(w,h)){a.set(x,w);continue}v.dispose(),o.delete(x),a.delete(x);}t=g.packageRevision(),n=h;return}for(let x of o.values())x.dispose();o.clear(),a.clear();for(let x of d.values())chunkIMMAG4QP_cjs.Za(x);d.clear(),l.clear(),e.resourceLookup||r.dispose(),t=g.packageRevision(),n=h,r=e.resourceLookup??chunkIMMAG4QP_cjs.hb(h,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return p(e.session.part().name,e.session).context},contextForPart(g){return p(g,e.session).context},cacheTokenForPart(g){let h=p(g,e.session);return `${s.get(h)??0}|${h.cacheTokenForPart()}`},drawingTokenForParagraph(g,h){return p(h,e.session).drawingTokenForParagraph(g)},mintValidatedBytes(g,h){let b=l.get(g.resourceKey);return !b||b.contentId!==g.contentId?null:chunkIMMAG4QP_cjs.Xa(g,h)},sync(g){g.packageRevision()!==t&&m(g);},dispose(){for(let g of o.values())g.dispose();o.clear(),a.clear();for(let g of d.values())chunkIMMAG4QP_cjs.Za(g);d.clear(),l.clear(),e.resourceLookup||r.dispose();}})}function ay(e,t){let n=[],r=o=>{if(o.kind==="paragraph"){let a=t(o);a&&n.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),n.sort().join(";")}var iy=new WeakMap;function MI(e){let t=iy.get(e);if(t!==void 0)return t;let n=EI(e);return iy.set(e,n),n}function EI(e){let t=n=>{if(n.kind==="textValue"||chunkIMMAG4QP_cjs.ac(n)||chunkIMMAG4QP_cjs._b(n)!==null)return false;if(n.kind==="text"||n.localName==="t"){for(let r of n.children)if(r.kind==="textValue"&&r.value.trim().length>0)return true;return false}for(let r of n.children)if(r.kind!=="textValue"&&t(r))return true;return false};for(let n of e.children)if(n.kind!=="textValue"&&t(n))return true;return false}function cy(e,t){for(let n of t.resultParagraphIds){let r=chunkIMMAG4QP_cjs.va(e,n);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&MI(r))return true}return false}var sy=new WeakMap,ly=new WeakMap,dy=new WeakMap;function pu(e){let t=sy.get(e);if(t)return t;let n=new Set;for(let r of chunkIMMAG4QP_cjs.xc(e))n.add(r.beginParagraphId),n.add(r.endParagraphId);return sy.set(e,n),n}function mu(e){let t=ly.get(e);if(t)return t;let n=new Set;for(let r of chunkIMMAG4QP_cjs.xc(e))cy(e,r)||n.add(r.beginParagraphId);return ly.set(e,n),n}function gu(e){let t=dy.get(e);if(t)return t;let n=new Set;for(let r of chunkIMMAG4QP_cjs.xc(e))if(!cy(e,r))for(let o of r.resultParagraphIds)n.add(o);return dy.set(e,n),n}var NI=4,uy=256;function AI(e){return `txbx-${e}`}function nl(e,t){let n=e.textboxStory;if(!n)return null;let r=st(e.extentEmu.cx),o=st(e.extentEmu.cy),a=st(n.insetsEmu.left),i=st(n.insetsEmu.right),s=st(n.insetsEmu.top),l=st(n.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-s-l),u=st(n.strokeWidthEmu),f={fillHex:n.fillHex,strokeHex:n.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((t.depth??0)>=NI)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:s},...f,fallbackReason:"textbox-nesting-limit"};let m=kg(n.content,t.displayMode),g=AI(e.drawingNodeId),h=0,b=Cr(m,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${g}-line-${h++}`,styleCascade:t.styleCascade,...t.pageContext?{pageContext:t.pageContext}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...t.displayMode?{displayMode:t.displayMode}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:{}}),x=b.blocks,v=b.bottom,w;if(x.length>uy){x=x.slice(0,uy);let P=x[x.length-1];v=P?P.box.y+P.box.height:0,w="textbox-fragment-limit";}if(v>c+.001){let P=x.filter(B=>B.box.y<c-.001);P.length<x.length&&(x=P,w=w??"textbox-height-clip");}let C=Math.max(0,c-v),M=n.verticalAnchor==="center"?C/2:n.verticalAnchor==="bottom"?C:0;return {fragments:x,flowHeight:v,contentOffset:{x:a,y:s+M},...f,...w?{fallbackReason:w}:{}}}var DI=128,fy=new WeakMap;function _I(e){let t=fy.get(e);if(t!==void 0)return t;let n=chunkXMHWBL3K_cjs.y(chunkIMMAG4QP_cjs.na(e));return fy.set(e,n),n}function zI(e){let t=Math.max(1,Math.floor(e)),n=new Map;return {get(r){let o=n.get(r);if(o!==void 0)return n.delete(r),n.set(r,o),o},set(r,o){for(n.has(r)&&n.delete(r),n.set(r,o);n.size>t;){let a=n.keys().next();if(a.done)break;n.delete(a.value);}},get size(){return n.size}}}function HI(e,t,n,r,o,a,i,s=DI,l,d=gt,c,u,f,p,m,g){let h=jd(e.root),b=zI(s),x=Fn(e,d),v=kr({numberingIndex:g?.numberingIndex,styleCascade:a},x).listItems,w=_I(e),C,M=P=>{let B=Un(h)||c?P:void 0,O=B?.pageNumber??p?.pageNumber??1,k=Vd(B,h)+(c?`|pn:${O}`:"");if(k===""){if(C)return C}else {let j=b.get(k);if(j)return j}let _=0,D=[],y=()=>{let j=B?.pageNumber??p?.pageNumber??1,A=p?.pageWidth??t,T=p?.pageHeight??Math.max(1,t),H=p?.marginLeft??0,F=p?.marginRight??0,K=p?.marginTop??0,W=p?.marginBottom??0,V=Math.max(1,T-K-W);return Object.freeze({pageNumber:j,pageWidth:A,pageHeight:T,marginLeft:H,marginRight:F,marginBottom:W,contentInsetTop:K,contentInsetBottom:W,contentWidth:t,contentHeight:V,contentBandHeight:V,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},ee=Object.freeze([]),I;if(c){let j=false;for(let A=0;A<Pr;A+=1){D.splice(0,D.length),_=0,I=Cr(x,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+k+(d===gt?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${_++}`,styleCascade:a,...v?{listItems:v}:{},pageContext:B,...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,anchorFrameBase:y,pageContentClip:()=>La(y()),layoutTextboxStoryFor:H=>nl(H,{measurer:n,producer:r+k+(d===gt?"":`|rev:${d}`),cache:o,styleCascade:a,...B?{pageContext:B}:{},...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{}}),collectAnchoredDrawings:H=>{D.push(...H);},columnBoxForParagraph:H=>Object.freeze({x:0,y:H.y,width:t,height:H.height}),pageExclusionZones:()=>ee,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}});let T=hc(D,c,0,t);if(T.length===0){j=true,ee=T;break}if(A>0&&pn(ee)===pn(T)){j=true,ee=T;break}ee=T;}if(!j)throw new vo(`header/footer exclusion reflow did not converge within ${Pr} passes`)}else I=Cr(x,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+k+(d===gt?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${_++}`,styleCascade:a,...v?{listItems:v}:{},pageContext:B,...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{}});let E={partName:e.name,part:e,contentKey:w,fragments:I.blocks,flowHeight:I.bottom,pageFieldNeeds:h,...D.length>0?{anchoredDrawings:Object.freeze([...D])}:{},withPageContext:j=>!Un(h)&&!E.anchoredDrawings?.length?C??E:M(j)};return k===""?C=E:b.set(k,E),E};return M(i)}function Qa(e,t,n){let r=n-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let f={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return f;let p=u.pageFieldProjector;return {...f,pageFieldProjector:m=>{let g=p(m);return {...g,box:o(g.box)}}}},i=u=>{if(u)return {...u,box:o(u.box),...u.separator?{separator:{...u.separator,box:o(u.separator.box)}}:{},notes:u.notes.map(f=>({...f,box:o(f.box)}))}},s=a(e.header),l=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${t}`,index:t,box:o(e.box),contentBox:o(e.contentBox),...s?{header:s}:{},...l?{footer:l}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}function hu(e){let t=[],n=r=>{if(r.kind==="table"){for(let a of r.rows)for(let i of a.cells)for(let s of i.blocks)n(s);return}let o=r.marker;o&&t.push(`${r.paragraphId}=${o.text}@${o.numFmt}:${o.level}`);};for(let r of e.fragments)n(r);return t.length===0?"":`|list:${t.join(",")}`}function yu(e){let t=[],n=r=>{if(r.kind==="table"){for(let o of r.rows)for(let a of o.cells)for(let i of a.blocks)n(i);return}for(let o of r.lines)for(let a of o.drawings??[])t.push(tl(a.resource));};for(let r of e.anchoredDrawings??[])t.push(tl(r.resource));for(let r of e.fragments)n(r);return t.length===0?"":`!${t.join("!")}`}function py(e,t,n){if(!e)return "";let r=(o,a)=>[...a].map(([i,s])=>`${o}${i}=${s.flowHeight}@${s.contentKey}${yu(s)}${hu(s)}`).sort().join(",");return `|hf:${t},${n},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+r("h",e.headers)+";"+r("f",e.footers)}function my(e){return e.delta===0?true:(e.delta%2===0||!e.evenAndOddHeaders&&!e.parityDependent&&!e.usedPageParity)&&(!e.titlePage||e.markPageCount>0)&&!e.hasNoteReserves&&!e.hasExclusionZones}var jI="http://schemas.openxmlformats.org/wordprocessingml/2006/main",GI="http://schemas.microsoft.com/office/word/2010/wordml",WI="http://schemas.microsoft.com/office/word/2012/wordml";function $I(e){if(e.kind!=="textValue"){for(let t of e.attributes)if(t.localName==="val"&&t.namespaceUri===jI)return t.value}}function Do(e){for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="contentControlProperties"||t.localName==="sdtPr"))return t}function or(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}}function mn(e,t){let n=or(e,t);return n?$I(n):void 0}function rl(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function ol(e){if(!e)return "richText";for(let t of e.children){if(t.kind==="textValue")continue;let n=t.kind,r=t.localName,o=t.namespaceUri;if(n==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(n==="contentControlComboBox"||r==="comboBox")return "comboBox";if(n==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(n==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(n==="contentControlCheckbox"||r==="checkbox"&&o===GI)return "checkbox";if(r==="repeatingSection"&&o===WI)return "repeatingSection"}return "richText"}function gy(e){let t=(n,r)=>{for(let o of n)if(o.kind!=="textValue"){if(o.kind==="tableRow")return "row";if(o.kind==="tableCell")return "cell";if(o.kind==="paragraph"||o.kind==="table")return "block";if(chunkIMMAG4QP_cjs.Hb(o)&&r<chunkIMMAG4QP_cjs.Gb){let a=t(chunkIMMAG4QP_cjs.Kb(o),r+1);if(a)return a}}return null};return t(chunkIMMAG4QP_cjs.Kb(e),0)??"inline"}function yy(e,t){let n=[t],r=new Set([t]);for(let o of e.pages)for(let a of [o.header,o.footer])!a?.part||r.has(a.part)||(r.add(a.part),n.push(a.part));return n}var hy=new WeakMap;function by(e){if(e.length===1)return ei(e[0]);let t=hy.get(e[0]);if(t&&XI(t.parts,e))return t.index;let n=[],r=new Set,o=new Set;for(let s of e){let l=ei(s);for(let d of l.controls)n.push(d);for(let d of l.neededBlockIds)r.add(d);for(let d of l.neededParagraphIds)o.add(d);}let a=`${[...r].sort().join(",")};${[...o].sort().join(",")}`,i={controls:n,neededBlockIds:r,neededParagraphIds:o,neededToken:a};return hy.set(e[0],{parts:e,index:i}),i}function XI(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}function ti(e){let t=xy.get(e);if(t!==void 0)return t;let n=VI(e);return xy.set(e,n),n}var xy=new WeakMap,Sy=new WeakMap;function VI(e){let t=(n,r)=>{if(n.kind==="textValue")return "";if(r===0&&(n.kind==="paragraph"||n.kind==="table")){let a=Sy.get(n);if(a!==void 0)return a}let o;if(chunkIMMAG4QP_cjs.Hb(n)){if(r>=chunkIMMAG4QP_cjs.Gb)return "";let a=Do(n),i=[n.id,mn(a,"alias")??"",mn(a,"tag")??"",rl(mn(a,"lock")),ol(a),or(a,"showingPlcHdr")?"1":"0",or(a,"dataBinding")?"1":"0"].join(":"),s=chunkIMMAG4QP_cjs.Kb(n).map(l=>t(l,r+1)).filter(l=>l.length>0);o=[i,...s].join("|");}else o=n.children.map(a=>t(a,r)).filter(a=>a.length>0).join("|");return r===0&&(n.kind==="paragraph"||n.kind==="table")&&Sy.set(n,o),o};return t(e.root,0)}function al(e){if(e.kind==="textValue")return e.value.length;if(e.kind==="tab"||e.kind==="hardBreak")return 1;if(e.kind==="runProperties"||e.kind==="paragraphProperties"||e.kind==="generic")return 0;if(chunkIMMAG4QP_cjs.Hb(e)){let n=0;for(let r of chunkIMMAG4QP_cjs.Kb(e))n+=al(r);return n}let t=0;for(let n of e.children)t+=al(n);return t}var Ry=new WeakMap;function ei(e){let t=Ry.get(e);if(t!==void 0)return t;let n=YI(e),r=new Set,o=new Set;for(let i of n){for(let s of i.blockIds)r.add(s);i.paragraphId!==void 0&&o.add(i.paragraphId);}let a={controls:n,neededBlockIds:r,neededParagraphIds:o,neededToken:`${[...r].sort().join(",")};${[...o].sort().join(",")}`};return Ry.set(e,a),a}function YI(e){let t=[],n=(a,i)=>{for(let s of a){if(s.kind==="paragraph"||s.kind==="table"){i.push(s.id);continue}if(chunkIMMAG4QP_cjs.Hb(s)){n(chunkIMMAG4QP_cjs.Kb(s),i);continue}(s.kind==="tableRow"||s.kind==="tableCell")&&n(s.children,i);}},r=(a,i,s,l,d)=>{let c=s;for(let u of a)if(!(u.kind==="textValue"||u.kind==="paragraphProperties")){if(chunkIMMAG4QP_cjs.Hb(u)){if(l>=chunkIMMAG4QP_cjs.Gb){c+=al(u);continue}let f=Do(u),p=rl(mn(f,"lock")),m=[...d,p],g=c,h=r(chunkIMMAG4QP_cjs.Kb(u),i,c,l+1,m);t.push({control:u,nestingDepth:l,lockStack:m,level:"inline",paragraphId:i,range:{start:g,end:h},blockIds:[]}),c=h;continue}if(u.kind==="hyperlink"){c=r(u.children,i,c,l,d);continue}c+=al(u);}return c},o=(a,i,s)=>{for(let l of a){if(l.kind==="textValue")continue;if(l.kind==="paragraph"){r(l.children,l.id,0,i,s);continue}if(l.kind==="table"){for(let g of l.children)g.kind==="tableRow"&&o([g],i,s);continue}if(l.kind==="tableRow"){for(let g of l.children)g.kind==="tableCell"?o(g.children,i,s):chunkIMMAG4QP_cjs.Hb(g)&&o([g],i,s);continue}if(!chunkIMMAG4QP_cjs.Hb(l)||i>=chunkIMMAG4QP_cjs.Gb)continue;let d=Do(l),c=rl(mn(d,"lock")),u=[...s,c],f=gy(l),p=chunkIMMAG4QP_cjs.Kb(l);if(f==="inline"){o(p,i+1,u);continue}let m=[];n(p,m),t.push({control:l,nestingDepth:i,lockStack:u,level:f,blockIds:m}),o(p,i+1,u);}};for(let a of chunkIMMAG4QP_cjs.Fe(e))if(a.root.kind!=="textValue")for(let i of a.root.children){if(i.kind==="textValue")continue;let s=wy.get(i);if(s!==void 0){for(let d of s)t.push(d);continue}let l=t.length;o([i],0,[]),wy.set(i,Object.freeze(t.slice(l)));}return t}var wy=new WeakMap,bu=1<<20,Py=new WeakMap,Iy=null,vy=0;function KI(e){return e!==Iy&&(Iy=e,vy+=1),vy}function UI(e,t,n,r){let o=Py.get(e);if(o!==void 0&&o.neededStamp===n)return o;let a=[],i=[],s=e.index*bu,l=0,d=0,c=p=>l===0&&d===0?p:{x:p.x+l,y:p.y+d,width:p.width,height:p.height},u=(p,m)=>{if(m.kind==="paragraph"){t.neededBlockIds.has(m.paragraphId)&&(a.push({pageIndex:p,blockId:m.paragraphId,box:c(m.box)}));let g=t.neededParagraphIds.has(m.paragraphId);for(let h of m.lines){let b=s;if(s=Math.min(s+1,e.index*bu+bu-1),!g)continue;let x=Math.max(0,h.box.height-h.leading-(h.trailingSpacing??0));for(let v of h.spans)i.push({pageIndex:p,paragraphId:v.range.paragraphId,start:v.range.start,end:v.range.end,line:b,box:{x:v.box.x+l,y:v.box.y+h.leading+d,width:v.box.width,height:x}});}return}t.neededBlockIds.has(m.tableId)&&(a.push({pageIndex:p,blockId:m.tableId,box:c(m.box)}));for(let g of m.rows)if(!g.isHeaderRepeat)for(let h of g.cells)for(let b of h.blocks)u(p,b);};for(let p of e.fragments)u(e.index,p);for(let p of [e.header,e.footer])if(p){l=p.box.x-e.contentBox.x,d=p.box.y-e.contentBox.y;for(let m of p.fragments)u(e.index,m);}l=0,d=0;let f={neededStamp:n,blocks:a,spans:i};return Py.set(e,f),f}function qI(e,t,n){let r=KI(t.neededToken),o=new Map,a=new Map,i=new Set;for(let s of e.pages){let l=UI(s,t,r);for(let d of l.blocks){let c=o.get(d.blockId);c?c.push(d):o.set(d.blockId,[d]);}for(let d of l.spans){let c=a.get(d.paragraphId);c?(d.start<c[c.length-1].start&&i.add(d.paragraphId),c.push(d)):a.set(d.paragraphId,[d]);}}return {blocksById:o,spansByParagraph:a,repeatedParagraphs:i}}function ZI(e,t,n){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of t.blocksById.get(a)??[]){let s=r.get(i.pageIndex);s?s.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let s=la(i);return s?[{pageIndex:a,box:s}]:[]})}function JI(e,t,n,r){let o=n.spansByParagraph.get(e)??[],a=new Map,i=n.repeatedParagraphs.has(e),s=0,l=o.length;for(;!i&&s<l;){let d=s+(l-s>>1);(t.start===t.end?o[d].end<t.start:o[d].end<=t.start)?s=d+1:l=d;}i&&(s=0);for(let d=s;d<o.length;d+=1){let c=o[d];if(c.end<=t.start)continue;if(c.start>=t.end){if(i)continue;break}let u=a.get(c.line);u?u.boxes.push(c.box):a.set(c.line,{pageIndex:c.pageIndex,boxes:[c.box]});}if(a.size===0&&t.start===t.end){let d=[],c=new Set;for(let u=s;u<o.length;u+=1){let f=o[u];if(f.start>t.start){if(i)continue;break}if(t.start>f.end||c.has(f.pageIndex))continue;c.add(f.pageIndex);let p=f.start===f.end?f.box.x:f.box.x+f.box.width*(t.start-f.start)/Math.max(1,f.end-f.start);if(d.push({pageIndex:f.pageIndex,box:{x:p,y:f.box.y,width:0,height:f.box.height}}),!i)break}if(d.length>0)return d}return [...a.entries()].sort(([d],[c])=>d-c).flatMap(([,d])=>{let c=la(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}function QI(e,t,n){let r=Do(e.control),o=mn(r,"alias"),a=mn(r,"tag"),i=e.lockStack[e.lockStack.length-1]??"unlocked",s=e.level==="inline"&&e.paragraphId&&e.range?JI(e.paragraphId,e.range,t):ZI(e.blockIds,t);return {id:e.control.id,...o!==void 0?{alias:o}:{},...a!==void 0?{tag:a}:{},controlType:ol(r),lock:i,effectiveLock:da(e.lockStack),placeholder:or(r,"showingPlcHdr")!==void 0,bound:or(r,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:s}}function ev(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&(r.pageIndex!==o.pageIndex||r.box.x!==o.box.x||r.box.y!==o.box.y||r.box.width!==o.box.width||r.box.height!==o.box.height))return false}return true}function tv(e,t){return e.id===t.id&&e.alias===t.alias&&e.tag===t.tag&&e.controlType===t.controlType&&e.lock===t.lock&&e.effectiveLock===t.effectiveLock&&e.placeholder===t.placeholder&&e.bound===t.bound&&e.nestingDepth===t.nestingDepth&&e.level===t.level&&ev(e.fragments,t.fragments)}function _o(e,t){if(!e)return t.length===0;if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(!tv(e[n],t[n]))return false;return true}function xu(e,t){return {revision:e.revision,pages:e.pages,...t.contentControls!==void 0?{contentControls:t.contentControls}:{},...t.controlContextToken!==void 0?{controlContextToken:t.controlContextToken}:{}}}var Ty=new WeakMap;function Su(e,t,n=ti(t),r){let o=yy(e,t);if(o.length>1){let f=o.map(p=>ti(p));n=f.some(p=>p!=="")?f.join("|"):"";}if(n===""){let f=e.pages.some(m=>m.contentControls!==void 0&&m.contentControls.length>0);if(!f&&e.controlContextToken===n&&_o(e.contentControls,[]))return e;let p=f?e.pages.map(m=>m.contentControls!==void 0&&m.contentControls.length>0?{...m,contentControls:[]}:m):e.pages;return {revision:e.revision,pages:p,contentControls:[],controlContextToken:n}}let a=by(o),i=qI(e,a),s=a.controls.map(f=>QI(f,i)),l=new Map;for(let f of s)for(let p of f.fragments){let m=l.get(p.pageIndex),g={...f,fragments:[p]};m?m.push(g):l.set(p.pageIndex,[g]);}if(e.controlContextToken===n&&_o(e.contentControls,s)&&e.pages.every(f=>_o(f.contentControls,l.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let p=l.get(f.index)??[];if(_o(f.contentControls,p)||p.length===0&&!f.contentControls)return f;d=true;let m=Ty.get(f);if(m&&_o(m.controls,p))return m.wrapped;let g={...f,contentControls:p};return Ty.set(f,{controls:p,wrapped:g}),g}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===n&&_o(e.contentControls,s)?e:{revision:e.revision,pages:u,contentControls:s,controlContextToken:n}}function nv(e,t){return ei(e).controls.filter(r=>t?r.paragraphId!==void 0?t.has(r.paragraphId):ky(r.control).some(o=>t.has(o)):true).map(Oy)}function ky(e){let t=[],n=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);continue}if(chunkIMMAG4QP_cjs.Hb(o)){n(chunkIMMAG4QP_cjs.Kb(o));continue}n(o.children);}};return n(chunkIMMAG4QP_cjs.Kb(e)),t}function rv(e,t){let n=null;for(let r of ei(e).controls)(r.paragraphId===t||r.blockIds.includes(t)||ky(r.control).includes(t))&&(!n||r.nestingDepth>=n.nestingDepth)&&(n=r);return n?Oy(n):null}function Oy(e){let t=Do(e.control),n=mn(t,"alias"),r=mn(t,"tag");return {id:e.control.id,...n!==void 0?{alias:n}:{},...r!==void 0?{tag:r}:{},controlType:ol(t),lock:e.lockStack[e.lockStack.length-1]??"unlocked",effectiveLock:da(e.lockStack),placeholder:or(t,"showingPlcHdr")!==void 0,bound:or(t,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var il=4096,Jt=Object.freeze({pageSize:Object.freeze({widthTwips:12240,heightTwips:15840}),margins:Object.freeze({topTwips:1440,rightTwips:1440,bottomTwips:1440,leftTwips:1440,headerTwips:720,footerTwips:720,gutterTwips:0}),columns:Object.freeze({count:1,gapTwips:720,equalWidth:true,separator:false,definitions:Object.freeze([])}),landscape:false,titlePage:false,breakType:"nextPage"});function Ru(e,t,n=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<=0||r>n?t:r}function Br(e,t){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let n=Number(e);return !Number.isFinite(n)||Math.abs(n)>31680?t:n}function Ly(e,t,n=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<0||r>n?t:r}var Je=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},Lr=(e,t)=>{if(e.kind!=="textValue"){for(let n of e.children??[])if(n.kind!=="textValue"&&"localName"in n&&n.localName===t)return n}};function Cy(e,t,n){let r=Je(e,t);return r===void 0?n:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:n}function ov(e){if(!e)return 1;let t=Je(e,"num");return !t||!/^\d{1,7}$/.test(t)?1:Math.max(1,Math.min(12,Number(t)))}function av(e,t,n){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=t||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:Ru(Je(o,"w"),1,31680),gapTwips:a===t-1?0:Ly(Je(o,"space"),n)});}return r}function iv(e){let t=e?Lr(e,"type"):void 0,n=t?Je(t,"val"):void 0;return n==="continuous"||n==="evenPage"||n==="oddPage"||n==="nextColumn"?n:"nextPage"}var sv=new Set(["hyphen","period","colon","emDash","enDash"]);function Fy(e){let t=Lr(e,"pgNumType");if(!t||t.kind==="textValue")return;let n={},r=Je(t,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let s=Number(r);Number.isFinite(s)&&s>=0&&s<=9999&&(n.start=s);}let o=Je(t,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(n.fmt=o);let a=Je(t,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let s=Number(a);Number.isFinite(s)&&s>=0&&s<=9&&(n.chapStyle=s);}let i=Je(t,"chapSep");return i!==void 0&&sv.has(i)&&(n.chapSep=i),n}function sl(e){if(!e)return Jt;let t=Lr(e,"pgSz"),n=Lr(e,"pgMar"),r=Lr(e,"cols"),o=Jt,a=t?Je(t,"orient"):void 0,i=t?Ru(Je(t,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,s=t?Ru(Je(t,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,l=Fy(e),d=ov(r),c=r?Ly(Je(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?Cy(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:s},margins:{topTwips:n?Br(Je(n,"top"),1440):o.margins.topTwips,rightTwips:n?Br(Je(n,"right"),1440):o.margins.rightTwips,bottomTwips:n?Br(Je(n,"bottom"),1440):o.margins.bottomTwips,leftTwips:n?Br(Je(n,"left"),1440):o.margins.leftTwips,headerTwips:n?Br(Je(n,"header"),720):o.margins.headerTwips,footerTwips:n?Br(Je(n,"footer"),720):o.margins.footerTwips,gutterTwips:n?Br(Je(n,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?Cy(r,"sep",false):false,definitions:u?[]:av(r,d,c)},landscape:a==="landscape"||i>s,titlePage:chunkIMMAG4QP_cjs.ja(e,"titlePg"),breakType:iv(e),...l!==void 0?{pageNumbering:l}:{}}}function lv(e){let t=n=>{if(n.kind!=="textValue"){if(n.kind==="body")return Lr(n,"sectPr");for(let r of n.children??[]){let o=t(r);if(o)return o}}};return t(e.root)}function ll(e){let t=e.children.find(r=>r.kind==="paragraphProperties");if(!t)return;let n=Lr(t,"sectPr");return n&&n.kind!=="textValue"?n:void 0}function dv(e){let t=My(e);return t[t.length-1]?.properties??Jt}function My(e,t="all-markup"){return Ey(e,t).sections}function Ey(e,t="all-markup"){return wu(e,Fn(e,t))}var By=chunkIMMAG4QP_cjs.Ke(16);function wu(e,t){let n=By.get(t);if(n&&n.part===e)return n.result;let r=cv(e,t);return By.set(t,{part:e,result:r}),r}function cv(e,t){let n=[],r=0,o=false;for(let i=0;i<t.length;i+=1){let s=t[i];if(s.kind!=="paragraph")continue;let l=ll(s);if(l){if(n.length>=il){o=true;continue}n.push({index:n.length,properties:sl(l),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(n.length>0){let i=n[n.length-1];n[n.length-1]={...i,blockEndExclusive:t.length};}return {sections:n,truncated:true}}let a=lv(e);if(r<t.length||n.length===0){if(n.length>=il){let i=n[n.length-1];return n[n.length-1]={...i,blockEndExclusive:t.length},{sections:n,truncated:true}}n.push({index:n.length,properties:sl(a),blockStart:r,blockEndExclusive:t.length});}else if(a){if(n.length>=il)return {sections:n,truncated:true};n.push({index:n.length,properties:sl(a),blockStart:r,blockEndExclusive:t.length});}return {sections:n,truncated:o}}function Fr(e){let t=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.pageSize.widthTwips)),n=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.pageSize.heightTwips)),r=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.margins.leftTwips+e.margins.gutterTwips)),o=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.margins.rightTwips)),a=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.margins.topTwips)),i=chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.margins.bottomTwips));return t-r-o<=0||n-a-i<=0?ca:{width:t,height:n,margin:{top:a,right:o,bottom:i,left:r},headerDistance:chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(Math.max(0,e.margins.headerTwips))),footerDistance:chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(Math.max(0,e.margins.footerTwips)))}}var zo=1;function Pu(e,t){let n=Math.max(zo,t),r=Math.max(1,Math.min(12,Math.floor(e.count))),o=e.definitions??[],a=e.equalWidth===false&&o.length===r&&o.every(c=>c.widthTwips>0),i,s;if(a){i=o.map(p=>Math.max(zo,chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(p.widthTwips)))),s=o.slice(0,-1).map(p=>Math.max(0,chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(p.gapTwips))));let c=s.reduce((p,m)=>p+m,0),u=Math.max(r*zo,n-c),f=i.reduce((p,m)=>p+m,0);if(f>u){let p=u/f;i=i.map(m=>Math.max(zo,m*p));}}else {let c=Math.max(0,chunkIMMAG4QP_cjs.Dc(chunkIMMAG4QP_cjs.Bc(e.gapTwips))),u=Math.min(c,Math.max(0,(n-r*zo)/(r-1||1)));s=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(zo,(n-s.reduce((p,m)=>p+m,0))/r);i=Array.from({length:r},()=>f);}let l=[],d=0;for(let c=0;c<r;c+=1)l.push(d),d+=i[c]+(s[c]??0);return {count:r,widths:i,gaps:s,lefts:l,separator:e.separator===true&&r>1}}function uv(e,t,n){return ni(e,t,()=>n)}function ni(e,t,n){let r=[],o=null,a=-1,i=-1;for(let s of t){let l=n(s.sectionIndex);if(s.customMarkFollows){r.push({noteId:s.noteId,mark:null});continue}o===null?(o=l.numStart,a=s.sectionIndex,i=s.pageIndex??-1):l.numRestart==="eachSect"&&s.sectionIndex!==a?(o=l.numStart,a=s.sectionIndex):l.numRestart==="eachPage"&&s.pageIndex!==void 0&&s.pageIndex!==i?(o=l.numStart,i=s.pageIndex):l.numRestart==="eachSect"?a=s.sectionIndex:l.numRestart==="eachPage"&&s.pageIndex!==void 0&&(i=s.pageIndex);let d=o;o+=1,r.push({noteId:s.noteId,mark:Tn(l.numFmt,d),displayNumber:d});}return r}function Ny(e){let t=new Map;for(let n of e)t.set(n.noteId,n.mark);return t}var Ho=chunkIMMAG4QP_cjs.zd,ri=512,Iu=6,fv=1/3;function Ay(e,t){return `note-${e}-${t}`}function pv(e){if(!e)return [];let t=[];for(let n of chunkIMMAG4QP_cjs.Bd(e.root)){if(t.length>=Ho)break;chunkIMMAG4QP_cjs.sd(n)&&t.push(n);}return t}function Dy(e,t){if(e){for(let n of chunkIMMAG4QP_cjs.Bd(e.root))if(chunkIMMAG4QP_cjs.rd(n)===t)return n}}function vu(e,t,n){let r=chunkIMMAG4QP_cjs.pd(e),o=chunkIMMAG4QP_cjs.qd(e);if(!r||o===null)return null;let a=chunkIMMAG4QP_cjs.gd(r,o),i=vs(e),s=Ay(r,o),l=0,d=Math.max(1,t),c=n.maxFlowHeightPt??Number.POSITIVE_INFINITY,u=n.noteMarks?{...n.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},f=n.ownerPartName?n.drawingsForPart?.(n.ownerPartName):void 0,p=kr({numberingIndex:n.numberingIndex,styleCascade:n.styleCascade},i).listItems,m=Cr(i,0,d,0,0,{measurer:n.measurer,cache:n.cache,producer:`${n.producer}|${a}`,nextLineId:()=>`${s}-line-${l++}`,styleCascade:n.styleCascade,...p?{listItems:p}:{},noteMarks:u,...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...f?{inlineDrawingLayout:f.inlineDrawingLayout,...f.drawingTokenForParagraph?{drawingTokenForParagraph:f.drawingTokenForParagraph}:{}}:{}}),g=m.blocks,h=m.bottom,b;if(g.length>ri){g=g.slice(0,ri);let x=g[g.length-1];h=x?x.box.y+x.box.height:0,b="note-fragment-limit";}if(h>c){let x=[],v=0;for(let w of g){let C=w.box.y+w.box.height;if(C>c+.001&&x.length>0)break;x.push(w),v=C;}g=x,h=v,b=b??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkIMMAG4QP_cjs.rd(e),fragments:g,flowHeight:h,...b?{fallbackReason:b}:{}}}function dl(e,t,n,r){if(!e)return null;let o=chunkIMMAG4QP_cjs.Cd(e.root,t);return o?vu(o,n,{...r,ownerPartName:e.name}):null}function _y(e,t){return "single"}function zy(e){let t=vs(e);if(t.length===0)return true;for(let n of t){if(n.kind!=="paragraph")return false;let r=n.children.find(o=>o.kind==="paragraphProperties");if(Object.keys(Pn(r)).length>0||!mv(n))return false}return true}function mv(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="paragraphProperties"){if(t.kind==="run"){if(!gv(t))return false;continue}return false}return true}function gv(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="runProperties"&&!(chunkIMMAG4QP_cjs.nd(t)||chunkIMMAG4QP_cjs.od(t)||chunkIMMAG4QP_cjs.md(t))){if(t.kind==="text"){if(t.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function oi(e,t,n,r,o,a){let i=_y(),s=Dy(e,t);if(s){if(zy(s))return {kind:t,fragments:[],flowHeight:Iu,synthetic:false,ruleStyle:i};let l=vu(s,n,{...r,...e?{ownerPartName:e.name}:{}});if(l&&l.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return l.flowHeight>d+.001?{kind:t,fragments:[],flowHeight:Iu,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:t,fragments:l.fragments,flowHeight:l.flowHeight,synthetic:false}}}return {kind:t,fragments:[],flowHeight:Iu,synthetic:true,ruleStyle:i}}function Hy(e,t){let n=Math.max(1,e*fv);return {x:0,y:Math.max(0,(t-.75)/2),width:n,height:.75}}function cl(e,t,n,r){if(e.ruleStyle!==void 0||e.synthetic){let o=Hy(n,e.flowHeight);return {x:t+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:t,y:r,width:n,height:e.flowHeight}}var ku=8,Uy=4096,qy=256,Zy=14,Ou=12;function hv(e){let t=[];for(let n of e)t.push(`${n.noteKind}|${n.noteId}|${n.paragraphId}|${n.atomOffset}|${n.customMarkFollows?1:0}|${n.sectionIndex}`);return t.join(";")}function ul(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function yv(e){return e.drawingsForPart!==void 0&&e.drawingLayoutEpoch===void 0?null:[e.producer,e.defaultTabStopPt??"",e.drawingLayoutEpoch??"",ul(e.documentFootnoteProps),ul(e.documentEndnoteProps),e.footnotePropsBySection.map(ul).join(";"),e.endnotePropsBySection.map(ul).join(";")].join("\0")}var jy=new WeakMap;function bv(e,t,n){if(!e)return {memo:null,allHits:t,reused:false};let r=yv(n);if(r===null)return e.notes=null,{memo:null,allHits:t,reused:false};let o=hv(t),a=e.notes;if(a&&a.hitsFingerprint===o){let s=jy.get(a);if(a.inputFingerprint===r&&s&&s.footnotesPart===n.footnotesPart&&s.endnotesPart===n.endnotesPart&&s.measurer===n.measurer&&s.cache===n.cache&&s.styleCascade===n.styleCascade&&s.numberingIndex===n.numberingIndex)return {memo:a,allHits:a.allHits,reused:true}}let i={hitsFingerprint:o,inputFingerprint:r,allHits:t,provisionalMarks:Eu(t,n),finalMarks:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return jy.set(i,{footnotesPart:n.footnotesPart,endnotesPart:n.endnotesPart,measurer:n.measurer,cache:n.cache,styleCascade:n.styleCascade,numberingIndex:n.numberingIndex}),e.notes=i,{memo:i,allHits:t,reused:false}}function xv(e,t){return t>=e.range.start&&t<e.range.end}var Gy=new WeakMap;function Jy(e){let t=Gy.get(e);if(t)return t;let n=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){n.push(a);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let s of i.cells)r(s.blocks);}};return r(e),Gy.set(e,n),n}function Bu(e){let t=new Map;for(let n of e){let r=t.get(n.paragraphId);r?r.push(n):t.set(n.paragraphId,[n]);}return t}function pl(e,t,n){let r=Jy(e.fragments);if(!n)return t.filter(i=>r.some(s=>Kc(s,i.paragraphId,i.atomOffset)));let o=[],a=new Set;for(let i of r)for(let s of rr(i)){let l=n.get(s);if(l)for(let d of l)a.has(d)||Kc(i,s,d.atomOffset)&&(a.add(d),o.push(d));}return o}function Qy(){let e=new Map;return {get(t,n,r,o,a,i,s){let d=`${t?.name??"none"}\0${o}\0${n}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=oi(t,n,r,i,o,a);return e.set(d,u),u.fallbackReason&&s.push(u.fallbackReason),u}}}function Sv(e,t){let n=[];for(let r of e){if(n.length>=Ho)break;n.push({...r,sectionIndex:t.get(r.paragraphId)??0});}return n}function jo(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function Lu(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function eb(e,t){return {measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:e.defaultTabStopPt,projectLink:e.projectLink,projectFieldLink:e.projectFieldLink,documentProperties:e.documentProperties,noteMarks:t,drawingsForPart:e.drawingsForPart}}function Rv(e,t){return t===0?e:{...e,box:{...e.box,y:e.box.y+t},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+t}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+t}}}:{},...e.borders?{borders:e.borders.map(n=>({...n,box:{...n.box,y:n.box.y+t}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+t}}}:{},lines:e.lines.map(n=>({...n,box:{...n.box,y:n.box.y+t},spans:n.spans.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}))}}function Wy(e,t){return t===0?[...e]:e.map(n=>n.kind==="paragraph"?Rv(n,t):{...n,box:{...n.box,y:n.box.y+t}})}function wv(e,t){if(e.lines.length===0)return e.box.y+e.box.height<=t+.001?{head:e,tail:null}:{head:null,tail:e};let n=0;for(;n<e.lines.length;n+=1){let g=e.lines[n];if(g.box.y+g.box.height>t+.001)break}if(n===0)return {head:null,tail:e};if(n>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,n),o=e.lines.slice(n),a=r[r.length-1],i=e.box.y,s=a.box.y+a.box.height,l=e.borders?.filter(g=>g.side!=="bottom"),d={...e,range:{paragraphId:e.paragraphId,start:r[0].range.start,end:a.range.end},spacing:{before:e.spacing.before,after:0},lines:r,box:{...e.box,height:Math.max(0,s-i)},...l&&l.length>0?{borders:l}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,s-e.shadingBox.y)}}:{}},c=o[o.length-1],u=o[0].box.y,f=c.box.y+c.box.height,p=e.borders?.filter(g=>g.side!=="top"),m={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:o[o.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:o,box:{x:e.box.x,y:u,width:e.box.width,height:Math.max(0,f-u)},marker:void 0,...p&&p.length>0?{borders:p}:{borders:void 0},...e.bottomBorder?{bottomBorder:e.bottomBorder}:{},...e.shadingBox?{shadingBox:{x:e.shadingBox.x,y:u,width:e.shadingBox.width,height:Math.max(0,f-u)}}:{}};return {head:d,tail:m}}function Pv(e){let t=0;for(let n of e)t=Math.max(t,n.box.y+n.box.height);return t}function ml(e,t,n){if(e.flowHeight<=t+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(t<=.001)return {head:[],headHeight:0,tail:e.fragments,tailHeight:e.flowHeight};let r=[],o=0,a=0,i=null;for(let u=0;u<e.fragments.length&&u<ri;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=t+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let m=wv(f,t);if(m.head)r.push(m.head),o=m.head.box.y+m.head.box.height,i=m.tail,a=u+1;else {let g=n?.fullContentHeight??t,b=f.lines[0]?.box.height??f.box.height;if(r.length===0&&t>=g-.001&&b>g+.001){n?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let x=e.fragments.slice(a),v=x[0]?.box.y??0;return {head:[],headHeight:0,tail:Wy(x,-v),tailHeight:Math.max(0,e.flowHeight-v)}}a=u,i=null;}break}a=u;break}let s=[...i?[i]:[],...e.fragments.slice(a)];if(s.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let l=s[0]?.box.y??0,d=Wy(s,-l),c=Pv(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}function Iv(e,t){let n="FootnoteReference";if(!t)return {...ln,verticalAlign:"superscript"};let r=Ln([],[{localName:"rStyle",attributes:{val:n}}],t);return Ee(r,t.themeFonts)}function vv(e,t,n,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(t.footnotePropsBySection.length,t.endnotePropsBySection.length,1,...n.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=jo(t,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<Ou;p+=1){let m=Tn(u.numFmt,u.numStart+p);m.length>0&&o.add(m);}}let f=Lu(t,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<Ou;p+=1){let m=Tn(f.numFmt,f.numStart+p);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let s=Iv("footnote",t.styleCascade),l,d=-1;for(let c of o){let u=t.measurer.measure(c,s);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(l?.length??0))&&(l=c,d=u);}return l}function tb(e,t,n){let r=ni("footnote",e,s=>jo(n,s)),o=ni("endnote",t,s=>Lu(n,s)),a=new Map;for(let s of r)a.set(Rr("footnote",s.noteId),s.mark);for(let s of o)a.set(Rr("endnote",s.noteId),s.mark);let i=vv(a,n,e,t);return {marks:a,...i?{reservedMarkText:i}:{}}}function gl(e){let t=0;for(let n of e.fragments)t=Math.max(t,n.box.y+n.box.height);return t}function Cu(e){if(e.footnotes===void 0&&e.endnotes===void 0&&e.noteStream===void 0)return e;let{footnotes:t,endnotes:n,noteStream:r,...o}=e;return o}function Tv(e,t){if(t.marks.size===0)return e;let n=false,r=e.pages.map(o=>{if(!kv(o.fragments))return o;let a=nb(o.fragments,t);return a===o.fragments?o:(n=true,{...o,fragments:a})});return n?{revision:e.revision,pages:r}:e}var $y=new WeakMap;function kv(e){let t=$y.get(e);if(t!==void 0)return t;let n=false,r=o=>{for(let a of o){if(n)return;if(a.kind==="paragraph"){for(let i of a.lines)for(let s of i.spans)if(s.projected&&s.noteNav?.direction==="to-note"){n=true;return}continue}for(let i of a.rows)for(let s of i.cells)r(s.blocks);}};return r(e),$y.set(e,n),n}function nb(e,t){let n=false,r=e.map(o=>{if(o.kind==="paragraph"){let s=Ov(o,t);return s!==o&&(n=true),s}let a=false,i=o.rows.map(s=>{let l=false,d=s.cells.map(c=>{let u=nb(c.blocks,t);return u===c.blocks?c:(l=true,{...c,blocks:u})});return l?(a=true,{...s,cells:d}):s});return a?(n=true,{...o,rows:i}):o});return n?r:e}function Ov(e,t){let n=false,r=e.lines.map(o=>{let a=Cv(o,t);return a!==o&&(n=true),a});return n?{...e,lines:r}:e}function Cv(e,t){let n=false,r=e.spans.map(o=>{let a=Bv(o,t);return a!==o&&(n=true),a});return n?{...e,spans:r}:e}function Bv(e,t){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let n=t.marks.get(e.noteNav.scopeId);if(n===void 0)return e;let r=n??"";return e.text===r?e:{...e,text:r}}function Lv(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function rb(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function Fv(e){for(let t=e.length-1;t>=0;t-=1)if(rb(e[t]))return t;return Math.max(0,e.length-1)}function Fu(e,t,n,r,o,a,i,s){let l=new Map(a),d=t.filter(I=>I.noteKind==="footnote"),c=e.contentBox.width,u=eb(n,r),f=[],p=0,m=Uy,g=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),b=s?.separatorCache?s.separatorCache.get(n.footnotesPart,g,c,"footnote",h,u,i):(()=>{let I=oi(n.footnotesPart,g,c,u,"footnote",h);return I.fallbackReason&&i.push(I.fallbackReason),I})(),x=Math.max(0,e.contentBox.height-gl(e)-b.flowHeight),v=Math.max(0,e.contentBox.height-Zy-b.flowHeight),w=s?.reserveColumnBudget?v:x,M={fullContentHeight:Math.max(0,e.contentBox.height-b.flowHeight),reasons:i};for(let[I,E]of a){let j=I.match(/^(footnote|endnote):(-?\d+)$/);if(!j||j[1]!=="footnote")continue;let A=Number(j[2]),T=Math.max(0,w-p);if(E.height<=T+.001)f.push({noteKind:"footnote",noteId:A,scopeId:I,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:E.height},fragments:E.fragments}),p+=E.height,l.delete(I);else {let H=ml({fragments:E.fragments,flowHeight:E.height},T,M);H.head.length>0&&(f.push({noteKind:"footnote",noteId:A,scopeId:I,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:H.headHeight},fragments:H.head}),p+=H.headHeight),H.tail.length>0?l.set(I,{fragments:H.tail,height:H.tailHeight,mark:null}):l.delete(I);}}for(let I of d){if(f.length>=Ho){i.push("note-count-limit");break}let E=dl(n.footnotesPart,I.noteId,c,u);if(!E){i.push("missing-note-body");continue}let j=r.marks.get(Rr("footnote",I.noteId))??null,A=Math.max(0,w-p);if(m-=E.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(E.flowHeight<=A+.001)f.push({noteKind:"footnote",noteId:I.noteId,scopeId:E.scopeId,mark:I.customMarkFollows?null:j,box:{x:e.contentBox.x,y:0,width:c,height:E.flowHeight},fragments:E.fragments}),p+=E.flowHeight;else {let T=ml(E,A,M);T.head.length>0&&(f.push({noteKind:"footnote",noteId:I.noteId,scopeId:E.scopeId,mark:I.customMarkFollows?null:j,box:{x:e.contentBox.x,y:0,width:c,height:T.headHeight},fragments:T.head}),p+=T.headHeight),T.tail.length>0&&l.set(E.scopeId,{fragments:T.tail,height:T.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:l};let P=b.flowHeight,B=P+p,O=gl(e),k;o==="beneathText"?k=e.contentBox.y+O:(k=e.contentBox.y+e.contentBox.height-B,k=Math.max(k,e.contentBox.y+O));let _=k+P,D=f.map(I=>{let E={...I,box:{...I.box,y:_}};return _+=I.box.height,E}),y=cl(b,e.contentBox.x,c,k);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:k,width:c,height:B},separator:{kind:g,box:y,fragments:b.fragments,synthetic:b.synthetic,...b.ruleStyle!==void 0?{ruleStyle:b.ruleStyle}:{}},notes:D},nextCarry:l}}function ob(e,t,n){return {id:`page-${t}`,index:t,box:e.box,contentBox:e.contentBox,fragments:[],...n?{noteStream:n}:{},...e.header?{header:e.header}:{},...e.footer?{footer:e.footer}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+(t-e.index)}}:{}}}function Mu(e,t){let n=new Set;for(let r of Jy(e.fragments))n.add(t.get(r.paragraphId)??0);return [...n].sort((r,o)=>r-o)}function ab(e,t,n){for(let r=e.length-1;r>=0;r-=1)if(Mu(e[r],n).includes(t))return r;return Math.max(0,e.length-1)}function Mv(e,t,n){let r=ab(e,t,n);for(let o=r+1;o<e.length;o+=1){let a=e[o];if(a.noteStream==="footnote-drain"||a.noteStream==="endnote-overflow"||a.fragments.length===0&&(a.footnotes?.notes.length??0)>0)continue;let i=Mu(a,n);if(i.length!==0&&!i.includes(t))return o}return e.length}function Ev(e){return e.map((t,n)=>t.index===n&&t.id===`page-${n}`?t:{...t,id:`page-${n}`,index:n})}function Nv(e){let t=Ev(e);return [...qn({revision:0,pages:t}).pages]}function Av(e,t,n,r,o,a,i,s){let l=new Map(a),d=[];if(t.length===0&&a.size===0)return {area:void 0,nextCarry:l,remainingRefs:d};let c=e.contentBox.width,u=eb(n,r),f=s?.separatorKind??"separator",p=A=>A==="footnote"?n.footnotesPart:n.endnotesPart,m=n.endnotesPart??n.footnotesPart,g=Math.max(0,e.contentBox.height),h=s?.separatorCache?s.separatorCache.get(m,f,c,"endnote",g,u,i):(()=>{let A=oi(m,f,c,u,"endnote",g);return A.fallbackReason&&i.push(A.fallbackReason),A})(),b=h.flowHeight,x=gl(e),v=e.endnotes?Math.max(x,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):x,w=Lv(e),C=Math.max(0,w-v-b),P={fullContentHeight:Math.max(0,w-b),reasons:i},B=[],O=0,k=Uy;for(let[A,T]of a){let H=A.match(/^(footnote|endnote):(-?\d+)$/);if(!H)continue;let F=H[1],K=Number(H[2]),W=Math.max(0,C-O);if(T.height<=W+.001)B.push({noteKind:F,noteId:K,scopeId:A,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:T.height},fragments:T.fragments}),O+=T.height,l.delete(A);else {let V=ml({fragments:T.fragments,flowHeight:T.height},W,P);V.head.length>0&&(B.push({noteKind:F,noteId:K,scopeId:A,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:V.headHeight},fragments:V.head}),O+=V.headHeight),V.tail.length>0?l.set(A,{fragments:V.tail,height:V.tailHeight,mark:null}):l.delete(A);}}for(let A=0;A<t.length;A+=1){let T=t[A];if(B.length>=Ho){i.push("note-count-limit"),d.push(...t.slice(A));break}let H=p(T.noteKind),F=dl(H,T.noteId,c,u);if(!F){i.push("missing-note-body");continue}let K=r.marks.get(Rr(T.noteKind,T.noteId))??null,W=Math.max(0,C-O);if(k-=F.fragments.length,k<0){i.push("note-area-fragment-limit"),d.push(...t.slice(A));break}if(F.flowHeight<=W+.001)B.push({noteKind:T.noteKind,noteId:T.noteId,scopeId:F.scopeId,mark:T.customMarkFollows?null:K,box:{x:e.contentBox.x,y:0,width:c,height:F.flowHeight},fragments:F.fragments}),O+=F.flowHeight;else {let V=ml(F,W,P);V.head.length>0&&(B.push({noteKind:T.noteKind,noteId:T.noteId,scopeId:F.scopeId,mark:T.customMarkFollows?null:K,box:{x:e.contentBox.x,y:0,width:c,height:V.headHeight},fragments:V.head}),O+=V.headHeight),V.tail.length>0&&l.set(F.scopeId,{fragments:V.tail,height:V.tailHeight,mark:null}),d.push(...t.slice(A+1));break}}if(B.length===0&&a.size===0)return {area:void 0,nextCarry:l,remainingRefs:d};if(B.length===0)return {area:void 0,nextCarry:l,remainingRefs:d};let _=e.contentBox.y+v,D=_+b,y=B.map(A=>{let T={...A,box:{...A.box,y:D}};return D+=A.box.height,T}),ee=cl(h,e.contentBox.x,c,_),I=b+O,E=Math.max(0,w-v),j=Math.min(I,E);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:_,width:c,height:j},separator:{kind:f,box:ee,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:y},nextCarry:l,remainingRefs:d}}function Dv(e,t,n,r,o,a,i){let s=e,l=t;for(;l.size>0&&a.remaining>0;){let d=s[s.length-1],c=ob(d,d.index+1,"footnote-drain"),u=Fu(c,[],n,r,"pageBottom",l,o,{separatorCache:i}),f=u.area?.notes.length??0;if(l=u.nextCarry,f===0){o.push("note-overflow-stalled"),u.area&&(s=[...s,{...c,footnotes:u.area}],a.remaining-=1);break}s=[...s,{...c,footnotes:u.area}],a.remaining-=1;}return l.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:s,carry:l}}function _v(e,t,n,r="endnote-overflow"){let o=ob(n,t,r);return {pages:[...e.slice(0,t),o,...e.slice(t)],pageIndex:t}}function Xy(e,t,n){if(n<=t||t>=e.length)return e;let r=Math.min(n,e.length),o=e[t],a=o.pageFieldSource?.pageNumber??t+1,i=o.pageFieldSource?.format,s=r-t,l=[...e];for(let d=t;d<r;d+=1){let c=l[d];l[d]={...c,pageFieldSource:{pageNumber:a+(d-t),sectionPageCount:s,...i?{format:i}:{}}};}return l}function Vy(e,t,n,r,o,a,i,s,l){if(n.length===0||e.length===0)return e;let d=[...e],c=[...n],u=new Map,f=t,p=0,m="separator",g=l?.stopBeforeIndex??Number.POSITIVE_INFINITY,h=l?.sectionStartIndex??t,b=l?.stopBeforeIndex!==void 0,x=l?.separatorCache;for(;c.length>0||u.size>0;){if(f>=d.length||f>=g){if(s.remaining<=0){i.push("note-overflow-page-limit");break}let M=d[Math.min(Math.max(f,1),d.length)-1]??d[d.length-1],P=Math.min(f,g,d.length),B=_v(d,P,M,"endnote-overflow");d=B.pages,f=B.pageIndex,b&&(g=P+1),p+=1,s.remaining-=1;}let v=d[f];if(!rb(v)){f+=1;continue}let w=Av(v,c,r,o,a,u,i,{separatorKind:m,...x?{separatorCache:x}:{}});u=w.nextCarry,c=w.remainingRefs;let C=w.area?.notes.length??0;if(w.area){let M=d[f];d[f]={...M,endnotes:M.endnotes?{...w.area,notes:[...M.endnotes.notes,...w.area.notes],box:{...w.area.box,y:M.endnotes.box.y,height:M.endnotes.box.height+w.area.box.height}}:w.area};}else {if(u.size===0&&c.length===0)break;if(!w.area&&u.size===0&&c.length>0){f+=1,m="separator";continue}}if(C===0&&(u.size>0||c.length>0)&&v.fragments.length===0&&v.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(u.size>0||c.length>0){m="continuationSeparator",f+=1;continue}break}return (c.length>0||u.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),b?d=Xy(d,h,Math.min(g,d.length)):p>0&&(d=Xy(d,h,d.length)),d}function ib(e,t,n,r,o){let a=o??null,i=new Map,s=[],l=new Map,d=Bu(t),c=Qy();for(let f of e.pages){let p=Cu(f),g=pl(p,t,d).filter(B=>B.noteKind==="footnote"),h=g[0]?.sectionIndex??0,b=jo(n,h);if(b.pos==="sectEnd"||b.pos==="docEnd")continue;if(a&&l.size===0){let B=a.pageReserve.get(f);if(B&&B.allHits===t&&B.marks===r){for(let O of B.reasons)s.push(O);B.reserve>0&&i.set(f.index,Math.max(i.get(f.index)??0,B.reserve));continue}}let x=Math.max(0,p.contentBox.height-Zy),v=l.size===0,w=s.length,{area:C,nextCarry:M}=Fu(p,g,n,r,b.pos,l,s,{reserveColumnBudget:true,separatorCache:c});l=M;let P=Math.min(C?.box.height??0,x);if(a&&v&&l.size===0&&a.pageReserve.set(f,{allHits:t,marks:r,reserve:P>0?P:0,reasons:s.slice(w)}),P>0){let B=i.get(f.index)??0;i.set(f.index,Math.max(B,P));}}let u=true;for(let f of e.pages){let p=i.get(f.index)??0;if(p<=0)continue;if(gl(Cu(f))+p>f.contentBox.height+.5){u=false;break}}return {reserves:i,stable:u,reasons:s}}function sb(e,t,n,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,s={remaining:qy},l=Bu(t),d=Qy(),c=[],u=[];for(let w of e.pages)for(let C of pl(w,t,l)){let M={noteId:C.noteId,sectionIndex:C.sectionIndex,pageIndex:w.index,customMarkFollows:C.customMarkFollows};C.noteKind==="footnote"?c.push(M):u.push(M);}let f=o?[...c,...u].map(w=>`${w.noteId}|${w.sectionIndex}|${w.pageIndex??""}|${w.customMarkFollows?1:0}`).join(";"):"",p;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===f?p=o.finalMarks.marks:(p=tb(c,u,n),o&&(o.finalMarks={sitesFingerprint:f,marks:p}));let m=new Map,g=new Map,h=[],b=e.pages.map(w=>{let C=pl(w,t,l),M=C.filter(I=>I.noteKind==="footnote"),P=C.filter(I=>I.noteKind==="endnote");for(let I of P)if(Lu(n,I.sectionIndex).pos==="sectEnd"){let j=g.get(I.sectionIndex)??[];j.push(I),g.set(I.sectionIndex,j);}else h.push(I);for(let I of M){let E=jo(n,I.sectionIndex);if(E.pos==="sectEnd"){let j=g.get(I.sectionIndex)??[];j.push(I),g.set(I.sectionIndex,j);}else E.pos==="docEnd"&&h.push(I);}if(o&&m.size===0){let I=o.pageAttach.get(w);if(I&&I.allHits===t&&I.marks===p){for(let E of I.reasons)a.push(E);return I.attached}}let B=Cu(w),O=M[0]?.sectionIndex??0,k=jo(n,O),_,D=m.size===0,y=a.length;if(k.pos==="pageBottom"||k.pos==="beneathText"){let I=M.filter(j=>{let A=jo(n,j.sectionIndex).pos;return A==="pageBottom"||A==="beneathText"}),E=Fu(B,I,n,p,k.pos,m,a,{separatorCache:d});_=E.area,m=E.nextCarry;}let ee=_?{...B,footnotes:_}:B;return o&&D&&m.size===0&&o.pageAttach.set(w,{allHits:t,marks:p,attached:ee,reserve:0,reasons:a.slice(y)}),ee}),x=b.length;if(m.size>0){let w=Dv(b,m,n,p,a,s,d);b=w.pages,m=w.carry;}if(g.size>0&&b.length>0){let w=[...g.keys()].sort((C,M)=>C-M);for(let C of w){let M=g.get(C),P=ab(b,C,i),B=Mv(b,C,i),O=P;for(let k=0;k<=P;k+=1)if(Mu(b[k],i).includes(C)){O=k;break}b=Vy(b,P,M,n,p,"sectEnd",a,s,{stopBeforeIndex:B,sectionStartIndex:O,separatorCache:d});}}return h.length>0&&b.length>0&&(b=Vy(b,Fv(b),h,n,p,"docEnd",a,s,{separatorCache:d})),b.length!==x&&(b=Nv(b)),{layout:Tv({revision:e.revision,pages:b},p),fallbackReasons:a,noteMarks:p}}function zv(e){return chunkIMMAG4QP_cjs.$d(e).map(t=>({noteKind:t.noteKind,noteId:t.noteId,paragraphId:t.paragraphId,atomOffset:t.atomOffset,customMarkFollows:t.customMarkFollows}))}function Hv(e,t,n){let r=new Map,o=Fn(e,n);for(let a=0;a<t.length;a+=1){let i=t[a];for(let s=i.blockStart;s<i.blockEndExclusive;s+=1){let l=o[s];if(l){if(l.kind==="paragraph"){r.set(l.id,a);continue}for(let d of jv(l))r.set(d,a);}}}return r}var Yy=new WeakMap;function jv(e){let t=Yy.get(e);if(t)return t;let n=[],r=(o,a)=>{if(!(a>32)&&o.kind!=="textValue"){if(o.kind==="paragraph"){n.push(o.id);return}for(let i of o.children)r(i,a+1);}};return r(e,0),Yy.set(e,n),n}function Mr(e){let t=new Map;for(let[n,r]of e)r>0&&t.set(n,r);return t}function Tu(e,t){let n=Mr(e),r=Mr(t);if(n.size!==r.size)return false;for(let[o,a]of n)if((r.get(o)??0)!==a)return false;return true}function Ky(e,t){let n=Mr(e);for(let[r,o]of t)o<=0||n.set(r,Math.max(n.get(r)??0,o));return n}function fl(e){return [...Mr(e)].map(([t,n])=>`${t}=${n}`).sort().join(",")}function lb(e,t,n,r,o){let a=zv(e);if(a.length===0)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),o({...n,noteMarks:void 0,pageBottomReserves:void 0});let i=Hv(e,t,n.displayMode??gt),s=Sv(a,i),l=bv(n.session,s,r),d=l.memo,c=l.allHits,u=d?.provisionalMarks??Eu(c,r),f=n.session?.notePageBottomReserves,p=f?Mr(f):new Map,m=[],g=o({...n,noteMarks:u,pageBottomReserves:p}),h=new Set([fl(p)]);for(let x=0;x<ku;x+=1){let v=ib(g,c,r,u,d);if(m=[...v.reasons],v.stable&&Tu(v.reserves,p))break;let w=v.stable?Mr(v.reserves):Ky(p,v.reserves);if(Tu(w,p)){m.push("note-reflow-exhausted");break}let C=fl(w);if(h.has(C)){w=Ky(p,v.reserves);let M=fl(w);if(Tu(w,p)||h.has(M)){m.push("note-reflow-exhausted");break}}p=w,h.add(fl(p)),g=o({...n,noteMarks:u,pageBottomReserves:p}),x===ku-1&&m.push("note-reflow-exhausted");}let b=sb(g,c,r,{fallbackReasons:m,paragraphSectionIndex:i,memo:d});return n.session&&(n.session.previous=b.layout,n.session.notePageBottomReserves=Mr(p)),b.layout}function Eu(e,t){let n=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?n.push(a):r.push(a);}return tb(n,r,t)}function db(e,t){let n=e.projectLink??t.projectLink,r=e.projectFieldLink??t.projectFieldLink,o=e.documentProperties??t.documentProperties;return {...e,...n?{projectLink:n}:{},...r?{projectFieldLink:r}:{},...o?{documentProperties:o}:{}}}var Gv={kind:"covered",id:"hashed",paragraphId:"covered",fragmentIndex:"covered",range:"hashed",props:"hashed",spacing:"hashed",indent:"hashed",bottomBorder:"hashed",borders:"hashed",shading:"hashed",shadingBox:"hashed",markRevisions:"hashed",markRevision:"covered",markFormatRevision:"hashed",marker:"hashed",tabStops:"hashed",lines:"hashed",box:"hashed"},Wv={kind:"covered",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function fb(e){return Object.keys(e).filter(t=>e[t]==="hashed")}var $v=fb(Gv),Xv=fb(Wv),cb=new WeakMap;function ub(e){let t=cb.get(e);if(t!==void 0)return t;let n=e.kind==="table"?JSON.stringify(Xv.map(r=>e[r])):JSON.stringify($v.map(r=>e[r]));return cb.set(e,n),n}function pb(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&ub(r)!==ub(o))return false}return true}function Nu(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}var mb=Object.freeze([]),gb=new Map;function hb(e,t){if(e===t)return true;if(e.size!==t.size)return false;for(let[n,r]of e)if(t.get(n)!==r)return false;return true}function hl(){return {previous:null,checkpoints:[],keys:[],context:"",parityDependent:false,startPageParity:0,prepass:null,startLineCounter:0,endLineCounter:0,endCursorY:0,endSpaceAfter:0,endsOpenPage:true,stats:{placed:0,total:0,reusedPages:0,fullPasses:0},balanceLimit:null,multi:null,notePageBottomReserves:null,notes:null}}function yb(e,t){return [...e].map(([n,r])=>`${n}=${r.flowHeight}`).sort().join(",")}function Sb(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${yb(e.headers)};f:${yb(e.footers)}`:""}function yl(e,t,n){if(e.sectionFurniture)return e.sectionFurniture[t];if(t===n-1)return e.furniture}function Vv(e,t){return e.map((n,r)=>{let o=Fr(n.properties),a=yl(t,r,e.length),i=n.properties.pageNumbering,s=i?`pn:${i.start??""},${i.fmt??""},${i.chapStyle??""},${i.chapSep??""}`:"pn:",l=n.properties.columns,d=`cols:${l.count},${l.gapTwips},${l.equalWidth===false?0:1},${l.separator?1:0};${(l.definitions??[]).map(c=>`${c.widthTwips}/${c.gapTwips}`).join(",")}`;return [n.properties.breakType,o.width,o.height,o.margin.top,o.margin.right,o.margin.bottom,o.margin.left,o.headerDistance??36,o.footerDistance??36,Sb(a),s,d].join(":")}).join("|")}function Yv(e,t,n){if(!e)return null;let r=e.multi;if(r&&r.structureKey===t&&r.sections.length===n)return r;let o={structureKey:t,sections:Array.from({length:n},()=>hl()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1};return e.multi=o,o}function Kv(e){return e!=="continuous"}function Uv(e,t){return e.width===t.width&&e.height===t.height}function qv(e,t){if(t.fragments.length===0&&!t.columnSeparators?.length&&!t.anchoredDrawings?.length)return e;let n=e.anchoredDrawings||t.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...t.anchoredDrawings??[]]):void 0;return {...e,fragments:t.fragments.length>0?[...e.fragments,...t.fragments]:e.fragments,...(e.columnSeparators?.length||t.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...t.columnSeparators??[]]},...n?{anchoredDrawings:n}:{}}}function bb(e,t,n){e.previous=t,e.startLineCounter=0,e.endLineCounter=n,e.keys=[],e.checkpoints=[],e.context="";}var xb=new WeakMap;function Zv(e,t,n,r,o,a){let i=xb.get(e);if(i&&i.globalIndex===t&&i.sheetY===n&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let s=Qa(e,t,n),l=uo([s],r,o,a)[0];return xb.set(e,{globalIndex:t,sheetY:n,pageNumber:r,sectionPageCount:o,format:a,published:l}),l}function Rb(e,t,n,r,o){let{session:a,...i}=r,s=Vv(t,r),l=Yv(a,s,t.length),d=i.cache&&i.retainKeys!==false?i.retainKeys??(i.cache.retentionPassDue?.()??true?new Set:false):false,c=()=>{d&&!i.retainKeys&&i.cache?.retain(d);},u=[],f=[],p=[],m=0,g=0,h=0,b=0,x=0,v=0,w=0,C=true,M=null,P="",B=1;for(let _=0;_<t.length;_+=1){let D=t[_],y=e.slice(D.blockStart,D.blockEndExclusive),ee=Fr(D.properties),I=yl(r,_,t.length),E=u.length,j=m,A=l?.spans[_],T=Sb(I);if(y.length===0&&!Kv(D.properties.breakType)){p.push({startIndex:E,pageCount:0,sheetY:j,remappedPages:[]});continue}let H=_>0&&D.properties.breakType==="continuous"&&u.length>0&&C&&M!==null&&Uv(M,ee)&&P===T,F=l?.sections[_],K=D.properties.columns.count>1&&t[_+1]?.properties.breakType==="continuous",W=o(y,n,{...i,retainKeys:d,geometry:ee,furniture:I,sectionColumns:D.properties.columns,...K?{balanceColumns:K}:{},lineCounterStart:g,pageIndexStart:H?E-1:E,...H?{flowStartY:v,spaceBeforeCarry:w}:{},...F?{session:F}:{}});g=W.lineCounter,v=W.endCursorY,w=W.endSpaceAfter,C=W.endsOpenPage,M=ee,P=T,F?(h+=F.stats.placed,b+=F.stats.total):(h+=y.length,b+=y.length);let V=F!==void 0&&F.stats.placed===0&&F.stats.reusedPages===W.pages.length&&A!==void 0&&A.pageCount===W.pages.length,Y=A!==void 0&&A.startIndex===E&&A.sheetY===j&&A.remappedPages.length===W.pages.length,Q=D.properties.pageNumbering,G=Q?.start!==void 0?Q.start:B,U=Q?.fmt,re=A?.remappedPages[0],xe=A===void 0||A.remappedPages.length===0||re?.pageFieldSource!==void 0&&re.pageFieldSource.pageNumber===G&&re.pageFieldSource.sectionPageCount===A.remappedPages.length&&re.pageFieldSource.format===U,ae;if(H){let se=u.length-1,we=u[se],Ie=qv(we,W.pages[0]);if(Ie!==we){u[se]=Ie;let He=f.lastIndexOf(we);He!==-1&&(f[He]=Ie);}let Se=[];for(let He of W.pages.slice(1)){let je=Qa(He,u.length+Se.length,m);Se.push(je),m=je.box.y+je.box.height+24;}let Be=Se.length+1;ae=uo(Se,G+1,Be,U);for(let He of ae)u.push(He),f.push(He);B=G+Be;}else if(V&&Y&&xe){ae=A.remappedPages,x+=ae.length;for(let se of ae)u.push(se),f.push(se),m=se.box.y+se.box.height+24;B=G+ae.length;}else {let se=[];for(let we of W.pages){let Ie=Zv(we,u.length+se.length,m,G+se.length,W.pages.length,U);se.push(Ie),m=Ie.box.y+Ie.box.height+24;}ae=se;for(let we of ae)u.push(we),f.push(we);B=G+ae.length;}p.push({startIndex:E,pageCount:ae.length,sheetY:j,remappedPages:ae});}if(u.length===0){let _=Fr(t[0]?.properties??Jt),D=o([],n,{...i,retainKeys:d,geometry:_,sectionColumns:t[0]?.properties.columns??Jt.columns});c();let y=qn({revision:n,pages:D.pages});return l&&(l.spans=[],l.previousRemapped=D.pages,l.previousFinalized=y,l.previousPageCount=y.pages.length),a&&(bb(a,y,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),y}let O=qn({revision:n,pages:u}),k=O;if(l?.previousFinalized&&l.previousPageCount===O.pages.length&&l.previousRemapped.length===f.length){let _=l.previousFinalized.pages,D=l.previousRemapped,y=O.pages.map((ee,I)=>f[I]===D[I]&&_[I]?_[I]:ee);k={revision:n,pages:y};}return l&&(l.spans=p,l.previousRemapped=f,l.previousFinalized=k,l.previousPageCount=k.pages.length),a&&(bb(a,k,g),a.stats={placed:h,total:b||1,reusedPages:x,fullPasses:a.stats.fullPasses+(h===b&&x===0?1:0)}),c(),k}function bl(e=6,t=14){let n=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*n(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=t*n(r)*o;return {height:a,baseline:a*.8}}}}var Jv=2;function Qv(e,t){if(!t||t.size===0)return "";let n=[],r=o=>{if(o.kind==="paragraph"){let a=t.get(o.id)?.cacheToken;a&&n.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),n.join(";")}var wb=new WeakMap,Pb=new WeakMap;function Du(e){if(e===void 0||e.size===0)return "";let t=Pb.get(e);if(t!==void 0)return t;let n=[...e].join(",");return Pb.set(e,n),n}function eT(e){let t=Du(e.chrome),n=Du(e.placeholder),r=Du(e.suppressed);return t===""&&n===""&&r===""?"":`${t}|${n}|${r}`}function tT(e,t){let n=t.chrome?.has(e)??false,r=t.placeholder?.has(e)??false,o=t.suppressed?.has(e)??false;return !n&&!r&&!o?"":`${n?1:0}${r?1:0}${o?1:0}`}var Ib=new WeakMap;function nT(e,t,n){let r=n.displayMode??gt,o=Fn(e,r),a=wu(e,o).sections,i=ti(e),s={...n,producer:`${n.producer??"unversioned-measurer"}|cc:${i}`,tocFieldChromeParagraphIds:n.tocFieldChromeParagraphIds??pu(e),emptyTocPlaceholderParagraphIds:n.emptyTocPlaceholderParagraphIds??mu(e),emptyTocSuppressedResultParagraphIds:n.emptyTocSuppressedResultParagraphIds??gu(e)},l=n.drawingSourceOrder;!l&&n.inlineDrawingLayout&&(l=Ib.get(n.inlineDrawingLayout),l||(l=(()=>{let p=new Map;return chunkIMMAG4QP_cjs.Va(e).forEach((m,g)=>{p.set(m.drawingNodeId,g);}),p})(),Ib.set(n.inlineDrawingLayout,l)));let d=n.session?Ih(l?{...s,drawingSourceOrder:l}:s,o,n.session):kr(l?{...s,drawingSourceOrder:l}:s,o),c=p=>{if(a.length>1)return Rb(o,a,t,p,Go);let m=a[0],g=p.geometry??(m?Fr(m.properties):ca),h=yl(p,0,a.length)??p.furniture,b=Go(o,t,{...p,geometry:g,furniture:h,sectionColumns:m?.properties.columns??Jt.columns}),x=m?.properties.pageNumbering,v=xu({revision:b.layout.revision,pages:uo(b.pages,x?.start??1,b.pages.length,x?.fmt)},b.layout),w=qn(v);return p.session&&(p.session.multi=null,p.session.previous=w),w},u=p=>{let m=Su(p,e,i);return n.session&&(n.session.previous=m),m};if(!n.notes)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),u(c(d));let f=db(n.notes,n);return u(lb(e,a,d,f,c))}function vb(e,t,n,r){let o=`line:${e}:${n}:${t}`;return r===void 0?o:`${o}:occ:${r}`}function Er(e,t,n){let r=n.geometry,o=r.width-r.margin.left-r.margin.right,a=Pu(n.sectionColumns??Jt.columns,o);if(n.inlineDrawingLayout&&n.drawingExclusionPass===void 0&&!n.drawingExclusionConverged){let R=Z=>n.drawingSourceOrder?.get(Z),X=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),z=new Map,ie=null,ue=false,pe=new Set,fe=n.session?.previous?.pages;if(fe){z=Fa(fe,n.inlineDrawingLayout,o,R,X),ie=Go(e,t,{...n,drawingExclusionPass:0,drawingExclusionZonesByPage:z});let Z=Fa(ie.pages,n.inlineDrawingLayout,o,R,X);if(ms(z,Z))return ie;z=new Map(Z),pe.add(gs(Z));}for(let Z=0;Z<Pr;Z+=1){ie=Go(e,t,{...n,session:void 0,drawingExclusionPass:Z,drawingExclusionZonesByPage:z});let me=Fa(ie.pages,n.inlineDrawingLayout,o,R,X);if(me.size===0){ue=true,z=me;break}let J=gs(me);if(pe.has(J)){ue=true,z=me;break}if(pe.add(J),Z>0&&ms(z,me)){ue=true,z=me;break}z=new Map(me);}if(!ue)for(let Z=0;Z<Jv&&!ue;Z+=1){ie=Go(e,t,{...n,session:void 0,drawingExclusionPass:Pr+Z,drawingExclusionZonesByPage:z});let me=Fa(ie.pages,n.inlineDrawingLayout,o,R,X),J=gs(me);if(ms(z,me)||pe.has(J)){ue=true,z=me;break}pe.add(J),z=new Map(me);}if(!ue)throw new vo(`wrap exclusion reflow did not converge within ${Pr} passes`);return Go(e,t,{...n,drawingExclusionConverged:true,drawingExclusionZonesByPage:z})}let i=n.measurer,s=n.cache,l=n.styleCascade,d=n.listItems,c=n.defaultTabStopPt,u=n.displayMode??gt,f=u==="all-markup",p=n.tocFieldChromeParagraphIds,m=n.emptyTocPlaceholderParagraphIds,g=n.emptyTocSuppressedResultParagraphIds,h={chrome:p,placeholder:m,suppressed:g},b=eT(h),x=(n.producer??"unversioned-measurer")+(l?`|sc:${l.cacheToken}`:"")+(n.noteMarks?`|nm:${ym(n.noteMarks)}`:"")+(c!==void 0?`|dts:${c}`:"")+(u===gt?"":`|rev:${u}`),v=a.widths[0],w=n.furniture,C=r.headerDistance??36,M=r.footerDistance??36,P=R=>{let X=0;for(let z of R?.values()??[])X=Math.max(X,z.flowHeight);return X},B=r.height*.4,O=Math.min(B,Math.max(r.margin.top,w?C+P(w.headers):0)),k=Math.min(B,Math.max(r.margin.bottom,w?M+P(w.footers):0)),_=r.height-O-k,D=n.pageBottomReserves,y=n.session,ee=n.lineCounterStart??0,I=py(w,C,M),E=n.flowStartY??0,j=n.spaceBeforeCarry??0,A=n.pageIndexStart??0,T=D?`|nr:${[...D].map(([R,X])=>`${R}=${X}`).join(",")}`:"",H=n.columnRegionBottom,F=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${H!==void 0?`;bal:${H}`:""}`,K=`${x}|${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${E},${j}${I}${T}${F}`,W=A&1,V=false,Y=null,Q=()=>{V=true;},G=[],U=()=>{let R=Math.max(1,_-(D?.get(G.length)??0));return H!==void 0&&G.length===0?Math.max(1,Math.min(R,H)):R},re=(R,X)=>{let z=R.kind==="paragraph"?n.drawingTokenForParagraph?.(R)??n.drawingLayoutToken??"":R.kind==="table"&&n.drawingTokenForParagraph?ay(R,n.drawingTokenForParagraph):"",ie=R.kind==="table"?Qv(R,d):d?.get(R.id)?.cacheToken??"",ue=wb.get(R);if(ue&&ue.contentWidth===X&&ue.producer===x&&ue.drawingToken===z&&ue.listToken===ie)return ue.entry;let pe;if(R.kind==="table")pe={kind:"table",table:R,key:wr({paragraph:R,properties:[],width:X,producer:x,...z?{drawingToken:z}:{}})};else {let fe=d?.get(R.id),Z=za(R,X,l,fe),{props:me,indent:J,available:Re,alignment:ve,spacing:Te,lineSpacing:ke,contextualSpacing:it,styleId:de,shading:ze,inheritedRunProperties:Ce,markRunProperties:Ae}=Z,hn=pg(R.children.find(dr=>dr.kind==="paragraphProperties"),l),Ue=kd(hn),yn=ya(Z.tabStops,c),xt=yn===Z.tabStops?Z.tabStopsCacheToken:br(yn);pe={kind:"paragraph",paragraph:R,props:me,indent:J,available:Re,alignment:ve,spacing:Te,lineSpacing:ke,contextualSpacing:it,styleId:de,borders:hn,borderGroupKey:Ue===""?"":`${Ue}@${J.left},${J.right}`,shading:ze,inheritedRunProperties:Ce,markRunProperties:Ae,tabStops:yn,keeps:mg(me),...fe?{listItem:fe}:{},key:wr({paragraph:R,properties:[...me,...Ce,...Ae,{localName:"tabStops",attributes:{token:xt}},...fe?[{localName:"list",attributes:{token:fe.cacheToken}}]:[]],width:Re,producer:x,...z?{drawingToken:z}:{}})};}return wb.set(R,{contentWidth:X,producer:x,drawingToken:z,listToken:ie,entry:pe}),pe},xe=n.drawingTokenForParagraph===void 0&&n.drawingLayoutToken===void 0?n.drawingLayoutEpoch??"":n.drawingLayoutEpoch??null,ae=y?.prepass,se=ae!=null&&xe!==null&&ae.drawingEpoch===xe&&ae.producer===x&&ae.contentWidth===v&&ae.styleCascade===l&&ae.listItems===d&&ae.tocToken===b&&ae.bodies.length===e.length&&ae.bodies.every((R,X)=>R===e[X]),we=se?ae:Ie();function Ie(){let R=e.map(J=>re(J,v)),X=R.map(J=>J.key),z=R.map(J=>J.kind==="paragraph"&&J.keeps.keepNext),ie=R.map(J=>J.kind==="paragraph"?d?.get(J.paragraph.id)?.markerText:void 0),ue=R.map(J=>J.kind==="paragraph"&&J.contextualSpacing),pe=R.map(J=>J.kind==="paragraph"?J.styleId:null),fe=R.map(J=>J.kind==="paragraph"?J.borderGroupKey:""),Z=b===""?[]:R.map(J=>J.kind==="paragraph"?tT(J.paragraph.id,h):""),me=yg(X,{contextualSpacingAt:J=>ue[J],styleIdAt:J=>pe[J]??null,borderGroupKeyAt:J=>fe[J],tocVerdicts:Z,markerTextAt:J=>ie[J],keepsNextAt:J=>z[J]});return {bodies:e,producer:x,contentWidth:v,styleCascade:l,listItems:d,drawingEpoch:xe??"",prepared:R,keys:X,paragraphDocumentOrder:Uh(R,v,l,u),keepsNext:z,markerTexts:ie,tocToken:b,flowKeys:me}}y&&xe!==null&&!se&&(y.prepass=we);let{prepared:Se,keys:Be,paragraphDocumentOrder:He,keepsNext:je,flowKeys:ft}=we,zt=()=>{n.retainKeys!==false&&(n.retainKeys===void 0&&s&&!(s.retentionPassDue?.()??true)||Cm(s,n.retainKeys,Be,Se.flatMap(R=>R.kind==="table"?[R.table]:[])));},Xe=y?.previous??null,Ht=Xe!==null&&y!==void 0&&y.context===K&&(!y.parityDependent||y.startPageParity===W),jt=a.count===1&&Ht,Qe=0;if(Ht){let R=Math.min(ft.length,y.keys.length);for(;Qe<R&&ft[Qe]===y.keys[Qe];)Qe+=1;}let Gt=0;if(jt){let R=Math.min(ft.length,y.keys.length)-Qe;for(;Gt<R&&ft[ft.length-1-Gt]===y.keys[y.keys.length-1-Gt];)Gt+=1;}if(Ht&&Qe===Se.length&&Se.length===y.keys.length){let R=xu({revision:t,pages:Xe.pages},Xe),X=ee+(y.endLineCounter-y.startLineCounter);return y.previous=R,y.startLineCounter=ee,y.endLineCounter=X,y.startPageParity=W,y.stats={placed:0,total:Se.length,reusedPages:Xe.pages.length,fullPasses:y.stats.fullPasses},zt(),{layout:R,pages:R.pages,lineCounter:X,endCursorY:y.endCursorY,endSpaceAfter:y.endSpaceAfter,endsOpenPage:y.endsOpenPage}}let at=[],Bt=0,An=0,Ve=()=>a.lefts[Bt],Le=()=>a.widths[Bt],N=()=>({text:{left:Ve(),width:Le()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),S=()=>at.length>An,L=[],q=[],ne=new Map,$=E,be=E,le=0,_e=ee,Pe=j,Ne=[],et=()=>({pageCount:G.length,pageFragments:[...at],pendingAnchoredDrawings:[...L],deferredAnchoredDrawings:q.length>0?[...q]:mb,anchorPageDeferCounts:ne.size>0?new Map(ne):gb,cursorY:$,lineCounter:_e,previousSpaceAfter:Pe,flowColumnIndex:le}),ht=0,Lt=0,Ge=0,ye=E===0;if(jt&&Qe>0&&Qe<y.checkpoints.length){let R=y.checkpoints[Qe];G.push(...Xe.pages.slice(0,R.pageCount)),at=[...R.pageFragments],L=[...R.pendingAnchoredDrawings],q=[...R.deferredAnchoredDrawings],ne.clear();for(let[X,z]of R.anchorPageDeferCounts)ne.set(X,z);$=R.cursorY,le=R.flowColumnIndex,Bt=R.flowColumnIndex,_e=R.lineCounter,Pe=R.previousSpaceAfter,ht=Qe,ye=false,Ge=G.length,Ne.push(...y.checkpoints.slice(0,Qe));}let Ye=R=>({x:0,y:R*(r.height+24),width:r.width,height:r.height}),Ft=R=>w?.titlePage&&R===0?"first":w?.evenAndOddHeaders&&(A+R+1)%2===0?"even":"default",Dn=(R,X,z)=>{if(!w)return;let ie=Ft(X),ue=(R==="header"?w.headers:w.footers).get(ie);if(!ue)return;let pe=Te=>{let ke=R==="header"?z.y+C:z.y+r.height-M-Te.flowHeight;return {kind:R,variant:ie,partName:Te.partName,...Te.part?{part:Te.part}:{},...Te.rId?{rId:Te.rId}:{},box:{x:z.x+r.margin.left,y:ke,width:o,height:Te.flowHeight},fragments:Te.fragments,...Te.anchoredDrawings?{anchoredDrawings:Te.anchoredDrawings}:{}}},fe=A+X+1,Z={pageNumber:fe,pageCount:Math.max(fe,G.length+1),sectionPageCount:X+1},me=ue.pageFieldNeeds,Re=Un(me)||(ue.anchoredDrawings?.length??0)>0?ue.withPageContext(Z):ue,ve=pe(Re);return Un(me)?{...ve,pageFieldProjector:Te=>pe(ue.withPageContext(Te))}:ve},gn=a.count,lr=Ve,Il=R=>Object.freeze({x:a.lefts[le]??0,y:R.y,width:a.widths[le]??v,height:R.height}),vl=()=>Object.freeze({pageNumber:A+G.length+1,onPageParityRead:Q,pageWidth:r.width,pageHeight:r.height,marginLeft:r.margin.left,marginRight:r.margin.right,marginBottom:r.margin.bottom,contentInsetTop:O,contentInsetBottom:k,contentWidth:v,contentHeight:U(),contentBandHeight:_,ownerPartName:n.inlineDrawingLayout?.ownerPartName??chunkIMMAG4QP_cjs.s,storyKind:"body"}),$u=()=>La(vl()),Tl=R=>n.drawingSourceOrder?.get(R),li=R=>{if(R.length===0)return;for(let z of R)L.some(ie=>ie.drawingNodeId===z.drawingNodeId)||L.push(z.sourceOrder===void 0&&Tl(z.drawingNodeId)!==void 0?Object.freeze({...z,sourceOrder:Tl(z.drawingNodeId)}):z);if(!n.inlineDrawingLayout)return;let X=Qm(L,{pageBottom:U()});if(L.splice(0,L.length,...X.drawings),X.deferred.length>0)for(let z of X.deferred){let ie=(ne.get(z.drawingNodeId)??0)+1;ne.set(z.drawingNodeId,ie),ie>=cc?L.push(gc(z,"page-defer-exhausted")):q.push(z);}},Xu=()=>{if(q.length===0)return;let R=q.map(X=>pc(X,$-X.y));q=[],li(R);},Nr=()=>{let R=G.length,X=Ye(R),z=Dn("header",R,X),ie=Dn("footer",R,X),{usedBottom:ue,hasBodyPageFields:pe}=Yd(at,be);G.push({id:`page-${R}`,index:R,box:X,contentBox:{x:X.x+r.margin.left,y:X.y+O,width:o,height:_},fragments:at,hasBodyPageFields:pe,...a.separator?{columnSeparators:a.gaps.map((fe,Z)=>({x:a.lefts[Z]+a.widths[Z]+fe/2-.375,y:be,width:.75,height:Math.max(0,ue-be)}))}:{},...L.length>0?{anchoredDrawings:Jm(L)}:{},...z?{header:z}:{},...ie?{footer:ie}:{}}),at=[],L=[],$=0,Bt=0,le=0,be=0,An=0;},dx=(R,X)=>{if(R.kind!=="paragraph"||R.listItem!==void 0||R.shading!==void 0)return false;let{top:z,bottom:ie,left:ue,right:pe,between:fe}=R.borders;if(z??ie??ue??pe??fe)return false;let Z=n.inlineDrawingLayout;return Z&&At(R.paragraph,Z).length>0?false:X.every(me=>me.drawings.length===0&&!me.pageBreakAfter&&!me.columnBreakAfter&&me.spans.every(J=>J.text.length===0))},$o=()=>{if(Bt+1<a.count){Bt+=1,le=Bt,$=be,Pe=0,An=at.length;return}Nr(),Xu();},Vu=R=>nl(R,{measurer:i,producer:x,cache:s,styleCascade:l,...c!==void 0?{defaultTabStopPt:c}:{},...u?{displayMode:u}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},inlineDrawingLayout:n.inlineDrawingLayout,drawingTokenForParagraph:n.drawingTokenForParagraph}),_n={measurer:i,cache:s,producer:x,onCellBreakKey:R=>{Y?.push(R);},nextLineId:(R,X,z,ie)=>(_e+=1,vb(R,X,z,ie)),pageOccurrenceKey:()=>String(G.length),styleCascade:l,listItems:d,...c!==void 0?{defaultTabStopPt:c}:{},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:true,...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:n.drawingLayoutToken?{drawingLayoutToken:n.drawingLayoutToken}:{},...n.inlineDrawingLayout?{anchorFrameBase:vl,pageContentClip:$u,layoutTextboxStoryFor:Vu,publishAnchoredDrawings:li,collectAnchoredDrawings:li,columnBoxForParagraph:Il,pageExclusionZones:()=>n.drawingExclusionZonesByPage?.get(G.length)??Object.freeze([]),paragraphOrderIndex:R=>He.get(R),onAnchorShift:(R,X)=>sc(L,R,X),onAnchorRepublish:(R,X)=>{for(let z=L.length-1;z>=0;z-=1)L[z].anchorParagraphId===R&&L.splice(z,1);L.push(...X);}}:{},borderOwnershipBudget:ks(),vMergeResolveBudget:ru(),displayMode:u},kl=R=>$s(d?.get(R.paragraph.id)??R.listItem,R.indent,i,R.tabStops,R.available),Ol=(R,X,z=0)=>{let ie=R.paragraph.id,pe=!(m?.has(ie)??false)&&((p?.has(ie)??false)||(g?.has(ie)??false)),fe=R.available,Z=lr(),J=(n.drawingExclusionZonesByPage?.get(G.length)??Object.freeze([])).filter(it=>{let de=He.get(R.paragraph.id),ze=He.get(it.anchorParagraphId);if(de!==void 0&&ze!==void 0){if(ze>de)return false}else {let Ce=Se.findIndex(Ae=>Ae.kind==="paragraph"&&Ae.paragraph.id===it.anchorParagraphId);if(Ce<0||Ce>X)return false}return !(gn>1&&it.columnIndex!==le)}),Re=pn(J),ve=n.drawingTokenForParagraph?.(R.paragraph)??n.drawingLayoutToken??(n.inlineDrawingLayout?"drawing":void 0),Te=s&&!pe?Re||ve?wr({paragraph:R.paragraph,properties:R.props,width:fe,producer:x,...ve?{drawingToken:ve}:{},...Re?{exclusionToken:`${le}|${$.toFixed(3)}|${Re}`}:{},...z>0?{startOffset:z}:{}}):z===0?R.key:`${R.key}|from:${z}`:null,ke=gn>1;return Ss(R.paragraph,ie,R.indent.left,fe,i,s,Te,R.inheritedRunProperties,R.tabStops,void 0,l?(it,de)=>Ln(it,de,l):void 0,{lineSpacing:R.lineSpacing,equationCacheToken:x,firstLineOffset:z===0?kl(R):0,startOffset:z,marginExtent:{left:0,right:R.indent.left+fe+R.indent.right},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:true,displayMode:u,...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},contentLeft:ke?Z:0,contentRight:ke?Z+Le():R.indent.left+fe+R.indent.right,paragraphStartY:$,...J.length>0?{pageExclusionZones:J}:{},...pe?{suppressEmptyPlaceholderLine:true}:{},...l?{themeFonts:l.themeFonts}:{},markRunProperties:R.markRunProperties})},Yu=(R,X)=>(n.drawingExclusionZonesByPage?.get(G.length)??Object.freeze([])).filter(ie=>{let ue=He.get(R.paragraph.id),pe=He.get(ie.anchorParagraphId);if(ue!==void 0&&pe!==void 0){if(pe>ue)return false}else {let fe=Se.findIndex(Z=>Z.kind==="paragraph"&&Z.paragraph.id===ie.anchorParagraphId);if(fe<0||fe>X)return false}return !(gn>1&&ie.columnIndex!==le||ie.anchorParagraphId===R.paragraph.id&&ie.input.mode==="topAndBottom")}),Ku=(R,X,z,ie,ue,pe,fe)=>{let Z=Yu(R,X);if(!n.inlineDrawingLayout||ie<=ue)return Z;let me=Kt(R.paragraph),J=new Map,Re=0;for(let de=ue;de<ie;de+=1){let ze=z[de];for(let Ae of me.values())Ae>=ze.start&&Ae<ze.end&&J.set(Ae,Re);let Ce=fe.get(de)??z[de].exclusionSkipBefore??0;Re+=Ce+z[de].height;}if(J.size===0)return Z;let ve=gn>1,Te=R.available,ke=lr(),it=ps({paragraph:R.paragraph,paragraphId:R.paragraph.id,drawingLayout:n.inlineDrawingLayout,contentLeft:ve?ke:0,contentRight:ve?ke+Le():R.indent.left+Te+R.indent.right,paragraphStartY:pe,anchorLineTopByModelStart:J,columnIndex:le});return Object.freeze([...Z,...it])},cx=(R,X,z,ie,ue,pe,fe,Z)=>{if(n.inlineDrawingLayout){let ve=[...Kt(R.paragraph).values()];if(ve.length>0){let Te=Math.min(...ve);if(fe.end<=Te||ve.some(ke=>ke>=fe.start&&ke<fe.end)&&fe.end<=Te+1)return 0}}let me=Ku(R,X,z,ie,ue,pe,Z),J=me.length>0?Bn($,fe.height,me):0,Re=fe.exclusionSkipBefore??0;return J>.001?J:Re},ux=R=>{let X=Le(),z=Fo(R,X,0,l,u);if(!z||z.rows.length===0)return;let ie=z.columnWidthsPt.reduce((de,ze)=>de+ze,0),ue=()=>z.float?oh(z.float,ie,N()):Ve()+$a(z,Le()),pe=ue();z.float&&z.float.vertAnchor==="text"&&!z.float.ySpec&&($=Math.max(0,Math.min($+z.float.yPt,U())));let fe=[];for(let de of z.rows)if(de.isHeader)fe.push(de);else break;let Z=0,me=$,J=[],Re=new Map,ve=[],Te=()=>{if(J.length===0)return;let de=du(J,z,ve,_n.borderOwnershipBudget,_n.vMergeResolveBudget,void 0,(Ce,Ae)=>{sc(L,Ce,Ae);},_n),ze=de[de.length-1];at.push(Js({kind:"table",id:`${R.id}#f${Z}`,tableId:R.id,fragmentIndex:Z,rows:de,box:{x:pe,y:me,width:z.columnWidthsPt.reduce((Ce,Ae)=>Ce+Ae,0),height:ze.box.y+ze.box.height-me}},z.columnWidthsPt,0,Re)),Z+=1,J=[],ve=[];},ke=de=>{if(fe.length===0)return;let ze=0;for(let Ce of fe)ze+=lu(Ce,z.columnWidthsPt,pe,0,_n,z.cellSpacingPt);if(ze>U()+.001)throw new Dt("table-row-overheight",`Table header group (${fe.length} row(s)) is taller than the page content box`);$+ze>U()+.001&&$>0&&(Te(),$o(),pe=ue(),me=$);for(let Ce of fe){let Ae=Ja(Ce,z.columnWidthsPt,pe,$,de,0,_n,z.cellSpacingPt);if(Ae.bottom>U()+.001)throw new Dt("table-row-overheight",`Table header row ${Ce.id} overflowed the page content box`);J.push(Ae.record),ve.push(Ce),$=Ae.bottom;}},it=de=>{Te(),$o(),pe=ue(),me=$,ke(true);};ke(false);for(let de of z.rows.slice(fe.length)){let ze=lu(de,z.columnWidthsPt,pe,0,_n,z.cellSpacingPt),Ce=au(de),Ae=false,hn=0,Ue=false;for(ze<=U()+.001&&$+ze>U()+.001&&$>0&&(it(),Ue=true);;){if(hn+=1,hn>el)throw new Dt("table-row-fragment-limit",`Table row ${de.id} exceeded ${el} page fragments`);let yn=U()-$;if(yn<=.001&&$>0){if(Ue)throw new Dt("table-row-overheight",`Table row ${de.id} cannot fit after repeated header rows`);it(),Ue=true;continue}if(!Ae&&ze<=yn+.001){let bn=Ja(de,z.columnWidthsPt,pe,$,false,0,_n,z.cellSpacingPt);if(bn.bottom>U()+.001)throw new Dt("table-row-overheight",`Table row ${de.id} overflowed the page content box after placement`);J.push(bn.record),ve.push(de),$=bn.bottom;break}if(de.cantSplit||de.height.rule==="exact"){if($>0&&!Ue){it(),Ue=true;continue}throw new Dt("table-row-overheight",de.height.rule==="exact"?`Table row ${de.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${de.id} has w:cantSplit and is taller than the available page content`)}let xt=su(de,z.columnWidthsPt,pe,$,U(),false,Ae,0,_n,Ce,z.cellSpacingPt);if(!xt.fitted&&$>0&&!Ue){it(),Ue=true;continue}if(!xt.fitted)throw new Dt(xt.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",xt.nestedSplitBlocked?`Table row ${de.id} contains a nested table taller than the page content box`:`Table row ${de.id} has content that cannot fit a page content box`);if(xt.bottom>U()+.001)throw new Dt("table-row-overheight",`Table row ${de.id} overflowed the page content box`);let dr=xt.remainder!==null,Ar=ey(de,Ae,dr);if(J.push(xt.record),ve.push(Ar),$=xt.bottom,!dr)break;Ce=xt.remainder,Ae=true,Ue=false,it();}}Te();},zn=false,Cl=Se.length,Bl=0;for(let R=ht;R<Se.length;R+=1){let X=re(e[R],Le());if(Ne[R]=et(),jt&&Gt>0&&R>=Se.length-Gt){let oe=y.checkpoints[R+(y.keys.length-Se.length)];if(oe&&oe.cursorY===$&&oe.previousSpaceAfter===Pe&&oe.flowColumnIndex===le&&pb(oe.pageFragments,at)&&Nu(oe.pendingAnchoredDrawings,L)&&Nu(oe.deferredAnchoredDrawings,q)&&hb(oe.anchorPageDeferCounts,ne)){let ce=G.length-oe.pageCount;if(my({delta:ce,titlePage:w?.titlePage===true,evenAndOddHeaders:w?.evenAndOddHeaders===true,parityDependent:y.parityDependent,usedPageParity:V,markPageCount:oe.pageCount,hasNoteReserves:D!==void 0,hasExclusionZones:(n.drawingExclusionZonesByPage?.size??0)>0})){let kt=ce===0?Xe.pages.slice(oe.pageCount):Xe.pages.slice(oe.pageCount).map((yt,Qt)=>Qa(yt,G.length+Qt,Ye(G.length+Qt).y));G.push(...kt),Ge+=kt.length,zn=true,Cl=R,Bl=ce,_e+=y.endLineCounter-oe.lineCounter;break}}}if(Lt+=1,X.kind==="table"){Pe=0,Y=[];try{ux(X.table),Om(X.table,Y);}finally{Y=null;}continue}let{paragraph:z,props:ie,spacing:ue,contextualSpacing:pe,styleId:fe,borders:Z,shading:me,keeps:J}=X,{indent:Re,alignment:ve,markRunProperties:Te}=X,ke=X.available,it=R>0?Se[R-1]:void 0,de=Se[R+1],ze=oe=>oe?.kind==="paragraph"&&oe.styleId===fe&&fe!==null,Ce=pe?{before:ze(it)?0:ue.before,after:ze(de)?0:ue.after}:ue,Ae=d?.get(z.id)??X.listItem,hn=kl(X),Ue=z.id,yn=X.borderGroupKey,xt=oe=>yn!==""&&oe?.kind==="paragraph"&&oe.borderGroupKey===yn,dr=xt(it),Ar=xt(de),bn=dr?void 0:Z.top,Dr=Ar?Z.between:Z.bottom,cr=Vn(bn),tf=Vn(Dr);wd(ie)&&(at.length>0||G.length===0)&&(Nr(),Pe=0);let tt=Ol(X,R);if(tt.length===0)continue;let px=ll(z)!==void 0&&dx(X,tt),nf=()=>px&&H===void 0&&Bt+1>=a.count,Ll=oe=>{let ce=re(z,Le());ce.kind==="paragraph"&&(Re=ce.indent,ve=ce.alignment,ke=ce.available,Te=ce.markRunProperties,hn=oe===0?kl(ce):0,tt=[...Ol(ce,R,oe)]);};{let oe=ao(Ce.before,Pe),ce=Te.length===0?ln:Ee(Te,l?.themeFonts),pt=tt.length<=1?tf+Ce.after:0,kt=$+oe+cr,yt=Ku(X,R,tt,0,0,kt,new Map),Qt=tt[0]?ag(kt,tt[0],yt,pt):i.lineMetrics(ce).height+pt,jn=oe+cr+Qt;if(J.keepNext&&!je[R-1]){let nt=hg(Se,R,Pe,xn=>{let en=Se[xn];return en?.kind==="paragraph"?Ol(en,xn).map(Wt=>Wt.height):[]});nt!==null&&nt+cr<=U()&&(jn=Math.max(jn,nt+cr));}$+jn>U()&&$>0&&!nf()&&($o(),Pe=0,Ll(0));}let mx=$===0&&!S(),Fl=Od(Ce.before,Pe,mx,ye);Fl>0&&($+=Fl),cr>0&&($+=cr),ye=false;let ur=0,Fe=[],rf=tt[0]?.start??0,_r=Fl,fr=cr,Ml=false,Xo=$,of=0,di=new Map;Pe=0;let af=n.inlineDrawingLayout!==void 0&&At(X.paragraph,n.inlineDrawingLayout).length>0,sf=false,El=null,gx=yo(X.paragraph),lf=Is(X.paragraph),df=lf?Hs(lf):null,hx=()=>{let oe=Fe[0];if(!oe)return 0;let ce=of;if(ce<=.001)return 0;let pt=Bn(Xo,oe.box.height,Yu(X,R));return Math.max(0,ce-pt)},ci=oe=>{if(Fe.length===0)return;let ce=Ve(),pt=lr(),kt=Fe[0].box.y,yt=kt-_r-fr,Qt=Fe[Fe.length-1].box.y+Fe[Fe.length-1].box.height,jn=oe?Ce.after:0,nt=[],xn,en=kt,Wt=Qt,Gn=Z.left?wt(Z.left):0,Yo=Z.right?wt(Z.right):0,zr=Z.left?ce+Re.left-Z.left.spacePt-Gn:ce+Re.left,Al=Z.right?ce+Re.left+ke+Z.right.spacePt+Yo:ce+Re.left+ke,Hr=Math.max(Al-zr,0);if(fr>0&&bn){let dt=wt(bn),tn=kt-bn.spacePt-dt;nt.push({side:"top",edge:bn,box:{x:zr,y:tn,width:Hr,height:dt}}),en=tn;}if(oe&&Dr){let dt=wt(Dr),tn=Qt+Dr.spacePt,Wn={x:zr,y:tn,width:Hr,height:dt};nt.push({side:Ar?"between":"bottom",edge:Dr,box:Wn}),Ar||(xn={edge:Dr,box:Wn}),Wt=tn+dt;}oe&&($=Math.max($,Wt+jn));let jr=Math.max(Wt+jn-yt,0),Oe=dr&&ur===0?yt:en,Sn=Ar&&oe?yt+jr:Wt,Gr=Math.max(Sn-Oe,0);if(Z.left&&nt.push({side:"left",edge:Z.left,box:{x:ce+Re.left-Z.left.spacePt-Gn,y:Oe,width:Gn,height:Gr}}),Z.right&&nt.push({side:"right",edge:Z.right,box:{x:ce+Re.left+ke+Z.right.spacePt,y:Oe,width:Yo,height:Gr}}),Z.bar){let dt=wt(Z.bar);nt.push({side:"bar",edge:Z.bar,box:{x:ce+Re.left-Z.bar.spacePt-dt,y:kt,width:dt,height:Math.max(Qt-kt,0)}});}let Wr=df?js(Fe,df):null,$r=ur===0?Xs(Ae,i,Fe[0]?{y:Fe[0].box.y,height:Fe[0].box.height}:void 0):void 0,ui=$r?{...$r,box:{...$r.box,x:$r.box.x+ce}}:void 0;if(at.push({kind:"paragraph",id:`${Ue}#f${ur}`,paragraphId:Ue,fragmentIndex:ur,range:Wr?Wr[Wr.length-1].range:{paragraphId:Ue,start:rf,end:Fe[Fe.length-1].range.end},props:ie,spacing:{before:_r,after:jn},indent:Re,...xn?{bottomBorder:xn}:{},...nt.length>0?{borders:nt}:{},...me===void 0?{}:{shading:me,shadingBox:Z.left||Z.right?{x:zr,y:en,width:Hr,height:Math.max(Wt-en,0)}:ga(Fe,ce+Re.left,ke)},tabStops:X.tabStops,...ui?{marker:ui}:{},...oe&&f?ns(gx,Oa(X.paragraph)):{},lines:Wr??Fe,box:{x:pt+Re.left,y:yt,width:ke,height:jr}}),n.inlineDrawingLayout&&af&&!sf){sf=true;let dt=[...Kt(X.paragraph).values()],tn=dt.length>0&&dt.every(Ot=>Fe.some(pr=>Ot>=pr.range.start&&Ot<pr.range.end)),Wn,fi,Dl;if(tn){let Ot=yt-hx();Wn=Fe,fi={x:pt+Re.left,y:Ot,width:ke,height:jr},Dl=Il({x:pt+Re.left,y:Ot,height:jr});}else {let Ot=El??{columnX:pt,columnWidth:Le(),startY:yt},pr=Ot.startY;Wn=tt.map(($t,yx)=>{let bx={id:`anchor-line-${yx}`,range:{paragraphId:Ue,start:$t.start,end:$t.end},box:{x:Ot.columnX+Re.left,y:pr,width:ke,height:$t.height},contentX:$t.spans.length>0?$t.spans[0].box.x+Ot.columnX:Ot.columnX+Re.left,baseline:$t.baseline,leading:$t.leading,trailingSpacing:$t.trailingSpacing,spans:$t.spans.map(_l=>({..._l,box:{..._l.box,x:_l.box.x+Ot.columnX,y:pr}}))};return pr+=$t.height+($t.exclusionSkipBefore??0),bx});let cf=Ot.startY;fi={x:Ot.columnX+Re.left,y:cf,width:ke,height:Math.max(pr-cf,Fe[0]?.box.height??0)},Dl=Il(fi);}li(Io({paragraph:X.paragraph,paragraphId:Ue,paragraphBox:fi,lines:Wn,drawingLayout:n.inlineDrawingLayout,frameBase:vl(),columnBox:Dl,cellBox:null,pageClip:$u(),measurer:i,sourceOrderOf:Tl,layoutTextboxStory:Vu}));}ur+=1,rf=Fe[Fe.length-1].range.end,Fe=[],_r=0,fr=0;},Hn=0,Nl=0,Vo=tt.length+8;for(let oe=0;oe<tt.length;oe+=1){let ce=tt[oe],pt=oe===tt.length-1,kt=pt?tf+Ce.after:0;oe===Hn&&(Xo=$,af&&El===null&&ur===0&&(El=Object.freeze({columnX:lr(),columnWidth:Le(),startY:Xo})));let yt=cx(X,R,tt,oe,Hn,Xo,ce,di),Qt=yt+Math.max(0,ce.height-ce.trailingSpacing)+kt;if($+Qt>U()&&!nf()&&(Fe.length>0||at.length>0||G.length>0)){let Oe=!S(),Sn=Nl<Vo?gg(oe,Hn,tt.length,J,Oe):oe,Gr=Sn<oe;for(let dt=oe;dt>Sn;dt-=1){Fe.pop();let tn=tt[dt-1],Wn=di.get(dt-1)??tn.exclusionSkipBefore??0;di.delete(dt-1),$-=tn.height+Wn,_e-=1;}let Wr=Gr&&Fe.length===0&&ur===0,$r=tt[Sn].start,ui=Le();if(ci(false),$o(),_r=0,Wr?$=fr:fr=0,Le()!==ui){Ll($r),Vo=Math.max(Vo,tt.length+8),Hn=0,Gr&&(Nl+=1),oe=-1;continue}if(Hn=Sn,Xo=$,Gr){Nl+=1,oe=Sn-1;continue}}let nt=lr();di.set(oe,yt),$+=yt;let xn=nt+Re.left+(oe===0?hn:0),en=Math.max(1,ke-(oe===0?hn:0)),Wt=ce.spans.map(Oe=>({...Oe,range:{...Oe.range,paragraphId:Ue},box:{...Oe.box,x:Oe.box.x+nt,y:$}})),Gn=bs(Wt,i,xn,en,ve,pt,ve==="center"||ve==="right"?ce.width:void 0),Yo=Wt.length>0&&Gn.length>0?Gn[0].box.x-Wt[0].box.x:ve!=="left"&&ve!=="both"?(()=>{let Oe=en-ce.width;return Oe<=0?0:ve==="center"?Oe/2:Oe})():0,zr=Object.freeze({x:0,y:0,width:v,height:U()}),Al=ce.drawings.map(Oe=>{let Sn=Object.freeze({...Oe,paragraphId:Ue,x:nt+Oe.x,y:$+Oe.y,advanceStart:Oe.advanceStart+nt,advanceEnd:Oe.advanceEnd+nt,paintBounds:Object.freeze({...Oe.paintBounds,x:nt+Oe.paintBounds.x,y:$+Oe.paintBounds.y}),hitBounds:Object.freeze({...Oe.hitBounds,x:nt+Oe.hitBounds.x,y:$+Oe.hitBounds.y})});return fs(Sn,zr)}),Hr=xs(Al,Yo),jr={id:vb(z.id,ce.start,oe),range:{paragraphId:Ue,start:ce.start,end:ce.end},spans:Gn,box:{x:lr()+Re.left,y:$,width:ke,height:ce.height},contentX:Gn[0]?.box.x??xn+Yo,baseline:ce.baseline,leading:ce.leading,trailingSpacing:ce.trailingSpacing,...ce.deletedRanges?{deletedRanges:ce.deletedRanges}:{},...Hr.length>0?{drawings:Hr}:{}};if(_e+=1,Fe.length===0&&(of=yt),Fe.push(jr),$+=ce.height,ce.columnBreakAfter){let Oe=Le();if(ci(pt),$o(),_r=0,fr=0,Ml=true,!pt&&Le()!==Oe){Ll(ce.end),Vo=Math.max(Vo,tt.length+8),Hn=0,oe=-1;continue}Hn=oe+1;}else ce.pageBreakAfter&&(ci(pt),Nr(),_r=0,fr=0,Ml=true,Hn=oe+1);}ci(true),Pe=Ml?0:Ce.after;}zn||(Ne[Se.length]=et());let Uu=zn&&y?y.endCursorY:$,qu=zn&&y?y.endSpaceAfter:Pe,Zu=!zn&&(at.length>0||G.length===0),Ju=zn&&y?y.endsOpenPage:Zu;Zu&&Nr();let Qu=0,fx=cc*4+8;for(;(L.length>0||q.length>0)&&Qu<fx;)Qu+=1,L.length===0&&Xu(),Nr();q.length>0&&(L.push(...q.map(R=>gc(R,"page-defer-exhausted"))),q=[],Nr()),zt();let ef={revision:t,pages:G};if(y){y.previous=ef,y.checkpoints=zn?[...Ne.slice(0,Cl),...y.checkpoints.slice(Cl+(y.keys.length-Se.length)).map(X=>Bl===0?X:{...X,pageCount:X.pageCount+Bl})]:Ne,y.keys=ft,y.context=K;let R=V||w?.evenAndOddHeaders===true;y.parityDependent=ht===0&&!zn?R:y.parityDependent||R,y.startPageParity=W,y.startLineCounter=ee,y.endLineCounter=_e,y.endCursorY=Uu,y.endSpaceAfter=qu,y.endsOpenPage=Ju,y.stats={placed:Lt,total:Se.length,reusedPages:Ge,fullPasses:y.stats.fullPasses+(ht===0?1:0)};}return {layout:ef,pages:G,lineCounter:_e,endCursorY:Uu,endSpaceAfter:qu,endsOpenPage:Ju}}function Tb(e,t,n){let r=t.lefts.map(()=>n);for(let o of e.fragments){let a=0;for(let i=t.count-1;i>=0;i-=1)if(o.box.x+.5>=t.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var rT=.25,oT=20;function Go(e,t,n){let r=Pu(n.sectionColumns??Jt.columns,n.geometry.width-n.geometry.margin.left-n.geometry.margin.right);if(!n.balanceColumns||r.count<2||n.columnRegionBottom!==void 0)return n.session&&(n.session.balanceLimit=null),Er(e,t,n);let o=n.session,a=n.flowStartY??0,{session:i,...s}=n,l=h=>{let b=h.pages[0],x=b?Math.max(...Tb(b,r,a)):h.endCursorY;return o&&(o.endCursorY=x),{...h,endCursorY:x}};if(o&&o.balanceLimit!==null){let h=o.balanceLimit,b=Er(e,t,{...n,columnRegionBottom:h});if(o.stats.placed===0&&o.stats.reusedPages===b.pages.length)return o.balanceLimit=h,l(b)}let d=Er(e,t,s);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),Er(e,t,n);let c=Tb(d.pages[0],r,a),u=c.reduce((h,b)=>h+Math.max(0,b-a),0);if(u<=0)return o&&(o.balanceLimit=null),Er(e,t,n);let f=a+u/r.count,p=Math.max(...c)+.01,m=h=>{try{let b=Er(e,t,{...s,columnRegionBottom:h});return b.pages.length===1&&b.endsOpenPage}catch{return false}};for(let h=0;h<oT&&p-f>rT;h+=1){let b=(f+p)/2;m(b)?p=b:f=b;}let g=Er(e,t,{...n,columnRegionBottom:p});return o&&(o.balanceLimit=p),l(g)}var Bb="Calibri, Carlito, Helvetica, Arial, sans-serif",KM=new Map([["calibri","Carlito"]]),aT=65536,iT=256;function kb(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 Ob(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 Cb=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function Lb(e=null){return e!=null&&typeof e.measureText=="function"}function Fb(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??Bb,r=e.context??null;if(!Lb(r))return null;let o=r,a=Ob(kb(e.maxWidthEntries,aT)),i=Ob(kb(e.maxMetricsEntries,iT)),s=e.fontAlias,l=c=>{let u=c.fontFamily&&Cb.test(c.fontFamily)?c.fontFamily:null,f=u?s?.(u):void 0,p=f&&Cb.test(f)?f:null,m=u?p?`"${p}", "${u}", ${n}`:`"${u}", ${n}`:n,g=c.bold?"bold":"normal",h=c.italic?"italic":"normal",b=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*t;return `${h} ${g} ${b}px ${m}`},d=(c,u,f)=>c/t*(f.horizontalScalePercent/100)+u.length*f.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let f=l(u),p=`${f}\0${c}`,m=a.get(p);if(m!==void 0)return d(m,c,u);o.font=f;let g=o.measureText(c).width;return a.set(p,g),d(g,c,u)},lineMetrics(c){let u=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75),f=l(c),p=i.get(f);if(p)return p;let m=u*1.15,g=u*.8;o.font=f;let h=o.measureText("Hxg"),b=h.fontBoundingBoxAscent,x=h.fontBoundingBoxDescent;if(typeof b=="number"&&Number.isFinite(b)&&b>0&&(g=b/t,typeof x=="number"&&Number.isFinite(x)&&x>=0)){let w=(b+x)/t;w>0&&(m=w);}m>0||(m=u*1.15);let v={height:m,baseline:g};return i.set(f,v),v}}}function sT(e=1,t={}){let n=Fb({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:bl(),producer:"fixed-measurer"}}function lT(e){return e.box}function Mb(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)Mb(o,t);}function dT(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkIMMAG4QP_cjs.he*4)){for(let s of o.children)if(s.kind!=="textValue"){if(s.kind==="paragraph"){for(let l of r)t.get(l)?.push(s.id);n(s,s.id,i+1);continue}if(s.kind==="contentControl"){t.set(s.id,[]),r.push(s.id);let l=chunkIMMAG4QP_cjs.re(s);l&&n(l,a,i+1),r.pop();let d=t.get(s.id);d&&d.length===0&&a!==null&&d.push(a);continue}n(s,a,i+1);}}},r=[];return n(e,null,0),t}function cT(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 uT(e,t){let n=chunkIMMAG4QP_cjs.ve(e.root);if(n.length===0)return fT;let r=new Map;t.pages.forEach((i,s)=>{(d=>{for(let c of d){let u=new Set;Mb(c,u);for(let f of u){let p=r.get(f)??[];p.push({pageIndex:s,box:lT(c)}),r.set(f,p);}}})(i.fragments);});let o=dT(e.root),a=[];for(let i of n){let s=chunkIMMAG4QP_cjs.te(i.node),l=[...i.ancestors.map(f=>chunkIMMAG4QP_cjs.te(f).lock),s.lock],d=o.get(i.node.id)??[],c=new Map;for(let f of d)for(let p of r.get(f)??[]){let m=c.get(p.pageIndex);c.set(p.pageIndex,m?cT(m,p.box):p.box);}let u=[...c.entries()].sort((f,p)=>f[0]-p[0]).map(([f,p])=>({pageIndex:f,...p}));a.push({controlId:i.node.id,type:s.type,level:chunkIMMAG4QP_cjs.ue(i.node),depth:i.depth,lock:s.lock,effectiveLock:chunkIMMAG4QP_cjs.ye(l),showingPlaceholder:s.showingPlaceholder,temporary:s.temporary,...s.tag===void 0?{}:{tag:s.tag},...s.alias===void 0?{}:{alias:s.alias},...s.id===void 0?{}:{id:s.id},...s.dataBinding===void 0?{}:{dataBinding:s.dataBinding},paragraphIds:d,fragments:u});}return a}var fT=Object.freeze([]);function Nb(e,t,n){let r=e.lines?.find(o=>{let a=o.spans;if(!a)return n<o.range.end;let i=a.filter(s=>s.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 PT(e,t){let n=new Map;for(let r of e.pages)for(let[o,a]of IT(r,t))n.has(o)||n.set(o,a);return n}var Eb=new WeakMap;function IT(e,t){let n=Eb.get(t);n||(n=new WeakMap,Eb.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 s of a.lines??[])for(let l of s.spans??[])i.add(l.range.paragraphId);for(let s of i)o.has(s)||o.set(s,{pageIndex:e.index,contentY:e.contentBox.y,fragmentY:a.box.y,...a.lines?{lines:a.lines}:{}});}return n.set(e,o),o}function vT(e,t){let n=chunkIMMAG4QP_cjs.vg(e);if(!n)return null;let r=t.get(n.start.paragraphId);return r?{pageIndex:r.pageIndex,y:r.contentY+Nb(r,n.start.paragraphId,n.start.offset)}:null}var Ab=e=>e.verticalAlign==="baseline"?1:.75;function _u(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function TT(e){let{shaper:t,resolveFont:n,fallback:r,shapingLibrary:o,unicodeDataVersion:a,fixedPointScale:i=1e3,script:s="Latn",language:l="en"}=e,d=new WeakMap,c=new WeakMap,u=new WeakMap,f=g=>{let h=u.get(g);if(h!==void 0)return h;let b=n(g);return u.set(g,b),b},p=(g,h)=>{let b=d.get(g);b||(b=new Map,d.set(g,b));let x=b.get(h);return x||(x=new Map,b.set(h,x)),x},m=(g,h,b)=>t.shape({text:g,fontSizeHalfPoints:_u(b),bidiLevel:0,environment:gr({font:h,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:s,language:l,direction:"ltr",features:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})});return {measure(g,h){if(g.length===0)return 0;let b=f(h);if(!b)return r.measure(g,h);let x=p(b,_u(h)),v=x.get(g);if(v===void 0){let w=0;try{for(let C of m(g,b,h).glyphs)w+=C.advanceX;}catch{return r.measure(g,h)}v=w/i,x.set(g,v);}return v*Ab(h)*(h.horizontalScalePercent/100)+g.length*h.characterSpacingPt},lineMetrics(g){let h=f(g);if(!h)return r.lineMetrics(g);let b=Ab(g),x=c.get(h);x||(x=new Map,c.set(h,x));let v=_u(g),w=x.get(v);if(w)return b===1?w:{height:w.height*b,baseline:w.baseline*b};let C,M=true;try{let P=m(" ",h,g),B=P.metrics.ascent/i,O=P.metrics.descent/i,k=B+O;k>0?C={height:k,baseline:B}:(C=r.lineMetrics(g),M=!1);}catch{C=r.lineMetrics(g),M=false;}return M?(x.set(v,C),b===1?C:{height:C.height*b,baseline:C.baseline*b}):C}}}function kT(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let l of t.pages)r.add(l.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,s=-1;for(let l of t.pages){let d=l.box.y;d+l.box.height>=n.top&&d<=a&&(i===-1&&(i=l.index),s=l.index);}if(i===-1){let l=OT(t,n.top);l!==null&&(i=l,s=l);}if(i!==-1){let l=Math.max(0,i-o),d=Math.min(t.pages.length-1,s+o);for(let c=l;c<=d;c+=1)r.add(c);}for(let l of e.pinnedPages??[])l>=0&&l<t.pages.length&&r.add(l);return r}function OT(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 Db=["text-local","paragraph-local","flow-structural","global"];function _b(e,t){return Db.indexOf(t)>Db.indexOf(e)?t:e}function CT(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function BT(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,s=null,l=0,d=0;function c(h){let b=e.runCooperatively;if(!b)return t(h);let x=b(h);s=x;try{for(;;){let v=x.step();if(v)return v;if(n()!==h.revision)return x.cancel(),d+=1,null;if(s!==x)return null}}finally{s===x&&(s=null);}}function u(h){let b=p(n());b.impact=_b(b.impact,h.impact),b.structural=b.structural||h.structural;for(let x of h.paragraphIds)b.paragraphIds.add(x);for(let x of h.created)b.created.add(x);for(let x of h.deleted)b.deleted.add(x);for(let x of h.dependencyKeys)b.dependencyKeys.add(x);}let f=h=>({impact:h.impact,paragraphIds:h.paragraphIds,created:h.created,deleted:h.deleted,dependencyKeys:h.dependencyKeys,structural:h.structural,revision:h.revision});function p(h){return a||(a=CT(h)),a.revision=Math.max(a.revision,h),a}function m(){!o||i||(i=o(()=>{i=null,g();}));}function g(){i&&(i(),i=null),s&&(s.cancel(),s=null,d+=1);let h=a;if(!h)return false;a=null;let b=f(h),x=c(b);return !x||x.revision!==n()?(l+=1,u(b),m(),false):(r(x,b),true)}return {notify(h){let b=p(n());b.impact=_b(b.impact,h.impact);for(let x of h.dirty)b.paragraphIds.add(x);for(let x of h.created)b.created.add(x),b.paragraphIds.add(x);for(let x of h.deleted)b.deleted.add(x),b.paragraphIds.add(x);for(let x of h.dependencyKeys)b.dependencyKeys.add(x);for(let x of h.splitJoin)b.structural=true,"split"in x?(b.paragraphIds.add(x.split.from),b.paragraphIds.add(x.split.tail)):(b.paragraphIds.add(x.join.kept),b.paragraphIds.add(x.join.removed));(h.impact==="flow-structural"||h.impact==="global")&&(b.structural=true),m();},invalidateAll(h,b){let x=p(h);x.impact="flow-structural",x.structural=true,b&&x.dependencyKeys.add(b),m();},flush:g,pending:()=>a?f(a):null,cancel(){i?.(),i=null,s?.cancel(),s=null,a=null;},get staleDiscards(){return l},get cancelledRuns(){return d}}}function ar(e,t,n,r){let o=r?r.spans:e.spans;for(let i of r?r.drawings:e.drawings??[]){if(t===i.start)return i.advanceStart;if(t===i.start+1)return i.advanceEnd}let a=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let i of o){if(t<=i.range.start)return i.box.x;if(t>=i.range.end){a=i.box.x+i.box.width;continue}return Zs(i,t,n)}return a}function jb(e,t,n){return Gb(e,t,n,true)}function mE(e,t,n){return Gb(e,t,n,false)}var zb=new WeakMap,Hb=new WeakMap;function LT(e){let t=zb.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let o of We(r))for(let a of o.lines)for(let i of lt(a)){let s=n.get(i.paragraphId);(!s||i.end>s.end||i.end===s.end&&i.start>s.start)&&n.set(i.paragraphId,{end:i.end,start:i.start});}return zb.set(e,n),n}function FT(e){let t=Hb.get(e);if(t)return t;let n=new Map(e.map((r,o)=>[r,o]));return Hb.set(e,n),n}function MT(e){return Math.max(3,Math.min(8,e*.25))}function Gb(e,t,n,r){let o=zu(t,n);if(!o)return [];let a=FT(n),i=a.get(o.from.paragraphId),s=a.get(o.to.paragraphId),l=LT(e),d=[];for(let c of e.pages)for(let u of We(c))for(let f of u.lines){let p=lt(f);for(let[m,g]of p.entries()){let h=No(e,g,o.from,o.to),b=a.get(g.paragraphId),x=l.get(g.paragraphId),v=i!==void 0&&s!==void 0&&b!==void 0&&b>=i&&b<s&&x?.end===g.end&&x.start===g.start&&m===p.length-1;if((!r||!h)&&!v)continue;let w=r&&h?ar(f,h.start,void 0,g):null,C=r&&h?ar(f,h.end,void 0,g):null,M=v?ar(f,g.end,void 0,g):null,P=M!==null?M+MT(Math.max(0,f.box.height-f.leading-(f.trailingSpacing??0))):null,B=[w,C,M,P].filter(_=>_!==null),O=Math.min(...B),k=Math.max(...B);d.push({pageIndex:c.index,x:O,y:f.box.y,width:k-O,height:f.box.height});}}return d}function Wb(e,t,n){let r=new Map;if(t.length===0)return r;for(let o of e.pages)if(!(n&&!n.has(o.index)))for(let a of We(o))for(let i of a.lines)for(let s of lt(i))for(let l of t){let d=No(e,s,l.from,l.to);if(!d)continue;let c=ar(i,d.start,void 0,s),u=ar(i,d.end,void 0,s),f=r.get(l.key)??[];f.push({pageIndex:o.index,x:Math.min(c,u),y:i.box.y,width:Math.abs(u-c),height:i.box.height}),r.set(l.key,f);}return r}function Hu(e){let t=new Map;for(let n=0;n<e.length;n+=1){let r=e[n].position,o=t.get(r.paragraphId);o||(o=new Map,t.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,n);}return {stops:e,index:t}}var xl=class{#t=new WeakMap;#s=new WeakMap;get(t,n,r,o){let a;if(!r)a=this.#t.get(t)??new Map,this.#t.has(t)||this.#t.set(t,a);else {let l=this.#s.get(t);l||(l=new WeakMap,this.#s.set(t,l)),a=l.get(r)??new Map,l.has(r)||l.set(r,a);}let i=a.get(n);if(i)return i;let s=o();return a.set(n,s),s}};function $b(e){let t=[],n=new Set;for(let r of e)n.has(r.lineId)||(n.add(r.lineId),t.push(r.lineId));return t}function Xb(e,t,n){let r=null;for(let o of e)o.lineId===t&&(!r||Math.abs(o.x-n)<Math.abs(r.x-n))&&(r=o);return r}function ai(e,t){let n=null;for(let r of e)r.position.paragraphId===t.paragraphId&&(!n||Math.abs(r.position.offset-t.offset)<Math.abs(n.position.offset-t.offset))&&(n=r);return n}function ju(e,t,n){let r=null;for(let o of e){if(o.position.paragraphId!==t.paragraphId)continue;let a=o.position.offset;n===1?a>t.offset&&(!r||a<r.position.offset)&&(r=o):a<t.offset&&(!r||a>r.position.offset)&&(r=o);}return r}function Vb(e,t,n){let r=n.index.get(e.paragraphId)?.get(e.offset),o=r===void 0?ai(n.stops,e):n.stops[r];if(!o)return null;let a=o.lineId,i=n.stops.filter(s=>s.lineId===a);return (t===-1?i[0]:i[i.length-1])?.position??null}function Yb(e,t,n,r,o){let a=o(e.paragraphId),i=a.index.get(e.paragraphId)?.get(e.offset);if(i===void 0){let c=ju(a.stops,e,t);if(c)return {position:c.position,desiredX:null}}else {let c=i+t;if(c>=0&&c<a.stops.length)return {position:a.stops[c].position,desiredX:null}}let s=n[r+t];if(!s)return {position:e,desiredX:null};let l=o(s).stops,d=t===-1?l[l.length-1]:l[0];return d?{position:d.position,desiredX:null}:null}function Kb(e,t,n){let r=e===-1?t[0]:t[t.length-1];if(!r)return null;let o=n(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function Ub(e,t,n,r,o,a){let i=a(e.paragraphId),s=i.index.get(e.paragraphId)?.get(e.offset),l=s===void 0?ai(i.stops,e):i.stops[s];if(!l)return null;let d=n??l.x,c=$b(i.stops),u=c.indexOf(l.lineId),f=c[u+t];if(f){let m=Xb(i.stops,f,d);return m?{position:m.position,desiredX:d}:null}for(let m=o+t;m>=0&&m<r.length;m+=t){let g=a(r[m]),h=$b(g.stops),b=t===-1?h[h.length-1]:h[0];if(!b)continue;let x=Xb(g.stops,b,d);if(x)return {position:x.position,desiredX:d}}let p=t===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}var qb=new WeakMap,Zb=new WeakMap;function _t(e){let t=qb.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let[o,a]of ET(r)){let i=n.get(o);i?i.push(...a):n.set(o,[...a]);}return qb.set(e,n),n}function ET(e){let t=Zb.get(e);if(t)return t;let n=new Map,r=(a,i)=>{for(let s of lt(a)){let l={line:a,pageIndex:i},d=n.get(s.paragraphId);d?d.push(l):n.set(s.paragraphId,[l]);}},o=(a,i)=>{let s=l=>{for(let d of l){if(d.kind==="paragraph"){for(let c of d.lines)r(c,i);continue}for(let c of d.rows)if(!c.isHeaderRepeat)for(let u of c.cells)s(u.blocks);}};s(a);};for(let a of We(e))for(let i of a.lines)r(i,e.index);e.header&&o(e.header.fragments,e.index),e.footer&&o(e.footer.fragments,e.index);for(let a of [e.footnotes,e.endnotes])if(a)for(let i of a.notes)o(i.fragments,e.index);return Zb.set(e,n),n}function SE(e,t,n){let r=_t(e).get(t);if(r&&r.length>0){let o=sa(e,t,n,r.map(a=>a.line));if(o)return o}return sa(e,t,n)}var Jb=new WeakMap;function Gu(e,t){let n=Jb.get(e);n||(n=new Map,Jb.set(e,n));let r=n.get(t);if(r)return r;let o=[];for(let{line:i}of _t(e).get(t)??[])if(i.range.paragraphId===t)for(let s of i.deletedRanges??[])o.push({start:s.start,end:s.end});o.sort((i,s)=>i.start-s.start);let a=[];for(let i of o){let s=a[a.length-1];s&&i.start<=s.end?s.end=Math.max(s.end,i.end):a.push(i);}return n.set(t,a),a}function Qb(e,t){for(let n of e)if(t>n.start&&t<n.end)return true;return false}function ex(e,t){for(let n of Gu(e,t.paragraphId))if(t.offset>n.start&&t.offset<n.end)return {paragraphId:t.paragraphId,offset:n.end};return t}var NT=/[\p{L}\p{N}_'\u2019]/u;function ii(e,t,n){let r=a=>{let i=e[a];return i!==void 0&&NT.test(i)},o=Math.max(0,Math.min(t,e.length));if(n===-1){for(;o>0&&!r(o-1);)o-=1;for(;o>0&&r(o-1);)o-=1;return o}for(;o<e.length&&!r(o);)o+=1;for(;o<e.length&&r(o);)o+=1;return o}function AT(e,t,n){let r=_t(e).get(t.range.paragraphId)??[],o=false;for(let a of r){if(a.line===t){o=true;continue}if(o&&a.line.range.start===n)return true}return false}function DT(e,t,n){for(let{line:r}of _t(e).get(t)??[])if(r.range.start===n&&r.drawings?.some(o=>o.start===n))return r;return null}function _T(e,t,n){for(let r of n?n.spans:e.spans)if(!(t<=r.range.start||t>=r.range.end)&&(r.projected||r.text.length!==r.range.end-r.range.start))return true;return false}function rx(e){let t=e.spans[e.spans.length-1]?.text;return t===`
16
+ `||t===chunkIMMAG4QP_cjs.Ub}function wl(e,t,n,r,o,a,i){for(let s of lt(n))i!==void 0&&s.paragraphId!==i||zT(e,t,n,s,r,o,a);}function zT(e,t,n,r,o,a,i){let s=lt(n).length>1,l=Gu(t,r.paragraphId),d=c=>r.spans.some(u=>u.range.start<=c&&c<=u.range.end);for(let c=r.start;c<=r.end;c+=1)if(!(c===r.end&&c>r.start&&!s&&rx(n)&&AT(t,n,c))){if(c===r.start&&c>a&&e.length>0){let u=e[e.length-1];if(u.position.paragraphId===r.paragraphId&&u.position.offset===c)continue}_T(n,c,r)||Qb(l,c)&&!d(c)||e.push({position:{paragraphId:r.paragraphId,offset:c},x:ar(n,c,i,r),y:n.box.y,height:n.box.height,lineId:n.id,pageIndex:o});}}function ox(e,t,n,r,o){for(let a of t){if(a.kind==="paragraph"){for(let i of a.lines)wl(r,e,i,n,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let s of i.cells)ox(e,s.blocks,n,r,o);}}var HT=new xl;function ax(e,t){let n=[];for(let r of e.pages)for(let o of We(r))for(let a of o.lines)wl(n,e,a,r.index,o.range.start,t);return n}function jT(e,t,n){let o=(_t(e).get(t.paragraphId)??[]).find(({line:i})=>{let s=Nn(i,t.paragraphId);return s!==null&&t.offset>=s.start&&t.offset<=s.end});if(!o||lt(o.line).length<2)return null;let a=[];return wl(a,e,o.line,o.pageIndex,0,n),Hu(a)}function Sl(e,t,n){return HT.get(e,t,n,()=>{let r=[];for(let{line:o,pageIndex:a}of _t(e).get(t)??[])wl(r,e,o,a,0,n,t);return Hu(r)})}function GT(e,t,n,r){if(!e.pages[t])return [];let o=[];return ox(e,n,t,o,r),o}function WT(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function $T(e,t,n){let r=e.pages[t];if(!r)return [];let o=[];for(let a of We(r,true))if(a.paragraphId===n)for(let i of a.lines)o.push({line:i,pageIndex:t});return o}function ix(e,t,n){let r=WT(n),o=_t(e).get(t.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:$T(e,a,t.paragraphId),s=new Set(o.map(f=>f.line.id)),l=i.filter(f=>!s.has(f.line.id)),d=l.length>0?[...o,...l]:o,c=a===void 0?d:[...d].sort((f,p)=>{let m=f.pageIndex===a?0:1,g=p.pageIndex===a?0:1;return m-g}),u=null;for(let{line:f,pageIndex:p}of c){let m=Nn(f,t.paragraphId);if(!m||t.offset<m.start||t.offset>m.end)continue;if(t.offset===m.end&&t.offset>m.start&&lt(f).length===1&&rx(f)){u??={line:f,pageIndex:p};continue}if(t.offset===m.end&&t.offset>m.start&&DT(e,t.paragraphId,t.offset))continue;let g=qa(f,t.offset,r.measurer,m);return {position:t,x:g.x,y:g.y,height:g.height,lineId:f.id,pageIndex:p}}if(u){let f=qa(u.line,t.offset,r.measurer,Nn(u.line,t.paragraphId));return {position:t,x:f.x,y:f.y,height:f.height,lineId:u.line.id,pageIndex:u.pageIndex}}return null}function XT(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return Ks(e,n,t)?.caret??null}function VT(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return qs(e,n,t)}function YT(e){return Fi(e)}var tx=new WeakMap;function Rl(e,t){let n=tx.get(e);return n||(n=new Map,e.forEach((r,o)=>{n.has(r)||n.set(r,o);}),tx.set(e,n)),n.get(t)??-1}function zu(e,t){if(e.anchor.paragraphId===e.head.paragraphId)return e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor};let n=Rl(t,e.anchor.paragraphId),r=Rl(t,e.head.paragraphId);return n===-1||r===-1?null:n<r||n===r&&e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}function Wo(e,t){let n=[],r=new Set;for(let{line:a}of _t(e).get(t)??[]){let i=Nn(a,t);if(i){for(let s of i.spans){if(s.range.end===s.range.start)continue;let l=`${s.range.start}:${s.range.end}`;if(r.has(l))continue;r.add(l);let d=s.range.end-s.range.start,c=s.text.length===d?s.text:s.text.slice(0,d).padEnd(d," ");n.push({start:s.range.start,text:c});}for(let s of i.drawings){let l=s.start,d=l+1,c=`${l}:${d}`;r.has(c)||(r.add(c),n.push({start:l,text:"\uFFFC"}));}}}n.sort((a,i)=>a.start-i.start);let o="";for(let a of n)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function nx(e,t,n,r){let o=Or(e),a=Va(e).get(t.paragraphId);return a===void 0?null:Yb(t,n,o,a,i=>Sl(e,i,r))}function KT(e,t,n,r=null,o={}){if(!o.stops&&(n==="left"||n==="right"))return nx(e,t,n==="left"?-1:1,o.measurer);if(!o.stops&&(n==="wordLeft"||n==="wordRight")){let l=n==="wordLeft"?-1:1,d=ii(Wo(e,t.paragraphId),t.offset,l);return d===t.offset?nx(e,t,l,o.measurer):{position:{paragraphId:t.paragraphId,offset:d},desiredX:null}}if(!o.stops&&(n==="lineStart"||n==="lineEnd")){let l=Vb(t,n==="lineStart"?-1:1,jT(e,t,o.measurer)??Sl(e,t.paragraphId,o.measurer));return l?{position:l,desiredX:null}:null}if(!o.stops&&(n==="documentStart"||n==="documentEnd")){let l=Kb(n==="documentStart"?-1:1,Or(e),d=>Sl(e,d,o.measurer));return l?{position:l,desiredX:null}:null}if(!o.stops&&(n==="up"||n==="down")){let l=Va(e).get(t.paragraphId);return l===void 0?null:Ub(t,n==="up"?-1:1,r,Or(e),l,d=>Sl(e,d,o.measurer))}let a=o.stops?[...o.stops]:ax(e,o.measurer);if(a.length===0)return null;let i=a.findIndex(l=>l.position.paragraphId===t.paragraphId&&l.position.offset===t.offset);if(i===-1){if(n==="left"||n==="right"){let d=ju(a,t,n==="left"?-1:1)??ai(a,t);return d?{position:d.position,desiredX:null}:null}let l=ai(a,t);if(!l)return null;i=a.indexOf(l);}let s=a[i];switch(n){case "left":return {position:a[Math.max(0,i-1)].position,desiredX:null};case "right":return {position:a[Math.min(a.length-1,i+1)].position,desiredX:null};case "lineStart":return {position:a.filter(d=>d.lineId===s.lineId)[0].position,desiredX:null};case "lineEnd":{let l=a.filter(d=>d.lineId===s.lineId);return {position:l[l.length-1].position,desiredX:null}}case "wordLeft":case "wordRight":{let l=Wo(e,t.paragraphId),d=n==="wordLeft"?-1:1,c=ii(l,t.offset,d);return c===t.offset?{position:a[d===-1?Math.max(0,i-1):Math.min(a.length-1,i+1)].position,desiredX:null}:{position:{paragraphId:t.paragraphId,offset:c},desiredX:null}}case "documentStart":return {position:a[0].position,desiredX:null};case "documentEnd":return {position:a[a.length-1].position,desiredX:null};case "pageUp":case "pageDown":{let l=r??s.x,d=s.pageIndex+(n==="pageUp"?-1:1),c=a.filter(p=>p.pageIndex===d);if(c.length===0)return {position:(n==="pageUp"?a[0]:a[a.length-1]).position,desiredX:l};let u=c[0],f=Number.POSITIVE_INFINITY;for(let p of c){let m=Math.abs(p.y-s.y)*1e3+Math.abs(p.x-l);m<f&&(f=m,u=p);}return {position:u.position,desiredX:l}}case "up":case "down":{let l=r??s.x,d=[],c=new Set;for(let g of a)c.has(g.lineId)||(c.add(g.lineId),d.push(g.lineId));let u=d.indexOf(s.lineId),f=n==="up"?u-1:u+1;if(f<0||f>=d.length)return {position:(n==="up"?a[0]:a[a.length-1]).position,desiredX:l};let p=a.filter(g=>g.lineId===d[f]),m=p[0];for(let g of p)Math.abs(g.x-l)<Math.abs(m.x-l)&&(m=g);return {position:m.position,desiredX:l}}default:return null}}function UT(e,t){return ix(e,t)}function qT(e,t,n){let r=zu(t,n);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return ZT(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:l}of _t(e).get(r.from.paragraphId)??[]){let d=Nn(l,r.from.paragraphId);if(!d)continue;let c=No(e,d,r.from,r.to);if(c)for(let u of d.spans)u.range.end>c.start&&u.range.start<c.end&&o.push(u);}return o}let a=_t(e),i=Rl(n,r.from.paragraphId),s=Rl(n,r.to.paragraphId);if(i===-1||s===-1)return [];for(let l=i;l<=s;l+=1)for(let{line:d}of a.get(n[l])??[]){let c=Nn(d,n[l]);if(!c)continue;let u=No(e,c,r.from,r.to);if(u)for(let f of c.spans)f.range.end>u.start&&f.range.start<u.end&&o.push(f);}return o}function ZT(e,t){let n=null;for(let{line:r}of _t(e).get(t.paragraphId)??[])for(let o of Nn(r,t.paragraphId)?.spans??[]){if(o.range.start<t.offset&&t.offset<=o.range.end)return [o];n===null&&o.range.start===t.offset&&(n=o);}return n?[n]:[]}var sx=new WeakMap;function sr(e){let t=sx.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=(s,l,d,c)=>{for(let u of s){if(u.kind==="paragraph")continue;let f=u.tableId,p=o.get(f);p||(p=new Map,o.set(f,p),n.set(f,[]),r.set(f,new Map));for(let m of u.rows){let g=p.get(m.id);g===void 0&&(g=p.size,p.set(m.id,g),r.get(f).set(g,m.cells));for(let h of m.cells)n.get(f).push({pageIndex:l,tableId:f,row:m,cell:h,rowIndex:g,isHeaderRepeat:m.isHeaderRepeat,offsetX:d,offsetY:c}),a(h.blocks,l,d,c);}}};for(let s of e.pages){a(s.fragments,s.index,0,0);for(let l of [s.header,s.footer])l&&a(l.fragments,s.index,l.box.x-s.contentBox.x,l.box.y-s.contentBox.y);for(let l of [s.footnotes,s.endnotes])if(l)for(let d of l.notes)a(d.fragments,s.index,d.box.x-s.contentBox.x,d.box.y-s.contentBox.y);}let i=new Map;for(let[s,l]of n)i.set(s,{placed:l,rows:r.get(s)??new Map});return sx.set(e,i),i}function lx(e){let t=0;for(let n of e.rows.values())for(let r of n)t=Math.max(t,ir(r).to+1);return t}var ir=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function JT(e,t,n){if(t.tableId!==n.tableId)return null;let r=sr(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(ir(t).from,ir(n).from),s=Math.max(ir(t).to,ir(n).to),l=p=>{let{from:m,to:g}=ir(p);return g>=i&&m<=s},d=p=>(r.rows.get(p)??[]).some(m=>m.vMergeContinue&&l(m)),c=r.rows.size+lx(r)+2;for(let p=0;!(p>c);p+=1){let m=false;for(let[g,h]of r.rows)if(!(g<o||g>a))for(let b of h){if(!l(b))continue;let{from:x,to:v}=ir(b);x<i&&(i=x,m=true),v>s&&(s=v,m=true);}for(;o>0&&d(o);)o-=1,m=true;for(;d(a+1);)a+=1,m=true;if(!m)break}let u=[],f=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:m,to:g}=ir(p.cell);g<i||m>s||f.has(p.cell.id)||(f.add(p.cell.id),u.push(p.cell.id));}return u.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:u,rows:{from:o,to:a},columns:{from:i,to:s},text:QT(e,t.tableId,u)}}function Pl(e,t){let n=new Set(t),r=[],o=new Set;for(let a of sr(e).values())for(let i of a.placed)if(!(i.isHeaderRepeat||!n.has(i.cell.id)))for(let s of i.cell.blocks)si(s,r,o);return r}function si(e,t,n){if(e.kind==="paragraph"){for(let r of rr(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)si(a,t,n);}function QT(e,t,n){let r=Pl(e,n),o=r[0],a=r[r.length-1];return !o||!a?ek(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:Wo(e,a).length}}}function ek(e,t){let n=sr(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let s of o.cell.blocks)si(s,a,new Set);let i=a[0];if(i){let s={paragraphId:i,offset:0};return {anchor:s,head:s}}}for(let o of e.pages)for(let a of We(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function tk(e){let t=[...We(e)];for(let n of [e.header,e.footer])n&&t.push(...Yt(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...Yt(r.fragments));return t}function nk(e,t){let n=new Set(Pl(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of tk(a))if(n.has(i.paragraphId))for(let s of i.lines)for(let l of s.spans){let d=`${l.range.paragraphId}:${l.range.start}:${l.range.end}`;o.has(d)||(o.add(d),r.push(l));}return r}function rk(e,t){let n=new Set(t),r=[];for(let o of sr(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 ok(e,t){let n=sr(e).get(t.tableId);if(!n)return "";let r=new Set(t.cellIds),o=new Map,a=new Set;for(let i of n.placed){if(i.isHeaderRepeat||!r.has(i.cell.id)||a.has(i.cell.id))continue;a.add(i.cell.id);let s=Pl(e,[i.cell.id]).map(d=>Wo(e,d)).join(`
17
17
  `),l=o.get(i.rowIndex);l?l.set(i.cell.gridColumn,s):o.set(i.rowIndex,new Map([[i.cell.gridColumn,s]]));}return [...o.keys()].sort((i,s)=>i-s).map(i=>{let s=o.get(i),l=[];for(let d=t.columns.from;d<=t.columns.to;d+=1)l.push(s.get(d)??"");return l.join(" ")}).join(`
18
- `)}function Wu(e,t){let n=null,r=-1;for(let[o,a]of ir(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let s=[];for(let d of i.cell.blocks)si(d,s,new Set);if(!s.includes(t))continue;let l=o.length;l<=r||(r=l,n={tableId:o,rows:a.rows.size,columns:ax(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return n}function MM(e,t,n){if(n){let a=Wu(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let s=ir(e).get(n.tableId);if(!s)return null;for(let l of s.placed)if(l.cell.id===i)return {tableId:n.tableId,rowId:l.row.id,cellId:i,cellIds:n.cellIds,gridColumnIndex:l.cell.gridColumn,isHeaderRepeat:l.isHeaderRepeat};return null}let r=Wu(e,t);if(!r)return null;let o=ir(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let s of a.cell.blocks)si(s,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.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}exports.$=WS;exports.$a=Up;exports.$b=Wa;exports.$c=av;exports.$d=HT;exports.A=pd;exports.Aa=kd;exports.Ab=dc;exports.Ac=QP;exports.Ad=ib;exports.B=Vt;exports.Ba=ao;exports.Bb=hs;exports.Bc=Ks;exports.Bd=sb;exports.C=IS;exports.Ca=Od;exports.Cb=ig;exports.Cc=nL;exports.Cd=Mu;exports.D=vS;exports.Da=Ai;exports.Db=ws;exports.Dc=eI;exports.Dd=hl;exports.E=TS;exports.Ea=ma;exports.Eb=lg;exports.Ec=qs;exports.Ed=bl;exports.F=Ci;exports.Fa=Cd;exports.Fb=Oo;exports.Fc=Gh;exports.Fd=Qv;exports.G=OS;exports.Ga=Bd;exports.Gb=C0;exports.Gc=Zs;exports.Gd=Bb;exports.H=md;exports.Ha=ga;exports.Hb=Bo;exports.Hc=qa;exports.Hd=GE;exports.I=Bi;exports.Ia=eR;exports.Ib=ug;exports.Ic=pI;exports.Id=Lb;exports.J=CS;exports.Ja=tR;exports.Jb=Ln;exports.Jc=aL;exports.Jd=Fb;exports.K=BS;exports.Ka=nR;exports.Kb=za;exports.Kc=iL;exports.Kd=oT;exports.L=LS;exports.La=rR;exports.Lb=mg;exports.Lc=sL;exports.Ld=lT;exports.M=hd;exports.Ma=Ld;exports.Mb=bg;exports.Mc=lL;exports.Md=Nb;exports.N=wp;exports.Na=io;exports.Nb=Rc;exports.Nc=dL;exports.Nd=ST;exports.O=Pp;exports.Oa=Ed;exports.Ob=Fn;exports.Oc=el;exports.Od=wT;exports.P=Ip;exports.Pa=Md;exports.Pb=vs;exports.Pc=Dt;exports.Pd=PT;exports.Q=vp;exports.Qa=ya;exports.Qb=Ts;exports.Qc=DL;exports.Qd=IT;exports.R=Tp;exports.Ra=lR;exports.Rb=Eg;exports.Rc=pu;exports.Rd=kT;exports.S=kp;exports.Sa=so;exports.Sb=Ms;exports.Sc=mu;exports.Sd=zb;exports.T=NS;exports.Ta=Nd;exports.Tb=Ns;exports.Tc=gu;exports.Td=Hb;exports.U=AS;exports.Ua=yr;exports.Ub=As;exports.Uc=DI;exports.Ud=pM;exports.V=to;exports.Va=fR;exports.Vb=Tc;exports.Vc=QI;exports.Vd=Zb;exports.W=zS;exports.Wa=pR;exports.Wb=Dg;exports.Wc=ev;exports.Wd=ii;exports.X=bd;exports.Xa=vn;exports.Xb=kc;exports.Xc=il;exports.Xd=nx;exports.Y=Ke;exports.Ya=Kn;exports.Yb=Ir;exports.Yc=Jt;exports.Yd=AT;exports.Z=Yt;exports.Za=Kp;exports.Zb=qt;exports.Zc=Fy;exports.Zd=rx;exports._=Sd;exports._a=Gd;exports._b=zs;exports._c=sl;exports._d=zT;exports.a=Ql;exports.aa=Lp;exports.ab=Wd;exports.ac=nh;exports.ad=ll;exports.ae=jT;exports.b=ed;exports.ba=sa;exports.bb=qp;exports.bc=rh;exports.bd=iv;exports.be=Wo;exports.c=td;exports.ca=Fi;exports.cb=Tn;exports.cc=$a;exports.cd=Ey;exports.ce=GT;exports.d=Xn;exports.da=la;exports.db=$d;exports.dc=Fo;exports.dd=My;exports.de=WT;exports.e=Yr;exports.ea=da;exports.eb=Xd;exports.ec=Dc;exports.ed=Lr;exports.ee=$T;exports.f=Ri;exports.fa=ca;exports.fb=ln;exports.fc=sh;exports.fd=lv;exports.fe=VT;exports.g=xx;exports.ga=Fp;exports.gb=Me;exports.gc=AP;exports.gd=ni;exports.ge=Pl;exports.h=rn;exports.ha=Ei;exports.hb=Jn;exports.hc=Eo;exports.hd=Ny;exports.he=qT;exports.i=mr;exports.ia=no;exports.ib=Et;exports.ic=_c;exports.id=Ho;exports.ie=ZT;exports.j=ip;exports.ja=wd;exports.jb=DR;exports.jc=zc;exports.jd=ri;exports.je=JT;exports.k=id;exports.ka=Np;exports.kb=Kd;exports.kc=AB;exports.kd=Ay;exports.ke=Wu;exports.l=vi;exports.la=fa;exports.lb=gt;exports.lc=$c;exports.ld=cv;exports.le=MM;exports.m=wx;exports.ma=Ap;exports.mb=ot;exports.mc=Xc;exports.md=Dy;exports.n=vx;exports.na=Dp;exports.nb=yo;exports.nc=bh;exports.nd=vu;exports.o=ra;exports.oa=oo;exports.ob=Oa;exports.oc=Vc;exports.od=dl;exports.p=Tx;exports.pa=_p;exports.pb=Zd;exports.pc=Sh;exports.pd=_y;exports.q=kx;exports.qa=Rk;exports.qb=cm;exports.qc=Tr;exports.qd=zy;exports.r=Ee;exports.ra=Pd;exports.rb=KR;exports.rc=Ws;exports.rd=oi;exports.s=nS;exports.sa=Id;exports.sb=UR;exports.sc=kr;exports.sd=Hy;exports.t=pp;exports.ta=vd;exports.tb=dn;exports.tc=Bh;exports.td=cl;exports.u=yS;exports.ua=Td;exports.ub=Sr;exports.uc=ut;exports.ud=ku;exports.v=Ti;exports.va=Pn;exports.vb=Qd;exports.vc=KB;exports.vd=qy;exports.w=xS;exports.wa=pa;exports.wb=Rm;exports.wc=rr;exports.wd=Ou;exports.x=SS;exports.xa=wt;exports.xb=Rr;exports.xc=UB;exports.xd=hv;exports.y=RS;exports.ya=Vn;exports.yb=hw;exports.yc=Qc;exports.yd=Bu;exports.z=ud;exports.za=JS;exports.zb=aC;exports.zc=Ua;exports.zd=pl;
18
+ `)}function Wu(e,t){let n=null,r=-1;for(let[o,a]of sr(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let s=[];for(let d of i.cell.blocks)si(d,s,new Set);if(!s.includes(t))continue;let l=o.length;l<=r||(r=l,n={tableId:o,rows:a.rows.size,columns:lx(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return n}function jE(e,t,n){if(n){let a=Wu(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let s=sr(e).get(n.tableId);if(!s)return null;for(let l of s.placed)if(l.cell.id===i)return {tableId:n.tableId,rowId:l.row.id,cellId:i,cellIds:n.cellIds,gridColumnIndex:l.cell.gridColumn,isHeaderRepeat:l.isHeaderRepeat};return null}let r=Wu(e,t);if(!r)return null;let o=sr(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let s of a.cell.blocks)si(s,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.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}exports.$=VS;exports.$a=Up;exports.$b=Wa;exports.$c=lv;exports.$d=XT;exports.A=pd;exports.Aa=kd;exports.Ab=dc;exports.Ac=nI;exports.Ad=ib;exports.B=Vt;exports.Ba=ao;exports.Bb=hs;exports.Bc=Ks;exports.Bd=sb;exports.C=kS;exports.Ca=Od;exports.Cb=ig;exports.Cc=lL;exports.Cd=Eu;exports.D=OS;exports.Da=Ai;exports.Db=ws;exports.Dc=rI;exports.Dd=hl;exports.E=CS;exports.Ea=ma;exports.Eb=lg;exports.Ec=qs;exports.Ed=bl;exports.F=Ci;exports.Fa=Cd;exports.Fb=Oo;exports.Fc=Gh;exports.Fd=nT;exports.G=LS;exports.Ga=Bd;exports.Gb=F0;exports.Gc=Zs;exports.Gd=Bb;exports.H=md;exports.Ha=ga;exports.Hb=Bo;exports.Hc=qa;exports.Hd=KM;exports.I=Bi;exports.Ia=rR;exports.Ib=ug;exports.Ic=hI;exports.Id=Lb;exports.J=FS;exports.Ja=oR;exports.Jb=Ln;exports.Jc=uL;exports.Jd=Fb;exports.K=MS;exports.Ka=aR;exports.Kb=za;exports.Kc=fL;exports.Kd=sT;exports.L=ES;exports.La=iR;exports.Lb=mg;exports.Lc=pL;exports.Ld=uT;exports.M=hd;exports.Ma=Ld;exports.Mb=bg;exports.Mc=mL;exports.Md=Nb;exports.N=wp;exports.Na=io;exports.Nb=Rc;exports.Nc=gL;exports.Nd=PT;exports.O=Pp;exports.Oa=Md;exports.Ob=Fn;exports.Oc=el;exports.Od=vT;exports.P=Ip;exports.Pa=Ed;exports.Pb=vs;exports.Pc=Dt;exports.Pd=TT;exports.Q=vp;exports.Qa=ya;exports.Qb=Ts;exports.Qc=WL;exports.Qd=kT;exports.R=Tp;exports.Ra=uR;exports.Rb=Mg;exports.Rc=pu;exports.Rd=BT;exports.S=kp;exports.Sa=so;exports.Sb=Es;exports.Sc=mu;exports.Sd=jb;exports.T=_S;exports.Ta=Nd;exports.Tb=Ns;exports.Tc=gu;exports.Td=mE;exports.U=zS;exports.Ua=br;exports.Ub=As;exports.Uc=HI;exports.Ud=Wb;exports.V=to;exports.Va=gR;exports.Vb=Tc;exports.Vc=nv;exports.Vd=SE;exports.W=GS;exports.Wa=hR;exports.Wb=Dg;exports.Wc=rv;exports.Wd=ex;exports.X=bd;exports.Xa=vn;exports.Xb=kc;exports.Xc=il;exports.Xd=ii;exports.Y=We;exports.Ya=Kn;exports.Yb=vr;exports.Yc=Jt;exports.Yd=ax;exports.Z=Yt;exports.Za=Kp;exports.Zb=qt;exports.Zc=Fy;exports.Zd=GT;exports._=Sd;exports._a=Gd;exports._b=zs;exports._c=sl;exports._d=ix;exports.a=Ql;exports.aa=Lp;exports.ab=Wd;exports.ac=nh;exports.ad=ll;exports.ae=VT;exports.b=ed;exports.ba=sa;exports.bb=qp;exports.bc=rh;exports.bd=dv;exports.be=YT;exports.c=td;exports.ca=Fi;exports.cb=Tn;exports.cc=$a;exports.cd=My;exports.ce=Wo;exports.d=Xn;exports.da=la;exports.db=$d;exports.dc=Fo;exports.dd=Ey;exports.de=KT;exports.e=Yr;exports.ea=da;exports.eb=Xd;exports.ec=Dc;exports.ed=Fr;exports.ee=UT;exports.f=Ri;exports.fa=ca;exports.fb=ln;exports.fc=sh;exports.fd=uv;exports.fe=qT;exports.g=wx;exports.ga=Fp;exports.gb=Ee;exports.gc=zP;exports.gd=ni;exports.ge=JT;exports.h=rn;exports.ha=Mi;exports.hb=Jn;exports.hc=Mo;exports.hd=Ny;exports.he=Pl;exports.i=gr;exports.ia=no;exports.ib=Mt;exports.ic=_c;exports.id=Ho;exports.ie=nk;exports.j=ip;exports.ja=wd;exports.jb=HR;exports.jc=zc;exports.jd=ri;exports.je=rk;exports.k=id;exports.ka=Np;exports.kb=Kd;exports.kc=GB;exports.kd=Ay;exports.ke=ok;exports.l=vi;exports.la=fa;exports.lb=gt;exports.lc=$c;exports.ld=pv;exports.le=Wu;exports.m=vx;exports.ma=Ap;exports.mb=ot;exports.mc=Xc;exports.md=Dy;exports.me=jE;exports.n=Ox;exports.na=Dp;exports.nb=yo;exports.nc=bh;exports.nd=vu;exports.o=ra;exports.oa=oo;exports.ob=Oa;exports.oc=Vc;exports.od=dl;exports.p=Cx;exports.pa=_p;exports.pb=Zd;exports.pc=Sh;exports.pd=_y;exports.q=Bx;exports.qa=kk;exports.qb=cm;exports.qc=kr;exports.qd=zy;exports.r=Me;exports.ra=Pd;exports.rb=ZR;exports.rc=Ws;exports.rd=oi;exports.s=aS;exports.sa=Id;exports.sb=JR;exports.sc=Or;exports.sd=Hy;exports.t=pp;exports.ta=vd;exports.tb=dn;exports.tc=Bh;exports.td=cl;exports.u=SS;exports.ua=Td;exports.ub=Rr;exports.uc=lt;exports.ud=ku;exports.v=Ti;exports.va=Pn;exports.vb=Qd;exports.vc=eL;exports.vd=qy;exports.w=wS;exports.wa=pa;exports.wb=Rm;exports.wc=rr;exports.wd=Ou;exports.x=PS;exports.xa=wt;exports.xb=wr;exports.xc=tL;exports.xd=xv;exports.y=IS;exports.ya=Vn;exports.yb=xw;exports.yc=Qc;exports.yd=Bu;exports.z=ud;exports.za=tR;exports.zb=uC;exports.zc=Ua;exports.zd=pl;