file-viewer-demo/public/file-viewer3/assets/docx-preview.min-6246d1ca.js

97 lines
172 KiB
JavaScript
Raw Permalink Normal View History

2023-04-24 06:36:37 +00:00
import{c as _e,g as Ne}from"./index-0fd2d185.js";import{c as ke}from"./_commonjs-dynamic-modules-302442b1.js";function Be(ce,be){for(var T=0;T<be.length;T++){const j=be[T];if(typeof j!="string"&&!Array.isArray(j)){for(const E in j)if(E!=="default"&&!(E in ce)){const x=Object.getOwnPropertyDescriptor(j,E);x&&Object.defineProperty(ce,E,x.get?x:{enumerable:!0,get:()=>j[E]})}}}return Object.freeze(Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}))}var we={},Oe={get exports(){return we},set exports(ce){we=ce}},xe={},Re={get exports(){return xe},set exports(ce){xe=ce}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/var Ce;function ze(){return Ce||(Ce=1,function(ce,be){(function(T){ce.exports=T()})(function(){return function T(j,E,x){function v(s,m){if(!E[s]){if(!j[s]){var p=typeof ke=="function"&&ke;if(!m&&p)return p(s,!0);if(e)return e(s,!0);var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}var i=E[s]={exports:{}};j[s][0].call(i.exports,function(y){var h=j[s][1][y];return v(h||y)},i,i.exports,T,j,E,x)}return E[s].exports}for(var e=typeof ke=="function"&&ke,r=0;r<x.length;r++)v(x[r]);return v}({1:[function(T,j,E){var x=T("./utils"),v=T("./support"),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";E.encode=function(r){for(var s,m,p,n,i,y,h,d=[],f=0,g=r.length,S=g,C=x.getTypeOf(r)!=="string";f<r.length;)S=g-f,p=C?(s=r[f++],m=f<g?r[f++]:0,f<g?r[f++]:0):(s=r.charCodeAt(f++),m=f<g?r.charCodeAt(f++):0,f<g?r.charCodeAt(f++):0),n=s>>2,i=(3&s)<<4|m>>4,y=1<S?(15&m)<<2|p>>6:64,h=2<S?63&p:64,d.push(e.charAt(n)+e.charAt(i)+e.charAt(y)+e.charAt(h));return d.join("")},E.decode=function(r){var s,m,p,n,i,y,h=0,d=0,f="data:";if(r.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var g,S=3*(r=r.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(r.charAt(r.length-1)===e.charAt(64)&&S--,r.charAt(r.length-2)===e.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=v.uint8array?new Uint8Array(0|S):new Array(0|S);h<r.length;)s=e.indexOf(r.charAt(h++))<<2|(n=e.indexOf(r.charAt(h++)))>>4,m=(15&n)<<4|(i=e.indexOf(r.charAt(h++)))>>2,p=(3&i)<<6|(y=e.indexOf(r.charAt(h++))),g[d++]=s,i!==64&&(g[d++]=m),y!==64&&(g[d++]=p);return g}},{"./support":30,"./utils":32}],2:[function(T,j,E){var x=T("./external"),v=T("./stream/DataWorker"),e=T("./stream/Crc32Probe"),r=T("./stream/DataLengthProbe");function s(m,p,n,i,y){this.compressedSize=m,this.uncompressedSize=p,this.crc32=n,this.compression=i,this.compressedContent=y}s.prototype={getContentWorker:function(){var m=new v(x.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),p=this;return m.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),m},getCompressedWorker:function(){return new v(x.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(m,p,n){return m.pipe(new e).pipe(new r("uncompressedSize")).pipe(p.compressWorker(n)).pipe(new r("compressedSize")).withStreamInfo("compression",p)},j.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(T,j,E){var x=T("./stream/GenericWorker");E.STORE={magic:"\0\0",compressWorker:function(){return new x("STORE compression")},uncompressWorker:function(){return new x("STORE decompression")}},E.DEFLATE=T("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(T,j,E){var x=T("./utils"),v=function(){for(var e,r=[],s=0;s<256;s++){e=s;for(var m=0;m<8;m++)e=1&e?3988292384^e>>>1:e>>>1;r[s]=e}return r}();j.exports=function(e,r){return e!==void 0&&e.length?x.getTypeOf(e)!=="string"?function(s,m,p,n){var i=v,y=n+p;s^=-1;for(var h=n;h<y;h++)s=s>>>8^i[255&(s^m[h])];return-1^s}(0|r,e,e.length,0):function(s,m,p,n){var i=v,y=n+p;s^=-1;for(var h=n;h<y;h++)s=s>>>8^i[255&(s^m.charCodeAt(h))];return-1^s}(0|r,e,e.length,0):0}},{"./utils":32}],5:[function(T,j,E){E.base64=!1,E.binary=!1,E.dir=!1,E.createFolders=!0,E.date=null,E.compression=null,E.compressionOptions=null,E.comment=null,E.unixPermissions=null,E.dosPermissions=null},{}],6:[function(T,j,E){var x=null;x=typeof Promise<"u"?Promise:T("lie"),j.exports={Promise:x}},{lie:37}],7:[function(T,j,E){var x=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",v=T("pako"),e=T("./utils"),r=T("./stream/GenericWorker"),s=x?"uint8array":"array";function m(p,n){r.call(this,"FlateWorker/"+p),this._pako=null,t
\0`,V+=x(z,2),V+=o.magic,V+=x(S,2),V+=x(C,2),V+=x(Y.crc32,4),V+=x(Y.compressedSize,4),V+=x(Y.uncompressedSize,4),V+=x(l.length,2),V+=x(R.length,2),{fileRecord:p.LOCAL_FILE_HEADER+V+l+R,dirRecord:p.CENTRAL_FILE_HEADER+x(J,2)+V+x(D.length,2)+"\0\0\0\0"+x(O,4)+x(d,4)+l+R+D}}var e=T("../utils"),r=T("../stream/GenericWorker"),s=T("../utf8"),m=T("../crc32"),p=T("../signature");function n(i,y,h,d){r.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=y,this.zipPlatform=h,this.encodeFileName=d,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(n,r),n.prototype.push=function(i){var y=i.meta.percent||0,h=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,r.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:h?(y+100*(h-d-1))/h:100}}))},n.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var y=this.streamFiles&&!i.file.dir;if(y){var h=v(i,y,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(i){this.accumulate=!1;var y=this.streamFiles&&!i.file.dir,h=v(i,y,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),y)this.push({data:function(d){return p.DATA_DESCRIPTOR+x(d.crc32,4)+x(d.compressedSize,4)+x(d.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var i=this.bytesWritten,y=0;y<this.dirRecords.length;y++)this.push({data:this.dirRecords[y],meta:{percent:100}});var h=this.bytesWritten-i,d=function(f,g,S,C,a){var o=e.transformTo("string",a(C));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+x(f,2)+x(f,2)+x(g,4)+x(S,4)+x(o.length,2)+o}(this.dirRecords.length,h,i,this.zipComment,this.encodeFileName);this.push({data:d,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(i){this._sources.push(i);var y=this;return i.on("data",function(h){y.processChunk(h)}),i.on("end",function(){y.closedSource(y.previous.streamInfo),y._sources.length?y.prepareNextSource():y.end()}),i.on("error",function(h){y.error(h)}),this},n.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(i){var y=this._sources;if(!r.prototype.error.call(this,i))return!1;for(var h=0;h<y.length;h++)try{y[h].error(i)}catch{}return!0},n.prototype.lock=function(){r.prototype.lock.call(this);for(var i=this._sources,y=0;y<i.length;y++)i[y].lock()},j.exports=n},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(T,j,E){var x=T("../compressions"),v=T("./ZipFileWorker");E.generateWorker=function(e,r,s){var m=new v(r.streamFiles,s,r.platform,r.encodeFileName),p=0;try{e.forEach(function(n,i){p++;var y=function(g,S){var C=g||S,a=x[C];if(!a)throw new Error(C+" is not a valid compression method !");return a}(i.options.compression,r.compression),h=i.options.compressionOptions||r.compressionOptions||{},d=i.dir,f=i.date;i._compressWorker(y,h).withStreamInfo("file",{name:n,dir:d,date:f,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(m)}),m.entriesCount=p}catch(n){m.error(n)}return m}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(T,j,E){function x(){if(!(this instanceof x))return new x;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrad
\r
math {\r
display: inline-block;\r
line-height: initial;\r
}\r
\r
mfrac {\r
display: inline-block;\r
vertical-align: -50%;\r
text-align: center;\r
\r
&>:first-child {\r
border-bottom: solid thin currentColor;\r
}\r
\r
&>* {\r
display: block;\r
}\r
}\r
\r
msub {\r
&>:nth-child(2) {\r
font-size: smaller;\r
vertical-align: sub;\r
}\r
}\r
\r
msup {\r
&>:nth-child(2) {\r
font-size: smaller;\r
vertical-align: super;\r
}\r
}\r
\r
munder, mover, munderover {\r
display: inline-flex;\r
flex-flow: column nowrap;\r
vertical-align: middle;\r
text-align: center;\r
\r
&>:not(:first-child) {\r
font-size: smaller;\r
}\r
}\r
\r
munderover {\r
&>:last-child { order: -1; }\r
}\r
\r
mroot, msqrt {\r
position: relative;\r
display: inline-block;\r
border-top: solid thin currentColor; \r
margin-top: 0.5px;\r
vertical-align: middle; \r
margin-left: 1ch; \r
\r
&:before {\r
content: "";\r
display: inline-block;\r
position: absolute;\r
width: 1ch;\r
left: -1ch;\r
top: -1px;\r
bottom: 0;\r
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='m0,75 l5,0 l5,25 l10,-100' stroke='black' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");\r
}\r
}`],sourceRoot:""}]);const g=d.toString()},645:v=>{v.exports=function(e){var r=[];return r.toString=function(){return this.map(function(s){var m="",p=s[5]!==void 0;return s[4]&&(m+="@supports (".concat(s[4],") {")),s[2]&&(m+="@media ".concat(s[2]," {")),p&&(m+="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {")),m+=e(s),p&&(m+="}"),s[2]&&(m+="}"),s[4]&&(m+="}"),m}).join("")},r.i=function(s,m,p,n,i){typeof s=="string"&&(s=[[null,s,void 0]]);var y={};if(p)for(var h=0;h<this.length;h++){var d=this[h][0];d!=null&&(y[d]=!0)}for(var f=0;f<s.length;f++){var g=[].concat(s[f]);p&&y[g[0]]||(i!==void 0&&(g[5]===void 0||(g[1]="@layer".concat(g[5].length>0?" ".concat(g[5]):""," {").concat(g[1],"}")),g[5]=i),m&&(g[2]&&(g[1]="@media ".concat(g[2]," {").concat(g[1],"}")),g[2]=m),n&&(g[4]?(g[1]="@supports (".concat(g[4],") {").concat(g[1],"}"),g[4]=n):g[4]="".concat(n)),r.push(g))}},r}},806:v=>{v.exports=function(e,r){return r||(r={}),e&&(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),r.hash&&(e+=r.hash),/["'() \t\n]|(%20)/.test(e)||r.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},537:v=>{v.exports=function(e){var r=e[1],s=e[3];if(!s)return r;if(typeof btoa=="function"){var m=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),p="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(m),n="/*# ".concat(p," */"),i=s.sources.map(function(y){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(y," */")});return[r].concat(i).concat([n]).join(`
`)}return[r].join(`
`)}},522:(v,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OpenXmlPackage=void 0;const s=r(626),m=r(472),p=r(593),n=r(461);class i{constructor(h,d){this._zip=h,this.options=d,this.xmlParser=new m.XmlParser}get(h){return this._zip.files[function(d){return d.startsWith("/")?d.substr(1):d}(h)]}update(h,d){this._zip.file(h,d)}static load(h,d){return s.loadAsync(h).then(f=>new i(f,d))}save(h="blob"){return this._zip.generateAsync({type:h})}load(h,d="string"){var f,g;return(g=(f=this.get(h))===null||f===void 0?void 0:f.async(d))!==null&&g!==void 0?g:Promise.resolve(null)}loadRelationships(h=null){let d="_rels/.rels";if(h!=null){const[f,g]=(0,p.splitPath)(h);d=`${f}_rels/${g}.rels`}return this.load(d).then(f=>f?(0,n.parseRelationships)(this.parseXmlDocument(f).firstElementChild,this.xmlParser):null)}parseXmlDocument(h){return(0,m.parseXmlString)(h,this.options.trimXmlDeclaration)}}e.OpenXmlPackage=i},530:(v,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Part=void 0;const s=r(472);e.Part=class{constructor(m,p){this._package=m,this.path=p}load(){return Promise.all([this._package.loadRelationships(this.path).then(m=>{this.rels=m}),this._package.load(this.path).then(m=>{const p=this._package.parseXmlDocument(m);this._package.options.keepOrigin&&(this._xmlDocument=p),this.parseXml(p.firstElementChild)})])}save(){this._package.update(this.path,(0,s.serializeXmlString)(this._xmlDocument))}parseXml(m){}}},461:(v,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.parseRelationships=e.RelationshipTypes=void 0,(r=e.RelationshipTypes||(e.RelationshipTypes={})).OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",r.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",r.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",r.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",r.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",r.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",r.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",r.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",r.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",r.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",r.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",r.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",r.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",r.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",r.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",r.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties",e.parseRelationships=function(s,m){return m.elements(s).map(p=>({id:m.attr(p,"Id"),type:m.attr(p,"Type"),target:m.attr(p,"Target"),targetMode:m.attr(p,"TargetMode")}))}},168:(v,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentParser=e.autos=void 0;const s=r(120),m=r(109),p=r(59),n=r(472),i=r(488),y=r(172),h=r(149),d=r(320);e.autos={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const f=[],g={oMath:s.DomType.MmlMath,oMathPara:s.DomType.MmlMathParagraph,f:s.DomType.MmlFraction,num:s.DomType.MmlNumerator,den:s.DomType.MmlDenominator,rad:s.DomType.MmlRadical,deg:s.DomType.MmlDegree,e:s.DomType.MmlBase,sSup:s.DomType.MmlSuperscript,sSub:s.DomType.MmlSubscript,sup:s.DomType.MmlSuperArgument,sub:s.DomType.MmlSubArgument,d:s.DomType.MmlDelimiter,nary:s.DomType.MmlNary};e.DocumentParser=class{constructor(o){this.options=Object.assign({ignoreWidth:!1,debug:!1
.${a}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; }
.${a}-wrapper>section.${a} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }
.${a} { color: black; }
section.${a} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }
section.${a}>article { margin-bottom: auto; }
.${a} table { border-collapse: collapse; }
.${a} table td, .${a} table th { vertical-align: top; }
.${a} p { margin: 0pt; min-height: 1em; }
.${a} span { white-space: pre-wrap; overflow-wrap: break-word; }
.${a} a { color: inherit; text-decoration: inherit; }
`)}renderNumbering(a,o){var t="",l=[];for(var b of a){var k=`p.${this.numberingClass(b.id,b.level)}`,D="none";if(b.bullet){let _=`--${this.className}-${b.bullet.src}`.toLowerCase();t+=this.styleToString(`${k}:before`,{content:"' '",display:"inline-block",background:`var(${_})`},b.bullet.style),this.document.loadNumberingImage(b.bullet.src).then(P=>{var u=`${this.rootSelector} { ${_}: url(${P}) }`;o.appendChild(S(u))})}else if(b.levelText){let _=this.numberingCounter(b.id,b.level);b.level>0?t+=this.styleToString(`p.${this.numberingClass(b.id,b.level-1)}`,{"counter-reset":_}):l.push(_),t+=this.styleToString(`${k}:before`,Object.assign({content:this.levelTextToContent(b.levelText,b.suff,b.id,this.numFormatToCssValue(b.format)),"counter-increment":_},b.rStyle))}else D=this.numFormatToCssValue(b.format);t+=this.styleToString(k,Object.assign({display:"list-item","list-style-position":"inside","list-style-type":D},b.pStyle))}return l.length>0&&(t+=this.styleToString(this.rootSelector,{"counter-reset":l.join(" ")})),S(t)}renderStyles(a){var o,t="";const l=this.styleMap,b=(0,m.keyBy)(a.filter(P=>P.isDefault),P=>P.target);for(const P of a){var k=P.styles;if(P.linked){var D=P.linked&&l[P.linked];D?k=k.concat(D.styles):this.options.debug&&console.warn(`Can't find linked style ${P.linked}`)}for(const u of k){var _=`${(o=P.target)!==null&&o!==void 0?o:""}.${P.cssName}`;P.target!=u.target&&(_+=` ${u.target}`),b[P.target]==P&&(_=`.${this.className} ${P.target}, `+_),t+=this.styleToString(_,u.values)}}return S(t)}renderNotes(a,o,t){var l=a.map(k=>o[k]).filter(k=>k);if(l.length>0){var b=this.createElement("ol",null,this.renderElements(l));t.appendChild(b)}}renderElement(a){switch(a.type){case s.DomType.Paragraph:return this.renderParagraph(a);case s.DomType.BookmarkStart:return this.renderBookmarkStart(a);case s.DomType.BookmarkEnd:return null;case s.DomType.Run:return this.renderRun(a);case s.DomType.Table:return this.renderTable(a);case s.DomType.Row:return this.renderTableRow(a);case s.DomType.Cell:return this.renderTableCell(a);case s.DomType.Hyperlink:return this.renderHyperlink(a);case s.DomType.Drawing:return this.renderDrawing(a);case s.DomType.Image:return this.renderImage(a);case s.DomType.Text:case s.DomType.Text:return this.renderText(a);case s.DomType.DeletedText:return this.renderDeletedText(a);case s.DomType.Tab:return this.renderTab(a);case s.DomType.Symbol:return this.renderSymbol(a);case s.DomType.Break:return this.renderBreak(a);case s.DomType.Footer:return this.renderContainer(a,"footer");case s.DomType.Header:return this.renderContainer(a,"header");case s.DomType.Footnote:case s.DomType.Endnote:return this.renderContainer(a,"li");case s.DomType.FootnoteReference:return this.renderFootnoteReference(a);case s.DomType.EndnoteReference:return this.renderEndnoteReference(a);case s.DomType.NoBreakHyphen:return this.createElement("wbr");case s.DomType.VmlPicture:return this.renderVmlPicture(a);case s.DomType.VmlElement:return this.renderVmlElement(a);case s.DomType.MmlMath:return this.renderContainerNS(a,i,"math",{xmlns:i});case s.DomType.MmlMathParagraph:return this.renderContainer(a,"span");case s.DomType.MmlFraction:return this.renderContainerNS(a,i,"mfrac");case s.DomType.MmlNumerator:case s.DomType.MmlDenominator:return this.renderContainerNS(a,i,"mrow");case s.DomType.MmlRadical:return this.renderMmlRadical(a);case s.DomType.MmlDegree:return this.renderContainerNS(a,i,"mn");case s.DomType.MmlSuperscript:return this.renderContainerNS(a,i,"msup");case s.DomType.MmlSubscript:return this.renderContainerNS(a,i,"msub");case s.DomType.MmlBase:return this.renderContainerNS(a,i,"mrow");case s.DomType.MmlSuperArgument:case s.DomType.MmlSubArgument:return this.renderContainerNS(a,i,"mn");case s.DomType.MmlDelimiter:return this.renderMmlDelimiter(a);case s.DomType.MmlRun:return this.renderMmlRun(a);case s.DomType.MmlNary:return this.renderMmlNary(a);case s.DomType.Inserted:return this.renderInserted(a);case s.DomType.Deleted:return this.renderDeleted(a)}return null}renderChildren(a,o){return this.renderElements(a.children,o)}rend
`;for(const b in o)l+=` ${b}: ${o[b]};\r
`;return t&&(l+=t),l+`}\r
`}numberingCounter(a,o){return`${this.className}-num-${a}-${o}`}levelTextToContent(a,o,t,l){var b;return`"${a.replace(/%\d*/g,k=>{let D=parseInt(k.substring(1),10)-1;return`"counter(${this.numberingCounter(t,D)}, ${l})"`})}${(b={tab:"\\9",space:"\\a0"}[o])!==null&&b!==void 0?b:""}"`}numFormatToCssValue(a){return{none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman"}[a]||a}refreshTabStops(){this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(()=>{const a=(0,p.computePixelToPoint)();for(let o of this.currentTabs)(0,p.updateTabStop)(o.span,o.stops,this.defaultTabSize,a)},500))}}},630:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateTabStop=e.computePixelToPoint=void 0;const r={pos:0,leader:"none",style:"left"};function s(m){return parseFloat(m)}e.computePixelToPoint=function(m=document.body){const p=document.createElement("div");p.style.width="100pt",m.appendChild(p);const n=100/p.offsetWidth;return m.removeChild(p),n},e.updateTabStop=function(m,p,n,i=.75){const y=m.closest("p"),h=m.getBoundingClientRect(),d=y.getBoundingClientRect(),f=getComputedStyle(y),g=(p==null?void 0:p.length)>0?p.map(_=>({pos:s(_.position),leader:_.leader,style:_.style})).sort((_,P)=>_.pos-P.pos):[r],S=g[g.length-1],C=d.width*i,a=s(n);let o=S.pos+a;if(o<C)for(;o<C&&g.length<50;o+=a)g.push(Object.assign(Object.assign({},r),{pos:o}));const t=parseFloat(f.marginLeft),l=d.left+t,b=(h.left-l)*i,k=g.find(_=>_.style!="clear"&&_.pos>b);if(k==null)return;let D=1;if(k.style=="right"||k.style=="center"){const _=Array.from(y.querySelectorAll(`.${m.className}`)),P=_.indexOf(m)+1,u=document.createRange();u.setStart(m,1),P<_.length?u.setEndBefore(_[P]):u.setEndAfter(y);const R=k.style=="center"?.5:1,G=u.getBoundingClientRect(),M=G.left+R*G.width-(d.left-t);D=k.pos-M*i}else D=k.pos-b;switch(m.innerHTML="&nbsp;",m.style.textDecoration="inherit",m.style.wordSpacing=`${D.toFixed(0)}pt`,k.leader){case"dot":case"middleDot":m.style.textDecoration="underline",m.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":m.style.textDecoration="underline"}}},881:(v,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WmlEndnote=e.WmlFootnote=e.WmlBaseNote=void 0;const s=r(120);class m{constructor(){this.children=[],this.cssStyle={}}}e.WmlBaseNote=m,e.WmlFootnote=class extends m{constructor(){super(...arguments),this.type=s.DomType.Footnote}},e.WmlEndnote=class extends m{constructor(){super(...arguments),this.type=s.DomType.Endnote}}},735:(v,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EndnotesPart=e.FootnotesPart=e.BaseNotePart=void 0;const s=r(530),m=r(881);class p extends s.Part{constructor(i,y,h){super(i,y),this._documentParser=h}}e.BaseNotePart=p,e.FootnotesPart=class extends p{constructor(n,i,y){super(n,i,y)}parseXml(n){this.notes=this._documentParser.parseNotes(n,"footnote",m.WmlFootnote)}},e.EndnotesPart=class extends p{constructor(n,i,y){super(n,i,y)}parseXml(n){this.notes=this._documentParser.parseNotes(n,"endnote",m.WmlEndnote)}}},527:(v,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NumberingPart=void 0;const s=r(530),m=r(682);class p extends s.Part{constructor(i,y,h){super(i,y),this._documentParser=h}parseXml(i){Object.assign(this,(0,m.parseNumberingPart)(i,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(i)}}e.NumberingPart=p},682:(v,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseNumberingBulletPicture=e.parseNumberingLevelOverrride=e.parseNumberingLevel=e.parseAbstractNumbering=e.parseNumbering=e.parseNumberingPart=void 0;const s=r(109),m=r(488);function p(d,f){let g={id:f.attr(d,"numId"),overrides:[]};for(let S of f.elements(d))switch(S.localName){case"abstractNumId":g.abstractId=f.attr(S,"val");break;case"lvlOverride":g.overrides.push(y(S,f))}return g}function n(d,f){let g={id:f.attr(d,"abstractNumId"),levels:[]};for(let S of f.elements(d))switch(S.localName){case"name":g.name=f.attr(S,"val");break;case"multiLevelT