@zeke-02/docx-editor 0.0.34 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -29
- package/dist/{ClipboardManager-C1l58nzE.d.ts → ClipboardManager-CVKX0v9q.d.ts} +1 -1
- package/dist/{ClipboardManager-Cjb_v74d.d.mts → ClipboardManager-V3aaMnWE.d.mts} +1 -1
- package/dist/{DocumentAgent-E8OX_8j0.d.mts → DocumentAgent-BWflKHpH.d.mts} +1 -1
- package/dist/{DocumentAgent-iedmc_8s.d.ts → DocumentAgent-DsdXtetF.d.ts} +1 -1
- package/dist/{FindReplaceDialog-YW3R4FHM.mjs → FindReplaceDialog-L3YF5HIS.mjs} +1 -1
- package/dist/FindReplaceDialog-SEBWC5P7.js +1 -0
- package/dist/{FootnotePropertiesDialog-LNFJXQUG.mjs → FootnotePropertiesDialog-TNVJJCY6.mjs} +1 -1
- package/dist/{FootnotePropertiesDialog-7QX54WQT.js → FootnotePropertiesDialog-XQ7NIFIU.js} +1 -1
- package/dist/{HyperlinkDialog-HNYTXDCB.mjs → HyperlinkDialog-FR4IZZ7E.mjs} +1 -1
- package/dist/HyperlinkDialog-WEK6JSAC.js +1 -0
- package/dist/{ImagePositionDialog-M65BYQQE.js → ImagePositionDialog-2YXRAGZS.js} +1 -1
- package/dist/{ImagePositionDialog-B4RLP2W5.mjs → ImagePositionDialog-JSZSIKF5.mjs} +1 -1
- package/dist/ImagePropertiesDialog-527MFLQO.mjs +1 -0
- package/dist/{ImagePropertiesDialog-O4WQSF5M.js → ImagePropertiesDialog-HG4K3IE7.js} +1 -1
- package/dist/PageSetupDialog-GALVJMUB.js +1 -0
- package/dist/PageSetupDialog-TGQIAMI7.mjs +1 -0
- package/dist/SplitCellDialog-JIAC3RYV.js +1 -0
- package/dist/SplitCellDialog-NP3JJYHD.mjs +1 -0
- package/dist/{TablePropertiesDialog-WOZ4ES3H.js → TablePropertiesDialog-T7D4HSVP.js} +1 -1
- package/dist/TablePropertiesDialog-TIK4AA5M.mjs +1 -0
- package/dist/{clipboard-BWhM0CRj.d.mts → TableToolbar-DUgmob2I.d.ts} +227 -135
- package/dist/{clipboard-BvkuNZub.d.ts → TableToolbar-YL74HNS1.d.mts} +227 -135
- package/dist/{agentApi-mv532p8I.d.mts → agentApi-DLt94vXk.d.mts} +83 -5
- package/dist/{agentApi-mv532p8I.d.ts → agentApi-DLt94vXk.d.ts} +83 -5
- package/dist/chunk-23SXXIZS.js +111 -0
- package/dist/chunk-3F52AP2Q.js +1 -0
- package/dist/chunk-42O5GXM5.mjs +82 -0
- package/dist/chunk-54ULJEHM.mjs +1 -0
- package/dist/chunk-5XK326FI.mjs +1 -0
- package/dist/chunk-76IYR7C7.mjs +1 -0
- package/dist/chunk-7BG7QY7I.js +182 -0
- package/dist/chunk-AGRIVA4G.js +1 -0
- package/dist/chunk-BTCQ2QI3.mjs +3 -0
- package/dist/chunk-BXRC4U3X.mjs +2 -0
- package/dist/chunk-CPAYKE6X.mjs +1 -0
- package/dist/chunk-DACWLFKI.mjs +1 -0
- package/dist/{chunk-377ZVTSE.js → chunk-EHFEG3TX.js} +1 -1
- package/dist/chunk-EPBFWE36.js +2 -0
- package/dist/chunk-FXES3YDB.js +82 -0
- package/dist/chunk-HI66BSGS.mjs +9 -0
- package/dist/chunk-INTPVEO6.mjs +9 -0
- package/dist/chunk-IOAGVW6Q.mjs +2 -0
- package/dist/chunk-JCEWC5QL.mjs +4 -0
- package/dist/chunk-JTIUFACT.js +1 -0
- package/dist/chunk-KUTCCI4X.mjs +182 -0
- package/dist/{chunk-KCOGY3V2.js → chunk-LUF7PWIC.js} +4 -4
- package/dist/chunk-LVGJKS7Y.mjs +24 -0
- package/dist/chunk-MGEN6GOE.mjs +2 -0
- package/dist/chunk-MOE2ZGUE.js +18 -0
- package/dist/chunk-MWLHJWB6.js +9 -0
- package/dist/chunk-OFYVDN3U.mjs +2 -0
- package/dist/chunk-P4VSHBGZ.js +2 -0
- package/dist/chunk-P5FQHIES.mjs +1 -0
- package/dist/chunk-PBC7XAYZ.js +3 -0
- package/dist/chunk-PEMB6SZT.js +2 -0
- package/dist/chunk-PKEOQIQO.mjs +2 -0
- package/dist/chunk-PQMSZTBB.js +9 -0
- package/dist/chunk-Q7UDQXAF.js +1 -0
- package/dist/chunk-QGTAIC5E.js +1 -0
- package/dist/chunk-R3QMYPL5.mjs +59 -0
- package/dist/chunk-RBUTXXQJ.mjs +18 -0
- package/dist/chunk-RRWYZ2TS.mjs +111 -0
- package/dist/{chunk-AU5NVRHP.js → chunk-SFUM35DH.js} +2 -2
- package/dist/chunk-SNLC6EK2.js +1 -0
- package/dist/chunk-TMTLIGLZ.js +59 -0
- package/dist/{chunk-RTFUE3KK.mjs → chunk-TSE2PWFX.mjs} +3 -3
- package/dist/chunk-UWYD42WV.js +4 -0
- package/dist/chunk-UXVACQCY.mjs +1 -0
- package/dist/{chunk-Z26WOH6R.mjs → chunk-W4EIKDM6.mjs} +2 -2
- package/dist/chunk-WNS2RBQD.js +2 -0
- package/dist/chunk-YC5KZSYD.js +24 -0
- package/dist/chunk-Z3KMSHUP.js +1 -0
- package/dist/core-plugins-reexport.d.mts +4 -4
- package/dist/core-plugins-reexport.d.ts +4 -4
- package/dist/core-plugins-reexport.js +1 -1
- package/dist/core-plugins-reexport.mjs +1 -1
- package/dist/core-reexport.d.mts +47 -16
- package/dist/core-reexport.d.ts +47 -16
- package/dist/core-reexport.js +1 -1
- package/dist/core-reexport.mjs +1 -1
- package/dist/{colorResolver-C5fQ4fxP.d.mts → documentSerializer-DtS_-oGA.d.mts} +378 -376
- package/dist/{colorResolver-Bp9flT3l.d.ts → documentSerializer-Wj1p2ASa.d.ts} +378 -376
- package/dist/executor-C3VXF7QA.mjs +1 -0
- package/dist/executor-GDBV3AGV.js +1 -0
- package/dist/headless-reexport.d.mts +14 -12
- package/dist/headless-reexport.d.ts +14 -12
- package/dist/headless-reexport.js +1 -4
- package/dist/headless-reexport.mjs +1 -4
- package/dist/index.css +1 -1
- package/dist/index.d.mts +284 -172
- package/dist/index.d.ts +284 -172
- package/dist/index.js +17 -9
- package/dist/index.mjs +17 -9
- package/dist/{fontLoader-0G00frKD.d.mts → insertOperations-BTH1Asas.d.mts} +86 -86
- package/dist/{fontLoader-DPdt4JvW.d.ts → insertOperations-CbUnXAXH.d.ts} +86 -86
- package/dist/layout-bridge-EA4DJ227.js +1 -0
- package/dist/layout-bridge-XDPSO6GO.mjs +1 -0
- package/dist/mcp-reexport.d.mts +2 -2
- package/dist/mcp-reexport.d.ts +2 -2
- package/dist/mcp-reexport.js +8 -8
- package/dist/mcp-reexport.mjs +7 -7
- package/dist/processTemplate-MJ2PCSO5.js +1 -0
- package/dist/{processTemplate-LRHXOWMZ.mjs → processTemplate-W2C5PXZB.mjs} +1 -1
- package/dist/{react-8budV7xv.d.mts → react-B0W16SV6.d.ts} +401 -166
- package/dist/{react-D6tMLo0R.d.ts → react-D0Pn1nww.d.mts} +401 -166
- package/dist/react.css +1 -1
- package/dist/react.d.mts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/{registry-BWGKcKc1.d.ts → registry-CH9V-IX0.d.ts} +1 -1
- package/dist/{registry-8XOdjHGC.d.mts → registry-CWBKYlNW.d.mts} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-DIBvJ7AJ.d.mts → types-UDsUq8D3.d.mts} +1 -1
- package/dist/{types-CfAiObQo.d.ts → types-jbivc9Lj.d.ts} +1 -1
- package/dist/ui.d.mts +33 -83
- package/dist/ui.d.ts +33 -83
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +1 -1
- package/dist/{variableDetector-DNO18eZ1.d.mts → variableDetector-CdQ7ZTzA.d.mts} +1 -1
- package/dist/{variableDetector-BIJFVpkl.d.ts → variableDetector-DsRV3A9z.d.ts} +1 -1
- package/i18n/de.json +49 -2
- package/i18n/en.json +55 -8
- package/i18n/he.json +792 -0
- package/i18n/pl.json +49 -2
- package/i18n/pt-BR.json +792 -0
- package/i18n/tr.json +792 -0
- package/i18n/zh-CN.json +792 -0
- package/package.json +17 -5
- package/dist/FindReplaceDialog-KNJETYJX.js +0 -1
- package/dist/HyperlinkDialog-GBAYMTUE.js +0 -1
- package/dist/ImagePropertiesDialog-JOGW3WDU.mjs +0 -1
- package/dist/PageSetupDialog-2GIBTKMJ.js +0 -1
- package/dist/PageSetupDialog-Q7SHEZIJ.mjs +0 -1
- package/dist/TablePropertiesDialog-LMXWX3FI.mjs +0 -1
- package/dist/chunk-2HDYCD2Q.mjs +0 -1
- package/dist/chunk-37SLIJPH.mjs +0 -58
- package/dist/chunk-3OKYQQQ5.js +0 -111
- package/dist/chunk-4VUZBV2S.js +0 -1
- package/dist/chunk-7MGFEP2R.mjs +0 -26
- package/dist/chunk-7QTNB64A.mjs +0 -9
- package/dist/chunk-AARNCPWR.js +0 -1
- package/dist/chunk-DC65PJYE.js +0 -4
- package/dist/chunk-DLNS7XC2.js +0 -261
- package/dist/chunk-DLVLK5FT.mjs +0 -24
- package/dist/chunk-EV3CM6TU.js +0 -1
- package/dist/chunk-FVUGBRDD.js +0 -1
- package/dist/chunk-FW5LYOOZ.mjs +0 -111
- package/dist/chunk-GZOCOWWB.mjs +0 -2
- package/dist/chunk-KUL2SDYC.js +0 -26
- package/dist/chunk-LYBG4YI7.mjs +0 -1
- package/dist/chunk-M5F4SK3W.mjs +0 -1
- package/dist/chunk-P7WEP4JU.js +0 -9
- package/dist/chunk-PB7VMDDP.js +0 -24
- package/dist/chunk-QAZ4233N.mjs +0 -1
- package/dist/chunk-QSUPYUOP.js +0 -2
- package/dist/chunk-QTSXJRP6.mjs +0 -1
- package/dist/chunk-SE5EN2QL.js +0 -1
- package/dist/chunk-X5A54T6S.mjs +0 -4
- package/dist/chunk-YKBSKEBS.mjs +0 -2
- package/dist/chunk-Z7ZLARCQ.mjs +0 -261
- package/dist/chunk-ZJNGMDRE.js +0 -58
- package/dist/executor-L2MVKMXO.js +0 -1
- package/dist/executor-XKBCCVNY.mjs +0 -1
- package/dist/processTemplate-5ZST2Q5L.js +0 -1
- package/dist/selectionRects-DEX5THEG.js +0 -1
- package/dist/selectionRects-SQTAHMCH.mjs +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {b as b$1,a,c as c$1}from'./chunk-TAUMSKRE.mjs';var dt=b$1(Ae=>{(function(e){e.parser=function(s,i){return new n(s,i)},e.SAXParser=n,e.SAXStream=T,e.createStream=m,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(s,i){if(!(this instanceof n))return new n(s,i);var y=this;o(y),y.q=y.c="",y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,y.encoding=null,y.opt=i||{},y.opt.lowercase=y.opt.lowercase||y.opt.lowercasetags,y.looseCase=y.opt.lowercase?"toLowerCase":"toUpperCase",y.opt.maxEntityCount=y.opt.maxEntityCount||512,y.opt.maxEntityDepth=y.opt.maxEntityDepth||4,y.entityCount=y.entityDepth=0,y.tags=[],y.closed=y.closedRoot=y.sawRoot=false,y.tag=y.error=null,y.strict=!!s,y.noscript=!!(s||y.opt.noscript),y.state=f.BEGIN,y.strictEntities=y.opt.strictEntities,y.ENTITIES=y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),y.attribList=[],y.opt.xmlns&&(y.ns=Object.create(R)),y.opt.unquotedAttributeValues===void 0&&(y.opt.unquotedAttributeValues=!s),y.trackPosition=y.opt.position!==false,y.trackPosition&&(y.position=y.line=y.column=0),j(y,"onready");}Object.create||(Object.create=function(s){function i(){}i.prototype=s;var y=new i;return y}),Object.keys||(Object.keys=function(s){var i=[];for(var y in s)s.hasOwnProperty(y)&&i.push(y);return i});function r(s){for(var i=Math.max(e.MAX_BUFFER_LENGTH,10),y=0,d=0,K=t.length;d<K;d++){var q=s[t[d]].length;if(q>i)switch(t[d]){case "textNode":fe(s);break;case "cdata":U(s,"oncdata",s.cdata),s.cdata="";break;case "script":U(s,"onscript",s.script),s.script="";break;default:te(s,"Max buffer length exceeded: "+t[d]);}y=Math.max(y,q);}var Q=e.MAX_BUFFER_LENGTH-y;s.bufferCheckPosition=Q+s.position;}function o(s){for(var i=0,y=t.length;i<y;i++)s[t[i]]="";}function a$1(s){fe(s),s.cdata!==""&&(U(s,"oncdata",s.cdata),s.cdata=""),s.script!==""&&(U(s,"onscript",s.script),s.script="");}n.prototype={end:function(){ie(this);},write:qn,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a$1(this);}};var l;try{l=a("stream").Stream;}catch{l=function(){};}l||(l=function(){});var u=e.EVENTS.filter(function(s){return s!=="error"&&s!=="end"});function m(s,i){return new T(s,i)}function h(s,i){if(s.length>=2){if(s[0]===255&&s[1]===254)return "utf-16le";if(s[0]===254&&s[1]===255)return "utf-16be"}return s.length>=3&&s[0]===239&&s[1]===187&&s[2]===191?"utf8":s.length>=4?s[0]===60&&s[1]===0&&s[2]===63&&s[3]===0?"utf-16le":s[0]===0&&s[1]===60&&s[2]===0&&s[3]===63?"utf-16be":"utf8":i?"utf8":null}function T(s,i){if(!(this instanceof T))return new T(s,i);l.apply(this),this._parser=new n(s,i),this.writable=true,this.readable=true;var y=this;this._parser.onend=function(){y.emit("end");},this._parser.onerror=function(d){y.emit("error",d),y._parser.error=null;},this._decoder=null,this._decoderBuffer=null,u.forEach(function(d){Object.defineProperty(y,"on"+d,{get:function(){return y._parser["on"+d]},set:function(K){if(!K)return y.removeAllListeners(d),y._parser["on"+d]=K,K;y.on(d,K);},enumerable:true,configurable:false});});}T.prototype=Object.create(l.prototype,{constructor:{value:T}}),T.prototype._decodeBuffer=function(s,i){if(this._decoderBuffer&&(s=Buffer.concat([this._decoderBuffer,s]),this._decoderBuffer=null),!this._decoder){var y=h(s,i);if(!y)return this._decoderBuffer=s,"";this._parser.encoding=y,this._decoder=new TextDecoder(y);}return this._decoder.decode(s,{stream:!i})},T.prototype.write=function(s){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(s))s=this._decodeBuffer(s,false);else if(this._decoderBuffer){var i=this._decodeBuffer(Buffer.alloc(0),true);i&&(this._parser.write(i),this.emit("data",i));}return this._parser.write(s.toString()),this.emit("data",s),true},T.prototype.end=function(s){if(s&&s.length&&this.write(s),this._decoderBuffer){var i=this._decodeBuffer(Buffer.alloc(0),true);i&&(this._parser.write(i),this.emit("data",i));}else if(this._decoder){var y=this._decoder.decode();y&&(this._parser.write(y),this.emit("data",y));}return this._parser.end(),true},T.prototype.on=function(s,i){var y=this;return !y._parser["on"+s]&&u.indexOf(s)!==-1&&(y._parser["on"+s]=function(){var d=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);d.splice(0,0,s),y.emit.apply(y,d);}),l.prototype.on.call(y,s,i)};var x="[CDATA[",F="DOCTYPE",k="http://www.w3.org/XML/1998/namespace",C="http://www.w3.org/2000/xmlns/",R={xml:k,xmlns:C},A=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,W=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,I=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function w(s){return s===" "||s===`
|
|
2
|
+
`||s==="\r"||s===" "}function E(s){return s==='"'||s==="'"}function v(s){return s===">"||w(s)}function S(s,i){return s.test(i)}function M(s,i){return !S(s,i)}var f=0;e.STATE={BEGIN:f++,BEGIN_WHITESPACE:f++,TEXT:f++,TEXT_ENTITY:f++,OPEN_WAKA:f++,SGML_DECL:f++,SGML_DECL_QUOTED:f++,DOCTYPE:f++,DOCTYPE_QUOTED:f++,DOCTYPE_DTD:f++,DOCTYPE_DTD_QUOTED:f++,COMMENT_STARTING:f++,COMMENT:f++,COMMENT_ENDING:f++,COMMENT_ENDED:f++,CDATA:f++,CDATA_ENDING:f++,CDATA_ENDING_2:f++,PROC_INST:f++,PROC_INST_BODY:f++,PROC_INST_ENDING:f++,OPEN_TAG:f++,OPEN_TAG_SLASH:f++,ATTRIB:f++,ATTRIB_NAME:f++,ATTRIB_NAME_SAW_WHITE:f++,ATTRIB_VALUE:f++,ATTRIB_VALUE_QUOTED:f++,ATTRIB_VALUE_CLOSED:f++,ATTRIB_VALUE_UNQUOTED:f++,ATTRIB_VALUE_ENTITY_Q:f++,ATTRIB_VALUE_ENTITY_U:f++,CLOSE_TAG:f++,CLOSE_TAG_SAW_WHITE:f++,SCRIPT:f++,SCRIPT_ENDING:f++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(s){var i=e.ENTITIES[s],y=typeof i=="number"?String.fromCharCode(i):i;e.ENTITIES[s]=y;});for(var V in e.STATE)e.STATE[e.STATE[V]]=V;f=e.STATE;function j(s,i,y){s[i]&&s[i](y);}function Y(s){var i=s&&s.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);return i?i[2]:null}function ee(s){return s?s.toLowerCase().replace(/[^a-z0-9]/g,""):null}function G(s,i){let y=ee(s),d=ee(i);return !y||!d?true:d==="utf16"?y==="utf16le"||y==="utf16be":y===d}function ge(s,i){if(!(!s.strict||!s.encoding||!i||i.name!=="xml")){var y=Y(i.body);y&&!G(s.encoding,y)&&H(s,"XML declaration encoding "+y+" does not match detected stream encoding "+s.encoding.toUpperCase());}}function U(s,i,y){s.textNode&&fe(s),j(s,i,y);}function fe(s){s.textNode=B(s.opt,s.textNode),s.textNode&&j(s,"ontext",s.textNode),s.textNode="";}function B(s,i){return s.trim&&(i=i.trim()),s.normalize&&(i=i.replace(/\s+/g," ")),i}function te(s,i){return fe(s),s.trackPosition&&(i+=`
|
|
3
|
+
Line: `+s.line+`
|
|
4
|
+
Column: `+s.column+`
|
|
5
|
+
Char: `+s.c),i=new Error(i),s.error=i,j(s,"onerror",i),s}function ie(s){return s.sawRoot&&!s.closedRoot&&H(s,"Unclosed root tag"),s.state!==f.BEGIN&&s.state!==f.BEGIN_WHITESPACE&&s.state!==f.TEXT&&te(s,"Unexpected end"),fe(s),s.c="",s.closed=true,j(s,"onend"),n.call(s,s.strict,s.opt),s}function H(s,i){if(typeof s!="object"||!(s instanceof n))throw new Error("bad call to strictFail");s.strict&&te(s,i);}function zn(s){s.strict||(s.tagName=s.tagName[s.looseCase]());var i=s.tags[s.tags.length-1]||s,y=s.tag={name:s.tagName,attributes:{}};s.opt.xmlns&&(y.ns=i.ns),s.attribList.length=0,U(s,"onopentagstart",y);}function je(s,i){var y=s.indexOf(":"),d=y<0?["",s]:s.split(":"),K=d[0],q=d[1];return i&&s==="xmlns"&&(K="xmlns",q=""),{prefix:K,local:q}}function We(s){if(s.strict||(s.attribName=s.attribName[s.looseCase]()),s.attribList.indexOf(s.attribName)!==-1||s.tag.attributes.hasOwnProperty(s.attribName)){s.attribName=s.attribValue="";return}if(s.opt.xmlns){var i=je(s.attribName,true),y=i.prefix,d=i.local;if(y==="xmlns")if(d==="xml"&&s.attribValue!==k)H(s,"xml: prefix must be bound to "+k+`
|
|
6
|
+
Actual: `+s.attribValue);else if(d==="xmlns"&&s.attribValue!==C)H(s,"xmlns: prefix must be bound to "+C+`
|
|
7
|
+
Actual: `+s.attribValue);else {var K=s.tag,q=s.tags[s.tags.length-1]||s;K.ns===q.ns&&(K.ns=Object.create(q.ns)),K.ns[d]=s.attribValue;}s.attribList.push([s.attribName,s.attribValue]);}else s.tag.attributes[s.attribName]=s.attribValue,U(s,"onattribute",{name:s.attribName,value:s.attribValue});s.attribName=s.attribValue="";}function he(s,i){if(s.opt.xmlns){var y=s.tag,d=je(s.tagName);y.prefix=d.prefix,y.local=d.local,y.uri=y.ns[d.prefix]||"",y.prefix&&!y.uri&&(H(s,"Unbound namespace prefix: "+JSON.stringify(s.tagName)),y.uri=d.prefix);var K=s.tags[s.tags.length-1]||s;y.ns&&K.ns!==y.ns&&Object.keys(y.ns).forEach(function(ft){U(s,"onopennamespace",{prefix:ft,uri:y.ns[ft]});});for(var q=0,Q=s.attribList.length;q<Q;q++){var ne=s.attribList[q],re=ne[0],ae=ne[1],$=je(re,true),se=$.prefix,Yn=$.local,ct=se===""?"":y.ns[se]||"",Ge={name:re,value:ae,prefix:se,local:Yn,uri:ct};se&&se!=="xmlns"&&!ct&&(H(s,"Unbound namespace prefix: "+JSON.stringify(se)),Ge.uri=se),s.tag.attributes[re]=Ge,U(s,"onattribute",Ge);}s.attribList.length=0;}s.tag.isSelfClosing=!!i,s.sawRoot=true,s.tags.push(s.tag),U(s,"onopentag",s.tag),i||(!s.noscript&&s.tagName.toLowerCase()==="script"?s.state=f.SCRIPT:s.state=f.TEXT,s.tag=null,s.tagName=""),s.attribName=s.attribValue="",s.attribList.length=0;}function Ue(s){if(!s.tagName){H(s,"Weird empty close tag."),s.textNode+="</>",s.state=f.TEXT;return}if(s.script){if(s.tagName!=="script"){s.script+="</"+s.tagName+">",s.tagName="",s.state=f.SCRIPT;return}U(s,"onscript",s.script),s.script="";}var i=s.tags.length,y=s.tagName;s.strict||(y=y[s.looseCase]());for(var d=y;i--;){var K=s.tags[i];if(K.name!==d)H(s,"Unexpected close tag");else break}if(i<0){H(s,"Unmatched closing tag: "+s.tagName),s.textNode+="</"+s.tagName+">",s.state=f.TEXT;return}s.tagName=y;for(var q=s.tags.length;q-- >i;){var Q=s.tag=s.tags.pop();s.tagName=s.tag.name,U(s,"onclosetag",s.tagName);var ne={};for(var re in Q.ns)ne[re]=Q.ns[re];var ae=s.tags[s.tags.length-1]||s;s.opt.xmlns&&Q.ns!==ae.ns&&Object.keys(Q.ns).forEach(function($){var se=Q.ns[$];U(s,"onclosenamespace",{prefix:$,uri:se});});}i===0&&(s.closedRoot=true),s.tagName=s.attribValue=s.attribName="",s.attribList.length=0,s.state=f.TEXT;}function Gn(s){var i=s.entity,y=i.toLowerCase(),d,K="";return s.ENTITIES[i]?s.ENTITIES[i]:s.ENTITIES[y]?s.ENTITIES[y]:(i=y,i.charAt(0)==="#"&&(i.charAt(1)==="x"?(i=i.slice(2),d=parseInt(i,16),K=d.toString(16)):(i=i.slice(1),d=parseInt(i,10),K=d.toString(10))),i=i.replace(/^0+/,""),isNaN(d)||K.toLowerCase()!==i||d<0||d>1114111?(H(s,"Invalid character entity"),"&"+s.entity+";"):String.fromCodePoint(d))}function ut(s,i){i==="<"?(s.state=f.OPEN_WAKA,s.startTagPosition=s.position):w(i)||(H(s,"Non-whitespace before first tag."),s.textNode=i,s.state=f.TEXT);}function ze(s,i){var y="";return i<s.length&&(y=s.charAt(i)),y}function qn(s){var i=this;if(this.error)throw this.error;if(i.closed)return te(i,"Cannot write after close. Assign an onready handler.");if(s===null)return ie(i);typeof s=="object"&&(s=s.toString());for(var y=0,d="";d=ze(s,y++),i.c=d,!!d;)switch(i.trackPosition&&(i.position++,d===`
|
|
8
|
+
`?(i.line++,i.column=0):i.column++),i.state){case f.BEGIN:if(i.state=f.BEGIN_WHITESPACE,d==="\uFEFF")continue;ut(i,d);continue;case f.BEGIN_WHITESPACE:ut(i,d);continue;case f.TEXT:if(i.sawRoot&&!i.closedRoot){for(var q=y-1;d&&d!=="<"&&d!=="&";)d=ze(s,y++),d&&i.trackPosition&&(i.position++,d===`
|
|
9
|
+
`?(i.line++,i.column=0):i.column++);i.textNode+=s.substring(q,y-1);}d==="<"&&!(i.sawRoot&&i.closedRoot&&!i.strict)?(i.state=f.OPEN_WAKA,i.startTagPosition=i.position):(!w(d)&&(!i.sawRoot||i.closedRoot)&&H(i,"Text data outside of root node."),d==="&"?i.state=f.TEXT_ENTITY:i.textNode+=d);continue;case f.SCRIPT:d==="<"?i.state=f.SCRIPT_ENDING:i.script+=d;continue;case f.SCRIPT_ENDING:d==="/"?i.state=f.CLOSE_TAG:(i.script+="<"+d,i.state=f.SCRIPT);continue;case f.OPEN_WAKA:if(d==="!")i.state=f.SGML_DECL,i.sgmlDecl="";else if(!w(d))if(S(A,d))i.state=f.OPEN_TAG,i.tagName=d;else if(d==="/")i.state=f.CLOSE_TAG,i.tagName="";else if(d==="?")i.state=f.PROC_INST,i.procInstName=i.procInstBody="";else {if(H(i,"Unencoded <"),i.startTagPosition+1<i.position){var K=i.position-i.startTagPosition;d=new Array(K).join(" ")+d;}i.textNode+="<"+d,i.state=f.TEXT;}continue;case f.SGML_DECL:if(i.sgmlDecl+d==="--"){i.state=f.COMMENT,i.comment="",i.sgmlDecl="";continue}i.doctype&&i.doctype!==true&&i.sgmlDecl?(i.state=f.DOCTYPE_DTD,i.doctype+="<!"+i.sgmlDecl+d,i.sgmlDecl=""):(i.sgmlDecl+d).toUpperCase()===x?(U(i,"onopencdata"),i.state=f.CDATA,i.sgmlDecl="",i.cdata=""):(i.sgmlDecl+d).toUpperCase()===F?(i.state=f.DOCTYPE,(i.doctype||i.sawRoot)&&H(i,"Inappropriately located doctype declaration"),i.doctype="",i.sgmlDecl=""):d===">"?(U(i,"onsgmldeclaration",i.sgmlDecl),i.sgmlDecl="",i.state=f.TEXT):(E(d)&&(i.state=f.SGML_DECL_QUOTED),i.sgmlDecl+=d);continue;case f.SGML_DECL_QUOTED:d===i.q&&(i.state=f.SGML_DECL,i.q=""),i.sgmlDecl+=d;continue;case f.DOCTYPE:d===">"?(i.state=f.TEXT,U(i,"ondoctype",i.doctype),i.doctype=true):(i.doctype+=d,d==="["?i.state=f.DOCTYPE_DTD:E(d)&&(i.state=f.DOCTYPE_QUOTED,i.q=d));continue;case f.DOCTYPE_QUOTED:i.doctype+=d,d===i.q&&(i.q="",i.state=f.DOCTYPE);continue;case f.DOCTYPE_DTD:d==="]"?(i.doctype+=d,i.state=f.DOCTYPE):d==="<"?(i.state=f.OPEN_WAKA,i.startTagPosition=i.position):E(d)?(i.doctype+=d,i.state=f.DOCTYPE_DTD_QUOTED,i.q=d):i.doctype+=d;continue;case f.DOCTYPE_DTD_QUOTED:i.doctype+=d,d===i.q&&(i.state=f.DOCTYPE_DTD,i.q="");continue;case f.COMMENT:d==="-"?i.state=f.COMMENT_ENDING:i.comment+=d;continue;case f.COMMENT_ENDING:d==="-"?(i.state=f.COMMENT_ENDED,i.comment=B(i.opt,i.comment),i.comment&&U(i,"oncomment",i.comment),i.comment=""):(i.comment+="-"+d,i.state=f.COMMENT);continue;case f.COMMENT_ENDED:d!==">"?(H(i,"Malformed comment"),i.comment+="--"+d,i.state=f.COMMENT):i.doctype&&i.doctype!==true?i.state=f.DOCTYPE_DTD:i.state=f.TEXT;continue;case f.CDATA:for(var q=y-1;d&&d!=="]";)d=ze(s,y++),d&&i.trackPosition&&(i.position++,d===`
|
|
10
|
+
`?(i.line++,i.column=0):i.column++);i.cdata+=s.substring(q,y-1),d==="]"&&(i.state=f.CDATA_ENDING);continue;case f.CDATA_ENDING:d==="]"?i.state=f.CDATA_ENDING_2:(i.cdata+="]"+d,i.state=f.CDATA);continue;case f.CDATA_ENDING_2:d===">"?(i.cdata&&U(i,"oncdata",i.cdata),U(i,"onclosecdata"),i.cdata="",i.state=f.TEXT):d==="]"?i.cdata+="]":(i.cdata+="]]"+d,i.state=f.CDATA);continue;case f.PROC_INST:d==="?"?i.state=f.PROC_INST_ENDING:w(d)?i.state=f.PROC_INST_BODY:i.procInstName+=d;continue;case f.PROC_INST_BODY:if(!i.procInstBody&&w(d))continue;d==="?"?i.state=f.PROC_INST_ENDING:i.procInstBody+=d;continue;case f.PROC_INST_ENDING:if(d===">"){let ae={name:i.procInstName,body:i.procInstBody};ge(i,ae),U(i,"onprocessinginstruction",ae),i.procInstName=i.procInstBody="",i.state=f.TEXT;}else i.procInstBody+="?"+d,i.state=f.PROC_INST_BODY;continue;case f.OPEN_TAG:S(W,d)?i.tagName+=d:(zn(i),d===">"?he(i):d==="/"?i.state=f.OPEN_TAG_SLASH:(w(d)||H(i,"Invalid character in tag name"),i.state=f.ATTRIB));continue;case f.OPEN_TAG_SLASH:d===">"?(he(i,true),Ue(i)):(H(i,"Forward-slash in opening tag not followed by >"),i.state=f.ATTRIB);continue;case f.ATTRIB:if(w(d))continue;d===">"?he(i):d==="/"?i.state=f.OPEN_TAG_SLASH:S(A,d)?(i.attribName=d,i.attribValue="",i.state=f.ATTRIB_NAME):H(i,"Invalid attribute name");continue;case f.ATTRIB_NAME:d==="="?i.state=f.ATTRIB_VALUE:d===">"?(H(i,"Attribute without value"),i.attribValue=i.attribName,We(i),he(i)):w(d)?i.state=f.ATTRIB_NAME_SAW_WHITE:S(W,d)?i.attribName+=d:H(i,"Invalid attribute name");continue;case f.ATTRIB_NAME_SAW_WHITE:if(d==="=")i.state=f.ATTRIB_VALUE;else {if(w(d))continue;H(i,"Attribute without value"),i.tag.attributes[i.attribName]="",i.attribValue="",U(i,"onattribute",{name:i.attribName,value:""}),i.attribName="",d===">"?he(i):S(A,d)?(i.attribName=d,i.state=f.ATTRIB_NAME):(H(i,"Invalid attribute name"),i.state=f.ATTRIB);}continue;case f.ATTRIB_VALUE:if(w(d))continue;E(d)?(i.q=d,i.state=f.ATTRIB_VALUE_QUOTED):(i.opt.unquotedAttributeValues||te(i,"Unquoted attribute value"),i.state=f.ATTRIB_VALUE_UNQUOTED,i.attribValue=d);continue;case f.ATTRIB_VALUE_QUOTED:if(d!==i.q){d==="&"?i.state=f.ATTRIB_VALUE_ENTITY_Q:i.attribValue+=d;continue}We(i),i.q="",i.state=f.ATTRIB_VALUE_CLOSED;continue;case f.ATTRIB_VALUE_CLOSED:w(d)?i.state=f.ATTRIB:d===">"?he(i):d==="/"?i.state=f.OPEN_TAG_SLASH:S(A,d)?(H(i,"No whitespace between attributes"),i.attribName=d,i.attribValue="",i.state=f.ATTRIB_NAME):H(i,"Invalid attribute name");continue;case f.ATTRIB_VALUE_UNQUOTED:if(!v(d)){d==="&"?i.state=f.ATTRIB_VALUE_ENTITY_U:i.attribValue+=d;continue}We(i),d===">"?he(i):i.state=f.ATTRIB;continue;case f.CLOSE_TAG:if(i.tagName)d===">"?Ue(i):S(W,d)?i.tagName+=d:i.script?(i.script+="</"+i.tagName+d,i.tagName="",i.state=f.SCRIPT):(w(d)||H(i,"Invalid tagname in closing tag"),i.state=f.CLOSE_TAG_SAW_WHITE);else {if(w(d))continue;M(A,d)?i.script?(i.script+="</"+d,i.state=f.SCRIPT):H(i,"Invalid tagname in closing tag."):i.tagName=d;}continue;case f.CLOSE_TAG_SAW_WHITE:if(w(d))continue;d===">"?Ue(i):H(i,"Invalid characters in closing tag");continue;case f.TEXT_ENTITY:case f.ATTRIB_VALUE_ENTITY_Q:case f.ATTRIB_VALUE_ENTITY_U:var Q,ne;switch(i.state){case f.TEXT_ENTITY:Q=f.TEXT,ne="textNode";break;case f.ATTRIB_VALUE_ENTITY_Q:Q=f.ATTRIB_VALUE_QUOTED,ne="attribValue";break;case f.ATTRIB_VALUE_ENTITY_U:Q=f.ATTRIB_VALUE_UNQUOTED,ne="attribValue";break}if(d===";"){var re=Gn(i);i.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(re)?((i.entityCount+=1)>i.opt.maxEntityCount&&te(i,"Parsed entity count exceeds max entity count"),(i.entityDepth+=1)>i.opt.maxEntityDepth&&te(i,"Parsed entity depth exceeds max entity depth"),i.entity="",i.state=Q,i.write(re),i.entityDepth-=1):(i[ne]+=re,i.entity="",i.state=Q);}else S(i.entity.length?N:I,d)?i.entity+=d:(H(i,"Invalid character in entity name"),i[ne]+="&"+i.entity+d,i.entity="",i.state=Q);continue;default:throw new Error(i,"Unknown state: "+i.state)}return i.position>=i.bufferCheckPosition&&r(i),i}String.fromCodePoint||(function(){var s=String.fromCharCode,i=Math.floor,y=function(){var d=16384,K=[],q,Q,ne=-1,re=arguments.length;if(!re)return "";for(var ae="";++ne<re;){var $=Number(arguments[ne]);if(!isFinite($)||$<0||$>1114111||i($)!==$)throw RangeError("Invalid code point: "+$);$<=65535?K.push($):($-=65536,q=($>>10)+55296,Q=$%1024+56320,K.push(q,Q)),(ne+1===re||K.length>d)&&(ae+=s.apply(null,K),K.length=0);}return ae};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:y,configurable:true,writable:true}):String.fromCodePoint=y;})();})(typeof Ae>"u"?Ae.sax={}:Ae);});var Ne=b$1((Ko,pt)=>{pt.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}};});var ve=b$1((jo,mt)=>{var Zn=Ne().isArray;mt.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=false);},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0);},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!Zn(e.alwaysArray))&&(e.alwaysArray=false);},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e);},checkFnExists:function(e,t){return e+"Fn"in t}};});var Ye=b$1((Wo,Ft)=>{var Jn=dt(),O=ve(),Te=Ne().isArray,g,qe=true,P;function tr(e){return g=O.copyOptions(e),O.ensureFlagExists("ignoreDeclaration",g),O.ensureFlagExists("ignoreInstruction",g),O.ensureFlagExists("ignoreAttributes",g),O.ensureFlagExists("ignoreText",g),O.ensureFlagExists("ignoreComment",g),O.ensureFlagExists("ignoreCdata",g),O.ensureFlagExists("ignoreDoctype",g),O.ensureFlagExists("compact",g),O.ensureFlagExists("alwaysChildren",g),O.ensureFlagExists("addParent",g),O.ensureFlagExists("trim",g),O.ensureFlagExists("nativeType",g),O.ensureFlagExists("nativeTypeAttributes",g),O.ensureFlagExists("sanitize",g),O.ensureFlagExists("instructionHasAttributes",g),O.ensureFlagExists("captureSpacesBetweenElements",g),O.ensureAlwaysArrayExists(g),O.ensureKeyExists("declaration",g),O.ensureKeyExists("instruction",g),O.ensureKeyExists("attributes",g),O.ensureKeyExists("text",g),O.ensureKeyExists("comment",g),O.ensureKeyExists("cdata",g),O.ensureKeyExists("doctype",g),O.ensureKeyExists("type",g),O.ensureKeyExists("name",g),O.ensureKeyExists("elements",g),O.ensureKeyExists("parent",g),O.checkFnExists("doctype",g),O.checkFnExists("instruction",g),O.checkFnExists("cdata",g),O.checkFnExists("comment",g),O.checkFnExists("text",g),O.checkFnExists("instructionName",g),O.checkFnExists("elementName",g),O.checkFnExists("attributeName",g),O.checkFnExists("attributeValue",g),O.checkFnExists("attributes",g),g}function wt(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?true:n==="false"?false:e}function Ee(e,t){var n;if(g.compact){if(!P[g[e+"Key"]]&&(Te(g.alwaysArray)?g.alwaysArray.indexOf(g[e+"Key"])!==-1:g.alwaysArray)&&(P[g[e+"Key"]]=[]),P[g[e+"Key"]]&&!Te(P[g[e+"Key"]])&&(P[g[e+"Key"]]=[P[g[e+"Key"]]]),e+"Fn"in g&&typeof t=="string"&&(t=g[e+"Fn"](t,P)),e==="instruction"&&("instructionFn"in g||"instructionNameFn"in g)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in g)t[n]=g.instructionFn(t[n],n,P);else {var r=t[n];delete t[n],t[g.instructionNameFn(n,r,P)]=r;}}Te(P[g[e+"Key"]])?P[g[e+"Key"]].push(t):P[g[e+"Key"]]=t;}else {P[g.elementsKey]||(P[g.elementsKey]=[]);var o={};if(o[g.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;o[g.nameKey]="instructionNameFn"in g?g.instructionNameFn(n,t,P):n,g.instructionHasAttributes?(o[g.attributesKey]=t[n][g.attributesKey],"instructionFn"in g&&(o[g.attributesKey]=g.instructionFn(o[g.attributesKey],n,P))):("instructionFn"in g&&(t[n]=g.instructionFn(t[n],n,P)),o[g.instructionKey]=t[n]);}else e+"Fn"in g&&(t=g[e+"Fn"](t,P)),o[g[e+"Key"]]=t;g.addParent&&(o[g.parentKey]=P),P[g.elementsKey].push(o);}}function xt(e){if("attributesFn"in g&&e&&(e=g.attributesFn(e,P)),(g.trim||"attributeValueFn"in g||"attributeNameFn"in g||g.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(g.trim&&(e[t]=e[t].trim()),g.nativeTypeAttributes&&(e[t]=wt(e[t])),"attributeValueFn"in g&&(e[t]=g.attributeValueFn(e[t],t,P)),"attributeNameFn"in g)){var n=e[t];delete e[t],e[g.attributeNameFn(t,e[t],P)]=n;}}return e}function nr(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||g.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,r;(r=n.exec(e.body))!==null;)t[r[1]]=r[2]||r[3]||r[4];t=xt(t);}if(e.name.toLowerCase()==="xml"){if(g.ignoreDeclaration)return;P[g.declarationKey]={},Object.keys(t).length&&(P[g.declarationKey][g.attributesKey]=t),g.addParent&&(P[g.declarationKey][g.parentKey]=P);}else {if(g.ignoreInstruction)return;g.trim&&(e.body=e.body.trim());var o={};g.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][g.attributesKey]=t):o[e.name]=e.body,Ee("instruction",o);}}function gt(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=xt(t),"elementNameFn"in g&&(e=g.elementNameFn(e,P)),g.compact){if(n={},!g.ignoreAttributes&&t&&Object.keys(t).length){n[g.attributesKey]={};var r;for(r in t)t.hasOwnProperty(r)&&(n[g.attributesKey][r]=t[r]);}!(e in P)&&(Te(g.alwaysArray)?g.alwaysArray.indexOf(e)!==-1:g.alwaysArray)&&(P[e]=[]),P[e]&&!Te(P[e])&&(P[e]=[P[e]]),Te(P[e])?P[e].push(n):P[e]=n;}else P[g.elementsKey]||(P[g.elementsKey]=[]),n={},n[g.typeKey]="element",n[g.nameKey]=e,!g.ignoreAttributes&&t&&Object.keys(t).length&&(n[g.attributesKey]=t),g.alwaysChildren&&(n[g.elementsKey]=[]),P[g.elementsKey].push(n);n[g.parentKey]=P,P=n;}function ht(e){g.ignoreText||!e.trim()&&!g.captureSpacesBetweenElements||(g.trim&&(e=e.trim()),g.nativeType&&(e=wt(e)),g.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Ee("text",e));}function yt(e){g.ignoreComment||(g.trim&&(e=e.trim()),Ee("comment",e));}function Tt(e){var t=P[g.parentKey];g.addParent||delete P[g.parentKey],P=t;}function rr(e){g.ignoreCdata||(g.trim&&(e=e.trim()),Ee("cdata",e));}function or(e){g.ignoreDoctype||(e=e.replace(/^ /,""),g.trim&&(e=e.trim()),Ee("doctype",e));}function bt(e){e.note=e;}Ft.exports=function(e,t){var n=Jn.parser(true,{}),r={};if(P=r,g=tr(t),(n.opt={strictEntities:true},n.onopentag=gt,n.ontext=ht,n.oncomment=yt,n.onclosetag=Tt,n.onerror=bt,n.oncdata=rr,n.ondoctype=or,n.onprocessinginstruction=nr),qe)n.write(e).close();if(r[g.elementsKey]){var o=r[g.elementsKey];delete r[g.elementsKey],r[g.elementsKey]=o,delete r.text;}return r};});var St=b$1((Uo,Ct)=>{var Et=ve(),ir=Ye();function ar(e){var t=Et.copyOptions(e);return Et.ensureSpacesExists(t),t}Ct.exports=function(e,t){var n,r,o,a;return n=ar(t),r=ir(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(r,function(l,u){return l===a?"_":u},n.spaces):o=JSON.stringify(r,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};});var $e=b$1((zo,Bt)=>{var _=ve(),sr=Ne().isArray,Z,J;function lr(e){var t=_.copyOptions(e);return _.ensureFlagExists("ignoreDeclaration",t),_.ensureFlagExists("ignoreInstruction",t),_.ensureFlagExists("ignoreAttributes",t),_.ensureFlagExists("ignoreText",t),_.ensureFlagExists("ignoreComment",t),_.ensureFlagExists("ignoreCdata",t),_.ensureFlagExists("ignoreDoctype",t),_.ensureFlagExists("compact",t),_.ensureFlagExists("indentText",t),_.ensureFlagExists("indentCdata",t),_.ensureFlagExists("indentAttributes",t),_.ensureFlagExists("indentInstruction",t),_.ensureFlagExists("fullTagEmptyElement",t),_.ensureFlagExists("noQuotesForNativeAttributes",t),_.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),_.ensureKeyExists("declaration",t),_.ensureKeyExists("instruction",t),_.ensureKeyExists("attributes",t),_.ensureKeyExists("text",t),_.ensureKeyExists("comment",t),_.ensureKeyExists("cdata",t),_.ensureKeyExists("doctype",t),_.ensureKeyExists("type",t),_.ensureKeyExists("name",t),_.ensureKeyExists("elements",t),_.checkFnExists("doctype",t),_.checkFnExists("instruction",t),_.checkFnExists("cdata",t),_.checkFnExists("comment",t),_.checkFnExists("text",t),_.checkFnExists("instructionName",t),_.checkFnExists("elementName",t),_.checkFnExists("attributeName",t),_.checkFnExists("attributeValue",t),_.checkFnExists("attributes",t),_.checkFnExists("fullTagEmptyElement",t),t}function oe(e,t,n){return (!n&&e.spaces?`
|
|
11
|
+
`:"")+Array(t+1).join(e.spaces)}function Me(e,t,n){if(t.ignoreAttributes)return "";"attributesFn"in t&&(e=t.attributesFn(e,J,Z));var r,o,a,l,u=[];for(r in e)e.hasOwnProperty(r)&&e[r]!==null&&e[r]!==void 0&&(l=t.noQuotesForNativeAttributes&&typeof e[r]!="string"?"":'"',o=""+e[r],o=o.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(r,o,J,Z):r,u.push(t.spaces&&t.indentAttributes?oe(t,n+1,false):" "),u.push(a+"="+l+("attributeValueFn"in t?t.attributeValueFn(o,r,J,Z):o)+l));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&u.push(oe(t,n,false)),u.join("")}function kt(e,t,n){return Z=e,J="xml",t.ignoreDeclaration?"":"<?xml"+Me(e[t.attributesKey],t,n)+"?>"}function Rt(e,t,n){if(t.ignoreInstruction)return "";var r;for(r in e)if(e.hasOwnProperty(r))break;var o="instructionNameFn"in t?t.instructionNameFn(r,e[r],J,Z):r;if(typeof e[r]=="object")return Z=e,J=o,"<?"+o+Me(e[r][t.attributesKey],t,n)+"?>";var a=e[r]?e[r]:"";return "instructionFn"in t&&(a=t.instructionFn(a,r,J,Z)),"<?"+o+(a?" "+a:"")+"?>"}function At(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,J,Z):e)+"-->"}function Nt(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,J,Z):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function vt(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,J,Z):e)+">"}function Qe(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,J,Z):e)}function ur(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case "text":if(t.indentText)return true;break;case "cdata":if(t.indentCdata)return true;break;case "instruction":if(t.indentInstruction)return true;break;case "doctype":case "comment":case "element":return true;default:return true}return false}function cr(e,t,n){Z=e,J=e.name;var r=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;r.push("<"+o),e[t.attributesKey]&&r.push(Me(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(r.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(r.push(Mt(e[t.elementsKey],t,n+1)),Z=e,J=e.name),r.push(t.spaces&&ur(e,t)?`
|
|
12
|
+
`+Array(n+1).join(t.spaces):""),r.push("</"+o+">")):r.push("/>"),r.join("")}function Mt(e,t,n,r){return e.reduce(function(o,a){var l=oe(t,n,r&&!o);switch(a.type){case "element":return o+l+cr(a,t,n);case "comment":return o+l+At(a[t.commentKey],t);case "doctype":return o+l+vt(a[t.doctypeKey],t);case "cdata":return o+(t.indentCdata?l:"")+Nt(a[t.cdataKey],t);case "text":return o+(t.indentText?l:"")+Qe(a[t.textKey],t);case "instruction":var u={};return u[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?l:"")+Rt(u,t,n)}},"")}function It(e,t,n){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return true;break;case t.cdataKey:if(t.indentCdata||n)return true;break;case t.instructionKey:if(t.indentInstruction||n)return true;break;case t.doctypeKey:case t.commentKey:return true;default:return true}return false}function fr(e,t,n,r,o){Z=e,J=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return "fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var l=[];if(t){if(l.push("<"+a),typeof e!="object")return l.push(">"+Qe(e,n)+"</"+a+">"),l.join("");e[n.attributesKey]&&l.push(Me(e[n.attributesKey],n,r));var u=It(e,n,true)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(u||("fullTagEmptyElementFn"in n?u=n.fullTagEmptyElementFn(t,e):u=n.fullTagEmptyElement),u)l.push(">");else return l.push("/>"),l.join("")}return l.push(Pt(e,n,r+1,false)),Z=e,J=t,t&&l.push((o?oe(n,r,false):"")+"</"+a+">"),l.join("")}function Pt(e,t,n,r){var o,a,l,u=[];for(a in e)if(e.hasOwnProperty(a))for(l=sr(e[a])?e[a]:[e[a]],o=0;o<l.length;++o){switch(a){case t.declarationKey:u.push(kt(l[o],t,n));break;case t.instructionKey:u.push((t.indentInstruction?oe(t,n,r):"")+Rt(l[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:u.push((t.indentText?oe(t,n,r):"")+Qe(l[o],t));break;case t.cdataKey:u.push((t.indentCdata?oe(t,n,r):"")+Nt(l[o],t));break;case t.doctypeKey:u.push(oe(t,n,r)+vt(l[o],t));break;case t.commentKey:u.push(oe(t,n,r)+At(l[o],t));break;default:u.push(oe(t,n,r)+fr(l[o],a,t,n,It(l[o],t)));}r=r&&!u.length;}return u.join("")}Bt.exports=function(e,t){t=lr(t);var n=[];return Z=e,J="_root_",t.compact?n.push(Pt(e,t,0,true)):(e[t.declarationKey]&&n.push(kt(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Mt(e[t.elementsKey],t,0,!n.length))),n.join("")};});var Ot=b$1((Go,Dt)=>{var dr=$e();Dt.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e);}catch{throw new Error("The JSON structure is invalid")}else n=e;return dr(n,t)};});var Xt=b$1((qo,_t)=>{var pr=Ye(),mr=St(),gr=$e(),hr=Ot();_t.exports={xml2js:pr,xml2json:mr,js2xml:gr,json2xml:hr};});var Ie=c$1(Xt());function le(e){return (0, Ie.xml2js)(e,{compact:false,ignoreComment:true,ignoreInstruction:true,ignoreDoctype:true,alwaysArray:false,trim:false,captureSpacesBetweenElements:true,attributesKey:"attributes",textKey:"text"})}function Lt(e){return (0, Ie.js2xml)({elements:[e]},{compact:false,spaces:0})}function Pe(e){try{let t=le(e);return t.elements&&t.elements.length>0?t.elements.find(n=>n.type==="element")??null:t}catch(t){return console.warn("Failed to parse XML:",t),null}}function pe(e){let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function yr(e,t,n){if(!e.name)return false;let r=`${t}:${n}`;return e.name===r||pe(e.name)===n}function p(e,t,n){if(!e||!e.elements)return null;let r=`${t}:${n}`;for(let o of e.elements)if(o.type==="element"&&(o.name===r||pe(o.name||"")===n))return o;return null}function z(e,t,n){if(!e||!e.elements)return [];let r=`${t}:${n}`,o=[];for(let a of e.elements)a.type==="element"&&(a.name===r||pe(a.name||"")===n)&&o.push(a);return o}function D(e,t){if(!e||!e.elements)return null;for(let n of e.elements)if(n.type==="element"&&n.name===t)return n;return null}function L(e){return !e||!e.elements?[]:e.elements.filter(t=>t.type==="element")}function c(e,t,n){if(!e||!e.attributes)return null;let r=e.attributes;if(t){let o=`${t}:${n}`;if(o in r)return r[o]}return n in r?r[n]:null}function ue(e){if(!e)return "";if("text"in e&&typeof e.text=="string")return e.text;if(!e.elements)return "";let t="";for(let n of e.elements)n.type==="text"&&"text"in n?t+=n.text??"":n.type==="element"&&(t+=ue(n));return t}function b(e,t,n,r=1){let o=c(e,t,n);if(o===null)return;let a=parseInt(o,10);if(!isNaN(a))return a*r}function X(e,t="w"){if(!e)return false;let n=c(e,t,"val");return n===null?true:!(n==="0"||n==="false"||n==="off")}function Ze(e,t,n){if(!e)return null;if(yr(e,t,n))return e;if(e.elements)for(let r of e.elements){if(r.type!=="element")continue;let o=Ze(r,t,n);if(o)return o}return null}var Tr={image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",header:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",footer:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",footnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",endnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",numbering:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",fontTable:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",settings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",webSettings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",oleObject:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject",chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",diagramData:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData",officeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",coreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",extendedProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",customProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",customXml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",commentsExtended:"http://schemas.microsoft.com/office/2011/relationships/commentsExtended",commentsIds:"http://schemas.microsoft.com/office/2016/09/relationships/commentsIds",commentsExtensible:"http://schemas.microsoft.com/office/2018/08/relationships/commentsExtensible"};function $o(e){let t=new Map;if(!e||e.trim().length===0)return t;let n=Pe(e);if(!n)return console.warn("Failed to parse relationships XML"),t;let r=L(n);for(let o of r){let a=o.name||"";if(!a.endsWith("Relationship")&&!a.includes(":Relationship"))continue;let l=c(o,null,"Id"),u=c(o,null,"Type"),m=c(o,null,"Target"),h=c(o,null,"TargetMode");if(!l||!u||!m){console.warn("Relationship missing required attributes:",{id:l,type:u,target:m});continue}let T={id:l,type:u,target:m};h==="External"?T.targetMode="External":h==="Internal"&&(T.targetMode="Internal"),t.set(l,T);}return t}function Ht(e){return e.type===Tr.hyperlink&&e.targetMode==="External"}function Je(e,t){return e.get(t)?.target}var jt={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},Be={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},et={name:"Office Theme",colorScheme:jt,fontScheme:Be},br=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function wr(e){if(!e)return null;switch(pe(e.name||"")){case "srgbClr":return c(e,"a","val")??c(e,null,"val")??null;case "sysClr":{let n=c(e,"a","lastClr")??c(e,null,"lastClr");if(n)return n;switch(c(e,"a","val")??c(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{c(e,"a","val")??c(e,null,"val");return null}default:return null}}function xr(e){let t={...jt};if(!e)return t;for(let n of br){let r=p(e,"a",n);if(r){let o=L(r);if(o.length>0){let a=wr(o[0]);a&&(t[n]=a);}}}return t}function Vt(e){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e)return t;let n=p(e,"a","latin");n&&(t.latin=c(n,"a","typeface")??c(n,null,"typeface")??"");let r=p(e,"a","ea");r&&(t.ea=c(r,"a","typeface")??c(r,null,"typeface")??"");let o=p(e,"a","cs");o&&(t.cs=c(o,"a","typeface")??c(o,null,"typeface")??"");let a=z(e,"a","font");for(let l of a){let u=c(l,"a","script")??c(l,null,"script"),m=c(l,"a","typeface")??c(l,null,"typeface");u&&m&&(t.fonts=t.fonts||{},t.fonts[u]=m);}return t}function Fr(e){let t={...Be};if(!e)return t;let n=p(e,"a","majorFont");n&&(t.majorFont=Vt(n));let r=p(e,"a","minorFont");return r&&(t.minorFont=Vt(r)),t}function ei(e){if(!e)return {...et};try{let t=Pe(e);if(!t)return {...et};let n=c(t,"a","name")??c(t,null,"name")??"Office Theme",r=p(t,"a","themeElements"),o=p(r,"a","clrScheme"),a=xr(o),l=p(r,"a","fontScheme"),u=Fr(l);return {name:n,colorScheme:a,fontScheme:u}}catch(t){return console.warn("Failed to parse theme:",t),{...et}}}function Er(e,t="latin"){if(!e?.fontScheme?.majorFont)return Be.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function Kt(e,t="latin"){if(!e?.fontScheme?.minorFont)return Be.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function Ce(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),r=t.toLowerCase().includes("minor"),o="latin",a=t.toLowerCase();return a.includes("eastasia")?o="ea":(a.includes("bidi")||a.includes("cs"))&&(o="cs"),n?Er(e,o):r?Kt(e,o):Kt(e,"latin")}var Cr={accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",dk1:"dk1",lt1:"lt1",dk2:"dk2",lt2:"lt2",tx1:"text1",tx2:"text2",bg1:"background1",bg2:"background2",hlink:"hlink",folHlink:"folHlink"},Wt={black:"000000",white:"FFFFFF",red:"FF0000",green:"00FF00",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF"};function Ut(e,t){let n=L(t),r=n.find(a=>a.name==="a:shade");if(r){let a=c(r,null,"val");a&&(e.themeShade=Math.round(parseInt(a,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}let o=n.find(a=>a.name==="a:tint");if(o){let a=c(o,null,"val");a&&(e.themeTint=Math.round(parseInt(a,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}return e}function zt(e){if(!e)return;let t=L(e),n=t.find(l=>l.name==="a:srgbClr");if(n){let l=c(n,null,"val");if(l)return Ut({rgb:l},n)}let r=t.find(l=>l.name==="a:schemeClr");if(r){let l=c(r,null,"val");if(l){let u={themeColor:Cr[l]??"dk1"};return Ut(u,r)}}let o=t.find(l=>l.name==="a:sysClr");if(o)return {rgb:c(o,null,"lastClr")??"000000"};let a=t.find(l=>l.name==="a:prstClr");if(a){let l=c(a,null,"val");if(l&&Wt[l])return {rgb:Wt[l]}}}function Gt(e){if(!e)return;let t=L(e);if(t.find(r=>r.name==="a:noFill"))return {type:"none"};let n=t.find(r=>r.name==="a:solidFill");if(n)return {type:"solid",color:zt(n)};if(t.find(r=>r.name==="a:gradFill"))return {type:"gradient"}}function qt(e){let t=e?D(e,"a:ln"):null;if(!t)return;let n=L(t);if(n.find(u=>u.name==="a:noFill"))return;let r={},o=c(t,null,"w");o&&(r.width=parseInt(o,10));let a=n.find(u=>u.name==="a:solidFill");a&&(r.color=zt(a));let l=n.find(u=>u.name==="a:prstDash");if(l){let u=c(l,null,"val");u&&(r.style=u);}return r}function tt(e){if(!e)return;let t=c(e,null,"relativeFrom")??"column",n=D(e,"wp:align");if(n){let o=ue(n);return {relativeTo:t,alignment:o}}let r=D(e,"wp:posOffset");if(r){let o=ue(r),a=parseInt(o,10);return {relativeTo:t,posOffset:isNaN(a)?0:a}}return {relativeTo:t}}function nt(e){if(!e)return;let t=c(e,null,"relativeFrom")??"paragraph",n=D(e,"wp:align");if(n){let o=ue(n);return {relativeTo:t,alignment:o}}let r=D(e,"wp:posOffset");if(r){let o=ue(r),a=parseInt(o,10);return {relativeTo:t,posOffset:isNaN(a)?0:a}}return {relativeTo:t}}function Yt(e){let t=D(e,"wp:positionH"),n=D(e,"wp:positionV");if(!(!t&&!n))return {horizontal:tt(t)??{relativeTo:"column"},vertical:nt(n)??{relativeTo:"paragraph"}}}var rt=["wp:wrapNone","wp:wrapSquare","wp:wrapTight","wp:wrapThrough","wp:wrapTopAndBottom"];function ot(e,t,n){if(!e){let F={type:t?"behind":"inFront"};return n?.distT!==void 0&&(F.distT=n.distT),n?.distB!==void 0&&(F.distB=n.distB),n?.distL!==void 0&&(F.distL=n.distL),n?.distR!==void 0&&(F.distR=n.distR),F}let o=(e.name||"").replace("wp:",""),a;switch(o){case "wrapNone":a=t?"behind":"inFront";break;case "wrapSquare":a="square";break;case "wrapTight":a="tight";break;case "wrapThrough":a="through";break;case "wrapTopAndBottom":a="topAndBottom";break;default:a="square";}let l={type:a},u=c(e,null,"wrapText");u&&(l.wrapText=u);let m=b(e,null,"distT")??n?.distT,h=b(e,null,"distB")??n?.distB,T=b(e,null,"distL")??n?.distL,x=b(e,null,"distR")??n?.distR;return m!==void 0&&(l.distT=m),h!==void 0&&(l.distB=h),T!==void 0&&(l.distL=T),x!==void 0&&(l.distR=x),l}function Qt(e){let t=L(e),n=c(e,null,"behindDoc")==="1",r=t.find(a=>rt.includes(a.name??"")),o={distT:b(e,null,"distT")??void 0,distB:b(e,null,"distB")??void 0,distL:b(e,null,"distL")??void 0,distR:b(e,null,"distR")??void 0};return ot(r??null,n,o)}function Sr(e){if(!e)return {};let t={},n=b(e,null,"lIns"),r=b(e,null,"rIns"),o=b(e,null,"tIns"),a=b(e,null,"bIns");return (n!==void 0||r!==void 0||o!==void 0||a!==void 0)&&(t.margins={left:n,right:r,top:o,bottom:a}),t}function $t(e,t,n,r,o,a,l,u){if(!e)return [];let m=[],h=L(e);for(let T of h){let x=T.name||"",F=x.indexOf(":"),k=F>=0?x.substring(F+1):x;if(k==="p"){let C=t(T,r,o,a,l);m.push(C);}}return m}function De(e){let n=L(e).find(u=>u.name==="wp:inline"||u.name==="wp:anchor");if(!n)return false;let r=D(n,"a:graphic");if(!r)return false;let o=D(r,"a:graphicData");if(!o)return false;let a=D(o,"wps:wsp");return a?D(a,"wps:txbx")!==null:false}function Zt(e){let n=L(e).find(E=>E.name==="wp:inline"||E.name==="wp:anchor");if(!n)return null;let r=n.name==="wp:anchor",o=D(n,"a:graphic");if(!o)return null;let a=D(o,"a:graphicData");if(!a)return null;let l=D(a,"wps:wsp");if(!l||!D(l,"wps:txbx"))return null;let m=L(l),h=m.find(E=>E.name==="wps:spPr"),T=m.find(E=>E.name==="wps:bodyPr"),x=D(n,"wp:extent"),F=b(x,null,"cx")??0,k=b(x,null,"cy")??0,C={width:F,height:k},R=D(n,"wp:docPr"),A=R?c(R,null,"id")??void 0:void 0,W=Gt(h??null),I=qt(h??null),N=Sr(T??null),w={type:"textBox",size:C,content:[]};if(A&&(w.id=A),W&&(w.fill=W),I&&(w.outline=I),N.margins&&(w.margins=N.margins),r){let E=Yt(n);E&&(w.position=E);let v=Qt(n);v&&(w.wrap=v);}return w}function Jt(e){let t=D(e,"wps:txbx");return t?D(t,"w:txbxContent"):null}function kr(e){if(!e)return;let t=parseInt(e,10);if(!isNaN(t))return t/6e4}function Rr(e,t){let n=L(e);for(let r of n)if(t.includes(r.name||""))return r;return null}function en(e){if(!e)return {width:0,height:0};let t=b(e,null,"cx")??0,n=b(e,null,"cy")??0;return {width:t,height:n}}function tn(e){if(!e)return;let t=b(e,null,"l")??0,n=b(e,null,"t")??0,r=b(e,null,"r")??0,o=b(e,null,"b")??0;if(!(t===0&&n===0&&r===0&&o===0))return {left:t,top:n,right:r,bottom:o}}function nn(e){if(!e)return {};let t=c(e,null,"id")??void 0,n=c(e,null,"name")??void 0,r=c(e,null,"descr")??void 0,o=c(e,null,"title")??void 0,a=c(e,null,"decorative")==="1",l=p(e,"a","hlinkClick"),u=l?c(l,"r","id")??void 0:void 0;return {id:t,name:n,alt:r,title:o,decorative:a||void 0,hlinkRId:u}}function rn(e){if(!e)return;let t=c(e,null,"rot"),n=c(e,null,"flipH")==="1",r=c(e,null,"flipV")==="1",o=kr(t);if(o===void 0&&!n&&!r)return;let a={};return o!==void 0&&(a.rotation=o),n&&(a.flipH=true),r&&(a.flipV=true),a}function on(e){let t=D(e,"a:graphic");if(!t)return {blipFill:null,blip:null};let n=D(t,"a:graphicData");if(!n)return {blipFill:null,blip:null};let r=D(n,"pic:pic");if(!r)return {blipFill:null,blip:null};let o=D(r,"pic:blipFill");return o?{blipFill:o,blip:D(o,"a:blip")}:{blipFill:null,blip:null}}function an(e){if(!e)return;let t=D(e,"a:srcRect");if(!t)return;let n=m=>{let h=b(t,null,m);if(!(h===void 0||h===0))return h/1e5},r=n("l"),o=n("t"),a=n("r"),l=n("b");if(r===void 0&&o===void 0&&a===void 0&&l===void 0)return;let u={};return r!==void 0&&(u.left=r),o!==void 0&&(u.top=o),a!==void 0&&(u.right=a),l!==void 0&&(u.bottom=l),u}function sn(e){if(!e)return;let t=D(e,"a:alphaModFix");if(!t)return;let n=b(t,null,"amt");if(!(n===void 0||n>=1e5))return Math.max(0,Math.min(1,n/1e5))}function ln(e){if(!e)return "";let t=c(e,"r","embed");if(t)return t;let n=c(e,null,"embed");if(n)return n;let r=c(e,"r","link");return r||""}function un(e){let t=D(e,"a:graphic");if(!t)return null;let n=D(t,"a:graphicData");if(!n)return null;let r=D(n,"pic:pic");if(!r)return null;let o=D(r,"pic:spPr");return o?D(o,"a:xfrm"):null}function Ar(e){if(!e)return e;let t=e.replace(/^\/+/,"");return t.startsWith("media/")?t=`word/${t}`:t.startsWith("word/")||(t=`word/${t}`),t}function Nr(e){let t=e.split(".").pop()?.toLowerCase()??"";return {png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tiff:"image/tiff",tif:"image/tiff",webp:"image/webp",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"}[t]??"application/octet-stream"}function cn(e,t,n){if(!e||!t)return {};let r=t.get(e);if(!r)return {};let o=r.target;if(!o)return {};let a=Ar(o),l=o.split("/").pop(),u=(m,h)=>{let T=h.toLowerCase();for(let[x,F]of m.entries())if(x.toLowerCase()===T)return F};if(n){let m=u(n,a);if(m)return {src:m.dataUrl||m.base64,mimeType:m.mimeType,filename:l};let h=o.replace(/^\/+/,""),T=u(n,h);if(T)return {src:T.dataUrl||T.base64,mimeType:T.mimeType,filename:l};let x=`word/${h}`,F=u(n,x);if(F)return {src:F.dataUrl||F.base64,mimeType:F.mimeType,filename:l}}return {mimeType:Nr(o),filename:l}}function vr(e,t,n){let r=D(e,"wp:extent"),o=en(r),a=D(e,"wp:effectExtent"),l=tn(a),u=D(e,"wp:docPr"),m=nn(u),{blip:h,blipFill:T}=on(e),x=ln(h),F=an(T),k=sn(h),C=cn(x,t,n),R=un(e),A=rn(R),W=b(e,null,"distT")??void 0,I=b(e,null,"distB")??void 0,N=b(e,null,"distL")??void 0,w=b(e,null,"distR")??void 0,E={type:"inline"};W!==void 0&&(E.distT=W),I!==void 0&&(E.distB=I),N!==void 0&&(E.distL=N),w!==void 0&&(E.distR=w);let v={type:"image",rId:x,size:o,wrap:E};if(m.id&&(v.id=m.id),m.alt&&(v.alt=m.alt),m.title&&(v.title=m.title),m.decorative&&(v.decorative=true),C.src&&(v.src=C.src),C.mimeType&&(v.mimeType=C.mimeType),C.filename&&(v.filename=C.filename),l&&(v.padding=l),A&&(v.transform=A),F&&(v.crop=F),k!==void 0&&(v.opacity=k),m.hlinkRId&&t){let S=Je(t,m.hlinkRId);S&&(v.hlinkHref=S);}return v}function Mr(e,t,n){let r=D(e,"wp:extent"),o=en(r),a=D(e,"wp:effectExtent"),l=tn(a),u=D(e,"wp:docPr"),m=nn(u),h=c(e,null,"behindDoc")==="1",T=c(e,null,"layoutInCell"),x=T===null?void 0:T==="1",F=c(e,null,"allowOverlap"),k=F===null?void 0:F==="1",C={distT:b(e,null,"distT")??void 0,distB:b(e,null,"distB")??void 0,distL:b(e,null,"distL")??void 0,distR:b(e,null,"distR")??void 0},R=Rr(e,rt),A=ot(R,h,C),W=D(e,"wp:positionH"),I=D(e,"wp:positionV"),N=tt(W),w=nt(I),E;(N||w)&&(E={horizontal:N??{relativeTo:"column"},vertical:w??{relativeTo:"paragraph"}});let{blip:v,blipFill:S}=on(e),M=ln(v),f=an(S),V=sn(v),j=cn(M,t,n),Y=un(e),ee=rn(Y),G={type:"image",rId:M,size:o,wrap:A};if(m.id&&(G.id=m.id),m.alt&&(G.alt=m.alt),m.title&&(G.title=m.title),m.decorative&&(G.decorative=true),j.src&&(G.src=j.src),j.mimeType&&(G.mimeType=j.mimeType),j.filename&&(G.filename=j.filename),E&&(G.position=E),l&&(G.padding=l),ee&&(G.transform=ee),f&&(G.crop=f),V!==void 0&&(G.opacity=V),x!==void 0&&(G.layoutInCell=x),k!==void 0&&(G.allowOverlap=k),m.hlinkRId&&t){let ge=Je(t,m.hlinkRId);ge&&(G.hlinkHref=ge);}return G}function Ir(e,t,n){if(De(e))return null;let r=L(e);for(let o of r){let a=o.name||"";if(a==="wp:inline"||a==="wp:anchor")return a==="wp:inline"?vr(o,t,n):Mr(o,t,n)}return null}function fn(e,t,n){return Ir(e,t,n)}function dn(e,t,n,r){let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),o}function Pr(e){if(!e)return;let t={},n=c(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=c(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let o=c(e,"w","themeFill");o&&(t.fill=t.fill||{},t.fill.themeColor=o);let a=c(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let l=c(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);let u=c(e,"w","val");return u&&(t.pattern=u),Object.keys(t).length>0?t:void 0}function _e(e,t,n){if(!e)return;let r={},o=p(e,"w","b");o&&(r.bold=X(o));let a=p(e,"w","bCs");a&&(r.boldCs=X(a));let l=p(e,"w","i");l&&(r.italic=X(l));let u=p(e,"w","iCs");u&&(r.italicCs=X(u));let m=p(e,"w","u");if(m){let B=c(m,"w","val");if(B){r.underline={style:B};let te=c(m,"w","color"),ie=c(m,"w","themeColor");(te||ie)&&(r.underline.color=dn(te,ie,c(m,"w","themeTint"),c(m,"w","themeShade")));}}let h=p(e,"w","strike");h&&(r.strike=X(h));let T=p(e,"w","dstrike");T&&(r.doubleStrike=X(T));let x=p(e,"w","vertAlign");if(x){let B=c(x,"w","val");(B==="superscript"||B==="subscript"||B==="baseline")&&(r.vertAlign=B);}let F=p(e,"w","smallCaps");F&&(r.smallCaps=X(F));let k=p(e,"w","caps");k&&(r.allCaps=X(k));let C=p(e,"w","vanish");C&&(r.hidden=X(C));let R=p(e,"w","color");R&&(r.color=dn(c(R,"w","val"),c(R,"w","themeColor"),c(R,"w","themeTint"),c(R,"w","themeShade")));let A=p(e,"w","highlight");if(A){let B=c(A,"w","val");B&&(r.highlight=B);}let W=p(e,"w","shd");W&&(r.shading=Pr(W));let I=p(e,"w","sz");if(I){let B=b(I,"w","val");B!==void 0&&(r.fontSize=B);}let N=p(e,"w","szCs");if(N){let B=b(N,"w","val");B!==void 0&&(r.fontSizeCs=B);}let w=p(e,"w","rFonts");if(w){r.fontFamily={ascii:c(w,"w","ascii")??void 0,hAnsi:c(w,"w","hAnsi")??void 0,eastAsia:c(w,"w","eastAsia")??void 0,cs:c(w,"w","cs")??void 0};let B=c(w,"w","asciiTheme");B&&(r.fontFamily.asciiTheme=B,t&&!r.fontFamily.ascii&&(r.fontFamily.ascii=Ce(t,B)));let te=c(w,"w","hAnsiTheme");te&&(r.fontFamily.hAnsiTheme=te,t&&!r.fontFamily.hAnsi&&(r.fontFamily.hAnsi=Ce(t,te)));let ie=c(w,"w","eastAsiaTheme");ie&&(r.fontFamily.eastAsiaTheme=ie,t&&!r.fontFamily.eastAsia&&(r.fontFamily.eastAsia=Ce(t,ie)));let H=c(w,"w","cstheme");H&&(r.fontFamily.csTheme=H,t&&!r.fontFamily.cs&&(r.fontFamily.cs=Ce(t,H)));}let E=p(e,"w","spacing");if(E){let B=b(E,"w","val");B!==void 0&&(r.spacing=B);}let v=p(e,"w","position");if(v){let B=b(v,"w","val");B!==void 0&&(r.position=B);}let S=p(e,"w","w");if(S){let B=b(S,"w","val");B!==void 0&&(r.scale=B);}let M=p(e,"w","kern");if(M){let B=b(M,"w","val");B!==void 0&&(r.kerning=B);}let f=p(e,"w","effect");if(f){let B=c(f,"w","val");B&&(r.effect=B);}let V=p(e,"w","em");if(V){let B=c(V,"w","val");B&&(r.emphasisMark=B);}let j=p(e,"w","emboss");j&&(r.emboss=X(j));let Y=p(e,"w","imprint");Y&&(r.imprint=X(Y));let ee=p(e,"w","outline");ee&&(r.outline=X(ee));let G=p(e,"w","shadow");G&&(r.shadow=X(G));let ge=p(e,"w","rtl");ge&&(r.rtl=X(ge));let U=p(e,"w","cs");U&&(r.cs=X(U));let fe=p(e,"w","rStyle");if(fe){let B=c(fe,"w","val");B&&(r.styleId=B);}return Object.keys(r).length>0?r:void 0}function Br(e){let t=c(e,"w","id"),n=t?parseInt(t,10):0,r=(c(e,"w","author")??"").trim(),o=(c(e,"w","date")??"").trim(),a=(c(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:r.length>0?r:"Unknown",date:o.length>0?o:void 0,rsid:a.length>0?a:void 0}}function Dr(e,t,n,r){if(!e)return;let o=z(e,"w","rPrChange").map(a=>{let l=p(a,"w","rPr");return {type:"runPropertyChange",info:Br(a),previousFormatting:_e(l,t),currentFormatting:r}}).filter(a=>a.previousFormatting||a.currentFormatting);return o.length>0?o:void 0}function Or(e){let t=ue(e),n=c(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function _r(){return {type:"tab"}}function Xr(e){let t=c(e,"w","type"),n=c(e,"w","clear"),r={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(r.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(r.clear=n),r}function Lr(e){let t=c(e,"w","font")??"",n=c(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function Hr(e){return {type:"footnoteRef",id:b(e,"w","id")??0}}function Vr(e){return {type:"endnoteRef",id:b(e,"w","id")??0}}function Kr(e){let t=c(e,"w","fldCharType"),n=c(e,"w","fldLock")==="true"||c(e,"w","fldLock")==="1",r=c(e,"w","dirty")==="true"||c(e,"w","dirty")==="1",o="begin";return t==="separate"?o="separate":t==="end"&&(o="end"),{type:"fieldChar",charType:o,fldLock:n||void 0,dirty:r||void 0}}function jr(e){return {type:"instrText",text:ue(e)}}function pn(e,t,n){let r=fn(e,t??void 0,n??void 0);return r?{type:"drawing",image:r}:null}function Oe(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function Wr(e,t,n){let r=[],o=L(e);for(let a of o)switch(Oe(a.name)){case "t":r.push(Or(a));break;case "tab":r.push(_r());break;case "br":r.push(Xr(a));break;case "sym":r.push(Lr(a));break;case "footnoteReference":r.push(Hr(a));break;case "endnoteReference":r.push(Vr(a));break;case "fldChar":r.push(Kr(a));break;case "instrText":r.push(jr(a));break;case "softHyphen":r.push({type:"softHyphen"});break;case "noBreakHyphen":r.push({type:"noBreakHyphen"});break;case "drawing":let u=pn(a,t,n);u&&r.push(u);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":r.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let h=L(a).find(T=>Oe(T.name)==="Choice")??L(a).find(T=>Oe(T.name)==="Fallback");if(h){for(let T of L(h))if(Oe(T.name)==="drawing"){let F=pn(T,t,n);F?.image?.src&&r.push(F);}}break}}return r}function Se(e,t,n,r=null,o=null){let a={type:"run",content:[]},l=p(e,"w","rPr");return l&&(a.formatting=_e(l,n),a.propertyChanges=Dr(l,n,t,a.formatting)),a.content=Wr(e,r,o),a}function Ur(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function zr(e){let t=b(e,"w","id")??0,n=c(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},o=b(e,"w","colFirst");o!==void 0&&(r.colFirst=o);let a=b(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function Gr(e){return {type:"bookmarkEnd",id:b(e,"w","id")??0}}function mn(e,t,n=null,r=null,o=null){let a={type:"hyperlink",children:[]},l=c(e,"r","id");if(l&&(a.rId=l,t)){let k=t.get(l);k&&(Ht(k),a.href=k.target);}let u=c(e,"w","anchor");u&&(a.anchor=u,a.href||(a.href=`#${u}`));let m=c(e,"w","tooltip");m&&(a.tooltip=m);let h=c(e,"w","tgtFrame");h&&(a.target=h);let T=c(e,"w","history");(T==="1"||T==="true")&&(a.history=true);let x=c(e,"w","docLocation");x&&(a.docLocation=x);let F=L(e);for(let k of F)switch(Ur(k.name)){case "r":a.children.push(Se(k,n,r,t,o));break;case "bookmarkStart":a.children.push(zr(k));break;case "bookmarkEnd":a.children.push(Gr(k));break}return a}function gn(e){let t=b(e,"w","id")??0,n=c(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},o=b(e,"w","colFirst");o!==void 0&&(r.colFirst=o);let a=b(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function hn(e){return {type:"bookmarkEnd",id:b(e,"w","id")??0}}function yn(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function Tn(e){let t=c(e,"w","type"),n=c(e,"r","id")??"";return {type:yn(t),rId:n}}function bn(e){let t=c(e,"w","type"),n=c(e,"r","id")??"";return {type:yn(t),rId:n}}function it(e,t,n,r,o,a){let l=[],u=e.elements??[],m={inHeaderFooter:true};for(let h of u){if(h.type!=="element")continue;let T=h.name??"";if(T==="w:p"||T.endsWith(":p"))l.push(ce(h,t,n,r,o,a,m));else if(T==="w:tbl"||T.endsWith(":tbl")){let x=ye(h,t,n,r,o,a,m);l.push(x);}else if(T==="w:sdt"||T.endsWith(":sdt")){let x=(h.elements??[]).find(F=>F.type==="element"&&(F.name==="w:sdtContent"||F.name?.endsWith(":sdtContent")));if(x){let F=it(x,t,n,r,o,a);l.push(...F);}}}return l}function vi(e,t="default",n=null,r=null,o=null,a=null,l=null){let u={type:"header",hdrFtrType:t,content:[]};if(!e)return u;let m=le(e);if(!m)return u;let h=m.elements?.find(T=>T.type==="element"&&(T.name==="w:hdr"||T.name?.endsWith(":hdr")));return h&&(u.content=it(h,n,r,o,a,l)),u}function Mi(e,t="default",n=null,r=null,o=null,a=null,l=null){let u={type:"footer",hdrFtrType:t,content:[]};if(!e)return u;let m=le(e);if(!m)return u;let h=m.elements?.find(T=>T.type==="element"&&(T.name==="w:ftr"||T.name?.endsWith(":ftr")));return h&&(u.content=it(h,n,r,o,a,l)),u}function wn(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function xn(e,t,n,r,o,a){let l=[];for(let u of L(e)){let m=u.name??"";m==="w:p"?l.push(ce(u,t,n,r,o)):m==="w:tbl"&&l.push(ye(u,t,n,r,o,a));}return l}function qr(e,t,n,r,o,a){let l=b(e,"w","id")??0,u=c(e,"w","type"),m=wn(u),h=xn(e,t,n,r,o,a);return {type:"footnote",id:l,noteType:m,content:h}}function Oi(e,t=null,n=null,r=null,o=null,a=null){let l=new Map,u=[];if(!e)return Xe(l,u);let m=le(e);if(!m)return Xe(l,u);let h=m.elements?.find(x=>x.type==="element"&&(x.name==="w:footnotes"||x.name?.endsWith(":footnotes")));if(!h)return Xe(l,u);let T=z(h,"w","footnote");for(let x of T){let F=qr(x,t,n,r,o,a);l.set(F.id,F),u.push(F);}return Xe(l,u)}function Xe(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Yr(e,t,n,r,o,a){let l=b(e,"w","id")??0,u=c(e,"w","type"),m=wn(u),h=xn(e,t,n,r,o,a);return {type:"endnote",id:l,noteType:m,content:h}}function _i(e,t=null,n=null,r=null,o=null,a=null){let l=new Map,u=[];if(!e)return Le(l,u);let m=le(e);if(!m)return Le(l,u);let h=m.elements?.find(x=>x.type==="element"&&(x.name==="w:endnotes"||x.name?.endsWith(":endnotes")));if(!h)return Le(l,u);let T=z(h,"w","endnote");for(let x of T){let F=Yr(x,t,n,r,o,a);l.set(F.id,F),u.push(F);}return Le(l,u)}function Le(e,t){return {byId:e,endnotes:t,getEndnote(n){return e.get(n)},hasEndnote(n){return e.has(n)},getNormalEndnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Fn(e){return e?{decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",bullet:"bullet",chicago:"chicago",none:"none"}[e]:void 0}function Qr(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function $r(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function En(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function Cn(e){let t={};if(!e)return t;let n=p(e,"w","pos");if(n){let l=c(n,"w","val");t.position=Qr(l);}let r=p(e,"w","numFmt");if(r){let l=c(r,"w","val");t.numFmt=Fn(l);}let o=p(e,"w","numStart");o&&(t.numStart=b(o,"w","val")??void 0);let a=p(e,"w","numRestart");if(a){let l=c(a,"w","val");t.numRestart=En(l);}return t}function Sn(e){let t={};if(!e)return t;let n=p(e,"w","pos");if(n){let l=c(n,"w","val");t.position=$r(l);}let r=p(e,"w","numFmt");if(r){let l=c(r,"w","val");t.numFmt=Fn(l);}let o=p(e,"w","numStart");o&&(t.numStart=b(o,"w","val")??void 0);let a=p(e,"w","numRestart");if(a){let l=c(a,"w","val");t.numRestart=En(l);}return t}function Xi(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let r=[];for(let o of n.content)if(o.type==="run")for(let a of o.content)a.type==="text"&&r.push(a.text);t.push(r.join(""));}return t.join(`
|
|
13
|
+
`)}function Zr(e,t,n,r){if(!e&&!t)return;let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),Object.keys(o).length>0?o:void 0}function He(e){if(!e)return;let r={style:c(e,"w","val")??"none"},o=b(e,"w","sz");o!==void 0&&(r.size=o);let a=b(e,"w","space");a!==void 0&&(r.space=a);let l=c(e,"w","color"),u=c(e,"w","themeColor"),m=c(e,"w","themeTint"),h=c(e,"w","themeShade"),T=Zr(l,u,m,h);T&&(r.color=T);let x=c(e,"w","shadow");(x==="1"||x==="true")&&(r.shadow=true);let F=c(e,"w","frame");return (F==="1"||F==="true")&&(r.frame=true),r}function Jr(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function eo(e){switch(e){case "continuous":return "continuous";case "nextPage":return "nextPage";case "oddPage":return "oddPage";case "evenPage":return "evenPage";case "nextColumn":return "nextColumn";default:return}}function to(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function no(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function Ve(e,t){let n={};if(!e)return n;let r=p(e,"w","pgSz");if(r){let w=b(r,"w","w");w!==void 0&&(n.pageWidth=w);let E=b(r,"w","h");E!==void 0&&(n.pageHeight=E);let v=c(r,"w","orient"),S=Jr(v);S&&(n.orientation=S);}let o=p(e,"w","pgMar");if(o){let w=b(o,"w","top");w!==void 0&&(n.marginTop=w);let E=b(o,"w","bottom");E!==void 0&&(n.marginBottom=E);let v=b(o,"w","left");v!==void 0&&(n.marginLeft=v);let S=b(o,"w","right");S!==void 0&&(n.marginRight=S);let M=b(o,"w","header");M!==void 0&&(n.headerDistance=M);let f=b(o,"w","footer");f!==void 0&&(n.footerDistance=f);let V=b(o,"w","gutter");V!==void 0&&(n.gutter=V);}let a=p(e,"w","cols");if(a){let w=b(a,"w","num");w!==void 0&&(n.columnCount=w);let E=b(a,"w","space");E!==void 0&&(n.columnSpace=E);let v=c(a,"w","equalWidth");v==="1"||v==="true"?n.equalWidth=true:(v==="0"||v==="false")&&(n.equalWidth=false);let S=c(a,"w","sep");(S==="1"||S==="true")&&(n.separator=true);let M=z(a,"w","col");if(M.length>0){n.columns=[];for(let f of M){let V={},j=b(f,"w","w");j!==void 0&&(V.width=j);let Y=b(f,"w","space");Y!==void 0&&(V.space=Y),n.columns.push(V);}n.columnCount===void 0&&(n.columnCount=M.length);}}let l=p(e,"w","type");if(l){let w=c(l,"w","val"),E=eo(w);E&&(n.sectionStart=E);}let u=p(e,"w","vAlign");if(u){let w=c(u,"w","val"),E=to(w);E&&(n.verticalAlign=E);}let m=p(e,"w","bidi");m&&(n.bidi=X(m));let h=z(e,"w","headerReference");h.length>0&&(n.headerReferences=h.map(w=>Tn(w)));let T=z(e,"w","footerReference");T.length>0&&(n.footerReferences=T.map(w=>bn(w)));let x=p(e,"w","titlePg");x&&(n.titlePg=X(x));let F=p(e,"w","evenAndOddHeaders");F&&(n.evenAndOddHeaders=X(F));let k=p(e,"w","lnNumType");if(k){n.lineNumbers={};let w=b(k,"w","start");w!==void 0&&(n.lineNumbers.start=w);let E=b(k,"w","countBy");E!==void 0&&(n.lineNumbers.countBy=E);let v=b(k,"w","distance");v!==void 0&&(n.lineNumbers.distance=v);let S=c(k,"w","restart"),M=no(S);M&&(n.lineNumbers.restart=M);}let C=p(e,"w","pgBorders");if(C){n.pageBorders={};let w=He(p(C,"w","top"));w&&(n.pageBorders.top=w);let E=He(p(C,"w","bottom"));E&&(n.pageBorders.bottom=E);let v=He(p(C,"w","left"));v&&(n.pageBorders.left=v);let S=He(p(C,"w","right"));S&&(n.pageBorders.right=S);let M=c(C,"w","display");(M==="allPages"||M==="firstPage"||M==="notFirstPage")&&(n.pageBorders.display=M);let f=c(C,"w","offsetFrom");(f==="page"||f==="text")&&(n.pageBorders.offsetFrom=f);let V=c(C,"w","zOrder");(V==="front"||V==="back")&&(n.pageBorders.zOrder=V);}let R=p(e,"w","background");if(R){n.background={};let w=c(R,"w","color");w&&w!=="auto"&&(n.background.color={rgb:w});let E=c(R,"w","themeColor");E&&(n.background.themeColor=E);let v=c(R,"w","themeTint");v&&(n.background.themeTint=v);let S=c(R,"w","themeShade");S&&(n.background.themeShade=S);}let A=p(e,"w","footnotePr");if(A){let w=Cn(A);Object.keys(w).length>0&&(n.footnotePr=w);}let W=p(e,"w","endnotePr");if(W){let w=Sn(W);Object.keys(w).length>0&&(n.endnotePr=w);}let I=p(e,"w","docGrid");if(I){n.docGrid={};let w=c(I,"w","type");(w==="default"||w==="lines"||w==="linesAndChars"||w==="snapToChars")&&(n.docGrid.type=w);let E=b(I,"w","linePitch");E!==void 0&&(n.docGrid.linePitch=E);let v=b(I,"w","charSpace");v!==void 0&&(n.docGrid.charSpace=v);}let N=p(e,"w","paperSrc");if(N){let w=b(N,"w","first");w!==void 0&&(n.paperSrcFirst=w);let E=b(N,"w","other");E!==void 0&&(n.paperSrcOther=E);}return n}function kn(){return {pageWidth:12240,pageHeight:15840,orientation:"portrait",marginTop:1440,marginBottom:1440,marginLeft:1440,marginRight:1440,headerDistance:720,footerDistance:720,gutter:0,columnCount:1,columnSpace:720,equalWidth:true,sectionStart:"nextPage",verticalAlign:"top"}}function ro(e,t){return !e&&!t?true:!(!e||!t||e.bold!==t.bold||e.boldCs!==t.boldCs||e.italic!==t.italic||e.italicCs!==t.italicCs||e.strike!==t.strike||e.doubleStrike!==t.doubleStrike||e.smallCaps!==t.smallCaps||e.allCaps!==t.allCaps||e.hidden!==t.hidden||e.emboss!==t.emboss||e.imprint!==t.imprint||e.outline!==t.outline||e.shadow!==t.shadow||e.rtl!==t.rtl||e.cs!==t.cs||e.fontSize!==t.fontSize||e.fontSizeCs!==t.fontSizeCs||e.spacing!==t.spacing||e.position!==t.position||e.scale!==t.scale||e.kerning!==t.kerning||e.vertAlign!==t.vertAlign||e.highlight!==t.highlight||e.effect!==t.effect||e.emphasisMark!==t.emphasisMark||e.styleId!==t.styleId||!oo(e.underline,t.underline)||!Ke(e.color,t.color)||!io(e.shading,t.shading)||!ao(e.fontFamily,t.fontFamily))}function oo(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:Ke(e.color,t.color)}function Ke(e,t){return !e&&!t?true:!e||!t?false:e.rgb===t.rgb&&e.auto===t.auto&&e.themeColor===t.themeColor&&e.themeTint===t.themeTint&&e.themeShade===t.themeShade}function io(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!Ke(e.color,t.color)||!Ke(e.fill,t.fill))}function ao(e,t){return !e&&!t?true:!e||!t?false:e.ascii===t.ascii&&e.hAnsi===t.hAnsi&&e.eastAsia===t.eastAsia&&e.cs===t.cs&&e.asciiTheme===t.asciiTheme&&e.hAnsiTheme===t.hAnsiTheme&&e.eastAsiaTheme===t.eastAsiaTheme&&e.csTheme===t.csTheme}function so(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function Rn(e){return e.content.length===0?true:e.content.every(so)}function lo(e,t){let n=[];for(let r of e)n.push(r);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let r=n[n.length-1],o=t[0];n[n.length-1]={type:"text",text:r.text+o.text,preserveSpace:r.preserveSpace||o.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let r of t)n.push(r);return n}function uo(e){if(e.length<=1)return e;let t=[],n=null;for(let r of e)if(r.content.length!==0){if(n===null){n={...r,content:[...r.content]};continue}Rn(n)&&Rn(r)&&ro(n.formatting,r.formatting)?n={type:"run",formatting:n.formatting,content:lo(n.content,r.content)}:(t.push(n),n={...r,content:[...r.content]});}return n!==null&&t.push(n),t}function at(e){if(e.length<=1)return e;let t=[],n=[];function r(){if(n.length>0){let o=uo(n);t.push(...o),n.length=0;}}for(let o of e)if(o.type==="run")n.push(o);else if(r(),o.type==="hyperlink"){let a={...o,children:at(o.children)};t.push(a);}else t.push(o);return r(),t}function co(e){let t={sdtType:"richText"};if(!e||!e.elements)return t;for(let n of e.elements){if(n.type!=="element")continue;switch(n.name?.replace(/^w:/,"")??""){case "alias":t.alias=c(n,"w","val")??void 0;break;case "tag":t.tag=c(n,"w","val")??void 0;break;case "lock":t.lock=c(n,"w","val")??"unlocked";break;case "placeholder":{let o=p(n,"w","docPart");if(o){let a=p(o,"w","val");t.placeholder=a?c(a,"w","val")??void 0:void 0;}break}case "showingPlcHdr":t.showingPlaceholder=true;break;case "text":t.sdtType="plainText";break;case "date":t.sdtType="date",t.dateFormat=c(n,"w","fullDate")??void 0;break;case "dropDownList":t.sdtType="dropdown",t.listItems=An(n);break;case "comboBox":t.sdtType="comboBox",t.listItems=An(n);break;case "checkbox":{t.sdtType="checkbox";let o=p(n,"w14","checked")??p(n,"w","checked");t.checked=o?c(o,"w14","val")==="1"||c(o,"w","val")==="1":false;break}case "picture":t.sdtType="picture";break;case "docPartObj":t.sdtType="buildingBlockGallery";break;case "group":t.sdtType="group";break}}return t}function An(e){let t=[];for(let n of e.elements??[])n.type==="element"&&(n.name==="w:listItem"||n.name?.endsWith(":listItem"))&&t.push({displayText:c(n,"w","displayText")??"",value:c(n,"w","value")??""});return t}function vn(e){let t="";if(e.type==="text"&&typeof e.text=="string")return e.text;if(e.elements)for(let n of e.elements)if((n.name?.replace(/^.*:/,"")??"")==="t"&&n.elements)for(let o of n.elements)o.type==="text"&&typeof o.text=="string"&&(t+=o.text);else t+=vn(n);return t}function fo(e,t,n,r){let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),o}function po(e){if(!e)return;let t={},n=c(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=c(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let o=c(e,"w","themeFill");o&&(t.fill=t.fill||{},t.fill.themeColor=o);let a=c(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let l=c(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);let u=c(e,"w","val");return u&&(t.pattern=u),Object.keys(t).length>0?t:void 0}function be(e){if(!e)return;let t=c(e,"w","val");if(!t)return;let n={style:t},r=c(e,"w","color"),o=c(e,"w","themeColor");(r||o)&&(n.color=fo(r,o,c(e,"w","themeTint"),c(e,"w","themeShade")));let a=b(e,"w","sz");a!==void 0&&(n.size=a);let l=b(e,"w","space");l!==void 0&&(n.space=l);let u=c(e,"w","shadow");u&&(n.shadow=u==="1"||u==="true");let m=c(e,"w","frame");return m&&(n.frame=m==="1"||m==="true"),n}function mo(e){if(!e)return;let t=z(e,"w","tab");if(t.length===0)return;let n=[];for(let r of t){let o=b(r,"w","pos"),a=c(r,"w","val");if(o!==void 0&&a){let l={position:o,alignment:a},u=c(r,"w","leader");u&&(l.leader=u),n.push(l);}}return n.length>0?n:void 0}function go(e){if(!e)return;let t={},n=b(e,"w","w");n!==void 0&&(t.width=n);let r=b(e,"w","h");r!==void 0&&(t.height=r);let o=c(e,"w","hAnchor");(o==="text"||o==="margin"||o==="page")&&(t.hAnchor=o);let a=c(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let l=b(e,"w","x");l!==void 0&&(t.x=l);let u=b(e,"w","y");u!==void 0&&(t.y=u);let m=c(e,"w","xAlign");m&&(t.xAlign=m);let h=c(e,"w","yAlign");h&&(t.yAlign=h);let T=c(e,"w","wrap");return T&&(t.wrap=T),Object.keys(t).length>0?t:void 0}function Mn(e,t,n){if(!e)return;let r={},o=p(e,"w","jc");if(o){let S=c(o,"w","val");S&&(r.alignment=S);}let a=p(e,"w","bidi");a&&(r.bidi=X(a));let l=p(e,"w","spacing");if(l){let S=b(l,"w","before");S!==void 0&&(r.spaceBefore=S);let M=b(l,"w","after");M!==void 0&&(r.spaceAfter=M);let f=b(l,"w","line");f!==void 0&&(r.lineSpacing=f);let V={};S!==void 0&&(V.before=true),M!==void 0&&(V.after=true),(V.before||V.after)&&(r.spacingExplicit=V);let j=c(l,"w","lineRule");j&&(r.lineSpacingRule=j);let Y=c(l,"w","beforeAutospacing");Y&&(r.beforeAutospacing=Y==="1"||Y==="true");let ee=c(l,"w","afterAutospacing");ee&&(r.afterAutospacing=ee==="1"||ee==="true");}let u=p(e,"w","ind");if(u){let S=b(u,"w","left");S!==void 0&&(r.indentLeft=S);let M=b(u,"w","right");M!==void 0&&(r.indentRight=M);let f=b(u,"w","firstLine");f!==void 0&&(r.indentFirstLine=f);let V=b(u,"w","hanging");V!==void 0&&(r.indentFirstLine=-V,r.hangingIndent=true);let j=b(u,"w","start");j!==void 0&&r.indentLeft===void 0&&(r.indentLeft=j);let Y=b(u,"w","end");Y!==void 0&&r.indentRight===void 0&&(r.indentRight=Y);}let m=p(e,"w","pBdr");if(m){let S={},M=be(p(m,"w","top"));M&&(S.top=M);let f=be(p(m,"w","bottom"));f&&(S.bottom=f);let V=be(p(m,"w","left"));V&&(S.left=V);let j=be(p(m,"w","right"));j&&(S.right=j);let Y=be(p(m,"w","between"));Y&&(S.between=Y);let ee=be(p(m,"w","bar"));ee&&(S.bar=ee),Object.keys(S).length>0&&(r.borders=S);}let h=p(e,"w","shd");h&&(r.shading=po(h));let T=p(e,"w","tabs");T&&(r.tabs=mo(T));let x=p(e,"w","keepNext");x&&(r.keepNext=X(x));let F=p(e,"w","keepLines");F&&(r.keepLines=X(F));let k=p(e,"w","widowControl");k&&(r.widowControl=X(k));let C=p(e,"w","pageBreakBefore");C&&(r.pageBreakBefore=X(C));let R=p(e,"w","contextualSpacing");R&&(r.contextualSpacing=X(R));let A=p(e,"w","numPr");if(A){let S=p(A,"w","numId"),M=p(A,"w","ilvl");if(S||M){if(r.numPr={},S){let f=b(S,"w","val");f!==void 0&&(r.numPr.numId=f);}if(M){let f=b(M,"w","val");f!==void 0&&(r.numPr.ilvl=f);}}}let W=p(e,"w","outlineLvl");if(W){let S=b(W,"w","val");S!==void 0&&(r.outlineLevel=S);}let I=p(e,"w","pStyle");if(I){let S=c(I,"w","val");S&&(r.styleId=S);}let N=p(e,"w","framePr");N&&(r.frame=go(N));let w=p(e,"w","suppressLineNumbers");w&&(r.suppressLineNumbers=X(w));let E=p(e,"w","suppressAutoHyphens");E&&(r.suppressAutoHyphens=X(E));let v=p(e,"w","rPr");return v&&(r.runProperties=_e(v,t)),Object.keys(r).length>0?r:void 0}function Re(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function ho(e){let t=new Set(["hyperlink","smartTag","sdt","sdtContent","fldSimple","customXml","ins","del","moveFrom","moveTo"]),n=new Set(["pPr","proofErr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","commentReference","permStart","permEnd","rsidR"]),r=new Set(["t","tab","br","cr","sym","drawing","pict","object","softHyphen","noBreakHyphen","fldChar","instrText","pgNum","separator","continuationSeparator","footnoteRef","endnoteRef","footnoteReference","endnoteReference","ptab","monthShort","monthLong","yearShort","yearLong","dayShort","dayLong"]),o=false;function a(u){for(let m of L(u)){let h=Re(m.name);if(!n.has(h)){if(h==="lastRenderedPageBreak"){o=true;continue}if(h==="r"){for(let T of L(m)){let x=Re(T.name);if(x!=="rPr"){if(x==="lastRenderedPageBreak"){o=true;continue}if(x==="br"&&c(T,"w","type")==="page")return "forced";if(r.has(x))return "visible"}}continue}if(t.has(h)){let T=a(m);if(T!=="continue")return T;continue}return "continue"}}return "continue"}let l=a(e);return l==="forced"?true:l==="visible"?o:false}function Nn(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function In(e){if(e.type!=="element")return e;let t=Re(e.name),n=e.name;return t==="delText"?n=Nn(e.name,"t"):t==="delInstrText"&&(n=Nn(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(In)}}function ke(e){let t=c(e,"w","id"),n=t?parseInt(t,10):0,r=c(e,"w","author"),o=c(e,"w","date"),a=r?.trim()??"",l=o?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:l.length>0?l:void 0}}function yo(e){let t=ke(e),n=(c(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function To(e,t,n,r){if(!e)return;let o=z(e,"w","pPrChange").map(a=>{let l=p(a,"w","pPr");return {type:"paragraphPropertyChange",info:yo(a),previousFormatting:Mn(l,t),currentFormatting:r}}).filter(a=>a.previousFormatting||a.currentFormatting);return o.length>0?o:void 0}function bo(e,t,n,r,o){return mn(e,t,n,r,o)}function wo(e){return gn(e)}function xo(e){return hn(e)}function Pn(e){let t=e.trim().match(/^\\?([A-Z]+)/i);if(!t)return "UNKNOWN";let n=t[1].toUpperCase();return ["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE","EDITTIME","REVNUM","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS"].includes(n)?n:"UNKNOWN"}function Fo(e,t,n,r,o){let a=c(e,"w","instr")??"",l=Pn(a),u={type:"simpleField",instruction:a,fieldType:l,content:[]},m=c(e,"w","fldLock");(m==="1"||m==="true")&&(u.fldLock=true);let h=c(e,"w","dirty");(h==="1"||h==="true")&&(u.dirty=true);let T=L(e);for(let x of T)Re(x.name)==="r"&&u.content.push(Se(x,t,n,r,o));return u}function we(e,t,n,r,o,a,l="default"){let u=[],m=L(e),h=false,T="",x=[],F=[],k=false,C=false,R=false;for(let A of m){let W=Re(A.name);switch(W){case "r":{let I=l==="deletion"?In(A):A,N=Se(I,t,n,o,a),w=false,E=false,v=false,S="";for(let M of N.content)M.type==="fieldChar"?M.charType==="begin"?(w=true,M.fldLock&&(C=true),M.dirty&&(R=true)):M.charType==="separate"?E=true:M.charType==="end"&&(v=true):M.type==="instrText"&&(S+=M.text);if(w&&(h=true,k=false,T="",x=[],F=[],C=false,R=false),h){if(S&&(T+=S),E&&(k=true),k&&!v?E||F.push(N):!k&&!w&&x.push(N),v){let M={type:"complexField",instruction:T.trim(),fieldType:Pn(T),fieldCode:x,fieldResult:F};C&&(M.fldLock=true),R&&(M.dirty=true),u.push(M),h=false;}}else u.push(N);break}case "hyperlink":u.push(bo(A,o,t,n,a));break;case "bookmarkStart":u.push(wo(A));break;case "bookmarkEnd":u.push(xo(A));break;case "fldSimple":u.push(Fo(A,t,n,o,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let I=(A.elements??[]).find(w=>w.type==="element"&&(w.name==="w:sdtPr"||w.name?.endsWith(":sdtPr"))),N=(A.elements??[]).find(w=>w.type==="element"&&(w.name==="w:sdtContent"||w.name?.endsWith(":sdtContent")));if(N){let w=we(N,t,n,null,o,a,l),v={type:"inlineSdt",properties:co(I??null),content:w.filter(S=>S.type==="run"||S.type==="hyperlink")};u.push(v);}break}case "ins":{let I=ke(A),N=we(A,t,n,null,o,a),w={type:"insertion",info:I,content:N.filter(E=>E.type==="run"||E.type==="hyperlink")};u.push(w);break}case "del":{let I=ke(A),N=we(A,t,n,null,o,a,"deletion"),w={type:"deletion",info:I,content:N.filter(E=>E.type==="run"||E.type==="hyperlink")};u.push(w);break}case "moveFrom":{let I=ke(A),N=we(A,t,n,null,o,a,"deletion"),w={type:"moveFrom",info:I,content:N.filter(E=>E.type==="run"||E.type==="hyperlink")};u.push(w);break}case "moveTo":{let I=ke(A),N=we(A,t,n,null,o,a),w={type:"moveTo",info:I,content:N.filter(E=>E.type==="run"||E.type==="hyperlink")};u.push(w);break}case "smartTag":break;case "moveFromRangeStart":{let I=parseInt(c(A,"w","id")??"0",10),N=c(A,"w","name")??"";u.push({type:"moveFromRangeStart",id:I,name:N});break}case "moveFromRangeEnd":{let I=parseInt(c(A,"w","id")??"0",10);u.push({type:"moveFromRangeEnd",id:I});break}case "moveToRangeStart":{let I=parseInt(c(A,"w","id")??"0",10),N=c(A,"w","name")??"";u.push({type:"moveToRangeStart",id:I,name:N});break}case "moveToRangeEnd":{let I=parseInt(c(A,"w","id")??"0",10);u.push({type:"moveToRangeEnd",id:I});break}case "commentRangeStart":{let I=parseInt(c(A,"w","id")??"0",10);u.push({type:"commentRangeStart",id:I});break}case "commentRangeEnd":{let I=parseInt(c(A,"w","id")??"0",10);u.push({type:"commentRangeEnd",id:I});break}case "oMath":case "oMathPara":{let I=W==="oMathPara",N=Lt(A),w=vn(A),E={type:"mathEquation",display:I?"block":"inline",ommlXml:N,plainText:w||void 0};u.push(E);break}}}return u}function ce(e,t,n,r,o=null,a=null,l){let u={type:"paragraph",content:[]},m=c(e,"w14","paraId")??c(e,"w","paraId");m&&(u.paraId=m);let h=c(e,"w14","textId")??c(e,"w","textId");h&&(u.textId=h),!l?.inHeaderFooter&&ho(e)&&(u.renderedPageBreakBefore=true);let T=p(e,"w","pPr");if(T){u.formatting=Mn(T,n),u.propertyChanges=To(T,n,t,u.formatting);let k=p(T,"w","sectPr");k&&(u.sectionProperties=Ve(k));}let x=we(e,t,n,r,o,a);u.content=at(x);let F=u.formatting?.numPr;if(!F&&u.formatting?.styleId&&t){let k=t.get(u.formatting.styleId);k?.pPr?.numPr&&(F=k.pPr.numPr,u.formatting||(u.formatting={}),u.formatting.numPr=F);}if(F&&r){let{numId:k,ilvl:C=0}=F;if(k!==void 0&&k!==0){let R=r.getLevel(k,C);if(R){let A=[];for(let N=0;N<=C;N+=1){let w=r.getLevel(k,N);A.push(w?.numFmt??"decimal");}let W=r.getInstance(k),I=W?.levelOverrides?.find(N=>N.ilvl===C);if(u.listRendering={level:C,numId:k,marker:R.lvlText,isBullet:R.numFmt==="bullet",numFmt:R.numFmt,markerHidden:R.rPr?.hidden||void 0,markerFontFamily:R.rPr?.fontFamily?.ascii||R.rPr?.fontFamily?.hAnsi||void 0,markerFontSize:R.rPr?.fontSize?R.rPr.fontSize/2:void 0,levelNumFmts:A,abstractNumId:W?.abstractNumId,startOverride:I?.startOverride},R.pPr){u.formatting||(u.formatting={});let N=T?p(T,"w","ind"):null,w=N!=null&&(c(N,"w","left")!==null||c(N,"w","start")!==null),E=N!=null&&(c(N,"w","firstLine")!==null||c(N,"w","hanging")!==null);!w&&R.pPr.indentLeft!==void 0&&(u.formatting.indentLeft=R.pPr.indentLeft),E||(R.pPr.indentFirstLine!==void 0&&(u.formatting.indentFirstLine=R.pPr.indentFirstLine),R.pPr.hangingIndent!==void 0&&(u.formatting.hangingIndent=R.pPr.hangingIndent));}}}}return u}function st(e){let t="";for(let n of e.content)if(n.type==="run")for(let r of n.content)r.type==="text"?t+=r.text:r.type==="tab"?t+=" ":r.type==="break"&&(r.breakType==="page"?t+="\f":t+=`
|
|
14
|
+
`);else if(n.type==="hyperlink"){for(let r of n.children)if(r.type==="run")for(let o of r.content)o.type==="text"&&(t+=o.text);}else if(n.type==="simpleField"){for(let r of n.content)if(r.type==="run")for(let o of r.content)o.type==="text"&&(t+=o.text);}else if(n.type==="complexField")for(let r of n.fieldResult)for(let o of r.content)o.type==="text"&&(t+=o.text);return t}function Eo(e){if(!e)return;let t=b(e,"w","w")??0,n=c(e,"w","type")??"dxa",r="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(r=n),{value:t,type:r}}function me(e){return Eo(e)}function Fe(e){let t=c(e,"w","id"),n=t?parseInt(t,10):0,r=(c(e,"w","author")??"").trim(),o=(c(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:r.length>0?r:"Unknown",date:o.length>0?o:void 0}}function lt(e){let t=Fe(e),n=(c(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function xe(e){if(!e)return;let r={style:c(e,"w","val")??"none"},o=b(e,"w","sz");o!==void 0&&(r.size=o);let a=b(e,"w","space");a!==void 0&&(r.space=a);let l=c(e,"w","color"),u=c(e,"w","themeColor"),m=c(e,"w","themeTint"),h=c(e,"w","themeShade");(l||u||m||h)&&(r.color={rgb:l??void 0,themeColor:u,themeTint:m??void 0,themeShade:h??void 0});let T=c(e,"w","shadow");(T==="1"||T==="true")&&(r.shadow=true);let x=c(e,"w","frame");return (x==="1"||x==="true")&&(r.frame=true),r}function Bn(e){if(!e)return;let t={},n=xe(p(e,"w","top"));n&&(t.top=n);let r=xe(p(e,"w","bottom"));r&&(t.bottom=r);let o=xe(p(e,"w","left")??p(e,"w","start"));o&&(t.left=o);let a=xe(p(e,"w","right")??p(e,"w","end"));a&&(t.right=a);let l=xe(p(e,"w","insideH"));l&&(t.insideH=l);let u=xe(p(e,"w","insideV"));if(u&&(t.insideV=u),Object.keys(t).length!==0)return t}function Dn(e){if(!e)return;let t={},n=me(p(e,"w","top"));n&&(t.top=n);let r=me(p(e,"w","bottom"));r&&(t.bottom=r);let o=me(p(e,"w","left")??p(e,"w","start"));o&&(t.left=o);let a=me(p(e,"w","right")??p(e,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function On(e){if(!e)return;let t={},n=c(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let r=c(e,"w","themeFill");if(r){t.fill={themeColor:r};let l=c(e,"w","themeFillTint");l&&t.fill&&(t.fill.themeTint=l);let u=c(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);}let o=c(e,"w","color");o&&o!=="auto"&&(t.color={rgb:o});let a=c(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function Co(e){if(!e)return;let t={},n=c(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=c(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let o=c(e,"w","firstColumn");(o==="1"||o==="true")&&(t.firstColumn=true);let a=c(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let l=c(e,"w","noHBand");(l==="1"||l==="true")&&(t.noHBand=true);let u=c(e,"w","noVBand");(u==="1"||u==="true")&&(t.noVBand=true);let m=c(e,"w","val");if(m){let h=parseInt(m,16);isNaN(h)||(h&32&&(t.firstRow=true),h&64&&(t.lastRow=true),h&128&&(t.firstColumn=true),h&256&&(t.lastColumn=true),h&512&&(t.noHBand=true),h&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function So(e){if(!e)return;let t={},n=c(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let r=c(e,"w","vertAnchor");(r==="margin"||r==="page"||r==="text")&&(t.vertAnchor=r);let o=b(e,"w","tblpX");o!==void 0&&(t.tblpX=o);let a=c(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let l=b(e,"w","tblpY");l!==void 0&&(t.tblpY=l);let u=c(e,"w","tblpYSpec");u&&(t.tblpYSpec=u);let m=b(e,"w","topFromText");m!==void 0&&(t.topFromText=m);let h=b(e,"w","bottomFromText");h!==void 0&&(t.bottomFromText=h);let T=b(e,"w","leftFromText");T!==void 0&&(t.leftFromText=T);let x=b(e,"w","rightFromText");if(x!==void 0&&(t.rightFromText=x),Object.keys(t).length!==0)return t}function _n(e){if(!e)return;let t={},n=me(p(e,"w","tblW"));n&&(t.width=n);let r=p(e,"w","jc");if(r){let R=c(r,"w","val");(R==="left"||R==="center"||R==="right"||R==="start")&&(t.justification=R==="start"?"left":R);}let o=me(p(e,"w","tblCellSpacing"));o&&(t.cellSpacing=o);let a=me(p(e,"w","tblInd"));a&&(t.indent=a);let l=Bn(p(e,"w","tblBorders"));l&&(t.borders=l);let u=Dn(p(e,"w","tblCellMar"));u&&(t.cellMargins=u);let m=p(e,"w","tblLayout");if(m){let R=c(m,"w","type");(R==="fixed"||R==="autofit")&&(t.layout=R);}let h=p(e,"w","tblStyle");if(h){let R=c(h,"w","val");R&&(t.styleId=R);}let T=Co(p(e,"w","tblLook"));T&&(t.look=T);let x=On(p(e,"w","shd"));x&&(t.shading=x);let F=p(e,"w","tblOverlap");if(F){let R=c(F,"w","val");(R==="never"||R==="overlap")&&(t.overlap=R);}let k=So(p(e,"w","tblpPr"));if(k&&(t.floating=k),X(p(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function ko(e,t){if(!e)return;let n=z(e,"w","tblPrChange").map(r=>{let o=p(r,"w","tblPr");return {type:"tablePropertyChange",info:lt(r),previousFormatting:_n(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function Ro(e,t){if(!e)return;let n=z(e,"w","trPrChange").map(r=>{let o=p(r,"w","trPr");return {type:"tableRowPropertyChange",info:lt(r),previousFormatting:Xn(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function Ao(e,t){if(!e)return;let n=z(e,"w","tcPrChange").map(r=>{let o=p(r,"w","tcPr");return {type:"tableCellPropertyChange",info:lt(r),previousFormatting:Hn(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function No(e){if(!e)return;let t=p(e,"w","ins");if(t)return {type:"tableRowInsertion",info:Fe(t)};let n=p(e,"w","del");if(n)return {type:"tableRowDeletion",info:Fe(n)}}function vo(e){if(!e)return;let t=p(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:Fe(t)};let n=p(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:Fe(n)};let r=p(e,"w","cellMerge");if(r)return {type:"tableCellMerge",info:Fe(r)}}function Xn(e){if(!e)return;let t={},n=p(e,"w","trHeight");if(n){let m=b(n,"w","val");m!==void 0&&m>0&&(t.height={value:m,type:"dxa"});let h=c(n,"w","hRule");(h==="auto"||h==="atLeast"||h==="exact")&&(t.heightRule=h);}X(p(e,"w","tblHeader"))&&(t.header=true),X(p(e,"w","cantSplit"))&&(t.cantSplit=true);let a=p(e,"w","jc");if(a){let m=c(a,"w","val");(m==="left"||m==="center"||m==="right")&&(t.justification=m);}X(p(e,"w","hidden"))&&(t.hidden=true);let u=Ln(p(e,"w","cnfStyle"));if(u&&(t.conditionalFormat=u),Object.keys(t).length!==0)return t}function Ln(e){if(!e)return;let t={},n=c(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=c(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let o=c(e,"w","firstColumn");(o==="1"||o==="true")&&(t.firstColumn=true);let a=c(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let l=c(e,"w","oddHBand");(l==="1"||l==="true")&&(t.oddHBand=true);let u=c(e,"w","evenHBand");(u==="1"||u==="true")&&(t.evenHBand=true);let m=c(e,"w","oddVBand");(m==="1"||m==="true")&&(t.oddVBand=true);let h=c(e,"w","evenVBand");(h==="1"||h==="true")&&(t.evenVBand=true);let T=c(e,"w","firstRowFirstColumn");(T==="1"||T==="true")&&(t.nwCell=true);let x=c(e,"w","firstRowLastColumn");(x==="1"||x==="true")&&(t.neCell=true);let F=c(e,"w","lastRowFirstColumn");(F==="1"||F==="true")&&(t.swCell=true);let k=c(e,"w","lastRowLastColumn");(k==="1"||k==="true")&&(t.seCell=true);let C=c(e,"w","val");if(C&&C.length===12&&(C[0]==="1"&&(t.firstRow=true),C[1]==="1"&&(t.lastRow=true),C[2]==="1"&&(t.firstColumn=true),C[3]==="1"&&(t.lastColumn=true),C[4]==="1"&&(t.oddVBand=true),C[5]==="1"&&(t.evenVBand=true),C[6]==="1"&&(t.oddHBand=true),C[7]==="1"&&(t.evenHBand=true),C[8]==="1"&&(t.nwCell=true),C[9]==="1"&&(t.neCell=true),C[10]==="1"&&(t.swCell=true),C[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function Hn(e){if(!e)return;let t={},n=me(p(e,"w","tcW"));n&&(t.width=n);let r=Bn(p(e,"w","tcBorders"));r&&(t.borders=r);let o=Dn(p(e,"w","tcMar"));o&&(t.margins=o);let a=On(p(e,"w","shd"));a&&(t.shading=a);let l=p(e,"w","vAlign");if(l){let C=c(l,"w","val");(C==="top"||C==="center"||C==="bottom")&&(t.verticalAlign=C);}let u=p(e,"w","textDirection");if(u){let C=c(u,"w","val");C&&(t.textDirection=C);}let m=p(e,"w","gridSpan");if(m){let C=b(m,"w","val");C!==void 0&&C>1&&(t.gridSpan=C);}let h=p(e,"w","vMerge");h&&(c(h,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),X(p(e,"w","tcFitText"))&&(t.fitText=true),X(p(e,"w","noWrap"))&&(t.noWrap=true),X(p(e,"w","hideMark"))&&(t.hideMark=true);let k=Ln(p(e,"w","cnfStyle"));if(k&&(t.conditionalFormat=k),Object.keys(t).length!==0)return t}function Mo(e,t,n,r,o,a,l){let u=[],m=e.elements||[];for(let h of m){if(!h.name)continue;let T=h.name.split(":").pop();if(T==="p"){let x=ce(h,t,n,r,o,a,l);u.push(x);}else if(T==="tbl"){let x=ye(h,t,n,r,o,a,l);u.push(x);}}return u.length===0&&u.push({type:"paragraph",content:[]}),u}function Io(e,t,n,r,o,a,l){let u={type:"tableCell",content:[]},m=p(e,"w","tcPr"),h=Hn(m);return h&&(u.formatting=h),u.propertyChanges=Ao(m,h),u.structuralChange=vo(m),u.content=Mo(e,t,n,r,o,a,l),u}function Po(e,t,n,r,o,a,l){let u={type:"tableRow",cells:[]},m=p(e,"w","trPr"),h=Xn(m);h&&(u.formatting=h),u.propertyChanges=Ro(m,h),u.structuralChange=No(m);let T=z(e,"w","tc");for(let x of T){let F=Io(x,t,n,r,o,a,l);u.cells.push(F);}return u}function Bo(e){if(!e)return;let t=[],n=z(e,"w","gridCol");for(let r of n){let o=b(r,"w","w")??0;t.push(o);}if(!(t.length>0&&t.every(r=>r<=0)))return t.length>0?t:void 0}function Do(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function Oo(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Do(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let r=n.cells[0];(r.formatting?.gridSpan??1)>=t||r.formatting?.vMerge||r.formatting?.gridSpan==null&&(r.formatting={...r.formatting??{},gridSpan:t});}}function ye(e,t,n,r,o,a,l){let u={type:"table",rows:[]},m=p(e,"w","tblPr"),h=_n(m);h&&(u.formatting=h),u.propertyChanges=ko(m,h);let T=Bo(p(e,"w","tblGrid"));T&&(u.columnWidths=T);let x=z(e,"w","tr");for(let F of x){let k=Po(F,t,n,r,o,a,l);u.rows.push(k);}return Oo(u),u}function _o(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0),n={183:"\u2022",111:"\u25CB",167:"\u25A0",252:"\u2713",110:"\u25A0",113:"\u25CB",117:"\u25C6",118:"\u2756",168:"\u2713",251:"\u2713",254:"\u2713",61623:"\u2022",61550:"\u25A0",61551:"\u25CB",61607:"\u25A0",61692:"\u2713",8226:"\u2022",9679:"\u25CF",9675:"\u25CB",9632:"\u25A0",9633:"\u25A1",9670:"\u25C6",9671:"\u25C7",8211:"\u2013",8212:"\u2014",62:">",45:"-"};return n[t]?n[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Xo(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=_o(t.marker||""));}var Vn=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g;function Kn(e){let t=[],n;for(Vn.lastIndex=0;(n=Vn.exec(e))!==null;){let r=n[1].trim();r&&!t.includes(r)&&t.push(r);}return t}function aa(e){let t=[];for(let n of e)if(n.type==="paragraph"){let r=st(n),o=Kn(r);for(let a of o)t.includes(a)||t.push(a);}else if(n.type==="table"){let r=jn(n);for(let o of r)t.includes(o)||t.push(o);}return t}function jn(e){let t=[];for(let n of e.rows)for(let r of n.cells)for(let o of r.content)if(o.type==="paragraph"){let a=st(o),l=Kn(a);for(let u of l)t.includes(u)||t.push(u);}else if(o.type==="table"){let a=jn(o);for(let l of a)t.includes(l)||t.push(l);}return t}function Lo(e,t,n,r,o,a,l){if(e.content.length===0)return;let u=L(t),m=0;for(let h of u){if(pe(h.name??"")!=="r")continue;let T=L(h);for(let x of T)if(pe(x.name??"")==="drawing"&&De(x)){let F=Zt(x);if(F){let k=Ze(x,"wps","wsp");if(k){let A=Jt(k);A&&(F.content=$t(A,ce,null,n,r,o,a??void 0));}let C={type:"shape",shapeType:"rect",size:F.size,position:F.position,wrap:F.wrap,fill:F.fill,outline:F.outline,textBody:{content:F.content,margins:F.margins}};F.id&&(C.id=F.id);let R={type:"shape",shape:C};if(m<e.content.length){let A=e.content[m];A.type==="run"&&A.content.push(R);}}}m++;}}function Wn(e,t,n,r,o,a){let l=[],u=L(e);for(let m of u){let h=m.name??"";if(h==="w:p"||h.endsWith(":p")){let T=ce(m,t,n,r,o,a);Lo(T,m,t,n,r,o),Xo(T),l.push(T);}else if(h==="w:tbl"||h.endsWith(":tbl")){let T=ye(m,t,n,r,o,a);l.push(T);}else if(h==="w:sdt"||h.endsWith(":sdt")){let T=(m.elements??[]).find(x=>x.type==="element"&&(x.name==="w:sdtContent"||x.name?.endsWith(":sdtContent")));if(T){let x=Wn(T,t,n,r,o,a);l.push(...x);}}}return l}function Ho(e,t){let n=[],r=[];for(let o of e)r.push(o),o.type==="paragraph"&&o.sectionProperties&&(n.push({properties:o.sectionProperties,content:r}),r=[]);return (r.length>0||n.length===0)&&n.push({properties:t??kn(),content:r}),n}function sa(e,t=null,n=null,r=null,o=null,a=null){let l={content:[]};if(!e)return l;let u=le(e);if(!u)return l;let m=(u.elements??[]).find(x=>x.type==="element"&&(x.name==="w:document"||x.name?.endsWith(":document")));if(!m)return l;let h=p(m,"w","body");if(!h)return l;l.content=Wn(h,t,n,r,o,a);let T=p(h,"w","sectPr");return T&&(l.finalSectionProperties=Ve(T)),l.sections=Ho(l.content,l.finalSectionProperties),l}function Un(e,t){let n=e?{...e}:{},r=t,o=[["ascii","asciiTheme"],["hAnsi","hAnsiTheme"],["eastAsia","eastAsiaTheme"],["cs","csTheme"]],a=new Set;for(let[l,u]of o)a.add(l),a.add(u),(r[l]!==void 0||r[u]!==void 0)&&(delete n[l],delete n[u],r[l]!==void 0&&(n[l]=r[l]),r[u]!==void 0&&(n[u]=r[u]));for(let l of Object.keys(r))!a.has(l)&&r[l]!==void 0&&(n[l]=r[l]);return n}function fa(e,t){if(!t&&!e)return;if(!t)return e;if(!e)return {...t};let n={...e};for(let r of Object.keys(t)){let o=t[r];if(o!==void 0){if(r==="fontFamily"&&typeof o=="object"&&o!==null){n.fontFamily=Un(e.fontFamily,o);continue}if(r==="color"&&typeof o=="object"&&o!==null){let a=o,l=!!(a.rgb||a.themeColor||a.themeTint||a.themeShade);(!a.auto||l)&&(n.color=a);continue}if(typeof o=="object"&&o!==null&&!Array.isArray(o)){n[r]={...e[r]??{},...o};continue}n[r]=o;}}return n}/*! Bundled license information:
|
|
15
|
+
|
|
16
|
+
sax/lib/sax.js:
|
|
17
|
+
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
|
|
18
|
+
*/export{le as a,Pe as b,p as c,z as d,L as e,c as f,b as g,X as h,Tr as i,$o as j,ei as k,Ce as l,Un as m,fa as n,vi as o,Mi as p,Oi as q,_i as r,Xi as s,ce as t,_o as u,aa as v,sa as w};
|