@docx-editor.dev/core 2.11.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +5 -5
- package/dist/automation.d.ts +5 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +8 -8
- package/dist/binding.d.ts +8 -8
- package/dist/binding.js +1 -1
- package/dist/{chunk-EJATEGJZ.cjs → chunk-3JON7JMD.cjs} +1 -1
- package/dist/{chunk-GRDFEH5Q.cjs → chunk-5V6FNKBE.cjs} +1 -1
- package/dist/chunk-BXRVGHTY.cjs +18 -0
- package/dist/chunk-BXTTPJSH.js +5 -0
- package/dist/chunk-ILTZTY3K.cjs +10 -0
- package/dist/chunk-IUM7FZPA.js +2 -0
- package/dist/chunk-JWZG4QJ5.cjs +2 -0
- package/dist/chunk-JXZYDBKU.cjs +19 -0
- package/dist/chunk-KBOOIC2Q.js +19 -0
- package/dist/chunk-L6XZTLPS.js +10 -0
- package/dist/chunk-L7OR5TJK.cjs +5 -0
- package/dist/chunk-MHQNR2OU.js +2 -0
- package/dist/chunk-MLGPISGH.js +1 -0
- package/dist/chunk-NJXQABQU.js +18 -0
- package/dist/chunk-TKEGK4GQ.cjs +2 -0
- package/dist/chunk-VGFMPWND.js +2 -0
- package/dist/{chunk-BP7ANXGA.js → chunk-W77HJGYX.js} +1 -1
- package/dist/{chunk-WPQMPHNR.cjs → chunk-XCFM3G5L.cjs} +1 -1
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.cts +3 -3
- package/dist/collaboration/replication.d.ts +3 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.cts +3 -3
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/editor.d.cts +7 -7
- package/dist/contracts/editor.d.ts +7 -7
- package/dist/contracts/interaction.d.cts +7 -7
- package/dist/contracts/interaction.d.ts +7 -7
- package/dist/contracts/modules.d.cts +7 -7
- package/dist/contracts/modules.d.ts +7 -7
- package/dist/{custom-node-writes-JfTn-Sy6.d.ts → custom-node-writes-CcNeHH5C.d.ts} +2 -2
- package/dist/{custom-node-writes-CwkYRw3V.d.cts → custom-node-writes-D4rMJIES.d.cts} +2 -2
- package/dist/{editor-C8edZgy5.d.cts → editor-B76SEMZw.d.cts} +3 -3
- package/dist/{editor-BogcVHXk.d.ts → editor-BcdsPdbY.d.ts} +3 -3
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.cts +56 -23
- package/dist/editor.d.ts +56 -23
- package/dist/editor.js +1 -1
- package/dist/{index-BNv-ZLQP.d.ts → index-BYTvklN5.d.ts} +12 -12
- package/dist/{index-Dn0lOp9Z.d.cts → index-CDGhPib1.d.cts} +12 -12
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +29 -18
- package/dist/layout.d.ts +29 -18
- package/dist/layout.js +1 -1
- package/dist/{note-properties-BmoSdyKS.d.ts → note-properties-Bx7rXruA.d.ts} +1 -1
- package/dist/{note-properties-BvGfHk5e.d.cts → note-properties-zQ8w04en.d.cts} +1 -1
- package/dist/{omml-equation-Ciq5rgb7.d.ts → omml-equation-69O1Pd8G.d.ts} +1 -1
- package/dist/{omml-equation-CqQOt_dD.d.cts → omml-equation-BmV51rim.d.cts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -6
- package/dist/output.d.ts +6 -6
- package/dist/output.js +1 -1
- package/dist/{protocol-Ckl7hWsv.d.ts → protocol-DC7ueVuo.d.ts} +2 -2
- package/dist/{protocol-BB-WP3zk.d.cts → protocol-FTXtrAIT.d.cts} +2 -2
- package/dist/{review-items-CkYyXhXM.d.ts → review-items-B78OsJU2.d.ts} +1 -1
- package/dist/{review-items-BdeLNRi2.d.cts → review-items-C-2WQdEb.d.cts} +1 -1
- package/dist/{review-reads-BOLSBm5w.d.cts → review-reads-CbBQlb-n.d.cts} +2 -2
- package/dist/{review-reads-Crf0Xn42.d.ts → review-reads-UexYBp-m.d.ts} +2 -2
- package/dist/{revision-projection-C2S8PSQm.d.cts → revision-projection-6u8lae9J.d.cts} +1 -1
- package/dist/{revision-projection-Ae2CWa8E.d.ts → revision-projection-B2v9U3qx.d.ts} +1 -1
- package/dist/{semantic-cell-selection-DdmoxC-y.d.ts → semantic-cell-selection-DsYz2Vg3.d.ts} +4 -4
- package/dist/{semantic-cell-selection-C0OFD4D9.d.cts → semantic-cell-selection-nEE7E3Z8.d.cts} +4 -4
- package/dist/{semantic-interaction-COyhZ9WH.d.ts → semantic-interaction-C00BpIyC.d.ts} +1 -1
- package/dist/{semantic-interaction-Cs2jErnt.d.cts → semantic-interaction-DiOX0FIH.d.cts} +1 -1
- package/dist/{semantic-paint-UHaj3sBY.d.cts → semantic-paint-Cc11nrDL.d.cts} +2 -2
- package/dist/{semantic-paint-vA-oLSdV.d.ts → semantic-paint-ofuoBsYo.d.ts} +2 -2
- package/dist/{semantic-records-5AOQJmLX.d.cts → semantic-records-CRG1r6-a.d.cts} +3 -3
- package/dist/{semantic-records-9xhwbJ23.d.ts → semantic-records-CzI0ZEuR.d.ts} +3 -3
- package/dist/{shaped-measurer-vzsY88oK.d.ts → shaped-measurer-CkOGZQn9.d.ts} +1 -1
- package/dist/{shaped-measurer-NeF2mPSu.d.cts → shaped-measurer-CneACGcP.d.cts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +19 -13
- package/dist/store.d.ts +19 -13
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-BPyXNxyL.d.cts → tree-op-types-CA7qgAUF.d.cts} +42 -9
- package/dist/{tree-op-types-DnzAOnc9.d.ts → tree-op-types-HKfUzt_-.d.ts} +42 -9
- package/dist/{tree-package-fragment-BjZ3RWAS.d.cts → tree-package-fragment-Cz-v-0B3.d.cts} +2 -2
- package/dist/{tree-package-fragment-CDER0G3B.d.ts → tree-package-fragment-oJZX_5iN.d.ts} +2 -2
- package/dist/{tree-session-contract-DhdsFT_z.d.ts → tree-session-contract-BPDLrEPX.d.ts} +5 -5
- package/dist/{tree-session-contract-BF2FVBOM.d.cts → tree-session-contract-Cbl87xa8.d.cts} +5 -5
- package/dist/{tree-store-CNZ3O83s.d.ts → tree-store-B7hd6cEa.d.ts} +1 -1
- package/dist/{tree-store-DfZi7FqY.d.cts → tree-store-BenW0Mg_.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-34BNQUD4.js +0 -10
- package/dist/chunk-5AVHO75P.cjs +0 -19
- package/dist/chunk-6HMSC7UV.js +0 -2
- package/dist/chunk-76Y3Y45J.cjs +0 -2
- package/dist/chunk-CRZR6K5Z.js +0 -19
- package/dist/chunk-GWV65NQW.cjs +0 -10
- package/dist/chunk-GXLZCXEH.js +0 -2
- package/dist/chunk-JUQOPVSK.cjs +0 -2
- package/dist/chunk-LAETEBHD.js +0 -1
- package/dist/chunk-M6Z3KFXM.cjs +0 -5
- package/dist/chunk-UQFOYZJO.cjs +0 -18
- package/dist/chunk-WXQ245MQ.js +0 -18
- package/dist/chunk-WZHIFNSU.js +0 -5
- package/dist/chunk-X7A5XART.js +0 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {f,c,d,e}from'./chunk-WU7PUTVA.js';import {y}from'./chunk-VGFMPWND.js';import {Y}from'./chunk-IUM7FZPA.js';import {m,Mf,ge,ca,Pd as Pd$1,ee,Wd as Wd$1,Xd as Xd$1,Ud as Ud$1,ae,be,Zd as Zd$1,ce,I,ld,qf,g,Cc as Cc$1,sb as sb$1,ib as ib$1,gb as gb$1,fd,qc as qc$1,la,jd as jd$1,ie,$d as $d$1,_d as _d$1,Yd as Yd$1,je,Vd as Vd$1,eb as eb$1,xf as xf$1,vf as vf$1,Af,wf as wf$1,rc as rc$1,a,Ca as Ca$1,na,nc as nc$1,ab as ab$1,Xa as Xa$1,fb as fb$1,mc as mc$1,pc as pc$1,Pc as Pc$1,Rc as Rc$1,Hf,Qe as Qe$1,jf,tf as tf$1,$a as $a$1,Za as Za$1,s,Ie,bb as bb$1,Kc as Kc$1,Ic as Ic$1,Nc as Nc$1,Yc as Yc$1,Xc as Xc$1,Va as Va$1,Mc as Mc$1,Oc as Oc$1,cb as cb$1,ja as ja$1,ic as ic$1,Ua as Ua$1,Vc as Vc$1,Wc as Wc$1,Dc as Dc$1,Fc as Fc$1,Uc as Uc$1,hb as hb$1}from'./chunk-L6XZTLPS.js';var GS=Symbol("validated-resolved-font"),Pd=64*1024*1024,Id=256,vd=128*1024*1024,Yt=class extends Error{name="FontResolutionError";request;code;limit;actual;diagnostic;expectedHash;actualHash;constructor(n,t,r={}){super(`Font resolution failed (${n}) for ${to(t)}`),this.code=n,this.request=ro(t),this.limit=r.limit,this.actual=r.actual,this.diagnostic=r.diagnostic,this.expectedHash=r.expectedHash,this.actualHash=r.actualHash;}},Np=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")},ro=e=>(Np(e),Object.freeze({family:e.family,weight:e.weight,style:e.style})),to=e=>(Np(e),JSON.stringify([e.family,e.weight,e.style])),Td=class{[GS]=true;id;identity;request;family;byteLength;hash;faceIndex;substitution;constructor(n,t){if(n.id.length===0)throw new TypeError("Resolved font id must not be empty");if(!Number.isInteger(n.faceIndex)||n.faceIndex<0)throw new RangeError("Font face index must be a non-negative integer");this.id=n.id,this.request=ro(n.request),this.family=this.request.family,this.hash=n.hash,this.faceIndex=n.faceIndex,this.identity=`${this.hash}#${this.faceIndex}`,this.byteLength=n.byteLength,this.substitution=null,t&&(this.substitution=Object.freeze({requested:ro(t.requested),resolved:ro(t.resolved)})),Object.freeze(this);}get bytes(){return Mi(this).slice()}},Ap=new WeakSet,Dp=new WeakMap,_p=new WeakMap,Hp=(e,n,t,r)=>{let o=new Td(e,r);return Dp.set(o,n),_p.set(o,t),Ap.add(o),o},Mi=e=>{ao(e);let n=Dp.get(e);if(!n)throw new TypeError("Resolved font has no owned byte capability");return n},Li=e=>{ao(e);let n=_p.get(e);if(!n)throw new TypeError("Resolved font has no admitted table metadata");return n},ao=e=>{if(typeof e!="object"||e===null||!Ap.has(e))throw new TypeError("Shaping requires a validated resolved font")},zp=(e,n)=>e[n]<<8|e[n+1],oo=(e,n)=>e[n]*16777216+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3]>>>0,Ep=(e,n)=>{if(n>e.byteLength-12)return {valid:false,diagnostic:"truncated sfnt header"};let t=String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]);if(!(e[n]===0&&e[n+1]===1&&e[n+2]===0&&e[n+3]===0)&&t!=="OTTO"&&t!=="true"&&t!=="typ1")return {valid:false,diagnostic:"unsupported sfnt signature"};let o=zp(e,n+4),a=n+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 l=n+12+i*16,s=oo(e,l+8),d=oo(e,l+12);if(s>e.byteLength||d>e.byteLength-s)return {valid:false,diagnostic:"sfnt table range exceeds font bytes"}}return {valid:true}},WS=(e,n)=>{let r=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?oo(e,12+n*4):0,o=zp(e,r+4),a=new Set;for(let i=0;i<o;i+=1){let l=r+12+i*16;a.add(String.fromCharCode(e[l],e[l+1],e[l+2],e[l+3]));}return Object.freeze(a)},Fi=(e,n)=>{if(!Number.isSafeInteger(n)||n<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 n!==0?{valid:false,diagnostic:"standalone sfnt has only face index zero"}:Ep(e,0);let r=oo(e,4);if(r!==65536&&r!==131072)return {valid:false,diagnostic:"unsupported TTC version"};let o=oo(e,8),a=12+o*4;if(o===0||!Number.isSafeInteger(a)||a>e.byteLength||n>=o)return {valid:false,diagnostic:"invalid TTC face directory"};let i=oo(e,12+n*4);return i<a?{valid:false,diagnostic:"invalid TTC face offset"}:Ep(e,i)},VS=(e,n,t,r)=>{if(e.availability==="forbidden")return {kind:"forbidden"};if(e.bytes.byteLength>n)return {kind:"overLimit",actual:e.bytes.byteLength};let o=e.bytes.slice();r?.onOwnedByteCopy?.(),r?.onHash?.();let a$1=a(o);if(e.hash!==a$1)return {kind:"hashMismatch",expectedHash:e.hash,actualHash:a$1};let i=Fi(o,e.faceIndex);if(!i.valid)return {kind:"malformed",diagnostic:i.diagnostic};r?.onTableScan?.();let l=WS(o,e.faceIndex);try{let d=t(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 s={kind:"resolved",font:Hp({...e,byteLength:o.byteLength},o,l)};return r?.onAdmission?.(),s},$S=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>Pd)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${Pd}`);if(typeof e.validateFont!="function")throw new TypeError("Font snapshot requires a validator");if(e.resources.length>Id)throw new RangeError(`Font source count must not exceed ${Id}`);let n=0;for(let s of e.resources){if(s.bytes.byteLength>vd-n)throw new RangeError(`Aggregate font bytes must not exceed ${vd}`);n+=s.bytes.byteLength;}let t=e.epoch,r=e.maxFontBytes,o=e.validateFont,a=new Map;for(let s of e.resources){let d=to(s.request);if(a.has(d))throw new TypeError(`Duplicate font resource request: ${d}`);a.set(d,VS(s,r,o,e.instrumentation));}let i=new Map;for(let s of e.substitutions??[]){let d=to(s.from);if(i.has(d))throw new TypeError(`Duplicate font substitution request: ${d}`);i.set(d,ro(s.to));}return Object.freeze({epoch:t,resolve:s=>{let d=ro(s),c=to(d),u=i.get(c),f=u??d,p=a.get(to(f));return p?p.kind==="forbidden"?new Yt("forbidden",d):p.kind==="overLimit"?new Yt("overLimit",d,{limit:r,actual:p.actual}):p.kind==="malformed"?new Yt("malformed",d,{diagnostic:p.diagnostic}):p.kind==="hashMismatch"?new Yt("hashMismatch",d,{expectedHash:p.expectedHash,actualHash:p.actualHash}):u?Hp({request:p.font.request,id:p.font.id,hash:p.font.hash,faceIndex:p.font.faceIndex,byteLength:p.font.byteLength},Mi(p.font),Li(p.font),{requested:d,resolved:u}):p.font:new Yt("missing",d)}})};var dt=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},Ei=(e,n)=>{if(e.trim().length===0||/[\u0000-\u001f\u007f]/.test(e))throw new TypeError(`${n} must be non-blank and contain no control characters`)},XS=(e,n)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${n} must be a four-byte ASCII tag`)},jp=(e,n,t)=>{let r=Object.entries(e).sort(([a],[i])=>a<i?-1:a>i?1:0),o=Object.create(null);for(let[a,i]of r){if(XS(a,`${n} key`),!Number.isFinite(i)||t&&(!Number.isSafeInteger(i)||i<0))throw new RangeError(`${n} value must be ${t?"a non-negative safe integer":"finite"}`);if(t&&i>4294967295)throw new RangeError(`${n} value must fit an unsigned 32-bit integer`);o[a]=i;}return Object.freeze(o)},Cd=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),YS=e=>e?Object.freeze({requested:Cd(e.requested),resolved:Cd(e.resolved)}):void 0,Gp=new WeakSet,Od=e=>{if(ao(e),!Gp.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");Gp.add(e);}},kd=e=>(Od(e),e),Ai=e=>(Od(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:Cd(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:YS(e.substitution)??null})),hr=e=>{if(Ei(e.shapingLibrary.name,"shaping library name"),Ei(e.shapingLibrary.version,"shaping library version"),Ei(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(Ei(e.language,"language"),!/^(?:und|[A-Za-z]{2,8})(?:-[A-Za-z0-9]{1,8})*$/.test(e.language))throw new TypeError("language must be a BCP 47 language tag");if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("direction must be ltr or rtl");if(!["none","NFC","NFD","NFKC","NFKD"].includes(e.normalization))throw new TypeError("invalid normalization policy");if(!["halfAwayFromZero","halfToEven","towardZero"].includes(e.roundingMode))throw new TypeError("invalid fixed-point rounding mode");if(!Number.isSafeInteger(e.fixedPointScale)||e.fixedPointScale<=0)throw new RangeError("fixed-point scale must be a positive safe integer");let n=kd(e.font),t=e.fallbackOrder.map(kd),r=new Set;for(let o of t){let a=JSON.stringify(Ai(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:n,variationAxes:jp(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:jp(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...t]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},Vp=e=>{let n=hr(e);return Object.freeze({font:Ai(n.font),variationAxes:Object.freeze(Object.entries(n.variationAxes).map(t=>Object.freeze(t))),shapingLibrary:Object.freeze({name:n.shapingLibrary.name,version:n.shapingLibrary.version}),unicodeDataVersion:n.unicodeDataVersion,normalization:n.normalization,script:n.script,language:n.language,direction:n.direction,features:Object.freeze(Object.entries(n.features).map(t=>Object.freeze(t))),fallbackOrder:Object.freeze(n.fallbackOrder.map(Ai)),fixedPointScale:n.fixedPointScale,roundingMode:n.roundingMode})},Bd=e=>JSON.stringify(Vp(e)),gr=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},Xn=e=>{try{return dt(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},Wp=new WeakMap,Ni=e=>{let n=Wp.get(e);if(n)return n;Od(e);let t=JSON.stringify({identity:e.identity,id:e.id,family:e.family,request:e.request,hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:e.substitution??null});return Wp.set(e,t),t},Di=(e,n)=>{let t=hr(n);if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("Shaped run direction must be ltr or rtl");if(e.direction!==t.direction)throw new TypeError("Shaped run direction does not match shaping environment");if(gr(e.bidiLevel,"bidi level"),(e.bidiLevel&1)===1!=(e.direction==="rtl"))throw new TypeError("Shaped run direction does not match bidi level parity");let r=new Map,o=e.glyphs.map(s=>{gr(s.id,"glyph id"),gr(s.cluster,"glyph cluster");let d=r.get(s.outline);if(!d){if(!Number.isSafeInteger(s.outline.unitsPerEm)||s.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");d=Object.isFrozen(s.outline)?s.outline:Object.freeze({path:s.outline.path,unitsPerEm:s.outline.unitsPerEm}),r.set(s.outline,d);}return Object.freeze({id:s.id,cluster:s.cluster,originX:Xn(s.originX),originY:Xn(s.originY),advanceX:Xn(s.advanceX),advanceY:Xn(s.advanceY),offsetX:Xn(s.offsetX),offsetY:Xn(s.offsetY),outline:d})}),a=e.fontSpans.map(s=>{if(gr(s.glyphStart,"font span start"),gr(s.glyphEnd,"font span end"),s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");s.fallbackIndex!==null&&gr(s.fallbackIndex,"fallback index");let d=kd(s.font);if(s.fallbackIndex===null){if(Ni(d)!==Ni(t.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let c=t.fallbackOrder[s.fallbackIndex];if(!c)throw new RangeError("Shaped fallback index is outside fallback order");if(Ni(d)!==Ni(c))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...s,font:d})});for(let s=0;s<a.length;s+=1){let d=s===0?0:a[s-1].glyphEnd;if(a[s].glyphStart!==d)throw new RangeError("Font spans must cover glyphs contiguously")}if(o.length===0&&a.length!==0||o.length>0&&a.at(-1)?.glyphEnd!==o.length)throw new RangeError("Font spans must cover every glyph exactly once");let i=e.clusters.map(s=>{for(let[c,u]of [["cluster text start",s.textStart],["cluster text end",s.textEnd],["cluster glyph start",s.glyphStart],["cluster glyph end",s.glyphEnd],["cluster font span",s.fontSpan]])gr(u,c);if(s.textEnd<=s.textStart||s.textEnd>e.text.length||s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let d=a[s.fontSpan];if(!d||s.glyphStart<d.glyphStart||s.glyphEnd>d.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...s,advance:Xn(s.advance),caretEdges:Object.freeze(s.caretEdges.map(Xn))})}),l=Object.freeze({ascent:Xn(e.metrics.ascent),descent:Xn(e.metrics.descent),lineGap:Xn(e.metrics.lineGap)});return Object.freeze({text:e.text,direction:e.direction,bidiLevel:e.bidiLevel,glyphs:Object.freeze(o),clusters:Object.freeze(i),fontSpans:Object.freeze(a),metrics:l})},KS=(e,n)=>{let t=Di(e,n);return Object.freeze({text:t.text,direction:t.direction,script:n.script,language:n.language,bidiLevel:t.bidiLevel,glyphs:t.glyphs,clusters:t.clusters,fontSpans:Object.freeze(t.fontSpans.map(r=>Object.freeze({glyphStart:r.glyphStart,glyphEnd:r.glyphEnd,fallbackIndex:r.fallbackIndex,font:Ai(r.font)}))),metrics:t.metrics})};var ga=Object.freeze({name:"HarfBuzz",version:"14.3.0"}),ha=null,pa=null;function US(){return ha?Promise.resolve():pa||(pa=import('./dist-YFULGVS3.js').then(e=>{let n=e.versionString();if(n!==ga.version)throw new Ne("shapingLibraryMismatch",{diagnostic:f(ga.version,n)});ha=e;}).catch(e$1=>{throw pa=null,e$1 instanceof Ne?e$1:c(e$1)?new Ne("unsupportedRuntime",{diagnostic:d(e$1),cause:e$1}):new Ne("wasmUnavailable",{diagnostic:e(e$1),cause:e$1})}),pa)}function qS(){return ha!==null}function ZS(){if(!ha)throw new Ne("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return ha}var Ne=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(n,t={}){super(`HarfBuzz shaping failed (${n})`,{cause:t.cause}),this.code=n,this.limit=t.limit,this.actual=t.actual,this.diagnostic=t.diagnostic;}},JS=16*1024*1024,QS=1e6,eR=1e6,nR=1e6,tR=4,rR=512,oR=1024*1024,aR=16*1024*1024,iR=32*1024*1024,lR=64*1024*1024,sR=64*1024*1024,dR=1e6,cR=1e6,uR=1e6,fR=64,pR=4096,mR=4*1024*1024,gR=64*1024*1024,hR=64*1024*1024,yR=256*1024*1024,bR=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),$p=["cmap","head","hhea","hmtx","maxp"],xR=(e,n)=>e[n]<<8|e[n+1],SR=(e,n)=>e[n]*16777216+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3]>>>0,RR=(e,n)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?SR(e,12+n*4):0,wR=(e,n)=>{let t=RR(e,n),r=xR(e,t+4),o=new Set;for(let a=0;a<r;a+=1){let i=t+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},PR=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),IR=(e,n)=>{let t=Fi(e,n);if(!t.valid)return t;let r=wR(e,n);for(let o of $p)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},vR=IR,ct=(e,n,t)=>{if(!Number.isSafeInteger(e)||e<=0||e>t)throw new RangeError(`${n} must be a positive safe integer no greater than ${t}`);return e},TR=(e,n,t)=>{let r=e<0n,o=r?-e:e,a=o/n,i=o%n;if(t!=="towardZero"){let d=i*2n;(d>n||d===n&&(t==="halfAwayFromZero"||t==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let l=r?-a:a,s=Number(l);if(!Number.isSafeInteger(s))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return s},Xp=(e,n,t,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(n)||n<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(t)||t<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");return dt(TR(BigInt(e)*BigInt(t),BigInt(n),r))},CR=(e,n,t,r)=>{if(!Number.isSafeInteger(n)||n<=0)throw new RangeError("font size must be a positive integer number of half points");if(n>Math.floor(Number.MAX_SAFE_INTEGER/t))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=n*t,a=e*2;return i=>Xp(i,a,o,r)},kR=(e,n)=>{if(n.length===0)return [];let t=[...new Set(n.map(i=>i.cluster))].sort((i,l)=>i-l),r=new Map;for(let i=0;i<t.length;i+=1)r.set(t[i],t[i+1]??e.length);let o=[],a=0;for(;a<n.length;){let i=n[a].cluster,l=a+1;for(;l<n.length&&n[l].cluster===i;)l+=1;let s=n.slice(a,l).reduce((c,u)=>c+u.advanceX,0),d=dt(s);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:l,advance:d,caretEdges:Object.freeze([dt(0),d]),fontSpan:0}),a=l;}return o},ut=64,Ct=8,yr=8,OR=32,Yp=ut+2*Ct,BR=ut+Ct+yr,MR=ut+Ct+yr,LR=ut+Ct+yr,Kp=ut+8*Ct,Up=ut+8*yr+Ct,FR=ut+6*yr+Ct,ER=ut+3*yr+2*Ct,NR=ut+3*yr,ya=e=>ut+e.length*Uint16Array.BYTES_PER_ELEMENT,Ld=e=>LR+ya(e),ma=e=>OR+e*Ct,AR=(e,n)=>Yp+ya(e)+BR+Ld(n),DR=e=>Kp+ya(e)+ma(e.length)+e.length*Up,_R=e=>{let n=new Set(e.glyphs.map(t=>t.outline));return Kp+ya(e.text)+ma(e.glyphs.length)+e.glyphs.length*Up+ma(e.clusters.length)+e.clusters.length*FR+e.clusters.reduce((t,r)=>t+ma(r.caretEdges.length),0)+ma(e.fontSpans.length)+e.fontSpans.length*ER+NR+[...n].reduce((t,r)=>t+Ld(r.path),0)},HR=(e,n)=>Yp+ya(e)+MR+n,Md=class{#n;#l;#u;#f;#p;#y;#b;#m;#g;#s;#h;#d;#e;#o=new Map;#a=new Map;#t=new Map;#i=0;#r=0;#c;constructor(n,t){this.#n=n,this.#l=ct(t.maxFontBytes??JS,"maximum font bytes",sR),this.#u=ct(t.maxInputUtf16??QS,"maximum input UTF-16 code units",dR),this.#f=ct(t.maxCodepoints??eR,"maximum input code points",cR),this.#p=ct(t.maxGlyphs??nR,"maximum shaped glyphs",uR),this.#y=ct(t.maxCachedFaces??tR,"maximum cached faces",fR),this.#b=ct(t.maxCachedShapes??rR,"maximum cached shape results",pR),this.#m=ct(t.maxOutlineBytes??oR,"maximum outline bytes",mR),this.#g=ct(t.maxCachedOutlineBytes??aR,"maximum cached outline bytes",gR),this.#s=ct(t.maxShapedRunBytes??iR,"maximum shaped run bytes",hR),this.#h=ct(t.maxCachedShapeBytes??lR,"maximum cached shape bytes",yR),this.#d=t.instrumentation?.onFaceCacheEvent,this.#e=t.instrumentation,this.#c=new this.#n.Buffer;}dispose(){this.#o.clear(),this.#a.clear(),this.#t.clear(),this.#i=0,this.#r=0,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#c=void 0;}#S(n,t){let r=this.#o.get(n.identity);if(r)return this.#o.delete(n.identity),this.#o.set(n.identity,r),this.#d?.(Object.freeze({kind:"hit",identity:n.identity})),r;let o=Li(n);for(let c of $p)if(!o.has(c))throw new Ne("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#n.Blob(PR(t)),i=new this.#n.Face(a,n.faceIndex),l=new this.#n.Font(i),s=l.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(s.ascender)||!Number.isSafeInteger(s.descender)||!Number.isSafeInteger(s.lineGap))throw new Ne("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});if(l.setScale(i.upem,i.upem),this.#o.size>=this.#y){let c=this.#o.keys().next().value;c!==void 0&&(this.#o.delete(c),this.#d?.(Object.freeze({kind:"evicted",identity:c})));}let d={identity:n.identity,blob:a,face:i,font:l,unitsPerEm:i.upem};return this.#o.set(n.identity,d),this.#d?.(Object.freeze({kind:"created",identity:n.identity})),d}#R(n,t,r){let o=JSON.stringify([n.identity,n.unitsPerEm,r,t]),a=this.#a.get(o);if(a)return this.#a.delete(o),this.#a.set(o,a),this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#i})),a.outline;this.#e?.onOutlinePathCall?.();let i=n.font.glyphToPath(t),l=Ld(i);if(l>this.#m)throw new Ne("outlineOverLimit",{limit:this.#m,actual:l});let s=Object.freeze({path:i,unitsPerEm:n.unitsPerEm}),d=AR(o,i);if(d>this.#g)return this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#i})),s;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:s,bytes:d}),this.#i+=d,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#i})),s}#x(n){if(n.length>this.#u)throw new Ne("textOverLimit",{limit:this.#u,actual:n.length});let t=0;for(let r=0;r<n.length;){let o=n.codePointAt(r);if(r+=o>65535?2:1,t+=1,t>this.#f)throw new Ne("codepointsOverLimit",{limit:this.#f,actual:t})}}shape(n){if(!this.#c)throw new Ne("disposed");if(ao(n.environment.font),n.environment.font.byteLength>this.#l)throw new Ne("fontOverLimit",{limit:this.#l,actual:n.environment.font.byteLength});this.#x(n.text);let t=DR(n.text);if(t>this.#s)throw new Ne("shapedRunOverLimit",{limit:this.#s,actual:t});let r=hr(n.environment),o=JSON.stringify([n.text,n.fontSizeHalfPoints,n.bidiLevel,Bd(r)]),a=this.#t.get(o);if(a)return this.#t.delete(o),this.#t.set(o,a),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==ga.name||r.shapingLibrary.version!==ga.version)throw new Ne("shapingLibraryMismatch");if(r.normalization!=="none")throw new Ne("unsupportedNormalization");if(!Number.isSafeInteger(n.bidiLevel)||n.bidiLevel<0||(n.bidiLevel&1)===1!=(r.direction==="rtl"))throw new Ne("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new Ne("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new Ne("unsupportedFallback");let i=Mi(r.font),l=Li(r.font);if([...bR].some(d=>l.has(d)))throw new Ne("unsupportedColorFont");let s=n.text;this.#x(s);try{let d=this.#S(r.font,i),{face:c,font:u}=d,f=this.#c;f.reset(),f.addText(s),f.setDirection(r.direction==="rtl"?this.#n.Direction.RTL:this.#n.Direction.LTR),f.setScript(r.script),f.setLanguage(r.language),f.setClusterLevel(this.#n.ClusterLevel.MONOTONE_CHARACTERS);let p=Object.entries(r.features).map(([C,T])=>new this.#n.Feature(C,T));this.#e?.onShapeCall?.(),this.#n.shape(u,f,p);let m=f.getGlyphInfosAndPositions();if(m.length>this.#p)throw new Ne("glyphOverLimit",{limit:this.#p,actual:m.length});let g=CR(c.upem,n.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),x=dt(0),h=dt(0),b=new Map,P=JSON.stringify(Object.entries(r.variationAxes).sort(([C],[T])=>C.localeCompare(T))),k=m.map(C=>{let T=g(C.xAdvance??0),N=g(C.yAdvance??0),M={id:C.codepoint,cluster:C.cluster,originX:x,originY:h,advanceX:T,advanceY:N,offsetX:g(C.xOffset??0),offsetY:g(C.yOffset??0),outline:b.get(C.codepoint)??(()=>{let y=this.#R(d,C.codepoint,P);return b.set(C.codepoint,y),y})()};return x=dt(x+T),h=dt(h+N),M}),v=u.hExtents(),L=Di({text:s,direction:r.direction,bidiLevel:n.bidiLevel,glyphs:k,clusters:kR(s,k),fontSpans:k.length===0?[]:[{glyphStart:0,glyphEnd:k.length,font:r.font,fallbackIndex:null}],metrics:{ascent:g(v.ascender),descent:g(-v.descender),lineGap:g(v.lineGap)}},r),w=_R(L);if(w>this.#s)throw new Ne("shapedRunOverLimit",{limit:this.#s,actual:w});let S=HR(o,w);if(S>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),L;for(;this.#t.size>=this.#b||this.#r+S>this.#h;){let C=this.#t.keys().next().value;if(C===void 0)break;let T=this.#t.get(C);this.#t.delete(C),this.#r-=T.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#t.set(o,{run:L,bytes:S}),this.#r+=S,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),L}catch(d){throw d instanceof Ne?d:new Ne("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},zR=(e={})=>new Md(ZS(),e);var Q=(e,n,t)=>e>=n&&e<=t,_i=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(n){super(`Unsupported Unicode script at U+${n.toString(16).toUpperCase()}`),this.codePoint=n;}},jR=e=>{if(Q(e,65313,65338)||Q(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(Q(e,1424,1535)||Q(e,64285,64335))return {slot:"cs",script:"Hebr"};if(Q(e,1536,1791)||Q(e,1872,1919)||Q(e,2160,2207)||Q(e,2208,2303)||Q(e,64336,65023)||Q(e,65136,65279)||Q(e,126464,126719))return {slot:"cs",script:"Arab"};if(Q(e,4352,4607)||Q(e,11904,12351)||Q(e,12352,12543)||Q(e,12544,12687)||Q(e,12784,12799)||Q(e,13312,19903)||Q(e,19968,40959)||Q(e,44032,55215)||Q(e,63744,64255)||Q(e,65382,65437)||Q(e,65440,65500)||Q(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(Q(e,2304,2431)||Q(e,43232,43263))return {slot:"cs",script:"Deva"};if(Q(e,2432,2559))return {slot:"cs",script:"Beng"};if(Q(e,880,1023)||Q(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(Q(e,1024,1327)||Q(e,7296,7311)||Q(e,11744,11775)||Q(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(Q(e,3584,3711))return {slot:"cs",script:"Thai"};if(Q(e,6016,6143)||Q(e,6624,6655))return {slot:"cs",script:"Khmr"};if(Q(e,768,879)||Q(e,6832,6911)||Q(e,7616,7679)||Q(e,8400,8447)||Q(e,8192,8303)||Q(e,65056,65071)||e<=47||Q(e,58,64)||Q(e,91,96)||Q(e,123,191)||e===5760||Q(e,8192,11263)||Q(e,65024,65039)||Q(e,65280,65381)||Q(e,65438,65439)||Q(e,65501,65535)||Q(e,126976,129791)||Q(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(Q(e,192,687)||Q(e,7424,7551)||Q(e,7552,7615)||Q(e,7680,7935)||Q(e,11360,11391)||Q(e,42784,43007)||Q(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new _i(e)};function GR(e,n,t){let r=[];for(let l=0;l<e.length;){let s=e.codePointAt(l),d=l+(s>65535?2:1);r.push({from:l,to:d,classified:jR(s)}),l=d;}let o=null;for(let l of r)l.classified?o=l.classified:o&&(l.classified=o);o=null;for(let l=r.length-1;l>=0;l-=1){let s=r[l];s.classified?o=s.classified:o&&(s.classified=o);}let a=[],i=r.every(({from:l})=>e.codePointAt(l)<=127)?"ascii":"hAnsi";for(let l of r){let s=t.levels[n+l.from]??0,d=(s&1)===1?"rtl":"ltr",c=l.classified??{slot:i,script:"Zyyy"},u=a.at(-1);u&&u.to===l.from&&u.bidiLevel===s&&u.slot===c.slot&&u.script===c.script?a[a.length-1]={...u,to:l.to}:a.push({from:l.from,to:l.to,direction:d,bidiLevel:s,script:c.script,slot:c.slot});}return a}var WR="und";function VR(){return typeof Intl.Segmenter=="function"}function $R(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function XR(){let e=new($R())("und",{granularity:"grapheme"});return {segment(n){let t=[],r=0;for(let o of e.segment(n)){let a=o.index,i=a+o.segment.length;t.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return t}}}var Nd=XR(),Ad=Nd,qp=0;function Dd(){return qp}var io=null,br=null,Hi=null,ba=null;function Yn(e){if(io===e&&br)return br;if(Hi===e&&ba){let t=ba;return Hi=io,ba=br,io=e,br=t,t}let n=Ad.segment(e);return Hi=io,ba=br,io=e,br=n,n}function YR(e){Ad=e,Zp();}function KR(){Ad=Nd,Zp();}function Zp(){qp+=1,io=null,br=null,Hi=null,ba=null,Fd=null,zi=null,Ed=0;}function UR(e){return Yn(e).length}var Fd=null,zi=null,Ed=0;function qR(e){if(Fd===e&&zi)return {offsets:zi,count:Ed};let n=Yn(e),t=new Int32Array(e.length+1);for(let r of n)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)t[o]=r.index;return t[e.length]=n.length,Fd=e,zi=t,Ed=n.length,{offsets:t,count:n.length}}function ji(e,n){let t=Math.max(0,Math.min(n,e.length)),{offsets:r}=qR(e);return r[t]}function ZR(e,n){let t=Yn(e);if(t.length===0)return 0;let r=Math.max(0,Math.min(n,t.length));return r>=t.length?e.length:t[r].utf16From}function _d(e){let n=new Set([0,e.text.length]);for(let r of Yn(e.text))n.add(r.utf16From),n.add(r.utf16To);let t=new Set([0,e.text.length]);for(let r of e.clusters)t.add(r.textStart),t.add(r.textEnd);return [...n].filter(r=>t.has(r)).sort((r,o)=>r-o)}function Gi(e,n){return _d(e).includes(n)}function JR(e,n){return Gi(e,n)}function QR(e,n,t){return t>=n&&Gi(e,n)&&Gi(e,t)}function ew(e){let n=Yn(e.text);return _d(e).map(t=>t===e.text.length?n.length:n.findIndex(r=>r.utf16From===t))}var zd="und";function nm(){return typeof Intl.Segmenter=="function"}function nw(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${zd})`);return e}function tm(){let e=new(nw())(zd,{granularity:"word"});return {segment(n){let t=[];for(let r of e.segment(n)){let o=r.index,a=o+r.segment.length;t.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return t}}}var tw=/^[\p{L}\p{N}']$/u,rw=/^\s$/u;function Jp(e){return tw.test(e)}function Qp(e){return rw.test(e)}function Hd(e,n,t,r){let o=e[n],a=e[t-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function rm(e){let n=Yn(e);if(n.length===0)return [];let t=[],r=0;for(;r<n.length;){let o=n[r];if(Qp(o.text)){let a=r+1;for(;a<n.length&&Qp(n[a].text);)a+=1;t.push(Hd(n,r,a,false)),r=a;continue}if(Jp(o.text)){let a=r+1;for(;a<n.length&&Jp(n[a].text);)a+=1;t.push(Hd(n,r,a,true)),r=a;continue}t.push(Hd(n,r,r+1,false)),r+=1;}return t}function om(){return {segment:rm}}function am(e={}){let n=e.isIntlAvailable??nm,t=e.createIntlBoundary??tm,r=e.createFallbackBoundary??om;if(!n())return r();try{return t()}catch{return r()}}var em;function im(){return em??=am(),em}function ow(e,n=im()){return n.segment(e)}function aw(e,n){return n.map(t=>({graphemeFrom:ji(e,t.utf16From),graphemeTo:ji(e,t.utf16To),wordLike:t.wordLike}))}var lm={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},Wd=Object.keys(lm),sm=Wd.filter(e=>lm[e]==="coarse-gate"),Wi=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},lo=(e,n)=>{if(e.trim().length===0)throw new TypeError(`${n} must not be blank`)},iw={resourceEpoch:Wi,configEpoch:Wi,extensionFingerprint:lo,shapingHash:lo,producerVersion:Wi},lw=(e,n)=>{iw[n](e[n],n);},so=e=>{for(let n of Wd)lw(e,n);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},sw=(e,n)=>{let t=so(e),r=so(n),o=Wd.filter(a=>t[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},jd=e=>{let n=e.map(({key:t,fingerprint:r})=>(lo(t,"resource dependency key"),lo(r,"resource dependency fingerprint"),Object.freeze({key:t,fingerprint:r}))).sort((t,r)=>t.key<r.key?-1:t.key>r.key?1:0);for(let t=1;t<n.length;t+=1)if(n[t-1].key===n[t].key)throw new TypeError(`Duplicate resource dependency: ${n[t].key}`);return Object.freeze(n)},dw=e=>(Wi(e.revision,"revision"),lo(e.dependencyFingerprint,"dependencyFingerprint"),lo(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:jd(e.resourceDependencies),...so(e)})),cw=(e,n)=>{let t=jd(e),r=jd(n),o=Math.max(t.length,r.length);for(let a=0;a<o;a+=1){let i=t[a],l=r[a];if(i?.key!==l?.key||i?.fingerprint!==l?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??l.key}}return null};function uw(e,n){if(e.dependencyFingerprint!==n.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==n.inputFingerprint)return {hit:false,reason:"input-changed"};let t=cw(e.resourceDependencies,n.resourceDependencies);if(t)return t;for(let r of sm)if(e[r]!==n[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var Gd=class{entries=new Map;get(n,t){let r=this.entries.get(n);if(!r)return {hit:false,reason:"absent"};let o=uw(r.provenance,t);return o||{hit:true,value:r.value,provenance:r.provenance}}set(n,t,r){this.entries.set(n,{value:t,provenance:dw(r)});}evictEpoch(n){let t=so(n),r=0;for(let[o,a]of this.entries){let i=a.provenance;sm.some(l=>i[l]!==t[l])&&(this.entries.delete(o),r+=1);}return r}evictResources(n,t){let r=so(n),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(s=>t.get(s.key)!==s.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function Xe(e,n=false){return Rn(e.fragments,n)}var dm=new WeakMap;function Rn(e,n=false){let t=dm.get(e),r=n?"withRepeats":"withoutRepeats",o=t?.[r];if(o)return o;let a=[],i=l=>{for(let s of l){if(s.kind==="paragraph"){a.push(s);continue}for(let d of s.rows)if(!(d.isHeaderRepeat&&!n))for(let c of d.cells)i(c.blocks);}};return i(e),t||(t={},dm.set(e,t)),t[r]=a,a}function Vd(e){let n=[];for(let t of e.pages)for(let r of Xe(t))n.push(...r.lines);return n}function fw(e){return e.anchoredDrawings??[]}var cm=16;function xa(e,n){let t=o=>{if(o.kind==="table"){for(let a of o.rows)for(let i of a.cells)for(let l of i.blocks)t(l);return}for(let a of o.lines)for(let i of a.drawings??[])n(i);},r=(o,a)=>{if(!(a>cm)){for(let i of o.anchoredDrawings??[])n(i),i.textboxStory&&r(i.textboxStory,a+1);for(let i of o.fragments)t(i);}};r(e,0);}function $d(e,n){let t=(r,o)=>{if(!(o>cm)){for(let a of r.anchoredDrawings??[])a.textboxStory&&t(a.textboxStory,o+1);for(let a of Rn(r.fragments,true))n(a);}};t(e,0);}function um(e,n){let t=[];for(let r of e.pages)for(let o of Xe(r))o.paragraphId===n&&t.push(o);return t.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function Sa(e,n,t,r){for(let o of r??Vd(e)){let a=o.range.paragraphId===n?o.range.start:Number.NaN,i=o.range.paragraphId===n?o.range.end:Number.NaN;for(let l of o.spans)l.range.paragraphId===n&&(a=Number.isNaN(a)?l.range.start:Math.min(a,l.range.start),i=Number.isNaN(i)?l.range.end:Math.max(i,l.range.end));for(let l of o.drawings??[])l.paragraphId===n&&(a=Number.isNaN(a)?l.start:Math.min(a,l.start),i=Number.isNaN(i)?l.start+1:Math.max(i,l.start+1));if(!Number.isNaN(a)&&t>=a&&t<=i)return o}return null}function Vi(e){return e.contentControls??[]}function Ra(e){if(e.length===0)return null;let n=1/0,t=1/0,r=-1/0,o=-1/0;for(let a of e)n=Math.min(n,a.x),t=Math.min(t,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:n,y:t,width:r-n,height:o-t}}function $i(e){let n=false,t=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(n=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(t=true);return n&&t?"sdtContentLocked":n?"contentLocked":t?"sdtLocked":"unlocked"}var wa=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var fm=1,Xi=1;function co(e){let n=Math.max(e,1),t=3;if(n>=t){let i=n/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:n,insetPt:0}}let r=1,o=1,a=Math.max(n,t);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(n-a)/2}}var pw=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function mw(e){return pw.has(e)}function pm(e,n){return mw(e)?co(n).extentPt:n}function Yd(e){let n=false;for(let t of e){if(t.localName!=="pageBreakBefore")continue;let r=t.attributes?.val;n=r===void 0||Ki(r);}return n}var gm=31680/20,Ia=12,hm=3168,ym=14,fo=Object.freeze({rule:"auto",value:240}),gw=132,hw=1584,bm=["top","left","bottom","right","between","bar"],yw=Object.freeze({}),bw=/^[0-9A-Fa-f]{6}$/,xw=new Set(["nil","none"]);function Yi(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Xd(e,n){return !Number.isFinite(e)||e<=0?0:e>n?n:e}function mm(e){let n=Yi(e,true);return n===null?0:Xd(ld(jd$1(n)),gm)}function Ki(e){return e!=="0"&&e!=="false"&&e!=="off"}function Sw(e){return e===void 0||e==="auto"?null:bw.test(e)?e.toUpperCase():null}function Pa(e,n){return e.attributes.find(t=>t.localName===n)?.value}function ft(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function IO(e,n){let t=null;for(let r of e)r.localName===n&&(t={...t??{},...r.attributes??{}});return t}function Kd(e,n){let t=0,r=0,o=false,a=false;for(let i of e){if(i.localName!=="spacing")continue;let l=i.attributes?.before,s=i.attributes?.after;l!==void 0&&(t=mm(l)),s!==void 0&&(r=mm(s));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Ki(d)),c!==void 0&&(a=Ki(c));}if(o||a){let i=n?.inList||n?.inTableCell?0:ym;o&&(t=i),a&&(r=i);}return {before:t,after:r}}function Ud(e){let n,t;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(n=i);let l=a.attributes?.line;if(l!==void 0){let s=Yi(l,true);s!==null&&(t=s);}}if(t===void 0)return fo;let r=n??"auto";if(r==="auto"){let a=t/240;return a>0?{rule:"auto",value:Math.min(a,gw)*240}:fo}let o=t/20;return o>0?{rule:r,value:Math.min(o,hw)}:fo}function qd(e,n,t){let r=e.rule==="auto"?n*(e.value/240):e.rule==="exact"?e.value:Math.max(n,e.value),o=r-n;return o<0?{height:r,baseline:Math.max(0,Math.min(t,r))}:e.rule==="exact"?{height:r,baseline:t+o/2}:{height:r,baseline:t}}function Zd(e){let n=false;for(let t of e){if(t.localName!=="contextualSpacing")continue;let r=t.attributes?.val;n=r===void 0||Ki(r);}return n}function uo(e){if(!e)return;let n=Pa(e,"val");if(!n||xw.has(n))return;let t=Yi(Pa(e,"sz")),r=t===null?.5:Xd(t/8,Ia)||.5,o=Yi(Pa(e,"space")),a=o===null?0:Xd(o,hm),i=Pa(e,"shadow"),l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:n,color:Sw(Pa(e,"color")),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function xm(e){let n=uo(ft(e,"top")),t=uo(ft(e,"left")??ft(e,"start")),r=uo(ft(e,"bottom")),o=uo(ft(e,"right")??ft(e,"end")),a=uo(ft(e,"between")),i=uo(ft(e,"bar"));return {...n?{top:n}:{},...t?{left:t}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function kt(e){if(!e||e.kind==="textValue")return {};let n=ft(e,"pBdr");return n?xm(n):{}}function va(e){let n=yw;for(let t of e){if(!t||t.kind==="textValue")continue;let r=ft(t,"pBdr");r&&(n=xm(r));}return n}function Pn(e){return pm(e.val,e.widthPt)}function Kt(e){return e?e.spacePt+Pn(e):0}function Rw(e){return Kt(e)}function Jd(e){let n=[];for(let t of bm){let r=e[t];r&&n.push(`${t}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return n.join("|")}function po(e,n){return Math.max(e,n)-n}function Qd(e,n,t,r){return t&&!r?0:po(e,n)}var ww=/^[0-9A-Fa-f]{6}$/;function Ui(e){if(!(e===void 0||e==="auto"||e==="nil")&&ww.test(e))return e.toUpperCase()}function Ta(e){if(e&&e.val!=="nil")return Ui(e.fill)}function ec(e){if(!e||e.localName!=="shd")return;let n={};for(let t of e.attributes)n[t.localName]=t.value;return Ta(n)}function nc(e){let n;for(let t of e)t.localName==="shd"&&(n=Ta(t.attributes));return n}function Ca(e,n,t){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:n,y:r,width:t,height:Math.max(o.y+o.height-r,0)}}var Pw=64,Iw=31680,vw=720,Tw=36,tc=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),mo=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),Cw=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),kw=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function ka(e){return e.kind!=="textValue"}function qi(e,n){return e.attributes.find(t=>t.localName===n)?.value}function rc(e,n){for(let t of e.children)if(ka(t)&&t.localName===n)return t}function Sm(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function Ow(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function Rm(e,n){if(!n)return;let t=0;for(let r of n.children){if(t>=128)break;if(t+=1,!ka(r)||r.localName!=="tab")continue;let o=Ow(Sm(qi(r,"pos"))??NaN);if(o===null)continue;let a=qi(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=Cw.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let l=qi(r,"leader");e.set(o,{alignment:i,...l!==void 0&&kw.has(l)?{leader:l}:{}});}}function wm(e,n=36){let t=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<t.length&&o<64;o+=1){let[a,i]=t[o];r.push({positionPt:a/20,alignment:i.alignment,...Bw(i)});}return {stops:Object.freeze(r),defaultIntervalPt:n}}function Bw(e){return e.leader?{leader:e.leader}:{}}function oc(e){let n=new Map;for(let t of e)!t||!ka(t)||Rm(n,rc(t,"tabs"));return wm(n)}function ac(e){if(!e||!ka(e))return mo;let n=new Map;return Rm(n,rc(e,"tabs")),wm(n)}function Oa(e,n){return n===void 0||!Number.isFinite(n)||n<=0||n===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:n}}function Mw(e){if(!e||!ka(e))return 36;let n=rc(e,"defaultTabStop");if(!n)return 36;let t=Sm(qi(n,"val"));return t===null||t<=0||t>31680?36:t/20}function go(e,n,t){let r=Math.max(n,t);for(let i of e.stops)if(i.positionPt>n)return {positionPt:Math.min(i.positionPt,r),alignment:i.alignment,...i.leader?{leader:i.leader}:{}};let o=e.defaultIntervalPt>0?e.defaultIntervalPt:36,a=Math.ceil((n+1e-9)/o)*o;return a<=n&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function ic(e,n,t,r,o){let a=t;switch(e){case "center":a=t-r/2;break;case "right":a=t-r;break;case "decimal":a=t-o;break;default:a=t;}let i=a-n;return i>0?i:0}function xr(e){return `tabs(${e.stops.map(t=>`${t.alignment}@${Math.round(t.positionPt*1e3)}${t.leader?`/${t.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var Zi=4,Pm=4096,Ut=64,cc=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),Im=/\s*\\\*\s*MERGEFORMAT\s*$/i;function Ma(e){if(e.length>Xc$1)return null;let n=e.replace(/\s+/g," ").trim().toUpperCase();return n.length>Xc$1?null:n.replace(Im,"").trim()}var Lw=/\s*\\#\s*(?:"([^"]*)"|([^\\"]+))$/;function Fw(e){if(e.length>Xc$1)return null;let n=e.replace(/\s+/g," ").trim();if(n.length>Xc$1)return null;let t=n.replace(Im,"").trim(),r=Lw.exec(t);if(!r)return {keyword:t.toUpperCase(),picture:void 0};let o=r[1]??r[2]??"";return {keyword:t.slice(0,r.index).trim().toUpperCase(),picture:o.length>0?o:void 0}}function ho(e){let n=Fw(e);if(n===null)return null;let{keyword:t,picture:r}=n;return t!=="PAGE"&&t!=="NUMPAGES"&&t!=="SECTIONPAGES"?null:r===void 0?{kind:t}:{kind:t,picture:r}}function vm(e){return ho(e)?.kind??null}function In(e,n){return Mc$1(e,n)}function Sr(e){return Nc$1(e)}function uc(){return {nodes:0,exhausted:false}}function Ot(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Pm?(e.exhausted=true,false):true)}function La(){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 Ji(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function Ew(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function Fa(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>Zi?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function yo(e){return e.nesting<2||e.nesting>Zi?null:e.inner[e.nesting-2]??null}function Tm(e){if(e.nesting===1)return e.phase==="instruction";let n=yo(e);return n!==null&&!n.separated}function sc(e,n){if(!Tm(e))return false;if(e.nesting===1)return n?!e.deletedInstructionOverflow:!e.instructionOverflow;let t=yo(e);return n?!t.deletedOverflow:!t.overflow}function Cm(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let n=yo(e);n&&(n.sawLive=true);}function dc(e,n){if(e.nesting===1){n?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let t=yo(e);t&&(n?(t.deletedOverflow=true,t.deletedInstruction=""):(t.overflow=true,t.instruction=""));}function lc(e){dc(e,false),dc(e,true);}function Nw(e,n,t=false){if(!sc(e,t))return;let r=yo(e);t||Cm(e);let o=r?t?r.deletedInstruction:r.instruction:t?e.deletedInstruction:e.instruction;if(o.length+n.length>Xc$1){dc(e,t);return}r?t?r.deletedInstruction=o+n:r.instruction=o+n:t?e.deletedInstruction=o+n:e.instruction=o+n;}function Ea(e,n,t,r){if(!Tm(e))return;let o=Oc$1(n);if(o||Cm(e),!sc(e,o))return;if(r>Ut){lc(e);return}let a=[],i=n.kind==="textValue"?[]:n.children??[];for(let l=i.length-1;l>=0;l-=1)a.push({node:i[l],depth:r+1});for(;a.length>0;){let l=a.pop();if(!Ot(t)){lc(e);return}if(l.depth>Ut){lc(e);return}if(l.node.kind==="textValue"){if(Nw(e,l.node.value,o),!sc(e,o))return;continue}let s=l.node.children??[];for(let d=s.length-1;d>=0;d-=1)a.push({node:s[d],depth:l.depth+1});}}function Na(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=Ji(e);return r.overflow?null:ho(r.instruction)}let n=yo(e);if(!n||n.separated)return null;n.separated=true;let t=Ew(n);return t.overflow?null:ho(t.instruction)}function Aa(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&Ba(e);}function km(e){return e.phase==="instruction"&&e.nesting>=1}function Om(e){return e.phase==="result"&&e.nesting>=1}function fc(e){let n=false,t=false,r=false,o=uc(),a=La(),i=()=>n&&t&&r,l=p=>{p==="PAGE"?n=true:p==="NUMPAGES"?t=true:r=true;},s=false,d=[],c=(p,m)=>{if(p.kind!=="runProperties"){if(In(p,"begin")){Fa(a),a.nestingOverflow&&(s=true);return}if(Sr(p)){Ea(a,p,o,m);return}if(In(p,"separate")){let g=a.nesting,x=a.phase,h=Na(a);if(s)return;h&&(g<=1||x==="result")&&d.push(h.kind);return}if(In(p,"end")&&(Aa(a),a.nesting===0)){if(!s)for(let g of d)l(g);d.length=0;}}},u=(p,m)=>{if(p.kind==="run")for(let g of p.children){if(!Ot(o))return;if(c(g,m+1),(g.kind==="drawing"||g.kind==="generic")&&!Sr(g)&&"children"in g&&g.children.length>0){let x={...a,inner:a.inner.map(P=>({...P}))},h=s,b=d;d=[],f(g,m+1),Object.assign(a,x),s=h,d=b;}if(i()||o.exhausted)return}},f=(p,m)=>{if(!i()&&Ot(o)&&!(m>Ut)&&p.kind!=="textValue"){if(p.kind==="paragraph"){Ba(a),s=false,d.length=0;for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return;Ba(a),s=false,d.length=0;return}if(p.kind==="run"){u(p,m);return}if(Pc$1(p)){let g=vm(Rc$1(p)??"");if(g){l(g);return}}for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return}};return f(e,0),!n&&!t&&!r?cc:{hasPage:n,hasNumPages:t,hasSectionPages:r}}function Qi(e,n){if(!Number.isFinite(e)||e<0||n.length===0||n.length>64||n.includes(".")||n.includes(";")||n.includes("'"))return null;let t=String(Math.floor(e)),r=[],o=false;for(let m=0;m<n.length;m+=1)r.push(o),n[m]==="0"&&(o=true);let a=t.length,i=false,l=0,s=0,d=[],c=-1;for(let m=n.length-1;m>=0;m-=1){let g=n[m];if(g==="0"||g==="#"){i=true,l+=1,c=d.length,a>0?(a-=1,d.push(t[a])):d.push(g==="0"?"0":" ");continue}if(g===","){s===0&&(s=l),l=0,(a>0||r[m])&&(c=d.length,d.push(","));continue}d.push(g);}if(!i)return null;let u=[];for(;a>0;)s>0&&l>=s&&(u.push(","),l=0),a-=1,l+=1,u.push(t[a]);let f=d.slice(c+1).reverse().join(""),p=d.slice(0,c+1).reverse().join("");return f+u.reverse().join("")+p}var Aw=64,Dw=64,_w=[{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 Bt(e){if(!Number.isFinite(e))return 1;let n=Math.trunc(e);return n<0?1:n>9999?9999:n}function qt(e){return String(Bt(e))}function Bm(e){let n=Bt(e);return n<10?`0${n}`:String(n)}function pc(e){let n=Bt(e);n>3999&&(n=3999);let t="";for(let{value:r,glyph:o}of _w)for(;n>=r;)if(t+=o,n-=r,t.length>=64)return t.slice(0,64);return t||"I"}function Mm(e){return pc(e).toLowerCase()}function mc(e){let n=Bt(e),t="";for(;n>0&&t.length<8;)n-=1,t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26);return t||"A"}function Lm(e){return mc(e).toLowerCase()}function Hw(e){let n=Bt(e),t=n%100,r=n%10,o=t>=11&&t<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${n}${o}`}function zw(e){return Bt(e).toString(16).toUpperCase()}function jw(e){let n=["*","\u2020","\u2021","\xA7"],t=Bt(e);if(t<=0)return n[0];let r=(t-1)%n.length,o=Math.min(Math.floor((t-1)/n.length)+1,Gw);return n[r].repeat(o)}var Gw=8,el=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],Ww=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function nl(e){let n=Bt(e);if(n<20)return el[n];if(n<100){let r=n%10;return Ww[Math.floor(n/10)]+(r===0?"":`-${el[r]}`)}if(n<1e3){let r=n%100;return `${el[Math.floor(n/100)]} hundred${r===0?"":` ${nl(r)}`}`}let t=n%1e3;return `${el[Math.floor(n/1e3)]} thousand${t===0?"":` ${nl(t)}`}`}function Fm(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function Vw(e){return Fm(nl(e))}var $w=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function Xw(e){let n=$w.get(e);return n!==void 0?n:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function Yw(e){let n=nl(e),t=Math.max(n.lastIndexOf(" "),n.lastIndexOf("-")),r=t<0?"":n.slice(0,t+1);return Fm(r+Xw(n.slice(t+1)))}function Mt(e,n){switch(e){case "decimal":return qt(n);case "decimalZero":return Bm(n);case "upperRoman":return pc(n);case "lowerRoman":return Mm(n);case "upperLetter":return mc(n);case "lowerLetter":return Lm(n);case "ordinal":return Hw(n);case "cardinalText":return Vw(n);case "ordinalText":return Yw(n);case "hex":return zw(n);case "chicago":return jw(n);case "numberInDash":return `- ${qt(n)} -`;case "none":case "bullet":return "";default:return qt(n)}}function gc(e,n,t){let r=e.length>64?e.slice(0,64):e,o="";for(let a=0;a<r.length&&!(o.length>=64);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let l=r[a+1];if(l>="1"&&l<="9"){let s=Number(l)-1,d=t[s]??"decimal",c=n[s]??1,u=d==="bullet"?"":Mt(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}var Em="0";function Zt(e,n){return e!=="PAGE"||!n||n==="decimal"}function rl(e,n,t){return n===void 0||!Zt(e,t)?Em:Qi(0,n)??Em}function yc(e,n){if(!Number.isFinite(e)||e<0)return "";let t=Math.floor(e),r=n&&n.length>0?n:"decimal";if(r==="none"||r==="bullet")return qt(t);let o=Mt(r,t);return o.length>0?o:qt(t)}function Lt(e,n,t){if(e==="PAGE"){if(t!==void 0&&Zt(e,n.format)){let o=Qi(n.pageNumber,t);if(o!==null)return o}return yc(n.pageNumber,n.format)}let r=e==="NUMPAGES"?n.pageCount:n.sectionPageCount??n.pageCount;if(!Number.isFinite(r)||r<0)return "";if(t!==void 0){let o=Qi(r,t);if(o!==null)return o}return qt(Math.floor(r))}function Jt(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function bc(e,n=cc){if(!e||!Jt(n))return "";let t=[];return n.hasPage&&(t.push(`p${e.pageNumber}`),e.format&&t.push(`f${e.format}`)),n.hasNumPages&&t.push(`n${e.pageCount}`),n.hasSectionPages&&t.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${t.join("/")}`}function bo(e,n,t,r){let o=false,a=e.map((i,l)=>{let s=n+l,d=i.pageFieldSource;return d&&d.pageNumber===s&&d.sectionPageCount===t&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:s,sectionPageCount:t,...r?{format:r}:{}}})});return o?a:e}function Kw(e){for(let n of e.spans)if(n.fieldAtom?.pageField)return true;return false}function Nm(e){if(e.kind==="paragraph"){for(let n of e.lines)if(Kw(n))return true;return false}for(let n of e.rows)for(let t of n.cells)for(let r of t.blocks)if(Nm(r))return true;return false}function xc(e,n){let t=n,r=false;for(let o of e)t=Math.max(t,o.box.y+o.box.height),!r&&Nm(o)&&(r=true);return {usedBottom:t,hasBodyPageFields:r}}function Uw(e,n){let t=null;for(let r=0;r<e.spans.length;r+=1){let o=e.spans[r],a=o.fieldAtom?.pageField;if(!a)continue;let i=Lt(a.kind,n,a.picture);i!==o.text&&(t||(t=e.spans.slice()),t[r]={...o,text:i});}return t?{...e,spans:t}:e}function Am(e,n){let t=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 l=0;l<o.lines.length;l+=1){let s=o.lines[l],d=Uw(s,n);d!==s&&(i||(i=o.lines.slice()),i[l]=d);}i&&(a={...o,lines:i});}else {let i=null;for(let l=0;l<o.rows.length;l+=1){let s=o.rows[l],d=null;for(let c=0;c<s.cells.length;c+=1){let u=s.cells[c],f=Am(u.blocks,n);f!==u.blocks&&(d||(d=s.cells.slice()),d[c]={...u,blocks:f});}d&&(i||(i=o.rows.slice()),i[l]={...s,cells:d});}i&&(a={...o,rows:i});}a!==o&&(t||(t=e.slice()),t[r]=a);}return t??e}var tl=new WeakMap;function qw(e,n){return e.pageNumber===n.pageNumber&&e.pageCount===n.pageCount&&(e.sectionPageCount??e.pageCount)===(n.sectionPageCount??n.pageCount)&&e.format===n.format}function Sc(e,n,t){let r=tl.get(e);r&&tl.set(n,{context:r.context,projector:r.projector,dy:r.dy+t});}var hc=new WeakMap;function Qt(e){let n=e.pages.length;if(n===0)return e;let t=false,r=e.pages.map(o=>{let a=hc.get(o);if(a&&a.pageCount===n)return a.result!==o&&(t=true),a.result;let i=o.pageFieldSource,l={pageNumber:i?.pageNumber??o.index+1,pageCount:n,sectionPageCount:i?.sectionPageCount??n,...i?.format?{format:i.format}:{}},s=p=>{if(!p)return p;let m=p.pageFieldProjector,g=0;if(!m){let v=tl.get(p);if(!v||qw(v.context,l))return p;m=v.projector,g=v.dy;}t=true;let x=m(l),{pageFieldProjector:h,box:b,...P}=x,k={...P,box:g===0?b:{...b,y:b.y+g}};return tl.set(k,{context:l,projector:m,dy:g}),k},d=s(o.header),c=s(o.footer),u=o.hasBodyPageFields===false?o.fragments:Am(o.fragments,l);if(d===o.header&&c===o.footer&&u===o.fragments)return hc.set(o,{pageCount:n,result:o}),o;u!==o.fragments&&(t=true);let f={...o,...d!==void 0?{header:d}:{},...c!==void 0?{footer:c}:{},...u!==o.fragments?{fragments:u}:{}};return hc.set(o,{pageCount:n,result:f}),f});return t?{revision:e.revision,pages:r}:e}var Zw=`
|
|
2
|
+
\r`,Jw=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function Dm(e,n){let t=n;for(;t<e.length&&Zw.includes(e[t]);)t+=1;return t}function _m(e,n){if(e[n]==='"'){let r=n+1;for(;r<e.length&&e[r]!=='"';)r+=1;return r<e.length?r+1:r}let t=n;for(;t<e.length&&!`
|
|
3
|
+
\r"`.includes(e[t]);)t+=1;return t}function ol(e){if(e.length===0||e.length>256)return null;let n=Dm(e,0);if(e[n]==='"')return null;let t=_m(e,n),r=e.slice(n,t).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=Dm(e,t);if(o>=e.length)return null;let a=_m(e,o),i=e.slice(a).trim();for(;;){let l=i.replace(Jw,"").trimEnd();if(l===i)break;i=l;}if(i[0]==='"'){let l=i.indexOf('"',1);l===-1?i=i.slice(1):l===i.length-1&&(i=i.slice(1,-1));}return i.length===0?null:{display:i}}var Hm=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),Qw=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function eP(e){let n=e;for(;;){let t=n.replace(Qw,"").trimEnd();if(t===n)return n;n=t;}}function nP(e){let n=e.trimStart();if(n.length===0)return null;if(n[0]==='"'){let o=n.indexOf('"',1),a=o===-1?n.slice(1):n.slice(1,o);return a.length>0?a:null}let t=n.search(/\s/),r=t===-1?n:n.slice(0,t);return r.length>0?r:null}function al(e){let n=Ma(e);if(n===null||n.length===0)return null;let t=eP(n),r=Hm[t];if(r)return {property:r};if(!t.startsWith("DOCPROPERTY"))return null;let o=t.slice(11);if(o.length===0||!/^\s/.test(o))return null;let a=nP(o);if(a===null)return null;let i=Hm[a];return i?{property:i}:null}function il(e,n){if(!n)return null;let t=n[e.property];return t!==void 0&&t.length>0?t:null}var tP=Xc$1,rP=2048,oP=256;function aP(e){let n=[],t=0;for(;t<e.length;){let r=e[t];if(r===" "||r===" "||r===`
|
|
4
|
+
`||r==="\r"){t+=1;continue}if(r==='"'){let a=t+1;for(;a<e.length&&e[a]!=='"';)a+=1;n.push({value:e.slice(t+1,a),quoted:true}),t=a<e.length?a+1:a;continue}let o=t;for(;o<e.length&&!`
|
|
5
|
+
\r"`.includes(e[o]);)o+=1;n.push({value:e.slice(t,o),quoted:false}),t=o;}return n}var iP=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function ll(e){if(e.length===0||e.length>tP)return null;let n=aP(e);if(n.length<2)return null;let t=n[0];if(t.quoted||t.value.toUpperCase()!=="HYPERLINK")return null;let r=null,o=false,a=null,i=false,l=null,s=false;for(let d=1;d<n.length;d+=1){let c=n[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!iP.has(u))continue;let f=n[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let p=f.value.length>0&&f.value.length<=oP;u==="\\l"?i||(i=true,p&&(a=f.value)):u==="\\o"&&(s||(s=true,p&&(l=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=rP&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:l}}function Da(e){if(e.kind==="text"||e.kind==="deletedText"){let n="";for(let t of e.children)t.kind==="textValue"&&(n+=t.value);return n}return e.kind==="tab"?" ":e.kind==="hardBreak"?Fc$1(e):""}function xo(e){if(!e||e.kind==="textValue")return [];let n=[];for(let t of e.children){if(t.kind==="textValue")continue;let r={};for(let o of t.attributes)r[o.localName]=o.value;n.push(Object.keys(r).length>0?{localName:t.localName,attributes:r}:{localName:t.localName});}return n}function sl(e,n,t){let r=xo(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return t?[...t(n,r)]:n.length===0?r:[...n,...r]}var lP=new Set(["b","bCs","caps","emboss","i","iCs","imprint","outline","shadow","smallCaps","strike","vanish"]);function pt(e){let n=e.attributes?.val;return n===void 0||!(n==="0"||n==="false"||n==="off")}var zm=new WeakMap;function dl(e){let n=[],t;for(let r of e){let o=r.role==="carried"?zm.get(r.properties):void 0,a;for(let i of r.properties){if(!lP.has(i.localName)){r.emit&&n.push(i);continue}o||(a||(a=new Map),a.set(i.localName,pt(i)));}if(o){if(o.size>0){t||(t=new Map);for(let[i,l]of o)t.set(i,l);}continue}if(a){t||(t=new Map);for(let[i,l]of a){let s=t.get(i);r.role==="direct"?t.set(i,{value:l,forced:false}):l?r.role==="defaults"?t.set(i,{value:true,forced:true}):t.set(i,{value:s?.forced===true?true:!(s?.value??false),forced:s?.forced===true}):t.set(i,{value:false,forced:false});}}}if(!t)return n;for(let[r,o]of t)n.push(o.value?{localName:r}:{localName:r,attributes:{val:"0"}});return zm.set(n,t),n}var mt=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}),sP=/^[0-9A-Fa-f]{6}$/;function _a(e,n=false){return e===void 0||!(n?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function jm(e){return e===void 0||e==="auto"?null:sP.test(e)?e.toUpperCase():null}function Gm(e,n){return e==="minorAscii"||e==="minorHAnsi"?n.minor:e==="majorAscii"||e==="majorHAnsi"?n.major:null}function Ae(e,n){let t={...mt};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(n?Gm(o?.asciiTheme,n)??Gm(o?.hAnsiTheme,n):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(t.fontFamily=i);break}case "sz":{let o=_a(r.attributes?.val);o!==null&&o>0&&(t.fontSizePt=o/2);break}case "color":{t.color=jm(r.attributes?.val);break}case "b":t.bold=pt(r);break;case "i":t.italic=pt(r);break;case "u":{let o=r.attributes?.val??"single";t.underline=o==="none"||!pt(r)?null:{variant:o,color:jm(r.attributes?.color)};break}case "strike":t.strike=pt(r);break;case "dstrike":t.doubleStrike=pt(r);break;case "highlight":{let o=r.attributes?.val;t.highlight=o&&o!=="none"?o:null;break}case "shd":{t.shading=Ta(r.attributes)??null;break}case "vertAlign":{let o=r.attributes?.val;o==="superscript"||o==="subscript"?t.verticalAlign=o:o==="baseline"&&(t.verticalAlign="baseline");break}case "position":{let o=_a(r.attributes?.val,true);o!==null&&(t.baselineShiftPt=o/2);break}case "caps":t.caps=pt(r);break;case "smallCaps":t.smallCaps=pt(r);break;case "spacing":{let o=_a(r.attributes?.val,true);o!==null&&(t.characterSpacingPt=o/20);break}case "w":{let o=_a(r.attributes?.val);o!==null&&o>0&&(t.horizontalScalePercent=o);break}case "kern":{let o=_a(r.attributes?.val);o!==null&&(t.kerningMinPt=o/2);break}case "vanish":t.hidden=pt(r);break;}return t}function er(e,n){return n.caps?e.toUpperCase():e}function _n(e,n,t){return t.measure(er(e,n),n)}function dP(e,n){return e.fontFamily===n.fontFamily&&e.fontSizePt===n.fontSizePt&&e.color===n.color&&e.bold===n.bold&&e.italic===n.italic&&e.strike===n.strike&&e.doubleStrike===n.doubleStrike&&e.highlight===n.highlight&&e.shading===n.shading&&e.verticalAlign===n.verticalAlign&&e.baselineShiftPt===n.baselineShiftPt&&e.caps===n.caps&&e.smallCaps===n.smallCaps&&e.characterSpacingPt===n.characterSpacingPt&&e.horizontalScalePercent===n.horizontalScalePercent&&e.kerningMinPt===n.kerningMinPt&&e.hidden===n.hidden&&e.underline?.variant===n.underline?.variant&&e.underline?.color===n.underline?.color}function Rc(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var cP=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),Wm=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),Vm=new Map([[167,"\u25AA"],[183,"\u2022"]]),$m=new Map([["symbol",cP],["wingdings",Wm],["wingdings 2",Vm],["wingdings 3",Vm],["webdings",Wm]]),uP=64;function Ha(e){return !e||e.length>uP?false:$m.has(e.toLowerCase())}function So(e,n,t){if(e.length===0||!Ha(n))return e;let r=$m.get(n.toLowerCase());if(t?.(n)===true)return e;let o="",a=false;for(let i of e){let l=i.codePointAt(0);if(l>=61440&&l<=61695){let s=r.get(l-61440);if(s!==void 0){o+=s,a=true;continue}}o+=i;}return a?o:e}var nr=61440,za=61695,wc=128;function Ro(e){return e.kind==="generic"&&e.namespaceUri===ca&&e.localName==="sym"}function Xm(e,n){if(!(e.kind==="textValue"||!("attributes"in e))){for(let t of e.attributes)if(t.localName===n&&(t.namespaceUri===ca||t.namespaceUri===""))return t.value}}function fP(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function cl(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 wo(e){if(!Ro(e))return null;let n=fP(Xm(e,"char"));if(n===null)return null;let t=Xm(e,"font"),r=t&&t.length<=wc?t:null,o=Ha(r),a=o&&n<=255&&n+nr<=za?n+nr:n;if(o&&a>=nr&&a<=za){let i=So(String.fromCodePoint(a),r),l=i.codePointAt(0)<nr;return {text:i,font:r,unicode:l}}return cl(n)?{text:String.fromCodePoint(n),font:r,unicode:n<57344||n>63743}:null}function Pc(e,n,t){if(!n.font)return {props:e,style:Ae(e,t)};let r=[...e,{localName:"rFonts",attributes:{ascii:n.font,hAnsi:n.font}}];return {props:r,style:Ae(r,t)}}var pP=256,mP=9;function gP(e){let n=[],t=0;for(;t<e.length;){let r=e[t];if(r===" "||r===" "||r===`
|
|
6
|
+
`||r==="\r"){t+=1;continue}if(r==='"'){let a=t+1;for(;a<e.length&&e[a]!=='"';)a+=1;n.push({value:e.slice(t+1,a),quoted:true}),t=a<e.length?a+1:a;continue}let o=t;for(;o<e.length&&!`
|
|
7
|
+
\r"`.includes(e[o]);)o+=1;n.push({value:e.slice(t,o),quoted:false}),t=o;}return n}function hP(e){if(e.quoted)return null;let n=e.value;if(n.length===0||n.length>mP)return null;let t;if(n.startsWith("0x")||n.startsWith("0X")){let r=n.slice(2);if(!/^[0-9A-Fa-f]{1,6}$/.test(r))return null;t=Number.parseInt(r,16);}else {if(!/^\d{1,7}$/.test(n))return null;t=Number.parseInt(n,10);}return t>1114111||t>=55296&&t<=57343?null:t}function ul(e){if(e.length===0||e.length>pP)return null;let n=gP(e);if(n.length<2)return null;let t=n[0];if(t.quoted||t.value.toUpperCase()!=="SYMBOL")return null;let r=hP(n[1]);if(r===null)return null;let o=null,a=null,i=false;for(let l=2;l<n.length;l+=1){let s=n[l];if(s.quoted||!s.value.startsWith("\\"))continue;let d=s.value.toLowerCase();if(d==="\\f"){let c=n[l+1];c&&c.value.length>0&&c.value.length<=wc&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,l+=1);continue}if(d==="\\s"){let c=n[l+1];if(c&&(c.quoted||!c.value.startsWith("\\"))&&(l+=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 fl(e,n,t){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?[...n,...r]:n,a=Ae(o,t);if(e.unicode)return cl(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(Ha(i)){let l=e.code<=255&&e.code+nr<=za?e.code+nr:e.code;if(l>=nr&&l<=za)return {text:So(String.fromCodePoint(l),i),props:o,style:a}}return cl(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function pl(){let e=null,n=0,t=false,r=false,o=()=>{e=null,n=0,t=false,r=false;};return {get active(){return e!==null},onSeparate(a,i){e===null&&a!==null&&(e=a,n=i,t=false,r=false);},onEnd(a,i){if(e===null||a>n)return null;let l=a===n,d=l&&i&&!(t&&!r)?Lt(e.kind,i,e.picture):"";return o(),l?d:null},reset:o,noteResult(a){t=true,a&&(r=true);}}}var We="all-markup",gl=Object.freeze([]),yP=32,bP={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function Ft(e,n){for(let t of e.attributes)if(t.localName===n&&t.namespaceUri===e.namespaceUri&&(t.kind==="wmlVal"||t.kind==="genericExtension"||t.kind==="xmlSpace"))return t.value}function Po(e){if(e.kind==="textValue")return null;let n=bP[e.kind];if(n===void 0)return null;let t=Ft(e,"date");return {kind:n,id:Ft(e,"id")??"",author:Ft(e,"author")??"",...t===void 0?{}:{date:t},nodeId:e.id}}function Io(e,n){return e.length===0?[n]:[...e,n]}function Rr(e){return e.kind!=="textValue"&&ja$1(e.kind)}var vo=yP;function Oe(e,n){if(n==="all-markup"||e.length===0)return true;for(let t of e)if(n==="proposed"?t.kind==="delete"||t.kind==="moveFrom":t.kind==="insert"||t.kind==="moveTo")return false;return true}function wr(e){if(e.kind==="textValue")return ml;let n=e.children.find(o=>o.kind==="paragraphProperties");if(!n||n.kind==="textValue")return ml;let t=n.children.find(o=>o.kind==="runProperties");if(!t||t.kind==="textValue")return ml;let r=[];for(let o of t.children){if(o.kind==="textValue"||o.namespaceUri!==ca)continue;let a=xP[o.localName];if(a===void 0)continue;let i=Ft(o,"date");r.push({kind:a,id:Ft(o,"id")??"",author:Ft(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:ml}var xP={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function To(e){if(e.kind==="textValue")return null;let n=e.children.find(r=>r.kind==="paragraphProperties");if(!n||n.kind==="textValue")return null;let t=n.children.find(r=>r.kind==="runProperties");if(!t||t.kind==="textValue")return null;for(let r of t.children){if(r.kind==="textValue"||r.namespaceUri!==ca||r.localName!=="rPrChange")continue;let o=Ft(r,"date");return {kind:"format",id:Ft(r,"id")??"",author:Ft(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var ml=Object.freeze([]);function Ic(e){return e.find(n=>Ym(n))??e[0]}function Ym(e){return e.kind==="delete"||e.kind==="moveFrom"}function hl(e,n){let t=Ic(e);return {...t?{markRevisions:e,markRevision:t}:{},...n?{markFormatRevision:n}:{}}}function SP(e){return Ic(wr(e))??null}function RP(e){for(let n of e){if(n.localName!=="rPrChange"&&n.localName!=="pPrChange")continue;let t=n.attributes??{},r=t.date;return {kind:"format",id:t.id??"",author:t.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function Kn(e){return e.some(n=>n.kind==="delete"||n.kind==="moveFrom")}function wP(e){let{simple:n,depth:t,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:s,themeFonts:d}=e,c="",u,f,p=false,m=La(),g=pl(),x=(b,P)=>{u||(u=b,f=P);},h=(b,P,k)=>{if(!(b.kind==="textValue"||P>Ut)){for(let v of b.children)if(v.kind!=="textValue"){if(!Ot(o))return;if(v.kind==="run"){let L=sl(v,l,s),w=Ae(L,d);for(let S of v.children){if(S.kind==="runProperties")continue;if(In(S,"begin")){Fa(m),m.nesting===1&&g.reset();continue}if(Sr(S)){Ea(m,S,o,P+1);continue}if(In(S,"separate")){let y=m.nesting,G=m.phase,D=Na(m);(y===1||G==="result"&&!m.nestingOverflow)&&g.onSeparate(r?D:null,y);continue}if(In(S,"end")){let y=g.onEnd(m.nesting,r);y!==null&&(c+=y),Aa(m);continue}if(Uc$1(S))continue;if(Ro(S)){if(Oe(k,i)&&(p=true),g.active){g.noteResult(!w.hidden&&Oe(k,i));continue}let y=wo(S);if(!y?.unicode||w.hidden||!Oe(k,i))continue;x(L,w),c+=y.text;continue}let C=Da(S);if(C.length===0)continue;let T=Kn(k),N=!Oe(k,i)||S.kind==="deletedText"&&!T;N||(p=true);let M=w.hidden||N;if(g.active){g.noteResult(!M),M||x(L,w);continue}M||(x(L,w),c+=C);}continue}if(Pc$1(v)){let L=g.active?null:ho(Rc$1(v)??"");if(L&&r){if(!Oe(k,i))continue;let w=c.length;h(v,P+1,k),c=c.slice(0,w),c+=Lt(L.kind,r,L.picture);continue}h(v,P+1,k);continue}if(v.kind==="hyperlink"){h(v,P+1,k);continue}if(Rr(v)&&k.length<vo){let L=Po(v);h(v,P+1,L?Io(k,L):k);continue}h(v,P+1,k);}}};return h(n,t,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:p}}function Km(e){let{simple:n,pageContext:t,inheritedRunProperties:r,themeFonts:o}=e,a=wP(e),i=Rc$1(n)??"",l=a.resultProps??r,s=ho(i);if(s&&t){let g=a.resultStyle??Ae(r,o);return g.hidden?null:{text:Lt(s.kind,t,s.picture),props:l,style:g}}if(s&&e.bodyPageFields&&!t&&a.text.length===0&&!a.sawResultContent){let g=a.resultStyle??Ae(r,o);if(g.hidden)return null;let h=s.picture!==void 0&&Zt(s.kind,e.bodyPageFields.format)?s.picture:void 0;return {text:rl(s.kind,h,e.bodyPageFields.format),props:l,style:g,pageField:h===void 0?{kind:s.kind}:{kind:s.kind,picture:h}}}let d=ul(i);if(d){let g=fl(d,l,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=al(i);if(g){let x=il(g,e.documentProperties);if(x!==null){let h=a.resultStyle??Ae(r,o);return h.hidden?null:{text:x,props:l,style:h}}}}let u=c?ol(i):null;if(u){let g=a.resultStyle??Ae(r,o);return g.hidden?null:{text:u.display,props:l,style:g}}if(a.text.length===0)return null;let f=a.resultStyle??Ae(r,o);if(f.hidden)return null;let p=e.currentLink?null:ll(i),m=p?e.projectFieldLink?.(p)??null:null;return {text:a.text,props:l,style:f,...m?{link:m}:{}}}var PP="\u2612",IP="\u2610";function vP(e){let n=Ma(e);return n==="FORMCHECKBOX"?"checkbox":n==="FORMDROPDOWN"?"dropdown":null}function vc(e,n){e.symbolSpec=ul(n),!e.symbolSpec&&(e.linkSpec=ll(n),!e.linkSpec&&(e.formSpec=vP(n),!e.formSpec&&(e.buttonSpec=ol(n),!e.buttonSpec&&(e.docPropertySpec=al(n)))));}function Um(e,n){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let t=e.formData.checked?PP:IP;if(e.formData.sizeHalfPoints===null)return {text:t,props:e.props,style:e.style};let r=[...e.props,{localName:"sz",attributes:{val:String(e.formData.sizeHalfPoints)}}];return {text:t,props:r,style:Ae(r,n)}}if(e.formSpec==="dropdown"){if(e.cachedText.length>0||e.sawResultContent||e.formData?.kind!=="dropdown")return null;let t=e.formData.entries[e.formData.selectedIndex]??"";return t.length===0?null:{text:t,props:e.props,style:e.style}}return null}function qm(e,n){if(e.symbolSpec){let r=fl(e.symbolSpec,e.props,n.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let t=Um(e,n.themeFonts);if(t)return {text:t.text,props:t.props,style:t.style};if(e.kind&&n.pageContext)return {text:Lt(e.kind,n.pageContext,e.picture??void 0),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&&n.bodyPageFields){let o=e.picture!==null&&Zt(e.kind,n.bodyPageFields.format)?e.picture:void 0;return {text:rl(e.kind,o,n.bodyPageFields.format),props:e.props,style:e.style,pageField:{kind:e.kind,...o!==void 0?{picture:o}:{}}}}if(e.docPropertySpec){let r=il(e.docPropertySpec,n.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 tr(e,n,t){if(t<=n)return;let r=e[e.length-1];if(r&&r.end>=n){r.end=Math.max(r.end,t);return}e.push({start:n,end:t});}var TP=new Set(["left","center","right"]),CP=new Set(["margin","indent","leftMargin"]),kP=new Set(["dot","hyphen","underscore","middleDot"]);function Zm(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==ca)return null;let n="left",t="margin",r;for(let o of e.attributes)o.namespaceUri===ca&&(o.localName==="alignment"?n=o.value:o.localName==="relativeTo"?t=o.value:o.localName==="leader"&&(r=o.value));return {alignment:TP.has(n)?n:"left",relativeTo:CP.has(t)?t:"margin",...r!==void 0&&kP.has(r)?{leader:r}:{}}}function Jm(e){return e.kind==="drawing"||bb$1(e)}function Qm(e){let{node:n,layout:t,revisions:r,displayMode:o}=e,a=t.projectionForAtom?.(n.id)??(n.kind==="drawing"?t.project(n):null);if(!a||a.kind!=="inline")return a?.kind==="anchored"&&!a.hidden?{recordDeleted:false,emit:true,extras:{anchoredAtom:true}}:{recordDeleted:false,emit:true};let i=Kn(r),l=e.hiddenRun||!Oe(r,o);return a.hidden||l?a.hidden?{recordDeleted:i,emit:true}:{recordDeleted:i,emit:false}:{recordDeleted:i,emit:true,extras:{inlineDrawing:Object.freeze({drawingNodeId:n.id,ownerPartName:t.ownerPartName,projection:a,resource:t.resourceOf(a)})}}}Object.freeze({marks:Object.freeze(new Map)});function Pr(e,n){return Pd$1(e,n)}function Tc(e,n){if(!ee(e))return null;if(Wd$1(e)||Xd$1(e))return {text:"",projected:true,kind:null,noteId:null};let t=Ud$1(e),r=ae(e)??be(e);if(!r)return null;let o=Zd$1(e),a=o!==null?Pr(r,o):t?void 0:n?.activeNoteKey,i=o!==null?o:a?OP(a,r)??null:null,l=a,s=l!==void 0?t?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...s?{nav:s}:{},...l?{scopeId:l}:{}};if(t&&o!==null&&ce(e))return {text:"",...d};if(!n||!a)return {text:"",...d};let c=n.marks.get(a);return c==null?{text:"",...d}:n.reservedMarkText&&n.reservedMarkText.length>0?{text:c,measureText:n.reservedMarkText,...d}:{text:c,...d}}function OP(e,n){let t=`${n}:`;if(!e.startsWith(t))return null;let r=e.slice(t.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function ng(e){return Ud$1(e)||Vd$1(e)||Wd$1(e)||Xd$1(e)}function BP(e){let n=2166136261;for(let t=0;t<e.length;t+=1)n^=e.charCodeAt(t),n=Math.imul(n,16777619);return (n>>>0).toString(16).padStart(8,"0")}var eg=new WeakMap;function tg(e){if(!e)return "";let n=eg.get(e);if(n!==void 0)return n;let t=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null]),r=`${e.marks.size}:${BP(t)}`;return eg.set(e,r),r}var Co=.7,MP=1.25,rg="Cambria Math";function bl(e){return e.fontFamily===rg?e:Object.freeze({...e,fontFamily:rg})}function gt(e,n,t,r){return Object.freeze({x:e,y:n,width:t,height:r})}function Mn(e,n,t){return Object.freeze({...e,box:gt(n,t,e.box.width,e.box.height)})}var LP=4,FP=8,og=new WeakMap;function EP(e){let n=bl(e);return [n.fontFamily??"",n.fontSizePt,n.bold?1:0,n.italic?1:0,n.verticalAlign,n.baselineShiftPt,n.caps?1:0,n.smallCaps?1:0,n.characterSpacingPt,n.horizontalScalePercent,n.kerningMinPt].join("|")}function NP(e,n){if(n===void 0)return {projections:new WeakMap};let t=og.get(e);t||(t=new Map,og.set(e,t));let r=t.get(n);if(r)return t.delete(n),t.set(n,r),r;if(t.size>=LP){let a=t.keys().next().value;a!==void 0&&t.delete(a);}let o={projections:new WeakMap};return t.set(n,o),o}function ko(e,n,t){let r=t.styles.get(n);if(r)return r;let o=n===1?e:Object.freeze({...e,fontSizePt:e.fontSizePt*n,characterSpacingPt:e.characterSpacingPt*n});return t.styles.set(n,o),o}function ag(e,n,t,r){let o=r.metrics.get(t);if(o)return o;let a=e.lineMetrics(ko(n,t,r));return r.metrics.set(t,a),a}function yl(e,n,t,r,o,a){let i=ko(r,o,a),l=ag(t,r,o,a);return Object.freeze({kind:e,text:n,fontSizePt:i.fontSizePt,box:gt(0,0,_n(n,i,t),l.height),baseline:l.baseline})}function AP(e,n){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:gt(0,0,0,n.height),baseline:n.baseline});let t=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 l=Mn(i,o,t-i.baseline);return o+=i.box.width,l});return Object.freeze({kind:"row",items:Object.freeze(a),box:gt(0,0,o,t+r),baseline:t})}function Hn(e,n,t,r,o){switch(e.kind){case "text":return yl("text",e.value,n,t,r,o);case "fallback":return yl("fallback",e.text||"\u2026",n,t,r,o);case "row":return AP(e.items.map(a=>Hn(a,n,t,r,o)),ag(n,t,r,o));case "fraction":{let a=ko(t,r,o),i=Hn(e.numerator,n,t,r*Co,o),l=Hn(e.denominator,n,t,r*Co,o),s=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,l.box.width)+s*2,f=i.box.height+d,p=f+c+d,m=p+l.box.height,g=Math.min(m,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:Mn(i,(u-i.box.width)/2,0),denominator:Mn(l,(u-l.box.width)/2,p),bar:gt(s/2,f,u-s,c),box:gt(0,0,u,m),baseline:g})}case "radical":{let a=ko(t,r,o),i=Hn(e.radicand,n,t,r,o),l=yl("text","\u221A",n,t,r,o),s=e.degree?Hn(e.degree,n,t,r*.55,o):void 0,d=Math.max(.55,a.fontSizePt*.05),c=Math.max(.35,a.fontSizePt*.035),u=d+c,f=s?Math.max(0,s.box.width*.65):0,p=f+l.box.width,m=u+i.baseline,g=Math.max(u+i.box.height,m+(l.box.height-l.baseline));return Object.freeze({kind:"radical",sign:Mn(l,f,m-l.baseline),radicand:Mn(i,p,u),...s?{degree:Mn(s,0,0)}:{},bar:gt(p,0,i.box.width,d),box:gt(0,0,p+i.box.width,g),baseline:m})}case "script":{let a=ko(t,r,o),i=Hn(e.base,n,t,r,o),l=e.subscript?Hn(e.subscript,n,t,r*Co,o):void 0,s=e.superscript?Hn(e.superscript,n,t,r*Co,o):void 0,d=Math.max(.4,a.fontSizePt*.04),c=i.box.width+d,u=0,f=s?Math.max(0,s.box.height-i.baseline*.45):0,p=f+i.baseline,m=p+a.fontSizePt*.08,g=c+Math.max(l?.box.width??0,s?.box.width??0,-d),x=Math.max(f+i.box.height,s?u+s.box.height:0,l?m+l.box.height:0);return Object.freeze({kind:"script",base:Mn(i,0,f),...l?{subscript:Mn(l,c,m)}:{},...s?{superscript:Mn(s,c,u)}:{},box:gt(0,0,g,x),baseline:p})}case "nary":{let a=ko(t,r,o),i=yl("text",e.operator,n,t,r*MP,o),l=Hn(e.body,n,t,r,o),s=e.lowerLimit?Hn(e.lowerLimit,n,t,r*Co,o):void 0,d=e.upperLimit?Hn(e.upperLimit,n,t,r*Co,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,s?.box.width??0,d?.box.width??0),p=d?d.box.height+c:0,m=p+i.baseline,g=p+i.box.height+(s?c:0),x=u+c,h=m-l.baseline,P=-Math.min(0,p,h,s?g:0),k=m+P,v=Math.max(p+i.box.height,s?g+s.box.height:0,h+l.box.height)+P;return Object.freeze({kind:"nary",operator:Mn(i,(u-i.box.width)/2,p+P),body:Mn(l,x,h+P),...s?{lowerLimit:Mn(s,(u-s.box.width)/2,g+P)}:{},...d?{upperLimit:Mn(d,(u-d.box.width)/2,P)}:{},box:gt(0,0,x+l.box.width,v),baseline:k})}}}function ig(e,n,t){let r=bl(t),o={styles:new Map,metrics:new Map};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:Hn(e.expression,n,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function lg(e,n){let t=NP(e,n);return (r,o)=>{let a=EP(o),i=t.projections.get(r),l=i?.get(a);if(l&&i)return i.delete(a),i.set(a,l),l;let s=ig(r,e,o);if(i||(i=new Map,t.projections.set(r,i)),i.size>=FP){let d=i.keys().next().value;d!==void 0&&i.delete(d);}return i.set(a,s),s}}function xl(e,n=[],t,r,o,a,i=We,l,s,d,c,u,f=false){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let p=[],m=0,g,x=Yc$1(e,{maxNesting:Zi,maxInstructionChars:Xc$1}),h=x.filter(R=>R.addressing==="atomic"),b=new Set(h.filter(R=>R.kind==="complex").map(R=>R.node.id)),P=new Set(x.filter(R=>R.kind==="complex"&&R.addressing==="editable-result").map(R=>R.node.id)),k=new Set;for(let R of h)for(let W of R.removeNodeIds)k.add(W);let v=La(),L=uc(),w=null,S=null,C=pl(),T=gl,N=(R,W,A,z,q,_,X)=>{if(R.length===0&&!z&&!X?.inlineDrawing)return;let U=X?.linkOverride??g,j=X?.revisionsOverride??T,K=U?{link:U}:{},pe=j.length===0?{}:{revisions:j};if(z){p.push({text:R,props:W,style:A,start:q,end:_,projected:true,...X?.measureText!==void 0?{measureText:X.measureText}:{},...X?.noteNav?{noteNav:X.noteNav}:{},...X?.inlineDrawing?{inlineDrawing:X.inlineDrawing}:{},...X?.anchoredAtom?{anchoredAtom:true}:{},...X?.equation?{equation:X.equation}:{},...X?.fieldAtom?{fieldAtom:X.fieldAtom}:{},...K,...pe});return}R.length!==0&&p.push({text:R,props:W,style:A,start:q,end:_,...X?.positionalTab?{positionalTab:X.positionalTab}:{},...X?.breakKind?{breakKind:X.breakKind}:{},...K,...pe});},M=()=>{if(!w||!w.atomic){w=null,S=null;return}let R=w.atomStart,W=R+1;if(w.style.hidden){w=null,S=null;return}if(!Oe(w.resultRevisions,i)){l&&Kn(w.resultRevisions)&&tr(l,R,W),w=null,S=null;return}let{resultLink:A,linkSpec:z,resultRevisions:q,formField:_}=w,X,U=()=>{if(X)return X;let K=!A&&z?c?.(z)??null:null,pe=A??K;return X={...q.length>0?{revisionsOverride:q}:{},...pe?{linkOverride:pe}:{},fieldAtom:{formField:_}},X},j=qm(w,{pageContext:t,themeFonts:d,documentProperties:u,bodyPageFields:f});if(j){let K=U(),pe=j.pageField?{...K,fieldAtom:{formField:w.formField,pageField:j.pageField}}:K;N(j.text,j.props,j.style,true,R,W,pe);}w=null,S=null;},y=()=>{if(!w)return;let R=!w.resultLink&&w.linkSpec?c?.(w.linkSpec)??null:null,W=A=>R&&!A.link?{...A,link:R}:A;if(w.atomic){m=w.atomStart;for(let A of w.buffered)p.push({...W(A),start:m,end:m+(A.end-A.start)}),m+=A.end-A.start;w.cachedText.length>0&&w.buffered.length===0&&(N(w.cachedText,w.props,w.style,false,m,m+w.cachedText.length,R?{linkOverride:R}:void 0),m+=w.cachedText.length);}else {for(let A of w.buffered)p.push(W(A));m=w.bufferOffset;}w=null,S=null;},G=(R,W,A)=>{if(Jm(R)){let U=m;m+=1;let j=m;if(!s)return;let K=Qm({node:R,layout:s,hiddenRun:A.hidden,revisions:T,displayMode:i});K.recordDeleted&&l&&tr(l,U,j),K.emit&&N("\uFFFC",W,A,true,U,j,K.extras);return}if(ng(R)){let U=Tc(R,a),j=m,K=j+1;if(m=K,A.hidden||!U||U.text.length===0&&!U.measureText)return;let pe=U.scopeId&&U.nav?{scopeId:U.scopeId,direction:U.nav}:void 0;N(U.text.length>0?U.text:U.measureText??"",W,A,true,j,K,{...U.measureText!==void 0?{measureText:U.measureText}:{},...pe?{noteNav:pe}:{}});return}let z=Zm(R);if(z){A.hidden||N(" ",W,A,false,m,m,{positionalTab:z});return}if(Ro(R)){let U=wo(R);if(!U||A.hidden||!Oe(T,i))return;let j=Pc(W,U,d);N(U.text,j.props,j.style,true,m,m);return}let q=Da(R);if(q.length===0)return;let _=Kn(T);A.hidden||!Oe(T,i)||R.kind==="deletedText"&&!_||N(q,W,A,false,m,m+q.length,{...R.kind==="hardBreak"?{breakKind:Dc$1(R)}:{}}),_&&l&&tr(l,m,m+q.length),m+=q.length;},D=(R,W)=>{if(R.kind!=="run")return;let A=sl(R,n,r),z=Ae(A,d),q=()=>{w&&(w.capturedResultStyle||(w.props=A,w.style=z,w.capturedResultStyle=true),w.capturedResultRevisions||(w.resultRevisions=T,w.capturedResultRevisions=true,!w.resultLink&&g&&(w.resultLink=g)));};for(let _ of R.children){if(!Ot(L)){if(y(),Ba(v),C.reset(),_.kind==="runProperties"||In(_,"begin")||In(_,"separate")||In(_,"end")||Sr(_)||k.has(_.id)&&S===null)continue;G(_,A,z);continue}if(_.kind!=="runProperties"){if(In(_,"begin")){let X=b.has(_.id);Fa(v),v.nesting===1&&(y(),C.reset(),S=X?_.id:null,w={kind:null,picture:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,formData:Wc$1(_),atomic:X,editableResult:P.has(_.id),atomStart:m,props:A,style:z,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:m,resultRevisions:T,capturedResultRevisions:T.length>0,formField:Vc$1(_),...g?{resultLink:g}:{}},X&&(m+=1));continue}if(Sr(_)){Ea(v,_,L,W+1);continue}if(In(_,"separate")){let X=v.nesting===1&&v.phase==="instruction",U=v.nesting,j=Na(v);if(X&&w){w.kind=j?.kind??null,w.picture=j?.picture??null;let K=Ji(v);!w.kind&&!K.overflow&&!v.nestingOverflow&&vc(w,K.instruction),w.props=A,w.style=z;}else w?.atomic&&v.phase==="result"&&!v.nestingOverflow&&C.onSeparate(t?j:null,U);continue}if(In(_,"end")){let X=v.nesting===1;if(X&&w?.atomic&&v.phase==="instruction"){let j=Ji(v);!j.overflow&&!v.nestingOverflow&&vc(w,j.instruction);}let U=C.onEnd(v.nesting,t);U!==null&&w?.atomic&&(w.cachedText+=U),Aa(v),X&&(w?.atomic?M():y());continue}if(!(km(v)&&w?.atomic)){if(w&&Om(v)){if(Ro(_)){if(w.atomic){if(Oe(T,i)&&(w.sawResultContent=true),C.active){C.noteResult(!z.hidden&&Oe(T,i));continue}if(!z.hidden&&Oe(T,i)){let Fe=wo(_);Fe?.unicode&&(q(),w.cachedText+=Fe.text);}continue}let K=wo(_);if(!K||z.hidden||!Oe(T,i))continue;let pe=Pc(A,K,d);w.buffered.push({text:K.text,props:pe.props,style:pe.style,start:m,end:m,projected:true,...T.length>0?{revisions:T}:{},...g?{link:g}:{},fieldAtom:{formField:w.formField}});continue}let X=Da(_);if(X.length===0)continue;let U=Kn(T),j=!Oe(T,i)||_.kind==="deletedText"&&!U;if(w.atomic&&!j&&(w.sawResultContent=true),U&&l&&(w.atomic?tr(l,w.atomStart,w.atomStart+1):tr(l,m,m+X.length)),j){w.atomic&&C.active&&C.noteResult(false),w.atomic||(m+=X.length,w.bufferOffset=m);continue}if(w.atomic){if(C.active){if(C.noteResult(!z.hidden),z.hidden)continue;q();continue}if(z.hidden)continue;q(),w.cachedText+=X;continue}if(z.hidden){m+=X.length,w.bufferOffset=m;continue}w.capturedResultStyle||(w.props=A,w.style=z,w.capturedResultStyle=true),w.buffered.push({text:X,props:A,style:z,start:m,end:m+X.length,...T.length>0?{revisions:T}:{},...g?{link:g}:{},fieldAtom:{formField:w.formField}}),m+=X.length,w.bufferOffset=m;continue}k.has(_.id)&&S===null&&b.size>0,G(_,A,z);}}}};if(!Ot(L))return p;let F=Va$1(),E=(R,W)=>{let A=m;if(m+=1,R.kind==="textValue"||(Kn(T)&&l&&tr(l,A,A+1),!Oe(T,i)))return;let z=Km({simple:R,depth:W,pageContext:t,budget:L,revisions:T,displayMode:i,inheritedRunProperties:n,cascadeRuns:r,themeFonts:d,currentLink:g,projectFieldLink:c,documentProperties:u,bodyPageFields:f});z&&N(z.text,z.props,z.style,true,A,A+1,{fieldAtom:{formField:false,...z.pageField?{pageField:z.pageField}:{}},...z.link?{linkOverride:z.link}:{}});},B=(R,W,A,z)=>{let q=ic$1(R);if(q){let j=m++;Kn(T)&&l&&tr(l,j,m);let K=bl(Ae(n,d));return K.hidden||!Oe(T,i)?void 0:N("\uFFFC",n,K,true,j,m,{equation:q})}if(Pc$1(R)){E(R,W);return}if(R.kind==="run"){D(R,W);return}if(nc$1(R)){if(z>=mc$1||W>Ut)return;for(let j of qc$1(R))B(j,W+1,A,z+1);return}if(W>Ut||W>=vo)return;let _=R.kind!=="textValue"&&"localName"in R?Ua$1(A,R):A;if(R.kind==="hyperlink"){let j=g;g=o?.(R)??void 0;for(let K of R.children)B(K,W+1,_,z);g=j;return}if(!Rr(R))return;let X=Po(R);if(!X||!Ot(L))return;let U=T;T=Io(U,X);for(let j of R.children)B(j,W+1,_,z);T=U;};for(let R of e.children)B(R,1,F,0);return y(),p}function DP(e){let n=Object.entries(e.attributes??{}).sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${t}=${r}`).join(",");return `${e.localName}(${n})`}function _P(e){return e.map(DP).join(";")}var sg=new WeakMap,cg=1<<18;function ug(e){if(e.kind==="textValue")return `t:${e.value}`;let n=e.kind==="paragraph"||e.kind==="table";if(n){let r=sg.get(e);if(r!==void 0)return r}let t=HP(e);return n&&t.length<=cg&&sg.set(e,t),t}function HP(e){if(e.kind==="textValue")return `t:${e.value}`;let n=[`${e.kind}:${"localName"in e?e.localName:""}#${"id"in e?e.id:""}`];if("attributes"in e&&Array.isArray(e.attributes)){let t=[...e.attributes].map(r=>`${r.namespaceUri??""}:${r.localName}=${r.value}`).sort();for(let r of t)n.push(r);}for(let t of e.children??[])n.push(ug(t));return `(${n.join("|")})`}var dg=new WeakMap;function Ir(e){let n=Math.round(e.width*1e3),t=e.drawingToken??"",r=e.exclusionToken??"",o=_P(e.properties),a=dg.get(e.paragraph);if(a&&a.producer===e.producer&&a.width===n&&a.drawingToken===t&&a.exclusionToken===r&&a.propertiesToken===o)return a.key;let i=[e.producer,n,t,r,o,ug(e.paragraph)].join("\0");return i.length<=cg&&dg.set(e.paragraph,{producer:e.producer,width:n,drawingToken:t,exclusionToken:r,propertiesToken:o,key:i}),i}var fg=new WeakMap;function pg(e,n){fg.set(e,n);}function mg(e,n,t,r){if(!e)return;let o=n??new Set;for(let a of t)o.add(a);for(let a of r){let i=fg.get(a);if(i)for(let l of i)o.add(l);}n||e.retain(o);}var zP=8,jP=8;function GP(e={}){let n=Math.max(1,e.maxEntries??4096),t=n*8,r=new Map,o=0,a=0,i=0,l=0,s=0;return {get(d){let c=r.get(d);if(c===void 0){l+=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>n;){let u=r.entries().next();if(u.done||u.value[1].generation>=o&&r.size<=t)break;r.delete(u.value[0]),s+=1;}},retentionPassDue(){return a+=1,a%zP===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>jP&&(r.delete(c),s+=1);},clear(){r.clear();},get stats(){return {hits:i,misses:l,evictions:s,size:r.size}}}}var gg=21600;function Ye(e){return Number.isFinite(e)?e:0}function ja(e){if(e.length===0)return Object.freeze([]);let n=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),t=[],r=n[0];for(let o=1;o<n.length;o+=1){let a=n[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(t.push(r),r=a);}return t.push(r),Object.freeze(t)}function WP(e,n){let t=[];for(let r of e)for(let o of n){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&t.push(Object.freeze({start:a,end:i}));}return ja(t)}function Cc(e,n,t){let r=[];for(let o of e){let a=Math.max(o.start,n),i=Math.min(o.end,t);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return ja(r)}function VP(e,n,t){let r=[],o=n;for(let a of e)a.start>o&&r.push(Object.freeze({start:o,end:a.start})),o=Math.max(o,a.end);return o<t&&r.push(Object.freeze({start:o,end:t})),Object.freeze(r)}function yg(e,n){return Oo(e,n)}function kc(e,n,t){return yg(Oo(e,n),t)}function $P(e,n){let t=[],r=Math.min(e.length,gn);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],l=a.y,s=i.y;if(l===s)continue;let d=Math.min(l,s),c=Math.max(l,s);if(n<d||n>c||n===c&&s>l||n===d&&s<l)continue;let u=(n-l)/(s-l),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&t.push({x:f,delta:s>l?1:-1});}return t.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(t)}function XP(e,n){let t=[],r=Math.min(e.length,gn);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(n-a.y)>1e-6)continue;let l=Math.min(a.x,i.x),s=Math.max(a.x,i.x);s>l&&t.push(Object.freeze({start:l,end:s}));}return ja(t)}function hg(e,n,t){let r=YP($P(e,n),t),o=XP(e,n);return ja([...r,...o])}function YP(e,n){if(e.length===0)return Object.freeze([]);let t=[];if(n==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,l=e[a+1].x;l>i&&t.push(Object.freeze({start:i,end:l}));}return Object.freeze(t)}let r=0,o=null;for(let a of e){let i=r;r+=a.delta,i===0&&r!==0?o=a.x:i!==0&&r===0&&o!==null&&(a.x>o&&t.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(t)}function KP(e,n){return Object.freeze({top:Ye(e.top)+Ye(n.top),right:Ye(e.right)+Ye(n.right),bottom:Ye(e.bottom)+Ye(n.bottom),left:Ye(e.left)+Ye(n.left)})}function UP(e,n,t,r,o,a){let i=n.x-e.x,l=n.y-e.y,s=r.x-t.x,d=r.y-t.y,c=i*d-l*s;if(Math.abs(c)<1e-12)return null;let f=((t.x-e.x)*l-(t.y-e.y)*i)/c,p=((t.x-e.x)*d-(t.y-e.y)*s)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let m=e.y+f*l;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function qP(e,n,t,r){let o=[],a=Math.min(e.length,gn),i=Math.min(n.length,gn);if(a<2||i<2)return Object.freeze([]);let l=gn*gn,s=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let f=0;f<i;f+=1){if(s>=l)return Object.freeze(o);s+=1;let p=n[f],m=n[(f+1)%i],g=UP(c,u,p,m,t,r);g!==null&&o.push(g);}}return Object.freeze(o)}function ZP(e,n,t){let r=new Set;r.add(n),r.add(t);for(let o of e){let a=Math.min(o.length,gn);for(let i=0;i<a;i+=1){let l=o[i].y;Number.isFinite(l)&&l>=n-1e-6&&l<=t+1e-6&&r.add(l);}for(let i=0;i<a;i+=1){let l=o[i],s=o[(i+1)%a],d=l.y,c=s.y;if(d!==c)for(let u of [n,t]){let f=Math.min(d,c),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of qP(e[0],e[1],n,t))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function JP(e,n,t,r){let o=hg(e,t,r);return n&&n.length>=3&&(o=WP(o,hg(n,t,"nonzero"))),o}function bg(e,n,t,r,o=null){let a=Ye(t.top),i=Ye(t.bottom),l=Ye(t.left),s=Ye(t.right),d=n-i,c=n+a,u=ZP(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 x=u[g+1];return x<=m+1e-6?[m]:[m,x,(m+x)/2]}):[d];for(let m of p){let g=JP(e,o,m,r);for(let x of g)f.push(Object.freeze({start:x.start-l,end:x.end+s}));}return ja(f)}function xg(e){let{x:n,y:t,width:r,height:o}=e;return Object.freeze([Object.freeze({x:n,y:t}),Object.freeze({x:n+r,y:t}),Object.freeze({x:n+r,y:t+o}),Object.freeze({x:n,y:t+o})])}function QP(e){let n=Math.max(0,Ye(e.extentWidthPt)),t=Math.max(0,Ye(e.extentHeightPt)),r=Rl(e.transform,n,t),o=Math.min(e.polygonEmu.length,gn);if(o<3)return xg({x:e.anchorX,y:e.anchorY,width:n,height:t});let a=r.width/gg,i=r.height/gg,l=[];for(let s=0;s<o;s+=1){let d=e.polygonEmu[s];l.push(Object.freeze({x:Ye(d.x)*a,y:Ye(d.y)*i}));}return wl({points:Object.freeze(l),sourceWidth:r.width,sourceHeight:r.height,offsetX:r.offsetX,offsetY:r.offsetY,crop:{left:0,top:0,right:0,bottom:0},transform:e.transform,layoutWidth:n,layoutHeight:t,anchorX:e.anchorX,anchorY:e.anchorY})}function e0(e,n){let t=n.effectInsets??Sl,r=n.wrapDistances??Sl,o=Ye(n.contentLeft),a=Ye(n.contentRight);if(n.mode==="topAndBottom"){let c=yg(Oo(n.contentBounds,t),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Cc([{start:o,end:a}],o,a)}if(n.mode==="square"){let c=kc(n.contentBounds,t,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Cc([{start:c.x,end:c.x+c.width}],o,a)}let i=n.polygon&&n.polygon.length>=3?n.polygon:xg(n.contentBounds),l=n.mode==="through"?"evenodd":"nonzero",s=KP(r,t),d=bg(i,e,s,l,n.clipPolygon);return Cc(d,o,a)}function n0(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(n=>n.start)),end:Math.max(...e.map(n=>n.end))})}function t0(e,n,t,r,o){if(t==="bothSides"||n.length===0)return e;let a=n0(n);if(!a)return e;if(t==="left")return Object.freeze(e.filter(s=>s.end<=a.start+1e-4));if(t==="right")return Object.freeze(e.filter(s=>s.start>=a.end-1e-4));let i=Math.max(0,a.start-r),l=Math.max(0,o-a.end);return i===l?Object.freeze(e.filter(s=>s.start>=a.end-1e-4)):i>l?Object.freeze(e.filter(s=>s.end<=a.start+1e-4)):Object.freeze(e.filter(s=>s.start>=a.end-1e-4))}function Sg(e,n){let t=e0(e,n),r=VP(t,n.contentLeft,n.contentRight);return t0(r,t,n.textSide,n.contentLeft,n.contentRight)}function r0(e,n,t,r){return t.length<3?false:bg(t,n,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function Oc(e,n,t){let r=t.effectInsets??Sl,o=t.hitBounds;if(e<o.x||e>o.x+o.width||n<o.y||n>o.y+o.height)return false;if(t.clipPolygon&&t.clipPolygon.length>=3)return r0(e,n,t.clipPolygon,r);let a=Oo(t.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&n>=a.y&&n<=a.y+a.height}function Rg(e){let n=Object.freeze({top:Ye(e.wrapDistancesEmu.top/ht),right:Ye(e.wrapDistancesEmu.right/ht),bottom:Ye(e.wrapDistancesEmu.bottom/ht),left:Ye(e.wrapDistancesEmu.left/ht)}),t=e.mode==="tight"||e.mode==="through"?QP({polygonEmu:e.polygonEmu,extentWidthPt:e.extentWidthPt,extentHeightPt:e.extentHeightPt,anchorX:e.contentBounds.x,anchorY:e.contentBounds.y,transform:e.transform}):null;return Object.freeze({mode:e.mode,contentBounds:e.contentBounds,polygon:t,clipPolygon:e.geometry.clipPolygon,wrapDistances:n,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var vn=1e5,gn=m.maxPolygonPoints,Sl=Object.freeze({top:0,right:0,bottom:0,left:0}),o0=32,a0=.1,i0=new Set(["rect","ellipse","roundRect"]);function fe(e){return Number.isFinite(e)?e:0}function zn(e,n,t){return Number.isFinite(e)?Math.min(t,Math.max(n,e)):n}function wg(e,n){let t=e+n;return Number.isFinite(t)?t:0}function Pg(e,n,t){let r=zn(e,0,t),o=zn(n,0,t);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=t){let i=(t-1)/a;r*=i,o*=i;}return {left:r,right:o}}function l0(e){let n=Pg(zn(e.left,0,vn),zn(e.right,0,vn),vn),t=Pg(zn(e.top,0,vn),zn(e.bottom,0,vn),vn);return Object.freeze({left:n.left,top:t.left,right:n.right,bottom:t.right})}function s0(e){let n=l0({left:e.left*vn,top:e.top*vn,right:e.right*vn,bottom:e.bottom*vn});return Object.freeze({left:n.left/vn,top:n.top/vn,right:n.right/vn,bottom:n.bottom/vn})}function d0(e){let n=t=>{if(!Number.isFinite(t))return 0;let r=t/ht;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)})}function Oo(e,n){let t=fe(n.left),r=fe(n.right),o=fe(n.top),a=fe(n.bottom);return Object.freeze({x:e.x-t,y:e.y-o,width:Math.max(0,wg(e.width,t+r)),height:Math.max(0,wg(e.height,o+a))})}function c0(e,n,t){let r=e*zn(t.left,0,1),o=n*zn(t.top,0,1),a=e*(1-zn(t.right,0,1)),i=n*(1-zn(t.bottom,0,1));if(a<=r||i<=o){let l=e/2,s=n/2;return Object.freeze({left:l,top:s,right:l,bottom:s})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function Rl(e,n,t){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?fe(rr(r)??n):Math.max(0,fe(n)),l=o>0?fe(rr(o)??t):Math.max(0,fe(t));return Object.freeze({offsetX:fe(rr(a.x)??0),offsetY:fe(rr(a.y)??0),width:i,height:l})}function u0(e,n,t,r){let o=c0(n,t,r),a=o.right-o.left,i=o.bottom-o.top,l=n>0?n:1,s=t>0?t:1,d=[],c=Math.min(e.length,gn);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+zn(f.x/l,0,1)*a,m=i<=0?o.top:o.top+zn(f.y/s,0,1)*i;d.push(Object.freeze({x:fe(p),y:fe(m)}));}return Object.freeze(d)}function Ig(e,n,t){let r=e.x-n.x,o=e.y-n.y;t.flipHorizontal&&(r=-r),t.flipVertical&&(o=-o);let a=fe(t.rotationDegrees)*Math.PI/180,i=Math.cos(a),l=Math.sin(a),s=r*i-o*l,d=r*l+o*i;return Object.freeze({x:fe(s+n.x),y:fe(d+n.y)})}function vg(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let n=e[0].x,t=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,gn);for(let i=1;i<a;i+=1){let l=e[i];!Number.isFinite(l.x)||!Number.isFinite(l.y)||(n=Math.min(n,l.x),t=Math.max(t,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y));}return Object.freeze({x:n,y:r,width:Math.max(0,t-n),height:Math.max(0,o-r)})}function Bc(e){let n=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),t=Ga(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of t)r.push(Ig(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),n,e.transform));let o=vg(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,fe(e.layoutWidth))/a,scaleY:Math.max(0,fe(e.layoutHeight))/i,anchorX:fe(e.anchorX),anchorY:fe(e.anchorY)})}function f0(e,n){return Object.freeze({x:fe(n.anchorX+(e.x-n.bboxX)*n.scaleX),y:fe(n.anchorY+(e.y-n.bboxY)*n.scaleY)})}function wl(e){let n=e.mapping??Bc({sourceWidth:e.sourceWidth,sourceHeight:e.sourceHeight,offsetX:e.offsetX,offsetY:e.offsetY,transform:e.transform,layoutWidth:e.layoutWidth,layoutHeight:e.layoutHeight,anchorX:e.anchorX,anchorY:e.anchorY}),t=u0(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(t.length>0?t.length:e.points.length,gn),o=t.length>0?t:e.points.slice(0,r),a=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),i=[];for(let l=0;l<r;l+=1){let s=o[l],d=Object.freeze({x:fe(s.x+e.offsetX),y:fe(s.y+e.offsetY)});i.push(f0(Ig(d,a,e.transform),n));}return Object.freeze(i)}function Ga(e,n,t,r){if(t<=0||r<=0){let o=Object.freeze({x:e,y:n});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:n}),Object.freeze({x:e+t,y:n}),Object.freeze({x:e+t,y:n+r}),Object.freeze({x:e,y:n+r})])}function p0(e,n,t){if(!e||!i0.has(e))return null;if(n<=0||t<=0)return Ga(0,0,Math.max(0,n),Math.max(0,t));if(e==="rect")return Ga(0,0,n,t);if(e==="ellipse"){let l=[],s=n/2,d=t/2,c=n/2,u=t/2,f=Math.min(o0,gn);for(let p=0;p<f;p+=1){let m=p/f*Math.PI*2;l.push(Object.freeze({x:s+c*Math.cos(m),y:d+u*Math.sin(m)}));}return Object.freeze(l)}let r=Math.min(n,t)*a0,o=Math.max(0,r),a=n,i=t;return Object.freeze([Object.freeze({x:o,y:0}),Object.freeze({x:a-o,y:0}),Object.freeze({x:a,y:o}),Object.freeze({x:a,y:i-o}),Object.freeze({x:a-o,y:i}),Object.freeze({x:o,y:i}),Object.freeze({x:0,y:i-o}),Object.freeze({x:0,y:o})])}function Mo(e){return Object.freeze({x:fe(e.x),y:fe(e.y)})}function m0(e,n){if(e.length===0)return Object.freeze([]);let t=n.x+n.width,r=n.y+n.height,o=(i,l,s)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,gn);for(let u=0;u<c;u+=1){let f=Mo(i[u]),p=Mo(i[(u+1)%c]),m=l(f),g=l(p);if(m&&g?d.push(p):m&&!g?d.push(Mo(s(f,p))):!m&&g&&(d.push(Mo(s(f,p))),d.push(p)),d.length>=gn)break}return Object.freeze(d.slice(0,gn))},a=e.slice(0,gn).map(Mo);return a=[...o(a,i=>i.x>=n.x,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(n.x-i.x)/s:0;return Object.freeze({x:n.x,y:fe(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.x<=t,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(t-i.x)/s:0;return Object.freeze({x:t,y:fe(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.y>=n.y,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(n.y-i.y)/s:0;return Object.freeze({x:fe(i.x+d*(l.x-i.x)),y:n.y})})],a=[...o(a,i=>i.y<=r,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(r-i.y)/s:0;return Object.freeze({x:fe(i.x+d*(l.x-i.x)),y:r})})],Object.freeze(a)}function g0(e){let n=vg(e);return Object.freeze({x:n.x,y:n.y,width:n.width,height:n.height})}function Pl(e,n){let t=h0(e.paintBounds,n),r=t.width>0&&t.height>0?t:Object.freeze({...t}),o=a=>{if(!a||a.length===0)return a;let i=m0(a,n);return i.length>=3?Object.freeze(i.map(Mo)):Object.freeze([])};return Object.freeze({...e,paintBounds:t,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function h0(e,n){let t=Math.max(e.x,n.x),r=Math.max(e.y,n.y),o=Math.min(e.x+e.width,n.x+n.width),a=Math.min(e.y+e.height,n.y+n.height);return o<=t||a<=r?Object.freeze({x:t,y:r,width:0,height:0}):Object.freeze({x:t,y:r,width:o-t,height:a-r})}function y0(e){let n=Math.max(0,fe(e.extentWidth)),t=Math.max(0,fe(e.extentHeight)),r=fe(e.anchorX),o=fe(e.anchorY),a=s0(e.crop),i=d0(e.effectExtentEmu),l=Rl(e.transform,n,t),s=Object.freeze({x:r,y:o,width:n,height:t}),d={sourceWidth:l.width,sourceHeight:l.height,offsetX:l.offsetX,offsetY:l.offsetY,crop:a,transform:e.transform,layoutWidth:n,layoutHeight:t,anchorX:r,anchorY:o},c=Bc(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=wl({points:Ga(0,0,l.width,l.height),...d,crop:u,mapping:c}),p=p0(e.presetGeometry,l.width,l.height),m="none",g=p;g||(m=e.presetGeometry?"unsupported-preset":"none",g=Ga(0,0,l.width,l.height));let x=wl({points:g,...d,crop:u,mapping:c}),h=g0(x.length>=3?x:f),b=Oo(h,i);return Object.freeze({contentBounds:s,paintBounds:b,hitBounds:b,transformedCorners:f,clipPolygon:x.length>=3?x:f,clipFallback:m,effectInsets:i})}function Lo(e){let n=e.projection.picture,t=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return y0({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:n?.crop??{left:0,top:0,right:0,bottom:0},transform:n?.transform??t,presetGeometry:n?.presetGeometry??null})}function b0(e){let{transform:n,contentWidth:t,contentHeight:r}=e;if(t<=0||r<=0)return null;let o=Rl(n,t,r),a=o.width,i=o.height,l=Bc({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:n,layoutWidth:t,layoutHeight:r,anchorX:0,anchorY:0}),s=fe(n.rotationDegrees),d=Math.abs(s%360)>1e-4,c=n.flipHorizontal?-1:1,u=n.flipVertical?-1:1,f=l.scaleX,p=l.scaleY,m=a>0?a/t: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 h=s*Math.PI/180,b=Math.cos(h),P=Math.sin(h),k=o.offsetX+a/2,v=o.offsetY+i/2,L=f*b*c,w=-f*P*u,S=p*P*c,C=p*b*u,T=f*(k-b*c*(a/2)+P*u*(i/2)-l.bboxX),N=p*(v-P*c*(a/2)-b*u*(i/2)-l.bboxY);return Object.freeze({a:fe(L*m),b:fe(S*m),c:fe(w*g),d:fe(C*g),e:fe(T),f:fe(N)})}function gM(e){let n=b0(e);if(n)return `matrix(${Bo(n.a)}, ${Bo(n.b)}, ${Bo(n.c)}, ${Bo(n.d)}, ${Bo(n.e)}, ${Bo(n.f)})`}function Bo(e){return Number.isFinite(e)?String(e):"0"}var x0=new Map([["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"]]),S0=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),R0=Object.freeze({left:0,top:0,right:0,bottom:0});function kg(e){let n=e.picture,t=null;if(!n){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";t=x0.get(o)??"graphic";break}t===null&&(t="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:n?.crop??R0,transform:n?.transform??S0,placeholderGraphicKind:n?null:t,vectorShape:e.vectorShape})}var ht=12700;function un(e){return e/ht}function rr(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*ht*72)return null;let n=e/ht;return Number.isFinite(n)?n:null}function Et(e){let n=un(e.inlineDistancesEmu.left),t=un(e.inlineDistancesEmu.right),r=un(e.inlineDistancesEmu.top),o=un(e.inlineDistancesEmu.bottom),a=un(e.effectExtentEmu.left),i=un(e.effectExtentEmu.right),l=un(e.effectExtentEmu.top),s=un(e.effectExtentEmu.bottom),d=un(e.extentEmu.cx),c=un(e.extentEmu.cy);return Object.freeze({distL:n,distR:t,distT:r,distB:o,effectL:a,effectR:i,effectT:l,effectB:s,width:d,height:c,totalWidth:n+a+d+i+t,lineContribution:r+l+c+s+o})}function Og(e,n,t){let r=Math.max(t.distT+t.effectT,e-t.height),o=Math.max(n,r-t.effectT+t.height+t.effectB+t.distB),a=r+t.height+t.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function Il(e,n,t){if(Math.abs(n)<1e-4&&Math.abs(t)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+n,y:a.y+t}),o=a=>Object.freeze({x:a.x+n,y:a.y+t});return Object.freeze({...e,contentBounds:r(e.contentBounds),paintBounds:r(e.paintBounds),hitBounds:r(e.hitBounds),transformedCorners:Object.freeze(e.transformedCorners.map(o)),clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function vl(e,n,t){return Math.abs(n)<1e-4&&Math.abs(t)<1e-4?e:Object.freeze({...e,x:e.x+n,y:e.y+t,advanceStart:e.advanceStart+n,advanceEnd:e.advanceEnd+n,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+n,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+n,y:e.hitBounds.y+t}),geometry:Il(e.geometry,n,t)})}function Mc(e,n){return e.length===0?e:e.map(t=>{let r=t.geometry.effectInsets.bottom,o=n-t.height-r,a=o-t.y;return Math.abs(a)<1e-4&&t.baselineOffset===n?t:Object.freeze({...t,y:o,baselineOffset:n,geometry:Il(t.geometry,0,a),paintBounds:Object.freeze({...t.paintBounds,y:t.paintBounds.y+a}),hitBounds:Object.freeze({...t.hitBounds,y:t.hitBounds.y+a})})})}function Lc(e,n){let t=Math.max(e.x,n.x),r=Math.max(e.y,n.y),o=Math.min(e.x+e.width,n.x+n.width),a=Math.min(e.y+e.height,n.y+n.height);return o<=t||a<=r?Object.freeze({x:t,y:r,width:0,height:0}):Object.freeze({x:t,y:r,width:o-t,height:a-r})}function Tl(e,n){let t=Lc(e.paintBounds,n),r=t.width>0&&t.height>0?t:Object.freeze({...t}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=Il(e.geometry,o,a);return Object.freeze({...e,paintBounds:t,hitBounds:r,geometry:Pl(i,n)})}var Tg=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),Cg=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function yt(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function Bg(e,n){return !(!n.layoutInCell||n.cellBox===null||!Number.isFinite(n.cellBox.height)||n.cellBox.height<=0||!Number.isFinite(n.cellBox.width)||n.cellBox.width<=0)}function Mg(e,n){if(Bg(e,n)){let s=n.cellBox;if(!s)return null;let{x:d,width:c}=s;switch(e){case "page":case "column":case "margin":case "leftMargin":return {left:d,right:d+c,center:d+c/2};case "rightMargin":return {left:d,right:d+c,center:d+c/2};case "character":return {left:n.anchorCharacterX,right:n.anchorCharacterX,center:n.anchorCharacterX};case "insideMargin":return yt(n)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return yt(n)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let t=-n.marginLeft,r=n.contentWidth+n.marginRight,o=0,a=n.contentWidth,i=n.columnBox.x,l=n.columnBox.x+n.columnBox.width;switch(e){case "page":return {left:t,right:r,center:(t+r)/2};case "margin":return {left:o,right:a,center:o+n.contentWidth/2};case "column":return {left:i,right:l,center:i+n.columnBox.width/2};case "character":return {left:n.anchorCharacterX,right:n.anchorCharacterX,center:n.anchorCharacterX};case "leftMargin":return {left:t,right:t,center:t};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return yt(n)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return yt(n)?{left:r,right:r,center:r}:{left:t,right:t,center:t};default:return null}}function Lg(e,n){if(Bg(e,n)){let s=n.cellBox;if(!s)return null;let{y:d,height:c}=s;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:d,bottom:d+c,center:d+c/2};case "paragraph":return {top:n.paragraphBox.y,bottom:n.paragraphBox.y+n.paragraphBox.height,center:n.paragraphBox.y+n.paragraphBox.height/2};case "line":return {top:n.anchorLineBox.y,bottom:n.anchorLineBox.y+n.anchorLineBox.height,center:n.anchorLineBox.y+n.anchorLineBox.height/2};case "insideMargin":return yt(n)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return yt(n)?{top:d+c,bottom:d+c,center:d+c}:{top:d,bottom:d+c,center:d+c/2};default:return null}}let t=-n.contentInsetTop,r=n.contentBandHeight,o=t+n.pageHeight-n.marginBottom,a=r+n.contentInsetBottom,i=0,l=n.contentHeight;switch(e){case "page":return {top:t,bottom:a,center:(t+a)/2};case "margin":return {top:i,bottom:l,center:i+n.contentHeight/2};case "paragraph":return {top:n.paragraphBox.y,bottom:n.paragraphBox.y+n.paragraphBox.height,center:n.paragraphBox.y+n.paragraphBox.height/2};case "line":return {top:n.anchorLineBox.y,bottom:n.anchorLineBox.y+n.anchorLineBox.height,center:n.anchorLineBox.y+n.anchorLineBox.height/2};case "topMargin":return {top:t,bottom:t,center:t};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return yt(n)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return yt(n)?{top:a,bottom:a,center:a}:{top:t,bottom:t,center:t};default:return null}}function Fg(e){return e===null?0:rr(e)}function w0(e,n,t){let r=yt(t);if(t.layoutInCell&&t.cellBox&&Number.isFinite(t.cellBox.width)&&t.cellBox.width>0){let{x:o,width:a}=t.cellBox;return e==="inside"?r?o:o+a-n:e==="outside"?r?o+a-n:o:null}return e==="inside"?r?0:t.contentWidth-n:e==="outside"?r?t.contentWidth-n:0:null}function P0(e,n,t){let r=yt(t),o=t.contentBandHeight;if(t.layoutInCell&&t.cellBox&&Number.isFinite(t.cellBox.height)&&t.cellBox.height>0){let{y:a,height:i}=t.cellBox;return e==="inside"?r?a:a+i-n:e==="outside"?r?a+i-n:a:null}return e==="inside"?r?0:o-n:e==="outside"?r?o-n:0:null}function I0(e,n,t,r,o){let a=Mg(e,o);if(!a)return null;let i=Fg(t);if(i===null)return null;if(n==="left")return a.left+i;if(n==="center")return a.center-r/2+i;if(n==="right")return a.right-r+i;if(n==="inside"||n==="outside"){let l=w0(n,r,o);if(l!==null)return l+i}return a.left+i}function v0(e,n,t,r,o){let a=Lg(e,o);if(!a)return null;let i=Fg(t);if(i===null)return null;if(n==="top")return a.top+i;if(n==="center")return a.center-r/2+i;if(n==="bottom")return a.bottom-r+i;if(n==="inside"||n==="outside"){let l=P0(n,r,o);if(l!==null)return l+i}return a.top+i}function Wa(e){let n=e.contentBandHeight;return Object.freeze({x:-e.marginLeft,y:-e.contentInsetTop,width:e.pageWidth,height:n+e.contentInsetTop+e.contentInsetBottom})}function Fc(e,n){let t=Et(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=rr(r.simplePosition.xEmu),x=rr(r.simplePosition.yEmu);return Object.freeze(g===null||x===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:g-n.marginLeft,y:x-n.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let l=r.horizontal.relativeFrom,s=r.vertical.relativeFrom,d=Mg(l,n),c=Lg(s,n),u=d?.left??0,f=c?.top??0;if(!Tg.has(l)||!Cg.has(s))return Object.freeze({x:0,y:0,horizontalFrame:Tg.has(l)?l:a,verticalFrame:Cg.has(s)?s:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=I0(l,r.horizontal.align,r.horizontal.offsetEmu,t.width,n),m=v0(s,r.vertical.align,r.vertical.offsetEmu,t.height,n);return Object.freeze(p===null||m===null?{x:0,y:0,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:m,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function T0(e){let n=e.input.projection,t=n.anchor,r=Et(n),o=Lo({projection:n,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?Lc(o.paintBounds,e.clipRegion):o.paintBounds,i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"anchoredDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.anchorParagraphId,anchorParagraphId:e.anchorParagraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:e.resolved.x,y:e.resolved.y,width:r.width,height:r.height,horizontalFrame:e.resolved.horizontalFrame,verticalFrame:e.resolved.verticalFrame,horizontalFrameOrigin:e.resolved.horizontalFrameOrigin,verticalFrameOrigin:e.resolved.verticalFrameOrigin,behindDocument:t?.behindDocument??false,allowOverlap:t?.allowOverlap??true,layoutInCell:t?.layoutInCell??true,relativeHeight:t?.relativeHeight??0,wrap:n.wrap==="inline"?"inFront":n.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?Pl(o,e.clipRegion):o,resource:e.input.resource,accessibility:cb$1(n),...kg(n)})}function Ln(e,n){if(e.kind!=="paragraph")return [];let t=[],r=(o,a)=>{if(o.kind==="drawing"){let i=n.projectionForAtom?.(o.id)??n.project(o);i?.kind==="anchored"&&t.push({atomId:o.id,projection:i,revisions:a});return}if(bb$1(o)){let i=n.projectionForAtom?.(o.id)??null;i?.kind==="anchored"&&t.push({atomId:o.id,projection:i,revisions:a});return}if("children"in o){let i=Rr(o)?Po(o):null,l=i?Io(a,i):a;for(let s of o.children)r(s,l);}};for(let o of e.children)r(o,gl);return Object.freeze(t)}function Un(e){let n=new Map;if(e.kind!=="paragraph")return n;let t=0,r=a=>{if(a.kind==="drawing"||bb$1(a)){n.set(a.id,t),t+=1;return}if(a.kind==="textValue"){t+=a.value.length;return}if("children"in a)for(let i of a.children)r(i);},o=a=>{if(a.kind==="run"){for(let i of a.children)r(i);return}if(a.kind==="hyperlink"||Rr(a))for(let i of a.children)o(i);};for(let a of e.children)o(a);return n}function C0(e,n,t){for(let o of e.spans){if(n<o.range.start)break;if(n<o.range.end){if(t&&o.text!==void 0&&o.style!==void 0){let l=n-o.range.start;return o.box.x+_n(o.text.slice(0,l),o.style,t)}let a=o.range.end-o.range.start;if(a<=0)return o.box.x;let i=n-o.range.start;return o.box.x+o.box.width*i/a}if(n===o.range.end)return t&&o.text!==void 0&&o.style!==void 0?o.box.x+_n(o.text,o.style,t):o.box.x+o.box.width}let r;for(let o of e.spans)o.range.end<=n&&(r=o);return r?t&&r.text!==void 0&&r.style!==void 0?r.box.x+_n(r.text,r.style,t):r.box.x+r.box.width:e.box.x}function k0(e,n){let t=e.range.start;for(let r of e.spans)r.range.end<=n&&(t=r.range.end);return t}function Ec(e,n,t){if(!(Math.abs(t)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===n&&(e[r]=Object.freeze({...o,y:o.y+t,geometry:Il(o.geometry,0,t),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+t}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+t})}));}}function or(e){let n=Ln(e.paragraph,e.drawingLayout);if(n.length===0)return [];let t=Un(e.paragraph),r=e.displayMode??We,o=[];for(let a of n){let i=a.projection;if(i.hidden||!Oe(a.revisions,r))continue;let l=t.get(a.atomId);if(l===void 0||e.fragmentRange&&(l<e.fragmentRange.start||l>=e.fragmentRange.end))continue;let s=e.lines.find(h=>l>=h.range.start&&l<h.range.end);if(!s)continue;let d=i.anchor?.layoutInCell??true,u=i.position?.horizontal.relativeFrom==="character"?k0(s,l):l,f=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:s.box,anchorCharacterX:C0(s,u,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:d}),p=Fc(i,f),g=d&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0?e.cellBox:Wa(e.frameBase),x=T0({input:Object.freeze({drawingNodeId:a.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:i,resource:e.drawingLayout.resourceOf(i)}),anchorParagraphId:e.paragraphId,start:u,resolved:p,clipRegion:g,revisions:a.revisions,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(a.atomId)}:{},...i.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(i)}:{}});o.push(x);}return Object.freeze(o)}function Eg(e){let n=Et(e.input.projection),t=e.slotX+n.distL+n.effectL,r=Lo({projection:e.input.projection,anchorX:t,anchorY:e.y,extentWidth:n.width,extentHeight:n.height}),o=e.contentTop!==void 0&&e.contentBottom!==void 0?Object.freeze({x:e.contentLeft,y:e.contentTop,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,e.contentBottom-e.contentTop)}):Object.freeze({x:e.contentLeft,y:r.paintBounds.y,width:Math.max(0,e.contentRight-e.contentLeft),height:r.paintBounds.height}),a=Lc(r.paintBounds,o),i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"inlineDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.paragraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:t,y:e.y,width:n.width,height:n.height,distL:n.distL,distR:n.distR,distT:n.distT,distB:n.distB,advanceStart:e.slotX,advanceEnd:e.slotX+n.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:Pl(r,o),resource:e.input.resource,accessibility:cb$1(e.input.projection),...kg(e.input.projection),...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{}})}var O0=256,Dc=8,vr=8,Fo=class extends Error{name="DrawingExclusionConvergenceError";constructor(n="drawing exclusion reflow did not converge"){super(n);}};function B0(e,n){let t=Math.max(1,n.columnCount);if(t<=1)return 0;let r=e.x+e.width/2;if(n.columnLefts&&n.columnWidths&&n.columnLefts.length===t){for(let i=0;i<t;i+=1){let l=n.columnLefts[i],s=l+n.columnWidths[i];if(r>=l-.001&&r<s+.001)return i}return t-1}let o=n.columnGapPt,a=(n.contentWidth-o*(t-1))/t;for(let i=0;i<t;i+=1){let l=i*(a+o),s=l+a;if(r>=l-.001&&r<s+.001)return i}return t-1}function Ac(e){return e.behindDocument?"behind":"inFront"}function Ag(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function M0(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 L0(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function _c(e){let n=M0(e.projection.wrap);if(!n||!e.projection.wrapGeometry)return null;let t=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return Rg({mode:n,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:t.distancesEmu,polygonEmu:t.polygon,crop:e.projection.picture?.crop??{},transform:e.projection.picture?.transform??{rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:{x:0,y:0},extentEmu:{cx:0,cy:0}},extentWidthPt:e.geometry.contentBounds.width,extentHeightPt:e.geometry.contentBounds.height,textSide:n==="square"?L0(e.projection.wrap):t.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function Hc(e){if(e.mode==="topAndBottom"||e.mode==="square")return kc(e.contentBounds,e.effectInsets,e.wrapDistances);let n=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)n.push(o.y);let t=Math.min(...n)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...n)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:t,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-t)})}function F0(e){if(e.drawing.behindDocument||!Ag(e.drawing.wrap))return null;let n=e.yOverride??e.drawing.y,t=_c({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:n});return t?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,sourceOrder:e.sourceOrder,paintLayer:Ac(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:n,verticalBand:Hc(t),input:t}):null}function Dg(e,n){let t=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=n.sourceOrder??Number.MAX_SAFE_INTEGER;return t!==r?t-r:e.drawingNodeId.localeCompare(n.drawingNodeId)}function E0(e,n){let t=Ac(e),r=Ac(n);return t!==r?t==="behind"?-1:1:e.relativeHeight!==n.relativeHeight?e.relativeHeight-n.relativeHeight:Dg(e,n)}function _g(e){return Object.freeze([...e].sort(E0))}function Nc(e,n){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function zc(e,n){if(Math.abs(n)<=1e-4)return e;let t=e.geometry;return Object.freeze({...e,y:e.y+n,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+n}),geometry:Object.freeze({...t,contentBounds:Object.freeze({...t.contentBounds,y:t.contentBounds.y+n}),paintBounds:Object.freeze({...t.paintBounds,y:t.paintBounds.y+n}),hitBounds:Object.freeze({...t.hitBounds,y:t.hitBounds.y+n}),transformedCorners:t.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+n})),clipPolygon:t.clipPolygon?t.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+n})):null})})}function Hg(e,n){let t=n.maxAttempts??O0,r=[...e].sort(Dg),o=[],a=[],i=[];for(let l of r){if(l.allowOverlap){o.push(l);continue}let s=l,d=0;for(;d<t&&o.some(g=>Nc(g.paintBounds,s.paintBounds));){let p=o.find(g=>Nc(g.paintBounds,s.paintBounds)),m=p.paintBounds.y+p.paintBounds.height-s.paintBounds.y+.001;s=zc(s,m),d+=1;}let c=o.some(f=>Nc(f.paintBounds,s.paintBounds)),u=s.paintBounds.y+s.paintBounds.height>n.pageBottom+.001;if(c||u){a.push(s),i.push(s.drawingNodeId);continue}o.push(s);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}function Eo(e,n,t,r){let o=[{start:t,end:r}];for(let a of n){let i=a.verticalBand;if(e<i.y||e>=i.y+i.height)continue;let l=Sg(e,a.input),s=[];for(let d of o)for(let c of l){let u=Math.max(d.start,c.start),f=Math.min(d.end,c.end);f>u+1e-6&&s.push(Object.freeze({start:u,end:f}));}if(o=s,o.length===0)break}return Object.freeze(o)}function zg(e,n){for(let t of n)if(e>=t.start-1e-6&&e<t.end-1e-6)return Math.max(0,t.end-e);return 0}function N0(e,n){for(let t of n)if(t.end>e+1e-6)return t;return null}function jc(e,n){let t=N0(e,n);if(!t)return null;let r=Math.max(e,t.start),o=t.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function A0(e,n,t){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+n,y:r.y+t}),contentLeft:e.contentLeft+n,contentRight:e.contentRight+n,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+n,y:o.y+t}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+n,y:o.y+t}))}:{}})}function Gc(e,n){return Object.freeze({...e,layoutFallback:n})}function jg(e,n,t,r){return e.length===0?e:Object.freeze(e.map(o=>{let a=o.verticalBand,i=o.input;return Object.freeze({...o,y:o.y-t,verticalBand:Object.freeze({...a,x:a.x-n,y:a.y-t}),input:Object.freeze({...A0(i,-n,-t),contentLeft:r?.left,contentRight:r?.right??i.contentRight-n})})}))}function Gg(e,n,t){return Object.freeze(e.filter(r=>{let o=t(r.anchorParagraphId);return o===void 0?r.sourceOrder<=n:o<=n}))}function Wg(e){let n=Ln(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Un(e.paragraph),r=e.displayMode??We,o=Math.max(1,e.contentRight-e.contentLeft),a=[];for(let i of n){if(!Oe(i.revisions,r)||i.projection.anchor?.behindDocument||!Ag(i.projection.wrap)||i.projection.wrap==="topAndBottom")continue;let l=t.get(i.atomId);if(l===void 0)continue;let s=e.anchorLineTopByModelStart.get(l);if(s===void 0)continue;let d=Object.freeze({x:e.contentLeft,y:s,width:o,height:14}),c=e.anchorCellBox!=null,u=Fc(i.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+o,pageHeight:792,marginLeft:e.contentLeft,marginRight:0,marginBottom:0,contentInsetTop:0,contentInsetBottom:0,contentWidth:o,contentHeight:648,contentBandHeight:648,paragraphBox:d,anchorLineBox:d,anchorCharacterX:e.contentLeft,columnBox:d,cellBox:c?e.anchorCellBox:null,layoutInCell:c,ownerPartName:e.drawingLayout.ownerPartName,storyKind:"body"}),f=e.paragraphStartY+s,p=Et(i.projection),m=Lo({projection:i.projection,anchorX:u.x,anchorY:f,extentWidth:p.width,extentHeight:p.height}),g=_c({projection:i.projection,geometry:m,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:u.x,anchorY:f});g&&a.push(Object.freeze({drawingNodeId:i.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:l,sourceOrder:e.sourceOrderOf?.(i.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:i.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:i.projection.anchor?.relativeHeight??0,allowOverlap:i.projection.anchor?.allowOverlap??true,columnIndex:0,y:f,verticalBand:Hc(g),input:g}));}return a.sort((i,l)=>i.sourceOrder-l.sourceOrder),Object.freeze(a)}function Cl(e){let n=Ln(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Un(e.paragraph),r=e.displayMode??We,o=[];for(let a of n){if(!Oe(a.revisions,r)||a.projection.anchor?.behindDocument||a.projection.wrap!=="topAndBottom")continue;let i=t.get(a.atomId);if(i===void 0)continue;let l=e.anchorLineTopByModelStart.get(i);if(l===void 0)continue;let s=e.paragraphStartY+l,d=Et(a.projection),c=Lo({projection:a.projection,anchorX:e.contentLeft,anchorY:s,extentWidth:d.width,extentHeight:d.height}),u=_c({projection:a.projection,geometry:c,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:s});u&&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:e.columnIndex??0,y:s,verticalBand:Hc(u),input:u}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}var D0=8;function _0(e,n,t,r){return e<r&&n>t}function xt(e,n,t){if(n<=0||t.length===0)return 0;let r=0;for(let o=0;o<D0;o+=1){let a=e+r,i=a+n,l=a,s=false;for(let c of t){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,f=u+c.verticalBand.height;_0(a,i,u,f)&&(s=true,l=Math.max(l,f));}if(!s)break;let d=l-e;if(d<=r+.001)break;r=d;}return r}function H0(e){return e.map(n=>`${n.start.toFixed(3)}-${n.end.toFixed(3)}`).join(",")}function z0(e){let n=e.contentBounds,t=e.wrapDistances,r=e.effectInsets,o=e.polygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"",a=e.clipPolygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"";return [e.mode,e.textSide,n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),t.top.toFixed(3),t.right.toFixed(3),t.bottom.toFixed(3),t.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function bt(e){return e.length===0?"":e.map(n=>{let t=n.verticalBand,r=n.y+n.input.contentBounds.height/2,o=Eo(r,[n],n.input.contentLeft,n.input.contentRight);return [n.drawingNodeId,String(n.sourceOrder),String(n.columnIndex),n.y.toFixed(3),t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),z0(n.input),H0(o)].join("|")}).join(`
|
|
8
|
+
`)}function Wc(e,n,t,r,o,a){let i=[];for(let l of e){let s=n.projectionForAtom?.(l.drawingNodeId);if(!s)continue;let d=l.sourceOrder??o?.(l.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?B0(l,a):0,u=F0({drawing:l,projection:s,sourceOrder:d,contentLeft:t,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((l,s)=>l.sourceOrder-s.sourceOrder),Object.freeze(i)}function kl(e,n,t,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:t}),i=new Map;for(let l of e){let s=l.anchoredDrawings??[],d=Wc(s,n,0,t,r,a);d.length>0&&i.set(l.index,d);}return i}var Ng=new WeakMap;function j0(e){return e?`${e.columnCount};${e.columnGapPt};${e.contentWidth};${(e.columnLefts??[]).join(",")};${(e.columnWidths??[]).join(",")}`:""}function Vc(e,n,t,r,o,a){let i=j0(a),l=Ng.get(e);if(l&&l.drawingLayout===n&&l.drawingLayoutEpoch===t&&l.contentWidth===r&&l.drawingSourceOrder===o&&l.columnToken===i)return l.zones;let s=kl(e,n,r,o?d=>o.get(d):void 0,a);return Ng.set(e,{drawingLayout:n,drawingLayoutEpoch:t,contentWidth:r,drawingSourceOrder:o,columnToken:i,zones:s}),s}function Ol(e,n){if(e.size!==n.size)return false;for(let[t,r]of e){let o=n.get(t);if(!o||bt(r)!==bt(o))return false}return true}function Bl(e){return e.size===0?"":[...e.entries()].sort(([n],[t])=>n-t).map(([n,t])=>`${n}:${bt(t)}`).join(`
|
|
9
|
+
`)}function $c(e,n,t,r=0){return (t.length>0?xt(e,n.height,t):n.exclusionSkipBefore??0)+Math.max(0,n.height-n.trailingSpacing)+r}function Vg(e){return Object.freeze({spans:e.spans.map(n=>Object.freeze({...n,box:Object.freeze({...n.box})})),drawings:e.drawings.map(n=>Object.freeze({...n,paintBounds:Object.freeze({...n.paintBounds}),hitBounds:Object.freeze({...n.hitBounds})})),start:e.start,end:e.end,width:e.width,height:e.height,baseline:e.baseline,leading:e.leading,trailingSpacing:e.trailingSpacing,...e.pageBreakAfter?{pageBreakAfter:true}:{},...e.columnBreakAfter?{columnBreakAfter:true}:{},...e.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{},...e.anchorRevisions?{anchorRevisions:Object.freeze(e.anchorRevisions)}:{}})}var G0=.001;function Tn(e){return xo(e)}var Ll=new Set(["-","\u2010","\u2013","\u2014"]);function $g(e){let n=[];for(let t=0;t<e.length;t+=1){let r=e[t];r===" "?(t>0&&n[n.length-1]!==t&&n.push(t),n.push(t+1)):(r===" "||Ll.has(r)&&t>0&&e[t-1]!==" "&&t+1<e.length&&e[t+1]!==" "&&!Ll.has(e[t+1]))&&n.push(t+1);}return n[n.length-1]!==e.length&&n.push(e.length),n}function W0(e,n,t){for(let r=n;r<e.length;r+=1){let o=e[r];if(o.inlineDrawing)return true;let a=r===n?t:0;for(let i=a;i<o.text.length;i+=1){let l=o.text[i];if(l===`
|
|
10
|
+
`||l===Cc$1)return false;if(l!==" "&&l!==" ")return true}}return false}function V0(e,n,t,r){let o=0,a=0,i=false;for(let l=n;l<e.length;l+=1){let s=e[l],d=l===n?t:0;for(let c=d;c<s.text.length;){let u=s.text[c];if(u===" "||u===`
|
|
11
|
+
`||u===Cc$1)return {width:o,decimalOffset:i?a:o};let f=c+1,p=s.text.slice(c,f),m=r.measure(er(p,s.style),s.style);!i&&u==="."?i=true:i||(a+=m),o+=m,c=f;}}return {width:o,decimalOffset:i?a:o}}function $0(e,n,t,r){let o=e.relativeTo==="indent"||!r?{left:n,right:t}:r;return {positionPt:e.alignment==="right"?o.right:e.alignment==="center"?(o.left+o.right)/2:o.left,alignment:e.alignment,...e.leader?{leader:e.leader}:{}}}var Ml=31680;function Va(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let n=Number(e);return Number.isFinite(n)?n>Ml?jd$1(Ml):n<-Ml?jd$1(-Ml):jd$1(n):null}function $a(e){let n=0,t=0;for(let r of e){if(r.localName!=="ind")continue;let o=r.attributes?.left??r.attributes?.start,a=r.attributes?.right??r.attributes?.end,i=Va(o),l=Va(a);i!==null&&(n=ld(i)),l!==null&&(t=ld(l));}return {left:n,right:t}}function Xg(e){let n="left";for(let t of e)if(t.localName==="jc")switch(t.attributes?.val){case "center":n="center";break;case "right":case "end":n="right";break;case "both":case "distribute":n="both";break;default:n="left";}return n}function X0(e){return e.endsWith(" ")}function Y0(e,n){let t=e.range.end-e.range.start;if(t<=0||e.text===" "||e.projected||e.text.length!==t)return Object.freeze([0,e.box.width]);let r=[0];for(let o=1;o<=e.text.length;o+=1)r.push(_n(e.text.slice(0,o),e.style,n));return Object.freeze(r)}function No(e,n){return e.map(t=>t.caretEdges?t:{...t,caretEdges:Y0(t,n)})}function Fl(e,n,t,r,o,a,i){if(e.length===0)return e;if(o==="left")return No(e,n);let l=e[e.length-1],s=l.text.replace(/\s+$/,""),d=s===l.text?0:l.box.width-_n(s,l.style,n),c=i??l.box.x-t+l.box.width-d,u=r-c;if(u<=0)return No(e,n);if(o==="both"){if(a)return No(e,n);let p=[];for(let h=1;h<e.length;h+=1)X0(e[h-1].text)&&p.push(h);if(p.length===0)return No(e,n);let m=u/p.length,g=new Set(p),x=0;return No(e.map((h,b)=>(g.has(b)&&(x+=m),x===0?h:{...h,box:{...h.box,x:h.box.x+x}})),n)}let f=o==="center"?u/2:u;return No(e.map(p=>({...p,box:{...p.box,x:p.box.x+f}})),n)}function El(e,n){return n===0||e.length===0?e:e.map(t=>vl(t,n,0))}function Nl(e,n,t,r,o,a,i,l=[],s=mo,d,c,u){let f=i!==null&&a?a.get(i):void 0;if(f)return f;let p=u?.lineSpacing??fo,m=u?.firstLineOffset??0,g=[],x=xl(e,l,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??We,g,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false),h=Math.max(0,u?.startOffset??0),b=x.flatMap(H=>{if(H.end<=h)return [];if(H.start>=h)return [H];let I=h-H.start;return [{...H,text:H.projected?H.text:H.text.slice(I),start:h}]}),P=lg(o,u?.equationCacheToken),k=H=>H.equation?P(H.equation,H.style):null;if(b.length===0&&u?.suppressEmptyPlaceholderLine)return [];let v=H=>({...H.revisions===void 0?{}:{revisions:H.revisions},...H.fieldAtom===void 0?{}:{fieldAtom:H.fieldAtom}}),L=u?.markRunProperties??l,w=L.length===0?mt:Ae(L,u?.themeFonts),S=t+r,C=u?.contentLeft??t,T=u?.contentRight??S,N=u?.contentOriginX??0,M=[],y={spans:[],start:h,end:h,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},G=false,D=new Map,F=u?.displayMode??We,E=(()=>{let H=new Set;if(!u?.inlineDrawingLayout)return H;let I=Un(e);for(let V of Ln(e,u.inlineDrawingLayout)){if(!Oe(V.revisions,F)||V.projection.wrap!=="topAndBottom")continue;let te=I.get(V.atomId);te!==void 0&&H.add(te);}return H})(),B=(()=>{let H=new Set;if(!u?.inlineDrawingLayout)return H;let I=Un(e);for(let V of Ln(e,u.inlineDrawingLayout)){if(!Oe(V.revisions,F)||V.projection.anchor?.behindDocument||V.projection.wrap==="topAndBottom"||V.projection.wrap==="inline"||V.projection.wrap==="behind"||V.projection.wrap==="inFront")continue;let te=I.get(V.atomId);te!==void 0&&H.add(te);}return H})(),R=[...(u?.pageExclusionZones??[]).filter(H=>H.anchorParagraphId===n).map(H=>H.anchorModelStart),...E,...B],W=(()=>{let H=new Map;if(R.length===0)return H;let I=0,V=0,te=0,re=()=>te===0?m:0,Z=()=>Math.max(1,r-re()),ue=ce=>{I=ce,V=0,te+=1;};for(let ce of b){let ae=k(ce);if(ae){let Pe=ae.geometry.box.width;V>0&&V+Pe>Z()&&ue(ce.start),R.includes(ce.start)&&H.set(ce.start,I),V+=Pe;continue}if(ce.inlineDrawing){let Pe=Et(ce.inlineDrawing.projection).totalWidth;V>0&&V+Pe>Z()&&ue(ce.start),R.includes(ce.start)&&H.set(ce.start,I),V+=Pe;continue}if(ce.text===`
|
|
12
|
+
`||ce.text===Cc$1){ue(ce.end);continue}let $e=0;for(let Pe of $g(ce.text)){let He=ce.text.slice($e,Pe);if(He.length===0)continue;let se=ce.style,de=o.measure(He,se),Le=ce.start+$e;V>0&&V+de>Z()&&ue(Le),R.includes(Le)&&H.set(Le,I),R.includes(ce.start)&&H.set(ce.start,I),V+=de,$e=Pe;}}for(let ce of R)H.has(ce)||H.set(ce,I);return H})();for(let H of B){let I=W.get(H);I!==void 0&&D.set(H,I);}let A=H=>{if(H.anchorParagraphId!==n)return true;let I=W.get(H.anchorModelStart);return I!==void 0&&y.start>=I||y.end>=H.anchorModelStart},z=()=>{let H=u?.pageExclusionZones?.filter(te=>!(!A(te)||te.anchorParagraphId===n&&(te.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],I=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&D.size>0?Wg({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:C,contentRight:T,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:D,anchorCellBox:u.anchorCellBox,displayMode:F}):Object.freeze([]),V=u?.inlineDrawingLayout&&D.size>0?Cl({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:C,contentRight:T,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:D,displayMode:F}):Object.freeze([]);return Object.freeze([...H,...I,...V])},q=()=>M.length===0?m:0,_=()=>N+t+q(),X=()=>Math.max(1,r-q()),U=()=>M.reduce((H,I)=>H+I.height+(I.exclusionSkipBefore??0),0),j=()=>(u?.paragraphStartY??0)+U(),K=H=>{E.has(H)&&D.set(H,U());},pe=()=>{if(G)return;let H=z();if(H.length===0||y.spans.length>0||y.drawings.length>0)return;let I=o.lineMetrics(w),V=xt(j(),y.height>0?y.height:I.height,H);V>.001&&(G=true,y.exclusionSkipBefore=V);},Fe=()=>j()+(y.exclusionSkipBefore??0)+.001,Ie=()=>{let H=z();if(H.length===0)return true;pe();let I=Eo(Fe(),H,C,T),V=_()+y.width,te=jc(V,I);return te?(te.x>V+.001&&(y.width=te.x-_()),true):false},me=()=>{let H=X(),I=z();if(I.length===0)return H;if(pe(),!Ie())return 0;let V=Eo(Fe(),I,C,T),te=_()+y.width,re=zg(te,V);return re<=.001?0:Math.min(H,y.width+re)},ge=()=>Math.max(0,me()-y.width),Be=()=>{let H=z();if(H.length===0||!H.some(Z=>Z.anchorParagraphId!==n||y.end>Z.anchorModelStart))return false;let V=Eo(Fe(),H,C,T),te=_()+y.width,re=false;for(let Z of V){if(!re){te>=Z.start-1e-6&&te<Z.end-1e-6&&(re=true);continue}if(Z.end-Z.start>.001)return y.width=Z.start-_(),true}return false},we=H=>{if(R.length===0||H<Math.min(...R))return;let I=z().filter(ue=>ue.anchorParagraphId===n&&H>=ue.anchorModelStart);if(I.length===0)return;pe();let V=Eo(Fe(),I,C,T),te=_()+y.width,re=-1;for(let ue=0;ue<V.length;ue+=1){let ce=V[ue];if(te>=ce.start-.001&&te<ce.end-.001){re=ue;break}}if(re>=0)return;let Z=jc(te,V);Z&&Z.x>te+.001&&(y.width=Z.x-_());},Se=H=>{z().filter(V=>V.input.mode==="topAndBottom"&&V.anchorParagraphId===n&&H>=V.anchorModelStart).length!==0&&((y.spans.length>0||y.drawings.length>0)&&ve(),pe());},ye=(H,I=0)=>I>64?ge()>=H:(pe(),Ie()?H<=ge()+.001?true:y.spans.length>0||y.drawings.length>0?Be()&&H<=ge()+.001?true:(ve(),ye(H,I+1)):Be()?ye(H,I+1):true:y.spans.length>0||y.drawings.length>0?(ve(),ye(H,I+1)):true),De=(H,I)=>g.filter(V=>V.start<I&&V.end>H).map(V=>({start:Math.max(V.start,H),end:Math.min(V.end,I)})),le=-1,_e=0,Ze=0,be="",sn=(H,I)=>{let V=o.lineMetrics(H),te=Og(V.baseline,y.height||V.height,I);return y.height===0?(y.height=te.lineHeight,y.baseline=te.baseline):(te.lineHeight>y.height&&(y.height=te.lineHeight),y.baseline=Math.max(y.baseline,te.baseline)),{extentTopY:te.extentTopY}},En=()=>{if(y.drawings.length===0)return;y.spans.length===0&&(y.baseline=Math.max(y.baseline,...y.drawings.map(I=>I.y+I.height)));let H=Mc(y.drawings,y.baseline);y.drawings.splice(0,y.drawings.length,...H),y.baseline=Math.max(y.baseline,...y.drawings.map(I=>I.y+I.height));},dn=()=>{if(y.drawings.length===0)return;let H=Mc(y.drawings,y.baseline);y.drawings.splice(0,y.drawings.length,...H);},wt=H=>{let I=0;for(let V of y.spans)I=Math.max(I,o.lineMetrics(V.style).height);return I>0?I:H},Pt=()=>{if(y.drawings.length===0)return;let H=Math.max(0,...y.drawings.map(I=>I.y+I.height+I.distB));y.height=Math.max(y.height,H);},cn=()=>{En(),Pt();},et=()=>{if(!(y.spans.length<2))for(let H=1;H<y.spans.length;H+=1){let I=y.spans[H-1],V=y.spans[H],te=V.box.x-(I.box.x+I.box.width);te<=.001||y.drawings.some(Z=>Z.start>=I.range.end&&Z.start<V.range.start)||(y.spans[H]={...V,wrapAdvanceBefore:te});}},ve=H=>{let I=o.lineMetrics(w),V=y.baseline;y.height===0?(y.height=I.height,y.baseline=I.baseline,V=I.baseline):H?.includeParagraphMark&&(y.height=Math.max(y.height,I.height)),cn();let te=y.height,re=p.rule==="auto"&&y.drawings.length>0,Z=re?wt(I.height):te,ue=qd(p,Z,y.baseline);re||(y.baseline=ue.baseline),y.leading=Math.max(0,y.baseline-V),y.height=ue.height,dn(),p.rule!=="exact"&&Pt(),y.trailingSpacing=y.drawings.length===0&&p.rule!=="exact"?Math.max(0,ue.height-te):0,(()=>{let $e=z();if($e.length===0)return;let Pe=xt(j(),y.height,$e);Pe>.001?y.exclusionSkipBefore=Pe:delete y.exclusionSkipBefore;})(),et();let ae=De(y.start,y.end);ae.length>0&&(y.deletedRanges=ae),M.push(y),le=-1,_e=0,G=false,y={spans:[],drawings:[],start:y.end,end:y.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},pe();},nn=false;for(let H=0;H<b.length;H+=1){let I=b[H];if(I.breakKind==="column"){let re=o.lineMetrics(I.style);y.spans.push({range:{paragraphId:n,start:I.start,end:I.end},text:I.text,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:0,height:re.height},...I.link?{link:I.link}:{},...v(I)}),y.height=Math.max(y.height,re.height),y.baseline=Math.max(y.baseline,re.baseline),y.end=I.end,ve(),M[M.length-1].columnBreakAfter=true,nn=true;continue}if(I.equation){let re=k(I),Z=re.geometry.box.width;if((y.spans.length>0||y.drawings.length>0)&&y.width+Z>me()&&ve(),!ye(Z))continue;let ce=Math.max(0,y.height-y.baseline),ae=Math.max(0,re.geometry.box.height-re.geometry.baseline);y.baseline=Math.max(y.baseline,re.geometry.baseline),y.height=y.baseline+Math.max(ce,ae),y.spans.push({range:{paragraphId:n,start:I.start,end:I.end},text:"\uFFFC",props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:Z,height:re.geometry.box.height},projected:true,equation:re,...v(I)}),y.width+=Z,y.end=I.end,le=-1,be="";continue}if(I.projected&&!I.inlineDrawing&&I.text==="\uFFFC"){K(I.start),I.anchoredAtom&&I.revisions!==void 0&&Oe(I.revisions,F)&&(y.anchorRevisions=[...y.anchorRevisions??[],...I.revisions]),y.end=I.end;continue}if(I.inlineDrawing){K(I.start);let re=Et(I.inlineDrawing.projection),Z=re.totalWidth;if((y.spans.length>0||y.drawings.length>0)&&y.width+Z>me()&&ve(),!ye(Z))continue;let{extentTopY:ce}=sn(I.style,re),ae=_()+y.width;y.drawings.push(Eg({input:I.inlineDrawing,paragraphId:n,start:I.start,slotX:ae,y:ce,baseline:y.baseline,contentLeft:C,contentRight:T,...I.revisions?{revisions:I.revisions}:{}})),y.width+=Z,y.end=I.end,le=-1,be="";continue}if(I.text===Cc$1){let re=o.lineMetrics(I.style);y.spans.push({range:{paragraphId:n,start:I.start,end:I.end},text:Cc$1,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:0,height:re.height},...I.link?{link:I.link}:{},...v(I)}),y.height=Math.max(y.height,re.height),y.baseline=Math.max(y.baseline,re.baseline),y.end=I.end,ve(),M[M.length-1].pageBreakAfter=true,nn=false;continue}if(I.text===`
|
|
13
|
+
`){let re=o.lineMetrics(I.style);y.spans.push({range:{paragraphId:n,start:I.start,end:I.end},text:`
|
|
14
|
+
`,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:0,height:re.height},...I.link?{link:I.link}:{},...v(I)}),y.height=Math.max(y.height,re.height),y.baseline=Math.max(y.baseline,re.baseline),y.end=I.end,ve(),nn=true;continue}nn=false,Se(I.start),R.length>0&&I.start>=Math.min(...R)&&we(I.start);let V=o.lineMetrics(I.style),te=0;for(let re of $g(I.text)){let Z=I.text.slice(te,re);if(Z.length===0)continue;let ue=!!I.projected||!!I.positionalTab||I.end-I.start!==I.text.length,ce=ue?{paragraphId:n,start:I.start,end:I.end}:{paragraphId:n,start:I.start+te,end:I.start+re};if(Z===" "){(y.spans.length>0||y.drawings.length>0)&&y.width>=me()&&W0(b,H,re)&&ve();let Le=_()+y.width,Ke=V0(b,H,re,o),ze=I.positionalTab?$0(I.positionalTab,t,S,u?.marginExtent):null,fn=ze===null?go(s,Le,S):ze.positionPt>Le?ze:{...go(s,Le,S),...ze.leader?{leader:ze.leader}:{}},nt=ic(fn.alignment,Le,fn.positionPt,Ke.width,Ke.decimalOffset);y.spans.push({range:ce,text:" ",props:I.props,style:I.style,box:{x:Le,y:0,width:nt,height:V.height},...fn.leader?{tabLeader:fn.leader,tabLeaderAdvancePt:o.measure(tc.get(fn.leader)??".",I.style)}:{},...I.link?{link:I.link}:{},...fn.leader?{tabLeader:fn.leader}:{},...ue&&!I.positionalTab?{projected:true}:{},...I.noteNav?{noteNav:I.noteNav}:{},...v(I)}),y.width+=nt,y.height=Math.max(y.height,V.height),y.baseline=Math.max(y.baseline,V.baseline),y.end=ue?I.end:I.start+re,be=" ",te=re;continue}let ae=I.measureText??Z,$e=o.measure(er(ae,I.style),I.style),Pe=te>0||be===""||/[\s\u00a0]$/.test(be)||/^[\s\u00a0]/.test(Z)||Ll.has(be[be.length-1])&&!Ll.has(Z[0]);if(Pe&&(le=y.spans.length,_e=y.width,Ze=y.end),we(I.start+te),y.width+$e>me()+G0&&(y.spans.length>0||y.drawings.length>0))if(Pe||le<=0){if(!(Be()&&y.width+$e<=me()+.001)){if(ve(),!ye($e))continue}}else {let Le=y.spans.splice(le);y.width=_e,y.end=Ze,y.height=0,y.baseline=0;for(let Ke of y.spans){let ze=o.lineMetrics(Ke.style);y.height=Math.max(y.height,ze.height),y.baseline=Math.max(y.baseline,ze.baseline);}ve();for(let Ke of Le){let ze=o.lineMetrics(Ke.style);y.spans.push({...Ke,box:{...Ke.box,x:_()+y.width}}),y.width+=Ke.box.width,y.height=Math.max(y.height,ze.height),y.baseline=Math.max(y.baseline,ze.baseline),y.end=Ke.range.end;}le=0,_e=0;}else if(y.spans.length===0&&y.drawings.length===0&&$e>me()+.001&&!ye($e))continue;let He=Z,se=I.start+te,de=$e;if(!ue&&I.measureText===void 0)for(;y.spans.length===0&&He.length>1&&de>me();){let Le=1,Ke=He.length-1,ze=1;for(;Le<=Ke;){let Nn=Le+Ke>>1;o.measure(er(He.slice(0,Nn),I.style),I.style)<=me()?(ze=Nn,Le=Nn+1):Ke=Nn-1;}let fn=He.slice(0,ze),nt=o.measure(er(fn,I.style),I.style);y.spans.push({range:{paragraphId:n,start:se,end:se+ze},text:fn,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:nt,height:V.height},...I.link?{link:I.link}:{},...I.noteNav?{noteNav:I.noteNav}:{},...v(I)}),y.width+=nt,y.height=Math.max(y.height,V.height),y.baseline=Math.max(y.baseline,V.baseline),y.end=se+ze,ve(),He=He.slice(ze),se+=ze,de=o.measure(er(He,I.style),I.style);}y.spans.push({range:ue?ce:{paragraphId:n,start:se,end:I.start+re},text:He,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:de,height:V.height},...I.link?{link:I.link}:{},...ue&&!I.positionalTab?{projected:true}:{},...I.noteNav?{noteNav:I.noteNav}:{},...v(I)}),y.width+=de,y.height=Math.max(y.height,V.height),y.baseline=Math.max(y.baseline,V.baseline),y.end=ue?I.end:I.start+re,be=Z,te=re;}}return (y.spans.length>0||y.drawings.length>0||M.length===0||nn)&&ve({includeParagraphMark:true}),i!==null&&a&&a.set(i,M.map(Vg)),M}var _l=32,qg=4096,K0=128,U0=/[\u0000-\u001F\u007F-\u009F]/,q0={major:null,minor:null};function Cr(e){return e.kind!=="textValue"}function Ao(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Do(e,n){for(let t of e.children)if(Cr(t)&&t.localName===n)return t}function Tr(e){return !(e===void 0||e.length===0||e.length>K0||U0.test(e)||I(e))}function Z0(e){return e==="1"||e==="true"||e==="on"}function Al(e){return e.map(n=>n.attributes?{n:n.localName,a:n.attributes}:{n:n.localName})}function Xa(e){if(e){for(let n of e.children)if(Cr(n)&&(n.kind==="runProperties"||n.localName==="rPr"))return n}}function Hl(e){if(e){for(let n of e.children)if(Cr(n)&&(n.kind==="paragraphProperties"||n.localName==="pPr"))return n}}var Yg=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function _o(e){return e.some(n=>Yg.has(n.localName))?e.filter(n=>!Yg.has(n.localName)):e}function J0(e){let n=Do(e,"docDefaults");if(!n)return {run:[],paragraph:[],paragraphNode:void 0};let t=Do(n,"rPrDefault"),r=Do(n,"pPrDefault"),o=Xa(t),a=Hl(r);return {run:_o(Tn(o)),paragraph:_o(Tn(a)),paragraphNode:a}}function Q0(e){let n=Ao(e,"styleId");if(!Tr(n))return null;let t=Ao(e,"type")??"",r=(()=>{let u=Do(e,"basedOn");return u?Ao(u,"val"):void 0})(),o=Tr(r)?r:null,a=(()=>{let u=Do(e,"next");return u?Ao(u,"val"):void 0})(),i=Tr(a)?a:null,l=Hl(e),s=Xa(e),d=new Map,c=0;for(let u of e.children){if(u.kind==="textValue"||u.localName!=="tblStylePr")continue;if(c>=eI)break;c+=1;let f=Ao(u,"type");f&&!d.has(f)&&d.set(f,u);}return {styleId:n,type:t,basedOn:o,next:i,isDefault:Z0(Ao(e,"default")),paragraphProperties:_o(Tn(l)),runProperties:_o(Tn(s)),paragraphPropertiesNode:l,tablePropertiesNode:Do(e,"tblPr"),conditionalTableFormats:d}}var eI=32,Dl=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function Zg(e,n){let t=n&&Tr(n)?n:null,r=t?Ug(e,t):null;if(r)return r;let o=e.defaultTableStyleId;return !o||o===t?Dl:Ug(e,o)??Dl}var Kg=new WeakMap;function Ug(e,n){let t=Kg.get(e);t||(t=new Map,Kg.set(e,t));let r=t.get(n);if(r)return r;let o=nI(e,n);return o?(t.set(n,o),o):null}function nI(e,n){let t=Kc(e,n,"table");if(t.length===0)return null;let r=[],o=[],a=[],i=[],l=new Map;for(let s of t){s.tablePropertiesNode&&r.push(s.tablePropertiesNode),s.paragraphPropertiesNode&&o.push(s.paragraphPropertiesNode),a.push(...s.paragraphProperties),i.push(...s.runProperties);for(let[d,c]of s.conditionalTableFormats)l.set(d,c);}return Object.freeze({tablePropertyNodes:Object.freeze(r),paragraphPropertyNodes:Object.freeze(o),paragraphProperties:Object.freeze(a),runProperties:Object.freeze(i),conditional:tI(l)})}function tI(e){let n=Object.freeze({get:t=>e.get(t),has:t=>e.has(t),forEach:(t,r)=>{for(let[o,a]of e)t.call(r,a,o,n);},keys:()=>e.keys(),values:()=>e.values(),entries:()=>e.entries(),[Symbol.iterator]:()=>e[Symbol.iterator](),[Symbol.toStringTag]:"Map",get size(){return e.size}});return n}function Jg(e){return e.paragraphPropertyNodes.length>0||e.paragraphProperties.length>0||e.runProperties.length>0||e.conditional.size>0}var Xc=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function Qg(e,n){let t=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of n){let i=e.conditional.get(a);if(!i)continue;let l=Hl(i);l&&(t.push(l),r.push(..._o(Tn(l))));let s=Xa(i);s&&o.push(..._o(Tn(s)));}return t.length===0&&r.length===0&&o.length===0?Xc:{paragraphProperties:r,paragraphPropertyNodes:t,runProperties:o}}function rI(e,n=q0){let t=new Map;if(!e)return {cacheToken:y({empty:true,theme:n}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,defaultTableStyleId:null,themeFonts:n,styles:t};let r=J0(e),o=null,a=null,i=null,l=0;for(let d of e.children){if(!Cr(d)||d.localName!=="style")continue;if(l>=qg)break;l+=1;let c=Q0(d);if(!c)continue;let{isDefault:u,...f}=c;t.set(f.styleId,f),f.type==="paragraph"?u?o=f.styleId:o===f.styleId&&(o=null):f.type==="character"?u?a=f.styleId:a===f.styleId&&(a=null):f.type==="table"&&(u?i=f.styleId:i===f.styleId&&(i=null));}return {cacheToken:y({dR:Al(r.run),dP:Al(r.paragraph),defP:o,defC:a,defT:i,theme:n,styles:[...t.values()].map(d=>({id:d.styleId,type:d.type,basedOn:d.basedOn,p:Al(d.paragraphProperties),r:Al(d.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,defaultTableStyleId:i,themeFonts:n,styles:t}}function Yc(e,n){let t=null;for(let r of e){if(r.localName!==n)continue;let o=r.attributes?.val;t=Tr(o)?o:null;}return t}function Kc(e,n,t){let r=e.styles.get(n);if(!r||r.type!==t)return [];let o=[],a=new Set,i=n,l=0;for(;i!==null&&l<_l&&!(a.has(i)||!Tr(i));){a.add(i);let s=e.styles.get(i);if(!s)break;o.push(s),i=s.basedOn,l+=1;}return o.reverse()}function Ho(e,n,t){let r=Tn(n),o=Yc(r,"pStyle")??e.defaultParagraphStyleId,a=o?Kc(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...t?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],l=[...i,...r],s=[];e.docDefaultsParagraphNode&&s.push(e.docDefaultsParagraphNode),t&&s.push(...t.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&s.push(p.paragraphPropertiesNode);n&&s.push(n);let d=Xa(n&&Cr(n)?n:void 0),c=Tn(d),u=dl([{properties:e.docDefaultsRun,role:"defaults",emit:true},{properties:t?.runProperties??[],role:"xor",emit:true},{properties:a.flatMap(p=>p.runProperties),role:"xor",emit:true}]),f=c.length===0?u:dl([{properties:u,role:"carried",emit:true},{properties:c,role:"direct",emit:true}]);return {paragraphProperties:l,inheritedParagraphProperties:i,paragraphPropertyNodes:s,runProperties:u,markRunProperties:f,styleId:o??null}}function eh(e){let n;for(let t of e){if(!t||t.kind==="textValue")continue;let r=false;for(let o of t.children)if(Cr(o)&&o.localName==="pBdr"){r=true;break}r&&(n=kt(t).bottom);}return n}function Nt(e,n,t){let r=[];if(t){let i=Yc(n,"rStyle")??t.defaultCharacterStyleId;i&&(r=Kc(t,i,"character").flatMap(l=>l.runProperties));}if(e.length===0&&r.length===0)return n;if(r.length===0&&n.length===0)return e;let o=r.length===0?e:dl([...e.length>0?[{properties:t?.docDefaultsRun??[],role:"defaults",emit:false}]:[],{properties:e,role:"carried",emit:true},{properties:r,role:"xor",emit:true}]);return n.length===0?o:[...o,...n]}function kr(e,n,t,r,o,a=false){let i=Hl(e),l=t?Ho(t,i,o):null,s=l?[...l.paragraphProperties]:Tn(i),d=Tn(Xa(i&&Cr(i)?i:void 0)),c=l?l.runProperties:[],u=l?l.markRunProperties:d,f=$a(s),p=0,m=0;if(r)p=r.indent.hanging,m=r.indent.firstLine;else for(let h of s){if(h.localName!=="ind")continue;let b=Va(h.attributes?.hanging),P=Va(h.attributes?.firstLine);(h.attributes?.hanging!==void 0||h.attributes?.firstLine!==void 0)&&(p=b!==null?Math.max(0,ld(b)):0,m=P!==null?ld(P):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},x=l?oc(l.paragraphPropertyNodes):ac(i);return {props:s,indent:g,available:Math.max(1,n-g.left-g.right),alignment:Xg(s),spacing:Kd(s,{inList:r!==void 0,inTableCell:a}),lineSpacing:Ud(s),contextualSpacing:Zd(s),styleId:l?l.styleId:Yc(s,"pStyle")??null,bottomBorder:l?eh(l.paragraphPropertyNodes):kt(i).bottom,borders:l?va(l.paragraphPropertyNodes):kt(i),shading:nc(s),inheritedRunProperties:c,markRunProperties:u,tabStops:x,tabStopsCacheToken:xr(x),...r?{listItem:r}:{}}}var nh=new WeakMap;function oI(e){let n=nh.get(e);if(n!==void 0)return n;let t=o=>o.some(a=>a.localName==="pBdr"),r=t(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(t(o.paragraphProperties)){r=true;break}}return nh.set(e,r),r}function th(e,n){return !n||!oI(n)?kt(e):va(Ho(n,e).paragraphPropertyNodes)}var aI=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function Uc(e){let n=e?.val;return n!=="0"&&n!=="false"&&n!=="off"}function rh(e){let n=false,t=false,r=true;for(let o of e)switch(o.localName){case "keepNext":n=Uc(o.attributes);break;case "keepLines":t=Uc(o.attributes);break;case "widowControl":r=Uc(o.attributes);break;}return !n&&!t&&r?aI:{keepNext:n,keepLines:t,widowControl:r}}function oh(e,n,t,r,o){if(e<=n)return e;if(r.keepLines&&!o)return n;if(!r.widowControl||t<2)return e;let a=e;return t-a<2&&(a-=1),a-n===1&&(a-=1),a<n&&(a=n),a===n&&o?e:a}function ah(e,n,t,r){let o=0,a=t;for(let i=n;i-n<8;i+=1){let l=e[i];if(!l||l.kind!=="paragraph"||!l.spacing||!l.keeps)return null;o+=Math.max(l.spacing.before,a)-a;let s=r(i);if(!l.keeps.keepNext||i+1>=e.length)return o+=s[0]??0,l.keeps.widowControl&&s.length>1&&(o+=s[1]),o;for(let d of s)o+=d;o+=l.spacing.after,a=l.spacing.after;}return null}function iI(e,n){let t=e;for(let r=0;r<e.length;r+=1){let o=n(r);o!==void 0&&(t===e&&(t=[...e]),t[r]=`${t[r]}~mk~${o}`);}return t}function lI(e,n,t){let r=e;for(let o=0;o<e.length;o+=1){if(!n(o))continue;let a=t(o);if(a===null)continue;let i=o>0&&t(o-1)===a,l=o+1<e.length&&t(o+1)===a;r===e&&(r=[...e]),r[o]=`${r[o]}~cs~${i?1:0}${l?1:0}`;}return r}function sI(e,n){let t=e;for(let r=0;r<e.length;r+=1){let o=n(r);if(o==="")continue;let a=r>0&&n(r-1)===o,i=r+1<e.length&&n(r+1)===o;t===e&&(t=[...e]),t[r]=`${t[r]}~bg~${a?1:0}${i?1:0}`;}return t}function dI(e,n){let t=e;for(let r=0;r<e.length;r+=1){let o=n(r);o!==""&&(t===e&&(t=[...e]),t[r]=`${t[r]}~toc~${o}`);}return t}function cI(e,n){let t=e,r=0;for(let o=e.length-2;o>=0;o-=1)n(o)&&r<8?(t===e&&(t=[...e]),t[o]=`${e[o]}~kn~${t[o+1]}`,r+=1):r=0;return t}function ih(e,n){let t=lI(e,n.contextualSpacingAt,n.styleIdAt);return t=sI(t,n.borderGroupKeyAt),n.tocVerdicts.length>0&&(t=dI(t,r=>n.tocVerdicts[r])),t=iI(t,n.markerTextAt),t=cI(t,n.keepsNextAt),t}var lh=new WeakMap;function Ya(e){let n=Jd(e.borders);return n===""?"":`${n}@${e.indent.left},${e.indent.right}`}function qc(e,n,t){lh.set(e,{styleCascade:n.styleCascade,tableCellStyle:n.tableCellStyle,listItem:n.listItems?.get(e.id),key:t});}function uI(e,n){let t=n.listItems?.get(e.id),r=lh.get(e);if(r&&r.styleCascade===n.styleCascade&&r.tableCellStyle===n.tableCellStyle&&r.listItem===t)return r.key;let o=Ya(kr(e,1,n.styleCascade,t,n.tableCellStyle,true));return qc(e,n,o),o}function sh(e,n){return e&&e.kind==="paragraph"?uI(e,n):""}function zl(e){let n=[],t=0;for(let r of e.members){let o=Ie(r).length;n.push({paragraphId:r.id,base:t,length:o}),t+=o;}return {members:n,total:t}}function Zc(e,n){let t;for(let r of e.members){if(r.base>n)break;(t===void 0||r.length>0||r.base>t.base)&&(t=r);}return t??e.members[e.members.length-1]}function dh(e,n){let t=Zc(n,e.start);if(!t)return e;let r=e.end-t.base;return {paragraphId:t.paragraphId,start:e.start-t.base,end:Math.min(r,t.length)}}function fI(e,n){return {...e,range:dh(e.range,n)}}function jl(e,n){return e.map(t=>{let r=t.spans.map(u=>fI(u,n)),o=r[0],a=t.drawings?.map(u=>{let f=Zc(n,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):[],l=o?(a??[]).filter(u=>u.paragraphId===o.range.paragraphId):[],s=o?{paragraphId:o.range.paragraphId,start:Math.min(o.range.start,...l.map(u=>u.start)),end:Math.max(i[i.length-1].range.end,...l.map(u=>u.start+1))}:dh(t.range,n),d=a,c=t.deletedRanges?.map(u=>({deleted:u,member:Zc(n,u.start)})).filter(({member:u})=>u?.paragraphId===s.paragraphId).map(({deleted:u,member:f})=>({start:u.start-(f?.base??0),end:u.end-(f?.base??0)}));return {...t,range:s,spans:r,...d?{drawings:d}:{},...c?{deletedRanges:c}:{}}})}var pI=vo;function qn(e,n){if(e.kind!=="textValue"){for(let t of e.children)if(t.kind!=="textValue"&&t.namespaceUri===ca&&t.localName===n)return t}}function ch(e){if(e.kind==="textValue")return false;let n=qn(e,"paragraphProperties")??qn(e,"pPr");if(!n)return false;let t=qn(n,"runProperties")??qn(n,"rPr");return t===void 0?false:qn(t,"del")!==void 0||qn(t,"moveFrom")!==void 0}function uh(e,n){if(e.kind==="textValue"||n>pI)return true;let t=(r,o)=>{for(let a of r){if(a.kind==="textValue")continue;if(a.kind==="run"){for(let l of a.children){if(l.kind==="text"){for(let s of l.children)if(s.kind==="textValue"&&s.value.length>0)return false;continue}if(l.kind!=="runProperties")return false}continue}if(nc$1(a)){if(o>=mc$1)continue;let l=pc$1(a);if(l&&!t(l,o+1))return false;continue}if((a.kind==="hyperlink"||a.kind==="revisionInsert"||a.kind==="revisionMoveTo")&&!uh(a,o+1))return false}return true};return t(e.children,n)}function fh(e,n){if(n==="all-markup"||e.kind==="textValue")return false;let t=qn(e,"paragraphProperties")??qn(e,"pPr");if(!t)return false;let r=qn(t,"runProperties")??qn(t,"rPr");return r===void 0?false:(n==="proposed"?["del","moveFrom"]:["ins","moveTo"]).some(a=>qn(r,a)!==void 0)}function Jc(e,n="proposed"){return e.kind!=="paragraph"||n!=="proposed"||!ch(e)?false:uh(e,0)}function mI(e){let n=e.root;if(n.localName==="hdr"||n.localName==="ftr")return n;let t=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=t(o);if(a)return a}}};return t(n)}function gI(e,n){return !(e.kind==="paragraph"&&Jc(e,n))}var yh=new WeakMap;function Gl(e){return yh.get(e)??null}function bh(e,n){let t=n.children.filter(a=>ph(a)),r=e.flatMap(a=>a.children.filter(i=>!ph(i))),o={...n,children:[...t,...r]};return yh.set(o,{merged:o,members:e}),o}function ph(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function hI(e,n){if(n==="all-markup")return e.map(i=>i.block);let t=[],r=[],o=null,a=()=>{t.push(...mh(r)),r=[],o=null;};for(let{block:i,parentKey:l}of e){if(r.length>0&&l!==o&&a(),i.kind!=="paragraph"){a(),t.push(i);continue}let s=fh(i,n);if((s||r.length>0)&&!xI(i,n)){a(),t.push(i);continue}if(s){r.push(i),o=l;continue}if(r.length===0){t.push(i);continue}let d=[...r,i];r=[],o=null,t.push(bh(d,i));}return t.push(...mh(r)),t}function mh(e){if(e.length<2)return e;let n=e[e.length-1];return [bh(e,n)]}function Ka(e,n){return hI(bI(e),n).filter(r=>gI(r,n))}var yI=new Set(["pPr","bookmarkStart","bookmarkEnd","proofErr","permStart","permEnd"]);function xh(e){for(let n of e.children){if(n.kind==="textValue"){if(n.value.length>0)return false;continue}if(n.namespaceUri!==ca||!yI.has(n.localName))return false}return true}function bI(e){let n=[],t=(r,o,a)=>{for(let i of r)if(i.kind!=="textValue"){if(i.kind==="paragraph"||i.kind==="table"){n.push({block:i,parentKey:a});continue}nc$1(i)&&o<mc$1&&t(qc$1(i),o+1,i.id);}};return t(e,0,""),n}var gh=new WeakMap;function xI(e,n){let t=gh.get(e),r=t?.get(n);if(r!==void 0)return r;let o=SI(e,n);return t?t.set(n,o):gh.set(e,new Map([[n,o]])),o}function SI(e,n){if(!RI(e))return false;let t=xl(e,[],void 0,void 0,void 0,void 0,n),r=0;for(let o of t)r=Math.max(r,o.end);return r<=Ie(e).length}function RI(e){let n=0,t=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===ca&&o.localName==="fldChar"){let a=o.attributes.find(i=>i.localName==="fldCharType")?.value;a==="begin"?n+=1:a==="end"&&(n-=1,n<0&&(t=true));}for(let a of o.children)r(a);}};return r(e),n===0&&!t}var hh=Mf(16);function At(e,n="all-markup"){let t=hh.get(e),r=t?.[n];if(r)return r;let o=mI(e),a=o?Ka(o.children,n):[];return t?t[n]=a:hh.set(e,{[n]:a}),a}function Wl(e,n="all-markup"){return e.kind!=="note"?[]:Ka(e.children,n)}function Qc(e,n="all-markup"){return e.kind==="textValue"?[]:Ka(e.children,n)}function Sh(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function eu(e,n,t,r,o){let a=Sh(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let l=null,s=null,d=i.lines;for(let u of n){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){l=f.box,d=f.lines,s=u.box;break}if(l)break}if(!l)continue;let c=s??Object.freeze({x:i.cellOriginX,y:t,width:i.cellContentWidth,height:r});a(or({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:l,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(l)??l,cellBox:c,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{}}));}}function Rh(e,n){let t=Sh(e),r=e.deferAnchoredDrawings;return !t&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:t,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{n.push(i);}},flushDeferred:(i,l,s)=>{if(n.length!==0){if(t&&!e.anchorDeferOnly)eu(n,i,l,s,e);else if(r)for(let d of n)r(d);n.length=0;}}}}var wI={state:"none"},wh=(e,n)=>n.state==="omitted"?e:n;function Vl(e,n,t={}){return e.state==="omitted"?n:e.state==="none"?wI:e}function nu(e,n){let t=wh;return {top:t(e.top,n.top),left:t(e.left,n.left),bottom:t(e.bottom,n.bottom),right:t(e.right,n.right),insideH:t(e.insideH,n.insideH),insideV:t(e.insideV,n.insideV)}}function tu(e,n){let t=wh;return {top:t(e.top,n.top),left:t(e.left,n.left),bottom:t(e.bottom,n.bottom),right:t(e.right,n.right)}}function $l(e=1048576){let n=e|0;return {intervalsRemaining:n>0?n:0}}function Ph(e,n,t,r){let o=Math.max(0,Math.min(n|0,1024)),a=new Array(e.length);for(let i=0;i<e.length;i+=1){if(r&&r.intervalsRemaining<=0){a[i]=[];continue}a[i]=PI(e[i],o,t,r);}return a}function PI(e,n,t,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),p=Math.min(n,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,l=o[0].x,s=[],d=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>l&&i&&(!r||r.intervalsRemaining>0)){let u=s[s.length-1];u&&u.end===l&&u.cellIndex===i.cellIndex&&u.cell===i.cell?s[s.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(s.push({start:l,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),t&&(t.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),l=c.x;}return s}function II(e,n){let t=0,r=e.length;for(;t<r;){let o=t+r>>1;e[o].start<=n?t=o+1:r=o;}return t}function ru(e,n,t,r){r&&(r.columnLookups+=1);let o=e[n];if(!o||t<0)return;let a=II(o,t)-1;if(a<0)return;let i=o[a];if(!(t>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var Ch=256,Je={state:"omitted"},Zl={state:"none"},kh={top:Je,left:Je,bottom:Je,right:Je,insideH:Je,insideV:Je},Oh={top:Je,left:Je,bottom:Je,right:Je},Ih={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},TI=new Map([["single","single"],["thick","thick"],["double","double"],["dotted","dotted"],["dashed","dashed"],["dashSmallGap","dashed"],["dotDash","dashed"],["dotDotDash","dashed"],["triple","triple"],["wave","single"],["hairline","single"],["inset","single"],["outset","single"]]);function zo(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function ou(e,n){return e.attributes.find(t=>t.localName===n)?.value}function CI(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function kI(e){if(e===null)return .5;let n=e/8;return !Number.isFinite(n)||n<=0?.5:n>Ia?Ia:n}function Jl(e){if(!e)return Je;let n=ou(e,"val");if(!n)return Je;if(n==="nil"||n==="none")return Zl;let t=TI.get(n)??"single",r=ou(e,"color"),o=r===void 0||r==="auto"?null:Ui(r)??null;return {state:"edge",style:t,color:o,widthPt:kI(CI(ou(e,"sz")))}}function Bh(e,n){if(!e)return Oh;let t={top:Je,left:Je,bottom:Je,right:Je};for(let r of n){let o=r==="left"?"start":r==="right"?"end":void 0,a=zo(e,r)??(o?zo(e,o):void 0);t[r]=Jl(a);}return t}function Ql(e){let n=e&&zo(e,"tblBorders");return n?{...Bh(n,["top","left","bottom","right"]),insideH:Jl(zo(n,"insideH")),insideV:Jl(zo(n,"insideV"))}:kh}function es(e){return Bh(e&&zo(e,"tcBorders"),["top","left","bottom","right"])}function au(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function vh(e){if(!e)return 0;let n=Number.parseInt(e.slice(0,2),16),t=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return n+t+r}function Mh(e,n,t=true){if(e.state==="omitted")return n.state==="omitted"?Je:n;if(n.state==="omitted")return e;if(e.state==="none")return n.state==="none"?Zl:n;if(n.state==="none")return e;let r=au(e),o=au(n);if(r>o)return e;if(o>r)return n;let a=Ih[e.style],i=Ih[n.style];if(a!==i)return a>i?e:n;let l=vh(e.color),s=vh(n.color);return l<s?e:s<l?n:t?e:n}function Xl(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function OI(e,n,t){return t?n==="top"||n==="bottom"?e.insideH:e.insideV:e[n]}function BI(e,n){return e===void 0&&n===void 0?true:!e||!n?false:e.style===n.style&&e.color===n.color&&e.widthPt===n.widthPt}function Yl(e){if(e.length===0)return [];let n=[],t={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];t.gridEnd===o.gridStart&&BI(t.edge,o.edge)?t={...t,gridEnd:o.gridEnd}:(n.push(t),t={...o});}return n.push(t),n}function Kl(e,n,t){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==n||o.gridEnd!==t))return o.edge}function Th(e,n,t){let r=0,o=Math.min(t,e.length);for(let a=Math.max(0,n);a<o;a+=1)r+=e[a];return r}function MI(e){if(!(!e||e.style!=="double"))return co(e.widthPt)}function Ul(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function LI(e,n){return n?e==="outer"?n.insetPt:n.insetPt+n.strokePt+n.gapPt:0}function FI(e,n,t){return t?e==="outer"?n-t.insetPt:n-t.insetPt-t.strokePt-t.gapPt:n}function EI(e,n){return n?e==="outer"?n.insetPt+n.strokePt:n.insetPt+n.extentPt:0}function NI(e,n,t){return t?e==="outer"?n-t.insetPt-t.strokePt:n-t.insetPt-t.extentPt:n}function ar(e,n){e.length>=Ch||!(n.width>0)||!(n.height>0)||e.push(n);}function AI(e,n,t,r,o,a,i,l,s,d,c){let u=co(t.widthPt),{strokePt:f,gapPt:p,extentPt:m,insetPt:g}=u,x=Math.abs(r)<1e-6,h=Math.abs(o-a)<1e-6,b=Math.abs(r)<1e-6,P=Math.abs(o-i)<1e-6;if(n==="top"||n==="bottom"){let L=n==="top"?g:i-g-f,w=n==="top"?g+f+p:i-g-m;for(let S of ["outer","inner"]){let C=r,T=o;x&&(C=LI(S,l)),h&&(T=FI(S,a,s)),ar(e,{side:n,role:S,color:t.color,cssStyle:"solid",x:C,y:S==="outer"?L:w,width:T-C,height:f});}return}let k=n==="left"?g:a-g-f,v=n==="left"?g+f+p:a-g-m;for(let L of ["outer","inner"]){let w=r,S=o;b&&(w=EI(L,d)),P&&(S=NI(L,i,c)),ar(e,{side:n,role:L,color:t.color,cssStyle:"solid",x:L==="outer"?k:v,y:w,width:f,height:S-w});}}function DI(e,n,t,r,o,a,i){let l=t.widthPt,s=Math.max(1,l),d=l*3+s*2;if(n==="top"||n==="bottom"){let u=n==="top"?0:i-d;for(let f=0;f<3;f+=1)ar(e,{side:n,role:f===0?"outer":f===1?"middle":"inner",color:t.color,cssStyle:"solid",x:r,y:u+f*(l+s),width:o-r,height:l});return}let c=n==="left"?0:a-d;for(let u=0;u<3;u+=1)ar(e,{side:n,role:u===0?"outer":u===1?"middle":"inner",color:t.color,cssStyle:"solid",x:c+u*(l+s),y:r,width:l,height:o-r});}function _I(e,n,t,r,o,a,i){let l=t.widthPt;n==="top"?ar(e,{side:n,role:"edge",color:t.color,cssStyle:Ul(t.style),x:r,y:0,width:o-r,height:l}):n==="bottom"?ar(e,{side:n,role:"edge",color:t.color,cssStyle:Ul(t.style),x:r,y:i-l,width:o-r,height:l}):n==="left"?ar(e,{side:n,role:"edge",color:t.color,cssStyle:Ul(t.style),x:0,y:r,width:l,height:o-r}):ar(e,{side:n,role:"edge",color:t.color,cssStyle:Ul(t.style),x:a-l,y:r,width:l,height:o-r});}function ql(e,n){if(e.length===0)return;let t=e[0];return MI(t.edge)}function HI(e,n,t,r,o,a,i,l,s,d){let c=(M,y,G)=>{let D=[];for(let F of y){if(!F.edge)continue;let E,B;G?(E=Th(i,l,F.gridStart),B=Th(i,l,F.gridEnd)):(E=s[F.gridStart-d]??0,B=s[F.gridEnd-d]??a),D.push({side:M,gridStart:F.gridStart,gridEnd:F.gridEnd,startPt:E,endPt:B,edge:F.edge});}return D},u=c("top",e,true),f=c("left",n,false),p=c("bottom",t,true),m=c("right",r,false),g=[...u,...m,...p,...f],x=ql(n),h=ql(r),b=ql(e),P=ql(t),k=(M,y)=>M.length===1&&Math.abs(M[0].startPt)<1e-6&&Math.abs(M[0].endPt-y)<1e-6,v=k(u,o),L=k(f,a),w=k(p,o),S=k(m,a),C=[],T=(M,y,G)=>{for(let D of y){let{edge:F,startPt:E,endPt:B}=D;F.style==="double"?AI(C,M,F,E,B,o,a,M==="top"||M==="bottom"?x:void 0,M==="top"||M==="bottom"?h:void 0,M==="left"||M==="right"?b:void 0,M==="left"||M==="right"?P:void 0):F.style==="triple"?DI(C,M,F,E,B,o,a):G||_I(C,M,F,E,B,o,a);}};T("top",u,v),T("left",f,L),T("bottom",p,w),T("right",m,S);let N={};return v&&u[0]&&(N.top=u[0].edge),L&&f[0]&&(N.left=f[0].edge),w&&p[0]&&(N.bottom=p[0].edge),S&&m[0]&&(N.right=m[0].edge),g.length>0&&(N.edgeSegments=g),C.length>0&&(N.strokes=C),N}function iu(e,n,t,r,o,a){let i=e.length,l=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let s=Ph(e,t,o,a),d=(u,f,p)=>Vl(u.borders[f],OI(n,f,p),{}),c=(u,f,p,m)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?Zl:Mh(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){l[u][p]={};continue}let g=m.mergeRowSpan??1,x=u+g-1,h=u===0,b=x===i-1,P=m.gridColumn===0,k=m.gridColumn+m.gridSpan-1,v=k>=t-1,L=[];if(h)for(let E=m.gridColumn;E<=k;E+=1)L.push({gridStart:E,gridEnd:E+1,edge:Xl(d(m,"top",false))});let w=[];if(P)for(let E=u;E<=x;E+=1)w.push({gridStart:E,gridEnd:E+1,edge:Xl(d(m,"left",false))});let S=[];for(let E=m.gridColumn;E<=k;E+=1){let B;if(b)B=d(m,"bottom",false);else {let R=ru(s,x+1,E,o);R?.cell.vMergeContinue?B=Je:B=c(m.borders.bottom,R?R.cell.borders.top:Je,d(m,"bottom",true),R?d(R.cell,"top",true):n.insideH);}S.push({gridStart:E,gridEnd:E+1,edge:Xl(B)});}let C=[];for(let E=u;E<=x;E+=1){let B;if(v)B=d(m,"right",false);else {let R=ru(s,E,k+1,o);B=c(m.borders.right,R?R.cell.borders.left:Je,d(m,"right",true),R?d(R.cell,"left",true):n.insideV);}C.push({gridStart:E,gridEnd:E+1,edge:Xl(B)});}let T=Yl(L),N=Yl(w),M=Yl(S),y=Yl(C);if(!r){let E={},B=Kl(T,m.gridColumn,k+1),R=Kl(N,u,x+1),W=Kl(M,m.gridColumn,k+1),A=Kl(y,u,x+1);B&&(E.top=B),R&&(E.left=R),W&&(E.bottom=W),A&&(E.right=A);let z=[],q=(_,X)=>{for(let U of X)U.edge&&z.push({side:_,gridStart:U.gridStart,gridEnd:U.gridEnd,startPt:U.gridStart,endPt:U.gridEnd,edge:U.edge});};q("top",T),q("left",N),q("bottom",M),q("right",y),z.length>0&&(E.edgeSegments=z),l[u][p]=E;continue}let G=r.cellBoxes[u][p],D=[0],F=0;for(let E=u;E<=x;E+=1){let B=r.rowBands[E];F+=B.height,D.push(F);}D.length>1&&(D[D.length-1]=G.height),l[u][p]=HI(T,N,M,y,G.width,G.height,r.columnWidthsPt,m.gridColumn,D,u);}}return l}function ir(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var lu=kh,su=Oh;var Fh=31680/20,Zn=Object.freeze({type:"auto",value:0}),zI=100,jI=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function GI(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function cu(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Eh(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let n=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(n){let r=Number(n[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let t=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(t){let r=Number(t[1])*jI[t[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function Or(e){if(!e)return Zn;let n=cu(e,"type");if(n!==void 0&&n!=="pct"&&n!=="dxa")return n==="nil"?{type:"nil",value:0}:Zn;let t=cu(e,"w");if(t===void 0)return Zn;let r=Eh(t);if(!r)return Zn;let o=/^\d{1,9}$/.test(t);if(r.kind==="percent"||o&&n==="pct"){let a=r.kind==="percent"?r.percent:Number(t)/50;return !Number.isFinite(a)||a<=0?Zn:{type:"pct",value:Math.min(a,zI)}}return !Number.isFinite(r.pt)||r.pt<=0?Zn:{type:"dxa",value:Math.min(r.pt,Fh)}}function Ua(e,n){if(!e)return;let t=Or(e);if(t.type==="dxa")return Math.min(t.value,n)}function Nh(e){let n=GI(e,"tblGrid");if(!n)return [];let t=[];for(let r of n.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(t.push(r),t.length>=1024))break;return t}function WI(e){let n=[];for(let t of e){let r=cu(t,"w"),o=r===void 0?null:Eh(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){n.push(void 0);continue}n.push(o.pt>Fh?void 0:o.pt);}return n}var du=1,Lh=.001;function VI(e,n,t,r){let o=[];for(let i=0;i<t;i+=1)o.push(e[i]);let a=n.filter(i=>i.start<t&&(i.preferred.type==="dxa"||i.preferred.type==="pct"&&r>0)).sort((i,l)=>i.span-l.span);for(let i of a){let l=Math.min(i.start+i.span,t);if(l<=i.start)continue;let s=i.preferred.type==="pct"?r*i.preferred.value/100:i.preferred.value;if(!Number.isFinite(s)||s<=0)continue;if(l-i.start===1){let f=o[i.start];o[i.start]=f===void 0?s:Math.max(f,s);continue}let d=[],c=s;for(let f=i.start;f<l;f+=1){let p=o[f];p===void 0?d.push(f):c-=p;}if(d.length===0||c<=0)continue;let u=c/d.length;for(let f of d)o[f]=u;}return o}function Ah(e){let{columnCount:n,tableWidth:t}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:du,a=t.type==="dxa"?t.value:t.type==="pct"?o*t.value/100:0,i=WI(e.gridCols),l=VI(i,e.claims,n,a),s=0,d=0;for(let h of l)h===void 0?d+=1:s+=h;let c=[];if(d>0){let h=s>0?s/Math.max(n-d,1):o/n,b=Math.max(o-s,0)/d,P=Math.max(Math.min(b,h),du);for(let k of l)c.push(k??P);}else for(let h of l)c.push(h);let u=c.reduce((h,b)=>h+b,0);if(!Number.isFinite(u)||u<=0)return new Array(n).fill(o/n);let f=n*du,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),g=t.type==="pct"&&a>0;if(u<=m+Lh&&!g||Math.abs(u-m)<=Lh)return c;let x=m/u;return c.map(h=>h*x)}function jo(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function $I(e,n){return e.attributes.find(t=>t.localName===n)?.value}var _h=3,Dh=108/20,qa=31680/20,uu={top:0,right:Dh,bottom:0,left:Dh};function ns(e){if(!e)return;let n=$I(e,"w");if(n===void 0||!/^\d{1,9}$/.test(n))return;let t=Number(n);if(!Number.isFinite(t)||t<0)return;let r=t/20;return r>qa?qa:r}function ts(e){if(!e)return {};let n=ns(jo(e,"top")),t=ns(jo(e,"left")??jo(e,"start")),r=ns(jo(e,"bottom")),o=ns(jo(e,"right")??jo(e,"end"));return {...n===void 0?{}:{top:n},...t===void 0?{}:{left:t},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function rs(e,n){return {top:n.top??e.top,right:n.right??e.right,bottom:n.bottom??e.bottom,left:n.left??e.left}}var os=16,Jh=31680/20,Hh=1023,XI=256,zh=31680/20;function jh(e){let n=e&&Re(e,"jc");if(!n)return;let t=Ve(n,"val");if(t==="center")return "center";if(t==="right"||t==="end")return "right";if(t==="left"||t==="start")return "left"}var Gh=31680/20;function Re(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Ve(e,n){return e.attributes.find(t=>t.localName===n)?.value}function YI(e){let n=e&&Re(e,"gridSpan"),t=n&&Ve(n,"val");if(!t||!/^\d{1,7}$/.test(t))return 1;let r=Number(t);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function Wh(e,n){let t=e&&Re(e,n),r=t&&Ve(t,"val");if(!r||!/^\d{1,7}$/.test(r))return 0;let o=Number(r);return Number.isInteger(o)&&o>0?Math.min(o,1024):0}function KI(e){let n=e&&Re(e,"vMerge");return n?Ve(n,"val")!=="restart":false}function UI(e){let n=e&&Re(e,"vAlign"),t=n&&Ve(n,"val");return t==="center"?"center":t==="bottom"?"bottom":"top"}function Vh(e){return ec(e&&Re(e,"shd"))}function $h(e,n){let t=e&&Re(e,n);if(!t)return false;let r=Ve(t,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var Za=Object.freeze({rule:"auto"});function qI(e){let n=e&&Re(e,"trHeight");if(!n)return Za;let t=Ve(n,"hRule"),r=t==="auto"||t==="exact"||t==="atLeast"?t:void 0;if(r==="auto")return Za;let o=Ve(n,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return Za;let a=Number(o);if(!Number.isFinite(a)||a<=0)return Za;let i=Math.min(a/20,Jh);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:Za}function Ja(e,n){let t=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=n-t;return !Number.isFinite(r)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?r:Math.min(e.indentPt,r)}function Xh(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function Yh(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let n=Number(e);if(!Number.isFinite(n))return;let t=n/20;return Math.max(-Gh,Math.min(Gh,t))}function Kh(e){let n=e&&Re(e,"tblpPr");if(!n)return;let t=Ve(n,"tblpXSpec"),r=t==="left"||t==="center"||t==="right"||t==="inside"||t==="outside"?t:void 0,o=Ve(n,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:Xh(Ve(n,"horzAnchor"))??"text",vertAnchor:Xh(Ve(n,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:Yh(Ve(n,"tblpX"))??0,...a?{ySpec:a}:{},yPt:Yh(Ve(n,"tblpY"))??0}}function Qh(e,n,t){let r=t[e.horzAnchor],o=r.width-n,a;if(e.xSpec==="center"?a=r.left+o/2:e.xSpec==="right"||e.xSpec==="outside"?a=r.left+o:e.xSpec?a=r.left:a=r.left+e.xPt,!Number.isFinite(a))return r.left;let i=t.page.left+t.page.width;return Math.max(t.page.left,Math.min(a,i))}var ZI=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function Dt(e,n){let t=Ve(e,n);if(t!==void 0)return t!=="0"&&t!=="false"&&t!=="off"}function JI(e){let n=e&&Re(e,"tblLook");if(!n)return ZI;let t=Ve(n,"val"),r=t&&/^[0-9A-Fa-f]{1,4}$/.test(t)?Number.parseInt(t,16):0;return {firstRow:Dt(n,"firstRow")??(r&32)!==0,lastRow:Dt(n,"lastRow")??(r&64)!==0,firstColumn:Dt(n,"firstColumn")??(r&128)!==0,lastColumn:Dt(n,"lastColumn")??(r&256)!==0,rowBanding:Dt(n,"noHBand")===void 0?(r&512)===0:!Dt(n,"noHBand"),columnBanding:Dt(n,"noVBand")===void 0?(r&1024)===0:!Dt(n,"noVBand")}}var fu=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],Uh=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function qh(e,n){let t=e&&Re(e,"cnfStyle");if(!t)return;let r=Ve(t,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<fu.length;o+=1)r[o]==="1"&&n.add(fu[o]);for(let o=0;o<Uh.length;o+=1)Dt(t,Uh[o])===true&&n.add(fu[o]);}var QI=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function ev(e){let n=new Set;qh(e.rowProperties,n),qh(e.cellProperties,n);let{look:t,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:l}=e,s=n.has("firstRow")||t.firstRow&&r===0,d=n.has("lastRow")||t.lastRow&&r===o-1,c=n.has("firstCol")||t.firstColumn&&a===0,u=n.has("lastCol")||t.lastColumn&&a+i>=l;if(!(n.has("band1Vert")||n.has("band2Vert"))&&t.columnBanding&&!c&&!u){let g=a-(t.firstColumn?1:0);n.add(g%2===0?"band1Vert":"band2Vert");}if(!(n.has("band1Horz")||n.has("band2Horz"))&&t.rowBanding&&!s&&!d){let g=r-(t.firstRow?1:0);n.add(g%2===0?"band1Horz":"band2Horz");}c&&n.add("firstCol"),u&&n.add("lastCol"),s&&n.add("firstRow"),d&&n.add("lastRow"),s&&c&&n.add("nwCell"),s&&u&&n.add("neCell"),d&&c&&n.add("swCell"),d&&u&&n.add("seCell");let m=[];for(let g of QI)n.has(g)&&m.push(g);return m}var Zh=new WeakMap;function Go(e,n,t,r,o="all-markup"){let a=Zh.get(e);if(a&&a.contentWidthPt===n&&a.depth===t&&a.styleCascade===r&&a.displayMode===o)return a.structure;let i=nv(e,n,t,r,o);return Zh.set(e,{contentWidthPt:n,depth:t,styleCascade:r,displayMode:o,structure:i}),i}function nv(e,n,t,r,o){if(t>=os||e.kind!=="table")return null;let a=Re(e,"tblPr"),i=a&&Re(a,"tblStyle")?Ve(Re(a,"tblStyle"),"val"):void 0,l=r?Zg(r,i):Dl,s=JI(a),d=uu,c=lu;for(let A of l.tablePropertyNodes)d=rs(d,ts(Re(A,"tblCellMar"))),c=nu(c,Ql(A));let u=rs(d,ts(a&&Re(a,"tblCellMar"))),f=nu(c,a?Ql(a):lu),p=new Map,m=Jg(l),g=A=>{if(!m)return Xc;let z=A.join("|"),q=p.get(z);if(q)return q;let _=Qg(l,A);return p.size<XI&&p.set(z,_),_},x=[],h=[],b=1;for(let A of qf(e.children)){if(A.kind!=="tableRow")continue;let z=Re(A,"trPr"),q=[],_=[],X=[],U=Math.min(Wh(z,"gridBefore"),Hh);U>0&&h.push({start:0,span:U,preferred:Or(z&&Re(z,"wBefore"))});let j=U,K=qf(A.children);for(let Ie of K){if(Ie.kind!=="tableCell")continue;let me=Re(Ie,"tcPr"),ge=Math.min(j,Hh),Be=Math.min(YI(me),1024-ge),we=Or(me&&Re(me,"tcW"));q.push(ge),_.push(Be),X.push(we),h.push({start:ge,span:Be,preferred:we}),j=ge+Be;}let pe=Wh(z,"gridAfter"),Fe=Math.min(j+pe,1024);pe>0&&j<1024&&h.push({start:j,span:Math.min(pe,1024-j),preferred:Or(z&&Re(z,"wAfter"))}),Fe>b&&(b=Fe),x.push({node:A,cells:K,properties:z,starts:q,spans:_,preferred:X,gridColumns:Fe});}let P=Nh(e),k=P.length>0?P.length:b,v=x.length,L=[];for(let A=0;A<x.length;A+=1){let z=x[A],q=z.node,_=z.properties,X=0,U=[];for(let me of z.cells){if(me.kind!=="tableCell")continue;let ge=Re(me,"tcPr"),Be=z.starts[X],we=z.spans[X],Se=z.preferred[X]??Zn,ye=ev({look:s,rowIndex:A,rowCount:v,gridColumn:Be,gridSpan:we,columnCount:k,rowProperties:_,cellProperties:ge});X+=1;let De,le=su;for(let sn of ye){let En=l.conditional.get(sn);if(!En)continue;let dn=Re(En,"tcPr");De=Vh(dn)??De,le=tu(le,es(dn));}let _e=Vh(ge)??De,Ze=rs(u,ts(ge&&Re(ge,"tcMar"))),be=Ka(me.children,o);U.push({id:me.id,gridSpan:we,gridColumn:Be,...P[Be]?.id?{gridColumnId:P[Be].id}:{},vMergeContinue:KI(ge),vAlign:UI(ge),margins:Ze,borders:tu(le,ge?es(ge):su),..._e===void 0?{}:{shading:_e},preferredWidth:Se,styleFormatting:g(ye),blocks:be});}let j=_?Re(_,"ins")??Re(_,"del"):void 0,K=j?j.localName==="ins"?"insert":"delete":void 0,pe=j&&Ve(j,"id"),Fe=j&&Ve(j,"author"),Ie=j&&Ve(j,"date");L.push({id:q.id,...K?{revisionKind:K}:{},...pe!==void 0?{revisionId:pe}:{},...Fe!==void 0?{revisionAuthor:Fe}:{},...Ie!==void 0?{revisionDate:Ie}:{},isHeader:$h(_,"tblHeader"),cantSplit:$h(_,"cantSplit"),height:qI(_),cells:U});}let w=Zn,S,C,T,N,M;for(let A of l.tablePropertyNodes){let z=Re(A,"tblW");z&&(w=Or(z));let q=Re(A,"tblLayout");q&&(S=Ve(q,"type")==="fixed"),C=Ua(Re(A,"tblInd"),zh)??C,T=jh(A)??T,N=Ua(Re(A,"tblCellSpacing"),qa)??N,M=Kh(A)??M;}let y=a&&Re(a,"tblW"),G=y?Or(y):w,D=a&&Re(a,"tblLayout"),F=D?Ve(D,"type")==="fixed":S??false,E=Ua(a&&Re(a,"tblInd"),zh)??C??0,B=jh(a)??T??"left",R=t===0?Kh(a)??M:void 0,W=Ua(a&&Re(a,"tblCellSpacing"),qa)??N??0;return {columnWidthsPt:Ah({gridCols:P,claims:h,columnCount:k,contentWidthPt:n,tableWidth:G,layoutFixed:F}),rows:L,tableWidth:G,layoutFixed:F,indentPt:E,alignment:B,...R?{float:R}:{},cellSpacingPt:W,tableBorders:f,defaultMargins:u}}var mu=512,ny=9,Jn=31680/20,tv=8,rv=128;function Qa(e,n){return e.kind!=="textValue"&&e.namespaceUri===ca&&e.localName===n}function Qe(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function Cn(e,n){for(let t of e.children)if(Qa(t,n))return t}function _t(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function ov(e){let n=e/20;return !Number.isFinite(n)||n<=0?0:n>Jn?Jn:n}function pu(e){let n=e/20;return Number.isFinite(n)?n>Jn?Jn:n<-Jn?-Jn:n:0}function av(e){let n={left:0,right:0,hanging:0,firstLine:0};if(!e)return n;let t=Cn(e,"ind");if(!t)return n;let r=_t(Qe(t,"left")??Qe(t,"start"),true),o=_t(Qe(t,"right")??Qe(t,"end"),true),a=_t(Qe(t,"hanging")),i=_t(Qe(t,"firstLine"),true);return {left:r===null?0:pu(r),right:o===null?0:pu(o),hanging:a===null?0:ov(a),firstLine:i===null?0:pu(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function iv(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function lv(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function sv(e,n){let t=Cn(e,n);if(!t)return false;let r=Qe(t,"val");return r!=="0"&&r!=="false"&&r!=="off"}function ey(e,n){let t=Cn(e,n);if(!t)return;let r=Qe(t,"val");if(!(r===void 0||r.length===0||r.length>rv))return r}function dv(e,n){for(let t of e){if(t.localName!==n)continue;let r=t.attributes?.val;return !(r==="0"||r==="false")}return false}function ty(e){let n=_t(Qe(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=Cn(e,"start"),r=1;if(t){let h=_t(Qe(t,"val"));h!==null&&h>=0&&(r=Math.min(h,9999));}let o=Cn(e,"numFmt"),a=(o?Qe(o,"val"):void 0)??"decimal",i=Cn(e,"lvlText"),l=i?Qe(i,"val")??"":"",s=Cn(e,"lvlJc"),d=lv(s?Qe(s,"val"):void 0),c=Cn(e,"suff"),u=iv(c?Qe(c,"val"):void 0),f=Cn(e,"lvlRestart"),p;if(f){let h=_t(Qe(f,"val"));h!==null&&h>=0&&h<=9&&(p=h);}let m=Cn(e,"pPr"),g=Cn(e,"rPr"),x=g?xo(g):[];return {ilvl:n,start:r,numFmt:a.length>64?"decimal":a,lvlText:l.length>64?l.slice(0,64):l,lvlJc:d,suff:u,indent:av(m),...p!==void 0?{lvlRestart:p}:{},isLgl:sv(e,"isLgl"),runProperties:x,vanish:dv(x,"vanish")}}function cv(e){let n=Qe(e,"abstractNumId");if(n===void 0||n.length===0||n.length>64)return null;let t=new Map;for(let a of e.children){if(!Qa(a,"lvl"))continue;if(t.size>=9)break;let i=ty(a);i&&!t.has(i.ilvl)&&t.set(i.ilvl,i);}let r=ey(e,"numStyleLink"),o=ey(e,"styleLink");return {abstractNumId:n,levels:t,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function uv(e){let n=_t(Qe(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=Cn(e,"startOverride"),r;if(t){let i=_t(Qe(t,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=Cn(e,"lvl"),a=o?ty(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:n,override:{}}:{ilvl:n,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function fv(e){let n=Qe(e,"numId");if(n===void 0||n.length===0||n.length>64)return null;let t=Cn(e,"abstractNumId"),r=t?Qe(t,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!Qa(a,"lvlOverride"))continue;if(o.size>=ny)break;let i=uv(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:n,abstractNumId:r,overrides:o}}function pv(e){let n=new Map,t=new Map;if(!e)return {abstractNums:n,nums:t};let r=0,o=0;for(let a of e.children){if(Qa(a,"abstractNum")){if(r>=mu)continue;r+=1;let i=cv(a);i&&!n.has(i.abstractNumId)&&n.set(i.abstractNumId,i);continue}if(Qa(a,"num")){if(o>=mu)continue;o+=1;let i=fv(a);i&&!t.has(i.numId)&&t.set(i.numId,i);}}return {abstractNums:n,nums:t}}function mv(e,n,t){let r=new Set([n.abstractNumId]),o=n;for(let a=0;a<tv;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let l=t(i);if(l===void 0)return null;let s=e.nums.get(l);if(!s)return null;let d=e.abstractNums.get(s.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function ry(e,n){let t=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=mv(e,a,n);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),t=true);}return t?{abstractNums:r,nums:e.nums}:e}function Wo(e,n,t){if(t<0||t>8)return null;let r=e.nums.get(n);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(t),i=a?.level??o.levels.get(t);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var gu=Object.freeze({abstractNums:new Map,nums:new Map});function gv(e,n){let t=e.nums.get(n),r=[];for(let o=0;o<=8;o+=1){let a=Wo(e,n,o);if(!a){r.push(1);continue}let i=t?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function hv(e,n,t){let r=[];for(let o=0;o<=8;o+=1){let a=Wo(e,n,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...t]}}function yv(e,n){if(n===0)return null;if(n===void 0)return e-1;let t=n-1;return t>=e?null:t}function hu(e){let n=new Map,t=new Map,r=new Map,o=a=>{let i=n.get(a);i||(i=[0,0,0,0,0,0,0,0,0],n.set(a,i));let l=t.get(a);l||(l=[false,false,false,false,false,false,false,false,false],t.set(a,l));let s=r.get(a);return s||(s=gv(e,a),r.set(a,s)),{counters:i,initialized:l,starts:s}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let l=Wo(e,a,i);if(!l)return null;let{abstractNumId:s,level:d}=l,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=hv(e,a,f);for(let k=i+1;k<=8;k+=1){let v=Wo(e,a,k);if(!v)continue;let L=yv(k,v.level.lvlRestart);L!==null&&i<=L&&(u[k]=false);}let m=f[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let g=c.slice(),x=u.slice(),h=g.map((k,v)=>x[v]?k:f[v]??1),b=d.isLgl?p.map(k=>k==="bullet"||k==="none"?k:"decimal"):p,P=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:gc(d.lvlText,h,b);return {abstractNumId:s,numId:a,ilvl:i,level:d,counters:g,markerText:P}}}}var xu=new WeakMap;function iF(e,n){let t=n.dependencyKeys.size===0||[...n.dependencyKeys].every(r=>r===g.story);xu.set(e,{preservesNumberedSequence:n.impact==="text-local"&&!n.structural&&n.created.size===0&&n.deleted.size===0&&t});}function xv(e){let n=xu.get(e);return xu.delete(e),n}function Sv(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 Su(e){return e.kind!=="textValue"}function oy(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function as(e,n){for(let t of e.children)if(Su(t)&&t.localName===n)return t}function Ru(e){let n=null;for(let t of e){if(!Su(t))continue;let r=as(t,"numPr");if(!r)continue;let o=as(r,"ilvl"),a=as(r,"numId"),i=a?oy(a,"val"):void 0,l=o?oy(o,"val"):"0";if(!i||i==="0"){n=null;continue}if(i.length>64){n=null;continue}let s=/^\d{1,2}$/.test(l??"")?Number(l):0;if(s<0||s>8){n=null;continue}n={numId:i,ilvl:s};}return n}function Rv(e,n){let t=new Set,r=e.styles.get(n);for(let o=0;r!==void 0&&o<_l;o+=1){if(t.has(r.styleId))return;t.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?Ru([a]):null;if(i)return i.numId;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var yu=new WeakMap;function ei(e,n){if(!n)return e;let t=yu.get(e);if(t&&t.styleCascade===n)return t.linked;let r=ry(e,a=>Rv(n,a)),o={styleCascade:n,linked:r};return yu.set(e,o),yu.set(r,o),r}function ay(e){return Number.isFinite(e)?e>Jn?Jn:e<-Jn?-Jn:e:0}function iy(e){let n=null;for(let t of e){if(t.localName!=="ind")continue;let r=t.attributes?.hanging,o=t.attributes?.firstLine;r===void 0&&o===void 0||(n={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?ay(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?ay(Number(o)/20):0});}return n}function ly(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.left!==void 0||n.attributes?.start!==void 0))}function sy(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.right!==void 0||n.attributes?.end!==void 0))}function fy(e,n,t=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=$a(n),a=$a(t),i={hanging:e.hanging,firstLine:e.firstLine},l=ly(t)?a.left:r.left?e.left:ly(n)?o.left:e.left,s=sy(t)?a.right:r.right?e.right:sy(n)?o.right:e.right,d=iy(t)??(r.firstLineOffset?i:iy(n)??i);return {left:l,right:s,...d}}function wu(e,n=8){let t=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){t.push(i);continue}if(!(i.kind!=="table"||a>=n)){for(let l of qf(i.children))if(l.kind==="tableRow")for(let s of qf(l.children)){if(s.kind!=="tableCell")continue;let d=rc$1(s.children);r(d,a+1);}}}};return r(e,0),t}var dy=new WeakMap;function py(e,n){let t=dy.get(e);if(t&&t.styleCascade===n)return t;let r=e.children.find(s=>s.kind==="paragraphProperties"),o=n?Ho(n,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&Su(r)?as(r,"rPr"):void 0,l={styleCascade:n,numPr:Ru(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:Tn(r),inheritedMarkProps:o?o.markRunProperties:Tn(i),perLevel:new WeakMap};return dy.set(e,l),l}function is(e,n,t,r){let o=new Map;if(n.nums.size===0)return o;let a=ei(n,t),i=hu(a);for(let l of wu(e)){let s=py(l,t),d=s.numPr;if(!d)continue;let c=i.advance(d.numId,d.ilvl);if(!c)continue;let u=s.perLevel.get(c.level);if(!u){let x=fy(c.level.indent,s.inheritedParagraphProperties,s.directProps),h=Nt(s.inheritedMarkProps,c.level.runProperties,t);u={indent:x,markerStyle:Ae(h,t?.themeFonts)},s.perLevel.set(c.level,u);}let{indent:f,markerStyle:p}=u,m=So(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,Sv(p)].join("|");o.set(l.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 my=new WeakMap,gy=new WeakMap;function cy(e,n,t){let r=t?gy.get(t):my.get(n);if(r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable)return r}function wv(e,n,t){n?gy.set(n,t):my.set(e,t);}function hy(e,n,t){if(e.listItems===void 0){let i=cy(e,n,t);if(i&&t===void 0)return {...e,numberingIndex:i.linkedIndex,...i.listItems?{listItems:i.listItems}:{}}}let r=e.listItems===void 0?cy(e,n,t):void 0,o=r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable?r.linkedIndex:ei(e.numberingIndex??gu,e.styleCascade),a=e.listItems??(o.nums.size>0?Tv(n,e.numberingIndex,o,e.styleCascade,e.isFontAvailable,t):void 0);return e.listItems===void 0&&wv(n,t,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:e.isFontAvailable,linkedIndex:o,listItems:a}),{...e,numberingIndex:o,...a?{listItems:a}:{}}}function Br(e,n){return hy(e,n,void 0)}function yy(e,n,t){return hy(e,n,t)}var uy=new WeakMap,Pv=Object.freeze([]);function Iv(e,n){let t=uy.get(e);if(t&&t.styleCascade===n)return t.numbered;let r=wu([e]).filter(a=>py(a,n).numPr!==null),o=r.length>0?r:Pv;return uy.set(e,{styleCascade:n,numbered:o}),o}var Vo=new WeakMap,bu=new WeakMap;function vv(e,n){return e.length===n.length&&e.every((t,r)=>{let o=n[r];if(!o||t.id!==o.id)return false;let a=t.children.find(l=>l.kind==="paragraphProperties"),i=o.children.find(l=>l.kind==="paragraphProperties");return a===i})}function Tv(e,n,t,r,o,a){let i=e[0],l=e[e.length-1],s=a?bu.get(a):(i?Vo.get(i):void 0)??(l?Vo.get(l):void 0);if((a?xv(a):void 0)?.preservesNumberedSequence&&s&&s.rawIndex===n&&s.styleCascade===r&&s.isFontAvailable===o)return s.listItems;let c=new Array(e.length),u=s!==void 0&&s.rawIndex===n&&s.styleCascade===r&&s.isFontAvailable===o&&s.blocks.length===e.length;for(let m=0;m<e.length;m+=1){let g=e[m],x=s&&s.blocks[m]===g?s.numberedByBlock[m]:Iv(g,r);c[m]=x,u&&!vv(x,s.numberedByBlock[m])&&(u=false);}if(s&&u){let m={...s,blocks:e,numberedByBlock:c};return a?bu.set(a,m):(i&&Vo.set(i,m),l&&l!==i&&Vo.set(l,m)),s.listItems}let f=is(e,t,r,o),p={rawIndex:n,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?bu.set(a,p):(i&&Vo.set(i,p),l&&l!==i&&Vo.set(l,p)),f}function ls(e,n,t,r){if((!e.markerText||e.indent.hanging<=0&&n<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=Math.min(0,o),l=Math.max(i,o-a),s=Math.max(a,n),d=l;return e.markerAlign==="right"?d=o-n:e.markerAlign==="center"&&(d=l+(s-n)/2),d<i&&(d=i),{x:d,y:t,width:Math.max(n,0),height:r}}function Cv(e,n,t=mo,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=n.measure(e.markerText,e.markerStyle),a=ls(e,o,0,0);if(!a)return 0;let i=e.indent.left,l=a.x+a.width;return e.suffix==="nothing"?l-i:e.suffix==="space"?l+n.measure(" ",e.markerStyle)-i:l<=i?0:go(t,l,r).positionPt-i}function ss(e,n,t,r,o){return e?Cv(e,t,r,o===void 0?void 0:n.left+o):n.hanging>0?-n.hanging:n.firstLine}function ds(e,n,t,r=0){if(!e||!e.markerText||!t)return;let o=n.measure(e.markerText,e.markerStyle),a=ls(e,o,t.y,t.height);if(a)return {text:e.markerText,style:e.markerStyle,box:{x:a.x+r,y:a.y,width:a.width,height:a.height},level:e.ilvl,numId:e.numId,numFmt:e.numFmt}}var by=new WeakMap,xy=new WeakMap,Sy=new WeakMap,Ry=new WeakMap;function wy(e){let n=Ry.get(e);if(n)return n;let t=new Set,r=[];for(let o of Xe(e)){for(let a of o.lines)for(let i of ln(a))t.has(i.paragraphId)||(t.add(i.paragraphId),r.push(i.paragraphId));o.lines.length===0&&!t.has(o.paragraphId)&&(t.add(o.paragraphId),r.push(o.paragraphId));}return Ry.set(e,r),r}function Mr(e){let n=by.get(e);if(n)return n;let t=new Set,r=[];for(let o of e.pages)for(let a of wy(o))t.has(a)||(t.add(a),r.push(a));return by.set(e,r),r}function Lr(e){let n=xy.get(e);if(n)return n;let t=new Map;for(let[r,o]of Mr(e).entries())t.set(o,r);return xy.set(e,t),t}function Py(e){let n=Sy.get(e);if(n)return n;let t=new Set,r=[],o=a=>{for(let i of Rn(a)){for(let l of i.lines)for(let s of ln(l))t.has(s.paragraphId)||(t.add(s.paragraphId),r.push(s.paragraphId));i.lines.length===0&&!t.has(i.paragraphId)&&(t.add(i.paragraphId),r.push(i.paragraphId));}};for(let a of e.pages){for(let i of wy(a))t.has(i)||(t.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 l of i.notes)o(l.fragments);}}return Sy.set(e,r),r}var Iy=new WeakMap;function Pu(e){let n=Iy.get(e);if(n)return n;let t=[...Xe(e)];for(let r of [e.header,e.footer])r&&t.push(...Rn(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)t.push(...Rn(o.fragments));return Iy.set(e,t),t}var vy=new WeakMap;function ln(e){let n=vy.get(e);if(n)return n;let t={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)?kv(e):[t];return vy.set(e,o),o}function kv(e){let n=[];for(let t of e.spans){let r=n[n.length-1];if(r&&r.paragraphId===t.range.paragraphId){n[n.length-1]={...r,start:Math.min(r.start,t.range.start),end:Math.max(r.end,t.range.end),spans:[...r.spans,t]};continue}n.push({paragraphId:t.range.paragraphId,start:t.range.start,end:t.range.end,spans:[t],drawings:[]});}return n.map(t=>({...t,drawings:(e.drawings??[]).filter(r=>r.paragraphId===t.paragraphId)}))}function St(e,n){return ln(e).find(t=>t.paragraphId===n)??null}function Fr(e,n,t,r){let o=Lr(e),a=o.get(n.paragraphId)??-1,i=o.get(t.paragraphId)??-1,l=o.get(r.paragraphId)??-1;if(a<i||a>l)return null;let s=a===i?Math.max(n.start,t.offset):n.start,d=a===l?Math.min(n.end,r.offset):n.end;return d>s?{start:s,end:d}:null}function bF(e,n){for(let t of e.pages)for(let r of Xe(t)){let o=lr(r).indexOf(n);if(o>0)return lr(r).slice(0,o).reverse()}return []}var Ty=new WeakMap;function lr(e){let n=Ty.get(e);if(n)return n;let t=[];for(let r of e.lines??[])for(let o of ln(r))t.includes(o.paragraphId)||t.push(o.paragraphId);return t.includes(e.paragraphId)||t.push(e.paragraphId),Ty.set(e,t),t}function Ov(e,n){let t=lr(e);if(t.length===1)return t[0]===n?{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=St(a,n);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function Iu(e,n,t){let r=Ov(e,n);return r!==null&&t>=r.start&&t<r.end}function xF(e,n){for(let t of e.pages)for(let r of Pu(t))if(r.paragraphId===n)return r;for(let t of e.pages)for(let r of Pu(t))if(lr(r).includes(n))return r;return null}var Ou=8,Cy=new WeakMap;function us(e){let n=Cy.get(e);if(n)return n;let t=[],r=new Map,o=new Map,a=new Map,i=new Map,l=new Map,s=(c,u)=>{for(let f of c){if(f.kind==="paragraph"){if(!u)for(let p of f.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of f.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let 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 x=l.get(g);x&&i.set(m,x);}else l.set(g,{row:p,cell:m});}s(m.blocks,u||p.isHeaderRepeat);}}}};for(let c of e.pages)t.push(c.box.y),s(c.fragments,false);let d={pageTops:t,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return Cy.set(e,d),d}function ri(e,n){let t=us(e).pageTops;if(t.length===0)return -1;let r=0,o=t.length-1,a=0;for(;r<=o;){let i=r+o>>1;t[i]<=n?(a=i,r=i+1):o=i-1;}return a}function Bv(e,n){let t=e.pages[ri(e,n.y)];if(!t)return false;for(let r of [t.header,t.footer])if(r&&ps(r.box,n))return true;return false}function Cu(e,n,t,r=false){if(!e||e.length===0)return null;let o=[...e].sort((a,i)=>a.behindDocument!==i.behindDocument?a.behindDocument?-1:1:i.relativeHeight-a.relativeHeight);for(let a of o){if(r&&a.behindDocument||!ni(a,n))continue;let i={paragraphId:a.anchorParagraphId,offset:a.start};return {position:i,caret:{position:i,x:a.x,y:a.y,height:a.height,lineId:"",pageIndex:t},pageIndex:t,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function fs(e,n,t,r={}){let o=e.pages[n];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??Ou,measurer:r.measurer},i=ky(e,o.index,t),l=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),s=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=Cu(l,t,a.pageIndex);if(d)return {...d,contentControlId:i};let c=cs(o.fragments,t,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=Cu(s,t,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let f=1;f<e.pages.length;f+=1)for(let p of [n-f,n+f]){let m=e.pages[p];if(!m)continue;let g=cs(m.fragments,t,{...a,pageIndex:m.index},null);if(g)return {...g,contentControlId:ky(e,m.index,t)}}return null}function TF(e,n,t,r,o={}){let a=e.pages[n];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??Ou,measurer:o.measurer};return cs(t,r,i,null)}function Mv(e,n,t={}){let r=e.pages[ri(e,n.y)];if(!r)return null;for(let o of [r.header,r.footer]){if(!o?.anchoredDrawings||o.anchoredDrawings.length===0)continue;let a=Object.freeze({x:n.x-o.box.x,y:n.y-o.box.y}),i=Cu(o.anchoredDrawings,a,r.index);if(i)return i}return fs(e,r.index,{x:n.x-r.contentBox.x,y:n.y-r.contentBox.y},t)}function ps(e,n){return n.x>=e.x&&n.x<e.x+e.width&&n.y>=e.y&&n.y<e.y+e.height}function ms(e,n,t){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===n&&ps(i.box,t)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function ky(e,n,t){return ms(e,n,t)?.id??null}function ku(e,n,t){let r=Math.max(e.x-n.x,0,n.x-(e.x+e.width)),o=Math.max(e.y-n.y,0,n.y-(e.y+e.height));return r+o*t}function Lv(e,n,t){return e.kind!=="table"||Math.max(e.box.y-n.y,0,n.y-(e.box.y+e.box.height))>0?ku(e.box,n,t):0}function cs(e,n,t,r){if(e.length===0)return null;let o=null;for(let i of e){if(!ps(i.box,n))continue;o=i;let l=Oy(i,n,t,r);if(l)return l;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:Lv(i,n,t.verticalWeight)})).sort((i,l)=>i.score-l.score);for(let{block:i}of a){let l=Oy(i,n,t,r);if(l)return l}return null}function Oy(e,n,t,r){return e.kind==="paragraph"?Fv(e,n,t,r,ps(e.box,n)):jv(e,n,t)}function Fv(e,n,t,r,o){let a=Ev(e.lines,n.y);if(!a)return null;let i=_v(a,n.x,n.y,t),l=Av(a,n.x),s=Math.min(Math.max(i.offset,l.start),l.end),d={paragraphId:l.paragraphId,offset:s},c=oi(a,s,t.measurer,l);return {position:d,caret:{position:d,x:i.x,y:c.y,height:c.height,lineId:a.id,pageIndex:t.pageIndex},pageIndex:t.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&n.y>=a.box.y&&n.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?Nv(i.drawing):null}}function Ev(e,n){if(e.length===0)return null;for(let o of e)if(n>=o.box.y&&n<o.box.y+o.box.height)return o;let t=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=n<o.box.y?o.box.y-n:n-(o.box.y+o.box.height);a<r&&(r=a,t=o);}return t}function Nv(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function Av(e,n){let t=ln(e),r=t[0];for(let o of t){let a=o.spans[0];if(a===void 0)continue;let i=o.spans[o.spans.length-1];if(n>=a.box.x&&(r=o),n<i.box.x+i.box.width)break}return r}function Dv(e,n,t){for(let r of t??e.drawings??[])if(r.start===n||r.start+1===n)return r;return null}function ni(e,n){let t=e.hitBounds;return n.x<t.x||n.x>=t.x+t.width||n.y<t.y||n.y>=t.y+t.height?false:Oc(n.x,n.y,e.geometry)}function _v(e,n,t,r){let o=e.spans;for(let s of e.drawings??[])if(ni(s,{x:n,y:t}))return {offset:s.start,x:s.hitBounds.x,withinSpan:true,drawing:s};if(o.length===0&&(e.drawings?.length??0)>0){let s=e.drawings[0];if(n<=s.advanceStart)return {offset:e.range.start,x:s.advanceStart,withinSpan:false,drawing:s};let d=e.drawings[e.drawings.length-1];if(n>=d.advanceEnd)return vu(e,d.advanceEnd,r);for(let c of e.drawings??[])if(n>=c.advanceStart&&n<c.advanceEnd){let u=n>=c.x+c.width/2;return {offset:u?c.start+1:c.start,x:u?c.advanceEnd:c.advanceStart,withinSpan:ni(c,{x:n,y:t}),drawing:c}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=o[0];if(n<=a.box.x)return {offset:e.range.start,x:a.box.x,withinSpan:false};let i=o[o.length-1],l=i.box.x+i.box.width;if(n>=l)return vu(e,l,r);for(let s of o)if(n>=s.box.x&&n<s.box.x+s.box.width)return Hv(s,n,r);for(let s=0;s<o.length;s+=1){let d=o[s];for(let c of e.drawings??[]){if(n>=c.advanceStart&&n<c.advanceEnd){let u=ni(c,{x:n,y:t}),f=n>=c.x+c.width/2;return {offset:f?c.start+1:c.start,x:f?c.advanceEnd:c.advanceStart,withinSpan:u,drawing:c}}if(!(c.start<=d.range.start&&c.hitBounds.x+c.hitBounds.width<=d.box.x)){if(ni(c,{x:n,y:t}))return {offset:c.start,x:c.hitBounds.x,withinSpan:true,drawing:c};if(n<d.box.x&&n>=c.hitBounds.x+c.hitBounds.width)return {offset:c.start+1,x:c.hitBounds.x+c.hitBounds.width,withinSpan:false,drawing:c};if(n<c.hitBounds.x&&n>=(o[s-1]?.box.x??e.contentX))return {offset:c.start,x:c.hitBounds.x,withinSpan:false,drawing:c}}}if(n<d.box.x){let c=o[s-1],u=c.box.x+c.box.width;return n-u<=d.box.x-n?{offset:c.range.end,x:u,withinSpan:false}:{offset:d.range.start,x:d.box.x,withinSpan:false}}}return vu(e,l,r)}function vu(e,n,t){let r=Ny(t.layout,e);if(r===e.range.end)return {offset:r,x:n,withinSpan:false};for(let o=e.spans.length-1;o>=0;o-=1){let a=e.spans[o];if(r<a.range.start)continue;let i=r-a.range.start,l=t.measurer?ti(a,i,t.measurer):a.box.width*(a.range.end>a.range.start?i/(a.range.end-a.range.start):0);return {offset:r,x:a.box.x+l,withinSpan:false}}return {offset:r,x:n,withinSpan:false}}function Ny(e,n){let t=n.range.end;if(t>n.range.start&&Tu(n,t-1)===Cc$1)return t-1;if(us(e).lastLineIdOfParagraph.get(n.range.paragraphId)===n.id)return t;let r=t;for(r>n.range.start&&Tu(n,r-1)===`
|
|
15
|
+
`&&(r-=1);r>n.range.start&&Tu(n,r-1)===" ";)r-=1;return r}function Tu(e,n){for(let t of e.spans)if(!(n<t.range.start||n>=t.range.end))return t.text.length!==t.range.end-t.range.start?null:t.text[n-t.range.start]??null;return null}var By=new WeakMap,My=new WeakMap;function Ly(e){let n=Dd(),t=By.get(e);if(t&&t.epoch===n)return t.boundaries;let r=[0];for(let o of Yn(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),By.set(e,{epoch:n,boundaries:r}),r}function ti(e,n,t){let r=e.caretEdges;if(r&&n>=0&&n<r.length)return r[n];let o=My.get(t);o||(o=new WeakMap,My.set(t,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(n);if(i!==void 0)return i;let l=n<=0?0:_n(e.text.slice(0,n),e.style,t);return a.set(n,l),l}function Bu(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function gs(e,n,t){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(n-e.range.start,r)),a=e.caretEdges;return a&&o<a.length?e.box.x+a[o]:!t||Bu(e)?e.box.x+e.box.width*(o/r):e.box.x+ti(e,o,t)}function oi(e,n,t,r){let o=Dv(e,n,r?.drawings);if(o)return {x:n>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,c=Math.max(0,e.box.height-d-(e.trailingSpacing??0));if(c<=0&&e.box.height<=0){let u=Math.max(0,e.baseline);return {x:e.contentX,y:e.box.y-u,height:u}}return {x:e.contentX,y:e.box.y+d,height:c}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(n>c.range.start&&n<c.range.end){i=c;break}if(n===c.range.end){let u=a[d+1];if(u&&u.range.start===n&&Bu(c)){i=u;break}if(u&&u.range.start===n&&c.text.endsWith(" ")&&u.box.x-(c.box.x+c.box.width)>.25){i=u;break}i=c;}else n>c.range.end&&(i=c);}let l=gs(i,n,t),s=t?.lineMetrics(i.style);return !s||s.height<=0?{x:l,y:e.box.y,height:e.box.height}:{x:l,y:e.box.y+e.baseline-s.baseline-Rc(i.style),height:s.height}}function Hv(e,n,t){let r=n-e.box.x,o=e.range.end-e.range.start;if(o<=0||Bu(e)){let p=r>e.box.width/2;return {offset:p?e.range.end:e.range.start,x:p?e.box.x+e.box.width:e.box.x,withinSpan:true}}if(!t.measurer){let p=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),m=Math.round(p*o),g=Ly(e),x=g[0],h=Number.POSITIVE_INFINITY;for(let b of g){let P=Math.abs(b-m);P<h&&(h=P,x=b);}return {offset:e.range.start+x,x:e.box.x+e.box.width*(x/o),withinSpan:true}}let a=Ly(e),i=1,l=a.length-1;for(;i<l;){let p=i+l>>1;ti(e,a[p],t.measurer)<r?i=p+1:l=p;}let s=a[i],d=a[i-1],c=ti(e,s,t.measurer),u=ti(e,d,t.measurer),f=r-u<=c-r;return {offset:e.range.start+(f?d:s),x:e.box.x+(f?u:c),withinSpan:true}}function Fy(e,n,t,r){if(e.length===0)return null;for(let i of e){let l=t(i);if(n>=l&&n<l+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let l=t(i),s=n<l?l-n:n-(l+r(i));s<a&&(a=s,o=i);}return o}function zv(e,n,t,r){return {tableId:n.tableId,rowId:t.id,cellId:r.id,rowIndex:us(e).rowIndexById.get(t.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function jv(e,n,t,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=Fy(a,n.y,d=>d.box.y,d=>d.box.height);if(l){let d=Fy(l.cells,n.x,c=>c.box.x,c=>c.box.width);d&&i.push(Gv(t,l,d));}let s=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||s.push({entry:{row:d,cell:c},score:ku(c.box,n,t.verticalWeight)}));s.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...s.map(u=>u.entry)]){let u=zv(t.layout,e,d,c),f=cs(c.blocks,n,t,u);if(f)return f}return null}function Gv(e,n,t){return t.blocks.length>0?{row:n,cell:t}:us(e.layout).mergeOriginOf.get(t)??{row:n,cell:t}}function Ay(e,n){let t=n.paintBounds;return t.width<=0||t.height<=0?null:Object.freeze({pageIndex:e,x:t.x,y:t.y,width:t.width,height:t.height,record:n})}function Wv(e,n,t){for(let r of n.lines)for(let o of r.drawings??[])if(o.drawingNodeId===t)return Ay(e,o);return null}function Dy(e,n,t){if(n.kind==="paragraph")return Wv(e,n,t);for(let r of n.rows)for(let o of r.cells)for(let a of o.blocks){let i=Dy(e,a,t);if(i)return i}return null}function Ey(e,n,t){for(let r of n){let o=Dy(e,r,t);if(o)return o}return null}function Vv(e,n){for(let t of e.pages){for(let o of t.anchoredDrawings??[])if(o.drawingNodeId===n)return Ay(t.index,o);let r=Ey(t.index,t.fragments,n);if(r)return r;for(let o of [t.header,t.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==n)continue;let l=i.paintBounds;return l.width<=0||l.height<=0?null:Object.freeze({pageIndex:t.index,x:o.box.x+l.x-t.contentBox.x,y:o.box.y+l.y-t.contentBox.y,width:l.width,height:l.height,record:i})}let a=Ey(t.index,o.fragments,n);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:t.index,x:t.header?.box.x===o.box.x||t.footer?.box.x===o.box.x?o.box.x+i.x-t.contentBox.x:a.x,y:o.box.y+i.y-t.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}function $v(e){let n=[0],t=0;for(let r of e)t+=r,n.push(t);return n}function Xv(e,n){let t=n.get(e.id);return t===void 0&&(e.isHeaderRepeat?t=0:(t=n.size,n.set(e.id,t))),{...e,rowIndex:t}}function hs(e,n,t,r){return {...e,nestingDepth:t,columnEdges:e.columnEdges??$v(n),rows:e.rows.map(o=>Xv(o,r))}}var _y=new WeakMap,$o=4,Mu=6,Hy=14,Yv={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function Lu(e,n,t,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let l of a.rows){o({pageIndex:n,table:a,row:l,rowOrdinal:l.rowIndex,nestingDepth:i,editable:!l.isHeaderRepeat,pageContentBox:t});for(let s of l.cells)Lu(s.blocks,n,t,i+1,o);}}}function OF(e){let n=_y.get(e);if(n)return n;let t=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o],i=l=>{t.push(l);};Lu(a.fragments,o,a.contentBox,0,i);for(let l of [a.header,a.footer])l&&Lu(l.fragments,o,l.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(t)});return _y.set(e,r),r}function BF(e){let n=e.sourceRevision;switch(e.kind){case "rowDivider":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function MF(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 LF(e,n){if(n.kind==="insertRow"){for(let t of e.occurrences)if(t.pageIndex===n.pageIndex&&t.table.tableId===n.tableId&&t.row.id===n.rowId&&t.row.isHeaderRepeat===n.isHeaderRepeat)return t.editable?{kind:"insertRow",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:t.table.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth}:null;return null}for(let t of e.occurrences)if(t.pageIndex===n.pageIndex&&t.table.tableId===n.tableId&&t.row.id===n.rowId&&t.row.isHeaderRepeat===n.isHeaderRepeat&&t.editable)for(let r=0;r<t.table.columnEdges.length-1;r+=1){let o=ai(t.row,r);if(o===n.gridColumnId)return {kind:"insertColumn",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:t.table.tableId,rowId:t.row.id,gridColumnId:o,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth}}return null}function ai(e,n){for(let t of e.cells)if(t.gridColumn===n)return t.gridColumnId??null;return null}function Kv(e,n,t,r,o){if(!e.pages[n.pageIndex])return null;let i=n.pageContentBox,l=t-i.x-o,s=r-i.y,d=n.table,c=l-d.box.x,u=s-d.box.y;return c<-$o||u<-Hy||c>d.box.width+$o||u>d.box.height+Mu?null:{x:c,y:u}}function Uv(e,n,t,r){if(n.row.isHeaderRepeat)return null;let o=n.table,a=n.row.box.y-o.box.y+n.row.box.height;if(!o.columnEdges.slice(1).some(s=>Math.abs(t-s)<=$o)&&t>=0&&t<=o.box.width&&Math.abs(r-a)<=$o)return {kind:"rowDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeY:a};if(r<n.row.box.y-n.table.box.y||r>n.row.box.y-n.table.box.y+n.row.box.height)return null;for(let s=1;s<o.columnEdges.length-1;s+=1){let d=o.columnEdges[s];if(Math.abs(t-d)>$o)continue;let c=ai(n.row,s-1),u=ai(n.row,s);if(!(!c||!u))return {kind:"columnDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:n.row.id,leftGridColumnId:c,rightGridColumnId:u,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:d,sheetY:n.pageContentBox.y+o.box.y+r}}let l=o.columnEdges.at(-1);if(Math.abs(t-l)<=$o){let s=o.columnEdges.length-2,d=ai(n.row,s);return d?{kind:"rightEdge",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:n.row.id,gridColumnId:d,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:l,sheetY:n.pageContentBox.y+o.box.y+r}:null}return null}function FF(e,n,t,r,o=0,a){let i=a??ri(r,t),l=i>=0?o:0,s=null,d=-1,c=-1,u=f=>{if(!f)return;let p=Yv[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,s=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=Kv(r,f,n,t,l);if(!p||(u(Uv(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<=Mu&&Math.abs(p.y-(m+f.row.box.height/2))<=f.row.box.height/2+Mu&&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 x=f.table.columnEdges[g],h=f.table.columnEdges[g+1],b=(x+h)/2;if(Math.abs(p.x-b)>(h-x)/2+2||p.y>Hy)continue;let P=ai(f.row,g);if(P){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:P,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return s}var zy=1048576;function Fu(e=zy){let n=e|0;return {cellsRemaining:n>0?n:0}}function ys(e,n,t,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=i?new Set:null,s=i,c=p=>{let m=a.get(p);m&&(o.set(m.id,m.span),a.delete(p));},u=()=>t!==void 0&&t.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}s&&p.isHeaderRepeat!==true&&(s=false,f(),l?.clear());let m=new Set,g=false;for(let x of p.cells){if(t){if(t.cellsRemaining<=0){g=true;break}t.cellsRemaining-=1;}let h=Math.max(0,Math.min(x.gridColumn|0,1023));if(m.add(h),x.vMergeContinue){let b=a.get(h);b?b.span+=1:l&&!l.has(h)&&(a.set(h,{id:x.id,span:1}));}else c(h),a.set(h,{id:x.id,span:1});l?.add(h);}if(g){f();break}for(let x of [...a.keys()])m.has(x)||c(x);}return f(),o}var bs=.001;function qv(e,n){return {...e,height:{rule:"auto"},cells:[n]}}function Zv(e){let n=ys(e),t=[],r=new Map;for(let o=0;o<e.length;o+=1)for(let a of e[o].cells){let i=n.get(a.id);if(i===void 0||i<2)continue;let l=Math.min(o+i-1,e.length-1);if(l<=o)continue;t.push({span:{headRow:o,endRow:l,headCellId:a.id},cell:a});let s=r.get(o);s?s.add(a.id):r.set(o,new Set([a.id]));}return {heads:t,headIdsByRow:r}}function Jv(e,n){if(e.length===0||!e.some(S=>S.cells.some(C=>C.vMergeContinue)))return null;let{heads:t,headIdsByRow:r}=Zv(e);if(t.length===0)return null;let o=new Map(t.map(S=>[S.span,S])),a=new Map;for(let S of t){let C=a.get(S.span.headRow);C?C.push(S.span):a.set(S.span.headRow,[S.span]);}for(let S of a.values())S.sort((C,T)=>T.endRow-C.endRow);let i=new Map,l=new Map,s=new Map,d=new Map,c=new Set,u=new Set,f=new Set,p=new Set,m=new Map,g=new Map,x=(S,C,T)=>{let N=new Set;for(let F of r.get(S)??[])(f.has(F)||F===C)&&N.add(F);let M=T===void 0?"":`@${T.toFixed(2)}`,y=`${S}${M}\0${[...N].sort().join("\0")}`,G=i.get(y);if(G!==void 0)return G;let D=n(e[S],N,T);return i.set(y,D),D},h=(S,C)=>{let T=C===void 0?S:`${S.headCellId}@${C.toFixed(2)}`,N=l.get(T);if(N!==void 0)return N;let M=o.get(S),y=n(qv(e[S.headRow],M.cell),void 0,C);return l.set(T,y),y},b=(S,C,T)=>x(S,C,T)+(s.get(S)??0),P=S=>{for(let C=S.headRow+1;C<=S.endRow;C+=1)if(r.has(C))return true;return false},k=(S,C)=>{let T=0;for(let N=S.headRow;N<=S.endRow;N+=1)T+=b(N,S.headCellId,C===void 0?void 0:C+T);return T},v=(S,C)=>{let T=new Map,N=0;for(let M=S.headRow;M<=S.endRow;M+=1){let y=b(M,S.headCellId,C===void 0?void 0:C+N);T.set(M,y),N+=y;}return T},L=S=>{for(let C=S.endRow;C>=S.headRow;C-=1)if(e[C].height.rule!=="exact")return C},w=(S,C)=>{if(P(S)||p.has(S.headRow)&&!u.has(S))return Number.POSITIVE_INFINITY;let T=k(S,C);return L(S)===void 0?T:Math.max(T,h(S,C))};return {spansAt:S=>a.get(S)??[],heightOf:w,accept:(S,C)=>{if(u.has(S)||P(S)||p.has(S.headRow))return;let T=v(S,C),N=0;for(let D of T.values())N+=D;let M=L(S),y=h(S,C);if(M===void 0&&y>N+bs)return;let G=M===void 0?0:y-N;u.add(S),f.add(S.headCellId),p.add(S.headRow),G>bs&&(s.set(M,(s.get(M)??0)+G),T.set(M,(T.get(M)??0)+G));for(let[D,F]of T)c.add(D),d.set(D,Math.max(d.get(D)??0,F));m.set(S,C),g.set(S,G>bs?M:void 0);},withdrawAt:S=>{for(let C of a.get(S)??[]){if(!u.delete(C))continue;f.delete(C.headCellId),p.delete(C.headRow),m.delete(C);let T=g.get(C);T!==void 0&&s.delete(T),g.delete(C);for(let N=C.headRow;N<=C.endRow;N+=1)c.delete(N),d.delete(N);}},rowOptions:S=>{if(!c.has(S))return;let C;for(let T of a.get(S)??[])u.has(T)&&(C??=new Map,C.set(T.headCellId,w(T,m.get(T))));return {...C?{detachedSpanHeightPtByCellId:C}:{},heightFloorPt:d.get(S)??b(S)}}}}function jy(e,n,t,r){for(let o of e?.spansAt(n)??[])t+e.heightOf(o,t)>r+bs||e.accept(o,t);return e?.rowOptions(n)}function Gy(e,n,t,r,o){return Jv(e.rows,(a,i,l)=>o(a,e.columnWidthsPt,typeof n=="function"?n():n,t,r,e.cellSpacingPt,i?{detachedSpanHeightPtByCellId:new Map([...i].map(s=>[s,Number.POSITIVE_INFINITY]))}:void 0,l))}function Wy(e,n,t){for(let r of e?.spansAt(n)??[])e.accept(r,t);return e?.rowOptions(n)}function xs(e,n){return {top:e.top+ir(n.top),right:e.right+ir(n.right),bottom:e.bottom+ir(n.bottom),left:e.left+ir(n.left)}}function Qv(e,n,t){return {top:n?{state:"none"}:e.top,left:e.left,bottom:t?{state:"none"}:e.bottom,right:e.right}}function Ss(e,n,t){return !n&&!t?e:{...e,cells:e.cells.map(r=>({...r,borders:Qv(r.borders,n,t)}))}}function eT(e,n,t,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=n.find(l=>l.kind==="paragraph"&&l.id===o.paragraphId);!a||a.kind!=="paragraph"||Ln(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,or({paragraph:a,paragraphId:o.paragraphId,paragraphBox:o.box,lines:o.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(o.box)??o.box,cellBox:t,pageClip:r.pageContentClip(),measurer:r.measurer,...r.layoutTextboxStoryFor?{layoutTextboxStory:r.layoutTextboxStoryFor}:{},...r.displayMode?{displayMode:r.displayMode}:{}}));}}function Rs(e,n){return n===0?[...e]:e.map(t=>t.kind==="table"?{...t,box:{...t.box,y:t.box.y+n},rows:t.rows.map(r=>({...r,box:{...r.box,y:r.box.y+n},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+n},blocks:Rs(o.blocks,n)}))}))}:{...t,box:{...t.box,y:t.box.y+n},...t.shadingBox?{shadingBox:{...t.shadingBox,y:t.shadingBox.y+n}}:{},...t.bottomBorder?{bottomBorder:{...t.bottomBorder,box:{...t.bottomBorder.box,y:t.bottomBorder.box.y+n}}}:{},...t.borders?{borders:t.borders.map(r=>({...r,box:{...r.box,y:r.box.y+n}}))}:{},...t.marker?{marker:{...t.marker,box:{...t.marker.box,y:t.marker.box.y+n}}}:{},lines:t.lines.map(r=>({...r,box:{...r.box,y:r.box.y+n},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+n}})),...r.drawings?{drawings:r.drawings.map(o=>vl(o,0,n))}:{}}))})}function ii(e,n,t,r,o,a,i,l){if(e.length===0)return [];let s=new Map;for(let x of t)for(let h of x.cells)s.set(h.id,h);let d=ys(e,a,o,{pageFragment:true}),c=e.map((x,h)=>({...x,cells:x.cells.map(b=>{let P=d.get(b.id);if(b.vMergeContinue&&P===void 0)return {...b,paintInert:true,rowSpan:1,borders:{},blocks:[]};let k=b.vMergeContinue,v=P??1,L=b.box.height;if(v>1){let T=e[h+v-1];L=T.box.y+T.box.height-b.box.y;}let w=s.get(b.id),S=b.blocks;if(w&&w.vAlign!=="top"&&S.length>0){let T=xs(w.margins,w.borders),N=Number.POSITIVE_INFINITY,M=Number.NEGATIVE_INFINITY;for(let y of S)N=Math.min(N,y.box.y),M=Math.max(M,y.box.y+y.box.height);if(Number.isFinite(N)&&Number.isFinite(M)){let y=L-T.top-T.bottom-(M-N),D=b.box.y+T.top+(y>0?w.vAlign==="center"?y/2:y:0)-N;if(Math.abs(D)>.001){S=Rs(S,D);for(let F of S)F.kind==="paragraph"&&i?.(F.paragraphId,D);}}}let C=Object.freeze({x:b.box.x,y:b.box.y,width:b.box.width,height:L});return w&&l&&(v>1||w.vAlign!=="top"&&S.length>0)&&eT(S,w.blocks,C,l),{...b,...k?{vMergeContinue:false,paintInert:false}:{},rowSpan:v,blocks:S,box:{...b.box,height:L}}})})),u=c.map(x=>x.cells.map(h=>{let b=s.get(h.id);return {gridColumn:h.gridColumn,gridSpan:h.gridSpan,vMergeContinue:h.vMergeContinue,borders:b?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:h.rowSpan??1}})),f=n.columnWidthsPt.length,p=n.tableBorders,m={columnWidthsPt:n.columnWidthsPt,rowBands:c.map(x=>({y:x.box.y,height:x.box.height})),cellBoxes:c.map(x=>x.cells.map(h=>({width:h.box.width,height:h.box.height})))},g=iu(u,p,f,m,void 0,r);return c.map((x,h)=>({...x,cells:x.cells.map((b,P)=>{let k=g[h][P];return b.paintInert||b.vMergeContinue?{...b,borders:{},paintInert:true}:{...b,borders:k}})}))}function $y(e,n,t,r){let o=new Map,a=0,i=l=>{let s=Go(l,n,0,t,r);if(s)for(let d of s.rows)for(let c of d.cells)for(let u of c.blocks)u.localName==="p"?o.set(u.id,a++):u.localName==="tbl"&&i(u);};for(let l of e)l.kind==="paragraph"&&l.paragraph?o.set(l.paragraph.id,a++):l.kind==="table"&&l.table&&i(l.table);return o}var Ps=4096,Vy=1,jn=class extends Error{code;constructor(n,t){super(t),this.name="TablePaginationError",this.code=n;}};function Eu(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}))}function ws(e,n,t){let r=0;for(let o=n;o<t&&o<e.length;o+=1)r+=e[o];return r}function nT(e,n,t,r,o,a,i){let l=e.id,s=o.listItems?.get(l),d=kr(e,t,o.styleCascade,s,i?.tableCellStyle,true),{props:c,indent:u,available:f,alignment:p,spacing:m,lineSpacing:g,bottomBorder:x,borders:h,shading:b,inheritedRunProperties:P,markRunProperties:k,tabStops:v,tabStopsCacheToken:L}=d,w={styleCascade:o.styleCascade,tableCellStyle:i?.tableCellStyle,listItems:o.listItems},S=Ya(d);qc(e,w,S);let C=se=>S!==""&&sh(se,w)===S,T=C(i?.borderNeighbours?.previous),N=C(i?.borderNeighbours?.next),M=T?void 0:h.top,y=N?h.between:x,G=Oa(v,o.defaultTabStopPt),D=G===v?L:xr(G),F=ss(s,u,o.measurer,G,f),E=o.pageExclusionZones?.()??Object.freeze([]),B=o.paragraphOrderIndex?.(l)??Number.MAX_SAFE_INTEGER,R=o.paragraphOrderIndex?Gg(E,B,se=>o.paragraphOrderIndex?.(se)):E,W=jg(R,n,0,{left:0,right:u.left+f+u.right}),A=bt(W),z=A?`${r.toFixed(3)}|${A}`:"",q=Ir({paragraph:e,properties:[...c,...P,...k,{localName:"tabStops",attributes:{token:D}},...s?[{localName:"list",attributes:{token:s.cacheToken}}]:[]],width:f,producer:o.producer,...o.drawingTokenForParagraph?.(e)?{drawingToken:o.drawingTokenForParagraph(e)}:o.drawingLayoutToken?{drawingToken:o.drawingLayoutToken}:{},...z?{exclusionToken:z}:{}});o.cache&&o.onCellBreakKey?.(q);let _=Nl(e,l,u.left,f,o.measurer,o.cache,o.cache?q:null,P,G,o.pageContext,o.styleCascade?(se,de)=>Nt(se,de,o.styleCascade):void 0,{lineSpacing:g,equationCacheToken:o.producer,firstLineOffset:F,marginExtent:{left:0,right:u.left+f+u.right},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:o.bodyPageFields}:{},displayMode:o.displayMode,...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:u.left+f+u.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:u.left+f+u.right,height:Math.max(1,f)}),...W.length>0?{pageExclusionZones:W}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:k}),X=i?.lineStart??0,U=i?.fragmentIndex??0,j=i?.maxBottom??Number.POSITIVE_INFINITY,K=i?.includeAfter??true,pe=i?.includeBottomBorder??true,Fe=()=>s!==void 0||o.displayMode==="all-markup"&&(wr(e).length>0||To(e)!==null),Ie=(i?.collapseHeight??false)&&!Fe(),me=X===0&&!Ie?po(m.before,a):0,ge=n+u.left,Be=X===0&&!Ie?Kt(M):0,we=[],Se=r+me+Be,ye=X,De=false;for(let se=X;se<_.length;se+=1){let de=_[se],Le=se===_.length-1,Ke=Le&&pe&&y&&!Ie?Kt(y):0,ze=Le&&K&&!Ie?m.after:0,fn=Ie?0:W.length>0?xt(Se,de.height,W):de.exclusionSkipBefore??0;if((Ie?Se:Se+fn+de.height+Ke+ze)>j+.001)break;Se+=fn;let Nn=n+u.left+(se===0?F:0),tt=Math.max(1,f-(se===0?F:0)),dr=de.spans.map(je=>({...je,range:{...je.range,paragraphId:l},box:{...je.box,x:je.box.x+n,y:Se}})),jt=Fl(dr,o.measurer,Nn,tt,p,Le,p==="center"||p==="right"?de.width:void 0),na=dr.length>0&&jt.length>0?jt[0].box.x-dr[0].box.x:p!=="left"&&p!=="both"?(()=>{let je=tt-de.width;return je<=0?0:p==="center"?je/2:je})():0,ta=Object.freeze({x:n,y:r,width:t,height:Math.max(0,j-r)}),cr=El(de.drawings.map(je=>Tl(Object.freeze({...je,paragraphId:l,x:n+je.x,advanceStart:n+je.advanceStart,advanceEnd:n+je.advanceEnd,y:Se+je.y,paintBounds:Object.freeze({...je.paintBounds,x:n+je.paintBounds.x,y:Se+je.paintBounds.y}),hitBounds:Object.freeze({...je.hitBounds,x:n+je.hitBounds.x,y:Se+je.hitBounds.y})}),ta)),na);we.push({id:o.nextLineId(l,de.start,se),range:{paragraphId:l,start:de.start,end:de.end},spans:jt,...cr.length>0?{drawings:cr}:{},box:{x:n+u.left,y:Se,width:f,height:Ie?0:de.height},contentX:jt[0]?.box.x??Nn+na,baseline:Ie?Math.max(0,Math.min(de.baseline,i?.collapseBandAbove??0)):de.baseline,leading:Ie?0:de.leading,trailingSpacing:Ie?0:de.trailingSpacing,...de.deletedRanges?{deletedRanges:de.deletedRanges}:{},...de.anchorRevisions?{anchorRevisions:de.anchorRevisions}:{}}),Ie||(Se+=de.height),ye=se+1,De=true;}if(!De)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:X,complete:false,fitted:false};let le=ye>=_.length,_e=we[0].box.y,Ze=Se,be=[],sn,En=_e,dn=Ze,wt=h.left?Pn(h.left):0,Pt=h.right?Pn(h.right):0,cn=h.left?ge-h.left.spacePt-wt:ge,et=h.right?ge+f+h.right.spacePt+Pt:ge+f,ve=Math.max(et-cn,0);if(Be>0&&M){let se=Pn(M),de=_e-M.spacePt-se;be.push({side:"top",edge:M,box:{x:cn,y:de,width:ve,height:se}}),En=de;}if(le&&pe&&y&&!Ie){let se=Pn(y),de=Ze+y.spacePt,Le={x:cn,y:de,width:ve,height:se};N||(sn={edge:y,box:Le}),be.push({side:N?"between":"bottom",edge:y,box:Le}),dn=de+se;}let nn=le&&K&&!Ie?m.after:0,H=T&&X===0?r:En,I=N&&le?dn+nn:dn,V=Math.max(I-H,0);if(h.left&&be.push({side:"left",edge:h.left,box:{x:ge-h.left.spacePt-wt,y:H,width:wt,height:V}}),h.right&&be.push({side:"right",edge:h.right,box:{x:ge+f+h.right.spacePt,y:H,width:Pt,height:V}}),h.bar){let se=Pn(h.bar);be.push({side:"bar",edge:h.bar,box:{x:ge-h.bar.spacePt-se,y:_e,width:se,height:Math.max(Ze-_e,0)}});}let te=dn+nn,re=b===void 0?void 0:h.left||h.right?{x:cn,y:En,width:ve,height:Math.max(dn-En,0)}:Ca(we,ge,f),Z=le&&o.displayMode==="all-markup",ue=Z?wr(e):[],ce=Z?To(e):null,ae=X===0?ds(s,o.measurer,we[0]?{y:we[0].box.y,height:we[0].box.height}:void 0,n):void 0,$e=Gl(e),Pe=$e?jl(we,zl($e)):we,He={kind:"paragraph",id:`${l}#f${U}`,paragraphId:l,fragmentIndex:U,range:{paragraphId:l,start:Pe[0].range.start,end:Pe[Pe.length-1].range.end},props:c,spacing:{before:me,after:nn},indent:u,tabStops:G,...sn?{bottomBorder:sn}:{},...be.length>0?{borders:be}:{},...b===void 0?{}:{shading:b},...re===void 0?{}:{shadingBox:re},...ae?{marker:ae}:{},...hl(ue,ce),lines:Pe,box:{x:ge,y:r,width:f,height:te-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let se=Object.freeze({x:n,y:r,width:t,height:Math.max(0,j-r)}),de=He.box,Le={paragraph:e,paragraphId:l,paragraphBox:de,lines:Pe};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...Le,cellOriginX:n,cellContentWidth:t}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(or({paragraph:e,paragraphId:l,paragraphBox:de,lines:Pe,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(de)??de,cellBox:se,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{}}));}return {fragment:He,bottom:te,spaceAfter:nn,nextLineIndex:ye,complete:le,fitted:true}}function Er(e,n,t,r,o,a){let i=Xy(e,n,t,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false});return {blocks:i.blocks,bottom:i.bottom}}function Xy(e,n,t,r,o,a,i,l,s,d=false){let c=[],u=r,f=l.previousSpaceAfter,p=l.blockIndex,m=l.lineIndex,g=l.paragraphFragmentIndex,x=false,h=false,b=l.precededByEmittedTable;for(;p<e.length;){let P=e[p];if(P.kind==="table"){m!==0&&(m=0),f=0;let L=oT(P,n,t,u,a+1,i);if(!L){b=false,p+=1;continue}if(L.bottom>o+.001){h=!x;break}c.push(L.fragment),u=L.bottom,x=true,b=true,p+=1,m=0;continue}if(P.kind!=="paragraph"){b=false,p+=1,m=0;continue}let k=d&&p===e.length-1&&b&&xh(P),v=nT(P,n,Math.max(1,t-n),u,i,f,{lineStart:m,fragmentIndex:g,maxBottom:o,includeAfter:true,includeBottomBorder:true,collapseHeight:k,collapseBandAbove:u-r,...s?{tableCellStyle:s}:{},borderNeighbours:{previous:p>0?e[p-1]:void 0,next:e[p+1]}});if(!v.fitted||!v.fragment)break;if(c.push(v.fragment),u=v.bottom,x=true,v.complete)f=v.spaceAfter,b=false,p+=1,m=0,g=0;else return {blocks:c,bottom:u,cursor:{blockIndex:p,lineIndex:v.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:g+1,precededByEmittedTable:b},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:c,bottom:u,cursor:{blockIndex:p,lineIndex:m,previousSpaceAfter:f,paragraphFragmentIndex:g,precededByEmittedTable:b},complete:p>=e.length,fitted:x,nestedSplitBlocked:h}}function li(e,n,t,r,o,a,i,l=0,s,d=Number.POSITIVE_INFINITY){return Nu(e,n,t,r,Number.POSITIVE_INFINITY,o,false,a,i,Eu(e),l,s,d)}function Nu(e,n,t,r,o,a,i,l,s,d,c=0,u,f=o){let p=u?.detachedSpanHeightPtByCellId,m=ws(n,0,n.length),g=Number.isFinite(c)&&c>0?c/2:0,x=s.measurer.lineMetrics(mt).height,h=e.height,b=h.rule==="exact"?h.valuePt:void 0,P=h.rule==="atLeast"?h.valuePt:void 0,k=[],{rowDeps:v,flushDeferred:L}=Rh(s,k),w=a&&s.pageOccurrenceKey?{...v,nextLineId:(B,R,W)=>v.nextLineId(B,R,W,s.pageOccurrenceKey())}:v,S=b===void 0?o:Math.min(o,r+Math.max(0,b)),C=[],T=false,N=false,M=r;for(let B=0;B<e.cells.length;B+=1){let R=e.cells[B],W=d[B]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false},A=R.gridSpan,z=R.gridColumn,q=t+ws(n,0,z),_=ws(n,z,Math.min(z+A,n.length))||m,X=Math.min(g,Math.max((_-Vy)/2,0)),U=q+X,j=Math.max(_-2*X,Vy),K=xs(R.margins,R.borders),pe=i?ir(R.borders.top):K.top,Fe=r+pe,Ie=p?.get(R.id),me=Ie!==void 0,ge=me?Math.min(f,r+Ie):S,Be=ge-K.bottom,we=[],Se=Fe,ye=W,De=true,le=false,_e=false;if(!R.vMergeContinue)if(Be<Fe+.001)De=W.blockIndex>=R.blocks.length;else {let be=Xy(R.blocks,U+K.left,U+j-K.right,Fe,Be,l,w,W,R.styleFormatting,true);we=be.blocks,Se=be.bottom,ye=be.cursor,De=be.complete,le=be.fitted,_e=be.nestedSplitBlocked,le&&(T=true),_e&&(N=true);}let Ze=Math.min(ge,le?Se+K.bottom:r+pe+x+K.bottom);Ze>M&&!me&&(M=Ze),C.push({cell:R,x:U,width:j,gridColumn:z,blocks:we,contentTop:Fe,contentBottom:Se,insets:{...K,top:pe},nextCursor:ye,complete:R.vMergeContinue?true:De,fitted:le,nestedSplitBlocked:_e});}M=Math.min(S,Math.max(M,r));for(let B of C){if(p?.has(B.cell.id)===true)continue;let R=B.fitted?B.contentBottom+B.insets.bottom:r+B.insets.top+x+B.insets.bottom;R>M&&R<=S+.001&&(M=R);}if(M<=r+.001&&C.length>0){let B=r;for(let R of C){let W=r+R.insets.top+x+R.insets.bottom;W>B&&(B=W);}M=Math.min(S,B);}M=Math.min(S,M);let y=false;if(b!==void 0){let B=r+b;B<=o+.001?(M=B,y=true):M=Math.min(o,M);}else {let B=i?0:u?.heightFloorPt??0,R=r+Math.max(P??0,B);R>M&&R<=o+.001&&C.every(A=>A.complete)&&(M=R);}M=Math.min(o,M);let G=Math.max(0,M-r),D=C.map(B=>{let R=B.blocks,W=y?true:B.complete;if(!B.cell.vMergeContinue&&W&&B.cell.vAlign!=="top"&&R.length>0){let A=B.contentBottom-B.contentTop,z=G-B.insets.top-B.insets.bottom-A;if(z>0){let q=B.cell.vAlign==="center"?z/2:z;R=Rs(R,q);}}return {id:B.cell.id,gridColumn:B.gridColumn,...B.cell.gridColumnId?{gridColumnId:B.cell.gridColumnId}:{},gridSpan:B.cell.gridSpan,vMergeContinue:B.cell.vMergeContinue,...B.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...B.cell.shading===void 0?{}:{shading:B.cell.shading},blocks:R,box:{x:B.x,y:r,width:B.width,height:G}}}),F=y||C.every(B=>B.complete)?null:C.map(B=>B.nextCursor),E=y||C.every(B=>B.complete);return L(D,r,G),{record:{id:e.id,...e.revisionKind?{revisionKind:e.revisionKind}:{},...e.revisionId!==void 0?{revisionId:e.revisionId}:{},...e.revisionAuthor!==void 0?{revisionAuthor:e.revisionAuthor}:{},...e.revisionDate!==void 0?{revisionDate:e.revisionDate}:{},rowIndex:0,isHeaderRepeat:a,...i?{isContinuation:true}:{},cells:D,box:{x:t,y:r,width:m,height:G}},bottom:M,remainder:E?null:F,fitted:T||e.cells.every(B=>B.vMergeContinue)||y,nestedSplitBlocked:N}}function tT(e){return {...e,measuringOnly:true,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function Au(e,n,t,r,o,a=0,i,l){let s=0,d=l!==void 0,c={...tT(o),...d?{}:{pageExclusionZones:void 0},nextLineId:()=>`probe-${s++}`};return li(e,n,t,l??0,false,r,c,a,i).record.box.height}function rT(e,n,t,r,o,a,i,l,s){let d=u=>li(e,n.columnWidthsPt,t,r,i,o,a,n.cellSpacingPt,u),c=d(l);return c.remainder===null||l===void 0?c:(s(),d(void 0))}var Du=(e,n,t,r,o)=>r.measuringOnly===true?null:Gy(o?{...e,rows:o}:e,n,t,r,Au);function oT(e,n,t,r,o,a){if(o>=os)return null;let i=Math.max(1,t-n),l=Go(e,i,o,a.styleCascade,a.displayMode);if(!l||l.rows.length===0)return null;let s=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:h=>{s.push(h);}},c=n+Ja(l,i),u=Du(l,c,o,d),f=[],p=r;for(let[h,b]of l.rows.entries()){let P=s.length,k=rT(b,l,c,p,o,d,false,Wy(u,h,p),()=>{s.length=P,u?.withdrawAt(h);});f.push(k.record),p=k.bottom;}let m=ii(f,l,l.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let h of s)for(let b of m)if(b.cells.some(k=>k.blocks.some(v=>v.kind==="paragraph"&&v.paragraphId===h.paragraphId))){eu([h],b.cells,b.box.y,b.box.height,a);break}let g=ws(l.columnWidthsPt,0,l.columnWidthsPt.length),x=new Map;return {fragment:hs({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:m,box:{x:c,y:r,width:g,height:p-r}},l.columnWidthsPt,o,x),bottom:p}}function Yy(e,n){let{columnWidth:t,columnLeft:r,contentHeight:o,advanceColumn:a,anchorFrames:i,styleCascade:l,displayMode:s,deps:d,shiftAnchor:c,publishFragment:u}=n,f=t(),p=Go(e,f,0,l,s);if(!p||p.rows.length===0)return;let m=p.columnWidthsPt.reduce((F,E)=>F+E,0),g=()=>p.float?Qh(p.float,m,i()):r()+Ja(p,t()),x=g();p.float&&p.float.vertAnchor==="text"&&!p.float.ySpec&&(n.cursorY=Math.max(0,Math.min(n.cursorY+p.float.yPt,o())));let h=F=>Au(F,p.columnWidthsPt,x,0,d,p.cellSpacingPt),b=[];for(let F of p.rows)if(F.isHeader)b.push(F);else break;let P=0,k=n.cursorY,v=[],L=new Map,w=[],S=()=>{if(v.length===0)return;let F=ii(v,p,w,d.borderOwnershipBudget,d.vMergeResolveBudget,void 0,c,d),E=F[F.length-1];u(hs({kind:"table",id:`${e.id}#f${P}`,tableId:e.id,fragmentIndex:P,rows:F,box:{x,y:k,width:p.columnWidthsPt.reduce((B,R)=>B+R,0),height:E.box.y+E.box.height-k}},p.columnWidthsPt,0,L)),P+=1,v=[],w=[];},C=F=>{if(b.length===0)return;let E=0;for(let B of b)E+=h(B);if(E>o()+.001)throw new jn("table-row-overheight",`Table header group (${b.length} row(s)) is taller than the page content box`);n.cursorY+E>o()+.001&&n.cursorY>0&&(S(),a(),x=g(),k=n.cursorY);for(let B of b){let R=li(B,p.columnWidthsPt,x,n.cursorY,F,0,d,p.cellSpacingPt);if(R.bottom>o()+.001)throw new jn("table-row-overheight",`Table header row ${B.id} overflowed the page content box`);v.push(R.record),w.push(B),n.cursorY=R.bottom;}},T=F=>{S(),a(),x=g(),k=n.cursorY,C(true);};C(false);let N=p.rows.slice(b.length),M=Du(p,()=>x,0,d,N),y,G=0,D=(F,E)=>{y=jy(M,F,n.cursorY,o()),G=y?.heightFloorPt??(E?h(E):G);};for(let[F,E]of N.entries()){D(F,E);let B=Eu(E),R=false,W=0,A=false;for(!(y!==void 0&&y.detachedSpanHeightPtByCellId===void 0)&&G<=o()+.001&&n.cursorY+G>o()+.001&&n.cursorY>0&&(T(),A=true,D(F));;){if(W+=1,W>Ps)throw new jn("table-row-fragment-limit",`Table row ${E.id} exceeded ${Ps} page fragments`);let q=o()-n.cursorY;if(q<=.001&&n.cursorY>0){if(A)throw new jn("table-row-overheight",`Table row ${E.id} cannot fit after repeated header rows`);T(),A=true,D(F);continue}if(!R&&G<=q+.001){let j=li(E,p.columnWidthsPt,x,n.cursorY,false,0,d,p.cellSpacingPt,y,o());if(j.bottom>o()+.001)throw new jn("table-row-overheight",`Table row ${E.id} overflowed the page content box after placement`);let K=j.remainder!==null;if(v.push(j.record),w.push(K?Ss(E,R,true):E),n.cursorY=j.bottom,!K)break;B=j.remainder,R=true,A=false,T();continue}if(!R&&(E.cantSplit||E.height.rule==="exact")){if(n.cursorY>0&&!A){T(),A=true,D(F);continue}throw new jn("table-row-overheight",E.height.rule==="exact"?`Table row ${E.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${E.id} has w:cantSplit and is taller than the available page content`)}let _=Nu(E,p.columnWidthsPt,x,n.cursorY,o(),false,R,0,d,B,p.cellSpacingPt,y);if(!_.fitted&&n.cursorY>0&&!A){T(),A=true,D(F);continue}if(!_.fitted)throw new jn(_.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",_.nestedSplitBlocked?`Table row ${E.id} contains a nested table taller than the page content box`:`Table row ${E.id} has content that cannot fit a page content box`);if(_.bottom>o()+.001)throw new jn("table-row-overheight",`Table row ${E.id} overflowed the page content box`);let X=_.remainder!==null,U=Ss(E,R,X);if(v.push(_.record),w.push(U),n.cursorY=_.bottom,!X)break;B=_.remainder,R=true,A=false,T();}}S();}function Ky(e){let n=e.picture;return n?.embeddedRelationshipId?`embed:${e.ownerPartName}:${n.embeddedRelationshipId}`:n?.linkedRelationshipId?`link:${e.ownerPartName}:${n.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var Uy=new WeakMap,_u=new Map,aT=16,iT=32;function eb(e,n){let t=Uy.get(e);if(t)return t;let r;if(e.kind==="drawing"||bb$1(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:_u,visited:1,deepest:0};else if((n<2||e.children.length>=aT)&&n<iT){let o=null,a=1,i=0;for(let l of e.children){let s=eb(l,n+1);if(a+=s.visited,s.deepest+1>i&&(i=s.deepest+1),s.atoms.size>0){o||(o=new Map);for(let[d,c]of s.atoms)o.set(d,c);}}r={atoms:o??_u,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,l=[{node:e,depth:0}];for(;l.length>0;){let s=l.pop();if(a+=1,a>$a$1)break;s.depth>i&&(i=s.depth);let d=s.node;if(d.kind==="drawing"||bb$1(d)){o.set(d.id,d);continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)l.push({node:d.children[c],depth:s.depth+1});}r={atoms:o.size>0?o:_u,visited:a,deepest:i};}return Uy.set(e,r),r}function qy(e){let n=eb(e.root,0);return n.visited>$a$1||n.deepest>Za$1.maxDrawingDepth?null:n.atoms}var zu=new Float64Array(1),Is=new Uint32Array(zu.buffer);function lT(e){let n=2166136261,t=268435859,r=[];for(let o of e.components){r.push(o.fillHex??"",String(o.fillAlpha),o.strokeHex??"",String(o.strokeAlpha),String(o.strokeWidthEmu),String(o.subpathsEmu.length));for(let a of o.subpathsEmu){r.push(String(a.length));for(let i of a)zu[0]=i.x,n=Math.imul(n^Is[0],16777619),t=Math.imul(t^Is[1],16777651),zu[0]=i.y,n=Math.imul(n^Is[1],16777619),t=Math.imul(t^Is[0],16777651);}}return [String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.components.length),r.join(","),(n>>>0).toString(36),(t>>>0).toString(36)].join(";")}function Hu(e){let n=e.position,t=e.anchor,r=e.picture,o=e.wrapGeometry,a=e.vectorShape;return [e.drawingNodeId,e.ownerPartName,e.kind,e.hidden?"1":"0",String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left),e.compatibilityBranchNodeId??"",t?.simplePos?"sp":"pv",t?String(t.relativeHeight):"",t?t.layoutInCell?"1":"0":"",r?[String(r.crop.left),String(r.crop.top),String(r.crop.right),String(r.crop.bottom),String(r.transform.rotationDegrees),r.transform.flipHorizontal?"1":"0",r.transform.flipVertical?"1":"0",String(r.transform.offsetEmu.x),String(r.transform.offsetEmu.y),String(r.transform.extentEmu.cx),String(r.transform.extentEmu.cy),r.embeddedRelationshipId??"",r.linkedRelationshipId??"",r.presetGeometry??""].join(":"):"",a?lT(a):"",o?[o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length)].join(":"):"",n?[n.horizontal.relativeFrom,n.horizontal.align??"",String(n.horizontal.offsetEmu??""),n.vertical.relativeFrom,n.vertical.align??"",String(n.vertical.offsetEmu??""),String(n.simplePosition.xEmu),String(n.simplePosition.yEmu)].join(":"):""].join("|")}function si(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 sT=1;function ju(e,n){if(e.kind==="drawing"||bb$1(e)){n.push(e.id);return}if("children"in e)for(let t of e.children)ju(t,n);}function dT(e){if(e.kind!=="paragraph")return [];let n=[];for(let t of e.children)ju(t,n);return Object.freeze(n)}function cT(e){let{ownerPartName:n,part:t,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:l}=e,s=false,d=0,c=new Map,u=new Set,f=new Map,p=new WeakMap,m=new WeakMap,g=0,x=ab$1(r,n),h=Xa$1(r),b=fb$1(t,{resolveRelationship:x,resolveSchemeColor:h.resolveSchemeColor,resolveStyleMatrixReference:h.resolveStyleMatrixReference}),P=qy(t),k=(T,N)=>{if(s||u.has(N))return;u.add(N);let M=d;o.resolveForProjection(T).then(y=>{s||M!==d||(c.set(N,y),y.kind==="ready"&&i(y.validatedHandle),g+=1,f.set(N,g),a(n));}).catch(()=>{s||M!==d||(c.set(N,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,f.set(N,g),a(n));}).finally(()=>{u.delete(N);});},v=T=>{let N=Ky(T),M=c.get(N);if(M)return M;let y=T.picture?.linkedRelationshipId;if(y){let D=o.resolveLinked(n,y);return c.set(N,D),g+=1,f.set(N,g),D}let G=Object.freeze({kind:"pending",resourceKey:N});return c.set(N,G),g+=1,f.set(N,g),k(T,N),G},L=T=>b.get(T)??null,w=Object.freeze({ownerPartName:n,projectionForAtom:L,project:T=>L(T.id),resourceOf:v}),S=T=>{let N=m.get(T);if(N)return N;let M=dT(T),y=null,G=(F,E)=>{if(!(E>=sT))for(let B of F){let R=b.get(B)?.textboxStory;if(!R)continue;let W=[];if(ju(R.content,W),W.length!==0){y||(y=[...M]);for(let A of W)y.push(A);G(W,E+1);}}};G(M,0);let D=y??M;return m.set(T,D),D};return {context:w,cacheTokenForPart:()=>`${n}|${g}|${d}|${b.size}`,drawingTokenForParagraph:T=>{let N=p.get(T);if(N?.resourceEpoch===g)return N.token;let M=S(T);if(M.length===0)return p.set(T,{resourceEpoch:g,token:""}),"";let G=M.map(D=>{let F=b.get(D);if(!F)return `${D}:refused`;let E=v(F);return [D,Hu(F),si(E),String(f.get(Ky(F))??0)].join("|")}).sort().join(";");return p.set(T,{resourceEpoch:g,token:G}),G},isCompatibleWith:(T,N)=>{let M=Xa$1(N);if(M.cacheToken!==h.cacheToken)return false;if(T===t)return true;let y=qy(T);if(P&&y&&P.size===y.size){let D=true;for(let[F,E]of P)if(y.get(F)!==E){D=false;break}if(D)return true}let G=fb$1(T,{resolveRelationship:ab$1(N,n),resolveSchemeColor:M.resolveSchemeColor,resolveStyleMatrixReference:M.resolveStyleMatrixReference});if(G.size!==b.size)return false;for(let[D,F]of b){let E=G.get(D);if(!E||Hu(E)!==Hu(F))return false}return true},dispose:()=>{s=true,d+=1;for(let T of c.values())T.kind==="ready"&&l(T.validatedHandle);c.clear(),u.clear(),f.clear();}}}var Zy=0;function kE(e){let n=e.session.packageRevision(),t=e.session.currentPackage(),r=e.resourceLookup??sb$1(t,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new WeakMap,l=new Map,s=new Map,d=m=>{l.set(m.resourceKey,m);let g=hb$1(m);g&&s.set(m.resourceKey,g);},c=m=>{l.delete(m.resourceKey);let g=s.get(m.resourceKey);g&&(ib$1(g),s.delete(m.resourceKey));},u=(m,g)=>{let h=g.currentPackage().parts.get(m)??a.get(m);if(h)return h;if(m===g.part().name)return g.part();throw new Error(`Missing inline drawing part ${m}`)},f=(m,g)=>{let x=o.get(m);if(x)return x;let h=u(m,g);a.set(m,h);let b=cT({ownerPartName:m,part:h,pkg:g.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:d,forgetReadyHandle:c});return o.set(m,b),Zy+=1,i.set(b,Zy),b},p=m=>{let g=m.currentPackage();if(g.partBytes===t.partBytes&&g.relationships===t.relationships&&g.contentTypes===t.contentTypes){for(let[h,b]of o){let P=g.parts.get(h)??(h===m.part().name?m.part():void 0);if(P&&b.isCompatibleWith(P,g)){a.set(h,P);continue}b.dispose(),o.delete(h),a.delete(h);}n=m.packageRevision(),t=g;return}for(let h of o.values())h.dispose();o.clear(),a.clear();for(let h of s.values())ib$1(h);s.clear(),l.clear(),e.resourceLookup||r.dispose(),n=m.packageRevision(),t=g,r=e.resourceLookup??sb$1(g,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return f(e.session.part().name,e.session).context},contextForPart(m){return f(m,e.session).context},cacheTokenForPart(m){let g=f(m,e.session);return `${i.get(g)??0}|${g.cacheTokenForPart()}`},drawingTokenForParagraph(m,g){let x=f(g,e.session);return `${i.get(x)??0}|${x.drawingTokenForParagraph(m)}`},mintValidatedBytes(m,g){return gb$1(m,g)},sync(m){m.packageRevision()!==n&&p(m);},dispose(){for(let m of o.values())m.dispose();o.clear(),a.clear();for(let m of s.values())ib$1(m);s.clear(),l.clear(),e.resourceLookup||r.dispose();}})}function nb(e,n,t){if(n===void 0)return Qy(e,t);let r=Jy.get(e);if(r&&r.epoch===n)return r.token;let o=Qy(e,t);return Jy.set(e,{epoch:n,token:o}),o}var Jy=new WeakMap;function Qy(e,n){let t=[],r=o=>{if(o.kind==="paragraph"){let a=n(o);a&&t.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),t.sort().join(";")}var tb=new WeakMap;function uT(e){let n=tb.get(e);if(n!==void 0)return n;let t=fT(e);return tb.set(e,t),t}function fT(e){let n=t=>{if(t.kind==="textValue"||Kc$1(t)||Ic$1(t)!==null)return false;if(t.kind==="text"||t.localName==="t"){for(let r of t.children)if(r.kind==="textValue"&&r.value.trim().length>0)return true;return false}for(let r of t.children)if(r.kind!=="textValue"&&n(r))return true;return false};for(let t of e.children)if(t.kind!=="textValue"&&n(t))return true;return false}function ib(e,n){for(let t of n.resultParagraphIds){let r=Ca$1(e,t);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&uT(r))return true}return false}var rb=new WeakMap,ob=new WeakMap,ab=new WeakMap;function Gu(e){let n=rb.get(e);if(n)return n;let t=new Set;for(let r of fd(e))t.add(r.beginParagraphId),t.add(r.endParagraphId);return rb.set(e,t),t}function Wu(e){let n=ob.get(e);if(n)return n;let t=new Set;for(let r of fd(e))ib(e,r)||t.add(r.beginParagraphId);return ob.set(e,t),t}function Vu(e){let n=ab.get(e);if(n)return n;let t=new Set;for(let r of fd(e))if(!ib(e,r))for(let o of r.resultParagraphIds)t.add(o);return ab.set(e,t),t}var pT=4,$u=256;function mT(e){return `txbx-${e}`}var lb=new WeakMap;function pb(e,n,t,r="all-markup"){if(!n||n.nums.size===0)return;let o=lb.get(e);if(o&&o.rawIndex===n&&o.styleCascade===t&&o.displayMode===r)return o.listItems;let a=ei(n,t),i=Qc(e,r),l=is(i,a,t),s=l.size>0?l:void 0;return lb.set(e,{rawIndex:n,styleCascade:t,displayMode:r,listItems:s}),s}var gT=2e4,hT=Object.freeze({contents:Object.freeze([]),truncated:false}),sb=new WeakMap;function yT(e){let n=sb.get(e);if(n)return n;let t=[],r=0,o=false,a=[e];for(;a.length>0;){let l=a.pop();if(r+=1,r>gT){o=true;break}if(l.kind!=="textValue"&&l.localName==="txbxContent"){t.push(l);continue}if("children"in l)for(let s=l.children.length-1;s>=0;s-=1)a.push(l.children[s]);}let i=t.length>0||o?Object.freeze({contents:Object.freeze(t),truncated:o}):hT;return sb.set(e,i),i}var db=1,cb=new WeakMap;function bT(e){let n=cb.get(e);return n===void 0&&(n=db,db+=1,cb.set(e,n)),n}var ub=new WeakMap;function mb(e,n,t,r="all-markup"){if(!n||n.nums.size===0)return "";let o=yT(e);if(o.contents.length===0&&!o.truncated)return "";let a=ub.get(e);if(a&&a.rawIndex===n&&a.styleCascade===t&&a.displayMode===r)return a.token;let i=[];for(let s of o.contents){let d=pb(s,n,t,r);if(d)for(let[c,u]of d)i.push(`${c}=${u.cacheToken}`);}o.truncated&&i.push(`truncated:${bT(n)}`);let l=i.length===0?"":`|txbxlist:${i.join(",")}`;return ub.set(e,{rawIndex:n,styleCascade:t,displayMode:r,token:l}),l}function vs(e,n){let t=e.textboxStory;if(!t)return null;let r=un(e.extentEmu.cx),o=un(e.extentEmu.cy),a=un(t.insetsEmu.left),i=un(t.insetsEmu.right),l=un(t.insetsEmu.top),s=un(t.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-l-s),u=un(t.strokeWidthEmu),f={fillHex:t.fillHex,strokeHex:t.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((n.depth??0)>=pT)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:l},...f,fallbackReason:"textbox-nesting-limit"};let m=Qc(t.content,n.displayMode),g=pb(t.content,n.numberingIndex,n.styleCascade,n.displayMode),x=mT(e.drawingNodeId),h=0,b=Er(m,0,d,0,0,{measurer:n.measurer,cache:n.cache,producer:`${n.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${x}-line-${h++}`,styleCascade:n.styleCascade,...g?{listItems:g}:{},...n.pageContext?{pageContext:n.pageContext}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...n.displayMode?{displayMode:n.displayMode}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:{}}),P=b.blocks,k=b.bottom,v,L=[];if(P.length>$u){fb(P.slice($u),L),P=P.slice(0,$u);let C=P[P.length-1];k=C?C.box.y+C.box.height:0,v="textbox-fragment-limit";}if(k>c+.001){let C=P.filter(T=>T.box.y<c-.001);C.length<P.length&&(fb(P.filter(T=>T.box.y>=c-.001),L),P=C,v=v??"textbox-height-clip");}let w=Math.max(0,c-k),S=t.verticalAnchor==="center"?w/2:t.verticalAnchor==="bottom"?w:0;return {fragments:P,flowHeight:k,contentOffset:{x:a,y:l+S},...f,...v?{fallbackReason:v}:{},...L.length>0?{clippedResourceToken:L.join("!")}:{}}}function fb(e,n){xa({fragments:e},t=>{n.push(si(t.resource));});}var xT=128,gb=new WeakMap;function ST(e){let n=gb.get(e);if(n!==void 0)return n;let t=y(na(e));return gb.set(e,t),t}function RT(e){let n=Math.max(1,Math.floor(e)),t=new Map;return {get(r){let o=t.get(r);if(o!==void 0)return t.delete(r),t.set(r,o),o},set(r,o){for(t.has(r)&&t.delete(r),t.set(r,o);t.size>n;){let a=t.keys().next();if(a.done)break;t.delete(a.value);}},get size(){return t.size}}}function wT(e,n,t,r,o,a,i,l=xT,s,d=We,c,u,f,p,m,g){let x=fc(e.root),h=RT(l),b=At(e,d),P=Br({numberingIndex:g?.numberingIndex,styleCascade:a},b).listItems,k=ST(e),v,L=w=>{let S=Jt(x)||c?w:void 0,C=S?.pageNumber??p?.pageNumber??1,T=bc(S,x)+(c?`|pn:${C}`:"");if(T===""){if(v)return v}else {let E=h.get(T);if(E)return E}let N=0,M=[],y=()=>{let E=S?.pageNumber??p?.pageNumber??1,B=p?.pageWidth??n,R=p?.pageHeight??Math.max(1,n),W=p?.marginLeft??0,A=p?.marginRight??0,z=p?.marginTop??0,q=p?.marginBottom??0,_=Math.max(1,R-z-q);return Object.freeze({pageNumber:E,pageWidth:B,pageHeight:R,marginLeft:W,marginRight:A,marginBottom:q,contentInsetTop:z,contentInsetBottom:q,contentWidth:n,contentHeight:_,contentBandHeight:_,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},G=Object.freeze([]),D;if(c){let E=false;for(let B=0;B<vr;B+=1){M.splice(0,M.length),N=0,D=Er(b,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+T+(d===We?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${N++}`,styleCascade:a,...P?{listItems:P}:{},pageContext:S,...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,anchorFrameBase:y,pageContentClip:()=>Wa(y()),layoutTextboxStoryFor:W=>vs(W,{measurer:t,producer:r+T+(d===We?"":`|rev:${d}`),cache:o,styleCascade:a,...S?{pageContext:S}:{},...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{},...g?.numberingIndex?{numberingIndex:g.numberingIndex}:{}}),collectAnchoredDrawings:W=>{M.push(...W);},columnBoxForParagraph:W=>Object.freeze({x:0,y:W.y,width:n,height:W.height}),pageExclusionZones:()=>G,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}});let R=Wc(M,c,0,n);if(R.length===0){E=true,G=R;break}if(B>0&&bt(G)===bt(R)){E=true,G=R;break}G=R;}if(!E)throw new Fo(`header/footer exclusion reflow did not converge within ${vr} passes`)}else D=Er(b,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+T+(d===We?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${N++}`,styleCascade:a,...P?{listItems:P}:{},pageContext:S,...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{}});let F={partName:e.name,part:e,contentKey:k,fragments:D.blocks,flowHeight:D.bottom,pageFieldNeeds:x,...M.length>0?{anchoredDrawings:Object.freeze([...M])}:{},withPageContext:E=>!Jt(x)&&!F.anchoredDrawings?.length?v??F:L(E)};return T===""?v=F:h.set(T,F),F};return L(i)}function Nr(e,n,t){let r=t-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let f={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return Sc(u,f,r),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)}))}},l=a(e.header),s=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${n}`,index:n,box:o(e.box),contentBox:o(e.contentBox),...l?{header:l}:{},...s?{footer:s}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}var hb=new WeakMap;function Xu(e){let n=hb.get(e);if(n!==void 0)return n;let t=[];$d(e,o=>{let a=o.marker;a&&t.push(`${o.paragraphId}=${a.text}@${a.numFmt}:${a.level}`);});let r=t.length===0?"":`|list:${t.join(",")}`;return hb.set(e,r),r}var yb=new WeakMap;function Yu(e){let n=yb.get(e);if(n!==void 0)return n;let t=[];xa(e,o=>{t.push(si(o.resource)),o.kind==="anchoredDrawing"&&o.textboxStory?.clippedResourceToken&&t.push(`clip:${o.textboxStory.clippedResourceToken}`);});let r=t.length===0?"":`!${t.join("!")}`;return yb.set(e,r),r}function bb(e,n,t){if(!e)return "";let r=(o,a)=>[...a].map(([i,l])=>`${o}${i}=${l.flowHeight}@${l.contentKey}${Yu(l)}${Xu(l)}`).sort().join(",");return `|hf:${n},${t},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+r("h",e.headers)+";"+r("f",e.footers)}function Ku(e,n,t){return e?.titlePage&&t===0?"first":e?.evenAndOddHeaders&&(n+t+1)%2===0?"even":"default"}function xb(e){let{furniture:n,pageHeight:t,marginTop:r,marginBottom:o}=e,a=t*.4,i=new Map,l=(s,d,c)=>Math.min(a,Math.max(c,d?s+d.flowHeight:0));return s=>{if(s===0&&e.continuedPageInsets)return e.continuedPageInsets;let d=Ku(n,e.pageIndexStart,s),c=i.get(d);if(c)return c;let u=l(e.headerDistance,n?.headers.get(d),r),f=l(e.footerDistance,n?.footers.get(d),o),p=Object.freeze({top:u,bottom:f,height:t-u-f});return i.set(d,p),p}}var Sb=new WeakMap;function di(e,n){Sb.set(e,n);}function Uu(e,n,t,r){return Sb.get(e)?.(n,t,r)}var Ar=24;function Rb(e){let{furniture:n,geometry:t,headerDistance:r,footerDistance:o,pageIndexStart:a}=e,i=c=>({x:0,y:c*(t.height+Ar),width:t.width,height:t.height}),l=c=>Ku(n,a,c),s=(c,u,f)=>{if(!n)return;let p=l(u),m=(c==="header"?n.headers:n.footers).get(p);if(!m)return;let g=L=>{let w=c==="header"?f.y+r:f.y+t.height-o-L.flowHeight;return {kind:c,variant:p,partName:L.partName,...L.part?{part:L.part}:{},...L.rId?{rId:L.rId}:{},box:{x:f.x+t.margin.left,y:w,width:e.contentWidth,height:L.flowHeight},fragments:L.fragments,...L.anchoredDrawings?{anchoredDrawings:L.anchoredDrawings}:{}}},x=a+u+1,h={pageNumber:x,pageCount:Math.max(x,e.pageCount()+1),sectionPageCount:u+1},b=m.pageFieldNeeds,k=Jt(b)||(m.anchoredDrawings?.length??0)>0?m.withPageContext(h):m,v=g(k);return Jt(b)?{...v,pageFieldProjector:L=>g(m.withPageContext(L))}:v};return {pageBox:i,variantFor:l,furnitureFor:s,overflowShellAt:(c,u)=>{let f=c-a,p=s("header",f,u),m=s("footer",f,u);return {insets:e.insetsFor(f),...p?{header:p}:{},...m?{footer:m}:{}}}}}function wb(e){if(e.delta===0)return true;let n=e.delta%2===0||!e.evenAndOddHeaders&&!e.parityDependent&&!e.usedPageParity,r=!(e.titlePage||e.continuedInsets)||e.markPageCount>0&&e.delta+e.markPageCount>0;return n&&r&&!e.hasNoteReserves&&!e.hasExclusionZones}var PT="http://schemas.openxmlformats.org/wordprocessingml/2006/main",IT="http://schemas.microsoft.com/office/word/2010/wordml",vT="http://schemas.microsoft.com/office/word/2012/wordml";function TT(e){if(e.kind!=="textValue"){for(let n of e.attributes)if(n.localName==="val"&&n.namespaceUri===PT)return n.value}}function Xo(e){for(let n of e.children)if(n.kind!=="textValue"&&(n.kind==="contentControlProperties"||n.localName==="sdtPr"))return n}function Dr(e,n){if(e){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}}function Ht(e,n){let t=Dr(e,n);return t?TT(t):void 0}function ci(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Ts(e){if(!e)return "richText";for(let n of e.children){if(n.kind==="textValue")continue;let t=n.kind,r=n.localName,o=n.namespaceUri;if(t==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(t==="contentControlComboBox"||r==="comboBox")return "comboBox";if(t==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(t==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(t==="contentControlCheckbox"||r==="checkbox"&&o===IT)return "checkbox";if(r==="repeatingSection"&&o===vT)return "repeatingSection"}return "richText"}function Pb(e){let n=(t,r)=>{for(let o of t)if(o.kind!=="textValue"){if(o.kind==="tableRow")return "row";if(o.kind==="tableCell")return "cell";if(o.kind==="paragraph"||o.kind==="table")return "block";if(nc$1(o)&&r<mc$1){let a=n(qc$1(o),r+1);if(a)return a}}return null};return n(qc$1(e),0)??"inline"}function Yo(e){let n=Ib.get(e);if(n!==void 0)return n;let t=CT(e);return Cs!==null&&Cs===t?t=Cs:Cs=t,Ib.set(e,t),t}var Cs=null,Ib=new WeakMap,vb=new WeakMap;function CT(e){let n=(t,r)=>{if(t.kind==="textValue")return "";let o=t.kind==="paragraph"||t.kind==="table"||nc$1(t);if(o){let i=vb.get(t);if(i!==void 0&&i.depth===r)return i.token}let a;if(nc$1(t)){if(r>=mc$1)return "";let i=Xo(t),l=[t.id,Ht(i,"alias")??"",Ht(i,"tag")??"",ci(Ht(i,"lock")),Ts(i),Dr(i,"showingPlcHdr")?"1":"0",Dr(i,"dataBinding")?"1":"0"].join(":"),s=qc$1(t).map(d=>n(d,r+1)).filter(d=>d.length>0);a=[l,...s].join("|");}else a=t.children.map(i=>n(i,r)).filter(i=>i.length>0).join("|");return o&&vb.set(t,{depth:r,token:a}),a};return n(e.root,0)}function Cb(e,n){let t=[n],r=new Set([n]);for(let o of e.pages)for(let a of [o.header,o.footer])!a?.part||r.has(a.part)||(r.add(a.part),t.push(a.part));return t}var qu=new WeakMap,Tb=new WeakMap;function kb(e){if(e.length===1)return ui(e[0]);let n=qu.get(e[0]);if(n&&ks(n.parts,e))return n.index;let t=e.map(d=>ui(d)),r=Tb.get(t[0]);if(r&&ks(r.indexes,t))return qu.set(e[0],{parts:e,index:r.index}),r.index;let o=[],a=new Set,i=new Set;for(let d of t){for(let c of d.controls)o.push(c);for(let c of d.neededBlockIds)a.add(c);for(let c of d.neededParagraphIds)i.add(c);}let l=`${[...a].sort().join(",")};${[...i].sort().join(",")}`,s={controls:o,neededBlockIds:a,neededParagraphIds:i,neededToken:l};return Tb.set(t[0],{indexes:t,index:s}),qu.set(e[0],{parts:e,index:s}),s}function Os(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(nc$1(e)){let t=0;for(let r of qc$1(e))t+=Os(r);return t}let n=0;for(let t of e.children)n+=Os(t);return n}var Zu=new WeakMap;function ks(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(e[t]!==n[t])return false;return true}var Ob=new WeakMap;function kT(e){for(let n of Hf(e))if(n.root.kind!=="textValue"){for(let t of n.root.children)if(t.kind!=="textValue")return t}return null}function ui(e){let n=Zu.get(e);if(n!==void 0)return n;let t=BT(e),r=kT(e),o=r?Ob.get(r):void 0;if(o&&ks(o.lists,t))return Zu.set(e,o.index),o.index;let a=[];for(let d of t)for(let c of d)a.push(c);let i=new Set,l=new Set;for(let d of a){for(let c of d.blockIds)i.add(c);d.paragraphId!==void 0&&l.add(d.paragraphId);}let s={controls:a,neededBlockIds:i,neededParagraphIds:l,neededToken:`${[...i].sort().join(",")};${[...l].sort().join(",")}`};return r&&Ob.set(r,{lists:t,index:s}),Zu.set(e,s),s}var OT=Object.freeze([]);function BT(e){let n=[],t=(i,l)=>{for(let s of i){if(s.kind==="paragraph"||s.kind==="table"){l.push(s.id);continue}if(nc$1(s)){t(qc$1(s),l);continue}(s.kind==="tableRow"||s.kind==="tableCell")&&t(s.children,l);}},r=(i,l,s,d,c)=>{let u=s;for(let f of i)if(!(f.kind==="textValue"||f.kind==="paragraphProperties")){if(nc$1(f)){if(d>=mc$1){u+=Os(f);continue}let p=Xo(f),m=ci(Ht(p,"lock")),g=[...c,m],x=u,h=r(qc$1(f),l,u,d+1,g);n.push({control:f,nestingDepth:d,lockStack:g,level:"inline",paragraphId:l,range:{start:x,end:h},blockIds:[]}),u=h;continue}if(f.kind==="hyperlink"){u=r(f.children,l,u,d,c);continue}u+=Os(f);}return u},o=(i,l,s)=>{for(let d of i){if(d.kind==="textValue")continue;if(d.kind==="paragraph"){r(d.children,d.id,0,l,s);continue}if(d.kind==="table"){for(let x of d.children)x.kind==="tableRow"&&o([x],l,s);continue}if(d.kind==="tableRow"){for(let x of d.children)x.kind==="tableCell"?o(x.children,l,s):nc$1(x)&&o([x],l,s);continue}if(!nc$1(d)||l>=mc$1)continue;let c=Xo(d),u=ci(Ht(c,"lock")),f=[...s,u],p=Pb(d),m=qc$1(d);if(p==="inline"){o(m,l+1,f);continue}let g=[];t(m,g),n.push({control:d,nestingDepth:l,lockStack:f,level:p,blockIds:g}),o(m,l+1,f);}},a=[];for(let i of Hf(e))if(i.root.kind!=="textValue")for(let l of i.root.children){if(l.kind==="textValue")continue;let s=Bb.get(l);if(s!==void 0){a.push(s);continue}let d=n.length;o([l],0,[]);let c=n.length===d?OT:Object.freeze(n.slice(d));Bb.set(l,c),a.push(c);}return a}var Bb=new WeakMap,Ju=1<<20,Mb=new WeakMap,Lb=null,Fb=0;function MT(e){return e!==Lb&&(Lb=e,Fb+=1),Fb}function LT(e,n,t,r){let o=Mb.get(e);if(o!==void 0&&o.neededStamp===t)return o;let a=[],i=[],l=e.index*Ju,s=0,d=0,c=p=>s===0&&d===0?p:{x:p.x+s,y:p.y+d,width:p.width,height:p.height},u=(p,m)=>{if(m.kind==="paragraph"){n.neededBlockIds.has(m.paragraphId)&&(a.push({pageIndex:p,blockId:m.paragraphId,box:c(m.box)}));let g=n.neededParagraphIds.has(m.paragraphId);for(let x of m.lines){let h=l;if(l=Math.min(l+1,e.index*Ju+Ju-1),!g)continue;let b=Math.max(0,x.box.height-x.leading-(x.trailingSpacing??0));for(let P of x.spans)i.push({pageIndex:p,paragraphId:P.range.paragraphId,start:P.range.start,end:P.range.end,line:h,box:{x:P.box.x+s,y:P.box.y+x.leading+d,width:P.box.width,height:b}});}return}n.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 x of g.cells)for(let h of x.blocks)u(p,h);};for(let p of e.fragments)u(e.index,p);for(let p of [e.header,e.footer])if(p){s=p.box.x-e.contentBox.x,d=p.box.y-e.contentBox.y;for(let m of p.fragments)u(e.index,m);}s=0,d=0;let f={neededStamp:t,blocks:a,spans:i};return Mb.set(e,f),f}function FT(e,n,t){let r=MT(n.neededToken),o=new Map,a=new Map,i=new Set;for(let l of e.pages){let s=LT(l,n,r);for(let d of s.blocks){let c=o.get(d.blockId);c?c.push(d):o.set(d.blockId,[d]);}for(let d of s.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 ET(e,n,t){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of n.blocksById.get(a)??[]){let l=r.get(i.pageIndex);l?l.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let l=Ra(i);return l?[{pageIndex:a,box:l}]:[]})}function NT(e,n,t,r){let o=t.spansByParagraph.get(e)??[],a=new Map,i=t.repeatedParagraphs.has(e),l=0,s=o.length;for(;!i&&l<s;){let d=l+(s-l>>1);(n.start===n.end?o[d].end<n.start:o[d].end<=n.start)?l=d+1:s=d;}i&&(l=0);for(let d=l;d<o.length;d+=1){let c=o[d];if(c.end<=n.start)continue;if(c.start>=n.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&&n.start===n.end){let d=[],c=new Set;for(let u=l;u<o.length;u+=1){let f=o[u];if(f.start>n.start){if(i)continue;break}if(n.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*(n.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=Ra(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}var Eb=new WeakMap;function AT(e){let n=Eb.get(e);if(n!==void 0)return n;let t=Xo(e),r=Ht(t,"alias"),o=Ht(t,"tag"),a={...r!==void 0?{alias:r}:{},...o!==void 0?{tag:o}:{},controlType:Ts(t),placeholder:Dr(t,"showingPlcHdr")!==void 0,bound:Dr(t,"dataBinding")!==void 0};return Eb.set(e,a),a}function DT(e,n,t){let r=e.level==="inline"&&e.paragraphId&&e.range?NT(e.paragraphId,e.range,n):ET(e.blockIds,n);return {...nf(e),fragments:r}}function _T(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1){let r=e[t],o=n[t];if(r!==o&&(r.pageIndex!==o.pageIndex||r.box.x!==o.box.x||r.box.y!==o.box.y||r.box.width!==o.box.width||r.box.height!==o.box.height))return false}return true}function HT(e,n){return e.id===n.id&&e.alias===n.alias&&e.tag===n.tag&&e.controlType===n.controlType&&e.lock===n.lock&&e.effectiveLock===n.effectiveLock&&e.placeholder===n.placeholder&&e.bound===n.bound&&e.nestingDepth===n.nestingDepth&&e.level===n.level&&_T(e.fragments,n.fragments)}function Ko(e,n){if(!e)return n.length===0;if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(!HT(e[t],n[t]))return false;return true}function Qu(e,n){return {revision:e.revision,pages:e.pages,...n.contentControls!==void 0?{contentControls:n.contentControls}:{},...n.controlContextToken!==void 0?{controlContextToken:n.controlContextToken}:{}}}var Nb=new WeakMap;function ef(e,n,t=Yo(n),r){let o=Cb(e,n);if(o.length>1){let f=o.map(p=>Yo(p));t=f.some(p=>p!=="")?f.join("|"):"";}if(t===""){let f=e.pages.some(m=>m.contentControls!==void 0&&m.contentControls.length>0);if(!f&&e.controlContextToken===t&&Ko(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:t}}let a=kb(o),i=FT(e,a),l=a.controls.map(f=>DT(f,i)),s=new Map;for(let f of l)for(let p of f.fragments){let m=s.get(p.pageIndex),g={...f,fragments:[p]};m?m.push(g):s.set(p.pageIndex,[g]);}if(e.controlContextToken===t&&Ko(e.contentControls,l)&&e.pages.every(f=>Ko(f.contentControls,s.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let p=s.get(f.index)??[];if(Ko(f.contentControls,p)||p.length===0&&!f.contentControls)return f;d=true;let m=Nb.get(f);if(m&&Ko(m.controls,p))return m.wrapped;let g={...f,contentControls:p};return Nb.set(f,{controls:p,wrapped:g}),g}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===t&&Ko(e.contentControls,l)?e:{revision:e.revision,pages:u,contentControls:l,controlContextToken:t}}function zT(e,n){return ui(e).controls.filter(r=>n?r.paragraphId!==void 0?n.has(r.paragraphId):Ab(r.control).some(o=>n.has(o)):true).map(nf)}function Ab(e){let n=[],t=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){n.push(o.id);continue}if(nc$1(o)){t(qc$1(o));continue}t(o.children);}};return t(qc$1(e)),n}function jT(e,n){let t=null;for(let r of ui(e).controls)(r.paragraphId===n||r.blockIds.includes(n)||Ab(r.control).includes(n))&&(!t||r.nestingDepth>=t.nestingDepth)&&(t=r);return t?nf(t):null}function nf(e){let n=AT(e.control);return {id:e.control.id,...n.alias!==void 0?{alias:n.alias}:{},...n.tag!==void 0?{tag:n.tag}:{},controlType:n.controlType,lock:e.lockStack[e.lockStack.length-1]??"unlocked",effectiveLock:$i(e.lockStack),placeholder:n.placeholder,bound:n.bound,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var Bs=4096,Qn=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 tf(e,n,t=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return n;let r=Number(e);return !Number.isFinite(r)||r<=0||r>t?n:r}function _r(e,n){if(e===void 0||!/^-?\d{1,7}$/.test(e))return n;let t=Number(e);return !Number.isFinite(t)||Math.abs(t)>31680?n:t}function jb(e,n,t=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return n;let r=Number(e);return !Number.isFinite(r)||r<0||r>t?n:r}var en=(e,n)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let t of e.attributes??[])if(t.localName===n)return t.value}},Hr=(e,n)=>{if(e.kind!=="textValue"){for(let t of e.children??[])if(t.kind!=="textValue"&&"localName"in t&&t.localName===n)return t}};function Db(e,n,t){let r=en(e,n);return r===void 0?t:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:t}function GT(e){if(!e)return 1;let n=en(e,"num");return !n||!/^\d{1,7}$/.test(n)?1:Math.max(1,Math.min(12,Number(n)))}function WT(e,n,t){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=n||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:tf(en(o,"w"),1,31680),gapTwips:a===n-1?0:jb(en(o,"space"),t)});}return r}function VT(e){let n=e?Hr(e,"type"):void 0,t=n?en(n,"val"):void 0;return t==="continuous"||t==="evenPage"||t==="oddPage"||t==="nextColumn"?t:"nextPage"}var $T=new Set(["hyphen","period","colon","emDash","enDash"]);function Gb(e){let n=Hr(e,"pgNumType");if(!n||n.kind==="textValue")return;let t={},r=en(n,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let l=Number(r);Number.isFinite(l)&&l>=0&&l<=9999&&(t.start=l);}let o=en(n,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(t.fmt=o);let a=en(n,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let l=Number(a);Number.isFinite(l)&&l>=0&&l<=9&&(t.chapStyle=l);}let i=en(n,"chapSep");return i!==void 0&&$T.has(i)&&(t.chapSep=i),t}var _b=new WeakMap;function Ms(e){if(!e)return Qn;let n=_b.get(e);if(n!==void 0)return n;let t=XT(e);return _b.set(e,t),t}function XT(e){let n=Hr(e,"pgSz"),t=Hr(e,"pgMar"),r=Hr(e,"cols"),o=Qn,a=n?en(n,"orient"):void 0,i=n?tf(en(n,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,l=n?tf(en(n,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,s=Gb(e),d=GT(r),c=r?jb(en(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?Db(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:l},margins:{topTwips:t?_r(en(t,"top"),1440):o.margins.topTwips,rightTwips:t?_r(en(t,"right"),1440):o.margins.rightTwips,bottomTwips:t?_r(en(t,"bottom"),1440):o.margins.bottomTwips,leftTwips:t?_r(en(t,"left"),1440):o.margins.leftTwips,headerTwips:t?_r(en(t,"header"),720):o.margins.headerTwips,footerTwips:t?_r(en(t,"footer"),720):o.margins.footerTwips,gutterTwips:t?_r(en(t,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?Db(r,"sep",false):false,definitions:u?[]:WT(r,d,c)},landscape:a==="landscape"||i>l,titlePage:la(e,"titlePg"),breakType:VT(e),...s!==void 0?{pageNumbering:s}:{}}}function YT(e){let n=t=>{if(t.kind!=="textValue"){if(t.kind==="body")return Hr(t,"sectPr");for(let r of t.children??[]){let o=n(r);if(o)return o}}};return n(e.root)}var Hb=new WeakMap;function Ls(e){let n=Hb.get(e);if(n!==void 0)return n??void 0;let t=e.children.find(a=>a.kind==="paragraphProperties"),r=t?Hr(t,"sectPr"):void 0,o=r&&r.kind!=="textValue"?r:void 0;return Hb.set(e,o??null),o}function KT(e){let n=Wb(e);return n[n.length-1]?.properties??Qn}function Wb(e,n="all-markup"){return Vb(e,n).sections}function Vb(e,n="all-markup"){return rf(e,At(e,n))}var zb=Mf(16);function rf(e,n){let t=zb.get(n);if(t&&t.part===e)return t.result;let r=UT(e,n);return zb.set(n,{part:e,result:r}),r}function UT(e,n){let t=[],r=0,o=false;for(let i=0;i<n.length;i+=1){let l=n[i];if(l.kind!=="paragraph")continue;let s=Ls(l);if(s){if(t.length>=Bs){o=true;continue}t.push({index:t.length,properties:Ms(s),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(t.length>0){let i=t[t.length-1];t[t.length-1]={...i,blockEndExclusive:n.length};}return {sections:t,truncated:true}}let a=YT(e);if(r<n.length||t.length===0){if(t.length>=Bs){let i=t[t.length-1];return t[t.length-1]={...i,blockEndExclusive:n.length},{sections:t,truncated:true}}t.push({index:t.length,properties:Ms(a),blockStart:r,blockEndExclusive:n.length});}else if(a){if(t.length>=Bs)return {sections:t,truncated:true};t.push({index:t.length,properties:Ms(a),blockStart:r,blockEndExclusive:n.length});}return {sections:t,truncated:o}}function zr(e){let n=ld(jd$1(e.pageSize.widthTwips)),t=ld(jd$1(e.pageSize.heightTwips)),r=ld(jd$1(e.margins.leftTwips+e.margins.gutterTwips)),o=ld(jd$1(e.margins.rightTwips)),a=ld(jd$1(e.margins.topTwips)),i=ld(jd$1(e.margins.bottomTwips));return n-r-o<=0||t-a-i<=0?wa:{width:n,height:t,margin:{top:a,right:o,bottom:i,left:r},headerDistance:ld(jd$1(Math.max(0,e.margins.headerTwips))),footerDistance:ld(jd$1(Math.max(0,e.margins.footerTwips)))}}var Uo=1;function of(e,n){let t=Math.max(Uo,n),r=Math.max(1,Math.min(12,Math.floor(e.count))),o=e.definitions??[],a=e.equalWidth===false&&o.length===r&&o.every(c=>c.widthTwips>0),i,l;if(a){i=o.map(p=>Math.max(Uo,ld(jd$1(p.widthTwips)))),l=o.slice(0,-1).map(p=>Math.max(0,ld(jd$1(p.gapTwips))));let c=l.reduce((p,m)=>p+m,0),u=Math.max(r*Uo,t-c),f=i.reduce((p,m)=>p+m,0);if(f>u){let p=u/f;i=i.map(m=>Math.max(Uo,m*p));}}else {let c=Math.max(0,ld(jd$1(e.gapTwips))),u=Math.min(c,Math.max(0,(t-r*Uo)/(r-1||1)));l=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(Uo,(t-l.reduce((p,m)=>p+m,0))/r);i=Array.from({length:r},()=>f);}let s=[],d=0;for(let c=0;c<r;c+=1)s.push(d),d+=i[c]+(l[c]??0);return {count:r,widths:i,gaps:l,lefts:s,separator:e.separator===true&&r>1}}function qT(e,n,t){return fi(e,n,()=>t)}function fi(e,n,t){let r=[],o=null,a=-1,i=-1;for(let l of n){let s=t(l.sectionIndex);if(l.customMarkFollows){r.push({noteId:l.noteId,mark:null});continue}o===null?(o=s.numStart,a=l.sectionIndex,i=l.pageIndex??-1):s.numRestart==="eachSect"&&l.sectionIndex!==a?(o=s.numStart,a=l.sectionIndex):s.numRestart==="eachPage"&&l.pageIndex!==void 0&&l.pageIndex!==i?(o=s.numStart,i=l.pageIndex):s.numRestart==="eachSect"?a=l.sectionIndex:s.numRestart==="eachPage"&&l.pageIndex!==void 0&&(i=l.pageIndex);let d=o;o+=1,r.push({noteId:l.noteId,mark:Mt(s.numFmt,d),displayNumber:d});}return r}function $b(e){let n=new Map;for(let t of e)n.set(t.noteId,t.mark);return n}var qo=ge,pi=512,af=6,ZT=1/3;function Xb(e,n){return `note-${e}-${n}`}function JT(e){if(!e)return [];let n=[];for(let t of ie(e.root)){if(n.length>=qo)break;$d$1(t)&&n.push(t);}return n}function Yb(e,n){if(e){for(let t of ie(e.root))if(_d$1(t)===n)return t}}function lf(e,n,t){let r=Yd$1(e),o=Zd$1(e);if(!r||o===null)return null;let a=Pd$1(r,o),i=Wl(e),l=Xb(r,o),s=0,d=Math.max(1,n),c=t.maxFlowHeightPt??Number.POSITIVE_INFINITY,u=t.noteMarks?{...t.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},f=t.ownerPartName?t.drawingsForPart?.(t.ownerPartName):void 0,p=Br({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},i).listItems,m=Er(i,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|${a}`,nextLineId:()=>`${l}-line-${s++}`,styleCascade:t.styleCascade,...p?{listItems:p}:{},noteMarks:u,...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...f?{inlineDrawingLayout:f.inlineDrawingLayout,...f.drawingTokenForParagraph?{drawingTokenForParagraph:f.drawingTokenForParagraph}:{}}:{}}),g=m.blocks,x=m.bottom,h;if(g.length>pi){g=g.slice(0,pi);let b=g[g.length-1];x=b?b.box.y+b.box.height:0,h="note-fragment-limit";}if(x>c){let b=[],P=0;for(let k of g){let v=k.box.y+k.box.height;if(v>c+.001&&b.length>0)break;b.push(k),P=v;}g=b,x=P,h=h??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:_d$1(e),fragments:g,flowHeight:x,...h?{fallbackReason:h}:{}}}function Fs(e,n,t,r){if(!e)return null;let o=je(e.root,n);return o?lf(o,t,{...r,ownerPartName:e.name}):null}function Kb(e,n){return "single"}function Ub(e){let n=Wl(e);if(n.length===0)return true;for(let t of n){if(t.kind!=="paragraph")return false;let r=t.children.find(o=>o.kind==="paragraphProperties");if(Object.keys(kt(r)).length>0||!QT(t))return false}return true}function QT(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="paragraphProperties"){if(n.kind==="run"){if(!eC(n))return false;continue}return false}return true}function eC(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="runProperties"&&!(Wd$1(n)||Xd$1(n)||Vd$1(n))){if(n.kind==="text"){if(n.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function mi(e,n,t,r,o,a){let i=Kb(),l=Yb(e,n);if(l){if(Ub(l))return {kind:n,fragments:[],flowHeight:af,synthetic:false,ruleStyle:i};let s=lf(l,t,{...r,...e?{ownerPartName:e.name}:{}});if(s&&s.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return s.flowHeight>d+.001?{kind:n,fragments:[],flowHeight:af,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:n,fragments:s.fragments,flowHeight:s.flowHeight,synthetic:false}}}return {kind:n,fragments:[],flowHeight:af,synthetic:true,ruleStyle:i}}function qb(e,n){let t=Math.max(1,e*ZT);return {x:0,y:Math.max(0,(n-.75)/2),width:t,height:.75}}function Es(e,n,t,r){if(e.ruleStyle!==void 0||e.synthetic){let o=qb(t,e.flowHeight);return {x:n+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:n,y:r,width:t,height:e.flowHeight}}function Zb(e){let n=0;return e.map((t,r)=>{let o=`page-${r}`,i=t.index===r&&t.id===o&&t.box.y===n?t:Nr(t,r,n);return n+=t.box.height+Ar,i})}var df=8,cx=4096,ux=256,fx=14,cf=12;function nC(e){let n=[];for(let t of e)n.push(`${t.noteKind}|${t.noteId}|${t.paragraphId}|${t.atomOffset}|${t.customMarkFollows?1:0}|${t.sectionIndex}`);return n.join(";")}function Ns(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function tC(e){return e.drawingsForPart!==void 0&&e.drawingLayoutEpoch===void 0?null:[e.producer,e.defaultTabStopPt??"",e.drawingLayoutEpoch??"",Ns(e.documentFootnoteProps),Ns(e.documentEndnoteProps),e.footnotePropsBySection.map(Ns).join(";"),e.endnotePropsBySection.map(Ns).join(";")].join("\0")}var Jb=new WeakMap;function rC(e,n,t){if(!e)return {memo:null,allHits:n,reused:false};let r=tC(t);if(r===null)return e.notes=null,{memo:null,allHits:n,reused:false};let o=nC(n),a=e.notes;if(a&&a.hitsFingerprint===o){let l=Jb.get(a);if(a.inputFingerprint===r&&l&&l.footnotesPart===t.footnotesPart&&l.endnotesPart===t.endnotesPart&&l.measurer===t.measurer&&l.cache===t.cache&&l.styleCascade===t.styleCascade&&l.numberingIndex===t.numberingIndex)return {memo:a,allHits:a.allHits,reused:true}}let i={hitsFingerprint:o,inputFingerprint:r,allHits:n,provisionalMarks:bf(n,t),finalMarks:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return Jb.set(i,{footnotesPart:t.footnotesPart,endnotesPart:t.endnotesPart,measurer:t.measurer,cache:t.cache,styleCascade:t.styleCascade,numberingIndex:t.numberingIndex}),e.notes=i,{memo:i,allHits:n,reused:false}}function oC(e,n){return n>=e.range.start&&n<e.range.end}var Qb=new WeakMap;function px(e){let n=Qb.get(e);if(n)return n;let t=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){t.push(a);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)r(l.blocks);}};return r(e),Qb.set(e,t),t}var ex=new WeakMap;function pf(e){let n=ex.get(e);if(n)return n;let t=new Map;for(let r of e){let o=t.get(r.paragraphId);o?o.push(r):t.set(r.paragraphId,[r]);}return ex.set(e,t),t}var nx=new WeakMap;function Ds(e,n,t){let r=px(e.fragments);if(!t)return n.filter(l=>r.some(s=>Iu(s,l.paragraphId,l.atomOffset)));let o=nx.get(e.fragments);if(o&&o.refIndex===t)return o.result;let a=[],i=new Set;for(let l of r)for(let s of lr(l)){let d=t.get(s);if(d)for(let c of d)i.has(c)||Iu(l,s,c.atomOffset)&&(i.add(c),a.push(c));}return nx.set(e.fragments,{refIndex:t,result:a}),a}function mx(){let e=new Map;return {get(n,t,r,o,a,i,l){let d=`${n?.name??"none"}\0${o}\0${t}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=mi(n,t,r,i,o,a);return e.set(d,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function aC(e,n){let t=[];for(let r of e){if(t.length>=qo)break;t.push({...r,sectionIndex:n.get(r.paragraphId)??0});}return t}function Zo(e,n){return e.footnotePropsBySection[n]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function mf(e,n){return e.endnotePropsBySection[n]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function gx(e,n){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:n,drawingsForPart:e.drawingsForPart}}function iC(e,n){return n===0?e:{...e,box:{...e.box,y:e.box.y+n},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+n}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+n}}}:{},...e.borders?{borders:e.borders.map(t=>({...t,box:{...t.box,y:t.box.y+n}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+n}}}:{},lines:e.lines.map(t=>({...t,box:{...t.box,y:t.box.y+n},spans:t.spans.map(r=>({...r,box:{...r.box,y:r.box.y+n}}))}))}}function tx(e,n){return n===0?[...e]:e.map(t=>t.kind==="paragraph"?iC(t,n):{...t,box:{...t.box,y:t.box.y+n}})}function lC(e,n){if(e.lines.length===0)return e.box.y+e.box.height<=n+.001?{head:e,tail:null}:{head:null,tail:e};let t=0;for(;t<e.lines.length;t+=1){let g=e.lines[t];if(g.box.y+g.box.height>n+.001)break}if(t===0)return {head:null,tail:e};if(t>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,t),o=e.lines.slice(t),a=r[r.length-1],i=e.box.y,l=a.box.y+a.box.height,s=e.borders?.filter(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,l-i)},...s&&s.length>0?{borders:s}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,l-e.shadingBox.y)}}:{}},c=o[o.length-1],u=o[0].box.y,f=c.box.y+c.box.height,p=e.borders?.filter(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 sC(e){let n=0;for(let t of e)n=Math.max(n,t.box.y+t.box.height);return n}function _s(e,n,t){if(e.flowHeight<=n+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(n<=.001)return {head:[],headHeight:0,tail:e.fragments,tailHeight:e.flowHeight};let r=[],o=0,a=0,i=null;for(let u=0;u<e.fragments.length&&u<pi;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=n+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let m=lC(f,n);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=t?.fullContentHeight??n,h=f.lines[0]?.box.height??f.box.height;if(r.length===0&&n>=g-.001&&h>g+.001){t?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let b=e.fragments.slice(a),P=b[0]?.box.y??0;return {head:[],headHeight:0,tail:tx(b,-P),tailHeight:Math.max(0,e.flowHeight-P)}}a=u,i=null;}break}a=u;break}let l=[...i?[i]:[],...e.fragments.slice(a)];if(l.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let s=l[0]?.box.y??0,d=tx(l,-s),c=sC(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}function dC(e,n){let t="FootnoteReference";if(!n)return {...mt,verticalAlign:"superscript"};let r=Nt([],[{localName:"rStyle",attributes:{val:t}}],n);return Ae(r,n.themeFonts)}function cC(e,n,t,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(n.footnotePropsBySection.length,n.endnotePropsBySection.length,1,...t.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=Zo(n,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<cf;p+=1){let m=Mt(u.numFmt,u.numStart+p);m.length>0&&o.add(m);}}let f=mf(n,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<cf;p+=1){let m=Mt(f.numFmt,f.numStart+p);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let l=dC("footnote",n.styleCascade),s,d=-1;for(let c of o){let u=n.measurer.measure(c,l);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(s?.length??0))&&(s=c,d=u);}return s}function hx(e,n,t){let r=fi("footnote",e,l=>Zo(t,l)),o=fi("endnote",n,l=>mf(t,l)),a=new Map;for(let l of r)a.set(Pr("footnote",l.noteId),l.mark);for(let l of o)a.set(Pr("endnote",l.noteId),l.mark);let i=cC(a,t,e,n);return {marks:a,...i?{reservedMarkText:i}:{}}}function Hs(e){let n=0;for(let t of e.fragments)n=Math.max(n,t.box.y+t.box.height);return n}function uf(e){if(e.footnotes===void 0&&e.endnotes===void 0&&e.noteStream===void 0)return e;let{footnotes:n,endnotes:t,noteStream:r,...o}=e;return o}function uC(e,n){if(n.marks.size===0)return e;let t=false,r=e.pages.map(o=>{if(!fC(o.fragments))return o;let a=yx(o.fragments,n);return a===o.fragments?o:(t=true,{...o,fragments:a})});return t?{revision:e.revision,pages:r}:e}var rx=new WeakMap;function fC(e){let n=rx.get(e);if(n!==void 0)return n;let t=false,r=o=>{for(let a of o){if(t)return;if(a.kind==="paragraph"){for(let i of a.lines)for(let l of i.spans)if(l.projected&&l.noteNav?.direction==="to-note"){t=true;return}continue}for(let i of a.rows)for(let l of i.cells)r(l.blocks);}};return r(e),rx.set(e,t),t}function yx(e,n){let t=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=pC(o,n);return l!==o&&(t=true),l}let a=false,i=o.rows.map(l=>{let s=false,d=l.cells.map(c=>{let u=yx(c.blocks,n);return u===c.blocks?c:(s=true,{...c,blocks:u})});return s?(a=true,{...l,cells:d}):l});return a?(t=true,{...o,rows:i}):o});return t?r:e}function pC(e,n){let t=false,r=e.lines.map(o=>{let a=mC(o,n);return a!==o&&(t=true),a});return t?{...e,lines:r}:e}function mC(e,n){let t=false,r=e.spans.map(o=>{let a=gC(o,n);return a!==o&&(t=true),a});return t?{...e,spans:r}:e}function gC(e,n){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let t=n.marks.get(e.noteNav.scopeId);if(t===void 0)return e;let r=t??"";return e.text===r?e:{...e,text:r}}function hC(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function bx(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function yC(e){for(let n=e.length-1;n>=0;n-=1)if(bx(e[n]))return n;return Math.max(0,e.length-1)}function gf(e,n,t,r,o,a,i,l){let s=new Map(a),d=n.filter(D=>D.noteKind==="footnote"),c=e.contentBox.width,u=gx(t,r),f=[],p=0,m=cx,g=a.size>0?"continuationSeparator":"separator",x=Math.max(0,e.contentBox.height),h=l?.separatorCache?l.separatorCache.get(t.footnotesPart,g,c,"footnote",x,u,i):(()=>{let D=mi(t.footnotesPart,g,c,u,"footnote",x);return D.fallbackReason&&i.push(D.fallbackReason),D})(),b=Math.max(0,e.contentBox.height-Hs(e)-h.flowHeight),P=Math.max(0,e.contentBox.height-fx-h.flowHeight),k=l?.reserveColumnBudget?P:b,L={fullContentHeight:Math.max(0,e.contentBox.height-h.flowHeight),reasons:i};for(let[D,F]of a){let E=D.match(/^(footnote|endnote):(-?\d+)$/);if(!E||E[1]!=="footnote")continue;let B=Number(E[2]),R=Math.max(0,k-p);if(F.height<=R+.001)f.push({noteKind:"footnote",noteId:B,scopeId:D,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:F.height},fragments:F.fragments}),p+=F.height,s.delete(D);else {let W=_s({fragments:F.fragments,flowHeight:F.height},R,L);W.head.length>0&&(f.push({noteKind:"footnote",noteId:B,scopeId:D,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:W.headHeight},fragments:W.head}),p+=W.headHeight),W.tail.length>0?s.set(D,{fragments:W.tail,height:W.tailHeight,mark:null}):s.delete(D);}}for(let D of d){if(f.length>=qo){i.push("note-count-limit");break}let F=Fs(t.footnotesPart,D.noteId,c,u);if(!F){i.push("missing-note-body");continue}let E=r.marks.get(Pr("footnote",D.noteId))??null,B=Math.max(0,k-p);if(m-=F.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(F.flowHeight<=B+.001)f.push({noteKind:"footnote",noteId:D.noteId,scopeId:F.scopeId,mark:D.customMarkFollows?null:E,box:{x:e.contentBox.x,y:0,width:c,height:F.flowHeight},fragments:F.fragments}),p+=F.flowHeight;else {let R=_s(F,B,L);R.head.length>0&&(f.push({noteKind:"footnote",noteId:D.noteId,scopeId:F.scopeId,mark:D.customMarkFollows?null:E,box:{x:e.contentBox.x,y:0,width:c,height:R.headHeight},fragments:R.head}),p+=R.headHeight),R.tail.length>0&&s.set(F.scopeId,{fragments:R.tail,height:R.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:s};let w=h.flowHeight,S=w+p,C=Hs(e),T;o==="beneathText"?T=e.contentBox.y+C:(T=e.contentBox.y+e.contentBox.height-S,T=Math.max(T,e.contentBox.y+C));let N=T+w,M=f.map(D=>{let F={...D,box:{...D.box,y:N}};return N+=D.box.height,F}),y=Es(h,e.contentBox.x,c,T);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:T,width:c,height:S},separator:{kind:g,box:y,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:M},nextCarry:s}}function xx(e,n){let t=Math.min(Math.max(n,0),e.length-1);for(;t>0&&e[t].noteStream!==void 0;)t-=1;return t}function bC(e){return n=>{let t=Uu(e,n.sectionAnchorIndex,n.landingIndex,n.template.box);return xC(n.template,n.landingIndex,n.noteStream,t)}}function xC(e,n,t,r){let o=r?{x:e.contentBox.x,y:e.box.y+r.insets.top,width:e.contentBox.width,height:r.insets.height}:e.contentBox,a=r?r.header:e.header,i=r?r.footer:e.footer;return {id:`page-${n}`,index:n,box:e.box,contentBox:o,fragments:[],...t?{noteStream:t}:{},...a?{header:a}:{},...i?{footer:i}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+1}}:{}}}function SC(e,n){let t=null,r=false,o=e.map((a,i)=>{if(a.noteStream===void 0)return t=a.index,a;if(t===null)return a;let l=Uu(n,t,i,a.box);if(!l)return a;let s=a.box.y+l.insets.top;if(s===a.contentBox.y&&l.insets.height===a.contentBox.height&&l.header?.variant===a.header?.variant&&l.footer?.variant===a.footer?.variant)return a;let c={...a.contentBox,y:s,height:l.insets.height},u=s+c.height,f=a.contentBox.y+a.contentBox.height,p=RC(a,s-a.contentBox.y,u-f);if(!p.fits(s,u))return a;r=true;let{header:m,footer:g,...x}=a;return {...x,contentBox:c,...p.footnotes?{footnotes:p.footnotes}:{},...p.endnotes?{endnotes:p.endnotes}:{},...l.header?{header:l.header}:{},...l.footer?{footer:l.footer}:{}}});return r?o:[...e]}function ox(e,n){if(n===0)return e;let t=r=>({...r,y:r.y+n});return {...e,box:t(e.box),...e.separator?{separator:{...e.separator,box:t(e.separator.box)}}:{},notes:e.notes.map(r=>({...r,box:t(r.box)}))}}function RC(e,n,t){let r=i=>i.placement==="pageBottom"?t:n,o=e.footnotes?ox(e.footnotes,r(e.footnotes)):void 0,a=e.endnotes?ox(e.endnotes,r(e.endnotes)):void 0;return {...o?{footnotes:o}:{},...a?{endnotes:a}:{},fits(i,l){let s=d=>d===void 0||d.box.y>=i-.001&&d.box.y+d.box.height<=l+.001;return s(o)&&s(a)}}}function hf(e,n){let t=new Set;for(let r of px(e.fragments))t.add(n.get(r.paragraphId)??0);return [...t].sort((r,o)=>r-o)}function Sx(e,n,t){for(let r=e.length-1;r>=0;r-=1)if(hf(e[r],t).includes(n))return r;return Math.max(0,e.length-1)}function wC(e,n,t){let r=Sx(e,n,t);for(let o=r+1;o<e.length;o+=1){let a=e[o];if(a.noteStream==="footnote-drain"||a.noteStream==="endnote-overflow"||a.fragments.length===0&&(a.footnotes?.notes.length??0)>0)continue;let i=hf(a,t);if(i.length!==0&&!i.includes(n))return o}return e.length}function PC(e){let n=Zb(e);return [...Qt({revision:0,pages:n}).pages]}function IC(e,n,t,r,o,a,i,l){let s=new Map(a),d=[];if(n.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};let c=e.contentBox.width,u=gx(t,r),f=l?.separatorKind??"separator",p=B=>B==="footnote"?t.footnotesPart:t.endnotesPart,m=t.endnotesPart??t.footnotesPart,g=Math.max(0,e.contentBox.height),x=l?.separatorCache?l.separatorCache.get(m,f,c,"endnote",g,u,i):(()=>{let B=mi(m,f,c,u,"endnote",g);return B.fallbackReason&&i.push(B.fallbackReason),B})(),h=x.flowHeight,b=Hs(e),P=e.endnotes?Math.max(b,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):b,k=hC(e),v=Math.max(0,k-P-h),w={fullContentHeight:Math.max(0,k-h),reasons:i},S=[],C=0,T=cx;for(let[B,R]of a){let W=B.match(/^(footnote|endnote):(-?\d+)$/);if(!W)continue;let A=W[1],z=Number(W[2]),q=Math.max(0,v-C);if(R.height<=q+.001)S.push({noteKind:A,noteId:z,scopeId:B,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:R.height},fragments:R.fragments}),C+=R.height,s.delete(B);else {let _=_s({fragments:R.fragments,flowHeight:R.height},q,w);_.head.length>0&&(S.push({noteKind:A,noteId:z,scopeId:B,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:_.headHeight},fragments:_.head}),C+=_.headHeight),_.tail.length>0?s.set(B,{fragments:_.tail,height:_.tailHeight,mark:null}):s.delete(B);}}for(let B=0;B<n.length;B+=1){let R=n[B];if(S.length>=qo){i.push("note-count-limit"),d.push(...n.slice(B));break}let W=p(R.noteKind),A=Fs(W,R.noteId,c,u);if(!A){i.push("missing-note-body");continue}let z=r.marks.get(Pr(R.noteKind,R.noteId))??null,q=Math.max(0,v-C);if(T-=A.fragments.length,T<0){i.push("note-area-fragment-limit"),d.push(...n.slice(B));break}if(A.flowHeight<=q+.001)S.push({noteKind:R.noteKind,noteId:R.noteId,scopeId:A.scopeId,mark:R.customMarkFollows?null:z,box:{x:e.contentBox.x,y:0,width:c,height:A.flowHeight},fragments:A.fragments}),C+=A.flowHeight;else {let _=_s(A,q,w);_.head.length>0&&(S.push({noteKind:R.noteKind,noteId:R.noteId,scopeId:A.scopeId,mark:R.customMarkFollows?null:z,box:{x:e.contentBox.x,y:0,width:c,height:_.headHeight},fragments:_.head}),C+=_.headHeight),_.tail.length>0&&s.set(A.scopeId,{fragments:_.tail,height:_.tailHeight,mark:null}),d.push(...n.slice(B+1));break}}if(S.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};if(S.length===0)return {area:void 0,nextCarry:s,remainingRefs:d};let N=e.contentBox.y+P,M=N+h,y=S.map(B=>{let R={...B,box:{...B.box,y:M}};return M+=B.box.height,R}),G=Es(x,e.contentBox.x,c,N),D=h+C,F=Math.max(0,k-P),E=Math.min(D,F);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:N,width:c,height:E},separator:{kind:f,box:G,fragments:x.fragments,synthetic:x.synthetic,...x.ruleStyle!==void 0?{ruleStyle:x.ruleStyle}:{}},notes:y},nextCarry:s,remainingRefs:d}}function vC(e,n,t,r,o,a,i,l){let s=e,d=n,c=e[xx(e,e.length-1)].index;for(;d.size>0&&a.remaining>0;){let u=s[s.length-1],f=l({template:u,landingIndex:s.length,noteStream:"footnote-drain",sectionAnchorIndex:c}),p=gf(f,[],t,r,"pageBottom",d,o,{separatorCache:i}),m=p.area?.notes.length??0;if(d=p.nextCarry,m===0){o.push("note-overflow-stalled"),p.area&&(s=[...s,{...f,footnotes:p.area}],a.remaining-=1);break}s=[...s,{...f,footnotes:p.area}],a.remaining-=1;}return d.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:s,carry:d}}function TC(e,n,t,r,o,a="endnote-overflow"){let i=r({template:t,landingIndex:n,noteStream:a,sectionAnchorIndex:o});return {pages:[...e.slice(0,n),i,...e.slice(n)],pageIndex:n}}function ax(e,n,t){if(t<=n||n>=e.length)return e;let r=Math.min(t,e.length),o=e[n],a=o.pageFieldSource?.pageNumber??n+1,i=o.pageFieldSource?.format,l=r-n,s=[...e];for(let d=n;d<r;d+=1){let c=s[d];s[d]={...c,pageFieldSource:{pageNumber:a+(d-n),sectionPageCount:l,...i?{format:i}:{}}};}return s}function ix(e,n,t,r,o,a,i,l,s){if(t.length===0||e.length===0)return e;let d=e[xx(e,n)].index,c=[...e],u=[...t],f=new Map,p=n,m=0,g="separator",x=s?.stopBeforeIndex??Number.POSITIVE_INFINITY,h=s?.sectionStartIndex??n,b=s?.stopBeforeIndex!==void 0,P=s?.separatorCache;for(;u.length>0||f.size>0;){if(p>=c.length||p>=x){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let w=c[Math.min(Math.max(p,1),c.length)-1]??c[c.length-1],S=Math.min(p,x,c.length),C=TC(c,S,w,s.mint,d,"endnote-overflow");c=C.pages,p=C.pageIndex,b&&(x=S+1),m+=1,l.remaining-=1;}let k=c[p];if(!bx(k)){p+=1;continue}let v=IC(k,u,r,o,a,f,i,{separatorKind:g,...P?{separatorCache:P}:{}});f=v.nextCarry,u=v.remainingRefs;let L=v.area?.notes.length??0;if(v.area){let w=c[p];c[p]={...w,endnotes:w.endnotes?{...v.area,notes:[...w.endnotes.notes,...v.area.notes],box:{...v.area.box,y:w.endnotes.box.y,height:w.endnotes.box.height+v.area.box.height}}:v.area};}else {if(f.size===0&&u.length===0)break;if(!v.area&&f.size===0&&u.length>0){p+=1,g="separator";continue}}if(L===0&&(f.size>0||u.length>0)&&k.fragments.length===0&&k.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(f.size>0||u.length>0){g="continuationSeparator",p+=1;continue}break}return (u.length>0||f.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),b?c=ax(c,h,Math.min(x,c.length)):m>0&&(c=ax(c,h,c.length)),c}function Rx(e,n,t,r,o){let a=o??null,i=new Map,l=[],s=new Map,d=pf(n),c=mx();for(let f of e.pages){let p=uf(f),g=Ds(p,n,d).filter(S=>S.noteKind==="footnote"),x=g[0]?.sectionIndex??0,h=Zo(t,x);if(h.pos==="sectEnd"||h.pos==="docEnd")continue;if(a&&s.size===0){let S=a.pageReserve.get(f);if(S&&S.allHits===n&&S.marks===r){for(let C of S.reasons)l.push(C);S.reserve>0&&i.set(f.index,Math.max(i.get(f.index)??0,S.reserve));continue}}let b=Math.max(0,p.contentBox.height-fx),P=s.size===0,k=l.length,{area:v,nextCarry:L}=gf(p,g,t,r,h.pos,s,l,{reserveColumnBudget:true,separatorCache:c});s=L;let w=Math.min(v?.box.height??0,b);if(a&&P&&s.size===0&&a.pageReserve.set(f,{allHits:n,marks:r,reserve:w>0?w:0,reasons:l.slice(k)}),w>0){let S=i.get(f.index)??0;i.set(f.index,Math.max(S,w));}}let u=true;for(let f of e.pages){let p=i.get(f.index)??0;if(p<=0)continue;if(Hs(uf(f))+p>f.contentBox.height+.5){u=false;break}}return {reserves:i,stable:u,reasons:l}}function wx(e,n,t,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,l={remaining:ux},s=pf(n),d=mx(),c=bC(e),u=[],f=[];for(let v of e.pages)for(let L of Ds(v,n,s)){let w={noteId:L.noteId,sectionIndex:L.sectionIndex,pageIndex:v.index,customMarkFollows:L.customMarkFollows};L.noteKind==="footnote"?u.push(w):f.push(w);}let p=o?[...u,...f].map(v=>`${v.noteId}|${v.sectionIndex}|${v.pageIndex??""}|${v.customMarkFollows?1:0}`).join(";"):"",m;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===p?m=o.finalMarks.marks:(m=hx(u,f,t),o&&(o.finalMarks={sitesFingerprint:p,marks:m}));let g=new Map,x=new Map,h=[],b=e.pages.map(v=>{let L=Ds(v,n,s),w=L.filter(F=>F.noteKind==="footnote"),S=L.filter(F=>F.noteKind==="endnote");for(let F of S)if(mf(t,F.sectionIndex).pos==="sectEnd"){let B=x.get(F.sectionIndex)??[];B.push(F),x.set(F.sectionIndex,B);}else h.push(F);for(let F of w){let E=Zo(t,F.sectionIndex);if(E.pos==="sectEnd"){let B=x.get(F.sectionIndex)??[];B.push(F),x.set(F.sectionIndex,B);}else E.pos==="docEnd"&&h.push(F);}if(o&&g.size===0){let F=o.pageAttach.get(v);if(F&&F.allHits===n&&F.marks===m){for(let E of F.reasons)a.push(E);return F.attached}}let C=uf(v),T=w[0]?.sectionIndex??0,N=Zo(t,T),M,y=g.size===0,G=a.length;if(N.pos==="pageBottom"||N.pos==="beneathText"){let F=w.filter(B=>{let R=Zo(t,B.sectionIndex).pos;return R==="pageBottom"||R==="beneathText"}),E=gf(C,F,t,m,N.pos,g,a,{separatorCache:d});M=E.area,g=E.nextCarry;}let D=M?{...C,footnotes:M}:C;return o&&y&&g.size===0&&o.pageAttach.set(v,{allHits:n,marks:m,attached:D,reserve:0,reasons:a.slice(G)}),D}),P=b.length;if(g.size>0){let v=vC(b,g,t,m,a,l,d,c);b=v.pages,g=v.carry;}if(x.size>0&&b.length>0){let v=[...x.keys()].sort((L,w)=>L-w);for(let L of v){let w=x.get(L),S=Sx(b,L,i),C=wC(b,L,i),T=S;for(let N=0;N<=S;N+=1)if(hf(b[N],i).includes(L)){T=N;break}b=ix(b,S,w,t,m,"sectEnd",a,l,{stopBeforeIndex:C,sectionStartIndex:T,separatorCache:d,mint:c});}}return h.length>0&&b.length>0&&(b=ix(b,yC(b),h,t,m,"docEnd",a,l,{separatorCache:d,mint:c})),b.length!==P&&(b=SC(b,e),b=PC(b)),{layout:uC({revision:e.revision,pages:b},m),fallbackReasons:a,noteMarks:m}}function CC(e){return Qe$1(e).map(n=>({noteKind:n.noteKind,noteId:n.noteId,paragraphId:n.paragraphId,atomOffset:n.atomOffset,customMarkFollows:n.customMarkFollows}))}var lx=new WeakMap;function kC(e,n){return `${n};${e.map(t=>`${t.blockStart}-${t.blockEndExclusive}`).join(",")}`}function OC(e,n){if(e.kind!==n.kind)return false;if(e.kind==="paragraph")return e.id===n.id;let t=ff(e),r=ff(n);if(t.length!==r.length)return false;for(let o=0;o<t.length;o+=1)if(t[o]!==r[o])return false;return true}function BC(e,n,t,r){let o=At(e,t),a=kC(n,t),i=r?lx.get(r):void 0;if(i&&i.boundsFingerprint===a&&i.blocks.length===o.length){let s=true;for(let d=0;d<o.length;d+=1){let c=o[d],u=i.blocks[d];if(c!==u&&!OC(c,u)){s=false;break}}if(s)return i.blocks=o,i.map}let l=new Map;for(let s=0;s<n.length;s+=1){let d=n[s];for(let c=d.blockStart;c<d.blockEndExclusive;c+=1){let u=o[c];if(u){if(u.kind==="paragraph"){l.set(u.id,s);continue}for(let f of ff(u))l.set(f,s);}}}return r&&lx.set(r,{blocks:o,boundsFingerprint:a,map:l}),l}var sx=new WeakMap;function ff(e){let n=sx.get(e);if(n)return n;let t=[],r=(o,a)=>{if(!(a>32)&&o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);return}for(let i of o.children)r(i,a+1);}};return r(e,0),sx.set(e,t),t}function yf(e,n,t){if(!e)return "";let r=[];for(let[o,a]of e){let i=o-n;i>=0&&i<t&&r.push([i,a]);}return r.length===0?"":(r.sort((o,a)=>o[0]-a[0]),`|nr:${r.map(([o,a])=>`${o}=${a}`).join(",")}`)}function jr(e){let n=new Map;for(let[t,r]of e)r>0&&n.set(t,r);return n}function sf(e,n){let t=jr(e),r=jr(n);if(t.size!==r.size)return false;for(let[o,a]of t)if((r.get(o)??0)!==a)return false;return true}function dx(e,n){let t=jr(e);for(let[r,o]of n)o<=0||t.set(r,Math.max(t.get(r)??0,o));return t}function As(e){return [...jr(e)].map(([n,t])=>`${n}=${t}`).sort().join(",")}function Px(e,n,t,r,o){let a=CC(e);if(a.length===0)return t.session&&(t.session.notes=null,t.session.notePageBottomReserves=null),o({...t,noteMarks:void 0,pageBottomReserves:void 0});let i=BC(e,n,t.displayMode??We,t.session),l=aC(a,i),s=rC(t.session,l,r),d=s.memo,c=s.allHits,u=d?.provisionalMarks??bf(c,r),f=t.session?.notePageBottomReserves,p=f?jr(f):new Map,m=[],g=o({...t,noteMarks:u,pageBottomReserves:p}),x=new Set([As(p)]);for(let b=0;b<df;b+=1){let P=Rx(g,c,r,u,d);if(m=[...P.reasons],P.stable&&sf(P.reserves,p))break;let k=P.stable?jr(P.reserves):dx(p,P.reserves);if(sf(k,p)){m.push("note-reflow-exhausted");break}let v=As(k);if(x.has(v)){k=dx(p,P.reserves);let L=As(k);if(sf(k,p)||x.has(L)){m.push("note-reflow-exhausted");break}}p=k,x.add(As(p)),g=o({...t,noteMarks:u,pageBottomReserves:p}),b===df-1&&m.push("note-reflow-exhausted");}let h=wx(g,c,r,{fallbackReasons:m,paragraphSectionIndex:i,memo:d});return t.session&&(t.session.previous=h.layout,t.session.notePageBottomReserves=jr(p)),h.layout}function bf(e,n){let t=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?t.push(a):r.push(a);}return hx(t,r,n)}function Ix(e,n){let t=e.projectLink??n.projectLink,r=e.projectFieldLink??n.projectFieldLink,o=e.documentProperties??n.documentProperties;return {...e,...t?{projectLink:t}:{},...r?{projectFieldLink:r}:{},...o?{documentProperties:o}:{}}}var vx=null;function kx(e,n){let t=vx;if(t&&t.base===e&&t.token===n)return t.producer;let r=`${e??"unversioned-measurer"}|cc:${n}`;return vx={base:e,token:n,producer:r},r}var Tx=new WeakMap,Cx=null;function MC(e,n,t,r,o,a){return e!=null&&e.base===n&&e.noteMarks===t&&e.defaultTabStopPt===r&&e.displayMode===o&&e.pageNumberFormat===a}function Ox(e,n,t,r,o,a){let i=n?Tx.get(n):Cx;if(MC(i,e,t,r,o,a))return i.producer;let l=(e??"unversioned-measurer")+(n?`|sc:${n.cacheToken}`:"")+(t?`|nm:${tg(t)}`:"")+(r!==void 0?`|dts:${r}`:"")+(o===We?"":`|rev:${o}`)+(a!==void 0?`|pnf:${a}`:""),s={base:e,noteMarks:t,defaultTabStopPt:r,displayMode:o,pageNumberFormat:a,producer:l};return n?Tx.set(n,s):Cx=s,l}var LC={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"},FC={kind:"covered",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function Lx(e){return Object.keys(e).filter(n=>e[n]==="hashed")}var EC=Lx(LC),NC=Lx(FC),Bx=new WeakMap;function Mx(e){let n=Bx.get(e);if(n!==void 0)return n;let t=e.kind==="table"?JSON.stringify(NC.map(r=>e[r])):JSON.stringify(EC.map(r=>e[r]));return Bx.set(e,t),t}function Fx(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1){let r=e[t],o=n[t];if(r!==o&&Mx(r)!==Mx(o))return false}return true}function xf(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(e[t]!==n[t])return false;return true}var Ex=Object.freeze([]),Nx=new Map;function Ax(e,n){if(e===n)return true;if(e.size!==n.size)return false;for(let[t,r]of e)if(n.get(t)!==r)return false;return true}function zs(){return {previous:null,checkpoints:[],keys:[],context:"",producer:"",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 Dx(e,n){return [...e].map(([t,r])=>`${t}=${r.flowHeight}`).sort().join(",")}function zx(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${Dx(e.headers)};f:${Dx(e.footers)}`:""}function js(e,n,t){if(e.sectionFurniture)return e.sectionFurniture[n];if(n===t-1)return e.furniture}function AC(e,n){return e.map((t,r)=>{let o=zr(t.properties),a=js(n,r,e.length),i=t.properties.pageNumbering,l=i?`pn:${i.start??""},${i.fmt??""},${i.chapStyle??""},${i.chapSep??""}`:"pn:",s=t.properties.columns,d=`cols:${s.count},${s.gapTwips},${s.equalWidth===false?0:1},${s.separator?1:0};${(s.definitions??[]).map(c=>`${c.widthTwips}/${c.gapTwips}`).join(",")}`;return [t.properties.breakType,o.width,o.height,o.margin.top,o.margin.right,o.margin.bottom,o.margin.left,o.headerDistance??36,o.footerDistance??36,zx(a),l,d].join(":")}).join("|")}function DC(e,n,t){if(!e)return null;let r=e.multi;if(r&&r.structureKey===n&&r.sections.length===t)return r;let o={structureKey:n,sections:Array.from({length:t},()=>zs()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1};return e.multi=o,o}function _C(e){return e!=="continuous"}function HC(e,n){return e.width===n.width&&e.height===n.height}function zC(e){let n=e.contentBox.y-e.box.y;return {top:n,bottom:e.box.height-n-e.contentBox.height,height:e.contentBox.height}}function jC(e,n){if(n.fragments.length===0&&!n.columnSeparators?.length&&!n.anchoredDrawings?.length)return e;let t=e.anchoredDrawings||n.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...n.anchoredDrawings??[]]):void 0;return {...e,fragments:n.fragments.length>0?[...e.fragments,...n.fragments]:e.fragments,...(e.columnSeparators?.length||n.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...n.columnSeparators??[]]},...t?{anchoredDrawings:t}:{}}}function _x(e,n,t){e.previous=n,e.startLineCounter=0,e.endLineCounter=t,e.keys=[],e.checkpoints=[],e.context="",e.producer="";}var Hx=new WeakMap;function GC(e,n,t,r,o,a){let i=Hx.get(e);if(i&&i.globalIndex===n&&i.sheetY===t&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let l=Nr(e,n,t),s=bo([l],r,o,a)[0];return Hx.set(e,{globalIndex:n,sheetY:t,pageNumber:r,sectionPageCount:o,format:a,published:s}),s}function jx(e,n,t,r,o){let{session:a,...i}=r,l=AC(n,r),s=DC(a,l,n.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,x=0,h=0,b=0,P=0,k=0,v=true,L=[],w=null,S="",C=1;for(let M=0;M<n.length;M+=1){let y=n[M],G=e.slice(y.blockStart,y.blockEndExclusive),D=zr(y.properties),F=js(r,M,n.length),E=u.length,B=m,R=s?.spans[M],W=zx(F);if(G.length===0&&!_C(y.properties.breakType)){p.push({startIndex:E,pageCount:0,sheetY:B,remappedPages:[],sourcePages:[]});continue}let A=M>0&&y.properties.breakType==="continuous"&&u.length>0&&v&&w!==null&&HC(w,D)&&S===W,z=s?.sections[M],q=y.properties.columns.count>1&&n[M+1]?.properties.breakType==="continuous",_=A?zC(u[u.length-1]):void 0,X=y.properties.pageNumbering?.fmt,U=A?u[u.length-1]?.pageFieldSource?.format:void 0,j=A&&!Zt("PAGE",U)?U:X,K=o(G,t,{...i,retainKeys:d,geometry:D,furniture:F,sectionColumns:y.properties.columns,...q?{balanceColumns:q}:{},lineCounterStart:g,pageIndexStart:A?E-1:E,...A?{flowStartY:P,spaceBeforeCarry:k}:{},..._?{continuedPageInsets:_}:{},...j!==void 0?{bodyPageNumberFormat:j}:{},...z?{session:z}:{}});L.push({startIndex:E,at:K.overflowShellAt}),g=K.lineCounter,P=K.endCursorY,k=K.endSpaceAfter,v=K.endsOpenPage,w=D,S=W,z?(x+=z.stats.placed,h+=z.stats.total):(x+=G.length,h+=G.length);let pe=z!==void 0&&z.stats.placed===0&&z.stats.reusedPages===K.pages.length&&R!==void 0&&R.pageCount===K.pages.length&&R.sourcePages.length===K.pages.length&&R.sourcePages.every((ye,De)=>ye===K.pages[De]),Fe=R!==void 0&&R.startIndex===E&&R.sheetY===B&&R.remappedPages.length===K.pages.length,Ie=y.properties.pageNumbering,me=Ie?.start!==void 0?Ie.start:C,ge=Ie?.fmt,Be=R?.remappedPages[0],we=R===void 0||R.remappedPages.length===0||Be?.pageFieldSource!==void 0&&Be.pageFieldSource.pageNumber===me&&Be.pageFieldSource.sectionPageCount===R.remappedPages.length&&Be.pageFieldSource.format===ge,Se;if(A){let ye=u.length-1,De=u[ye],le=jC(De,K.pages[0]);if(le!==De){u[ye]=le;let be=f.lastIndexOf(De);be!==-1&&(f[be]=le);}let _e=[];for(let be of K.pages.slice(1)){let sn=Nr(be,u.length+_e.length,m);_e.push(sn),m=sn.box.y+sn.box.height+Ar;}let Ze=_e.length+1;Se=bo(_e,me+1,Ze,ge);for(let be of Se)u.push(be),f.push(be);C=me+Ze;}else if(pe&&Fe&&we){Se=R.remappedPages,b+=Se.length;for(let ye of Se)u.push(ye),f.push(ye),m=ye.box.y+ye.box.height+Ar;C=me+Se.length;}else {let ye=[];for(let De of K.pages){let le=GC(De,u.length+ye.length,m,me+ye.length,K.pages.length,ge);ye.push(le),m=le.box.y+le.box.height+Ar;}Se=ye;for(let De of Se)u.push(De),f.push(De);C=me+Se.length;}p.push({startIndex:E,pageCount:Se.length,sheetY:B,remappedPages:Se,sourcePages:K.pages});}if(u.length===0){let M=zr(n[0]?.properties??Qn),y=o([],t,{...i,retainKeys:d,geometry:M,sectionColumns:n[0]?.properties.columns??Qn.columns});c();let G=Qt({revision:t,pages:y.pages});return di(G,(D,F,E)=>y.overflowShellAt(F,E)),s&&(s.spans=[],s.previousRemapped=y.pages,s.previousFinalized=G,s.previousPageCount=G.pages.length),a&&(_x(a,G,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),G}let T=Qt({revision:t,pages:u}),N=T;if(s?.previousFinalized&&s.previousPageCount===T.pages.length&&s.previousRemapped.length===f.length){let M=s.previousFinalized.pages,y=s.previousRemapped,G=T.pages.map((D,F)=>f[F]===y[F]&&M[F]?M[F]:D);N={revision:t,pages:G};}return s&&(s.spans=p,s.previousRemapped=f,s.previousFinalized=N,s.previousPageCount=N.pages.length),a&&(_x(a,N,g),a.stats={placed:x,total:h||1,reusedPages:b,fullPasses:a.stats.fullPasses+(x===h&&b===0?1:0)}),di(N,(M,y,G)=>{let D=L[0];for(let E of L)E.startIndex<=M&&(D=E);return (D??L[L.length-1])?.at(y,G)}),c(),N}function Gs(e=6,n=14){let t=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*t(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=n*t(r)*o;return {height:a,baseline:a*.8}}}}var WC=2;function VC(e,n){if(!n||n.size===0)return "";let t=[],r=o=>{if(o.kind==="paragraph"){let a=n.get(o.id)?.cacheToken;a&&t.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),t.join(";")}var Gx=new WeakMap,Wx=new WeakMap;function Rf(e){if(e===void 0||e.size===0)return "";let n=Wx.get(e);if(n!==void 0)return n;let t=[...e].join(",");return Wx.set(e,t),t}function $C(e){let n=Rf(e.chrome),t=Rf(e.placeholder),r=Rf(e.suppressed);return n===""&&t===""&&r===""?"":`${n}|${t}|${r}`}function XC(e,n){let t=n.chrome?.has(e)??false,r=n.placeholder?.has(e)??false,o=n.suppressed?.has(e)??false;return !t&&!r&&!o?"":`${t?1:0}${r?1:0}${o?1:0}`}var Vx=new WeakMap;function YC(e,n,t){let r=t.displayMode??We,o=At(e,r),a=rf(e,o).sections,i=Yo(e),l={...t,producer:kx(t.producer,i),tocFieldChromeParagraphIds:t.tocFieldChromeParagraphIds??Gu(e),emptyTocPlaceholderParagraphIds:t.emptyTocPlaceholderParagraphIds??Wu(e),emptyTocSuppressedResultParagraphIds:t.emptyTocSuppressedResultParagraphIds??Vu(e)},s=t.drawingSourceOrder;!s&&t.inlineDrawingLayout&&(s=Vx.get(t.inlineDrawingLayout),s||(s=(()=>{let p=new Map;return eb$1(e).forEach((m,g)=>{p.set(m.drawingNodeId,g);}),p})(),Vx.set(t.inlineDrawingLayout,s)));let d=t.session?yy(s?{...l,drawingSourceOrder:s}:l,o,t.session):Br(s?{...l,drawingSourceOrder:s}:l,o),c=p=>{if(a.length>1)return jx(o,a,n,p,Jo);let m=a[0],g=p.geometry??(m?zr(m.properties):wa),x=js(p,0,a.length)??p.furniture,h=m?.properties.pageNumbering,b=Jo(o,n,{...p,geometry:g,furniture:x,sectionColumns:m?.properties.columns??Qn.columns,...h?.fmt?{bodyPageNumberFormat:h.fmt}:{}}),P=h,k=Qu({revision:b.layout.revision,pages:bo(b.pages,P?.start??1,b.pages.length,P?.fmt)},b.layout),v=Qt(k);return di(v,(L,w,S)=>b.overflowShellAt(w,S)),p.session&&(p.session.multi=null,p.session.previous=v),v},u=p=>{let m=ef(p,e,i);return t.session&&(t.session.previous=m),m};if(!t.notes)return t.session&&(t.session.notes=null,t.session.notePageBottomReserves=null),u(c(d));let f=Ix(t.notes,t);return u(Px(e,a,d,f,c))}function $x(e,n,t,r){let o=`line:${e}:${t}:${n}`;return r===void 0?o:`${o}:occ:${r}`}function Gr(e,n,t){let r=t.geometry,o=r.width-r.margin.left-r.margin.right,a=of(t.sectionColumns??Qn.columns,o);if(t.inlineDrawingLayout&&t.drawingExclusionPass===void 0&&!t.drawingExclusionConverged){let O=J=>t.drawingSourceOrder?.get(J),$=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),Y=new Map,oe=null,ke=false,Te=new Set,xe=t.session?.previous?.pages;if(xe){if(Y=Vc(xe,t.inlineDrawingLayout,t.drawingLayoutEpoch,o,t.drawingSourceOrder,$),oe=Jo(e,n,{...t,drawingExclusionPass:0,drawingExclusionZonesByPage:Y}),oe.pages===xe)return oe;let J=Vc(oe.pages,t.inlineDrawingLayout,t.drawingLayoutEpoch,o,t.drawingSourceOrder,$);if(Ol(Y,J))return oe;Y=new Map(J),Te.add(Bl(J));}for(let J=0;J<vr;J+=1){oe=Jo(e,n,{...t,session:void 0,drawingExclusionPass:J,drawingExclusionZonesByPage:Y});let he=kl(oe.pages,t.inlineDrawingLayout,o,O,$);if(he.size===0){ke=true,Y=he;break}let ee=Bl(he);if(Te.has(ee)){ke=true,Y=he;break}if(Te.add(ee),J>0&&Ol(Y,he)){ke=true,Y=he;break}Y=new Map(he);}if(!ke)for(let J=0;J<WC&&!ke;J+=1){oe=Jo(e,n,{...t,session:void 0,drawingExclusionPass:vr+J,drawingExclusionZonesByPage:Y});let he=kl(oe.pages,t.inlineDrawingLayout,o,O,$),ee=Bl(he);if(Ol(Y,he)||Te.has(ee)){ke=true,Y=he;break}Te.add(ee),Y=new Map(he);}if(!ke)throw new Fo(`wrap exclusion reflow did not converge within ${vr} passes`);return Jo(e,n,{...t,drawingExclusionConverged:true,drawingExclusionZonesByPage:Y})}let i=t.measurer,l=t.cache,s$1=t.styleCascade,d=t.listItems,c=t.defaultTabStopPt,u=t.displayMode??We,f=u==="all-markup",p=t.tocFieldChromeParagraphIds,m=t.emptyTocPlaceholderParagraphIds,g=t.emptyTocSuppressedResultParagraphIds,x={chrome:p,placeholder:m,suppressed:g},h=$C(x),b=Ox(t.producer,s$1,t.noteMarks,c,u,t.bodyPageNumberFormat),P=a.widths[0],k=t.furniture,v=r.headerDistance??36,L=r.footerDistance??36,w=t.pageBottomReserves,S=t.session,C=t.lineCounterStart??0,T=bb(k,v,L),N=t.flowStartY??0,M=t.spaceBeforeCarry??0,y=t.pageIndexStart??0,G=xb({...k?{furniture:k}:{},pageHeight:r.height,marginTop:r.margin.top,marginBottom:r.margin.bottom,headerDistance:v,footerDistance:L,pageIndexStart:y,...t.continuedPageInsets?{continuedPageInsets:t.continuedPageInsets}:{}}),D=Object.freeze(t.bodyPageNumberFormat!==void 0?{format:t.bodyPageNumberFormat}:{}),F=S?.previous?S.previous.pages.length+1:1/0,E=t.columnRegionBottom,B=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${E!==void 0?`;bal:${E}`:""}`,R=t.continuedPageInsets,W=R?`|cont:${R.top},${R.height}`:"",A=O=>`${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${N},${M}${W}${T}${O}${B}`,z=A(yf(w,y,F)),q=y&1,_=false,X=null,U=()=>{_=true;},j=[],K=Rb({...k?{furniture:k}:{},geometry:r,headerDistance:v,footerDistance:L,pageIndexStart:y,contentWidth:o,insetsFor:G,pageCount:()=>j.length}),{pageBox:pe,furnitureFor:Fe,overflowShellAt:Ie}=K,me=()=>{let O=Math.max(1,G(j.length).height-(w?.get(y+j.length)??0));return E!==void 0&&j.length===0?Math.max(1,Math.min(O,E)):O},ge=(O,$)=>{let Y=O.kind==="paragraph"?t.drawingTokenForParagraph?.(O)??t.drawingLayoutToken??"":O.kind==="table"&&t.drawingTokenForParagraph?nb(O,t.drawingLayoutEpoch,t.drawingTokenForParagraph):"",oe=mb(O,t.numberingIndex,s$1,u),ke=(O.kind==="table"?VC(O,d):d?.get(O.id)?.cacheToken??"")+oe,Te=Gx.get(O);if(Te&&Te.contentWidth===$&&Te.producer===b&&Te.drawingToken===Y&&Te.listToken===ke)return Te.entry;let xe;if(O.kind==="table")xe={kind:"table",table:O,key:Ir({paragraph:O,properties:oe?[{localName:"txbxList",attributes:{token:oe}}]:[],width:$,producer:b,...Y?{drawingToken:Y}:{}})};else {let J=d?.get(O.id),he=kr(O,$,s$1,J),{props:ee,indent:Ce,available:Ue,alignment:An,spacing:Ge,lineSpacing:Dn,contextualSpacing:hn,styleId:rt,shading:kn,inheritedRunProperties:Gn,markRunProperties:Vr}=he,Wn=th(O.children.find(xi=>xi.kind==="paragraphProperties"),s$1),$r=Oa(he.tabStops,c),bi=$r===he.tabStops?he.tabStopsCacheToken:xr($r);xe={kind:"paragraph",paragraph:O,props:ee,indent:Ce,available:Ue,alignment:An,spacing:Ge,lineSpacing:Dn,contextualSpacing:hn,styleId:rt,borders:Wn,borderGroupKey:Ya({borders:Wn,indent:Ce}),shading:kn,inheritedRunProperties:Gn,markRunProperties:Vr,tabStops:$r,keeps:rh(ee),...J?{listItem:J}:{},key:Ir({paragraph:O,properties:[...ee,...Gn,...Vr,{localName:"tabStops",attributes:{token:bi}},...J?[{localName:"list",attributes:{token:J.cacheToken}}]:[],...oe?[{localName:"txbxList",attributes:{token:oe}}]:[]],width:Ue,producer:b,...Y?{drawingToken:Y}:{}})};}return Gx.set(O,{contentWidth:$,producer:b,drawingToken:Y,listToken:ke,entry:xe}),xe},Be=t.drawingTokenForParagraph===void 0&&t.drawingLayoutToken===void 0?t.drawingLayoutEpoch??"":t.drawingLayoutEpoch??null,we=S?.prepass,Se=we!=null&&Be!==null&&we.drawingEpoch===Be&&we.producer===b&&we.contentWidth===P&&we.styleCascade===s$1&&we.listItems===d&&we.tocToken===h&&we.bodies.length===e.length&&we.bodies.every((O,$)=>O===e[$]),ye=Se?we:De();function De(){let O=e.map(ee=>ge(ee,P)),$=O.map(ee=>ee.key),Y=O.map(ee=>ee.kind==="paragraph"&&ee.keeps.keepNext),oe=O.map(ee=>ee.kind==="paragraph"?d?.get(ee.paragraph.id)?.markerText:void 0),ke=O.map(ee=>ee.kind==="paragraph"&&ee.contextualSpacing),Te=O.map(ee=>ee.kind==="paragraph"?ee.styleId:null),xe=O.map(ee=>ee.kind==="paragraph"?ee.borderGroupKey:""),J=h===""?[]:O.map(ee=>ee.kind==="paragraph"?XC(ee.paragraph.id,x):""),he=ih($,{contextualSpacingAt:ee=>ke[ee],styleIdAt:ee=>Te[ee]??null,borderGroupKeyAt:ee=>xe[ee],tocVerdicts:J,markerTextAt:ee=>oe[ee],keepsNextAt:ee=>Y[ee]});return {bodies:e,producer:b,contentWidth:P,styleCascade:s$1,listItems:d,drawingEpoch:Be??"",prepared:O,keys:$,paragraphDocumentOrder:$y(O,P,s$1,u),keepsNext:Y,markerTexts:oe,tocToken:h,flowKeys:he}}S&&Be!==null&&!Se&&(S.prepass=ye);let{prepared:le,keys:_e,paragraphDocumentOrder:Ze,keepsNext:be,flowKeys:sn}=ye,En=()=>{t.retainKeys!==false&&(t.retainKeys===void 0&&l&&!(l.retentionPassDue?.()??true)||mg(l,t.retainKeys,_e,le.flatMap(O=>O.kind==="table"?[O.table]:[])));},dn=S?.previous??null,wt=dn!==null&&S!==void 0&&S.context===z&&S.producer===b&&(!S.parityDependent||S.startPageParity===q),Pt=a.count===1&&wt,cn=0;if(wt){let O=Math.min(sn.length,S.keys.length);for(;cn<O&&sn[cn]===S.keys[cn];)cn+=1;}let et=0;if(Pt){let O=Math.min(sn.length,S.keys.length)-cn;for(;et<O&&sn[sn.length-1-et]===S.keys[S.keys.length-1-et];)et+=1;}if(wt&&cn===le.length&&le.length===S.keys.length){let O=Qu({revision:n,pages:dn.pages},dn),$=C+(S.endLineCounter-S.startLineCounter);return S.previous=O,S.startLineCounter=C,S.endLineCounter=$,S.startPageParity=q,S.stats={placed:0,total:le.length,reusedPages:dn.pages.length,fullPasses:S.stats.fullPasses},En(),{layout:O,pages:O.pages,lineCounter:$,endCursorY:S.endCursorY,endSpaceAfter:S.endSpaceAfter,endsOpenPage:S.endsOpenPage,overflowShellAt:Ie}}let ve=[],nn=0,H=0,I=()=>a.lefts[nn],V=()=>a.widths[nn],te=()=>({text:{left:I(),width:V()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),re=()=>ve.length>H,Z=[],ue=[],ce=new Map,ae=N,$e=N,Pe=0,He=C,se=M,de=[],Le=()=>({pageCount:j.length,pageFragments:[...ve],pendingAnchoredDrawings:[...Z],deferredAnchoredDrawings:ue.length>0?[...ue]:Ex,anchorPageDeferCounts:ce.size>0?new Map(ce):Nx,cursorY:ae,lineCounter:He,previousSpaceAfter:se,flowColumnIndex:Pe}),Ke=0,ze=0,fn=0,nt=N===0;if(Pt&&cn>0&&cn<S.checkpoints.length){let O=S.checkpoints[cn];j.push(...dn.pages.slice(0,O.pageCount)),ve=[...O.pageFragments],Z=[...O.pendingAnchoredDrawings],ue=[...O.deferredAnchoredDrawings],ce.clear();for(let[$,Y]of O.anchorPageDeferCounts)ce.set($,Y);ae=O.cursorY,Pe=O.flowColumnIndex,nn=O.flowColumnIndex,He=O.lineCounter,se=O.previousSpaceAfter,Ke=cn,nt=false,fn=j.length,de.push(...S.checkpoints.slice(0,cn));}let Nn=a.count,tt=I,dr=O=>Object.freeze({x:a.lefts[Pe]??0,y:O.y,width:a.widths[Pe]??P,height:O.height}),jt=()=>{let O=G(j.length);return Object.freeze({pageNumber:y+j.length+1,onPageParityRead:U,pageWidth:r.width,pageHeight:r.height,marginLeft:r.margin.left,marginRight:r.margin.right,marginBottom:r.margin.bottom,contentInsetTop:O.top,contentInsetBottom:O.bottom,contentWidth:P,contentHeight:me(),contentBandHeight:O.height,ownerPartName:t.inlineDrawingLayout?.ownerPartName??s,storyKind:"body"})},na=()=>Wa(jt()),ta=O=>t.drawingSourceOrder?.get(O),cr=O=>{if(O.length===0)return;for(let Y of O)Z.some(oe=>oe.drawingNodeId===Y.drawingNodeId)||Z.push(Y.sourceOrder===void 0&&ta(Y.drawingNodeId)!==void 0?Object.freeze({...Y,sourceOrder:ta(Y.drawingNodeId)}):Y);if(!t.inlineDrawingLayout)return;let $=Hg(Z,{pageBottom:me()});if(Z.splice(0,Z.length,...$.drawings),$.deferred.length>0)for(let Y of $.deferred){let oe=(ce.get(Y.drawingNodeId)??0)+1;ce.set(Y.drawingNodeId,oe),oe>=Dc?Z.push(Gc(Y,"page-defer-exhausted")):ue.push(Y);}},je=()=>{if(ue.length===0)return;let O=ue.map($=>zc($,ae-$.y));ue=[],cr(O);},Wr=()=>{let O=j.length,$=pe(O),Y=Fe("header",O,$),oe=Fe("footer",O,$),{usedBottom:ke,hasBodyPageFields:Te}=xc(ve,$e),xe=G(O);j.push({id:`page-${O}`,index:O,box:$,contentBox:{x:$.x+r.margin.left,y:$.y+xe.top,width:o,height:xe.height},fragments:ve,hasBodyPageFields:Te,...a.separator?{columnSeparators:a.gaps.map((J,he)=>({x:a.lefts[he]+a.widths[he]+J/2-.375,y:$e,width:.75,height:Math.max(0,ke-$e)}))}:{},...Z.length>0?{anchoredDrawings:_g(Z)}:{},...Y?{header:Y}:{},...oe?{footer:oe}:{}}),ve=[],Z=[],ae=0,nn=0,Pe=0,$e=0,H=0;},MS=(O,$)=>{if(O.kind!=="paragraph"||O.listItem!==void 0||O.shading!==void 0)return false;let{top:Y,bottom:oe,left:ke,right:Te,between:xe}=O.borders;if(Y??oe??ke??Te??xe)return false;let J=t.inlineDrawingLayout;return J&&Ln(O.paragraph,J).length>0?false:$.every(he=>he.drawings.length===0&&!he.pageBreakAfter&&!he.columnBreakAfter&&he.spans.every(ee=>ee.text.length===0))},yi=()=>{if(nn+1<a.count){nn+=1,Pe=nn,ae=$e,se=0,H=ve.length;return}Wr(),je();},kf=O=>vs(O,{measurer:i,producer:b,cache:l,styleCascade:s$1,...c!==void 0?{defaultTabStopPt:c}:{},...u?{displayMode:u}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.numberingIndex?{numberingIndex:t.numberingIndex}:{},inlineDrawingLayout:t.inlineDrawingLayout,drawingTokenForParagraph:t.drawingTokenForParagraph}),LS={measurer:i,cache:l,producer:b,onCellBreakKey:O=>{X?.push(O);},nextLineId:(O,$,Y,oe)=>(He+=1,$x(O,$,Y,oe)),pageOccurrenceKey:()=>String(j.length),styleCascade:s$1,listItems:d,...c!==void 0?{defaultTabStopPt:c}:{},...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},bodyPageFields:D,...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:t.drawingLayoutToken?{drawingLayoutToken:t.drawingLayoutToken}:{},...t.inlineDrawingLayout?{anchorFrameBase:jt,pageContentClip:na,layoutTextboxStoryFor:kf,publishAnchoredDrawings:cr,collectAnchoredDrawings:cr,columnBoxForParagraph:dr,pageExclusionZones:()=>t.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([]),paragraphOrderIndex:O=>Ze.get(O),onAnchorShift:(O,$)=>Ec(Z,O,$),onAnchorRepublish:(O,$)=>{for(let Y=Z.length-1;Y>=0;Y-=1)Z[Y].anchorParagraphId===O&&Z.splice(Y,1);Z.push(...$);}}:{},borderOwnershipBudget:$l(),vMergeResolveBudget:Fu(),displayMode:u},Us=O=>ss(d?.get(O.paragraph.id)??O.listItem,O.indent,i,O.tabStops,O.available),qs=(O,$,Y=0)=>{let oe=O.paragraph.id,Te=!(m?.has(oe)??false)&&((p?.has(oe)??false)||(g?.has(oe)??false)),xe=O.available,J=tt(),ee=(t.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([])).filter(Dn=>{let hn=Ze.get(O.paragraph.id),rt=Ze.get(Dn.anchorParagraphId);if(hn!==void 0&&rt!==void 0){if(rt>hn)return false}else {let kn=le.findIndex(Gn=>Gn.kind==="paragraph"&&Gn.paragraph.id===Dn.anchorParagraphId);if(kn<0||kn>$)return false}return !(Nn>1&&Dn.columnIndex!==Pe)}),Ce=bt(ee),Ue=t.drawingTokenForParagraph?.(O.paragraph)??t.drawingLayoutToken??(t.inlineDrawingLayout?"drawing":void 0),An=l&&!Te?Ce||Ue?Ir({paragraph:O.paragraph,properties:O.props,width:xe,producer:b,...Ue?{drawingToken:Ue}:{},...Ce?{exclusionToken:`${Pe}|${ae.toFixed(3)}|${Ce}`}:{},...Y>0?{startOffset:Y}:{}}):Y===0?O.key:`${O.key}|from:${Y}`:null,Ge=Nn>1;return Nl(O.paragraph,oe,O.indent.left,xe,i,l,An,O.inheritedRunProperties,O.tabStops,void 0,s$1?(Dn,hn)=>Nt(Dn,hn,s$1):void 0,{lineSpacing:O.lineSpacing,equationCacheToken:b,firstLineOffset:Y===0?Us(O):0,startOffset:Y,marginExtent:{left:0,right:O.indent.left+xe+O.indent.right},...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},bodyPageFields:D,displayMode:u,...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},contentLeft:Ge?J:0,contentRight:Ge?J+V():O.indent.left+xe+O.indent.right,paragraphStartY:ae,...ee.length>0?{pageExclusionZones:ee}:{},...Te?{suppressEmptyPlaceholderLine:true}:{},...s$1?{themeFonts:s$1.themeFonts}:{},markRunProperties:O.markRunProperties})},Of=(O,$)=>(t.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([])).filter(oe=>{let ke=Ze.get(O.paragraph.id),Te=Ze.get(oe.anchorParagraphId);if(ke!==void 0&&Te!==void 0){if(Te>ke)return false}else {let xe=le.findIndex(J=>J.kind==="paragraph"&&J.paragraph.id===oe.anchorParagraphId);if(xe<0||xe>$)return false}return !(Nn>1&&oe.columnIndex!==Pe||oe.anchorParagraphId===O.paragraph.id&&oe.input.mode==="topAndBottom")}),Bf=(O,$,Y,oe,ke,Te,xe)=>{let J=Of(O,$);if(!t.inlineDrawingLayout||oe<=ke)return J;let he=Un(O.paragraph),ee=new Map,Ce=0;for(let hn=ke;hn<oe;hn+=1){let rt=Y[hn];for(let Gn of he.values())Gn>=rt.start&&Gn<rt.end&&ee.set(Gn,Ce);let kn=xe.get(hn)??Y[hn].exclusionSkipBefore??0;Ce+=kn+Y[hn].height;}if(ee.size===0)return J;let Ue=Nn>1,An=O.available,Ge=tt(),Dn=Cl({paragraph:O.paragraph,paragraphId:O.paragraph.id,drawingLayout:t.inlineDrawingLayout,contentLeft:Ue?Ge:0,contentRight:Ue?Ge+V():O.indent.left+An+O.indent.right,paragraphStartY:Te,anchorLineTopByModelStart:ee,columnIndex:Pe,displayMode:u});return Object.freeze([...J,...Dn])},FS=(O,$,Y,oe,ke,Te,xe,J)=>{if(t.inlineDrawingLayout){let Ue=[...Un(O.paragraph).values()];if(Ue.length>0){let An=Math.min(...Ue);if(xe.end<=An||Ue.some(Ge=>Ge>=xe.start&&Ge<xe.end)&&xe.end<=An+1)return 0}}let he=Bf(O,$,Y,oe,ke,Te,J),ee=he.length>0?xt(ae,xe.height,he):0,Ce=xe.exclusionSkipBefore??0;return ee>.001?ee:Ce},ES=O=>{let $={cursorY:ae,columnWidth:V,columnLeft:I,contentHeight:me,advanceColumn:()=>{ae=$.cursorY,yi(),$.cursorY=ae;},anchorFrames:te,styleCascade:s$1,displayMode:u,deps:LS,shiftAnchor:(Y,oe)=>Ec(Z,Y,oe),publishFragment:Y=>ve.push(Y)};Yy(O,$),ae=$.cursorY;},Gt=false,Zs=le.length,Js=0;for(let O=Ke;O<le.length;O+=1){let $=ge(e[O],V());if(de[O]=Le(),Pt&&et>0&&O>=le.length-et){let ne=S.checkpoints[O+(S.keys.length-le.length)];if(ne&&ne.cursorY===ae&&ne.previousSpaceAfter===se&&ne.flowColumnIndex===Pe&&Fx(ne.pageFragments,ve)&&xf(ne.pendingAnchoredDrawings,Z)&&xf(ne.deferredAnchoredDrawings,ue)&&Ax(ne.anchorPageDeferCounts,ce)){let ie=j.length-ne.pageCount;if(wb({delta:ie,titlePage:k?.titlePage===true,evenAndOddHeaders:k?.evenAndOddHeaders===true,parityDependent:S.parityDependent,usedPageParity:_,markPageCount:ne.pageCount,continuedInsets:R!==void 0,hasNoteReserves:w!==void 0,hasExclusionZones:(t.drawingExclusionZonesByPage?.size??0)>0})){let On=ie===0?dn.pages.slice(ne.pageCount):dn.pages.slice(ne.pageCount).map((xn,ot)=>Nr(xn,j.length+ot,pe(j.length+ot).y));j.push(...On),fn+=On.length,Gt=true,Zs=O,Js=ie,He+=S.endLineCounter-ne.lineCounter;break}}}if(ze+=1,$.kind==="table"){se=0,X=[];try{ES($.table),pg($.table,X);}finally{X=null;}continue}let{paragraph:Y,props:oe,spacing:ke,contextualSpacing:Te,styleId:xe,borders:J,shading:he,keeps:ee}=$,{indent:Ce,alignment:Ue,markRunProperties:An}=$,Ge=$.available,Dn=O>0?le[O-1]:void 0,hn=le[O+1],rt=ne=>ne?.kind==="paragraph"&&ne.styleId===xe&&xe!==null,kn=Te?{before:rt(Dn)?0:ke.before,after:rt(hn)?0:ke.after}:ke,Gn=d?.get(Y.id)??$.listItem,Vr=Us($),Wn=Y.id,$r=$.borderGroupKey,bi=ne=>$r!==""&&ne?.kind==="paragraph"&&ne.borderGroupKey===$r,xi=bi(Dn),Si=bi(hn),ra=xi?void 0:J.top,Xr=Si?J.between:J.bottom,ur=Kt(ra),Df=Kt(Xr);Yd(oe)&&(ve.length>0||j.length===0)&&(Wr(),se=0);let tn=qs($,O);if(tn.length===0)continue;let AS=Ls(Y)!==void 0&&MS($,tn),_f=()=>AS&&E===void 0&&nn+1>=a.count,Qs=ne=>{let ie=ge(Y,V());ie.kind==="paragraph"&&(Ce=ie.indent,Ue=ie.alignment,Ge=ie.available,An=ie.markRunProperties,Vr=ne===0?Us(ie):0,tn=[...qs(ie,O,ne)]);};{let ne=po(kn.before,se),ie=An.length===0?mt:Ae(An,s$1?.themeFonts),yn=tn.length<=1?Df+kn.after:0,On=ae+ne+ur,xn=Bf($,O,tn,0,0,On,new Map),ot=tn[0]?$c(On,tn[0],xn,yn):i.lineMetrics(ie).height+yn,Vt=ne+ur+ot;if(ee.keepNext&&!be[O-1]){let rn=ah(le,O,se,It=>{let at=le[It];return at?.kind==="paragraph"?qs(at,It).map(Vn=>Vn.height):[]});rn!==null&&rn+ur<=me()&&(Vt=Math.max(Vt,rn+ur));}ae+Vt>me()&&ae>0&&!_f()&&(yi(),se=0,Qs(0));}let DS=ae===0&&!re(),ed=Qd(kn.before,se,DS,nt);ed>0&&(ae+=ed),ur>0&&(ae+=ur),nt=false;let fr=0,Ee=[],Hf=tn[0]?.start??0,Yr=ed,pr=ur,nd=false,oa=ae,zf=0,Ri=new Map;se=0;let jf=t.inlineDrawingLayout!==void 0&&Ln($.paragraph,t.inlineDrawingLayout).length>0,Gf=false,td=null,_S=wr($.paragraph),Wf=Gl($.paragraph),Vf=Wf?zl(Wf):null,HS=()=>{let ne=Ee[0];if(!ne)return 0;let ie=zf;if(ie<=.001)return 0;let yn=xt(oa,ne.box.height,Of($,O));return Math.max(0,ie-yn)},wi=ne=>{if(Ee.length===0)return;let ie=I(),yn=tt(),On=Ee[0].box.y,xn=On-Yr-pr,ot=Ee[Ee.length-1].box.y+Ee[Ee.length-1].box.height,Vt=ne?kn.after:0,rn=[],It,at=On,Vn=ot,$t=J.left?Pn(J.left):0,ia=J.right?Pn(J.right):0,Kr=J.left?ie+Ce.left-J.left.spacePt-$t:ie+Ce.left,od=J.right?ie+Ce.left+Ge+J.right.spacePt+ia:ie+Ce.left+Ge,Ur=Math.max(od-Kr,0);if(pr>0&&ra){let pn=Pn(ra),it=On-ra.spacePt-pn;rn.push({side:"top",edge:ra,box:{x:Kr,y:it,width:Ur,height:pn}}),at=it;}if(ne&&Xr){let pn=Pn(Xr),it=ot+Xr.spacePt,Xt={x:Kr,y:it,width:Ur,height:pn};rn.push({side:Si?"between":"bottom",edge:Xr,box:Xt}),Si||(It={edge:Xr,box:Xt}),Vn=it+pn;}ne&&(ae=Math.max(ae,Vn+Vt));let qr=Math.max(Vn+Vt-xn,0),Me=xi&&fr===0?xn:at,vt=Si&&ne?xn+qr:Vn,Zr=Math.max(vt-Me,0);if(J.left&&rn.push({side:"left",edge:J.left,box:{x:ie+Ce.left-J.left.spacePt-$t,y:Me,width:$t,height:Zr}}),J.right&&rn.push({side:"right",edge:J.right,box:{x:ie+Ce.left+Ge+J.right.spacePt,y:Me,width:ia,height:Zr}}),J.bar){let pn=Pn(J.bar);rn.push({side:"bar",edge:J.bar,box:{x:ie+Ce.left-J.bar.spacePt-pn,y:On,width:pn,height:Math.max(ot-On,0)}});}let Jr=Vf?jl(Ee,Vf):null,Qr=fr===0?ds(Gn,i,Ee[0]?{y:Ee[0].box.y,height:Ee[0].box.height}:void 0):void 0,Pi=Qr?{...Qr,box:{...Qr.box,x:Qr.box.x+ie}}:void 0;if(ve.push({kind:"paragraph",id:`${Wn}#f${fr}`,paragraphId:Wn,fragmentIndex:fr,range:Jr?Jr[Jr.length-1].range:{paragraphId:Wn,start:Hf,end:Ee[Ee.length-1].range.end},props:oe,spacing:{before:Yr,after:Vt},indent:Ce,...It?{bottomBorder:It}:{},...rn.length>0?{borders:rn}:{},...he===void 0?{}:{shading:he,shadingBox:J.left||J.right?{x:Kr,y:at,width:Ur,height:Math.max(Vn-at,0)}:Ca(Ee,ie+Ce.left,Ge)},tabStops:$.tabStops,...Pi?{marker:Pi}:{},...ne&&f?hl(_S,To($.paragraph)):{},lines:Jr??Ee,box:{x:yn+Ce.left,y:xn,width:Ge,height:qr}}),t.inlineDrawingLayout&&jf&&!Gf){Gf=true;let pn=[...Un($.paragraph).values()],it=pn.length>0&&pn.every(Bn=>Ee.some(mr=>Bn>=mr.range.start&&Bn<mr.range.end)),Xt,Ii,ad;if(it){let Bn=xn-HS();Xt=Ee,Ii={x:yn+Ce.left,y:Bn,width:Ge,height:qr},ad=dr({x:yn+Ce.left,y:Bn,height:qr});}else {let Bn=td??{columnX:yn,columnWidth:V(),startY:xn},mr=Bn.startY;Xt=tn.map(($n,zS)=>{let jS={id:`anchor-line-${zS}`,range:{paragraphId:Wn,start:$n.start,end:$n.end},box:{x:Bn.columnX+Ce.left,y:mr,width:Ge,height:$n.height},contentX:$n.spans.length>0?$n.spans[0].box.x+Bn.columnX:Bn.columnX+Ce.left,baseline:$n.baseline,leading:$n.leading,trailingSpacing:$n.trailingSpacing,spans:$n.spans.map(id=>({...id,box:{...id.box,x:id.box.x+Bn.columnX,y:mr}}))};return mr+=$n.height+($n.exclusionSkipBefore??0),jS});let $f=Bn.startY;Ii={x:Bn.columnX+Ce.left,y:$f,width:Ge,height:Math.max(mr-$f,Ee[0]?.box.height??0)},ad=dr(Ii);}cr(or({paragraph:$.paragraph,paragraphId:Wn,paragraphBox:Ii,lines:Xt,drawingLayout:t.inlineDrawingLayout,frameBase:jt(),columnBox:ad,cellBox:null,pageClip:na(),measurer:i,sourceOrderOf:ta,layoutTextboxStory:kf,displayMode:u}));}fr+=1,Hf=Ee[Ee.length-1].range.end,Ee=[],Yr=0,pr=0;},Wt=0,rd=0,aa=tn.length+8;for(let ne=0;ne<tn.length;ne+=1){let ie=tn[ne],yn=ne===tn.length-1,On=yn?Df+kn.after:0;ne===Wt&&(oa=ae,jf&&td===null&&fr===0&&(td=Object.freeze({columnX:tt(),columnWidth:V(),startY:oa})));let xn=FS($,O,tn,ne,Wt,oa,ie,Ri),ot=xn+Math.max(0,ie.height-ie.trailingSpacing)+On;if(ae+ot>me()&&!_f()&&(Ee.length>0||ve.length>0||j.length>0)){let Me=!re(),vt=rd<aa?oh(ne,Wt,tn.length,ee,Me):ne,Zr=vt<ne;for(let pn=ne;pn>vt;pn-=1){Ee.pop();let it=tn[pn-1],Xt=Ri.get(pn-1)??it.exclusionSkipBefore??0;Ri.delete(pn-1),ae-=it.height+Xt,He-=1;}let Jr=Zr&&Ee.length===0&&fr===0,Qr=tn[vt].start,Pi=V();if(wi(false),yi(),Yr=0,Jr?ae=pr:pr=0,V()!==Pi){Qs(Qr),aa=Math.max(aa,tn.length+8),Wt=0,Zr&&(rd+=1),ne=-1;continue}if(Wt=vt,oa=ae,Zr){rd+=1,ne=vt-1;continue}}let rn=tt();Ri.set(ne,xn),ae+=xn;let It=rn+Ce.left+(ne===0?Vr:0),at=Math.max(1,Ge-(ne===0?Vr:0)),Vn=ie.spans.map(Me=>({...Me,range:{...Me.range,paragraphId:Wn},box:{...Me.box,x:Me.box.x+rn,y:ae}})),$t=Fl(Vn,i,It,at,Ue,yn,Ue==="center"||Ue==="right"?ie.width:void 0),ia=Vn.length>0&&$t.length>0?$t[0].box.x-Vn[0].box.x:Ue!=="left"&&Ue!=="both"?(()=>{let Me=at-ie.width;return Me<=0?0:Ue==="center"?Me/2:Me})():0,Kr=Object.freeze({x:0,y:0,width:P,height:me()}),od=ie.drawings.map(Me=>{let vt=Object.freeze({...Me,paragraphId:Wn,x:rn+Me.x,y:ae+Me.y,advanceStart:Me.advanceStart+rn,advanceEnd:Me.advanceEnd+rn,paintBounds:Object.freeze({...Me.paintBounds,x:rn+Me.paintBounds.x,y:ae+Me.paintBounds.y}),hitBounds:Object.freeze({...Me.hitBounds,x:rn+Me.hitBounds.x,y:ae+Me.hitBounds.y})});return Tl(vt,Kr)}),Ur=El(od,ia),qr={id:$x(Y.id,ie.start,ne),range:{paragraphId:Wn,start:ie.start,end:ie.end},spans:$t,box:{x:tt()+Ce.left,y:ae,width:Ge,height:ie.height},contentX:$t[0]?.box.x??It+ia,baseline:ie.baseline,leading:ie.leading,trailingSpacing:ie.trailingSpacing,...ie.deletedRanges?{deletedRanges:ie.deletedRanges}:{},...Ur.length>0?{drawings:Ur}:{},...ie.anchorRevisions?{anchorRevisions:ie.anchorRevisions}:{}};if(He+=1,Ee.length===0&&(zf=xn),Ee.push(qr),ae+=ie.height,ie.columnBreakAfter){let Me=V();if(wi(yn),yi(),Yr=0,pr=0,nd=true,!yn&&V()!==Me){Qs(ie.end),aa=Math.max(aa,tn.length+8),Wt=0,ne=-1;continue}Wt=ne+1;}else ie.pageBreakAfter&&(wi(yn),Wr(),Yr=0,pr=0,nd=true,Wt=ne+1);}wi(true),se=nd?0:kn.after;}Gt||(de[le.length]=Le());let Mf=Gt&&S?S.endCursorY:ae,Lf=Gt&&S?S.endSpaceAfter:se,Ff=!Gt&&(ve.length>0||j.length===0),Ef=Gt&&S?S.endsOpenPage:Ff;Ff&&Wr();let Nf=0,NS=Dc*4+8;for(;(Z.length>0||ue.length>0)&&Nf<NS;)Nf+=1,Z.length===0&&je(),Wr();ue.length>0&&(Z.push(...ue.map(O=>Gc(O,"page-defer-exhausted"))),ue=[],Wr()),En();let Af={revision:n,pages:j};if(S){S.previous=Af,S.checkpoints=Gt?[...de.slice(0,Zs),...S.checkpoints.slice(Zs+(S.keys.length-le.length)).map($=>Js===0?$:{...$,pageCount:$.pageCount+Js})]:de,S.keys=sn,S.context=j.length+1===F?z:A(yf(w,y,j.length+1)),S.producer=b;let O=_||k?.evenAndOddHeaders===true;S.parityDependent=Ke===0&&!Gt?O:S.parityDependent||O,S.startPageParity=q,S.startLineCounter=C,S.endLineCounter=He,S.endCursorY=Mf,S.endSpaceAfter=Lf,S.endsOpenPage=Ef,S.stats={placed:ze,total:le.length,reusedPages:fn,fullPasses:S.stats.fullPasses+(Ke===0?1:0)};}return {layout:Af,pages:j,lineCounter:He,endCursorY:Mf,endSpaceAfter:Lf,endsOpenPage:Ef,overflowShellAt:Ie}}function Xx(e,n,t){let r=n.lefts.map(()=>t);for(let o of e.fragments){let a=0;for(let i=n.count-1;i>=0;i-=1)if(o.box.x+.5>=n.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var KC=.25,UC=20;function Jo(e,n,t){let r=of(t.sectionColumns??Qn.columns,t.geometry.width-t.geometry.margin.left-t.geometry.margin.right);if(!t.balanceColumns||r.count<2||t.columnRegionBottom!==void 0)return t.session&&(t.session.balanceLimit=null),Gr(e,n,t);let o=t.session,a=t.flowStartY??0,{session:i,...l}=t,s=x=>{let h=x.pages[0],b=h?Math.max(...Xx(h,r,a)):x.endCursorY;return o&&(o.endCursorY=b),{...x,endCursorY:b}};if(o&&o.balanceLimit!==null){let x=o.balanceLimit,h=Gr(e,n,{...t,columnRegionBottom:x});if(o.stats.placed===0&&o.stats.reusedPages===h.pages.length)return o.balanceLimit=x,s(h)}let d=Gr(e,n,l);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),Gr(e,n,t);let c=Xx(d.pages[0],r,a),u=c.reduce((x,h)=>x+Math.max(0,h-a),0);if(u<=0)return o&&(o.balanceLimit=null),Gr(e,n,t);let f=a+u/r.count,p=Math.max(...c)+.01,m=x=>{try{let h=Gr(e,n,{...l,columnRegionBottom:x});return h.pages.length===1&&h.endsOpenPage}catch{return false}};for(let x=0;x<UC&&p-f>KC;x+=1){let h=(f+p)/2;m(h)?p=h:f=h;}let g=Gr(e,n,{...t,columnRegionBottom:p});return o&&(o.balanceLimit=p),s(g)}var qx="Calibri, Carlito, Helvetica, Arial, sans-serif",oD=new Map([["calibri","Carlito"]]),qC=65536,ZC=256;function Yx(e,n){return e===void 0?Math.max(1,Math.floor(n)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function Kx(e){let n=new Map,t=0;return {get(r){let o=n.get(r);if(o!==void 0)return n.delete(r),n.set(r,o),o},set(r,o){for(n.has(r)&&n.delete(r),n.set(r,o);n.size>e;){let a=n.keys().next();if(a.done)break;n.delete(a.value),t+=1;}},get size(){return n.size},get evictions(){return t}}}var Ux=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function Zx(e=null){return e!=null&&typeof e.measureText=="function"}function Jx(e={}){let n=e.scale??1;if(!(n>0)||!Number.isFinite(n))return null;let t=e.fallbackFamily??qx,r=e.context??null;if(!Zx(r))return null;let o=r,a=Kx(Yx(e.maxWidthEntries,qC)),i=Kx(Yx(e.maxMetricsEntries,ZC)),l=e.fontAlias,s=c=>{let u=c.fontFamily&&Ux.test(c.fontFamily)?c.fontFamily:null,f=u?l?.(u):void 0,p=f&&Ux.test(f)?f:null,m=u?p?`"${p}", "${u}", ${t}`:`"${u}", ${t}`:t,g=c.bold?"bold":"normal",x=c.italic?"italic":"normal",h=c.smallCaps?"small-caps":"normal",b=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*n;return `${x} ${h} ${g} ${b}px ${m}`},d=(c,u,f)=>c/n*(f.horizontalScalePercent/100)+u.length*f.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let f=s(u),p=`${f}\0${c}`,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=s(c),p=i.get(f);if(p)return p;let m=u*1.15,g=u*.8;o.font=f;let x=o.measureText("Hxg"),h=x.fontBoundingBoxAscent,b=x.fontBoundingBoxDescent;if(typeof h=="number"&&Number.isFinite(h)&&h>0&&(g=h/n,typeof b=="number"&&Number.isFinite(b)&&b>=0)){let k=(h+b)/n;k>0&&(m=Math.max(k,m));}m>0||(m=u*1.15);let P={height:m,baseline:g};return i.set(f,P),P}}}function JC(e=1,n={}){let t=Jx({...n,scale:n.scale??e});return t?{measurer:t,producer:n.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:Gs(),producer:"fixed-measurer"}}function QC(e){return e.box}function Qx(e,n){if(e.kind==="paragraph"){n.add(e.paragraphId);return}for(let t of e.rows)for(let r of t.cells)for(let o of r.blocks)Qx(o,n);}function ek(e){let n=new Map,t=(o,a,i)=>{if(!(o.kind==="textValue"||i>jf*4)){for(let l of o.children)if(l.kind!=="textValue"){if(l.kind==="paragraph"){for(let s of r)n.get(s)?.push(l.id);t(l,l.id,i+1);continue}if(l.kind==="contentControl"){n.set(l.id,[]),r.push(l.id);let s=tf$1(l);s&&t(s,a,i+1),r.pop();let d=n.get(l.id);d&&d.length===0&&a!==null&&d.push(a);continue}t(l,a,i+1);}}},r=[];return t(e,null,0),n}function nk(e,n){let t=Math.min(e.x,n.x),r=Math.min(e.y,n.y);return {x:t,y:r,width:Math.max(e.x+e.width,n.x+n.width)-t,height:Math.max(e.y+e.height,n.y+n.height)-r}}function tk(e,n){let t=xf$1(e.root);if(t.length===0)return rk;let r=new Map;n.pages.forEach((i,l)=>{(d=>{for(let c of d){let u=new Set;Qx(c,u);for(let f of u){let p=r.get(f)??[];p.push({pageIndex:l,box:QC(c)}),r.set(f,p);}}})(i.fragments);});let o=ek(e.root),a=[];for(let i of t){let l=vf$1(i.node),s=[...i.ancestors.map(f=>vf$1(f).lock),l.lock],d=o.get(i.node.id)??[],c=new Map;for(let f of d)for(let p of r.get(f)??[]){let m=c.get(p.pageIndex);c.set(p.pageIndex,m?nk(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:l.type,level:wf$1(i.node),depth:i.depth,lock:l.lock,effectiveLock:Af(s),showingPlaceholder:l.showingPlaceholder,temporary:l.temporary,...l.tag===void 0?{}:{tag:l.tag},...l.alias===void 0?{}:{alias:l.alias},...l.id===void 0?{}:{id:l.id},...l.dataBinding===void 0?{}:{dataBinding:l.dataBinding},paragraphIds:d,fragments:u});}return a}var rk=Object.freeze([]);function nS(e,n,t){let r=e.lines?.find(o=>{let a=o.spans;if(!a)return t<o.range.end;let i=a.filter(l=>l.range.paragraphId===n);return i.length===a.length?t<o.range.end:i.length>0&&t<i[i.length-1].range.end});return r?r.box.y:e.fragmentY}function mk(e,n){let t=new Map;for(let r of e.pages)for(let[o,a]of gk(r,n))t.has(o)||t.set(o,a);return t}var eS=new WeakMap;function gk(e,n){let t=eS.get(n);t||(t=new WeakMap,eS.set(n,t));let r=t.get(e);if(r)return r;let o=new Map;for(let a of n(e)){let i=new Set([a.paragraphId]);for(let l of a.lines??[])for(let s of l.spans??[])i.add(s.range.paragraphId);for(let l of i)o.has(l)||o.set(l,{pageIndex:e.index,contentY:e.contentBox.y,fragmentY:a.box.y,...a.lines?{lines:a.lines}:{}});}return t.set(e,o),o}function hk(e,n){let t=Y(e);if(!t)return null;let r=n.get(t.start.paragraphId);return r?{pageIndex:r.pageIndex,y:r.contentY+nS(r,t.start.paragraphId,t.start.offset)}:null}var yk=.5,bk=4,xk="abcdefghijklmnopqrstuvwxyz",tS=e=>e.verticalAlign==="baseline"?1:.75;function wf(e){let n=Math.round(e.fontSizePt*2);return Math.max(1,n)}function Sk(e){let{shaper:n,resolveFont:t,fallback:r,shapingLibrary:o,unicodeDataVersion:a,fixedPointScale:i=1e3,script:l="Latn",language:s="en"}=e,d=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,m=b=>{let P=f.get(b);if(P!==void 0)return P;let k=t(b);return f.set(b,k),k},g=(b,P,k)=>{let v=k?c:d,L=v.get(b);L||(L=new Map,v.set(b,L));let w=L.get(P);return w||(w=new Map,L.set(P,w)),w},x=(b,P,k)=>n.shape({text:b,fontSizeHalfPoints:wf(k),bidiLevel:0,environment:hr({font:P,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:l,language:s,direction:"ltr",features:k.smallCaps?{smcp:1}:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})}),h=(b,P)=>{let k=p.get(b);if(k!==void 0)return k;let v=true;try{for(let L of xk){let w=x(L,b,{...P,smallCaps:!0}),S=x(L,b,{...P,smallCaps:!1});if(!(w.glyphs.length!==S.glyphs.length||w.glyphs.some((T,N)=>T.id!==S.glyphs[N]?.id))){v=!1;break}}}catch{v=false;}return p.set(b,v),v};return {measure(b,P){if(b.length===0)return 0;let k=m(P);if(!k)return r.measure(b,P);let v=g(k,wf(P),P.smallCaps),L=v.get(b);if(L===void 0){let w=0;try{if(P.smallCaps&&!h(k,P))return r.measure(b,P);let S=x(b,k,P);for(let C of S.glyphs)w+=C.advanceX;}catch{return r.measure(b,P)}L=w/i,v.set(b,L);}return L*tS(P)*(P.horizontalScalePercent/100)+b.length*P.characterSpacingPt},lineMetrics(b){let P=m(b);if(!P)return r.lineMetrics(b);let k=tS(b),v=u.get(P);v||(v=new Map,u.set(P,v));let L=wf(b),w=v.get(L);if(w)return k===1?w:{height:w.height*k,baseline:w.baseline*k};let S,C=true;try{let T=x(" ",P,b),N=T.metrics.ascent/i,M=T.metrics.descent/i,y=L/2,G=N+M,D=y*bk,F=G>D?D/G:1,E=G*F,B=Math.min(Math.max(0,T.metrics.lineGap/i),E*yk),R=E+B;R>0?S={height:R,baseline:N*F}:(S=r.lineMetrics(b),C=!1);}catch{S=r.lineMetrics(b),C=false;}return C?(v.set(L,S),k===1?S:{height:S.height*k,baseline:S.baseline*k}):S}}}function Rk(e){let{layout:n,viewport:t}=e,r=new Set;if(!t){for(let s of n.pages)r.add(s.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=t.top+t.height,i=-1,l=-1;for(let s of n.pages){let d=s.box.y;d+s.box.height>=t.top&&d<=a&&(i===-1&&(i=s.index),l=s.index);}if(i===-1){let s=wk(n,t.top);s!==null&&(i=s,l=s);}if(i!==-1){let s=Math.max(0,i-o),d=Math.min(n.pages.length-1,l+o);for(let c=s;c<=d;c+=1)r.add(c);}for(let s of e.pinnedPages??[])s>=0&&s<n.pages.length&&r.add(s);return r}function wk(e,n){let t=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=n<o.box.y?o.box.y-n:n>o.box.y+o.box.height?n-(o.box.y+o.box.height):0;a<r&&(r=a,t=o.index);}return t}var rS=["text-local","paragraph-local","flow-structural","global"];function oS(e,n){return rS.indexOf(n)>rS.indexOf(e)?n:e}function Pk(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function Ik(e){let{run:n,currentRevision:t,publish:r,schedule:o}=e,a=null,i=null,l=null,s=0,d=0;function c(x){let h=e.runCooperatively;if(!h)return n(x);let b=h(x);l=b;try{for(;;){let P=b.step();if(P)return P;if(t()!==x.revision)return b.cancel(),d+=1,null;if(l!==b)return null}}finally{l===b&&(l=null);}}function u(x){let h=p(t());h.impact=oS(h.impact,x.impact),h.structural=h.structural||x.structural;for(let b of x.paragraphIds)h.paragraphIds.add(b);for(let b of x.created)h.created.add(b);for(let b of x.deleted)h.deleted.add(b);for(let b of x.dependencyKeys)h.dependencyKeys.add(b);}let f=x=>({impact:x.impact,paragraphIds:x.paragraphIds,created:x.created,deleted:x.deleted,dependencyKeys:x.dependencyKeys,structural:x.structural,revision:x.revision});function p(x){return a||(a=Pk(x)),a.revision=Math.max(a.revision,x),a}function m(){!o||i||(i=o(()=>{i=null,g();}));}function g(){i&&(i(),i=null),l&&(l.cancel(),l=null,d+=1);let x=a;if(!x)return false;a=null;let h=f(x),b=c(h);return !b||b.revision!==t()?(s+=1,u(h),m(),false):(r(b,h),true)}return {notify(x){let h=p(t());h.impact=oS(h.impact,x.impact);for(let b of x.dirty)h.paragraphIds.add(b);for(let b of x.created)h.created.add(b),h.paragraphIds.add(b);for(let b of x.deleted)h.deleted.add(b),h.paragraphIds.add(b);for(let b of x.dependencyKeys)h.dependencyKeys.add(b);for(let b of x.splitJoin)h.structural=true,"split"in b?(h.paragraphIds.add(b.split.from),h.paragraphIds.add(b.split.tail)):(h.paragraphIds.add(b.join.kept),h.paragraphIds.add(b.join.removed));(x.impact==="flow-structural"||x.impact==="global")&&(h.structural=true),m();},invalidateAll(x,h){let b=p(x);b.impact="flow-structural",b.structural=true,h&&b.dependencyKeys.add(h),m();},flush:g,pending:()=>a?f(a):null,cancel(){i?.(),i=null,l?.cancel(),l=null,a=null;},get staleDiscards(){return s},get cancelledRuns(){return d}}}function Rt(e,n,t,r){let o=r?r.spans:e.spans;for(let i of r?r.drawings:e.drawings??[]){if(n===i.start)return i.advanceStart;if(n===i.start+1)return i.advanceEnd}let a=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let i of o){if(n<=i.range.start)return i.box.x;if(n>=i.range.end){a=i.box.x+i.box.width;continue}return gs(i,n,t)}return a}function lS(e,n,t){return sS(e,n,t,true)}function vD(e,n,t){return sS(e,n,t,false)}var aS=new WeakMap,iS=new WeakMap;function vk(e){let n=aS.get(e);if(n)return n;let t=new Map;for(let r of e.pages)for(let o of Xe(r))for(let a of o.lines)for(let i of ln(a)){let l=t.get(i.paragraphId);(!l||i.end>l.end||i.end===l.end&&i.start>l.start)&&t.set(i.paragraphId,{end:i.end,start:i.start});}return aS.set(e,t),t}function Tk(e){let n=iS.get(e);if(n)return n;let t=new Map(e.map((r,o)=>[r,o]));return iS.set(e,t),t}function Ck(e){return Math.max(3,Math.min(8,e*.25))}function sS(e,n,t,r){let o=Ws(n,t);if(!o)return [];let a=Tk(t),i=a.get(o.from.paragraphId),l=a.get(o.to.paragraphId),s=vk(e),d=[];for(let c of e.pages)for(let u of Xe(c))for(let f of u.lines){let p=ln(f);for(let[m,g]of p.entries()){let x=Fr(e,g,o.from,o.to),h=a.get(g.paragraphId),b=s.get(g.paragraphId),P=i!==void 0&&l!==void 0&&h!==void 0&&h>=i&&h<l&&b?.end===g.end&&b.start===g.start&&m===p.length-1;if((!r||!x)&&!P)continue;let k=r&&x?Rt(f,x.start,void 0,g):null,v=r&&x?Rt(f,x.end,void 0,g):null,L=P?Rt(f,g.end,void 0,g):null,w=L!==null?L+Ck(Math.max(0,f.box.height-f.leading-(f.trailingSpacing??0))):null,S=[k,v,L,w].filter(N=>N!==null),C=Math.min(...S),T=Math.max(...S);d.push({pageIndex:c.index,x:C,y:f.box.y,width:T-C,height:f.box.height});}}return d}function dS(e,n,t){let r=new Map;if(n.length===0)return r;for(let o of e.pages)if(!(t&&!t.has(o.index)))for(let a of Xe(o))for(let i of a.lines)for(let l of ln(i))for(let s of n){let d=Fr(e,l,s.from,s.to);if(!d)continue;let c=Rt(i,d.start,void 0,l),u=Rt(i,d.end,void 0,l),f=r.get(s.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(s.key,f);}return r}function TD(e,n,t){if(Lr(e).has(n))return {x:0,y:0};let r=e.pages[t];if(!r)return {x:0,y:0};let o=a=>Rn(a).some(i=>i.paragraphId===n);if(r.header&&o(r.header.fragments))return {x:r.header.box.x-r.contentBox.x,y:r.header.box.y-r.contentBox.y};if(r.footer&&o(r.footer.fragments))return {x:r.footer.box.x-r.contentBox.x,y:r.footer.box.y-r.contentBox.y};for(let a of [r.footnotes,r.endnotes])if(a){for(let i of a.notes)if(o(i.fragments))return {x:i.box.x-r.contentBox.x,y:i.box.y-r.contentBox.y}}return {x:0,y:0}}function CD(e,n,t,r){let o=new Map,a=[];for(let l of n){let s=Ws({anchor:l.from,head:l.to},t);s&&a.push({key:l.key,from:s.from,to:s.to});}if(a.length===0)return o;let i=(l,s,d,c)=>{for(let u of Rn(l))for(let f of u.lines){for(let p of ln(f))for(let m of a){let g=Fr(e,p,m.from,m.to);if(!g)continue;let x=Rt(f,g.start,void 0,p),h=Rt(f,g.end,void 0,p),b=o.get(m.key)??[];b.push({pageIndex:s,x:Math.min(x,h)+d,y:f.box.y+c,width:Math.abs(h-x),height:f.box.height}),o.set(m.key,b);}}};for(let l of e.pages)if(!(r&&!r.has(l.index))){i(l.fragments,l.index,0,0);for(let s of [l.header,l.footer])s&&i(s.fragments,l.index,s.box.x-l.contentBox.x,s.box.y-l.contentBox.y);for(let s of [l.footnotes,l.endnotes])if(s)for(let d of s.notes)i(d.fragments,l.index,d.box.x-l.contentBox.x,d.box.y-l.contentBox.y);}return o}function Pf(e){let n=new Map;for(let t=0;t<e.length;t+=1){let r=e[t].position,o=n.get(r.paragraphId);o||(o=new Map,n.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,t);}return {stops:e,index:n}}var Vs=class{#n=new WeakMap;#l=new WeakMap;get(n,t,r,o){let a;if(!r)a=this.#n.get(n)??new Map,this.#n.has(n)||this.#n.set(n,a);else {let s=this.#l.get(n);s||(s=new WeakMap,this.#l.set(n,s)),a=s.get(r)??new Map,s.has(r)||s.set(r,a);}let i=a.get(t);if(i)return i;let l=o();return a.set(t,l),l}};function cS(e){let n=[],t=new Set;for(let r of e)t.has(r.lineId)||(t.add(r.lineId),n.push(r.lineId));return n}function uS(e,n,t){let r=null;for(let o of e)o.lineId===n&&(!r||Math.abs(o.x-t)<Math.abs(r.x-t))&&(r=o);return r}function gi(e,n){let t=null;for(let r of e)r.position.paragraphId===n.paragraphId&&(!t||Math.abs(r.position.offset-n.offset)<Math.abs(t.position.offset-n.offset))&&(t=r);return t}function If(e,n,t){let r=null;for(let o of e){if(o.position.paragraphId!==n.paragraphId)continue;let a=o.position.offset;t===1?a>n.offset&&(!r||a<r.position.offset)&&(r=o):a<n.offset&&(!r||a>r.position.offset)&&(r=o);}return r}function fS(e,n,t){let r=t.index.get(e.paragraphId)?.get(e.offset),o=r===void 0?gi(t.stops,e):t.stops[r];if(!o)return null;let a=o.lineId,i=t.stops.filter(l=>l.lineId===a);return (n===-1?i[0]:i[i.length-1])?.position??null}function pS(e,n,t,r,o){let a=o(e.paragraphId),i=a.index.get(e.paragraphId)?.get(e.offset);if(i===void 0){let c=If(a.stops,e,n);if(c)return {position:c.position,desiredX:null}}else {let c=i+n;if(c>=0&&c<a.stops.length)return {position:a.stops[c].position,desiredX:null}}let l=t[r+n];if(!l)return {position:e,desiredX:null};let s=o(l).stops,d=n===-1?s[s.length-1]:s[0];return d?{position:d.position,desiredX:null}:null}function mS(e,n,t){let r=e===-1?n[0]:n[n.length-1];if(!r)return null;let o=t(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function gS(e,n,t,r,o,a){let i=a(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),s=l===void 0?gi(i.stops,e):i.stops[l];if(!s)return null;let d=t??s.x,c=cS(i.stops),u=c.indexOf(s.lineId),f=c[u+n];if(f){let m=uS(i.stops,f,d);return m?{position:m.position,desiredX:d}:null}for(let m=o+n;m>=0&&m<r.length;m+=n){let g=a(r[m]),x=cS(g.stops),h=n===-1?x[x.length-1]:x[0];if(!h)continue;let b=uS(g.stops,h,d);if(b)return {position:b.position,desiredX:d}}let p=n===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}var hS=new WeakMap,yS=new WeakMap;function Fn(e){let n=hS.get(e);if(n)return n;let t=new Map;for(let r of e.pages)for(let[o,a]of Bk(r)){let i=t.get(o);i?i.push(...a):t.set(o,[...a]);}return hS.set(e,t),t}function Bk(e){let n=yS.get(e);if(n)return n;let t=new Map,r=(a,i)=>{for(let l of ln(a)){let s={line:a,pageIndex:i},d=t.get(l.paragraphId);d?d.push(s):t.set(l.paragraphId,[s]);}},o=(a,i)=>{let l=s=>{for(let d of s){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)l(u.blocks);}};l(a);};for(let a of Xe(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 yS.set(e,t),t}function FD(e,n,t){let r=Fn(e).get(n);if(r&&r.length>0){let o=Sa(e,n,t,r.map(a=>a.line));if(o)return o}return Sa(e,n,t)}var bS=new WeakMap;function vf(e,n){let t=bS.get(e);t||(t=new Map,bS.set(e,t));let r=t.get(n);if(r)return r;let o=[];for(let{line:i}of Fn(e).get(n)??[])if(i.range.paragraphId===n)for(let l of i.deletedRanges??[])o.push({start:l.start,end:l.end});o.sort((i,l)=>i.start-l.start);let a=[];for(let i of o){let l=a[a.length-1];l&&i.start<=l.end?l.end=Math.max(l.end,i.end):a.push(i);}return t.set(n,a),a}function xS(e,n){for(let t of e)if(n>t.start&&n<t.end)return true;return false}function SS(e,n){for(let t of vf(e,n.paragraphId))if(n.offset>t.start&&n.offset<t.end)return {paragraphId:n.paragraphId,offset:t.end};return n}var Mk=/[\p{L}\p{N}_'\u2019]/u;function hi(e,n,t,r=Lk){let o=i=>{let l=e[i];return l!==void 0&&Mk.test(l)},a=Math.max(0,Math.min(n,e.length));if(t===-1){for(;a>0&&!o(a-1);)if(a-=1,r.has(a))return a;for(;a>0&&o(a-1);)if(a-=1,r.has(a))return a;return a}for(;a<e.length&&!o(a);)if(a+=1,r.has(a))return a;for(;a<e.length&&o(a);)if(a+=1,r.has(a))return a;return a}var Lk=new Set;function Fk(e,n,t){let r=Fn(e).get(n.range.paragraphId)??[],o=false;for(let a of r){if(a.line===n){o=true;continue}if(o&&a.line.range.start===t)return true}return false}function Ek(e,n,t){for(let{line:r}of Fn(e).get(n)??[])if(r.range.start===t&&r.drawings?.some(o=>o.start===t))return r;return null}function Nk(e,n,t){for(let r of t?t.spans:e.spans)if(!(n<=r.range.start||n>=r.range.end)&&(r.projected||r.text.length!==r.range.end-r.range.start))return true;return false}function PS(e){let n=e.spans[e.spans.length-1]?.text;return n===`
|
|
16
|
+
`||n===Cc$1}function Ak(e,n){if(n.end-n.start!==1||!e.drawings?.some(t=>t.start===n.start))return false;for(let t of n.spans)if(t.range.end>t.range.start)return false;return true}function Ys(e,n,t,r,o,a,i){for(let l of ln(t))i!==void 0&&l.paragraphId!==i||Dk(e,n,t,l,r,o,a);}function Dk(e,n,t,r,o,a,i){let l=ln(t).length>1,s=vf(n,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&&!l&&PS(t)&&Fk(n,t,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}Nk(t,c,r)||xS(s,c)&&!d(c)||e.push({position:{paragraphId:r.paragraphId,offset:c},x:Rt(t,c,i,r),y:t.box.y,height:t.box.height,lineId:t.id,pageIndex:o});}}function IS(e,n,t,r,o){for(let a of n){if(a.kind==="paragraph"){for(let i of a.lines)Ys(r,e,i,t,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)IS(e,l.blocks,t,r,o);}}var _k=new Vs;function vS(e,n){let t=[];for(let r of e.pages)for(let o of Xe(r))for(let a of o.lines)Ys(t,e,a,r.index,o.range.start,n);return t}function Hk(e,n,t){let o=(Fn(e).get(n.paragraphId)??[]).find(({line:i})=>{let l=St(i,n.paragraphId);return l!==null&&n.offset>=l.start&&n.offset<=l.end});if(!o||ln(o.line).length<2)return null;let a=[];return Ys(a,e,o.line,o.pageIndex,0,t),Pf(a)}function $s(e,n,t){return _k.get(e,n,t,()=>{let r=[];for(let{line:o,pageIndex:a}of Fn(e).get(n)??[])Ys(r,e,o,a,0,t,n);return Pf(r)})}function zk(e,n,t,r){if(!e.pages[n])return [];let o=[];return IS(e,t,n,o,r),o}function jk(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function Gk(e,n,t){let r=e.pages[n];if(!r)return [];let o=[];for(let a of Xe(r,true))if(a.paragraphId===t)for(let i of a.lines)o.push({line:i,pageIndex:n});return o}function TS(e,n,t){let r=jk(t),o=Fn(e).get(n.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:Gk(e,a,n.paragraphId),l=new Set(o.map(f=>f.line.id)),s=i.filter(f=>!l.has(f.line.id)),d=s.length>0?[...o,...s]: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=St(f,n.paragraphId);if(!m||n.offset<m.start||n.offset>m.end)continue;if(n.offset===m.end&&n.offset>m.start&&ln(f).length===1&&(PS(f)||Ak(f,m))){u??={line:f,pageIndex:p};continue}if(n.offset===m.end&&n.offset>m.start&&Ek(e,n.paragraphId,n.offset))continue;let g=oi(f,n.offset,r.measurer,m);return {position:n,x:g.x,y:g.y,height:g.height,lineId:f.id,pageIndex:p}}if(u){let f=oi(u.line,n.offset,r.measurer,St(u.line,n.paragraphId));return {position:n,x:f.x,y:f.y,height:f.height,lineId:u.line.id,pageIndex:u.pageIndex}}return null}function Wk(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return fs(e,t,n)?.caret??null}function Vk(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return ms(e,t,n)}function $k(e){return Vi(e)}var RS=new WeakMap;function Xs(e,n){let t=RS.get(e);return t||(t=new Map,e.forEach((r,o)=>{t.has(r)||t.set(r,o);}),RS.set(e,t)),t.get(n)??-1}function Ws(e,n){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 t=Xs(n,e.anchor.paragraphId),r=Xs(n,e.head.paragraphId);return t===-1||r===-1?null:t<r||t===r&&e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}function Qo(e,n){let t=[],r=new Set;for(let{line:a}of Fn(e).get(n)??[]){let i=St(a,n);if(i){for(let l of i.spans){if(l.range.end===l.range.start)continue;let s=`${l.range.start}:${l.range.end}`;if(r.has(s))continue;r.add(s);let d=l.range.end-l.range.start,c=l.text.length===d?l.text:l.text.slice(0,d).padEnd(d," ");t.push({start:l.range.start,text:c});}for(let l of i.drawings){let s=l.start,d=s+1,c=`${s}:${d}`;r.has(c)||(r.add(c),t.push({start:s,text:"\uFFFC"}));}}}t.sort((a,i)=>a.start-i.start);let o="";for(let a of t)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function Tf(e,n){let t=new Set;for(let{line:r}of Fn(e).get(n)??[]){let o=St(r,n);if(o)for(let a of o.spans)a.range.end!==a.range.start&&a.revisions?.some(i=>i.kind==="delete"||i.kind==="moveFrom")&&(t.add(a.range.start),t.add(a.range.end));}return t}function wS(e,n,t,r){let o=Mr(e),a=Lr(e).get(n.paragraphId);return a===void 0?null:pS(n,t,o,a,i=>$s(e,i,r))}function Xk(e,n,t,r=null,o={}){if(!o.stops&&(t==="left"||t==="right"))return wS(e,n,t==="left"?-1:1,o.measurer);if(!o.stops&&(t==="wordLeft"||t==="wordRight")){let s=t==="wordLeft"?-1:1,d=hi(Qo(e,n.paragraphId),n.offset,s,Tf(e,n.paragraphId));return d===n.offset?wS(e,n,s,o.measurer):{position:{paragraphId:n.paragraphId,offset:d},desiredX:null}}if(!o.stops&&(t==="lineStart"||t==="lineEnd")){let s=fS(n,t==="lineStart"?-1:1,Hk(e,n,o.measurer)??$s(e,n.paragraphId,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(t==="documentStart"||t==="documentEnd")){let s=mS(t==="documentStart"?-1:1,Mr(e),d=>$s(e,d,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(t==="up"||t==="down")){let s=Lr(e).get(n.paragraphId);return s===void 0?null:gS(n,t==="up"?-1:1,r,Mr(e),s,d=>$s(e,d,o.measurer))}let a=o.stops?[...o.stops]:vS(e,o.measurer);if(a.length===0)return null;let i=a.findIndex(s=>s.position.paragraphId===n.paragraphId&&s.position.offset===n.offset);if(i===-1){if(t==="left"||t==="right"){let d=If(a,n,t==="left"?-1:1)??gi(a,n);return d?{position:d.position,desiredX:null}:null}let s=gi(a,n);if(!s)return null;i=a.indexOf(s);}let l=a[i];switch(t){case "left":return {position:a[Math.max(0,i-1)].position,desiredX:null};case "right":return {position:a[Math.min(a.length-1,i+1)].position,desiredX:null};case "lineStart":return {position:a.filter(d=>d.lineId===l.lineId)[0].position,desiredX:null};case "lineEnd":{let s=a.filter(d=>d.lineId===l.lineId);return {position:s[s.length-1].position,desiredX:null}}case "wordLeft":case "wordRight":{let s=Qo(e,n.paragraphId),d=t==="wordLeft"?-1:1,c=hi(s,n.offset,d,Tf(e,n.paragraphId));return c===n.offset?{position:a[d===-1?Math.max(0,i-1):Math.min(a.length-1,i+1)].position,desiredX:null}:{position:{paragraphId:n.paragraphId,offset:c},desiredX:null}}case "documentStart":return {position:a[0].position,desiredX:null};case "documentEnd":return {position:a[a.length-1].position,desiredX:null};case "pageUp":case "pageDown":{let s=r??l.x,d=l.pageIndex+(t==="pageUp"?-1:1),c=a.filter(p=>p.pageIndex===d);if(c.length===0)return {position:(t==="pageUp"?a[0]:a[a.length-1]).position,desiredX:s};let u=c[0],f=Number.POSITIVE_INFINITY;for(let p of c){let m=Math.abs(p.y-l.y)*1e3+Math.abs(p.x-s);m<f&&(f=m,u=p);}return {position:u.position,desiredX:s}}case "up":case "down":{let s=r??l.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(l.lineId),f=t==="up"?u-1:u+1;if(f<0||f>=d.length)return {position:(t==="up"?a[0]:a[a.length-1]).position,desiredX:s};let p=a.filter(g=>g.lineId===d[f]),m=p[0];for(let g of p)Math.abs(g.x-s)<Math.abs(m.x-s)&&(m=g);return {position:m.position,desiredX:s}}default:return null}}function Yk(e,n){return TS(e,n)}function Kk(e,n,t){let r=Ws(n,t);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return Uk(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:s}of Fn(e).get(r.from.paragraphId)??[]){let d=St(s,r.from.paragraphId);if(!d)continue;let c=Fr(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=Fn(e),i=Xs(t,r.from.paragraphId),l=Xs(t,r.to.paragraphId);if(i===-1||l===-1)return [];for(let s=i;s<=l;s+=1)for(let{line:d}of a.get(t[s])??[]){let c=St(d,t[s]);if(!c)continue;let u=Fr(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 Uk(e,n){let t=null;for(let{line:r}of Fn(e).get(n.paragraphId)??[])for(let o of St(r,n.paragraphId)?.spans??[]){if(o.range.start<n.offset&&n.offset<=o.range.end)return [o];t===null&&o.range.start===n.offset&&(t=o);}return t?[t]:[]}var CS=new WeakMap;function zt(e){let n=CS.get(e);if(n)return n;let t=new Map,r=new Map,o=new Map,a=(l,s,d,c)=>{for(let u of l){if(u.kind==="paragraph")continue;let f=u.tableId,p=o.get(f);p||(p=new Map,o.set(f,p),t.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 x of m.cells)t.get(f).push({pageIndex:s,tableId:f,row:m,cell:x,rowIndex:g,isHeaderRepeat:m.isHeaderRepeat,offsetX:d,offsetY:c}),a(x.blocks,s,d,c);}}};for(let l of e.pages){a(l.fragments,l.index,0,0);for(let s of [l.header,l.footer])s&&a(s.fragments,l.index,s.box.x-l.contentBox.x,s.box.y-l.contentBox.y);for(let s of [l.footnotes,l.endnotes])if(s)for(let d of s.notes)a(d.fragments,l.index,d.box.x-l.contentBox.x,d.box.y-l.contentBox.y);}let i=new Map;for(let[l,s]of t)i.set(l,{placed:s,rows:r.get(l)??new Map});return CS.set(e,i),i}function OS(e){let n=0;for(let t of e.rows.values())for(let r of t)n=Math.max(n,sr(r).to+1);return n}var sr=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function qk(e,n,t){if(n.tableId!==t.tableId)return null;let r=zt(e).get(n.tableId);if(!r)return null;let o=Math.min(n.rowIndex,t.rowIndex),a=Math.max(n.rowIndex,t.rowIndex),i=Math.min(sr(n).from,sr(t).from),l=Math.max(sr(n).to,sr(t).to),s=p=>{let{from:m,to:g}=sr(p);return g>=i&&m<=l},d=p=>(r.rows.get(p)??[]).some(m=>m.vMergeContinue&&s(m)),c=r.rows.size+OS(r)+2;for(let p=0;!(p>c);p+=1){let m=false;for(let[g,x]of r.rows)if(!(g<o||g>a))for(let h of x){if(!s(h))continue;let{from:b,to:P}=sr(h);b<i&&(i=b,m=true),P>l&&(l=P,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}=sr(p.cell);g<i||m>l||f.has(p.cell.id)||(f.add(p.cell.id),u.push(p.cell.id));}return u.length===0?null:{kind:"cells",tableId:n.tableId,cellIds:u,rows:{from:o,to:a},columns:{from:i,to:l},text:Zk(e,n.tableId,u)}}function e1(e,n){return BS(e,n,true)}function Ks(e,n){return BS(e,n,false)}function BS(e,n,t){let r=new Set(n),o=[],a=new Set;for(let i of zt(e).values())for(let l of i.placed)if(!(l.isHeaderRepeat||!r.has(l.cell.id)))for(let s of l.cell.blocks)t&&s.kind!=="paragraph"||ea(s,o,a);return o}function ea(e,n,t){if(e.kind==="paragraph"){for(let r of lr(e))t.has(r)||(t.add(r),n.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)ea(a,n,t);}function Zk(e,n,t){let r=Ks(e,t),o=r[0],a=r[r.length-1];return !o||!a?Jk(e,n):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:Qo(e,a).length}}}function Jk(e,n){let t=zt(e).get(n);for(let o of t?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let l of o.cell.blocks)ea(l,a,new Set);let i=a[0];if(i){let l={paragraphId:i,offset:0};return {anchor:l,head:l}}}for(let o of e.pages)for(let a of Xe(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function Qk(e){let n=[...Xe(e)];for(let t of [e.header,e.footer])t&&n.push(...Rn(t.fragments));for(let t of [e.footnotes,e.endnotes])if(t)for(let r of t.notes)n.push(...Rn(r.fragments));return n}function eO(e,n){let t=new Set(Ks(e,n)),r=[],o=new Set;for(let a of e.pages)for(let i of Qk(a))if(t.has(i.paragraphId))for(let l of i.lines)for(let s of l.spans){let d=`${s.range.paragraphId}:${s.range.start}:${s.range.end}`;o.has(d)||(o.add(d),r.push(s));}return r}function nO(e,n){let t=new Set(n),r=[];for(let o of zt(e).values())for(let a of o.placed)t.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 tO(e,n){let t=zt(e).get(n.tableId);if(!t)return "";let r=new Set(n.cellIds),o=new Map,a=new Set;for(let i of t.placed){if(i.isHeaderRepeat||!r.has(i.cell.id)||a.has(i.cell.id))continue;a.add(i.cell.id);let l=Ks(e,[i.cell.id]).map(d=>Qo(e,d)).join(`
|
|
17
|
+
`),s=o.get(i.rowIndex);s?s.set(i.cell.gridColumn,l):o.set(i.rowIndex,new Map([[i.cell.gridColumn,l]]));}return [...o.keys()].sort((i,l)=>i-l).map(i=>{let l=o.get(i),s=[];for(let d=n.columns.from;d<=n.columns.to;d+=1)s.push(l.get(d)??"");return s.join(" ")}).join(`
|
|
18
|
+
`)}function Cf(e,n){let t=null,r=-1;for(let[o,a]of zt(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let l=[];for(let d of i.cell.blocks)ea(d,l,new Set);if(!l.includes(n))continue;let s=o.length;s<=r||(r=s,t={tableId:o,rows:a.rows.size,columns:OS(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return t}function n1(e,n,t){if(t){let a=Cf(e,n);if(!a||a.tableId!==t.tableId)return null;let i=t.cellIds[0];if(!i)return null;let l=zt(e).get(t.tableId);if(!l)return null;for(let s of l.placed)if(s.cell.id===i)return {tableId:t.tableId,rowId:s.row.id,cellId:i,cellIds:t.cellIds,gridColumnIndex:s.cell.gridColumn,isHeaderRepeat:s.isHeaderRepeat};return null}let r=Cf(e,n);if(!r)return null;let o=zt(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let l of a.cell.blocks)ea(l,i,new Set);if(i.includes(n))return {tableId:r.tableId,rowId:a.row.id,cellId:a.cell.id,cellIds:[a.cell.id],gridColumnIndex:a.cell.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}var kS=new WeakMap;function t1(e,n){let t=kS.get(e);if(t)return t.get(n)??null;let r=new Map;for(let[o,a]of zt(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let l=[];for(let d of i.cell.blocks)ea(d,l,new Set);let s={tableId:o,rowId:i.row.id,cellId:i.cell.id,rowIndex:i.rowIndex,gridColumn:i.cell.gridColumn,gridSpan:i.cell.gridSpan};for(let d of l){let c=r.get(d);c&&c.tableId.length>=o.length||r.set(d,s);}}return kS.set(e,r),r.get(n)??null}export{xa as $,Mm as $a,uu as $b,YT as $c,zk as $d,Yn as A,Jd as Aa,Ac as Ab,Bv as Ac,Rx as Ad,YR as B,po as Ba,Ml as Bb,fs as Bc,wx as Bd,KR as C,Qd as Ca,Xg as Cb,TF as Cc,bf as Cd,UR as D,Ui as Da,_l as Db,Mv as Dc,zs as Dd,ji as E,Ta as Ea,qg as Eb,ms as Ec,Gs as Ed,ZR as F,ec as Fa,Tr as Fb,Ny as Fc,YC as Fd,_d as G,nc as Ga,rI as Gb,gs as Gc,qx as Gd,Gi as H,Ca as Ha,Ho as Hb,oi as Hc,oD as Hd,JR as I,Pw as Ia,eh as Ib,Vv as Ic,Zx as Id,QR as J,Iw as Ja,Nt as Jb,OF as Jc,Jx as Jd,ew as K,vw as Ka,kr as Kb,BF as Kc,JC as Kd,zd as L,Tw as La,rh as Lb,MF as Lc,tk as Ld,nm as M,tc as Ma,ch as Mb,LF as Mc,nS as Md,tm as N,mo as Na,Jc as Nb,FF as Nc,mk as Nd,rm as O,oc as Oa,At as Ob,Ps as Oc,hk as Od,om as P,ac as Pa,Wl as Pb,jn as Pc,Sk as Pd,am as Q,Oa as Qa,Vl as Qb,kE as Qc,Rk as Qd,im as R,Mw as Ra,Ch as Rb,Gu as Rc,Ik as Rd,ow as S,go as Sa,Jl as Sb,Wu as Sc,lS as Sd,aw as T,ic as Ta,Ql as Tb,Vu as Tc,vD as Td,so as U,xr as Ua,es as Ub,wT as Uc,dS as Ud,sw as V,Aw as Va,au as Vb,zT as Vc,TD as Vd,Gd as W,Dw as Wa,Mh as Wb,jT as Wc,CD as Wd,Xe as X,Bt as Xa,iu as Xb,Bs as Xc,FD as Xd,Rn as Y,qt as Ya,ir as Yb,Qn as Yc,SS as Yd,Vd as Z,Bm as Za,Zn as Zb,Gb as Zc,hi as Zd,fw as _,pc as _a,_h as _b,Ms as _c,vS as _d,Pd as a,um as aa,mc as ab,os as ac,Ls as ad,TS as ae,Id as b,Sa as ba,Lm as bb,Jh as bc,KT as bd,Wk as be,vd as c,Vi as ca,Mt as cb,Ja as cc,Wb as cd,Vk as ce,Yt as d,Ra as da,gc as db,Go as dc,Vb as dd,$k as de,to as e,$i as ea,yc as eb,mu as ec,zr as ed,Qo as ee,Fi as f,wa as fa,mt as fb,ny as fc,qT as fd,Tf as fe,$S as g,fm as ga,Ae as gb,pv as gc,fi as gd,Xk as ge,dt as h,Xi as ha,er as hb,Wo as hc,$b as hd,Yk as he,hr as i,co as ia,_n as ib,gu as ic,qo as id,Kk as ie,Vp as j,Yd as ja,dP as jb,hu as jc,pi as jd,qk as je,Bd as k,gm as ka,Rc as kb,iF as kc,Xb as kd,e1 as ke,Di as l,Ia as la,We as lb,Ru as lc,JT as ld,Ks as le,KS as m,hm as ma,Oe as mb,ei as mc,Yb as md,eO as me,ga as n,ym as na,wr as nb,fy as nc,lf as nd,nO as ne,US as o,fo as oa,To as ob,wu as oc,Fs as od,tO as oe,qS as p,bm as pa,Ic as pb,is as pc,Kb as pd,Cf as pe,Ne as q,IO as qa,Ym as qb,Br as qc,Ub as qd,n1 as qe,vR as r,Kd as ra,SP as rb,ls as rc,mi as rd,t1 as re,Xp as s,Ud as sa,RP as sb,Mr as sc,qb as sd,zR as t,qd as ta,Kn as tb,Py as tc,Es as td,_i as u,Zd as ua,Pr as ub,ln as uc,df as ud,GR as v,kt as va,Tc as vb,bF as vc,ux as vd,WR as w,va as wa,ig as wb,lr as wc,cf as wd,VR as x,Pn as xa,Ir as xb,xF as xc,oC as xd,Nd as y,Kt as ya,GP as yb,Ou as yc,pf as yd,Dd as z,Rw as za,gM as zb,ri as zc,Ds as zd};
|