@sheetxl/io-xlsx 0.8.0-beta.5 → 0.8.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/browser/cjs/{DtBN3UOzNJjYBwJ6.cjs → 17tMBnuyu4YIxixh.cjs} +1 -1
  2. package/browser/cjs/BxU-OlZIQViQl7gX.cjs +1 -0
  3. package/browser/cjs/{DOTve1YXP86VW8ln.cjs → CDs8etXnw0kbBKKv.cjs} +1 -1
  4. package/browser/cjs/CycnxkfuKrDdwoJN.cjs +5 -0
  5. package/browser/cjs/DHKWtqZ0vQfXrbq1.cjs +2 -0
  6. package/browser/cjs/{DULsYP_GcPGLVYSE.cjs → MqKQ_B5qRARrRbO4.cjs} +16 -3
  7. package/browser/cjs/index.cjs +1 -1
  8. package/browser/esm/{CEbxib7xV2WuS-D3.mjs → 9n64lXAgZUe3aThr.mjs} +3 -3
  9. package/browser/esm/{CCD-nLdFzaQd6BuH.mjs → B4eKxNwxJjHLN126.mjs} +1 -1
  10. package/browser/esm/{BcWQ-WWSh4k_BbiQ.mjs → BsNoW41d6hdpxTTS.mjs} +4 -4
  11. package/browser/esm/{VMf5ikEX-Pl2qTh8.mjs → BvAptAMpZVyBCx6-.mjs} +246 -154
  12. package/browser/esm/{DJsvdO0gLkETZXLX.mjs → CGXxwkCRWLc0gcRQ.mjs} +2 -2
  13. package/browser/esm/{B1yJJD4hEJtoWKFg.mjs → CX3yVwe-BnhCk4FY.mjs} +2 -2
  14. package/browser/esm/{DZcQYS8AC3Q4KMNZ.mjs → CjKioy-GzeSf08f8.mjs} +599 -597
  15. package/browser/esm/{EvN99eSJ3aoJPumL.mjs → DUi-V-E_AJwTIqlO.mjs} +2 -2
  16. package/browser/esm/{B9qJ5NSreEcSeTPX.mjs → DwcLXqv8-6Tl1zLO.mjs} +1 -1
  17. package/browser/esm/{Cka8nUQmzdu2avsT.mjs → cJxidonaVNZHAXiZ.mjs} +899 -795
  18. package/browser/esm/{BIfJ7hj1nXfdThAg.mjs → dsVZVtt5w_yLb967.mjs} +1236 -1150
  19. package/browser/esm/index.mjs +2 -2
  20. package/node/esm/{DmlGXhQHqcwqLA05.mjs → BRQYaMYO4UfhjJHw.mjs} +2 -2
  21. package/node/esm/{BJHtwV9ss8ol7zme.mjs → BlbtH3EvAf3K4foF.mjs} +177 -83
  22. package/node/esm/{CRjza0eYeRMSvbQf.mjs → C51yFT2l-6il_xXO.mjs} +1 -1
  23. package/node/esm/{C0lFi5Rstdk8y5VR.mjs → CMq7eF1vxibUumqT.mjs} +2 -2
  24. package/node/esm/{CsrSCSuGVvpk7uBv.mjs → DLBm8l0jyL2fVlxg.mjs} +2 -2
  25. package/node/esm/{CwK9xIdlW4XaFkip.mjs → DhSPOg9wN0kD87Tb.mjs} +380 -288
  26. package/node/esm/{CT9_4oNvQhBAW0fh.mjs → KeV-N47eTyh5YE70.mjs} +1652 -1545
  27. package/node/esm/index.mjs +4 -4
  28. package/node/esm/{DqkQZkjIOnAGH7ah.mjs → s_yVG0m9KB14YKeN.mjs} +576 -574
  29. package/package.json +3 -3
  30. package/types/src/reader/domVisitors/CommentVisitor.d.ts +7 -2
  31. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +4 -0
  32. package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts +9 -0
  33. package/types/src/utils/VmlNoteShapes.d.ts +82 -22
  34. package/types/src/writer/emitters/CommentsEmitter.d.ts +9 -3
  35. package/types/src/writer/emitters/ThreadedCommentsEmitter.d.ts +7 -1
  36. package/browser/cjs/C8oC1tPbhgR0Dqtx.cjs +0 -2
  37. package/browser/cjs/CUhvQ38mNlw3YIEp.cjs +0 -5
  38. package/browser/cjs/sNZR19Wk-XQ2xZ9E.cjs +0 -1
@@ -1,5 +0,0 @@
1
- require("./DOTve1YXP86VW8ln.cjs");const e=require("./DULsYP_GcPGLVYSE.cjs");let t=require("@sheetxl/sdk");var n=`resourcesById`,r=class{constructor(e){this._kind=e.kind,this._contentType=e.contentType,this._relTypeUri=e.relTypeUri,this._path=e.path}getKind(){return this._kind}getContentType(e){return this._contentType}getRelTypeUri(e){return this._relTypeUri}getPath(e){return typeof this._path==`function`?this._path(e):this._path}},i=class t{constructor(e,t,n){this.zipWriter=e,this.outputKind=t,this.outWritable=n}static createUint8Array(n){let r=new e.G(new e.Z,n);return new t(r,`uint8array`)}static createBlob(n){let r=new e.G(new e.J(`application/zip`),n);return new t(r,`blob`)}static createWritableStream(n,r){let i=new e.G(n,r);return new t(i,`writable`,n)}async add(t,n,r){let i=function(e){let t=e.replace(/\\/g,`/`).trim();for(;t.startsWith(`/`);)t=t.slice(1);return t}(t),a={level:r?.level,password:r?.password,encryptionStrength:r?.encryptionStrength,zipCrypto:r?.zipCrypto,lastModDate:r?.lastModDate,keepOrder:r?.keepOrder,uncompressedSize:r?.uncompressedSize,dataDescriptor:r?.dataDescriptor,passThrough:r?.passThrough,compressionMethod:r?.compressionMethod,signature:r?.signature};if(typeof n==`string`)return void await this.zipWriter.add(i,new e.Y(n),a);if(n instanceof Uint8Array||ArrayBuffer.isView(n)||n&&typeof n.byteLength==`number`&&typeof n.byteOffset==`number`){try{await this.zipWriter.add(i,new e.X(n),a)}catch(e){throw console.log(`Error adding Uint8Array source to zip:`,i,a),e}return}let o=(s=n)&&typeof s.getReader==`function`?n:function(e){let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){let{value:n,done:r}=await t.next();r?e.close():e.enqueue(n)},async cancel(e){if(typeof t.return==`function`)try{await t.return(e)}catch{}}})}(n);var s;await this.zipWriter.add(i,o,a)}async close(e){let t=e?.comment,n=await this.zipWriter.close(t,{});return this.outputKind===`writable`?this.outWritable??n:n}};function a(e){let t=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),n=e=>t(e).replace(/"/g,`&quot;`),r=e=>{if(!e)return``;let t=``;for(let[r,i]of Object.entries(e))i!==void 0&&!1!==i&&(t+=!0===i?` ${r}="1"`:` ${r}="${n(String(i))}"`);return t},i=new TextEncoder,a=``,o=()=>{a&&=(e.write(i.encode(a)),``)},s=e=>{a+=e,a.length>65536&&o()},c=[],l=null,u=[],d=!0;return{decl(){s(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>`)},pushDefaultNamespace(e){c.push(e),l=e},getDefaultNamespace:()=>c.length>0?c[c.length-1]:null,popDefaultNamespace(){c.length>0&&(c.pop(),l=c.length>0?c[c.length-1]:null)},start(e,t){d&&u.push({tag:e,attrs:t,bufferPos:a.length});let n=e;l&&e.indexOf(`:`)===-1&&(n=`${l}:${e}`),s(`<${n}${r(t)}>`)},empty(e,t){let n=e;l&&e.indexOf(`:`)===-1&&(n=`${l}:${e}`),s(`<${n}${r(t)}/>`)},text(e){s(t(String(e)))},raw(e){s(e)},end(e){let t;if(d){if(u.length===0)throw Error(`XML Writer: Unexpected end tag </${e}> - no matching start tag`);if(t=u[u.length-1],t.tag!==e)throw Error(`XML Writer: End tag </${e}> does not match start tag <${t.tag}>`)}let n=e;if(l&&e.indexOf(`:`)===-1&&(n=`${l}:${e}`),d){let e=a.length,i=`<${n}${r(t.attrs)}>`.length;e===t.bufferPos+i?(a=a.slice(0,t.bufferPos),s(`<${n}${r(t.attrs)}/>`)):s(`</${n}>`),u.pop()}else s(`</${n}>`)},close(){o()},setValidationDisabled(e){d=!e}}}function o(e){switch(e.kind){case`bytes`:return e.bytes;case`text`:return e.text;case`stream`:return e.stream;case`xmlStream`:{let t=[],n=a({write:e=>t.push(e)});return e.writeXml(n),n.close(),function(e){let t=0;for(let n of e)t+=n.byteLength;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.byteLength;return n}(t)}case`xmlStreamed`:return e.write()}}function s(e){let t=c(e);if(!t)return`_rels/.rels`;let n=t.lastIndexOf(`/`),r=n>=0?t.slice(0,n):``;return`${r?`${r}/_rels`:`_rels`}/${n>=0?t.slice(n+1):t}.rels`}function c(e){let t=(e??``).replace(/\\/g,`/`).trim();for(;t.startsWith(`/`);)t=t.slice(1);return t}function l(e){let t=(e??``).replace(/\\/g,`/`).trim();return t.startsWith(`/`)||(t=`/`+t),t}function u(e){let t=/^rId(\d+)$/.exec(e);return t?parseInt(t[1],10):2**53-1}function d(e){return String(e).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/"/g,`&quot;`).replace(/>/g,`&gt;`)}function f(e,t,n,r=!1){let i=t;if(t.startsWith(`/`))i=t.slice(1);else{if(!e)throw Error(`Relative path "${t}" cannot be used at root level. Use an absolute path starting with "/" (e.g., "/xl/workbook.xml").`);i=(e.includes(`/`)?e.slice(0,e.lastIndexOf(`/`)+1):``)+t}if(i=p(i),!i.includes(`{n}`)){if(!r&&n.has(i))throw Error(`Path already existing path: ${i}`);return i}let a,o=1;do if(a=i.replace(/{n}/g,String(o)),o++,o>1e4)throw Error(`Failed to resolve path template "${t}" after 10000 attempts. This likely indicates a bug or an impossible constraint.`);while(n.has(a));return a}function p(e){let t=e.split(`/`),n=[];for(let r of t)if(r!==``&&r!==`.`)if(r===`..`){if(n.length===0)throw Error(`Invalid path: too many ".." segments in "${e}"`);n.pop()}else n.push(r);return n.join(`/`)}function m(e,t){if(!e)return t;let n=e.includes(`/`)?e.slice(0,e.lastIndexOf(`/`)):``,r=n?n.split(`/`):[],i=t.split(`/`),a=0,o=Math.min(r.length,i.length-1);for(let e=0;e<o&&r[e]===i[e];e++)a++;let s=r.length-a;return`../`.repeat(s)+i.slice(a).join(`/`)}function h(e){return new TextEncoder().encode(e)}function g(e,t){return function(e,t=` `){let n=``,r=0,i=e.split(/(<[^>]+>)/g).filter(Boolean);for(let e=0;e<i.length;e++){let a=i[e];if(a.trim())if(a.startsWith(`<?`))n+=a+`
2
- `;else if(a.startsWith(`</`))r--,r<0&&console.warn(`XML formatting warning: negative indentation depth: ${a}`),n+=t.repeat(Math.max(r,0))+a+`
3
- `;else if(a.startsWith(`<`)){let e=a.endsWith(`/>`);n+=t.repeat(r)+a+`
4
- `,e||r++}else n+=t.repeat(r)+a.trim()+`
5
- `}return n}(function(e){return new TextDecoder(`utf-8`).decode(e)}(e),t)}var _=class{constructor(e){this.rels=[],this.usedIds=new Set,this.reservedIds=new Set,this.nextId=1,this.sourcePart=c(e)}add(e,t,n){let r=n?.idHint&&!this.usedIds.has(n.idHint)?n.idHint:void 0;if(!r)do r=`rId`+this.nextId++;while(this.usedIds.has(r)||this.reservedIds.has(r));let i=/^rId(\d+)$/.exec(r);return i&&(this.nextId=Math.max(this.nextId,parseInt(i[1],10)+1)),this.usedIds.add(r),this.rels.push({id:r,type:e,target:t,targetMode:n?.external?`External`:void 0}),r}reserve(e){for(let t of e){if(!t)continue;this.reservedIds.add(t);let e=/^rId(\d+)$/.exec(t);e&&(this.nextId=Math.max(this.nextId,parseInt(e[1],10)+1))}}list(){return this.rels}toXmlBytes(){let e=[...this.rels].sort((e,t)=>u(t.id)-u(e.id)||e.id.localeCompare(t.id)),t=[];t.push(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>`),t.push(`<Relationships xmlns="${v}">`);for(let n of e){let e=[`Id="${d(n.id)}"`,`Type="${d(n.type)}"`,`Target="${d(n.target)}"`];n.targetMode===`External`&&e.push(`TargetMode="External"`),t.push(`<Relationship ${e.join(` `)}/>`)}return t.push(`</Relationships>`),h(t.join(``))}},v=`http://schemas.openxmlformats.org/package/2006/relationships`,y=class{constructor(){this._defaultsSet=new Set,this._overridesSet=new Set,this._defaults=[],this._overrides=[]}addDefault(e,t){let n=function(e){let t=(e??``).trim().toLowerCase();return t.startsWith(`.`)&&(t=t.slice(1)),t}(e);this._defaultsSet.has(n)||(this._defaultsSet.add(n),this._defaults.push({key:n,content:t}))}addOverride(e,t){let n=l(e);this._overridesSet.has(n)||(this._overridesSet.add(n),this._overrides.push({key:n,content:t}))}replaceOverride(e,t){let n=l(e);if(!this._overridesSet.has(n))return;let r=this._overrides.find(e=>e.key===n);r&&(r.content=t)}toXmlBytes(){let e=[];e.push(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>`),e.push(`<Types xmlns="${b}">`);let t=this._defaults.reverse();this.addDefault(`rels`,`application/vnd.openxmlformats-package.relationships+xml`),this.addDefault(`xml`,`application/xml`);for(let{key:n,content:r}of t)e.push(`<Default Extension="${d(n)}" ContentType="${d(r)}"/>`);let n=this._overrides;for(let{key:t,content:r}of n)e.push(`<Override PartName="${d(t)}" ContentType="${d(r)}"/>`);return e.push(`</Types>`),h(e.join(``))}},b=`http://schemas.openxmlformats.org/package/2006/content-types`,x=class{constructor(e){this.parts=[],this.relsRoot=new _(``),this.relsByPart=new Map,this.contentTypes=new y,this.zip=e}addContentType(e,t){let n=c(e);this.contentTypes.addOverride(`/`+n,t)}addDefaultType(e,t){this.contentTypes.addDefault(e,t)}replaceContentType(e,t){this.contentTypes.replaceOverride(`/`+c(e),t)}addPart(e,t,n,r){let i=c(e);this.parts.push({path:i,body:t,optionsZip:r}),n&&this.contentTypes.addOverride(`/`+i,n)}rels(e){let t=c(e||``);if(!t)return this.relsRoot;let n=this.relsByPart.get(t);return n||(n=new _(t),this.relsByPart.set(t,n)),n}async emit(){let e=[...this.parts].sort((e,t)=>e.path.localeCompare(t.path));for(let t of e){let e=o(t.body);await this.zip.add(t.path,e,t.optionsZip)}let t=this.relsRoot.toXmlBytes();await this.zip.add(`_rels/.rels`,t,{});let n=[...this.relsByPart.values()].sort((e,t)=>e.sourcePart.localeCompare(t.sourcePart));for(let e of n){let t=s(e.sourcePart),n=e.toXmlBytes();await this.zip.add(t,n,{})}let r=this.contentTypes.toXmlBytes();await this.zip.add(`[Content_Types].xml`,r,{})}async build(e){return await this.emit(),await this.zip.close(e)}},S=new Set([`xl/calcChain.xml`]),C=[/^xl\/slicers\//i,/^xl\/slicerCaches\//i];function w(e){return e===`[Content_Types].xml`||T.test(e)}var T=/^(?:(.*)\/)?_rels\/(.*)\.rels$/;function E(e){if(e===`_rels/.rels`)return``;let t=T.exec(e);if(!t)return null;let n=t[1]??``,r=t[2];return n?`${n}/${r}`:r}function D(e){return e.startsWith(`#`)}function O(e,t){if(t.startsWith(`/`))return p(t);let n=e.includes(`/`)?e.slice(0,e.lastIndexOf(`/`)):``;return p((n?n+`/`:``)+t)}var k=class{constructor(e,t,n){this._queue=[],this._scheduledByNodeKey=new Map,this._nodesByPath=new Map,this._writtenPaths=new Set,this._explicitRelTargets=new Set,this._partWriter=new x(e),this._registry=t,this._options=n??{},this._mapState=this._options.mapState??new Map,this._sourcePackage=this._options.sourcePackage??null,this._macroEnabled=this._options.macroEnabled??!1,this._reserveSourceRelIds(``)}_isSourcePartCarried(e){let t=this._sourcePackage;return!(!t||!t.has(e))&&!S.has(e)&&!t.isAbsorbed(e)&&!(!this._macroEnabled&&e===`xl/vbaProject.bin`)&&!w(e)&&(!t.hasStructuralChange()||!function(e){return C.some(t=>t.test(e))}(e))}_reserveSourceRelIds(t){let n=this._sourcePackage?.getPart(s(t));n&&this._partWriter.rels(t).reserve(e.W(n.data).map(e=>e.id))}async waitEmit(){let e=this._queue;for(;e.length;){let t=e.shift();await this._processPart(t)}}async build(e){return await this.waitEmit(),this._passthroughSourceParts(),this._applyWorkbookContentTypeVariant(),await this._partWriter.build(e??{})}_passthroughSourceParts(){let t=this._sourcePackage;if(!t)return;let n=new Set(this._writtenPaths),r=[];for(let e of t.getNames())n.has(e)||this._isSourcePartCarried(e)&&r.push(e);let i=new Set(n);for(let e of r)i.add(e);let a=t.getPart(`[Content_Types].xml`),o=a?e.U(a.data):null;if(o)for(let{ext:e,contentType:t}of o.defaults)this._partWriter.addDefaultType(e,t);for(let e of r){let n=t.getPart(e),r=o?.overrides.get(`/`+e);n.raw?this._partWriter.addPart(e,{kind:`bytes`,bytes:n.raw.compressedData},r,{passThrough:!0,compressionMethod:n.raw.compressionMethod,signature:n.raw.signature,uncompressedSize:n.uncompressedSize}):this._partWriter.addPart(e,{kind:`bytes`,bytes:n.data},r),this._writtenPaths.add(e)}for(let e of t.getNames()){if(e===`[Content_Types].xml`||!w(e))continue;let r=E(e);r!==null&&(r===``||i.has(r))&&(t.isAbsorbed(r)||this._mergeSourceRelsInto(r,t.getPart(e).data,n,i))}}_applyWorkbookContentTypeVariant(){this._macroEnabled&&this._partWriter.replaceContentType(`xl/workbook.xml`,`application/vnd.ms-excel.sheet.macroEnabled.main+xml`)}_mergeSourceRelsInto(t,n,r,i){let a=this._partWriter.rels(t),o=t===``||r.has(t);for(let s of e.W(n)){if(s.external||D(s.target)){a.add(s.type,s.target,{external:s.external,idHint:s.id});continue}let e=O(t,s.target);o&&(r.has(e)||this._explicitRelTargets.has(`${t}::${e}`))||(i.has(e)?a.add(s.type,s.target,{idHint:s.id}):this._registry.ownsRelType(s.type)||S.has(e)||this._sourcePackage?.isAbsorbed(e)||console.warn(`Dropping preserved relationship to missing part '${e}'`,t||`(root)`))}}addPart(e,t,n,r){return this._addPartInternal(``,e,t,n,r)}_addPartInternal(e,t,n,r,i){let a=this._registry.get(t);if(!a)throw Error(`No emitter registered for kind '${t}'.`);let o=a.getContentType(n),s=a.getRelTypeUri(n),c=r??a.getPath?.(n);if(!c)throw Error(`No path provided in either argument or emitter.`);let l=this._writtenPaths,u=f(e,c,l),d=`${t}:${u}`,p=this._scheduledByNodeKey.get(d);if(!p){let e;this._reserveSourceRelIds(u),p={kind:t,key:d,payload:n,path:u,contentType:o,promise:new Promise(t=>{e=t}),resolve:e},this._scheduledByNodeKey.set(d,p),this._queue.push(p)}let h=this._nodesByPath.get(e);h||(h=new Set,this._nodesByPath.set(e,h)),h.add(d),!o||s||e||this._partWriter.rels(``).add(`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`,u);let g=null;if(s){let t=m(e,p.path);g=this._partWriter.rels(e).add(s,t,{idHint:i})}return l.add(u),{path:u,contentTypeUri:o,relId:g}}addBinary(e,t,n,r,i=!1,a){return this._addBinaryInternal(``,e,t,n,r,i,a)}_addBinaryInternal(e,t,n,r,i,a=!1,o){if(!i)throw Error(`No path provided for binary.`);if(!n)throw Error(`No content type provided for binary.`);let s=this._writtenPaths,c=f(e,i,s,a),l=null;if(r){let t=m(e,c);l=this._partWriter.rels(e).add(r,t,{idHint:o})}if(e||this._partWriter.rels(``).add(`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`,c),!s.has(c)){let e=c.split(`.`).pop()||``;e&&this._partWriter.addDefaultType(e,n),this._partWriter.addPart(c,{kind:`bytes`,bytes:t},void 0,{level:0,uncompressedSize:t.byteLength,dataDescriptor:!1}),s.add(c)}return{path:c,contentTypeUri:n,relId:l}}async _waitForDescendants(e){let t=this._nodesByPath.get(e);if(!t||t.size===0)return;let n=[];for(let e of t){let t=this._scheduledByNodeKey.get(e);if(t){let e=this._processPart(t);n.push(e)}}await Promise.all(n)}async _processPart(e){if(e.processed)return e.promise;e.processed=!0;let t=this._registry.get(e.kind),n=e.path;this._partWriter.addContentType(e.path,e.contentType);try{let r=[],i={write:e=>{r.push(e)}},o;await t.emit(e.payload,{getXMLWriter:()=>o||(o=a(i),o),addPart:(e,t,r,i)=>this._addPartInternal(n,e,t,r,i),addBinary:(e,t,r,i,a=!1,o)=>this._addBinaryInternal(n,e,t,r,i,a,o),addExternal:(e,t,r)=>({path:t,contentTypeUri:null,relId:this._partWriter.rels(n).add(e,t,{external:!0,idHint:r})}),addRelationship:(e,t,r)=>{if(!this._writtenPaths.has(t)&&!this._isSourcePartCarried(t))return null;let i=m(n,t),a=this._partWriter.rels(n).add(e,i,{idHint:r});return this._explicitRelTargets.add(`${n}::${t}`),a},waitEmit:()=>this._waitForDescendants(e.path),getPath:()=>e.path,getSharedStates:()=>this._mapState,warn:(t,n,r)=>{let i=n??e.path,a=this._options.onWarning;a?a(t,i,r):console.warn(t,i)},log:(t,n)=>{console.warn(t,n??e.path)}});let s=function(e){let t=0;for(let n of e)t+=n.byteLength;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.byteLength;return n}(r),c=this._options.onPartEmitted;c&&await c(e.kind,e.path,s),ee&&(console.log(`\n=== ${e.path} ===`),console.log(g(s))),this._partWriter.addPart(e.path,{kind:`bytes`,bytes:s},e.contentType)}catch(t){throw this._options.onPartError?.(e.kind,e.path,t),t}finally{this._nodesByPath.delete(e.path),this._scheduledByNodeKey.delete(e.key),e.resolve()}}},ee=!1,A=class{constructor(){this.map=new Map}register(e){let t=e.getKind();if(this.map.has(t))throw Error(`Duplicate part kind: ${t}`);this.map.set(t,e)}get(e){let t=this.map.get(e);if(!t)throw Error(`Unknown part kind: ${e}`);return t}has(e){return this.map.has(e)}ownsRelType(e){for(let t of this.map.values())if(t.getRelTypeUri()===e)return!0;return!1}};function j(e,t,n){e&&(e.algorithm&&(t[n?`${n}AlgorithmName`:`algorithmName`]=e.algorithm),e.hash&&(t[n?`${n}HashValue`:`hashValue`]=e.hash),e.salt&&(t[n?`${n}SaltValue`:`saltValue`]=e.salt),e.spinCount!==void 0&&(t[n?`${n}SpinCount`:`spinCount`]=e.spinCount))}var te=`hiddenFormulaXfs`,M=class{constructor(e,t){this._variants=new Map,this._sources=[],this._json=e,this._styles=t,this._directCount=Math.max(1,e?.direct?.length??0)}getHiddenXf(e){let t=this._variants.get(e);return t!==void 0||(this._isShown(e)?t=e:(t=this._directCount+this._sources.length,this._sources.push(e)),this._variants.set(e,t)),t}getSources(){return this._sources}_isShown(e){let n=this._json?.direct?.[e],r=n?.protection?.showFormulas;if(r!==void 0)return r;let i=(e===0?void 0:n?.named)??t.IStyle.BuiltInName.Normal;return this._styles.getNamedStyles().getByName(i)?.toJSON().style?.protection?.showFormulas??!1}},N=class{constructor(){this._daprFMBks=[],this._daprFMBkMap=new Map,this._rvFMBks=[],this._rvFMBkMap=new Map,this._valueMeta=[]}registerArrayCell(e){let t=+!!e,n=`1,${t}`,r=this._daprFMBkMap.get(n);return r===void 0&&(r=this._daprFMBks.length,this._daprFMBks.push({fDynamic:1,fCollapsed:t}),this._daprFMBkMap.set(n,r)),r+1}registerRichValueCell(e){let t=this._rvFMBkMap.get(e);t===void 0&&(t=this._rvFMBks.length,this._rvFMBks.push(e),this._rvFMBkMap.set(e,t));let n=this._valueMeta.length;return this._valueMeta.push(t),n+1}hasCellMeta(){return this._daprFMBks.length>0}hasValueMeta(){return this._valueMeta.length>0}hasAny(){return this.hasCellMeta()||this.hasValueMeta()}getDAPRFutureMetadataBlocks(){return this._daprFMBks}getRVFutureMetadataBlocks(){return this._rvFMBks}getValueMeta(){return this._valueMeta}},ne=class{constructor(e,t=console.warn){this._entries=[],this._keyMap=new Map,this._metaCollector=e,this._onWarn=t}add(e){if(e==null)return this._onWarn?.(`RichValueCollector.add: null/undefined value — falling back to #UNKNOWN!`),this._registerFallback();if(t.FormulaError.isError(e)){let t=e.getCode(),n=this._register(`_error:${t}`,{errorType:``+(t-1)},P);return this._metaCollector.registerRichValueCell(n)}return e.isIRichData&&e.getType(),this._onWarn?.(`RichValueCollector.add: unsupported rich value type — falling back to #UNKNOWN!`,e),this._registerFallback()}_registerFallback(){let e=this._register(`_error:fallback`,{errorType:t.FormulaError.Code.Unknown-1},P);return this._metaCollector.registerRichValueCell(e)}_register(e,t,n){let r=this._keyMap.get(e);return r===void 0&&(r=this._entries.length,this._entries.push({handler:n,rawValue:t}),this._keyMap.set(e,r)),r}getCount(){return this._entries.length}hasAny(){return this._entries.length>0}getEntries(){return this._entries}uniqueHandlers(){let e=new Set,t=[];for(let n of this._entries)e.has(n.handler)||(e.add(n.handler),t.push(n.handler));return t}handlerStructureIndex(e){let t=0,n=new Set;for(let r of this._entries)if(!n.has(r.handler)){if(r.handler===e)return t;n.add(r.handler),t++}return-1}},P=new class{constructor(e,t){this.type=e,this.props=t}getValues(e){return this.props.map(([t,,n=``])=>{let r=e?.[t];return r==null?n:``+r})}}(`_error`,[[`errorType`,`i`,``],[`subType`,`i`,`0`]]),F=`application/xml`,I=async(e,t)=>{let n=e.parts,r=n?n.length:0;for(let i=0;i<r;i++){let r=n[i];try{await L(r,t)}catch(n){t.log(`Unable to write the part '${r.name??r.id}' referenced by '${e.name??e.id}'`,n)}}},L=async(e,t,r)=>{let i=e.resId===void 0?void 0:t.getSharedStates().get(n)?.get(e.resId);if(!i)return e.resId===void 0?t.addPart(`embeddedPart`,e,r,e.id):(t.log(`The part '${e.name??e.id}' cites resource ${e.resId}, which is not in the workbook.`),null);let a=await i.getExternalURI();if(a){let n=t.addExternal(e.type,a,e.id);return n.relId!==e.id&&t.log(`The external reference '${e.id}' was written as '${n.relId}'; the markup will not find it.`),n}let o=await i.toBuffer();return t.addBinary(new Uint8Array(o),e.contentType||F,e.type,r??`./${re(e.name)}`,!1,e.id)},re=e=>{let t=e&&/^[\w.\-~%]+$/.test(e)?e:`part.xml`,n=t.lastIndexOf(`.`),r=n>0?t.slice(0,n):t,i=n>0?t.slice(n):``;return`${r.replace(/\d+$/,``)}{n}${i}`},ie=`application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml`,ae=(e,t)=>e.getSharedStates().get(`pivotCachePaths`)?.get(t)??null,oe=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink`,se=`fileVersion`,ce=`sheetParts`,le=`externalLinkParts`;function ue(e){if(!e||e.indexOf(`[`)===-1)return[];let t=[],n=e.replace(/"(?:[^"]|"")*"/g,``);for(let e of n.matchAll(/\[(\d+)\]/g)){let n=Number(e[1]);n>0&&!t.includes(n)&&t.push(n)}return t}var de={auto:`auto`,automaticExceptTables:`autoNoTable`,manual:`manual`};function R(e,n,r,i){if(!r)return;let a=typeof r==`string`?n.parseColor(r):r;i&&e.start(i);let o=a.getType(),s=a.getVal(),c=a.getAdjustments(),l=c&&c.length>0;switch(o){case`scheme`:l?(e.start(`schemeClr`,{val:s}),z(e,c),e.end(`schemeClr`)):e.empty(`schemeClr`,{val:s});break;case`named`:if(t.Color.isSystem(s)){let t=a.getLastColor()??a.getBaseColor().toHex().toString(!1).replace(`#`,``);l?(e.start(`sysClr`,{val:s,lastClr:t}),z(e,c),e.end(`sysClr`)):e.empty(`sysClr`,{val:s,lastClr:t})}else l?(e.start(`prstClr`,{val:s}),z(e,c),e.end(`prstClr`)):e.empty(`prstClr`,{val:s});break;case`auto`:{let t=a.getLastColor()??a.getBaseColor().toHex().toString(!1).replace(`#`,``);l?(e.start(`sysClr`,{val:`windowText`,lastClr:t}),z(e,c),e.end(`sysClr`)):e.empty(`sysClr`,{val:`windowText`,lastClr:t});break}case`index`:l?(e.start(`srgbClr`,{val:s}),z(e,c),e.end(`srgbClr`)):e.empty(`srgbClr`,{val:s});break;case`hsl`:let n=a.toHex().toString();l?(e.start(`srgbClr`,{val:n}),z(e,c),e.end(`srgbClr`)):e.empty(`srgbClr`,{val:n});break;case`rgb`:case`lrgb`:let r=a.toHex().toString();l?(e.start(`srgbClr`,{val:r}),z(e,c),e.end(`srgbClr`)):e.empty(`srgbClr`,{val:r});break;case`hex`:let i=s.replace(`#`,``).toUpperCase();l?(e.start(`srgbClr`,{val:i}),z(e,c),e.end(`srgbClr`)):e.empty(`srgbClr`,{val:i});break;default:let o=s.replace(`#`,``).toUpperCase();e.empty(`srgbClr`,{val:o})}i&&e.end(i)}function z(e,t){if(t&&t.length!==0)for(let n of t)for(let[t,r]of Object.entries(n)){if(r==null)continue;let n=t;if(n)if(typeof r==`boolean`)e.empty(n);else{let i;if(t===`alpha`||t===`alphaOff`||t===`alphaMod`)i=Math.round(1e5*r);else{if(t===`eTint`){if(r<0){e.empty(`shade`,{val:Math.round(1e5*(1+r)).toString()});continue}e.empty(`tint`,{val:Math.round(1e5*r).toString()});continue}i=Math.round(1e3*r)}e.empty(n,{val:i.toString()})}}}function B(e,n,r,i,a=!1,o=!1){if(!r)return;let s=typeof r==`string`?n.parseColor(r):r,c=()=>{e.empty(i,{rgb:ve(s.toHex().toString(!0))})},l=s.getAdjustments(),u=l&&l.length>0,d=s.getType();if(d!==t.IColor.Type.Auto){if(d===t.IColor.Type.Scheme){let n=s.getVal(),r=fe[n]??n,a=he.get(r);if(a===void 0&&r!==`phClr`)return console.warn(`Color scheme not in theme. schemeVal=${n} themeKey=${r}`),c();let o={};if(o.theme=a,u){if(!function(e){for(let n of e)switch(Object.keys(n)[0]){case t.IColor.AdjustmentType.Tint:case t.IColor.AdjustmentType.ETint:case t.IColor.AdjustmentType.Shade:case t.IColor.AdjustmentType.Lum:case t.IColor.AdjustmentType.LumOff:case t.IColor.AdjustmentType.LumMod:case t.IColor.AdjustmentType.Alpha:case t.IColor.AdjustmentType.AlphaOff:case t.IColor.AdjustmentType.AlphaMod:continue;default:return!1}return!0}(l))return c();let e=l.length===1?l[0][t.IColor.AdjustmentType.ETint]:void 0,n;if(e!==void 0)n=ge(e);else{let e=s.getBaseColor().toHex().toString(!0),t=s.toHex().toString(!0);n=ge(function(e,t){let n=V(e,0,255),r=V(t,0,255);return Math.abs(r-n)<1e-9?0:r<n?n<=1e-9?-1:V(r/n-1,-1,0):255-n<=1e-9?0:V((r-n)/(255-n),0,1)}(_e(e),_e(t)))}n!==0&&(o.tint=n)}e.empty(i,o);return}if(d===t.IColor.Type.Index){let t=s.getVal(),n=t.substring(5,t.length);e.empty(i,{indexed:Number(n)});return}return c()}e.empty(i,{auto:1})}var fe={bg1:`lt1`,tx1:`dk1`,bg2:`lt2`,tx2:`dk2`,accent1:`accent1`,accent2:`accent2`,accent3:`accent3`,accent4:`accent4`,accent5:`accent5`,accent6:`accent6`,hlink:`hlink`,folHlink:`folHlink`},pe=Object.freeze([`lt1`,`dk1`,`lt2`,`dk2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`]),me=Object.freeze([`dk1`,`lt1`,`dk2`,`lt2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`]),he=new Map(pe.map((e,t)=>[e,t]));function V(e,t,n){return Math.max(t,Math.min(n,e))}function ge(e){let t=V(e,-1,1);return Math.abs(t)<1e-12?0:t}function _e(e){let t=function(e){let t=e.replace(/^#/,``).toUpperCase();if(t.length===8)return t.slice(2);if(t.length===6)return t;throw Error(`Invalid hex: ${e}`)}(e),n=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,i=parseInt(t.slice(4,6),16)/255;return(Math.max(n,r,i)+Math.min(n,r,i))/2*255}function ve(e){let t=e.replace(/^#/,``).toUpperCase();if(t.length===8)return t;if(t.length===6)return`FF`+t;throw Error(`Invalid hex: ${e}`)}function ye(e,t=!1){let n=e;return n.length===8&&(n=n.substring(2,8)),n.length===6&&(n=(t?`00`:`FF`)+n),n.toUpperCase()}function be(e){return`[Threaded comment]\n\nYour version of Excel allows you to read this threaded comment; however, any edits to it will get removed if the file is opened in a newer version of Excel. Learn more: https://go.microsoft.com/fwlink/?linkid=870924\n\nComment:\n ${e.getContent()}`}function xe(e,t){if(typeof t==`string`)return void Se(e,t);let n=t.runs;for(let t=0;t<n.length;t++){let r=n[t];e.start(`r`),(r.bold||r.italic||r.size!==void 0||r.font||r.color)&&(e.start(`rPr`),r.bold&&e.empty(`b`),r.italic&&e.empty(`i`),r.size!==void 0&&e.empty(`sz`,{val:r.size}),r.color&&e.empty(`color`,{rgb:`FF`+r.color.replace(/^#/,``).toUpperCase()}),r.font&&e.empty(`rFont`,{val:r.font}),e.end(`rPr`)),Se(e,r.text??``),e.end(`r`)}}function Se(t,n){t.start(`t`,e.w.test(n)||/[\n\r]/.test(n)?e.C:void 0),t.text(n),t.end(`t`)}function Ce(e){let n=e.getRanges();if(n.isInvalid())return null;let r=n.getCoords()[0];return r?{ref:t.AddressUtils.cellToString({rowIndex:r.rowStart,colIndex:r.colStart}),row:r.rowStart,col:r.colStart}:null}function H(e,n,r,i,a=!1,o=!1){let s=i.getTheme();if(a&&n.start(`fill`),typeof r==`string`&&(r={type:t.IFill.Type.Solid,color:r}),r.type===t.IFill.Type.None)a?n.empty(`patternFill`,{patternType:`none`}):n.empty(`noFill`);else if(r.type===t.IFill.Type.Solid){let e=r;a?n.start(`patternFill`,{patternType:`solid`}):n.start(`solidFill`),e.color&&(a?B(n,s,e.color,`fgColor`):R(n,s,e.color)),a?n.end(`patternFill`):n.end(`solidFill`)}else if(r.type===t.IFill.Type.Pattern){let e=r,t=e.patternType||`solid`;n.start(`patternFill`,{patternType:t}),e.foreground&&(a?B(n,s,o?e.background:e.foreground,`fgColor`):R(n,s,o?e.background:e.foreground)),e.background&&(a?B(n,s,o?e.foreground:e.background,`bgColor`):R(n,s,o?e.foreground:e.background)),n.end(`patternFill`)}else if(r.type===t.IFill.Type.Gradient&&a){let e=r,i={},a=e.gradientType;if(a!==t.IFill.GradientType.Path&&a!==t.IFill.GradientType.Linear||(i.type=a),e.angle!==void 0){let t=(e.angle-90)%360;t!==0&&(i.degree=String(t))}let o=e.focus;o&&(o.left&&(i.left=String(o.left)),o.right&&(i.right=String(o.right)),o.top&&(i.top=String(o.top)),o.bottom&&(i.bottom=String(o.bottom))),n.start(`gradientFill`,i);let c=e.stops;if(c&&c.length>0)for(let e of c){let t,r=0;if(typeof e==`string`||typeof e==`object`&&!(`offset`in e))t=e,r=0;else{let n=e;r=n.offset||0,t=n.color}n.start(`stop`,{position:String(r)}),t&&B(n,s,t,`color`),n.end(`stop`)}n.end(`gradientFill`)}else if(r.type===t.IFill.Type.Gradient){let e=r,i={};e.isRotatedWithShape!==void 0&&(i.rotWithShape=e.isRotatedWithShape?`1`:`0`),n.start(`gradFill`,i),n.start(`gsLst`);let a=e.stops;if(a&&a.length>0)for(let e of a){let r,i=0;if(typeof e==`string`||typeof e==`object`&&!(`offset`in e))r=e;else{let t=e;i=t.offset||0,r=t.color}n.start(`gs`,{pos:String(t.CommonUtils.roundAccurately(1e3*i,0))}),r&&R(n,s,r),n.end(`gs`)}n.end(`gsLst`);let o=e.gradientType;if(o&&o!==t.IFill.GradientType.Linear){let r=o===`radial`?`circle`:o;n.start(`path`,{path:r});let i=e.focus;if(i){let e={};i.t!==void 0&&(e.t=String(t.CommonUtils.roundAccurately(1e3*i.t,0))),i.l!==void 0&&(e.l=String(t.CommonUtils.roundAccurately(1e3*i.l,0))),i.b!==void 0&&(e.b=String(t.CommonUtils.roundAccurately(1e3*i.b,0))),i.r!==void 0&&(e.r=String(t.CommonUtils.roundAccurately(1e3*i.r,0))),n.empty(`fillToRect`,e)}n.end(`path`)}else{let r={};e.angle!==void 0&&(r.ang=String(t.CommonUtils.roundAccurately(6e4*e.angle,0)));let i=e.scaled;i!==void 0&&(r.scaled=i?`1`:`0`),n.empty(`lin`,r)}n.end(`gradFill`)}else a?n.empty(`patternFill`,{patternType:`none`}):n.empty(`noFill`);a&&n.end(`fill`)}var we=(e,n,r,i)=>{if(!r)return n.start(`ln`),n.empty(`noFill`),void n.end(`ln`);typeof r==`string`&&(r={fill:r});let a=r,o={};if(a.width!==void 0&&(o.w=String(G(a.width))),a.lineCap!==void 0&&(o.cap=Te(a.lineCap)),a.compound!==void 0&&(o.cmpd=a.compound),a.align!==void 0&&(o.algn=a.align),n.start(`ln`,o),H(0,n,a.fill??ke,i),Array.isArray(a.dash)){n.start(`custDash`);for(let e=0;e<a.dash.length;e+=2)n.empty(`ds`,{d:String(t.CommonUtils.roundAccurately(1e3*a.dash[e],0)),sp:String(t.CommonUtils.roundAccurately(1e3*(a.dash[e+1]??0),0))});n.end(`custDash`)}else typeof a.dash==`string`&&n.empty(`prstDash`,{val:a.dash});if(a.lineJoin===t.IStroke.LineJoin.Round)n.empty(`round`);else if(a.lineJoin===t.IStroke.LineJoin.Bevel)n.empty(`bevel`);else if(a.lineJoin===t.IStroke.LineJoin.Miter){let e={};a.miterLimit!==void 0&&(e.lim=String(t.CommonUtils.roundAccurately(1e5*a.miterLimit,0))),n.empty(`miter`,e)}n.end(`ln`)},Te=e=>e===`round`?`rnd`:e===`butt`?`flat`:e===`square`?`sq`:e,Ee=(e,t,n,r=void 0,i=!1)=>{if(!n||!(n.fill||n.stroke||n.effects?.length||i))return;let a=e.getXMLWriter();r&&a.start(r),a.pushDefaultNamespace(`a`),n.fill&&H(0,a,n.fill,t),n.stroke&&we(0,a,n.stroke,t),n.effects?.length?De(e,a,t.getTheme(),n.effects):i&&a.empty(`effectLst`),a.popDefaultNamespace(),r&&a.end(r)},De=(e,t,n,r)=>{t.start(`effectLst`);for(let e of r)Oe(t,n,e);t.end(`effectLst`)},Oe=(e,n,r)=>{switch(r.type){case t.IEffect.Type.OuterShadow:{let i=r,a={};i.blur!==void 0&&(a.blurRad=String(G(i.blur))),i.distance!==void 0&&(a.dist=String(G(i.distance))),i.angle!==void 0&&(a.dir=String(q(i.angle))),i.alignment!==void 0&&(a.algn=i.alignment),i.isRotatedWithShape!==void 0&&(a.rotWithShape=i.isRotatedWithShape?`1`:`0`),i.scaleX!==void 0&&(a.sx=String(t.CommonUtils.roundAccurately(1e3*i.scaleX,0))),i.scaleY!==void 0&&(a.sy=String(t.CommonUtils.roundAccurately(1e3*i.scaleY,0))),i.skewX!==void 0&&(a.kx=String(q(i.skewX))),i.skewY!==void 0&&(a.ky=String(q(i.skewY))),e.start(`outerShdw`,a),R(e,n,i.color),e.end(`outerShdw`);break}case t.IEffect.Type.InnerShadow:{let t=r,i={};t.blur!==void 0&&(i.blurRad=String(G(t.blur))),t.distance!==void 0&&(i.dist=String(G(t.distance))),t.angle!==void 0&&(i.dir=String(q(t.angle))),e.start(`innerShdw`,i),R(e,n,t.color),e.end(`innerShdw`);break}case t.IEffect.Type.PresetShadow:{let t=r,i={prst:t.preset};t.distance!==void 0&&(i.dist=String(G(t.distance))),t.angle!==void 0&&(i.dir=String(q(t.angle))),e.start(`prstShdw`,i),R(e,n,t.color),e.end(`prstShdw`);break}case t.IEffect.Type.Glow:{let t=r,i={};t.radius!==void 0&&(i.rad=String(G(t.radius))),e.start(`glow`,i),R(e,n,t.color),e.end(`glow`);break}case t.IEffect.Type.SoftEdge:{let t=r,n={};t.radius!==void 0&&(n.rad=String(G(t.radius))),e.empty(`softEdge`,n);break}case t.IEffect.Type.Reflection:{let n=r,i={};n.blur!==void 0&&(i.blurRad=String(G(n.blur))),n.distance!==void 0&&(i.dist=String(G(n.distance))),n.angle!==void 0&&(i.dir=String(q(n.angle))),n.fadeAngle!==void 0&&(i.fadeDir=String(q(n.fadeAngle))),n.startAlpha!==void 0&&(i.stA=String(t.CommonUtils.roundAccurately(1e3*n.startAlpha,0))),n.startPosition!==void 0&&(i.stPos=String(t.CommonUtils.roundAccurately(1e3*n.startPosition,0))),n.endAlpha!==void 0&&(i.endA=String(t.CommonUtils.roundAccurately(1e3*n.endAlpha,0))),n.endPosition!==void 0&&(i.endPos=String(t.CommonUtils.roundAccurately(1e3*n.endPosition,0))),n.scaleX!==void 0&&(i.sx=String(t.CommonUtils.roundAccurately(1e3*n.scaleX,0))),n.scaleY!==void 0&&(i.sy=String(t.CommonUtils.roundAccurately(1e3*n.scaleY,0))),n.skewX!==void 0&&(i.kx=String(q(n.skewX))),n.skewY!==void 0&&(i.ky=String(q(n.skewY))),n.alignment!==void 0&&(i.algn=n.alignment),n.isRotatedWithShape!==void 0&&(i.rotWithShape=n.isRotatedWithShape?`1`:`0`),e.empty(`reflection`,i);break}}},ke={type:`none`},U=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,W=`imagesWritten`,Ae={mime:`image/png`,ext:`png`},G=(e=0)=>t.CommonUtils.roundAccurately(12700*e,0),K=(e=0)=>t.CommonUtils.roundAccurately(9525*e,0),q=e=>6e4*e,je=(e=0)=>t.CommonUtils.roundAccurately(100*e,2),Me=class{constructor(){this._dxfs=[],this._byKey=new Map}add(e){let t=JSON.stringify(e),n=this._byKey.get(t);return n===void 0&&(n=this._dxfs.length,this._dxfs.push(e),this._byKey.set(t,n)),n}getDxfs(){return this._dxfs}getCount(){return this._dxfs.length}},Ne=`cfDxfs`,Pe=[`font`,`fill`,`borders`,`numberFormat`,`alignment`];function Fe(e,n,r){if(n){if(n.named){let i=n.named,a=i.toLowerCase(),o=r.namedStyleMap;if(!o.has(a)){o.set(a,``+o.size);let n=e.getNamedStyles().getByName(i).toJSON();Fe(e,n.style??t.CommonUtils.EmptyObject,r),r.namedStyles.push(n)}}n.font&&function(e,n,r){if(!n)return;let i=t.BufferUtils.JSONStableStringify(n),a=r.fontMap;if(!a.has(i)){let e=a.size;a.set(i,``+e),r.fonts.push(n)}}(0,n.font,r),n.fill&&function(e,n,r){if(!n)return;let i=t.BufferUtils.JSONStableStringify(n),a=r.fillMap;if(!a.has(i)&&typeof n==`object`&&n.type){let e=a.size;a.set(i,``+e),r.fills.push(n)}}(0,n.fill,r),n.borders&&function(e,n,r){if(!n)return;let i=t.BufferUtils.JSONStableStringify(n),a=r.borderMap;if(!a.has(i)){let e=a.size;a.set(i,``+e),r.borders.push(n)}}(0,n.borders,r),n.numberFormat!==void 0&&function(e,n,r){if(!n)return;let i=t.NumberFormat.toBuiltInID(n),a=r.numFmtMap;if(!a.has(i)){let e=0;typeof i==`number`?e=i:(e=r.numFmtsCustom.length+He,r.numFmtsCustom.push(i)),a.set(n,``+e)}}(0,n.numberFormat,r)}}function Ie(e,t,n){if(!t)return;let r=t.name.toLowerCase();n.namedStyleMap.has(r)||(n.namedStyleMap.set(r,``+n.namedStyleMap.size),n.namedStyles.push(t),Fe(e,t.style,n))}function Le(e,t,n,r,i=!1){let a=r.getDefaultFontSize(),o=r.getTheme().getFontScheme().getMinorFont()??`Calibri`,s=r.getNormal().getFont().getColor();t.start(`font`),n.weight&&n.weight>=700&&t.empty(`b`),n.style&&n.style!==`normal`&&t.empty(`i`),n.strike&&t.empty(`strike`),n.underline&&t.empty(`u`,{val:n.underline}),n.outline&&t.empty(`outline`),n.shadow&&t.empty(`shadow`),n.extend&&t.empty(`extend`);let c=n.verticalAlign;c&&(c===`super`&&(c=`superscript`),c===`sub`&&(c=`subscript`),t.empty(`vertAlign`,{val:c})),i?n.size!==void 0&&t.empty(`sz`,{val:String(n.size)}):t.empty(`sz`,{val:String(n.size??a)}),B(t,r.getTheme(),n.color??s,`color`,!i);let l=!i||n.family&&n.family!==o;if(l&&(t.empty(`name`,{val:n.family??o}),n.fallbacks&&n.fallbacks.length>0)){let e=n.fallbacks;e.includes(`serif`)?t.empty(`family`,{val:1}):e.includes(`sans-serif`)?t.empty(`family`,{val:2}):e.includes(`monospace`)?t.empty(`family`,{val:3}):e.includes(`cursive`)?t.empty(`family`,{val:4}):e.includes(`fantasy`)&&t.empty(`family`,{val:5})}n.charset!==void 0&&n.charset!==null&&t.empty(`charset`,{val:String(n.charset)});let u=n.scheme??(n.family===void 0?`minor`:void 0);l&&u!==void 0&&u!==`none`&&t.empty(`scheme`,{val:u}),t.end(`font`)}function J(e,t,n,r,i,a=!1){if(!i||i.style===`none`||!i.style)return void(a&&!i||t.empty(r));t.start(r,{style:i.style});let o=i.color;o&&B(t,n,o,`color`,!a,a),t.end(r)}function Re(e,t,n,r,i=!1){let a={};i?(a.diagonalUp=`0`,a.diagonalDown=`0`):(n.diagonalUp&&(a.diagonalUp=`1`),n.diagonalDown&&(a.diagonalDown=`1`)),t.start(`border`,a),J(0,t,r,`left`,n.left,i),J(0,t,r,`right`,n.right,i),J(0,t,r,`top`,n.top,i),J(0,t,r,`bottom`,n.bottom,i),i?(J(0,t,r,`vertical`,n.vertical,i),J(0,t,r,`horizontal`,n.horizontal,i)):J(0,t,r,`diagonal`,n.diagonalUp??n.diagonalDown,i),t.end(`border`)}function ze(e,n,r,i=!1){let a={};r.horizontal&&r.horizontal!==t.ITextFrame.HorizontalAlignment.General&&(a.horizontal=r.horizontal),r.vertical&&r.vertical!==t.ITextFrame.VerticalAlignment.Bottom&&(a.vertical=r.vertical);let o=r.rotation;r.stacked&&(a.textRotation=`255`,o=0),o&&(o>=270&&o<360?o=360-o:o>0&&o<=90&&(o+=90),a.textRotation=String(o));let s=r.overflow;switch(s===t.ITextFrame.Overflow.Wrap&&(a.wrapText=`1`),r.indent&&(a.indent=``+r.indent),r.relativeIndent&&(a.relativeIndent=``+r.relativeIndent),r.justifyLastLine&&(a.justifyLastLine=`1`),s===t.ITextFrame.Overflow.Shrink&&(a.shrinkToFit=`1`),r.readingDirection){case t.ITextFrame.ReadingDirection.Auto:break;case t.ITextFrame.ReadingDirection.LeftToRight:a.readingOrder=`1`;break;case t.ITextFrame.ReadingDirection.RightToLeft:a.readingOrder=`2`}return Object.keys(a).length>0?a:null}function Be(e,n,r,i,a,o,s=!1){let c={},l=null,u=i.named;u&&(l=r.getNamedStyles().getByName(u).toJSON().style);let d=i.font??l?.font,f=d?a.fontMap.get(t.BufferUtils.JSONStableStringify(d))??0:0,p=i.fill??l?.fill,m=p?a.fillMap.get(t.BufferUtils.JSONStableStringify(p))??0:0,h=i.borders??l?.borders,g=h?a.borderMap.get(t.BufferUtils.JSONStableStringify(h))??0:0,_=i.numberFormat??l?.numberFormat;if(c.numFmtId=(_===void 0?void 0:a.numFmtMap.get(_))??`0`,c.fontId=String(f),c.fillId=String(m),c.borderId=String(g),o){let e=i.named??t.IStyle.BuiltInName.Normal;c.xfId=a.namedStyleMap.get(e.toLowerCase())}let v=null,y=i.alignment??l?.alignment;y&&(v=ze(0,0,y)),i.font&&(c.applyFont=`1`),i.fill&&(c.applyFill=`1`),i.numberFormat&&(c.applyNumberFormat=`1`),i.borders&&(c.applyBorder=`1`),v&&(c.applyAlignment=`1`);let b=null,x=i.protection?.alwaysUnlocked??l?.protection?.alwaysUnlocked??!1;(x||s)&&(b={},x&&(b.locked=`0`),s&&(b.hidden=`1`),c.applyProtection=`1`),i.quotePrefix&&(c.quotePrefix=`1`),v||b?(n.start(`xf`,c),v&&n.empty(`alignment`,v),b&&n.empty(`protection`,b),n.end(`xf`)):n.empty(`xf`,c)}function Ve(e,n,r,i,a,o=`dxf`,s=He){if(n.start(o),r.font&&Le(0,n,r.font,i,!0),r.numberFormat!==void 0&&r.numberFormat!==null){let e=t.NumberFormat.toBuiltInID(r.numberFormat),i=typeof e==`number`,a=i?t.NumberFormat.builtInFormat(e):String(e);a&&n.empty(`numFmt`,{numFmtId:String(i?e:s++),formatCode:a})}if(r.fill&&H(0,n,r.fill,i,!0,!0),r.alignment){let e=ze(0,0,r.alignment,!0);e&&n.empty(`alignment`,e)}return r.borders&&Re(0,n,r.borders,a,!0),n.end(o),s}var He=164,Ue=Object.freeze([`wholeTable`,`headerRow`,`totalRow`,`firstColumn`,`lastColumn`,`firstRowStripe`,`secondRowStripe`,`firstColumnStripe`,`secondColumnStripe`,`firstHeaderCell`,`lastHeaderCell`,`firstTotalCell`,`lastTotalCell`]),We=t.ICondition.BuiltInOperatorNames,Ge=(e,t,n,r,i,a)=>{let o=r.sorts,s=o?o.length:0;if(s===0)return;let c={};if(s>0){let e=o[0].criteria?.collatorOptions;e&&(c.caseSensitive=typeof e!=`object`||Array.isArray(e)||e.sensitivity!==`case`&&e.sensitivity!==`variant`?`0`:`1`)}c.ref=n.getRange().toString(),c[`xmlns:xlrd2`]=`http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2`,t.start(`sortState`,c);for(let e=0;e<s;e++){let n=o[e],r=n.criteria??{},s=n.index+a.colStart,c={};r.reverse&&(c.descending=`1`),c.ref=i.getIntersect({colStart:s,rowStart:a.rowStart,colEnd:s,rowEnd:a.rowEnd}).toString(),r.sortOn&&(c.sortBy=r.sortOn),r.dxfId!==void 0&&(c.dxfId=r.dxfId),r.iconSet!==void 0&&(c.iconSet=r.iconSet),r.customList!==void 0&&(c.customList=r.customList),t.empty(`sortCondition`,c)}t.end(`sortState`)},Ke=(e,t,n,r,i=!1)=>{let a=n.getRange();n.isShowTotals()&&(a=a.getResizeBy(-1,0));let o=a.getCoords(),s=r.sort,c=r.filter,l=c?c.conditions:void 0,u=l?l.length:0,d=r.hiddenButtons,f={};f.ref=a.toString();let p,m=[];for(let e=0;e<u;e++){let t=l[e];m[t.index]={...t}}if(Array.isArray(d)&&d.length>0){let e=d.length;p=Array(d[e-1]);for(let t=0;t<e;t++)p[d[t]]=!0}if(m||d||p||i){let c=0;r.columns?c=r.columns.length:i&&(c=a.getColumnCount()),t.start(`autoFilter`,f);for(let n=0;n<c;n++){let r=!0===d||!0===p?.[n],i=m[n];(i||r)&&qe(e,t,n,i,r)}s&&i&&Ge(0,t,n,s,a,o),t.end(`autoFilter`)}else t.empty(`autoFilter`,f);s&&!i&&Ge(0,t,n,s,a,o)},Y=(t,n,r)=>{let i=e.m(r,e=>t.warn(e,r));if(!i)return;let a={operator:i.operator};i.val!==void 0&&(a.val=i.val),n.empty(`customFilter`,a)},qe=(n,r,i,a,o)=>{let s={};s.colId=``+i,o&&(s.hiddenButton=`1`),a?(r.start(`filterColumn`,s),((n,r,i)=>{let a=i.operator;if(a!==t.ICondition.BuiltInOperatorNames.Expression)if(a!==t.ICondition.BuiltInOperatorNames.Unique){if(a===t.ICondition.BuiltInOperatorNames.Color){let e=i.param,t={};e.cellColor!==void 0&&(t.cellColor=e.cellColor?`1`:`0`),e.styleId!==void 0&&(t.dxfId=e.styleId),r.empty(`colorFilter`,t)}if(Je(a))if(a===`between`){let e=i.param;r.start(`customFilters`,{and:`1`}),Y(n,r,{operator:We.GreaterThanEqualTo,param:e.from}),Y(n,r,{operator:We.LessThanEqualTo,param:e.to}),r.end(`customFilters`)}else if(a===t.ICondition.BuiltInOperatorNames.Not){let t=i.param;e.h(t?.operator)?(r.start(`customFilters`),Y(n,r,i),r.end(`customFilters`)):n.warn(`Not rule with non-comparison criteria not supported in OOXML`,t)}else if(a===t.ICondition.BuiltInOperatorNames.And||a===t.ICondition.BuiltInOperatorNames.Or){let o=i.param,s=o.length;if(s>0){let i={};a===t.ICondition.BuiltInOperatorNames.And&&s>1&&(i.and=`1`),r.start(`customFilters`,i);for(let t=0;t<s;t++){let i=o[t],a=i.operator===We.Not&&e.h(i.param?.operator);e.h(i.operator)||a?Y(n,r,i):n.warn(`Only Comparison criteria supported in Union conditions for Table AutoFilters`,i)}r.end(`customFilters`)}}else e.h(a)&&(r.start(`customFilters`),Y(n,r,i),r.end(`customFilters`));if(a===t.ICondition.BuiltInOperatorNames.TimePeriod){let e=i.param,t={};e.type&&(t.type=e.type),e.anchorDate!==void 0&&(t.val=``+e.anchorDate),e.maxVal!==void 0&&(t.maxVal=``+e.maxVal),r.empty(`dynamicFilter`,t)}if(a===t.ICondition.BuiltInOperatorNames.Average){let e=i.param,n={},a=e.type;a&&(a===t.ICondition.AverageType.Above?n.type=`aboveAverage`:a===t.ICondition.AverageType.Below&&(n.type=`belowAverage`)),e.stdDevs!==void 0&&(n.val=``+e.stdDevs),r.empty(`dynamicFilter`,n)}if(a===t.ICondition.BuiltInOperatorNames.InSet){let e=i.param;if(e.dateGroups){let t=e.dateGroups,n=t.length;r.start(`dateGroupItem`);for(let e=0;e<n;e++){let n=t[e],i={};n.day!==void 0&&(i.day=``+n.day),n.hour!==void 0&&(i.hour=``+n.hour),n.minute!==void 0&&(i.minute=``+n.minute),n.second!==void 0&&(i.second=``+n.second),n.year!==void 0&&(i.year=``+n.year),n.month!==void 0&&(i.month=``+n.month),i.dateTimeGrouping=n.group,r.empty(`dateGroupItem`,i)}r.end(`dateGroupItem`)}if(e.items){let t=e.items,n=t.length;r.start(`filters`);for(let e=0;e<n;e++){let n=t[e];r.empty(`filter`,{val:``+n})}r.end(`filters`)}}if(a===t.ICondition.BuiltInOperatorNames.Icon){let e=i.param,t={};e.iconSet!==void 0&&(t.iconSet=e.iconSet),e.iconId!==void 0&&(t.iconId=``+e.iconId),r.empty(`iconFilter`,t)}if(a===t.ICondition.BuiltInOperatorNames.TopN){let e=i.param,t={};e.percent&&(t.percent=`1`),e.top!==void 0&&(t.top=e.top?`1`:`0`),e.limit!==void 0&&(t.val=``+e.limit),e.filterVal!==void 0&&(t.filterVal=``+e.filterVal),r.empty(`top10`,t)}}else n.warn(`Unique conditions not supported in Table AutoFilters`,i);else n.warn(`Expression conditions not supported in Table AutoFilters`,i)})(n,r,a),r.end(`filterColumn`)):r.empty(`filterColumn`,s)},Je=e=>e===t.ICondition.BuiltInOperatorNames.GreaterThan||e===t.ICondition.BuiltInOperatorNames.GreaterThanEqualTo||e===t.ICondition.BuiltInOperatorNames.LessThan||e===t.ICondition.BuiltInOperatorNames.LessThanEqualTo||e===t.ICondition.BuiltInOperatorNames.EqualTo||e===t.ICondition.BuiltInOperatorNames.And||e===t.ICondition.BuiltInOperatorNames.Or||e===t.ICondition.BuiltInOperatorNames.Not||e===`between`,Ye={names:new Set,perFormula:[],affects:()=>!1},Xe=1048576,Ze=(e,t,n)=>{if(!n)return[];let r=0;for(let i=0;i<n.length;i++){let a=n[i][0],o=t.getRange(a).getCoords();if(r+=(o.rowEnd-o.rowStart+1)*(o.colEnd-o.colStart+1),r>Xe)return e.warn(`Direct styles cover more than ${Xe} cells; not writing the styles from '${a}' on. A range that size belongs in a column or row style.`),n.slice(0,i)}return n};function Qe(e,n){let r=n.type;r===t.IConditionalFormat.ColorStopType.AutoMin?r=t.IConditionalFormat.ColorStopType.Min:r===t.IConditionalFormat.ColorStopType.AutoMax&&(r=t.IConditionalFormat.ColorStopType.Max),e.empty(`cfvo`,{type:r,val:n.value,gte:n.exclusive?`0`:void 0})}function $e(e,t){let n={type:t.type,gte:t.exclusive?`0`:void 0};t.value===void 0?e.empty(`x14:cfvo`,n):(e.start(`x14:cfvo`,n),e.start(`xm:f`),e.text(t.value),e.end(`xm:f`),e.end(`x14:cfvo`))}var et=new Set([t.IStyle.IconSet.Arrows3,t.IStyle.IconSet.ArrowsGray3,t.IStyle.IconSet.Flags3,t.IStyle.IconSet.Signs3,t.IStyle.IconSet.Symbols3,t.IStyle.IconSet.Symbols3_2,t.IStyle.IconSet.TrafficLights3,t.IStyle.IconSet.TrafficLights3_2,t.IStyle.IconSet.Arrows4,t.IStyle.IconSet.ArrowsGray4,t.IStyle.IconSet.Rating4,t.IStyle.IconSet.RedToBlack4,t.IStyle.IconSet.TrafficLights4,t.IStyle.IconSet.Arrows5,t.IStyle.IconSet.ArrowsGray5,t.IStyle.IconSet.Quarters5,t.IStyle.IconSet.Rating5]);function tt(e){return(e.icon?.length??0)>0||e.iconSet!==void 0&&!et.has(e.iconSet)}function nt(n,r,i,a,o,s,c,l,u){let d=a.scale;a.ext&&n.warn(`Conditional format extension payload is not written to xlsx; it will be lost.`);let f={type:o.type,dxfId:a.style&&Object.keys(a.style).length>0?l.add(a.style):void 0,priority:c,stopIfTrue:X(a.stopIfTrue),aboveAverage:X(o.aboveAverage),equalAverage:X(o.equalAverage),stdDev:o.stdDev,bottom:X(o.bottom),percent:X(o.percent),rank:o.rank,operator:o.operator,text:o.text,timePeriod:o.timePeriod},p;d?.type===t.IConditionalFormat.ScaleType.DataBar&&function(e){if(e.gradient||e.borderColor||e.negativeFillColor||e.negativeBorderColor||e.axisColor||e.axisPosition||e.direction)return!0;let n=e.stops,r=n?n.length:0;for(let e=0;e<r;e++){let r=n[e].type;if(r===t.IConditionalFormat.ColorStopType.AutoMin||r===t.IConditionalFormat.ColorStopType.AutoMax)return!0}return!1}(d)&&(p=e.ct(t.CommonUtils.uuidV4),u.push({guid:p,sqref:s,priority:c,scale:d}));let m=o.formulas,h=m?m.length:0;if(h!==0||d){r.start(`cfRule`,f);for(let e=0;e<h;e++)r.start(`formula`),r.text(m[e]),r.end(`formula`);if(d?.type===t.IConditionalFormat.ScaleType.ColorScale){let e=d.stops??[];r.start(`colorScale`);for(let t=0;t<e.length;t++)Qe(r,e[t]);for(let t=0;t<e.length;t++)B(r,i,e[t].color,`color`);r.end(`colorScale`)}else if(d?.type===t.IConditionalFormat.ScaleType.DataBar){let e=d.stops??[];r.start(`dataBar`,{minLength:d.minLength,maxLength:d.maxLength,showValue:X(d.showValue)});for(let t=0;t<e.length;t++)Qe(r,e[t]);d.color&&B(r,i,d.color,`color`),r.end(`dataBar`)}else if(d?.type===t.IConditionalFormat.ScaleType.IconSet){let e=d.stops??[];r.start(`iconSet`,{iconSet:d.iconSet,reverse:X(d.reverse),showValue:X(d.showValue)});for(let t=0;t<e.length;t++)Qe(r,e[t]);r.end(`iconSet`)}p&&(r.start(`extLst`),r.start(`ext`,{uri:e.Q,"xmlns:x14":e.it}),r.start(`x14:id`),r.text(p),r.end(`x14:id`),r.end(`ext`),r.end(`extLst`)),r.end(`cfRule`)}else r.empty(`cfRule`,f)}function rt(e){let n=2**53-1,r=2**53-1,i=e.split(` `);for(let e=0;e<i.length;e++){if(!i[e])continue;let a=t.AddressUtils.fastStringToRange(i[e]);a.rowStart<n&&(n=a.rowStart),a.colStart<r&&(r=a.colStart)}return t.AddressUtils.cellToString({rowIndex:n,colIndex:r})}function it(e){if(typeof e==`string`)return e.split(`,`).join(` `);if(Array.isArray(e)){let n=[];for(let r=0;r<e.length;r++){let i=t.AddressUtils.rangeToString(e[r]);i&&n.push(i)}return n.length>0?n.join(` `):null}return t.AddressUtils.rangeToString(e)}function X(e){if(e!==void 0)return e?`1`:`0`}function at(e){if(typeof e!=`string`)return!1;let t=!1;for(let n=0;n<e.length;n++){let r=e[n];if(r===`"`)t=!t;else if(r===`!`&&!t)return!0}return!1}function ot(e){let t=e.formulas,n=t?t.length:0;for(let e=0;e<n;e++)if(at(t[e]))return!0;return!1}function st(e){let n=2**53-1,r=2**53-1,i=e.split(` `);for(let e=0;e<i.length;e++){if(!i[e])continue;let a=t.AddressUtils.fastStringToRange(i[e]);a.rowStart<n&&(n=a.rowStart),a.colStart<r&&(r=a.colStart)}return n===2**53-1?null:{rowIndex:n,colIndex:r}}function ct(e,n,r){if(typeof e!=`string`||!e||!n||!r)return e;try{let i=r.parse(e,n);return i&&t.FormulaText.image(r.spell(i,!0),{at:n})||e}catch{return e}}function lt(e,t,n){let r=e?.stops;if(!r||!n)return e;let i;for(let e=0;e<r.length;e++){let a=r[e]?.value;if(typeof a!=`string`)continue;let o=ct(a,t,n);o!==a&&(i||=[...r],i[e]={...r[e],value:o})}return i?{...e,stops:i}:e}function ut(e,t,n,r){if(!r?.xml)return;let i=e.addPart(`legacyDrawing`,r);t.empty(n,{"r:id":i.relId})}var dt=(t,n)=>{if(!n)return t;let r=t?.xml??null,i=e.a(r??``),a=[],o=n.comments;for(let t=0;t<o.length;t++){let{comment:n,row:r,col:s}=o[t],c=n.toJSON()?.box,l=c?.xml?e.s(c.xml).notes[0]:void 0;if(l){let t=e.o(l.xml);t!==null&&(i=Math.max(i,t)),a.push(e.l(l,r,s))}else a.push(e.c(r,s,++i))}let s=e.i(r,a);return s?s===r?t:t?{...t,xml:s}:{xml:s}:t},Z=e=>e.content?.type!==`control`,ft=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/ctrlProp`,pt=(e,t)=>{if(!e?.xml)return e;let n=t.movables;if(!n)return e;let r=new Map,i=n.length;for(let e=0;e<i;e++){let t=n[e];if(Z(t))continue;let i=t.content?.json?.shapeId;typeof i==`number`&&r.set(i,t)}if(r.size===0)return e;let a=e.xml.replace(/<v:shape\b[\s\S]*?<\/v:shape>/g,e=>{let t=/\bo:spid="_x0000_s(\d+)"/.exec(e)??/\bid="_x0000_s(\d+)"/.exec(e),n=t?r.get(parseInt(t[1],10)):void 0;if(!n)return e;let i=n.anchor,a=[i.tl.c,i.tl.r,i.br.c,i.br.r];return e.replace(/(<x:Anchor>)([\s\d,-]*)(<\/x:Anchor>)/,(e,t,n,r)=>{let i=n.split(`,`).map(e=>e.trim());if(i.length!==8)return e;let o=i.slice();for(let e=0;e<4;e++)o[2*e]=String(a[e]??0);return o.join(`,`)===i.join(`,`)?e:`${t}${o.join(`, `)}${r}`})});return a===e.xml?e:{...e,xml:a}},mt=(e,t,n)=>{e.start(t),e.start(`xdr:col`),e.text(n.c??0),e.end(`xdr:col`),e.start(`xdr:colOff`),e.text(K(n.x)),e.end(`xdr:colOff`),e.start(`xdr:row`),e.text(n.r??0),e.end(`xdr:row`),e.start(`xdr:rowOff`),e.text(K(n.y)),e.end(`xdr:rowOff`),e.end(t)},ht={r:void 0,s:void 0,t:void 0,cm:void 0,vm:void 0},gt={r:void 0,s:void 0,customFormat:void 0,hidden:void 0,ht:void 0,customHeight:void 0,"x14ac:dyDescent":`0.25`,outlineLevel:void 0,collapsed:void 0},_t={t:void 0,aca:void 0,ref:void 0,ca:void 0,si:void 0},vt={t:`shared`,aca:void 0,ref:void 0,ca:void 0,si:void 0},yt={t:`array`,aca:void 0,ref:void 0,ca:void 0,si:void 0};function bt(e,t,n,r){n&&(t.start(r),t.empty(`latin`,{typeface:n}),t.empty(`ea`,{typeface:``}),t.empty(`cs`,{typeface:``}),t.end(r))}var xt=e=>e.toISOString().split(`.`)[0]+`Z`,St=(e,t,n)=>{switch(t){case`creator`:e.start(`dc:creator`),e.text(n),e.end(`dc:creator`);break;case`lastModifiedBy`:e.start(`cp:lastModifiedBy`),e.text(n),e.end(`cp:lastModifiedBy`);break;case`created`:e.start(`dcterms:created`,{"xsi:type":`dcterms:W3CDTF`}),e.text(n),e.end(`dcterms:created`);break;case`modified`:e.start(`dcterms:modified`,{"xsi:type":`dcterms:W3CDTF`}),e.text(n),e.end(`dcterms:modified`)}},Q=(e,t,n,r)=>{t.start(n),t.text(r),t.end(n)},Ct=(e,n,r)=>{let i=r.getSheets().getItems({visibility:t.ISheet.Visibility.Hidden}).map(e=>e.getName()),a=r.getNames().getItems({type:`formula`}).filter(e=>!!e.getRanges?.()).map(e=>e.getName());n.start(`HeadingPairs`),n.start(`vt:vector`,{size:a.length>0?`4`:`2`,baseType:`variant`}),n.start(`vt:variant`),n.start(`vt:lpstr`),n.text(`Worksheets`),n.end(`vt:lpstr`),n.end(`vt:variant`),n.start(`vt:variant`),n.start(`vt:i4`),n.text(``+i.length),n.end(`vt:i4`),n.end(`vt:variant`),a.length>0&&(n.start(`vt:variant`),n.start(`vt:lpstr`),n.text(`Named Ranges`),n.end(`vt:lpstr`),n.end(`vt:variant`),n.start(`vt:variant`),n.start(`vt:i4`),n.text(``+a.length),n.end(`vt:i4`),n.end(`vt:variant`)),n.end(`vt:vector`),n.end(`HeadingPairs`),n.start(`TitlesOfParts`),n.start(`vt:vector`,{size:``+(i.length+a.length),baseType:`lpstr`});for(let e of i)n.start(`vt:lpstr`),n.text(e),n.end(`vt:lpstr`);for(let e of a)n.start(`vt:lpstr`),n.text(e),n.end(`vt:lpstr`);n.end(`vt:vector`),n.end(`TitlesOfParts`)},wt={minSupportedVersion:`120000`,copy:`1`,pasteAll:`1`,pasteValues:`1`,merge:`1`,splitFirst:`1`,rowColShift:`1`,clearFormats:`1`,clearComments:`1`,assign:`1`,coerce:`1`},Tt=(e,n,r=t.CommonUtils.EmptyArray)=>{if(!n)return{...r};let{text:i,runs:a,color:o,size:s,kern:c,weight:l,style:u,b:d,i:f,spc:p,baseline:m,...h}=n,g={...r,...h};return s!==void 0&&(g.sz=``+je(s)),d!==void 0&&(g.b=d?`1`:`0`),l!==void 0&&(g.b=l>500?`1`:`0`),f!==void 0&&(g.i=f?`1`:`0`),u!==void 0&&(g.i=u===`italic`?`1`:`0`),c!==void 0&&(g.kern=``+je(c)),p!==void 0&&(g.spc=``+je(p)),m!==void 0&&(g.baseline=``+je(m)),g},Et=(e,t,n)=>{if(!n)return;let r=e.getXMLWriter();r.start(`txBody`),r.pushDefaultNamespace(`a`),Ot(e,t,{vertOverflow:`clip`,horzOverflow:`clip`,rtlCol:`0`,anchor:`ctr`}),r.empty(`lstStyle`),((e,t,n)=>{if(!n)return;let r=e.getXMLWriter();r.pushDefaultNamespace(`a`),typeof n==`string`&&(n={runs:[{text:n}]}),r.start(`p`),r.empty(`pPr`,{algn:`ctr`});let i=Tt(0,n,{...kt,size:t.getDefaultFontSize()}),a=n?.runs,o=a?a.length:0;if(o>0)for(let e=0;e<o;e++){let n=a[e];r.start(`r`,{});let i=Tt(0,n,kt),o=n.color;o?(r.start(`rPr`,i),H(0,r,o,t),r.end(`rPr`)):r.empty(`rPr`,i),r.start(`t`),r.text(n?.text??``),r.end(`t`),r.end(`r`)}else r.empty(`endParaRPr`,i);r.end(`p`),r.popDefaultNamespace()})(e,t,n),r.popDefaultNamespace(),r.end(`txBody`)},Dt=(e,t,n)=>{if(!n)return;let r=e.getXMLWriter(),i=Tt(0,n);r.empty(`defRPr`,i)},Ot=(e,t,n)=>{if(!n)return;let r=e.getXMLWriter(),{spAutoFit:i,...a}=n;i?(r.start(`bodyPr`,a),r.empty(`spAutoFit`),r.end(`bodyPr`)):r.empty(`bodyPr`,a)},kt=Object.freeze({lang:`en-US`}),At=(e,t)=>{if(t.length!==0){e.start(`a:extLst`);for(let n of t){let t={},r=n[0];r&&(t.uri=r),e.start(`a:ext`,t),e.empty(n[1],n[2]),e.end(`a:ext`)}e.end(`a:extLst`)}},jt=async(e,t,n,r,i)=>{let a=e.getSharedStates(),o=r.getContent().getResource(),s=await o.getExternalURI(),c;if(s)c=e.addExternal(U,s);else if(c=n.get(o),!c){let t=a.get(W);t||(t=new Map,a.set(W,t));let r=t.get(o);if(!r){let e=await o.toBuffer();r={bytes:new Uint8Array(e),type:await o.getType()??Ae,index:t.size+1},t.set(o,r)}c=e.addBinary(r.bytes,r.type.mime,U,`../media/image${r.index}.${r.type.ext}`,!0),n.set(o,c)}let l={"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`};s?l[`r:link`]=c.relId:l[`r:embed`]=c.relId;let u=[];s||u.push([`{28A0092B-C50C-407E-A947-70E740481C1C}`,`a14:useLocalDpi`,{"xmlns:a14":`http://schemas.microsoft.com/office/drawing/2010/main`,val:`0`}]);let d=e.getXMLWriter();d.start(`pic`),d.start(`nvPicPr`),zt(e,d,r,i,t),Vt(e,d,r,i),d.end(`nvPicPr`),d.start(`blipFill`),d.start(`a:blip`,l),At(d,u),d.end(`a:blip`),d.start(`a:stretch`),d.empty(`a:fillRect`),d.end(`a:stretch`),d.end(`blipFill`),Lt(e,t,n,r,i),d.end(`pic`)},Mt=async(e,t,n,r,i,a)=>{let o=i.content?.json,s=o?.xml,c=o?.part;if(!s||!c)return $(e,t,n,r,i);let l=await L(c,e,`../charts/chart{n}.xml`);if(!l?.relId)return $(e,t,n,r,i);let u=l.relId===c.id?s:s.replace(`r:id="${c.id}"`,`r:id="${l.relId}"`);a!==void 0&&typeof i.content?.json?.sourceId==`number`&&(u=u.replace(`cNvPr id="${i.content.json.sourceId}"`,`cNvPr id="${a}"`)),e.getXMLWriter().raw(u)},Nt=async(e,t,n,r,i)=>$(e,t,n,r,i),Pt=async(e,t,n,r,i)=>$(e,t,n,r,i),Ft=async(e,t,n,r,i)=>$(e,t,n,r,i),It=async(e,t,n,r,i,a)=>{let o=i.content?.json,s=o?.xml;if(!s)return $(e,t,n,r,i);let c=a!==void 0&&typeof o?.sourceId==`number`?s.replace(`cNvPr id="${o.sourceId}"`,`cNvPr id="${a}"`):s;e.getXMLWriter().raw(c)},$=async(e,t,n,r,i)=>{(async(e,t,n,r,i)=>{let a=e.getXMLWriter(),o={},s=i.content?.json,c=s?.type??`sp`,l=t.getStyles();c===`cxnSp`?(o.macro=``,a.start(`cxnSp`,o),a.start(`nvCxnSpPr`),zt(e,a,r,i,t),Bt(e,a,r,i,t),a.start(`cNvCxnSpPr`),a.empty(`a:stCnx`,{id:`0`,idx:`0`}),a.end(`cNvCxnSpPr`),a.end(`nvCxnSpPr`),Lt(e,t,n,r,i),Rt(e,t,n,r,i),Et(e,l,s?.text),a.end(`cxnSp`)):c===`grpSp`||(o.macro=``,o.textlink=``,a.start(`sp`,o),a.start(`nvSpPr`),zt(e,a,r,i,t),Bt(e,a,r,i,t),a.end(`nvSpPr`),Lt(e,t,n,r,i),Rt(e,t,n,r,i),Et(e,l,s?.text),a.end(`sp`))})(e,t,n,r,{...i,content:{type:`shape`,json:{fill:`bg1`,stroke:{width:2,fill:`red`},text:{runs:[{text:`Unsupported Type: `+(i.content?.type??`unknown`),color:`tx1`}]}}}})},Lt=(e,t,n,r,i)=>{let a=e.getXMLWriter(),o=i.content?.json,s=o?.geometry??`rect`,c=t.getStyles();a.start(`spPr`),a.pushDefaultNamespace(`a`),Ht(a,r,i),a.start(`prstGeom`,{prst:s}),a.empty(`avLst`),a.end(`prstGeom`),Ee(e,c,o),a.popDefaultNamespace(),a.end(`spPr`)},Rt=(e,t,n,r,i)=>{let a=e.getXMLWriter();a.start(`style`),a.pushDefaultNamespace(`a`),a.start(`lnRef`,{idx:`1`}),a.start(`schemeClr`,{val:`accent1`}),a.empty(`shade`,{val:`15000`}),a.end(`schemeClr`),a.end(`lnRef`),a.start(`fillRef`,{idx:`1`}),a.empty(`schemeClr`,{val:`accent1`}),a.end(`fillRef`),a.start(`effectRef`,{idx:`0`}),a.empty(`schemeClr`,{val:`accent1`}),a.end(`effectRef`),a.start(`fontRef`,{idx:`minor`}),a.empty(`schemeClr`,{val:`lt1`}),a.end(`fontRef`),a.popDefaultNamespace(),a.end(`style`)},zt=(e,n,r,i,a)=>{let o=e.getSharedStates(),s=o.get(`uniqueIdCounter`);s||(s=new Map,o.set(`uniqueIdCounter`,s));let c=s.get(a)??1;c++,s.set(a,c);let l={id:``+c,name:i.name};i.description&&(l.descr=i.description),i.hidden&&(l.hidden=`1`);let u=[];u.push([`{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}`,`a16:creationId`,{"xmlns:a16":`http://schemas.microsoft.com/office/drawing/2014/main`,id:`{${t.CommonUtils.uuidV4().toUpperCase()}}`}]),n.start(`cNvPr`,l),At(n,u),n.end(`cNvPr`)},Bt=(e,t,n,r,i)=>{t.empty(`cNvSpPr`)},Vt=(e,t,n,r)=>{let i={};if(r.lockAspect&&(i.noChangeAspect=`1`),r.locks)for(let e of Object.keys(r.locks))!0===r.locks[e]&&(i[e]=`1`);t.start(`cNvPicPr`,{}),t.empty(`a:picLocks`,i),t.end(`cNvPicPr`)},Ht=(e,t,n)=>{let r=t.getBounds(),i={},a=n.rotation;a!==void 0&&a!==0&&(i.rot=``+q(a)),e.start(`xfrm`,i),e.start(`off`,{x:K(r.x),y:K(r.y)}),e.end(`off`),e.start(`ext`,{cx:K(r.width),cy:K(r.height)}),e.end(`ext`),e.end(`xfrm`)},Ut=(e,t,n)=>{e.start(t),e.start(`col`),e.text(n.c??0),e.end(`col`),e.start(`colOff`),e.text(K(n.x)),e.end(`colOff`),e.start(`row`),e.text(n.r??0),e.end(`row`),e.start(`rowOff`),e.text(K(n.y)),e.end(`rowOff`),e.end(t)},Wt=async(e,t,n)=>{let r=await n.getExternalURI();if(r)return void e.addExternal(U,r);let i=e.getSharedStates(),a=i.get(W);a||(a=new Map,i.set(W,a));let o=a.get(n);if(!o){let e=await n.toBuffer();o={bytes:new Uint8Array(e),type:await n.getType()??Ae,index:a.size+1},a.set(n,o)}let s=e.addBinary(o.bytes,o.type.mime,U,`../media/image${o.index}.${o.type.ext}`,!0,t);s.relId!==t&&e.log(`Legacy drawing image '${t}' was written as '${s.relId}'; the markup will not find it.`)};function Gt(t,n,r,i,a,o,s,c){let l={ref:n,dT:(a??new Date).toISOString().replace(/\.\d{3}Z$/,`Z`),personId:i?Kt(i):void 0,id:Kt(r),parentId:s?Kt(s):void 0,done:c?`1`:void 0};t.start(`threadedComment`,l),t.start(`text`,e.w.test(o)||/[\n\r]/.test(o)?e.C:void 0),t.text(o),t.end(`text`),t.end(`threadedComment`)}function Kt(e){return`{${e.replace(/^\{|\}$/g,``).toUpperCase()}}`}var qt=0,Jt=(e,t,n,r)=>{let i=r.columns,a=i?i.length:0;if(a!==0){t.start(`tableColumns`,{count:a});for(let o=0;o<a;o++){let a=i[o];typeof a==`string`&&(a={name:a});let s={};s.id=o+1,s.name=a.name??`Column${o+1}`;let c=null,l=a.totalsRowFormula;if(typeof l==`number`){let e=Zt.get(l);e?s.totalsRowFunction=e:c=`SUBTOTAL(${l},${r.name?.trim()}[${s.name}])`}else l&&(c=Yt(e,n,o,l.startsWith(`=`)?l.substring(1):l));c&&(s.totalsRowFunction=`custom`),a.totalsRowLabel&&(s.totalsRowLabel=a.totalsRowLabel);let u=a.calculatedColumnFormula?Yt(e,n,o,a.calculatedColumnFormula):null;(c||u)&&(t.start(`tableColumn`,s),u&&(t.start(`calculatedColumnFormula`),t.text(u),t.end(`calculatedColumnFormula`))),c&&(t.start(`totalsRowFormula`),t.text(c),t.end(`totalsRowFormula`)),c||u?t.end(`tableColumn`):t.empty(`tableColumn`,s)}t.end(`tableColumns`)}},Yt=(n,r,i,a)=>{let o=n.getSharedStates().get(e.L);if(!o)return a;try{let e=r.getDataRange().getCoords(),n={rowIndex:e.rowStart,colIndex:e.colStart+i},s=o.parse(a,n);return s&&t.FormulaText.image(o.spell(s,!1,r.getName()),{at:n})||a}catch{return a}},Xt=(e,t,n,r)=>{let i={name:n.getStyle().getName(),showFirstColumn:n.isShowHighlightFirstColumn()?`1`:`0`,showLastColumn:n.isShowHighlightLastColumn()?`1`:`0`,showRowStripes:n.isShowBandedRows()?`1`:`0`,showColumnStripes:n.isShowBandedColumns()?`1`:`0`};t.empty(`tableStyleInfo`,i)},Zt=new Map([[101,`average`],[102,`countNums`],[103,`count`],[104,`max`],[105,`min`],[107,`stdDev`],[109,`sum`],[110,`var`]]),Qt={rowIndex:0,colIndex:0};function $t(e,n,r,i){if(i==null)return;Qt.rowIndex=n,Qt.colIndex=r;let a=t.AddressUtils.cellToString(Qt),o,s;switch(typeof i){case`number`:s=``+i;break;case`boolean`:o=`b`,s=i?`1`:`0`;break;case`string`:o=`str`,s=i;break;default:{let e=i;if(e.t!==`e`)return;o=`e`,s=t.FormulaError.getBuiltInByCode(e.v)?.getLabel()??t.FormulaError.BuiltIn.Value.getLabel()}}e.start(`cell`,o?{r:a,t:o}:{r:a}),e.start(`v`),e.text(s),e.end(`v`),e.end(`cell`)}var en=(e,t,n,r)=>{t.start(`mc:AlternateContent`,{"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`}),t.start(`mc:Choice`,{Requires:`c14`,"xmlns:c14":`http://schemas.microsoft.com/office/drawing/2007/8/2/chart`}),t.empty(`c14:style`,{val:`102`}),t.end(`mc:Choice`),t.start(`mc:Fallback`),t.empty(`c:style`,{val:`2`}),t.end(`mc:Fallback`),t.end(`mc:AlternateContent`)},tn=(e,t,n,r,i)=>{t.start(`chart`),((e,t,n,r,i)=>{t.start(`title`),t.empty(`overlay`,{val:`0`}),Ee(e,n,i,`spPr`,!0),t.end(`title`),t.empty(`autoTitleDeleted`,{val:`0`})})(e,t,n,0,i),((e,t,n,r,i)=>{t.start(`plotArea`),t.empty(`layout`),Ee(e,n,i,`spPr`,!0),t.end(`plotArea`)})(e,t,n,0,i),t.empty(`plotVisOnly`,{val:`1`}),t.empty(`dispBlanksAs`,{val:`gap`}),t.empty(`showDLblsOverMax`,{val:`0`}),t.end(`chart`)},nn=(e,t,n,r)=>{t.start(`printSettings`),t.empty(`headerFooter`),t.empty(`pageMargins`,{b:`0.75`,l:`0.7`,r:`0.7`,t:`0.75`,header:`0.3`,footer:`0.3`}),t.empty(`pageSetup`),t.end(`printSettings`)},rn=(e,t,n,r,i,a=`0`)=>{let o=i?.color,s={idx:i?.idx??a};o===void 0?t.empty(r,s):(t.start(r,s),o===`auto`?t.empty(`styleClr`,{val:`auto`}):(t.pushDefaultNamespace(`a`),R(t,n.getTheme(),o),t.popDefaultNamespace()),t.end(r))},an=(e,t,n,r)=>{let i=n.length;for(let a=0;a<i;a++){let i=n[a];i.empty?t.empty(i.type,i.mods):(t.start(i.type,i.mods),rn(0,t,r,`lnRef`,i.lineRef,`0`),rn(0,t,r,`fillRef`,i.fillRef,`0`),rn(0,t,r,`effectRef`,i.effectRef,`0`),rn(0,t,r,`fontRef`,i.fontRef,`minor`),Ee(e,r,i,`spPr`),Dt(e,0,i.defRPr),Ot(e,r,i.bodyPr),t.end(i.type))}},on=Object.freeze([{type:`axisTitle`,fontRef:{color:`tx1 lumMod 65 lumOff 35`},defRPr:{size:10,kern:12}},{type:`categoryAxis`,fontRef:{color:`tx1 lumMod 65 lumOff 35`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 15 lumOff 85`},defRPr:{size:9,kern:12}},{type:`chartArea`,mods:{mods:`allowNoFillOverride allowNoLineOverride`},fontRef:{color:`tx1`},fill:{type:`solid`,color:`bg1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 15 lumOff 85`},defRPr:{size:10,kern:12}},{type:`dataLabel`,fontRef:{color:`tx1 lumMod 75 lumOff 25`},defRPr:{size:9,kern:12}},{type:`dataLabelCallout`,fontRef:{color:`dk1 lumMod 65 lumOff 35`},fill:{type:`solid`,color:`lt1`},stroke:{fill:`dk1 lumMod 25 lumOff 75`},defRPr:{size:9,kern:12},bodyPr:{rot:`0`,spcFirstLastPara:`1`,vertOverflow:`clip`,horzOverflow:`clip`,vert:`horz`,wrap:`square`,lIns:`36576`,tIns:`18288`,rIns:`36576`,bIns:`18288`,anchor:`ctr`,anchorCtr:`1`,spAutoFit:`true`}},{type:`dataPoint`,fillRef:{idx:`1`,color:`auto`},fontRef:{color:`tx1`}},{type:`dataPoint3D`,fillRef:{idx:`1`,color:`auto`},fontRef:{color:`tx1`}},{type:`dataPointLine`,lineRef:{color:`auto`},fillRef:{idx:`1`},fontRef:{color:`tx1`},stroke:{width:2.25,cap:`rnd`,fill:`phClr`,round:!0}},{type:`dataPointMarker`,lineRef:{color:`auto`},fillRef:{idx:`1`,color:`auto`},fontRef:{color:`tx1`},stroke:{width:.75,fill:`phClr`}},{type:`dataPointMarkerLayout`,mods:{symbol:`circle`,size:`5`},empty:!0},{type:`dataPointWireframe`,lineRef:{color:`auto`},fillRef:{idx:`1`},fontRef:{color:`tx1`},stroke:{width:.75,cap:`rnd`,fill:`phClr`,round:!0}},{type:`dataTable`,fontRef:{color:`tx1 lumMod 65 lumOff 35`},fill:{type:`none`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 15 lumOff 85`},defRPr:{size:9,kern:12}},{type:`downBar`,fontRef:{color:`tx1`},fill:{type:`solid`,color:`dk1 lumMod 75 lumOff 25`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 65 lumOff 35`}},{type:`dropLine`,fontRef:{color:`tx1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 35 lumOff 65`}},{type:`errorBar`,fontRef:{color:`tx1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 65 lumOff 35`}},{type:`floor`,fontRef:{color:`tx1`},fill:{type:`none`},stroke:{}},{type:`gridlineMajor`,fontRef:{color:`tx1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 15 lumOff 85`}},{type:`gridlineMinor`,fontRef:{color:`tx1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 5 lumOff 95`}},{type:`hiLoLine`,fontRef:{color:`tx1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 50 lumOff 50`}},{type:`leaderLine`,fontRef:{color:`tx1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 35 lumOff 65`}},{type:`legend`,fontRef:{color:`tx1 lumMod 65 lumOff 35`},defRPr:{size:9,kern:12}},{type:`plotArea`,mods:{mods:`allowNoFillOverride allowNoLineOverride`},fontRef:{color:`tx1`}},{type:`plotArea3D`,mods:{mods:`allowNoFillOverride allowNoLineOverride`},fontRef:{color:`tx1`}},{type:`seriesAxis`,fontRef:{color:`tx1 lumMod 65 lumOff 35`},defRPr:{size:9,kern:12}},{type:`seriesLine`,fontRef:{color:`tx1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 35 lumOff 65`}},{type:`title`,fontRef:{color:`tx1 lumMod 65 lumOff 35`},defRPr:{size:14,b:!1,kern:12,spc:0,baseline:0}},{type:`trendline`,lineRef:{color:`auto`},fontRef:{color:`tx1`},stroke:{width:1.5,cap:`rnd`,fill:`phClr`,prstDash:`sysDot`}},{type:`trendlineLabel`,fontRef:{color:`tx1 lumMod 65 lumOff 35`},defRPr:{size:9,kern:12}},{type:`upBar`,fontRef:{color:`tx1`},fill:{type:`solid`,color:`lt1`},stroke:{width:.75,cap:`flat`,cmpd:`sng`,algn:`ctr`,round:!0,fill:`tx1 lumMod 65 lumOff 35`}},{type:`valueAxis`,fontRef:{color:`tx1 lumMod 65 lumOff 35`},defRPr:{size:9,kern:12}},{type:`wall`,fontRef:{color:`tx1`},fill:{type:`none`},stroke:{}}]),sn=(e,t,n)=>{let r=n.length;for(let e=0;e<r;e++){let r=n[e],i={},a=r[0],o=r[1];a||o?(t.start(`variation`,i),a&&t.empty(`a:lumMod`,{val:a}),o&&t.empty(`a:lumOff`,{val:o}),t.end(`variation`)):t.empty(`variation`,i)}},cn=Object.freeze([[0,0],[6e4,0],[8e4,2e4],[8e4,0],[6e4,4e4],[5e4,0],[7e4,3e4],[7e4,0],[5e4,5e4]]),ln=[new class extends r{constructor(){super({kind:`workbook`,contentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`,path:`/xl/workbook.xml`})}async emit(r,i){let a=i.getXMLWriter();a.decl(),a.start(`workbook`,{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`x15 xr xr6 xr10 xr2`,"xmlns:x15":`http://schemas.microsoft.com/office/spreadsheetml/2010/11/main`,"xmlns:xr":`http://schemas.microsoft.com/office/spreadsheetml/2014/revision`,"xmlns:xr6":`http://schemas.microsoft.com/office/spreadsheetml/2016/revision6`,"xmlns:xr10":`http://schemas.microsoft.com/office/spreadsheetml/2016/revision10`,"xmlns:xr2":`http://schemas.microsoft.com/office/spreadsheetml/2015/revision2`});let o=i.getSharedStates().get(n),s=await r.toJSON({ignoreData:!0,resources:(e,t)=>(o?.set(t,e),null),includeHeaderStyles:!0,splitDirectBorders:!0});i.getSharedStates().set(e.L,e.R(s.names,function(e){let t=[],n=e.sheets??[];for(let e=0;e<n.length;e++){let r=n[e]?.sheet?.tables;if(r)for(let e=0;e<r.length;e++){let n=r[e],i=Array.isArray(n)?n[1]?.name:n?.v?.name;i&&t.push(String(i))}}return t}(s))),function(e,t){let n=e.getSharedStates().get(se);n&&t.empty(`fileVersion`,n)}(i,a),function(e,t,n,r){let i={},a=n.getCodeName();a&&(i.codeName=a),n.getRuntime().isDate1904()&&(i.date1904=`1`),r.updateLinks&&(i.updateLinks=r.updateLinks),t.empty(`workbookPr`,i)}(0,a,r,s),function(t,n,r,i){let a=i.protection;if(!a||a.workbook)return;let o={};j(a.password??{},o,`workbook`),j(a.revisionsPassword??{},o,`revisions`);for(let t of e.b){let n=e.S(t,a[t.key]);n!==null&&(o[t.attribute]=n)}n.empty(`workbookProtection`,o)}(0,a,0,s),function(e,t,n){t.start(`bookViews`);let r=n.getView(),i={};r.isShowHorizontalScrollbar()||(i.showHorizontalScroll=`0`),r.isShowVerticalScrollbar()||(i.showVerticalScroll=`0`),r.isShowTabs()||(i.showSheetTabs=`0`);let a=r.getTabRatio();a!==600&&(i.tabRatio=a);let o=n.getSelectedSheet().getIndex();o!==0&&(i.activeTab=``+o),t.empty(`workbookView`,i),t.end(`bookViews`)}(0,a,r,s.view);let c=await(async(e,t)=>{let n=[],r=t?t.length:0;if(r===0)return n;let i=new Map;e.getSharedStates().set(`pivotCachePaths`,i);for(let a=0;a<r;a++){let r=t[a],o=r.cacheId,s=r.part;if(s?.xml&&!i.has(o))try{let t=await L({...s,type:s.type||`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition`,contentType:s.contentType||`application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml`},e,`/xl/pivotCache/pivotCacheDefinition{n}.xml`);if(!t?.relId)continue;i.set(o,t.path),n.push({cacheId:o,relId:t.relId})}catch(t){e.log(`Unable to write the pivot cache ${o}; the pivot tables on it will be dropped.`,t)}}return n})(i,s.pivotCaches);(function(e,t){t.getComments().some(e=>!e.isNote())&&e.addPart(`persons`,t.getPeople())})(i,r),a.start(`sheets`);let l=i.getSharedStates(),u=r.getStrings().beginPersist();l.set(`persistStrings`,u);let d=new N;l.set(`metaCollector`,d);let f=new ne(d,i.log.bind(i));l.set(`persistRichTypes`,f),l.set(te,new M(s.styles,r.getStyles()));try{let e=r.getSheets().getItems({visibility:t.ISheet.Visibility.VeryHidden}),n=s.sheets,o=r.getSelectedSheet(),c=e.length,d=((e,t)=>{let n=Array(t),r=new Set,i=1;for(let a=0;a<t;a++){let t=e?.[a]?.sheetId;t===void 0||!Number.isInteger(t)||t<1||r.has(t)||(r.add(t),n[a]=t,t>=i&&(i=t+1))}for(let e=0;e<t;e++)if(n[e]===void 0){for(;r.has(i);)i++;r.add(i),n[e]=i++}return n})(n,c),f=((e,t,n)=>{let r=t.length,i=Array(r),a=new Set(n?.values()??[]),o=new Set;for(let a=0;a<r;a++){let r=e?.[a]?.sheetId;if(r===void 0||t[a]!==r)continue;let s=n?.get(r);s&&!o.has(s)&&(o.add(s),i[a]=s)}let s=1;for(let e=0;e<r;e++){if(i[e])continue;let t;do t=`xl/worksheets/sheet${s++}.xml`;while(a.has(t)||o.has(t));o.add(t),i[e]=t}return i})(n,d,l.get(ce));for(let t=0;t<c;t++){let r=e[t],s=``+d[t],c={name:r.getName(),sheetId:s},l=r.getVisibility();l===`hidden`?c.state=`hidden`:l===`veryHidden`&&(c.state=`veryHidden`);let p=n[t].sheet;c[`r:id`]=i.addPart(`worksheet`,{model:r,isSelected:o===r,json:p,persistStrings:u},`/`+f[t]).relId,a.empty(`sheet`,c)}await i.waitEmit();let p=r.getTheme();i.addPart(`theme`,{model:p,json:s.theme}),await i.waitEmit(),i.addPart(`styles`,{styles:r.getStyles(),theme:r.getTheme(),json:s.styles}),await i.waitEmit();let m=await u.toJSONAsync();m&&m.length>0&&(i.addPart(`sharedStrings`,{model:m,json:m}),await i.waitEmit());let h=l.get(`persistRichTypes`);h?.hasAny()&&(i.addPart(`richValue`,h),i.addPart(`richValueStructure`,h),i.addPart(`richValueTypes`,null),await i.waitEmit());let g=l.get(`metaCollector`);g?.hasAny()&&(i.addPart(`metadata`,g),await i.waitEmit()),l.delete(`persistRichTypes`),l.delete(`metaCollector`),l.delete(`persistStrings`)}catch(e){throw e}finally{u.endPersist()}a.end(`sheets`),function(e,t,n){let r=n.externalBooks,i=r?r.length:0;if(i===0)return;let a=e.getSharedStates().get(le),o=new Set;if(a)for(let e=0;e<i;e++)!r[e]&&a[e]&&o.add(a[e]);let s=[],c=1;for(let t=0;t<i;t++){let n=r[t];if(n){let t;do t=`xl/externalLinks/externalLink${c++}.xml`;while(o.has(t));s.push(e.addPart(`externalLink`,n,`/`+t).relId);continue}let i=a?.[t],l=i?e.addRelationship(oe,i):null;l?s.push(l):e.log(`External link [${t+1}] cannot be written and is being dropped; later links will renumber.`)}if(s.length!==0){t.start(`externalReferences`);for(let e=0;e<s.length;e++)t.empty(`externalReference`,{"r:id":s[e]});t.end(`externalReferences`)}}(i,a,s),function(n,r,i,a){let o=n.getSharedStates().get(e.L),s=a.names,c=s?s.length:0;if(c===0)return;let l=a.externalBooks?.length??0,u=new Map,d=i.getSheets().getItems({visibility:t.ISheet.Visibility.VeryHidden});for(let e=0;e<d.length;e++)u.set(d[e].getName().toLowerCase(),e);r.start(`definedNames`);for(let e=0;e<c;e++){let t=s[e],i={name:t.name};if(t.comment&&(i.comment=t.comment),t.scope){let e=u.get(t.scope.toLowerCase());e===void 0?n.log(`Defined name '${t.name}' is scoped to unknown sheet '${t.scope}'; writing it as global.`):i.localSheetId=``+e}t.hidden&&(i.hidden=`1`);let a=o.writeName(t.ref);for(let e of ue(a))e>l&&n.log(`Defined name '${t.name}' cites external book [${e}], but only ${l} ${l===1?`is`:`are`} written; Excel will report the file as needing repair.`);r.start(`definedName`,i),r.text(a),r.end(`definedName`)}r.end(`definedNames`)}(i,a,r,s),function(e,t,n){let r=n.getCalculation().toJSON(),i={calcId:e.getSharedStates().get(`calcId`)??`191029`},a=(e,t)=>{let n=r[e];typeof n==`boolean`&&(i[t]=n?`1`:`0`)};if(r.calcMode){let e=de[r.calcMode];e&&e!==`auto`&&(i.calcMode=e)}a(`fullCalcOnLoad`,`fullCalcOnLoad`),a(`calcOnSave`,`calcOnSave`),a(`calcCompleted`,`calcCompleted`),a(`fullPrecision`,`fullPrecision`),a(`forceFullCalc`,`forceFullCalc`),a(`concurrentCalc`,`concurrentCalc`),r.refMode&&(i.refMode=r.refMode),r.iterate&&(i.iterate=`1`),r.maxIteration!==void 0&&(i.iterateCount=String(r.maxIteration)),r.maxIterateChange!==void 0&&(i.iterateDelta=String(r.maxIterateChange)),t.empty(`calcPr`,i)}(i,a,r),function(e,t){if(t.length!==0){e.start(`pivotCaches`);for(let n=0;n<t.length;n++)e.empty(`pivotCache`,{cacheId:t[n].cacheId,"r:id":t[n].relId});e.end(`pivotCaches`)}}(a,c),function(e,t){let n=e.getSharedStates().get(`calcFeatures`)??`<ext uri="{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}" xmlns:xcalcf="http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures"><xcalcf:calcFeatures><xcalcf:feature name="microsoft.com:RD"/><xcalcf:feature name="microsoft.com:Single"/><xcalcf:feature name="microsoft.com:FV"/><xcalcf:feature name="microsoft.com:CNMTM"/><xcalcf:feature name="microsoft.com:LET_WF"/><xcalcf:feature name="microsoft.com:LAMBDA_WF"/><xcalcf:feature name="microsoft.com:ARRAYTEXT_WF"/></xcalcf:calcFeatures></ext>`;t.start(`extLst`),t.raw(n),t.end(`extLst`)}(i,a),a.end(`workbook`),a.close()}},new class extends r{constructor(){super({kind:`worksheet`,contentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`,path:()=>`/xl/worksheets/sheet{n}.xml`})}async emit(n,r){let i=r.getXMLWriter(),a=n.model,o=n.json;i.decl(),i.start(`worksheet`,{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`x14ac`,"xmlns:x14ac":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac`}),function(e,t,n){let r=n.getTabColor(),i=n.getCodeName(),a={};i&&(a.codeName=i),n.isConditionalFormatCalculationEnabled()||(a.enableFormatConditionsCalculation=`0`);let o=n.getOutlineSettings(),s={};o.summaryBelow||(s.summaryBelow=`0`),o.summaryRight||(s.summaryRight=`0`),o.showOutlineSymbols||(s.showOutlineSymbols=`0`),o.applyStyles&&(s.applyStyles=`1`);let c=Object.keys(s).length>0,l=!!r||c;if(!(!l&&Object.keys(a).length===0)){if(!l)return void t.empty(`sheetPr`,a);t.start(`sheetPr`,a),r&&B(t,n.getStyles().getTheme(),r,`tabColor`,!1),c&&t.empty(`outlinePr`,s),t.end(`sheetPr`)}}(0,i,a),function(n,r,i,a){let o=i.getUsedRange({features:[]}),s=o?o.getCoords():null,c=e.n,l=e.t,u=a.directStyles,d=u?u.length:0;for(let e=0;e<d;e++){let n=i.getRange(u[e][0]).getCoords();if(n.colEnd===l){let e=s?.colStart??0;n={...n,colStart:e,colEnd:e}}if(n.rowEnd===c){let e=s?.rowStart??0;n={...n,rowStart:e,rowEnd:e}}s=t.CoordUtils.unionRanges(s,n)}let f=a.merges,p=f?f.length:0;for(let e=0;e<p;e++){let n=i.getRange(f[e]).getCoords();n.colEnd===l&&(n={...s},n.colStart=s?.colStart??0,n.colEnd=n.colStart),n.rowEnd===c&&(n={...n},n.rowStart=s?.rowStart??0,n.rowEnd=n.rowStart),s=t.CoordUtils.unionRanges(s,n)}let m=`A1`;s&&(o=i.getRange(s),m=s.colStart===s.colEnd&&s.rowStart===s.rowEnd?o.getAddress():`${o.getIntersect({colStart:s.colStart,rowStart:s.rowStart,colEnd:s.colStart,rowEnd:s.rowStart}).getAddress()}:${o.getIntersect({colStart:s.colEnd,rowStart:s.rowEnd,colEnd:s.colEnd,rowEnd:s.rowEnd}).getAddress()}`),r.empty(`dimension`,{ref:m})}(0,i,a,o),function(e,n,r,i,a){let o=r.getView(),s=o.getTopLeft(),c=r.getRowHeaders().getIndex(s.top),l=r.getColumnHeaders().getIndex(s.left),u=t.AddressUtils.cellToString({colIndex:l,rowIndex:c});n.start(`sheetViews`);let d={};o.isShowFormulas()&&(d.showFormulas=`1`),o.isShowColumnGridlines()||o.isShowRowGridlines()||(d.showGridLines=`0`),o.isShowColumnHeaders()||o.isShowRowHeaders()||(d.showRowColHeaders=`0`),o.isShowZeros()||(d.showZeros=`0`),o.isRightToLeft()&&(d.rightToLeft=`1`),a&&(d.tabSelected=`1`),u!==`A1`&&(d.topLeftCell=u);let f=o.getZoomScale();f!==100&&(d.zoomScale=f,d.zoomScaleNormal=f);let p=o.getGridLineColor();if(p){d.defaultGridColor=`0`;let e=p.toRGBA(),t=e.red,n=e.green,i=e.blue,a=r.getStyles().getIndexedColors(),o=a.length,s=0,c=Number.MAX_VALUE;for(let e=0;e<o;e++){let r=a[e].toRGBA(),o=(t-r.red)**2+(n-r.green)**2+(i-r.blue)**2;o<c&&(c=o,s=e)}d.colorId=``+s}d.workbookViewId=`0`;let m=r.getSelection().getCoords(),h=t.AddressUtils.cellToString(m.cell),g={},_=o.getFreezePanes(),v=_.coords??{},y=v.colIndex??0,b=v.rowIndex??0;if(y>0||b>0){let e=_.topLeft??{},i=e.top??0,a=e.left??0,o=r.getRowHeaders().getIndex(i),c=r.getColumnHeaders().getIndex(a),l=y-c,u=b-o,f=Math.max(y,r.getColumnHeaders().getIndex(s.left+r.getColumnHeaders().getOffset(y)-a)),p=Math.max(b,r.getRowHeaders().getIndex(s.top+r.getRowHeaders().getOffset(b)-i)),m=t.AddressUtils.cellToString({colIndex:c,rowIndex:o});m===`A1`?delete d.topLeftCell:d.topLeftCell=m,n.start(`sheetView`,d);let h={};if(l>0&&(h.xSplit=l),u>0&&(h.ySplit=u),h.topLeftCell=t.AddressUtils.cellToString({colIndex:f,rowIndex:p}),h.state=`frozen`,y===0){h.activePane=`bottomLeft`,n.empty(`pane`,h);let e=t.AddressUtils.cellToString({colIndex:f,rowIndex:o});e!==`A1`&&n.empty(`selection`,{activeCell:e,sqref:e}),g.pane=`bottomLeft`}else if(b===0){h.activePane=`topRight`,n.empty(`pane`,h);let e=t.AddressUtils.cellToString({colIndex:c,rowIndex:p});e!==`A1`&&n.empty(`selection`,{activeCell:e,sqref:e}),g.pane=`topRight`}else{h.activePane=`bottomRight`,n.empty(`pane`,h),m!==`A1`&&n.empty(`selection`,{activeCell:m,sqref:m});let e=t.AddressUtils.cellToString({colIndex:f,rowIndex:o});n.empty(`selection`,{pane:`topRight`,activeCell:e,sqref:e});let r=t.AddressUtils.cellToString({colIndex:c,rowIndex:p});n.empty(`selection`,{pane:`bottomLeft`,activeCell:r,sqref:r}),g.pane=`bottomRight`}}else n.start(`sheetView`,d);g.activeCell=h;let x=m.ranges,S=x?x.length:0;if(S>0){let e=``;for(let n=0;n<S;n++){let r=x[n];n>0&&(e+=` `),e+=t.AddressUtils.rangeToString(r)}g.sqref=e,(m.rangeIndex??0)>0&&(g.activeCellId=``+m.rangeIndex)}else h===`A1`?g=null:g.sqref=h;g&&n.empty(`selection`,g),n.end(`sheetView`),n.end(`sheetViews`)}(0,i,a,0,n.isSelected),function(e,t,n,r){let i=r.defaultColSize,a=r.defaultRowSize,o={};i!==void 0&&(o.defaultColWidth=i),o.defaultRowHeight=a??.75*n.getRowHeaders().getDefaultSize(),a!==void 0&&(o.customHeight=`1`),o[`x14ac:dyDescent`]=`0.25`,t.empty(`sheetFormatPr`,o)}(0,i,a,o);let s=!1===o.protection?.showFormulas?r.getSharedStates().get(`hiddenFormulaXfs`)??null:null;(function(n,r,i,a,o){let s=a.cols?t.AddressUtils.refsToRuns(a.cols,!0):null,c=s?s.length:0;i.getEntireRange().getColumnEnd();let l=i.getColumnHeaders().getDefaultSizeNative(),u=o?o.getHiddenXf(0):0,d=1,f=e=>{u!==0&&e>=d&&r.empty(`col`,{min:d,max:e,width:l,style:u})};if(c>0||u!==0){r.start(`cols`);for(let t=0;t<c;t++){let n=s[t],i=n.min+1,a=e.t+1;if(i>a)continue;let c=Math.min(n.max+1,a);f(i-1),d=c+1;let u={min:i,max:c},p=n.value,m=p.sz;m===void 0?u.width=l:m!==0&&(u.width=Math.round(256*m)/256);let h=o?o.getHiddenXf(p.s??0):p.s;h&&(u.style=h),p.h!==void 0&&(u.hidden=1),p.csz&&(u.customWidth=1),p.l!==void 0&&(u.outlineLevel=p.l),p.cl!==void 0&&(u.collapsed=1),r.empty(`col`,u)}f(e.t+1),r.end(`cols`)}})(0,i,a,o,s),function(n,r,i,a,o,s){let c=n.getSharedStates(),l=c.get(`persistStrings`),u=c.get(`metaCollector`),d=c.get(`persistRichTypes`),f=0,p=0,m=i.getUsedRange(),h=0,g=a.rows?t.AddressUtils.refsToRuns(a.rows,!1):null,_=g?g.length:0,v=g?.[_-1]?.max??-1,y=a.cols?t.AddressUtils.refsToRuns(a.cols,!0):null,b=y?y.length:0,x=y?.[b-1]?.max??-1;if(m||_>0){let c=.75,m=a.defaultRowSize??i.getRowHeaders().getDefaultSize()*c,_=i.getStyles().getNormal().getBestFit().height*c,b=(e,t)=>{let n=gt;if(n.r=``+(e+1),n.s=void 0,n.customFormat=void 0,n.hidden=void 0,n.ht=void 0,n.customHeight=void 0,n.outlineLevel=void 0,n.collapsed=void 0,!t)return n;let r=t.value;r.s!==void 0&&(n.s=``+(s?s.getHiddenXf(r.s):r.s),n.customFormat=`1`),r.h&&(n.hidden=`1`);let i=r.csz??!1,a=r.sz??m;return(a!==_||i)&&(n.ht=``+a),i&&(n.customHeight=`1`),r.l!==void 0&&(n.outlineLevel=``+r.l),r.cl!==void 0&&(n.collapsed=``+r.cl),n},S=0,C=g?.[S]??null,w=C?.min??2**53-1,T=C?.max??2**53-1,E=C?.value?.s,D=-1,O=0,k=y?.[O]??null,ee=k?.min??2**53-1,A=k?.max??2**53-1,j=k?.value?.s,te=(e,t=!1)=>{if(D!==e){for(D!==-1&&(r.end(`row`),O!==0&&(O=0,k=y?.[O]??null,ee=k?.min??2**53-1,A=k?.max??2**53-1,j=k?.value?.s));D+1<=e;){D++,C&&D>T&&(C=g[++S]??null,C?(w=C.min,T=C.max,E=C.value?.s):(w=2**53-1,T=2**53-1,E=void 0)),D<w&&D<e&&(D=C?Math.min(w,e):e);let n=D<e||t&&D===e,i=b(D,C&&D>=w&&D<=T?C:null);n?r.empty(`row`,i):r.start(`row`,i)}if(e<D){let t=b(e,null);r.start(`row`,t)}}};r.setValidationDisabled(!0),r.start(`sheetData`);let M=[];M.push(Ze(n,i,a.directStyles));let N=a.formulas,ne=N?N.length:0;if(ne>0){let r=new Map;if(o.names.size>0&&a.formulaArray)for(let e of a.formulaArray)try{let t=i.getRange(e[0]).getCoords();r.set(`${t.rowStart},${t.colStart}`,t)}catch{}let s=[];if(a.formulaArray)for(let e of a.formulaArray)try{s.push(i.getRange(e[0]).getCoords())}catch{}let c=e=>{for(let t=0;t<s.length;t++){let n=s[t];if(n.rowStart<=e.rowEnd&&n.rowEnd>=e.rowStart&&n.colStart<=e.colEnd&&n.colEnd>=e.colStart)return!0}return!1},l=n.getSharedStates().get(`xlsxFormulaDialect`)??e.R(i.getCalculation().getNamedFormulas().toJSON(),i.getTables().getItems().map(e=>e.getName())),u=i.getEntireRange().getCoords(),d=[];for(let e of i.getTables().getItems())d.push([e.getRange().getCoords(),e.getName()]);let f=(e,t)=>{for(let n=0;n<d.length;n++){let r=d[n][0];if(e>=r.rowStart&&e<=r.rowEnd&&t>=r.colStart&&t<=r.colEnd)return d[n][1]}return null},p=new Set;for(let e=0;e<s.length;e++)p.add(`${s[e].rowStart},${s[e].colStart}`);let m=[];for(let a=0;a<ne;a++){let s=N[a];try{let n=s[0],d=i.getRange(n),g=d.getCoords(),_=s[1],v=null,y={rowIndex:g.rowStart,colIndex:g.colStart},b=l.parse(_,y),x=b?l.annotate(b):void 0,S=b?l.spell(b,p.has(`${g.rowStart},${g.colStart}`),f(g.rowStart,g.colStart)):null,C=S?t.FormulaText.imager(S,{entireCoords:u}):null;C&&(_=C(y));let w=!0===x?.cm,T=!0===x?.ca;if(o.affects(a)){v=null,w=!1;let n=(e,n,r)=>{let i={rowStart:e,colStart:n,rowEnd:e,colEnd:n};m.push([i,{coords:i,formula:r,sharedId:null,ref:t.AddressUtils.rangeToString(i),isDynamicRange:!1,isWrapped:!0}])},a=r.get(`${g.rowStart},${g.colStart}`),o=a!==void 0&&(a.rowEnd>a.rowStart||a.colEnd>a.colStart),s=!1;if(o){let r=e.A(_,d.getCell().getValue());if(r!==null)for(let o=a.rowStart;o<=a.rowEnd;o++)for(let c=a.colStart;c<=a.colEnd;c++){if(o===a.rowStart&&c===a.colStart){n(o,c,r),s=!0;continue}let l=e.j(i.getRange(t.AddressUtils.rangeToString({rowStart:o,colStart:c,rowEnd:o,colEnd:c})).getCell().getValue());l!==null&&n(o,c,l)}}else d.forEach((t,r)=>{let i=r.getCoords(),a=e.A(C?.(i)??_,r.getCell().getValue());a!==null&&(n(i.rowIndex,i.colIndex,a),s=!0)},{includeEmpty:!0});if(s)continue}let E=_.indexOf(`!`)!==-1||_.indexOf(`[`)!==-1;w||d.isSingleCell()||E||c(g)||(v=``+h++);let D=v!==null||d.isSingleCell()?null:C,O=[g,{coords:g,formula:_,sharedId:v,ref:n,isDynamicRange:w,isExcelVolatile:T,memberImage:D}];m.push(O)}catch(e){n.log(`Could not write the formula '${s[1]}' over '${s[0]}'; those cells are written as values only. ${e}`);continue}}M.push(m)}else M.push([]);let P=a.volatile,F=P?P.length:0;if(F>0){let e=Array(F);for(let t=0;t<F;t++){let n=P[t];try{e[t]=[i.getRange(n).getCoords(),!0]}catch(e){console.warn(`Failed to parse volatile: ${n}`,e);continue}}M.push(e)}else M.push([]);let I=a.formulaArray,L=I?I.length:0;if(L>0){let e=Array(L);for(let t=0;t<L;t++){let n=I[t];try{let r=n[0];e[t]=[i.getRange(r).getCoords(),{ref:r,kind:n[1]??`dynamic`}]}catch(e){console.warn(`Failed to parse formula array: ${n}`,e);continue}}M.push(e)}else M.push([]);i.getEntireRange().forEach((i,a)=>{let o=a.getCoords(),c=o.rowIndex,m=o.colIndex;D!==c&&te(c);let h=a.getInjectedReference(0);if(h===void 0&&E!==void 0&&c>=w&&c<=T&&(h=E),h===void 0){for(;m<=x&&m>A;)O++,k=y?.[O]??null,ee=k?.min??2**53-1,A=k?.max??2**53-1,j=k?.value?.s;j!==void 0&&m>=ee&&m<=A&&(h=j)}let g=a.getType(),_=null;ne>0&&(_=a.getInjectedReference(1)??null);let v=!1;F>0&&(v=a.getInjectedReference(2)??!1);let b=null;L>0&&(b=a.getInjectedReference(3)??null);let S=b?.kind===`error`,C=b?.kind===`fixed`,M=ht;M.r=a.getAddress(),M.s=void 0,M.t=void 0,M.cm=void 0,M.vm=void 0,s&&(h=s.getHiddenXf(h??0)),h!==void 0&&h!==0&&(M.s=``+h);let N=null,P=null;switch(g){case t.ScalarType.Boolean:N=i?`1`:`0`,P=`b`;break;case t.ScalarType.Error:let e=i.getCode();if(P=`e`,e>7)N=t.FormulaError.BuiltIn.Value.getLabel(),M.vm=``+d.add(i);else if(e<1){let e;P=`s`,_?(e=`=`+_.formula,_=null):e=``+i.getLabel(),N=``+l.add(e),f++}else N=``+i.getLabel();break;case t.ScalarType.Number:N=``+i,P=null;break;case t.ScalarType.String:N=i,_?(P=`str`,N=i):(P=`s`,N=``+l.add(N),f++);break;case t.ScalarType.RichData:P=`e`,N=t.FormulaError.BuiltIn.Value.getLabel(),M.vm=``+d.add(i)}P&&(M.t=P);let I=!_?.isWrapped&&(b!==null||(_?.isDynamicRange??!1));if(_!==null||N!==null){if(I&&_!==null&&!C&&(M.cm=``+u.registerArrayCell(S)),r.start(`c`,M),_){let e=c===_.coords.rowStart&&m===_.coords.colStart,t=_.formula;_.memberImage&&!e&&(t=_.memberImage({rowIndex:c,colIndex:m}));let n,i=null,a=_.sharedId;if(a){n=vt;let e=_.coords;e.colStart===m&&e.rowStart===c?(n.ref=_.ref,n.si=a,i=_.formula):(n.ref=void 0,n.si=a)}else I?(n=yt,n.aca=S?`1`:void 0,n.ref=S?M.r:b?.ref??M.r,i=t):(n=_t,i=t);n.ca=v||S||_.isExcelVolatile?`1`:void 0,i?(r.start(`f`,n),r.text(i),r.end(`f`)):r.empty(`f`,n)}N!==null&&(P===`str`&&N?(r.start(`v`,e.w.test(N)?e.C:void 0),r.text(e.E(N))):(r.start(`v`),N&&r.text(N)),r.end(`v`)),r.end(`c`)}else p++<Xe?r.empty(`c`,M):p===1048577&&n.warn(`Reached ${Xe} style-only cells at '${M.r}'; not writing the rest.`)},{injectReferences:M,features:[]}),D!==-1&&D>=v?r.end(`row`):te(v,!0),r.end(`sheetData`),r.setValidationDisabled(!1)}else r.empty(`sheetData`);if(f>0){let e=c.get(`stringsCount`)??0;c.set(`stringsCount`,e+f)}}(r,i,a,o,await(async(n,r)=>{let i=r?r.length:0;if(i===0)return Ye;let a=new Set,o=Array(i);for(let e=0;e<i;e++){o[e]=null;try{let n=t.FormulaText.parse(r[e][1]);if(!n)continue;let i=null,s=e=>{let t=null;e.type===`function`?t=String(e.value):e.type===`call`&&e.inputs?.[0]?.type===`named`&&(t=String(e.inputs[0].value?.name??``)),t&&(t=t.toUpperCase(),a.add(t),(i??=new Set).add(t));let n=e.inputs;if(n)for(let e=0;e<n.length;e++)n[e]&&s(n[e])};s(n),o[e]=i}catch{}}let s=n.getWorkbook();if(!s)return Ye;let c=await e.k(s,a);return c.size===0?Ye:{names:c,perFormula:o,affects:e=>{let t=o[e];if(!t)return!1;for(let e of t)if(c.has(e))return!0;return!1}}})(a,o.formulas),s),function(t,n,r,i){let a=i.protection;if(!a)return;let o={};a.sheet||j(a.password??{},o);for(let t of e.y){let n=e.S(t,a[t.key]);n!==null&&(o[t.attribute]=n)}n.empty(`sheetProtection`,o)}(0,i,0,o),function(e,t,n,r){let i=r.protectedRanges,a=i?i.length:0;if(a===0)return;let o=[];for(let t=0;t<a;t++){let n=i[t],r,a;Array.isArray(n)?(r=n[0],a=n[1]):(r=n.r,a=n.v);let s=it(r);if(!s||!a){e.log(`Skipping protectedRange with no range.`);continue}if(!a.name){e.log(`Skipping protectedRange with no name.`);continue}let c={};j(a.password??{},c),c.sqref=s,c.name=a.name,a.securityDescriptor&&(c.securityDescriptor=a.securityDescriptor),o.push(c)}if(o.length!==0){t.start(`protectedRanges`);for(let e=0;e<o.length;e++)t.empty(`protectedRange`,o[e]);t.end(`protectedRanges`)}}(r,i,0,o);let c=o.autoTable;if(c){let e,t=c;e=Array.isArray(t)?t[1]:t.v,Ke(r,i,a.getAutoTable(),e,!0)}(function(e,n,r,i){let a=i.merges?i.merges.length:0;if(a>0){n.start(`mergeCells`,{count:a});for(let e=0;e<a;e++){let r=i.merges[e],a=typeof r==`string`?r:t.AddressUtils.rangeToString(r);n.empty(`mergeCell`,{ref:a})}n.end(`mergeCells`)}})(0,i,0,o);let l=function(n,r,i,a){let o=[],s=a.conditionals,c=s?s.length:0;if(c===0)return o;let l=n.getSharedStates(),u=l.get(Ne);u||(u=new Me,l.set(Ne,u));let d=i.getStyles().getTheme(),f=l.get(e.L),p=null,m=0;for(let i=0;i<c;i++){let a=s[i],c,l;Array.isArray(a)?(c=a[0],l=a[1]):(c=a.r,l=a.v);let h=it(c);if(!h||!l){n.log(`Skipping conditionalFormatting with no range.`);continue}let g=st(h),_=lt(l.scale,g,f);_!==l.scale&&(l={...l,scale:_});let v=_?{type:_.type}:e._(l.condition,rt(h),(e,t)=>n.warn(e,void 0,t));v?(v.formulas&&=v.formulas.map(e=>ct(e,g,f)),_?.type===t.IConditionalFormat.ScaleType.IconSet&&tt(_)?(m++,o.push({guid:e.ct(t.CommonUtils.uuidV4),sqref:h,priority:m,scale:_})):_||!ot(v)?(h!==p&&(p!==null&&r.end(`conditionalFormatting`),r.start(`conditionalFormatting`,{sqref:h,pivot:l.pivot?`1`:void 0}),p=h),m++,nt(n,r,d,l,v,h,m,u,o)):(m++,o.push({guid:e.ct(t.CommonUtils.uuidV4),sqref:h,priority:m,rule:v,style:l.style,stopIfTrue:l.stopIfTrue}))):l.condition||n.log(`Skipping conditional format with neither a condition nor a scale.`)}return p!==null&&r.end(`conditionalFormatting`),o}(r,i,a,o),u=function(t,n,r,i){let a=[],o=t.getSharedStates().get(e.L),s=i.validations,c=s?s.length:0;if(c===0)return a;let l=[];for(let n=0;n<c;n++){let r=s[n],i,c;Array.isArray(r)?(i=r[0],c=r[1]):(i=r.r,c=r.v);let u=it(i);if(!u||!c){t.log(`Skipping dataValidation with no range.`);continue}c.ext&&t.warn(`DataValidation extension payload is not written to xlsx; it will be lost.`);let d=(e,n)=>t.warn(e,void 0,n),f=e.f(c.condition,d),{type:p,operator:m}=f??{},h=st(u),g=ct(f?.formula1,h,o),_=ct(f?.formula2,h,o),v={type:p,operator:m,allowBlank:X(c.condition?.includeBlanks??!1),showDropDown:c.hideDropdown?`1`:void 0,showInputMessage:X(c.showPromptMessage),showErrorMessage:X(c.showAlertMessage),errorStyle:c.alertStyle??`stop`,errorTitle:e.u(c.alertTitle,`errorTitle`,d),error:e.u(c.alert,`error`,d),promptTitle:e.u(c.promptTitle,`promptTitle`,d),prompt:e.u(c.prompt,`prompt`,d),imeMode:c.imeMode};at(g)||at(_)?a.push({attrs:v,formula1:g,formula2:_,sqref:u}):(v.sqref=u,l.push({attrs:v,formula1:g,formula2:_}))}if(l.length===0)return a;n.start(`dataValidations`,{count:l.length});for(let e=0;e<l.length;e++){let{attrs:t,formula1:r,formula2:i}=l[e];r!==void 0||i!==void 0?(n.start(`dataValidation`,t),r!==void 0&&(n.start(`formula1`),n.text(r),n.end(`formula1`)),i!==void 0&&(n.start(`formula2`),n.text(i),n.end(`formula2`)),n.end(`dataValidation`)):n.empty(`dataValidation`,t)}return n.end(`dataValidations`),a}(r,i,0,o);(function(e,t,n,r){let i=r.hyperlinks,a=i?i.length:0;if(a!==0){t.start(`hyperlinks`);for(let n=0;n<a;n++){let r,a,o=i[n];Array.isArray(o)?(a=o[0],r=o[1]):(a=o.r,r=o.v),typeof r==`string`&&(r={address:r});let s=r.address??``,c=s.indexOf(`#`),l=c===-1?s:s.substring(0,c),u=c===-1?``:s.substring(c+1),d={};d.ref=a,l&&(d[`r:id`]=e.addExternal(`http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`,l).relId),u&&(d.location=u),r.screenTip&&(d.tooltip=r.screenTip),t.empty(`hyperlink`,d)}t.end(`hyperlinks`)}})(r,i,0,o),function(e,t,n,r){let i=r.pageMargins;t.empty(`pageMargins`,{left:i?.left??.7,right:i?.right??.7,top:i?.top??.75,bottom:i?.bottom??.75,header:i?.header??.3,footer:i?.footer??.3})}(0,i,0,o),function(e,t,n,r){let i=r.movables?.filter(Z);if((i?i.length:0)===0||!i.some(e=>{let t=e.content?.type;if(t===`picture`||t===`chart`)return!0;if(t===`shape`){let t=e.content?.json?.type;return t===`sp`||t===`cxnSp`}return!1}))return;let a=n.getMovables().getItems().filter((e,t)=>Z(r.movables[t])),o=e.addPart(`drawing`,{sheet:n,movables:a,jsonMovables:i,resources:n.getResources()});t.empty(`drawing`,{"r:id":o.relId})}(r,i,a,o);let d=function(e){let t=e.getComments().toArray();if(t.length===0)return null;let n=[];for(let e=0;e<t.length;e++){let r=t[e],i=Ce(r);i&&n.push({comment:r,...i})}return n.length===0?null:(n.sort((e,t)=>e.row-t.row||e.col-t.col),{sheet:e,comments:n})}(a);ut(r,i,`legacyDrawing`,dt(pt(o.legacyDrawing??null,o),d)),ut(r,i,`legacyDrawingHF`,o.legacyDrawingHF??null),await async function(e,t,n){let r=n.getPicture();if(!r)return;let i=r.getResource(),a=await i.getExternalURI(),o;if(a)o=e.addExternal(U,a);else{let t=e.getSharedStates(),n=t.get(W);n||(n=new Map,t.set(W,n));let r=n.get(i);if(!r){let e=await i.toBuffer();r={bytes:new Uint8Array(e),type:await i.getType()??Ae,index:n.size+1},n.set(i,r)}o=e.addBinary(r.bytes,r.type.mime,U,`../media/image${r.index}.${r.type.ext}`,!0)}t.empty(`picture`,{"r:id":o.relId})}(r,i,a),await async function(t,n,r){let i=r.movables;if(!i||i.every(Z))return;let a=[],o=i.length;for(let e=0;e<o;e++){let n=i[e];if(Z(n))continue;let r=n.content?.json??{},o=r.part,s;if(o)try{s=(await L(o.type?o:{...o,type:ft},t,`../ctrlProps/ctrlProp{n}.xml`))?.relId??void 0}catch(e){t.log(`Unable to write the properties of the control '${n.name}'`,e)}s?a.push({jsonMovable:n,jsonControl:r,relId:s}):t.log(`The control '${n.name}' has no properties to write and was dropped.`)}if(a.length===0)return;n.start(`mc:AlternateContent`,{"xmlns:x14":e.it,"xmlns:xdr":`http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing`}),n.start(`mc:Choice`,{Requires:`x14`}),n.start(`controls`);let s=a.length;for(let e=0;e<s;e++){let{jsonMovable:t,jsonControl:r,relId:i}=a[e];n.start(`mc:AlternateContent`),n.start(`mc:Choice`,{Requires:`x14`}),n.start(`control`,{shapeId:r.shapeId,"r:id":i,name:t.name??void 0});let o=t.anchorType??`twoCell`;n.start(`controlPr`,r.props),n.start(`anchor`,{moveWithCells:o===`absolute`?void 0:`1`,sizeWithCells:o===`twoCell`?`1`:void 0}),mt(n,`from`,t.anchor.tl),mt(n,`to`,t.anchor.br),n.end(`anchor`),r.xml&&n.raw(r.xml),n.end(`controlPr`),n.end(`control`),n.end(`mc:Choice`),n.end(`mc:AlternateContent`)}n.end(`controls`),n.end(`mc:Choice`),n.end(`mc:AlternateContent`)}(r,i,o),function(e,t,n,r){let i=r.tables,a=i?i.length:0;if(a===0)return;let o=n.getTables().getItems();t.start(`tableParts`,{count:a});for(let n=0;n<a;n++){let r,a,s=i[n];Array.isArray(s)?(a=s[0],r=s[1]):(a=s.r,r=s.v);let c=e.addPart(`table`,{json:r,model:o[n],ref:a}),l={};l[`r:id`]=c.relId,t.empty(`tablePart`,l)}t.end(`tableParts`)}(r,i,a,o),function(n,r,i,a,o){if(a.length===0&&o.length===0)return;let s=i.getStyles(),c=s.getTheme();if(r.start(`extLst`),a.length>0){r.start(`ext`,{uri:e.$,"xmlns:x14":e.it}),r.start(`x14:conditionalFormattings`);for(let n=0;n<a.length;n++){let{guid:i,sqref:o,priority:l,scale:u,rule:d,style:f,stopIfTrue:p}=a[n];if(r.start(`x14:conditionalFormatting`,{"xmlns:xm":e.at}),u)if(u.type===t.IConditionalFormat.ScaleType.DataBar){r.start(`x14:cfRule`,{type:`dataBar`,id:i}),r.start(`x14:dataBar`,{minLength:u.minLength,maxLength:u.maxLength,gradient:u.gradient?void 0:`0`,border:u.borderColor?`1`:void 0,direction:u.direction,negativeBarColorSameAsPositive:u.negativeFillColor?`0`:`1`,negativeBarBorderColorSameAsPositive:u.negativeBorderColor?`0`:void 0,axisPosition:u.axisPosition});let e=u.stops??[];if(e.length===0)$e(r,{type:t.IConditionalFormat.ColorStopType.AutoMin}),$e(r,{type:t.IConditionalFormat.ColorStopType.AutoMax});else for(let t=0;t<e.length;t++)$e(r,e[t]);u.borderColor&&B(r,c,u.borderColor,`x14:borderColor`),u.negativeFillColor&&B(r,c,u.negativeFillColor,`x14:negativeFillColor`),u.negativeBorderColor&&B(r,c,u.negativeBorderColor,`x14:negativeBorderColor`),u.axisColor&&B(r,c,u.axisColor,`x14:axisColor`),r.end(`x14:dataBar`),r.end(`x14:cfRule`)}else{r.start(`x14:cfRule`,{type:`iconSet`,priority:l,id:i}),r.start(`x14:iconSet`,{iconSet:u.iconSet,reverse:X(u.reverse),showValue:X(u.showValue),custom:(u.icon?.length??0)>0?`1`:void 0});let e=u.stops??[];for(let t=0;t<e.length;t++)$e(r,e[t]);let t=u.icon??[];for(let e=0;e<t.length;e++)r.empty(`x14:cfIcon`,{iconSet:t[e].set,iconId:t[e].id});r.end(`x14:iconSet`),r.end(`x14:cfRule`)}else{r.start(`x14:cfRule`,{type:d.type,priority:l,stopIfTrue:X(p),aboveAverage:X(d.aboveAverage),equalAverage:X(d.equalAverage),stdDev:d.stdDev,bottom:X(d.bottom),percent:X(d.percent),rank:d.rank,operator:d.operator,text:d.text,timePeriod:d.timePeriod,id:i});let e=d.formulas??[];for(let t=0;t<e.length;t++)r.start(`xm:f`),r.text(e[t]),r.end(`xm:f`);f&&Object.keys(f).length>0&&Ve(0,r,f,s,c,`x14:dxf`),r.end(`x14:cfRule`)}r.start(`xm:sqref`),r.text(o),r.end(`xm:sqref`),r.end(`x14:conditionalFormatting`)}r.end(`x14:conditionalFormattings`),r.end(`ext`)}if(o.length>0){r.start(`ext`,{uri:e.tt,"xmlns:x14":e.it}),r.start(`x14:dataValidations`,{"xmlns:xm":e.at,count:o.length});for(let e=0;e<o.length;e++){let{attrs:t,formula1:n,formula2:i,sqref:a}=o[e];r.start(`x14:dataValidation`,t),n!==void 0&&(r.start(`x14:formula1`),r.start(`xm:f`),r.text(n),r.end(`xm:f`),r.end(`x14:formula1`)),i!==void 0&&(r.start(`x14:formula2`),r.start(`xm:f`),r.text(i),r.end(`xm:f`),r.end(`x14:formula2`)),r.start(`xm:sqref`),r.text(a),r.end(`xm:sqref`),r.end(`x14:dataValidation`)}r.end(`x14:dataValidations`),r.end(`ext`)}r.end(`extLst`)}(0,i,a,l,u),function(e,t){let n=t.pivotTables,r=n?n.length:0;for(let t=0;t<r;t++){let r=n[t],i=r.part;i?.xml&&(ae(e,r.cacheId)?e.addPart(`pivotTable`,r):e.log(`The pivot table '${i.name??``}' has no cache with id ${r.cacheId} and was dropped.`))}}(r,o),function(e,t){t&&(e.addPart(`comments`,t),t.comments.some(e=>!e.comment.isNote())&&e.addPart(`threadedComments`,t))}(r,d),i.end(`worksheet`),i.close()}},new class extends r{constructor(){super({kind:`sharedStrings`,contentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings`,path:`/xl/sharedStrings.xml`})}async emit(t,n){let r=n.getXMLWriter(),i=t.json,a=i?i.length:0,o=n.getSharedStates().get(`stringsCount`)??0;r.decl(),r.start(`sst`,{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,count:o,uniqueCount:a});for(let t=0;t<a;t++){let n=i[t];r.start(`si`);let a=e.w.test(n)?e.C:void 0;r.start(`t`,a),r.text(e.E(n)),r.end(`t`),r.end(`si`)}r.end(`sst`),r.close()}},new class extends r{constructor(){super({kind:`theme`,contentType:`application/vnd.openxmlformats-officedocument.theme+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme`,path:`/xl/theme/theme{n}.xml`})}async emit(e,t){let n=t.getXMLWriter(),r=e.model,i=e.json;n.decl(),n.pushDefaultNamespace(`a`),n.start(`theme`,{"xmlns:a":`http://schemas.openxmlformats.org/drawingml/2006/main`,name:r.getName()||`Office Theme`}),n.start(`themeElements`),function(e,t,n,r){let i=n?.getColorScheme();if(i){t.start(r,{name:i.getName()||`Office`});for(let e of me)t.start(e),R(t,n,i[`get`+e.charAt(0).toUpperCase()+e.slice(1)]()),t.end(e);t.end(r)}}(0,n,r,`clrScheme`),function(e,t,n,r){n&&(t.start(r,{name:n.getName()||`Office`}),bt(e,t,n.getMajorFont()||`Calibri Light`,`majorFont`),bt(e,t,n.getMinorFont()||`Calibri`,`minorFont`),t.end(r))}(t,n,r.getFontScheme(),`fontScheme`),function(e,t,n,r,i){if(i?.fillStyleLst&&i?.lnStyleLst&&i?.effectStyleLst&&i?.bgFillStyleLst)return void function(e,t,n,r,i){let a={getTheme:()=>r};t.start(n,{name:`Office`}),t.start(`fillStyleLst`);for(let e of i.fillStyleLst)H(0,t,e,a);t.end(`fillStyleLst`),t.start(`lnStyleLst`);for(let e of i.lnStyleLst)we(0,t,e,a);t.end(`lnStyleLst`),t.start(`effectStyleLst`);for(let n of i.effectStyleLst)t.start(`effectStyle`),n.length>0?De(e,t,r,n):t.empty(`effectLst`),t.end(`effectStyle`);t.end(`effectStyleLst`),t.start(`bgFillStyleLst`);for(let e of i.bgFillStyleLst)H(0,t,e,a);t.end(`bgFillStyleLst`),t.end(n)}(e,t,n,r,i);if(i?.formatSchemeXml)return void t.raw(i.formatSchemeXml);t.start(n,{name:`Office`}),function(e,t){t.start(`fillStyleLst`),t.start(`solidFill`),t.empty(`schemeClr`,{val:`phClr`}),t.end(`solidFill`),t.start(`gradFill`,{rotWithShape:`1`}),t.start(`gsLst`),t.start(`gs`,{pos:`0`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`tint`,{val:`50000`}),t.empty(`satMod`,{val:`300000`}),t.end(`schemeClr`),t.end(`gs`),t.start(`gs`,{pos:`35000`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`tint`,{val:`37000`}),t.empty(`satMod`,{val:`300000`}),t.end(`schemeClr`),t.end(`gs`),t.start(`gs`,{pos:`100000`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`tint`,{val:`15000`}),t.empty(`satMod`,{val:`350000`}),t.end(`schemeClr`),t.end(`gs`),t.end(`gsLst`),t.empty(`lin`,{ang:`16200000`,scaled:`1`}),t.end(`gradFill`),t.start(`gradFill`,{rotWithShape:`1`}),t.start(`gsLst`),t.start(`gs`,{pos:`0`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`shade`,{val:`51000`}),t.empty(`satMod`,{val:`130000`}),t.end(`schemeClr`),t.end(`gs`),t.start(`gs`,{pos:`80000`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`shade`,{val:`93000`}),t.empty(`satMod`,{val:`130000`}),t.end(`schemeClr`),t.end(`gs`),t.start(`gs`,{pos:`100000`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`shade`,{val:`94000`}),t.empty(`satMod`,{val:`135000`}),t.end(`schemeClr`),t.end(`gs`),t.end(`gsLst`),t.empty(`lin`,{ang:`16200000`,scaled:`0`}),t.end(`gradFill`),t.end(`fillStyleLst`)}(0,t),function(e,t){t.start(`lnStyleLst`);let n=[9525,25400,38100];for(let e=0;e<3;e++)t.start(`ln`,{w:n[e].toString(),cap:`flat`,cmpd:`sng`,algn:`ctr`}),t.start(`solidFill`),t.start(`schemeClr`,{val:`phClr`}),t.empty(`shade`,{val:`95000`}),t.empty(`satMod`,{val:`105000`}),t.end(`schemeClr`),t.end(`solidFill`),t.empty(`prstDash`,{val:`solid`}),t.end(`ln`);t.end(`lnStyleLst`)}(0,t),function(e,t){t.start(`effectStyleLst`);for(let e=0;e<3;e++)t.start(`effectStyle`),t.start(`effectLst`),e===2&&(t.start(`outerShdw`,{blurRad:`40000`,dist:`20000`,dir:`5400000`,rotWithShape:`0`}),t.start(`srgbClr`,{val:`000000`}),t.empty(`alpha`,{val:`38000`}),t.end(`srgbClr`),t.end(`outerShdw`)),t.end(`effectLst`),t.end(`effectStyle`);t.end(`effectStyleLst`)}(0,t),function(e,t){t.start(`bgFillStyleLst`),t.start(`solidFill`),t.empty(`schemeClr`,{val:`phClr`}),t.end(`solidFill`),t.start(`gradFill`,{rotWithShape:`1`}),t.start(`gsLst`),t.start(`gs`,{pos:`0`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`tint`,{val:`40000`}),t.empty(`satMod`,{val:`350000`}),t.end(`schemeClr`),t.end(`gs`),t.start(`gs`,{pos:`40000`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`tint`,{val:`45000`}),t.empty(`shade`,{val:`99000`}),t.empty(`satMod`,{val:`350000`}),t.end(`schemeClr`),t.end(`gs`),t.start(`gs`,{pos:`100000`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`shade`,{val:`20000`}),t.empty(`satMod`,{val:`255000`}),t.end(`schemeClr`),t.end(`gs`),t.end(`gsLst`),t.empty(`path`,{path:`circle`}),t.empty(`fillToRect`,{l:`50000`,t:`-80000`,r:`50000`,b:`180000`}),t.end(`gradFill`),t.start(`gradFill`,{rotWithShape:`1`}),t.start(`gsLst`),t.start(`gs`,{pos:`0`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`tint`,{val:`80000`}),t.empty(`satMod`,{val:`300000`}),t.end(`schemeClr`),t.end(`gs`),t.start(`gs`,{pos:`100000`}),t.start(`schemeClr`,{val:`phClr`}),t.empty(`shade`,{val:`30000`}),t.empty(`satMod`,{val:`200000`}),t.end(`schemeClr`),t.end(`gs`),t.end(`gsLst`),t.empty(`path`,{path:`circle`}),t.empty(`fillToRect`,{l:`50000`,t:`50000`,r:`50000`,b:`50000`}),t.end(`gradFill`),t.end(`bgFillStyleLst`)}(0,t),t.end(n)}(t,n,`fmtScheme`,r,i),n.end(`themeElements`),n.start(`objectDefaults`),n.end(`objectDefaults`),n.start(`extraClrSchemeLst`),n.end(`extraClrSchemeLst`),n.end(`theme`),n.close()}},new class extends r{constructor(){super({kind:`styles`,contentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles`,path:`/xl/styles.xml`})}async emit(e,n){let r=n.getXMLWriter(),i=e.json,a=(e.theme,e.styles);r.decl(),r.start(`styleSheet`,{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`x14ac x16r2 xr`,"xmlns:x14ac":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac`,"xmlns:x16r2":`http://schemas.microsoft.com/office/spreadsheetml/2015/02/main`,"xmlns:xr":`http://schemas.microsoft.com/office/spreadsheetml/2014/revision`});let o=function(e,n){let r=n?.direct;r&&r.length!==0||(r=[{}]);let i=r.length,a=Array(i);for(let n=0;n<i;n++){let i=n===0?{...r[n],named:t.IStyle.BuiltInName.Normal}:r[n],o=e.resolve(i),s={};i.named!==void 0&&(s.named=i.named),i.quotePrefix!==void 0&&(s.quotePrefix=i.quotePrefix),i.protection!==void 0&&(s.protection=i.protection);for(let e=0;e<Pe.length;e++){let t=Pe[e];if(i[t]===void 0&&t!==`alignment`)continue;let n=o?.[t]??i[t];n!==void 0&&(s[t]=n)}a[n]=s}return a}(a,i),s=function(e,n,r){let i={fontMap:new Map,fonts:[],fillMap:new Map,fills:[],borderMap:new Map,borders:[],numFmtMap:new Map,numFmtsCustom:[],namedStyleMap:new Map,namedStyles:[]};(function(e,n){let r=(e.getNamedStyles().getByName(t.IStyle.BuiltInName.Normal).toJSON().style??{}).font??{};n.fontMap.set(t.BufferUtils.JSONStableStringify(r),`0`),n.fonts.push(r)})(e,i),function(e){let n={type:`none`};e.fillMap.set(t.BufferUtils.JSONStableStringify(n),`0`),e.fills.push(n);let r={type:`pattern`,patternType:`gray125`};e.fillMap.set(t.BufferUtils.JSONStableStringify(r),`1`),e.fills.push(r)}(i),function(e){let n={bottom:{style:`none`},left:{style:`none`},right:{style:`none`},top:{style:`none`}};e.borderMap.set(t.BufferUtils.JSONStableStringify(n),`0`),e.borders.push(n)}(i),function(e,n){Ie(e,e.getNamedStyles().getByName(t.IStyle.BuiltInName.Normal).toJSON(),n)}(e,i);let a=n?.named??t.CommonUtils.EmptyArray;for(let t of a)Ie(e,t,i);for(let t of r)Fe(e,t,i);return i}(a,i,o),c=n.getSharedStates().get(Ne),l=function(e,t=0){let n=e?.tables;if(!n)return null;let r=n.styles;if(!r)return null;let i=[],a=new Map,o=Object.keys(r),s=[...Ue].reverse();for(let e of o){let n=r[e];for(let r of s){let o=n[r];if(!o)continue;let s={};if(o.font&&(s.font=o.font),o.fill&&(s.fill=o.fill),o.borders&&(s.borders=o.borders),o.numberFormat!==void 0&&(s.numberFormat=o.numberFormat),Object.keys(s).length===0)continue;let c=t+i.length;i.push(s);let l=`${e}:${r}`;a.set(l,c)}}return{dxfs:i,dxfIndexMap:a}}(i,c?.getCount()??0);(function(e,t,n){let r=n.numFmtsCustom,i=r.length;if(i!==0){t.start(`numFmts`,{count:String(i)});for(let e=0;e<i;e++){let n=r[e];t.empty(`numFmt`,{numFmtId:String(e+He),formatCode:n})}t.end(`numFmts`)}})(0,r,s),function(e,t,n,r){let i=r.fonts,a=i.length;t.start(`fonts`,{count:String(a),"x14ac:knownFonts":`1`});for(let r of i)Le(e,t,r,n);t.end(`fonts`)}(n,r,a,s),function(e,t,n,r){let i=r.fills,a=i.length;t.start(`fills`,{count:String(a)});for(let e of i)H(0,t,e,n,!0);t.end(`fills`)}(0,r,a,s),function(e,t,n,r){let i=r.borders,a=i.length;t.start(`borders`,{count:String(a)});let o=n.getTheme();for(let n of i)Re(e,t,n,o,!1);t.end(`borders`)}(n,r,a,s),function(e,n,r,i,a){let o=a.namedStyles,s=o.length;n.start(`cellStyleXfs`,{count:String(s)});for(let i of o)Be(e,n,r,i.style??t.CommonUtils.EmptyObject,a,!1);n.end(`cellStyleXfs`)}(n,r,a,0,s),function(e,t,n,r,i,a){let o=r.length,s=a?.getSources()??[];t.start(`cellXfs`,{count:String(o+s.length)});for(let a=0;a<o;a++)Be(e,t,n,r[a],i,!0);for(let a=0;a<s.length;a++)Be(e,t,n,r[s[a]],i,!0,!0);t.end(`cellXfs`)}(n,r,a,o,s,n.getSharedStates().get(te)),function(e,n,r,i,a){let o=a.namedStyles,s=o.length;n.start(`cellStyles`,{count:String(s)});let c=a.namedStyleMap;for(let e=0;e<s;e++){let i=o[e],a=i.name,s=a.toLowerCase(),l={name:a,xfId:c.get(s)};i.hidden&&(l.hidden=`1`),i.iLevel&&(l.iLevel=String(i.iLevel));let u=null;u=s===t.IStyle.BuiltInName.Normal.toLowerCase()?0:r.getNamedStyles().getByName(a).getBuiltInID(),u!==null&&(l.builtinId=String(u),l.customBuiltin=`1`),n.empty(`cellStyle`,l)}n.end(`cellStyles`)}(0,r,a,0,s),function(e,t,n,r,i){let a=[...i?.getDxfs()??[],...r?.dxfs??[]];if(a.length===0)return void t.empty(`dxfs`,{count:`0`});let o=n.getTheme();t.start(`dxfs`,{count:String(a.length)});let s=He;for(let r of a)s=Ve(e,t,r,n,o,`dxf`,s);t.end(`dxfs`)}(n,r,a,l,c),function(e,t,n,r,i){let a=r?.tables,o=a?.styles??null,s=o?Object.keys(o):null,c=s?s.length:0,l={count:String(c),defaultTableStyle:a?.defaultTableStyle??`TableStyleMedium2`,defaultPivotStyle:a?.defaultPivotStyle??`PivotStyleLight16`};if(c===0)return void t.empty(`tableStyles`,l);t.start(`tableStyles`,l);for(let e of s){let n=o[e],r=[];for(let e of Ue){let t=n[e];t&&r.push([e,t])}let a={name:e,pivot:n.pivot?`1`:`0`,count:String(r.length)};t.start(`tableStyle`,a);for(let[n,a]of r){let r=`${e}:${n}`,o=i?.dxfIndexMap.get(r)??`0`,s={};s.type=n,a.size!==void 0&&(s.size=String(a.size)),s.dxfId=String(o),t.empty(`tableStyleElement`,s)}t.end(`tableStyle`)}t.end(`tableStyles`)}(0,r,0,i,l),function(e,t,n,r){let i=r?.indexedColors&&r.indexedColors.length>0,a=r?.mruColors&&r.mruColors.length>0;if(!(!i&&!a)){if(t.start(`colors`),i){t.start(`indexedColors`);for(let e of r.indexedColors){let n=ye(e,!0);t.empty(`rgbColor`,{rgb:n})}t.end(`indexedColors`)}if(a){t.start(`mruColors`);for(let e of r.mruColors){let n=ye(e);t.empty(`color`,{rgb:n})}t.end(`mruColors`)}t.end(`colors`)}}(0,r,0,i),function(e,t){t.start(`extLst`),t.start(`ext`,{uri:`{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}`,"xmlns:x14":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/main`}),t.empty(`x14:slicerStyles`,{defaultSlicerStyle:`SlicerStyleLight1`}),t.end(`ext`),t.start(`ext`,{uri:`{9260A510-F301-46a8-8635-F512D64BE5F5}`,"xmlns:x15":`http://schemas.microsoft.com/office/spreadsheetml/2010/11/main`}),t.empty(`x15:timelineStyles`,{defaultTimelineStyle:`TimeSlicerStyleLight1`}),t.end(`ext`),t.end(`extLst`)}(0,r),r.end(`styleSheet`),r.close()}},new class extends r{constructor(){super({kind:`propsCore`,contentType:`application/vnd.openxmlformats-package.core-properties+xml`,relTypeUri:`http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties`,path:`/docProps/core.xml`})}async emit(e,t){let n=t.getXMLWriter();n.decl(),n.start(`cp:coreProperties`,{"xmlns:cp":`http://schemas.openxmlformats.org/package/2006/metadata/core-properties`,"xmlns:dc":`http://purl.org/dc/elements/1.1/`,"xmlns:dcterms":`http://purl.org/dc/terms/`,"xmlns:dcmitype":`http://purl.org/dc/dcmitype/`,"xmlns:xsi":`http://www.w3.org/2001/XMLSchema-instance`});let r=new Date,i=[[`creator`,`SheetXL`],[`lastModifiedBy`,`SheetXL`],[`created`,xt(r)],[`modified`,xt(r)]];for(let e of i)St(n,e[0],e[1]);n.end(`cp:coreProperties`),n.close()}},new class extends r{constructor(){super({kind:`propsApp`,contentType:`application/vnd.openxmlformats-officedocument.extended-properties+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties`,path:`/docProps/app.xml`})}async emit(n,r){let i=r.getXMLWriter(),a=n.model,o=await t.LicenseManager.getDetails(),s=e.r(o.getBuildVersion()),c=o.getLicensee()||``;i.setValidationDisabled(!0),i.decl(),i.start(`Properties`,{xmlns:`http://schemas.openxmlformats.org/officeDocument/2006/extended-properties`,"xmlns:vt":`http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes`}),Q(r,i,`Application`,`SheetXL`),Q(r,i,`DocSecurity`,`0`),Q(r,i,`ScaleCrop`,`false`),Ct(r,i,a),Q(r,i,`Company`,c),Q(r,i,`LinksUpToDate`,`false`),Q(r,i,`SharedDoc`,`false`),Q(r,i,`HyperlinksChanged`,`false`),Q(r,i,`AppVersion`,s),i.end(`Properties`),i.close()}},new class extends r{constructor(){super({kind:`metadata`,contentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata`,path:`/xl/metadata.xml`})}emit(e,t){let n=t.getXMLWriter(),r=e.hasCellMeta(),i=e.hasValueMeta(),a=e.getDAPRFutureMetadataBlocks(),o=e.getRVFutureMetadataBlocks(),s=e.getValueMeta(),c=0,l=0,u=0;r&&(c=++u),i&&(l=++u);let d={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`};if(r&&(d[`xmlns:xda`]=`http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray`),i&&(d[`xmlns:xlrd`]=`http://schemas.microsoft.com/office/spreadsheetml/2017/richdata`),n.decl(),n.start(`metadata`,d),n.start(`metadataTypes`,{count:u}),r&&n.empty(`metadataType`,{name:`XLDAPR`,...wt,cellMeta:`1`}),i&&n.empty(`metadataType`,{name:`XLRICHVALUE`,...wt}),n.end(`metadataTypes`),r){n.start(`futureMetadata`,{name:`XLDAPR`,count:a.length});for(let e of a)n.start(`bk`),n.start(`extLst`),n.start(`ext`,{uri:`{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}`}),n.empty(`xda:dynamicArrayProperties`,{fDynamic:e.fDynamic,fCollapsed:e.fCollapsed}),n.end(`ext`),n.end(`extLst`),n.end(`bk`);n.end(`futureMetadata`)}if(i){n.start(`futureMetadata`,{name:`XLRICHVALUE`,count:o.length});for(let e of o)n.start(`bk`),n.start(`extLst`),n.start(`ext`,{uri:`{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}`}),n.empty(`xlrd:rvb`,{i:e}),n.end(`ext`),n.end(`extLst`),n.end(`bk`);n.end(`futureMetadata`)}if(r){n.start(`cellMetadata`,{count:a.length});for(let e=0;e<a.length;e++)n.start(`bk`),n.empty(`rc`,{t:c,v:e}),n.end(`bk`);n.end(`cellMetadata`)}if(i){n.start(`valueMetadata`,{count:s.length});for(let e of s)n.start(`bk`),n.empty(`rc`,{t:l,v:e}),n.end(`bk`);n.end(`valueMetadata`)}n.end(`metadata`),n.close()}},new class extends r{constructor(){super({kind:`richValue`,contentType:`application/vnd.ms-excel.rdrichvalue+xml`,relTypeUri:`http://schemas.microsoft.com/office/2017/06/relationships/rdRichValue`,path:`./richData/rdrichvalue.xml`})}async emit(e,t){let n=t.getXMLWriter(),r=e.getEntries(),i=r.length;n.decl(),n.start(`rvData`,{xmlns:`http://schemas.microsoft.com/office/spreadsheetml/2017/richdata`,count:i});for(let t of r){let r=e.handlerStructureIndex(t.handler);n.start(`rv`,{s:r});let i=t.handler.getValues(t.rawValue);for(let e of i)n.start(`v`),n.text(e),n.end(`v`);n.end(`rv`)}n.end(`rvData`),n.close()}},new class extends r{constructor(){super({kind:`richValueStructure`,contentType:`application/vnd.ms-excel.rdrichvaluestructure+xml`,relTypeUri:`http://schemas.microsoft.com/office/2017/06/relationships/rdRichValueStructure`,path:`./richData/rdrichvaluestructure.xml`})}async emit(e,t){let n=t.getXMLWriter(),r=e.uniqueHandlers(),i=r.length;n.decl(),n.start(`rvStructures`,{xmlns:`http://schemas.microsoft.com/office/spreadsheetml/2017/richdata`,count:i});for(let e of r){n.start(`s`,{t:e.type});for(let[t,r]of e.props)n.empty(`k`,{n:t,t:r});n.end(`s`)}n.end(`rvStructures`),n.close()}},new class extends r{constructor(){super({kind:`richValueTypes`,contentType:`application/vnd.ms-excel.rdrichvaluetypes+xml`,relTypeUri:`http://schemas.microsoft.com/office/2017/06/relationships/rdRichValueTypes`,path:`./richData/rdRichValueTypes.xml`})}async emit(e,t){let n=t.getXMLWriter();n.decl(),n.start(`rvTypesInfo`,{xmlns:`http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`x`,"xmlns:x":`http://schemas.openxmlformats.org/spreadsheetml/2006/main`});let r=[[`_self`,[`ExcludeFromFile`,`ExcludeFromCalcComparison`]],[`_DisplayString`,[`ExcludeFromCalcComparison`]],[`_Flags`,[`ExcludeFromCalcComparison`]],[`_Format`,[`ExcludeFromCalcComparison`]],[`_SubLabel`,[`ExcludeFromCalcComparison`]],[`_Attribution`,[`ExcludeFromCalcComparison`]],[`_Icons`,[`ExcludeFromCalcComparison`]],[`_Display`,[`ExcludeFromCalcComparison`]],[`_CanonicalPropertyNames`,[`ExcludeFromCalcComparison`]],[`_ClassificationId`,[`ExcludeFromCalcComparison`]]];n.start(`global`),n.start(`keyFlags`);for(let[e,t]of r){n.start(`key`,{name:e});for(let e of t)n.empty(`flag`,{name:e,value:`1`});n.end(`key`)}n.end(`keyFlags`),n.end(`global`),n.end(`rvTypesInfo`),n.close()}},new class extends r{constructor(){super({kind:`drawing`,contentType:`application/vnd.openxmlformats-officedocument.drawing+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing`,path:`../drawings/drawing{n}.xml`})}async emit(e,t){let n=t.getXMLWriter();n.decl(),n.pushDefaultNamespace(`xdr`),n.start(`wsDr`,{"xmlns:xdr":`http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing`,"xmlns:a":`http://schemas.openxmlformats.org/drawingml/2006/main`});let r=new Map,i=e.sheet,a=e.movables,o=e.jsonMovables,s=o?o.length:0,c=0;for(let e=0;e<s;e++){let t=o[e].content?.json?.sourceId;typeof t==`number`&&t>c&&(c=t)}let l=new Map,u;if(c>0){let e=t.getSharedStates();u=e.get(`uniqueIdCounter`),u||(u=new Map,e.set(`uniqueIdCounter`,u)),u.set(i,Math.max(u.get(i)??1,c));let n=new Set;for(let e=0;e<s;e++){let t=o[e].content?.json?.sourceId;if(typeof t==`number`)if(n.has(t)){let t=u.get(i)+1;u.set(i,t),l.set(o[e],t)}else n.add(t)}}for(let e=0;e<s;e++){let s=o[e],c=a[e],u=s.content?.type;switch(n.start(`twoCellAnchor`,{editAs:s.anchorType||`twoCell`}),Ut(n,`from`,s.anchor.tl),Ut(n,`to`,s.anchor.br),u){case`picture`:await jt(t,i,r,c,s);break;case`chart`:await Mt(t,i,r,c,s,l.get(s));break;case`shape`:await It(t,i,r,c,s,l.get(s));break;case`smartArt`:await Nt(t,i,r,c,s);break;case`slicer`:await Pt(t,i,r,c,s);break;case`graphicFrame`:await Ft(t,i,r,c,s);break;default:await $(t,i,r,c,s)}n.empty(`clientData`),n.end(`twoCellAnchor`)}n.end(`wsDr`),n.close()}},new class extends r{constructor(){super({kind:`legacyDrawing`,contentType:`application/vnd.openxmlformats-officedocument.vmlDrawing`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing`,path:`../drawings/vmlDrawing{n}.vml`})}async emit(e,t){let r=e.images,i=r?r.length:0;if(i>0){let e=t.getSharedStates().get(n);for(let n=0;n<i;n++){let i=r[n],a=e?.get(i.resId);if(a)try{await Wt(t,i.id,a)}catch(e){t.log(`Unable to write legacy drawing image '${i.id}'`,e)}else t.log(`Legacy drawing image '${i.id}' has no resource ${i.resId} and was not written.`)}}let a=t.getXMLWriter();a.setValidationDisabled(!0),a.raw(e.xml),a.close()}},new class extends r{constructor(){super({kind:`embeddedPart`,contentType:F,relTypeUri:``})}getContentType(e){return e?.contentType||F}getRelTypeUri(e){return e?.type??``}getPath(e){return`./${re(e.name)}`}async emit(e,t){await I(e,t);let n=t.getXMLWriter();n.setValidationDisabled(!0),n.raw(e.xml??``),n.close()}},new class extends r{constructor(){super({kind:`pivotTable`,contentType:ie,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable`,path:`../pivotTables/pivotTable{n}.xml`})}getContentType(e){return e?.part?.contentType||ie}async emit(e,t){let n=e.part;await I(n,t);let r=ae(t,e.cacheId);if(!r||!t.addRelationship(`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition`,r))throw Error(`Pivot table '${n.name??``}' has no cache with id ${e.cacheId}.`);let i=t.getXMLWriter();i.setValidationDisabled(!0),i.raw(n.xml??``),i.close()}},new class extends r{constructor(){super({kind:`comments`,contentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`,path:`../comments{n}.xml`})}async emit(e,t){let n=t.getXMLWriter();n.decl(),n.start(`comments`,{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`xr`,"xmlns:xr":`http://schemas.microsoft.com/office/spreadsheetml/2014/revision`});let r=[],i=new Map,a=e=>{let t=i.get(e);return t===void 0&&(t=r.length,r.push(e),i.set(e,t)),t},o=e.comments,s=[];for(let e=0;e<o.length;e++){let{comment:t,ref:n}=o[e];t.isNote()?s.push({ref:n,authorId:a(t.getAuthor()?.getDisplayName()??``),content:t.getRichContent()??t.getContent()}):s.push({ref:n,authorId:a(`tc={${t.getId().toUpperCase()}}`),content:be(t)})}n.start(`authors`);for(let e=0;e<r.length;e++)n.start(`author`),n.text(r[e]),n.end(`author`);n.end(`authors`),n.start(`commentList`);for(let e=0;e<s.length;e++){let t=s[e];n.start(`comment`,{ref:t.ref,authorId:t.authorId,shapeId:0}),n.start(`text`),xe(n,t.content),n.end(`text`),n.end(`comment`)}n.end(`commentList`),n.end(`comments`),n.close()}},new class extends r{constructor(){super({kind:`threadedComments`,contentType:`application/vnd.ms-excel.threadedcomments+xml`,relTypeUri:`http://schemas.microsoft.com/office/2017/10/relationships/threadedComment`,path:`../threadedComments/threadedComment{n}.xml`})}async emit(e,t){let n=t.getXMLWriter();n.decl(),n.start(`ThreadedComments`,{xmlns:`http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments`,"xmlns:x":`http://schemas.openxmlformats.org/spreadsheetml/2006/main`});let r=e.comments;for(let e=0;e<r.length;e++){let{comment:t,ref:i}=r[e];if(t.isNote())continue;Gt(n,i,t.getId(),t.getAuthor()?.getId(),t.getCreationDate(),t.getContent(),null,t.isResolved());let a=t.getReplies();for(let e=0;e<a.length;e++){let r=a[e];Gt(n,i,r.getId(),r.getAuthor()?.getId(),r.getCreationDate(),r.getContent(),t.getId(),!1)}}n.end(`ThreadedComments`),n.close()}},new class extends r{constructor(){super({kind:`persons`,contentType:`application/vnd.ms-excel.person+xml`,relTypeUri:`http://schemas.microsoft.com/office/2017/10/relationships/person`,path:`persons/person.xml`})}async emit(e,t){let n=t.getXMLWriter();n.decl(),n.start(`personList`,{xmlns:`http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments`,"xmlns:x":`http://schemas.openxmlformats.org/spreadsheetml/2006/main`});let r=e.toArray();for(let e=0;e<r.length;e++){let t=r[e];n.empty(`person`,{displayName:t.getDisplayName(),id:Kt(t.getId()),userId:t.getUserId()??t.getDisplayName(),providerId:t.getProviderId()??`None`})}n.end(`personList`),n.close()}},new class extends r{constructor(){super({kind:`table`,contentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/table`,path:`../tables/table{n}.xml`})}async emit(e,t){let n=t.getXMLWriter();n.decl();let r={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`xr xr3`,"xmlns:xr":`http://schemas.microsoft.com/office/spreadsheetml/2014/revision`,"xmlns:xr3":`http://schemas.microsoft.com/office/spreadsheetml/2016/revision3`},i=e.json,a=e.model;a.isShowHeaders(),r.id=++qt,r.name=i.name?.trim(),r.displayName=i.description??i.name,r.ref=e.ref,i.headerRowCount!==1&&(r.headerRowCount=i.headerRowCount),i.totalsRowCount!==0&&(r.totalsRowCount=i.totalsRowCount),i.totalsRowShown||a.isShowTotals()||(r.totalsRowShown=`0`),n.start(`table`,r),a.isShowHeaders()&&Ke(t,n,a,i),Jt(t,n,a,i),Xt(t,n,a,i),n.end(`table`),n.close()}},new class extends r{constructor(){super({kind:`externalLink`,contentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink`,path:`../externalLinks/externalLink{n}.xml`})}async emit(e,t){let n=t.getXMLWriter(),r=e.sources??[],i=r.findIndex(e=>e.role===`book`);i<0&&r.length>0&&(i=0);let a=null,o=null;for(let e=0;e<r.length;e++){let n=r[e],s=t.addExternal(n.type||`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath`,n.target).relId;e===i?a=s:n.role===`absoluteUrl`&&(o=s)}a||t.log(`External book has no path relationship; Excel cannot locate its source.`,e.sheetNames),n.decl();let s={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`};(e.mceIgnorable||o)&&(s[`xmlns:mc`]=`http://schemas.openxmlformats.org/markup-compatibility/2006`,s[`mc:Ignorable`]=`x14 xxl21`,s[`xmlns:x14`]=`http://schemas.microsoft.com/office/spreadsheetml/2009/9/main`,s[`xmlns:xxl21`]=`http://schemas.microsoft.com/office/spreadsheetml/2021/extlinks2021`),n.start(`externalLink`,s);let c={"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`};a&&(c[`r:id`]=a),n.start(`externalBook`,c),o&&(n.start(`xxl21:alternateUrls`),n.empty(`xxl21:absoluteUrl`,{"r:id":o}),n.end(`xxl21:alternateUrls`)),function(e,t){let n=t.sheetNames,r=n?n.length:0;if(r!==0){e.start(`sheetNames`);for(let t=0;t<r;t++)e.empty(`sheetName`,{val:n[t]});e.end(`sheetNames`)}}(n,e),function(e,t){let n=t.definedNames,r=n?n.length:0;if(r!==0){e.start(`definedNames`);for(let t=0;t<r;t++){let r=n[t],i={name:r.name,refersTo:r.refersTo};r.sheetIndex!==void 0&&(i.sheetId=``+r.sheetIndex),e.empty(`definedName`,i)}e.end(`definedNames`)}}(n,e),function(e,t){let n=t.sheetDataSet,r=n?n.length:0;if(r!==0){e.start(`sheetDataSet`);for(let t=0;t<r;t++){let r=n[t],i={sheetId:``+r.sheetIndex};r.refreshError&&(i.refreshError=`1`);let a=r.data,o=a?a.length:0;if(o!==0){e.start(`sheetData`,i);for(let t=0;t<o;t++){let[n,r]=a[t];e.start(`row`,{r:``+(n+1)});let i=r.length;for(let t=0;t<i;t++){let[i,a]=r[t],o=a.length;for(let t=0;t<o;t++)$t(e,n,i+t,a.at(t))}e.end(`row`)}e.end(`sheetData`)}else e.empty(`sheetData`,i)}e.end(`sheetDataSet`)}}(n,e),n.end(`externalBook`),n.end(`externalLink`),n.close()}},new class extends r{constructor(){super({kind:`chart`,contentType:`application/vnd.openxmlformats-officedocument.drawingml.chart+xml`,relTypeUri:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart`,path:`../charts/chart{n}.xml`})}async emit(e,t){let n=t.getXMLWriter();n.decl(),n.pushDefaultNamespace(`c`),n.start(`chartSpace`,{"xmlns:c":`http://schemas.openxmlformats.org/drawingml/2006/chart`,"xmlns:a":`http://schemas.openxmlformats.org/drawingml/2006/main`,"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"xmlns:c16r2":`http://schemas.microsoft.com/office/drawing/2015/06/chart`}),n.empty(`date1904`,{val:`0`}),n.empty(`lang`,{val:`en-US`}),n.empty(`roundedCorners`,{val:`0`}),en(t,n,e.model,e.json),tn(t,n,e.styles,e.model,e.json),nn(t,n,e.model,e.json),n.end(`chartSpace`),n.popDefaultNamespace(),n.close(),t.addPart(`chartStyle`,{styles:e.styles}),t.addPart(`chartColors`,{styles:e.styles})}},new class extends r{constructor(){super({kind:`chartStyle`,contentType:`application/vnd.ms-office.chartstyle+xml`,relTypeUri:`http://schemas.microsoft.com/office/2011/relationships/chartStyle`,path:`./style{n}.xml`})}async emit(e,t){let n=t.getXMLWriter();n.pushDefaultNamespace(`cs`),n.start(`chartStyle`,{"xmlns:cs":`http://schemas.microsoft.com/office/drawing/2012/chartStyle`,"xmlns:a":`http://schemas.openxmlformats.org/drawingml/2006/main`,id:`297`}),an(t,n,on,e.styles),n.end(`chartStyle`),n.close()}},new class extends r{constructor(){super({kind:`chartColors`,contentType:`application/vnd.ms-office.chartcolorstyle+xml`,relTypeUri:`http://schemas.microsoft.com/office/2011/relationships/chartColorStyle`,path:`./colors{n}.xml`})}async emit(e,t){let n=t.getXMLWriter();n.pushDefaultNamespace(`cs`),n.start(`cs:colorStyle`,{"xmlns:cs":`http://schemas.microsoft.com/office/drawing/2012/chartStyle`,"xmlns:a":`http://schemas.openxmlformats.org/drawingml/2006/main`,meth:`cycle`,id:`10`}),n.empty(`a:schemeClr`,{val:`accent1`}),n.empty(`a:schemeClr`,{val:`accent2`}),n.empty(`a:schemeClr`,{val:`accent3`}),n.empty(`a:schemeClr`,{val:`accent4`}),n.empty(`a:schemeClr`,{val:`accent5`}),n.empty(`a:schemeClr`,{val:`accent6`}),sn(t,n,cn),n.end(`cs:colorStyle`),n.close()}}],un=t=>{let n=t.getPart(`xl/_rels/workbook.xml.rels`);if(!n)return null;let r=new Map;for(let t of e.W(n.data)){if(!t.id)continue;let e=t.external?t.target:p(t.target.startsWith(`/`)?t.target:`xl/`+t.target);r.set(t.id,{type:t.type,target:e,external:t.external})}return r},dn=e=>{let t=e.getPart(`xl/workbook.xml`);return t?new TextDecoder(`utf-8`).decode(t.data):null},fn=e=>{let t=pn.get(e);if(t!==void 0)return t;let n=e.getPart(`xl/workbook.xml`),r=n?new TextDecoder(`utf-8`).decode(n.data):null;return pn.set(e,r),r},pn=new WeakMap,mn=1;exports.writeXLSX=async(t,r)=>{let a=new A;for(let e of ln)a.register(e);let o=mn,s=i.createUint8Array({lastModDate:new Date(1899,11,29,19,0,0),level:o}),c=r?.format===`Excel`||r?.format===`ExcelMacro`?e.P(t):null,l=new Map,u=c?(e=>{let t=e.getPart(`xl/workbook.xml`);if(!t)return null;let n=new TextDecoder(`utf-8`).decode(t.data.subarray(0,4096)).match(/<fileVersion\b([^>]*)\/?>/);if(!n)return null;let r={};for(let e of n[1].matchAll(/([\w:]+)="([^"]*)"/g))r[e[1]]=e[2];return Object.keys(r).length>0?r:null})(c):null;u&&(r?.macroEnabled||delete u.codeName,l.set(se,u));let d=c?(e=>{let t=fn(e)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);return t?t[1]:null})(c):null;d!==null&&l.set(`calcId`,d);let f=c?(e=>{let t=fn(e)?.match(/<ext\b[^>]*>\s*<xcalcf:calcFeatures\b[\s\S]*?<\/xcalcf:calcFeatures>\s*<\/ext>/);return t?t[0]:null})(c):null;f!==null&&l.set(`calcFeatures`,f);let p=c?(e=>{let t=dn(e);if(!t)return null;let n=/<externalReferences\b[^>]*>([\s\S]*?)<\/externalReferences>/.exec(t);if(!n)return null;let r=[...n[1].matchAll(/<externalReference\b[^>]*\sr:id="([^"]*)"/g)].map(e=>e[1]);if(r.length===0)return null;let i=un(e);return i?r.map(e=>{let t=i.get(e);return t&&!t.external?t.target:null}):null})(c):null;p&&l.set(le,p);let m=c?(e=>{let t=dn(e),n=t?un(e):null;if(!t||!n)return null;let r=new Map;for(let e of t.matchAll(/<sheet\b([^>]*)\/?>/g)){let t=/\bsheetId="(\d+)"/.exec(e[1])?.[1],i=/\br:id="([^"]*)"/.exec(e[1])?.[1];if(!t||!i)continue;let a=n.get(i);a&&!a.external&&a.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`&&r.set(parseInt(t,10),a.target)}return r.size>0?r:null})(c):null;m&&l.set(ce,m),l.set(n,new Map);let h=[],g=new k(s,a,{strictDuplicateChildren:!0,onPartEmitted:r?.onPartEmitted,onWarning:(e,t,n)=>{h.push([e,t,n])},mapState:l,sourcePackage:c,macroEnabled:r?.macroEnabled??!1});g.addPart(`workbook`,t,`/xl/workbook.xml`),await g.waitEmit(),g.addPart(`propsCore`,{}),g.addPart(`propsApp`,{model:t});let _=await g.build(),v=r?.progress?.onWarning;if(h.length&&v){let e=new Set;for(let[t,n,i]of h){let a=i??t;e.has(a)||(e.add(a),v.call(r.progress,t,n))}}return _.byteOffset===0&&_.byteLength===_.buffer.byteLength?_.buffer:_.slice().buffer};
@@ -1 +0,0 @@
1
- const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./DULsYP_GcPGLVYSE.cjs"),n=require("./DtBN3UOzNJjYBwJ6.cjs");let r=require("@sheetxl/utils"),i=require("@sheetxl/sdk");var a=class{constructor(e){this.list=e}get length(){return this.list.length}item(e){return this.list[e]}forEach(e,t){let n=this.list,r=n.length;for(let t=0;t<r;t++)e(n[t],t,this)}entries(){return this.list.entries()}keys(){return this.list.keys()}values(){return this.list.values()}[Symbol.iterator](){return this.list.values()}},o=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,s=e=>{let t=parseInt(e);return isNaN(t)?null:t},c=e=>{let t=parseFloat(e);return isNaN(t)?null:t},l=new Map,u=class{constructor(e,t,n,i,a,o=null,s=r.CommonUtils.EmptyObject){this._fileLocation=``;let c=(e,t,n)=>s?.getRef?.(e,t,n,s?.parsedRefs),l=e=>s?.getRefs?.(e,s?.parsedRefs);this._parent=e,this.sharedShared=t,this.currentPath=n,this.elemRoot=i,this.jsonRoot=a,e?(this._fileLocation=e._fileLocation,this._getRef=e._getRef,this._getRefs=e._getRefs,this._serializeElement=e._serializeElement,this._readEmbeddedPart=e._readEmbeddedPart):(o&&(this._fileLocation=o),s?.getRef&&(this._getRef=c),s?.getRefs&&(this._getRefs=l),this._onWarning=s?.onWarning,this._addPerson=s?.addPerson,this._serializeElement=s?.serializeElement,this._readEmbeddedPart=s?.readEmbeddedPart)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??null}readEmbeddedPart(e){return this._readEmbeddedPart?.(e,this._fileLocation)??null}getRelationships(){return this._getRefs?.(this._fileLocation)??l}getPath(){return this.currentPath}getFileLocation(){return this._fileLocation}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(e,t){this._raiseWarning(e,this.getFileLocation(),t?.onceKey)}_raiseWarning(e,t,n){this._onWarning?this._onWarning(e,t,n):this._parent?this._parent._raiseWarning(e,t,n):console.warn(e)}serializeElement(e){return this._serializeElement?.(e)??null}addPerson(e){return typeof e==`string`&&(e={displayName:e}),this._addPerson?this._addPerson(e):this._parent?this._parent?._addPerson?.(e)??null:null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(e,t){if(!e)return t;let n=[t],r=e.split(`/`),i=r.length;for(let e=0;e<i;e++){let t=r[e];if(t===``||t===`.`)continue;let a=[],o=(t===`*`||t===`**`)&&e!==i-1;for(let i of n)if(i)if(o){let t=r[e+1];t&&t!==``&&t!==`.`&&(this._findDescendants(i,t,a),e++)}else if(t===`*`||t===`**`){if(!i.childNodes)continue;let e=i.childNodes,t=e.length;for(let n=0;n<t;n++){let t=e[n];t.nodeType===1&&a.push(t)}}else{if(!i.childNodes)continue;let e=i.childNodes,n=e.length;for(let r=0;r<n;r++){let n=e[r];if(n.nodeType!==1)continue;let i=n;this._matchesElementName(i,t)&&a.push(i)}}if(n=a,n.length===0)return null}return n.length===1?n[0]:n.length===0?null:new a(n)}_matchesElementName(e,t){return t.includes(`:`)?(e.tagName||e.nodeName)===t:e.localName===t}_findDescendants(e,t,n){if(!e||!e.childNodes)return;let r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let i=r[e];if(i.nodeType!==1)continue;let a=i;this._matchesElementName(a,t)&&n.push(a),this._findDescendants(a,t,n)}}getFromPath(e,t){return r.CommonUtils.getFromPath(e,t)}setToPath(e,t,n){return r.CommonUtils.setToPath(e,t,n)}getValAttrAsString(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?n.getAttribute(`val`)??null:null}getValAttrAsBoolean(e,t,n=!1){let r=this.evaluate(e,t);if(!r)return null;let i=r.hasAttribute(`val`)?r.getAttribute(`val`):void 0;return i==null?n:i===`1`||i===`on`||i===`true`||i!==`0`&&i!==`off`&&i!==`false`&&n}getValAttrAsInteger(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseInt(n.getAttribute(`val`))??null:null}getValAttrAsFloat(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseFloat(n.getAttribute(`val`))??null:null}get BOOLEAN_COPY(){return o}get INT_COPY(){return s}get FLOAT_COPY(){return c}copyFromAttribute(e,t,n,r=t,i=null){if(!e||!n||!e.hasAttribute(t))return;let a=e.getAttribute(t);if(i){if(Array.isArray(i)){let e=i.length;for(let t=0;t<e;t++)if(a==null||(a=i[t](a),a==null))return}else if(a==null||(a=i(a),a==null))return}this.setToPath(n,r,a)}},d=e.n({isBlank:()=>_,isNotBlank:()=>v,length:()=>y,parseRotation:()=>f,parseValAttrAsBoolean:()=>m,parseValAttrAsFloat:()=>g,parseValAttrAsInteger:()=>h,parseValAttrAsString:()=>p}),f=(e,t)=>{if(!e||!e.hasAttribute(`rot`))return;let i=e.getAttribute(`rot`),a=r.CommonUtils.roundAccurately(n.i(i),2);a!==-1e3&&(t.rotation=a)},p=(e,t,n,r,i)=>{let a=e.getValAttrAsString(r,t);a!==null&&(n[i]=a)},m=(e,t,n,r,i=r,a=null)=>{let o=e.getValAttrAsBoolean(r,t,a);o!==null&&(n[i]=o)},h=(e,t,n,r,i)=>{let a=e.getValAttrAsInteger(r,t);a!==null&&(n[i]=a)},g=(e,t,n,r,i,a=1)=>{let o=e.getValAttrAsFloat(r,t);o!==null&&(n[i]=o*a)},_=e=>!e||e.trim().length===0,v=e=>!_(e),y=e=>e?.length??0,b=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={};return n[this.jsonKey]=r,r}},x=class{visit(e,t,n){}getStroke(e,t){let n=e.evaluate(`ln`,t);return n?this.parseLn(e,n):{}}parseLn(e,t){let r={};t.hasAttribute(`algn`)&&(r.align=t.getAttribute(`algn`)),t.hasAttribute(`cap`)&&(r.lineCap=C(t.getAttribute(`cap`))),t.hasAttribute(`cmpd`)&&(r.compound=t.getAttribute(`cmpd`)),t.hasAttribute(`w`)&&(r.width=n.c(t.getAttribute(`w`)));let i=e.evaluate(`miter`,t);i&&(r.lineJoin=`miter`,i.hasAttribute(`lim`)&&(r.miterLimit=parseFloat(i.getAttribute(`lim`))/1e5)),e.evaluate(`bevel`,t)&&(r.lineJoin=`bevel`),e.evaluate(`round`,t)&&(r.lineJoin=`round`);let a=e.evaluate(`custDash`,t);if(a){let t=e.evaluate(`ds`,a);if(t&&t.length>0){let e=[];for(let r=0;r<t.length;r++){let i=t.item(r);e.push(n.o(i.getAttribute(`d`)??``)),e.push(n.o(i.getAttribute(`sp`)??``))}r.dash=e}}let o=e.evaluate(`prstDash`,t);o&&o.hasAttribute(`val`)&&(r.dash=o.getAttribute(`val`)),this.parseEndElement(e,t,r,`headEnd`,`head`),this.parseEndElement(e,t,r,`tailEnd`,`tail`);let s=this.getFill(e,t);return s&&(r.fill=s),r}parseEndElement(e,t,n,r,i){let a=e.evaluate(r,t);if(a&&(a.hasAttribute(`type`)&&(n[i+`Type`]=a.getAttribute(`type`)),a.hasAttribute(`len`)||a.hasAttribute(`w`))){let e=a.getAttribute(`len`)||`med`,t=a.getAttribute(`w`)||`med`;n[i+`Size`]=e+`-`+t}}getEffects(e,t){let n=e.evaluate(`effectLst`,t);if(!n)return null;let r=[],i=n.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processEffectElement(e,n,n.localName);if(a===void 0)return;r.push(a)}return r}processEffectElement(e,t,r){switch(r){case`outerShdw`:{let r={type:i.IEffect.Type.OuterShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(r.distance=n.c(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.i(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(r.blur=n.c(t.getAttribute(`blurRad`))),t.hasAttribute(`algn`)&&(r.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=n.a(t.getAttribute(`rotWithShape`))),t.hasAttribute(`sx`)&&(r.scaleX=n.o(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(r.scaleY=n.o(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(r.skewX=n.i(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(r.skewY=n.i(t.getAttribute(`ky`))),r}case`innerShdw`:{let r={type:i.IEffect.Type.InnerShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(r.distance=n.c(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.i(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(r.blur=n.c(t.getAttribute(`blurRad`))),r}case`prstShdw`:{let r={type:i.IEffect.Type.PresetShadow,color:this.processAdjColor(e,t),preset:t.getAttribute(`prst`)??void 0};return t.hasAttribute(`dist`)&&(r.distance=n.c(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.i(t.getAttribute(`dir`))),r}case`glow`:{let r={type:i.IEffect.Type.Glow,color:this.processAdjColor(e,t)};return t.hasAttribute(`rad`)&&(r.radius=n.c(t.getAttribute(`rad`))),r}case`softEdge`:{let e={type:i.IEffect.Type.SoftEdge};return t.hasAttribute(`rad`)&&(e.radius=n.c(t.getAttribute(`rad`))),e}case`reflection`:{let e={type:i.IEffect.Type.Reflection};return t.hasAttribute(`blurRad`)&&(e.blur=n.c(t.getAttribute(`blurRad`))),t.hasAttribute(`dist`)&&(e.distance=n.c(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(e.angle=n.i(t.getAttribute(`dir`))),t.hasAttribute(`fadeDir`)&&(e.fadeAngle=n.i(t.getAttribute(`fadeDir`))),t.hasAttribute(`stA`)&&(e.startAlpha=n.o(t.getAttribute(`stA`))),t.hasAttribute(`stPos`)&&(e.startPosition=n.o(t.getAttribute(`stPos`))),t.hasAttribute(`endA`)&&(e.endAlpha=n.o(t.getAttribute(`endA`))),t.hasAttribute(`endPos`)&&(e.endPosition=n.o(t.getAttribute(`endPos`))),t.hasAttribute(`sx`)&&(e.scaleX=n.o(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(e.scaleY=n.o(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(e.skewX=n.i(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(e.skewY=n.i(t.getAttribute(`ky`))),t.hasAttribute(`algn`)&&(e.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(e.isRotatedWithShape=n.a(t.getAttribute(`rotWithShape`))),e}default:return}}getFill(e,t){if(e.evaluate(`noFill`,t))return{type:i.IFill.Type.None};let n=e.evaluate(`solidFill`,t);if(n){let t=this.processAdjColor(e,n);if(t)return{type:i.IFill.Type.Solid,color:t}}let r=e.evaluate(`gradFill`,t);if(r)return this.processGradFill(e,r);let a=e.evaluate(`pattFill`,t);if(a)return this.processPatternFill(e,a);let o=e.evaluate(`blipFill`,t);return o?this.processImageFill(e,o):null}processGradFill(e,t){let r={type:i.IFill.Type.Gradient};t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=t.getAttribute(`rotWithShape`)===`1`);let a=e.evaluate(`lin`,t);a&&(r.gradientType=i.IFill.GradientType.Linear,a.hasAttribute(`ang`)&&(r.angle=n.i(a.getAttribute(`ang`))),a.hasAttribute(`scaled`)&&(r.scaled=n.a(a.getAttribute(`scaled`))));let o={};t.hasAttribute(`flip`)&&(o.mirror=t.getAttribute(`flip`)),Object.keys(o).length>0&&(r.tile=o);let s=e.evaluate(`path`,t);if(s){s.hasAttribute(`path`)&&(r.gradientType=S(s.getAttribute(`path`)));let t=e.evaluate(`fillToRect`,s);t&&(r.focus=this.getRect(t))}let c=e.evaluate(`tileRect`,t);c&&(r.tile||={},r.tile.bounds=this.getRect(c));let l=[],u=e.evaluate(`gsLst/gs`,t),d=u?u.length:0;for(let t=0;t<d;t++){let r=u.item(t),i={offset:n.o(r.getAttribute(`pos`)??``),color:this.processAdjColor(e,r)};l.push(i)}return l.length>0&&(r.stops=l),r}getRect(e){let t={};return e.hasAttribute(`t`)&&(t.t=n.o(e.getAttribute(`t`))),e.hasAttribute(`l`)&&(t.l=n.o(e.getAttribute(`l`))),e.hasAttribute(`b`)&&(t.b=n.o(e.getAttribute(`b`))),e.hasAttribute(`r`)&&(t.r=n.o(e.getAttribute(`r`))),Object.keys(t).length===0?null:t}processImageFill(e,t){let r={type:i.IFill.Type.Image};return t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=n.a(t.getAttribute(`rotWithShape`))),t.hasAttribute(`dpi`)&&(r.dpi=t.getAttribute(`dpi`)),r.ref=`https://www.sheetxl.com/logo-color-padded-white.jpg`,r.tile=!1,r}processPatternFill(e,t){let n={type:i.IFill.Type.Pattern};n.patternType=t.getAttribute(`prst`);let r=e.evaluate(`bgClr`,t);if(r){let t=this.processAdjColor(e,r);t&&(n.background=t)}let a=e.evaluate(`fgClr`,t);if(a){let t=this.processAdjColor(e,a);t&&(n.foreground=t)}return n}processAdjColor(e,t){let n=e.evaluate(`hslClr`,t);if(n)return this.processHslClr(e,n);let r=e.evaluate(`prstClr`,t);if(r)return this.processClrWithValAttribute(e,r);let i=e.evaluate(`schemeClr`,t);if(i)return this.processClrWithValAttribute(e,i);let a=e.evaluate(`sysClr`,t);if(a){let t=this.processClrWithValAttribute(e,a),n=a.getAttribute(`lastClr`);return t&&n&&(t+=` lastClr ${n}`),t}let o=e.evaluate(`scrgbClr`,t);if(o)return this.processScrgbClrElement(e,o);let s=e.evaluate(`srgbClr`,t);return s?this.processSrgbClrElement(e,s):null}processScrgbClrElement(e,t){let r=`lrgba(`+n.o(t.getAttribute(`r`)??``)+`,`+n.o(t.getAttribute(`g`)??``)+`,`+n.o(t.getAttribute(`b`)??``)+`)`;return r+=this.processAdjustments(e,t),r}processSrgbClrElement(e,t){let n=t.getAttribute(`val`);return n+=this.processAdjustments(e,t),n}processHslClr(e,t){let r=`hsl(`+n.i(t.getAttribute(`hue`)??``)+`,`+n.o(t.getAttribute(`sat`)??``)+`,`+n.o(t.getAttribute(`lum`)??``)+`)`;return r+=this.processAdjustments(e,t),r}processClrWithValAttribute(e,t){let n=t.getAttribute(`val`);if(!n)return null;let r=n;return r+=this.processAdjustments(e,t),r}processAdjustments(e,t){let n=``,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1){let t=i.localName;n+=t===`hue`||t===`hueOff`||t===`hueMod`?this.processAdjustmentElement(e,i,t,6e4):t===`gray`||t===`comp`||t===`inv`||t===`gamma`||t===`invGamma`?this.processAdjustmentElement(e,i,t,1):t===`alpha`||t===`alphaOff`||t===`alphaMod`?this.processAdjustmentElement(e,i,t,1e5):this.processAdjustmentElement(e,i,t)}}return n}processAdjustmentElement(e,t,n,r=1e3){let i=t.getAttribute(`val`);return i?` ${n} ${!i||parseFloat(i)/r}`:` ${n}`}},S=e=>e===`circle`?`radial`:e,C=e=>{if(e===`rnd`)return`round`;if(e===`flat`)return`butt`;if(e===`sq`)return`square`;throw Error(`Invalid lineCap type: `+e)},w=class extends x{visit(e,t,r){try{let i=e.evaluate(`xfrm`,t);if(i){f(i,r);let t={x:0,y:0,width:0,height:0},a=e.evaluate(`off`,i);a&&(t.x=n.s(a.getAttribute(`x`))??0,t.y=n.s(a.getAttribute(`y`))??0);let o=e.evaluate(`ext`,i);a&&(t.width=n.s(o.getAttribute(`cx`))??0,t.height=n.s(o.getAttribute(`cy`))??0),r.bounds=t}let a=e.evaluate(`prstGeom`,t);a?.hasAttribute(`prst`)?r.geometry=a?.getAttribute(`prst`):e.evaluate(`customGeom`,t)&&e.warn(`Custom shape geometry is not supported; the shape keeps its bounds only.`,{onceKey:`xlsx.shape.customGeometry`});let o=this.getFill(e,t);o&&Object.keys(o).length>0&&(r.fill=o);let s=this.getStroke(e,t);return s&&Object.keys(s).length>0&&(r.stroke=s),r}catch(t){e.warn(`Unable to read shape properties: ${t?.message??t}`,{onceKey:`xlsx.shape.unreadable`})}}},T=class{visit(e,t,n){let r={};if(p(e,t,r,`grouping`,`grouping`),m(e,t,r,`varyColors`,`varyColors`),g(e,t,r,`gapWidth`,`gapWidth`,.01),g(e,t,r,`overlap`,`overlap`,.01),this.parseType(e,t,r),h(e,t,r,`bubbleScale`,`bubbleScale`),m(e,t,r,`showNegBubbles`,`showNegativeBubbleValues`),m(e,t,r,`sizeRepresents`,`bubbleSizeRepresentsWidth`),h(e,t,r,`firstSliceAng`,`startAngle`),h(e,t,r,`holeSize`,`holeSize`),p(e,t,r,`scatterStyle`,`scatterStyle`),this.parseAxisIds(e,t,r),Object.keys(r).length>0){let t=e.getVisitorParamsState().get(`types`);t||(e.warn(`A chart type was read outside a chart; its types were started fresh.`,{onceKey:`xlsx.chart.typesState`}),t=[],e.getVisitorParamsState().set(`types`,t)),t.push(r)}return r}parseType(e,t,n){switch(t.localName){case`areaChart`:n.type=`area`;break;case`bubbleChart`:n.type=`bubble`;break;case`doughnutChart`:case`ofPieType`:case`pieChart`:n.type=`pie`;break;case`lineChart`:n.type=`line`;break;case`scatterChart`:n.type=`scatter`}}parseAxisIds(e,t,n){let r=e.evaluate(`axId`,t);r&&r.length!==0&&(n.xAxisId=r.item(0).getAttribute(`val`),n.yAxisId=r.item(1).getAttribute(`val`))}},E=(e,t,n)=>{if(!0===e.getValAttrAsBoolean(`invertIfNegative`,t))if(e.evaluate(`extLst/ext/invertSolidFillFmt`,t)){if(n.fill&&n.fillNegative){let t=e.getFromPath(n,`fill.solid.adjs`);t&&e.setToPath(n,`fillNegative.solid.adjs`,t)}}else{let e={val:`FFFFFF`},t={};t.solid=e,n.fillNegative=t;let r={val:`000000`},i={};i.solid=r;let a={};a.fill=i,n.strokeNegative=a}},D=class extends x{constructor(e=`text`){super(),this._jsonKey=e}getTextPath(){return this._jsonKey}visit(e,t,n){let r=e.getFromPath(n,this.getTextPath());return r||={},this.parseTextElement(e,t,r,!1),Object.keys(r).length>0&&e.setToPath(n,this.getTextPath(),r),n}parseTextElement(e,t,n,r){let i=e.evaluate(`p/pPr/defRPr`,t)??e.evaluate(`defRPr`,t),a=i?.length===void 0?i:i.item(0);a&&(this.parseTextProperties(e,a,n),new w().visit(e,a,n));let o=n.runs??[],s=e.evaluate(`p/r`,t)??e.evaluate(`r`,t),c=t=>{let n={},r=e.evaluate(`t`,t),i=e.evaluate(`rPr`,t);i&&this.parseTextProperties(e,i,n),r&&r.firstChild?n.text=r.firstChild.textContent??``:t.textContent&&(n.text=t.textContent??``),Object.keys(n).length>0&&o.push(n)};if(s?.length!==void 0)for(let e=0;s&&e<s.length;e++)c(s.item(e));else c(s||t);o.length>0&&(n.runs=o);let l=e.evaluate(`bodyPr`,t);l&&f(l,n)}parseTextProperties(e,t,n){if(!t)return;t.hasAttribute(`sz`)&&(n.size=parseFloat(t.getAttribute(`sz`))/100),t.hasAttribute(`b`)&&(n.weight=t.getAttribute(`b`)===`1`?700:400),t.hasAttribute(`i`)&&(n.italic=t.getAttribute(`i`)===`1`),t.hasAttribute(`u`)&&(n.underline=t.getAttribute(`u`)),t.hasAttribute(`strike`)&&(n.strike=t.getAttribute(`strike`));let r=this.getFill(e,t);r&&Object.keys(r).length>0&&(n.color=r);let a=e.evaluate(`latin`,t);if(a&&!a.getAttribute(`typeface`).startsWith(`+`)){let e=n.font??{};if(a.hasAttribute(`typeface`)&&(e.family=a.getAttribute(`typeface`)),a.hasAttribute(`panose`)){let t=a.getAttribute(`panose`);t&&(e.fallbacks=[i.IFont.getPanoseFallback(t)])}a.hasAttribute(`pitchFamily`)&&(e.pitch=a.getAttribute(`pitchFamily`)),a.hasAttribute(`charset`)&&(e.charset=a.getAttribute(`charset`)),Object.keys(e).length>0&&(n.font=e)}}},O=class{visit(e,t,n){}processDataBarColor(e,t,r,i,a=`auto`){if(!t)return;let o=n.p(e=>t.getAttribute(e),a);return o&&(r[i]=o),r}processFonts(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);if(a.nodeType===1&&a.localName===`font`){let t={};this.processFont(e,a,t),n[i++]=t}}return n}processFont(e,t,n){e.getValAttrAsBoolean(`b`,t,!0)&&(n.weight=700),e.getValAttrAsBoolean(`i`,t,!0)&&(n.style=i.IFont.Style.Italic),e.getValAttrAsBoolean(`strike`,t,!0)&&(n.strike=!0);let r=e.evaluate(`u`,t);r&&(n.underline=r.getAttribute(`val`)||i.IFont.UnderlineStyle.Single),p(e,t,n,`vertAlign`,`verticalAlign`),n.verticalAlign===`superscript`?n.verticalAlign=i.IFont.VerticalAlignment.Super:n.verticalAlign===`subscript`&&(n.verticalAlign=i.IFont.VerticalAlignment.Sub),g(e,t,n,`sz`,`size`);let a=e.evaluate(`color`,t);this.processDataBarColor(e,a,n,`color`),n.color||=`auto`,p(e,t,n,`name`,`family`),p(e,t,n,`rFont`,`family`);let o=e.evaluate(`family`,t);if(o){let e=o.getAttribute(`val`);if(e)switch(e){case`1`:n.fallbacks=[`serif`];break;case`2`:n.fallbacks=[`sans-serif`];break;case`3`:n.fallbacks=[`monospace`];break;case`4`:n.fallbacks=[`cursive`];break;case`5`:n.fallbacks=[`fantasy`]}}return p(e,t,n,`scheme`,`scheme`),n.family!==void 0&&n.scheme===void 0&&(n.scheme=i.IFont.Scheme.None),m(e,t,n,`shadow`,`shadow`,!0),m(e,t,n,`outline`,`outline`,!0),e.getValAttrAsBoolean(`condense`,t,!0)&&(n.letterSpacing=-1),e.getValAttrAsBoolean(`extend`,t,!0)&&(n.letterSpacing=1),h(e,t,n,`charset`,`charset`),n}processFills(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`fill`&&this.processFill(e,a,n,i++)}return n}processFill(e,t,n,r){let a={type:i.IFill.Type.None},o=t.childNodes,s=!1,c=o.length;for(let t=0;!s&&t<c;t++){let n=o.item(t);n.nodeType===1&&(n.localName===`gradientFill`?(this.processGradientFill(e,n,a),s=!0):n.localName===`patternFill`&&(this.processPatternFill(e,n,a),s=!0))}return n[r]=a,n}processGradientFill(e,t,n){if(!t)return;n.type=i.IFill.Type.Gradient;let r=[];n.stops=r;let a=t.getAttribute(`type`);a&&(n.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(n.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(n.focus={left:k(t.getAttribute(`left`)),top:k(t.getAttribute(`top`)),right:k(t.getAttribute(`right`)),bottom:k(t.getAttribute(`bottom`))});let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`stop`){let t={};r.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let i=e.evaluate(`color`,n);this.processDataBarColor(e,i,t,`color`)}}return n}processPatternFill(e,t,n){if(!t)return;let r=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(r?i.IFill.BuiltInSheetPattern.Solid:i.IFill.BuiltInSheetPattern.None);if(a===i.IFill.BuiltInSheetPattern.None)return{none:!0};n.type=i.IFill.Type.Pattern,a&&(n.patternType=a);let o=`foreground`,s=`background`,c=n.patternType===i.IFill.BuiltInSheetPattern.Solid&&r,l=c?`dk1`:`lt1`,u=c?`lt1`:`dk1`;if(c){let e=o;o=s,s=e}let d=e.evaluate(`fgColor`,t);this.processDataBarColor(e,d,n,o,l);let f=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,f,n,s,u),c&&(n.foreground||=`lt1`,n.background||=`dk1`),n}processBorders(e,t,n,r){if(!t)return;let i=t.childNodes,a=0,o=i.length;for(let t=0;t<o;t++){let o=i.item(t);o.nodeType===1&&o.localName===`border`&&this.processBorder(e,o,n,a++,r)}return n}processBorder(e,t,n,r,a){if(!t)return;let o={};return this.processBorderStroke(e,t,o,i.IBorders.Edge.Left),this.processBorderStroke(e,t,o,i.IBorders.Edge.Right),a?(o.right||o.left)&&(o.right?o.vertical={...o.right}:o.vertical={...o.left}):this.processBorderStroke(e,t,o,i.IBorders.Edge.Vertical),this.processBorderStroke(e,t,o,i.IBorders.Edge.Top),this.processBorderStroke(e,t,o,i.IBorders.Edge.Bottom),a?(o.bottom||o.top)&&(o.bottom?o.horizontal={...o.bottom}:o.horizontal={...o.top}):this.processBorderStroke(e,t,o,i.IBorders.Edge.Horizontal),n[r]=o,n}processBorderStroke(e,t,n,r){if(!t)return;let a=e.evaluate(r,t);if(!a)return;let o={};a.hasAttribute(`style`)?o.style=a.getAttribute(`style`):e.getVisitorParamsState().get(`processingDXFs`)&&(o.style=i.IBorders.StrokeStyle.None);let s=e.evaluate(`color`,a);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?n[r]=o:null}},k=e=>{if(!e)return 0;let t=parseFloat(e);return isNaN(t)?0:t},A={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},j=class{visit(e,t,n){if(!t)return;let r=e.evaluate(`*/cNvPr`,t);return r.item&&(r=r.item(0)),r&&(e.copyFromAttribute(r,`name`,n),e.copyFromAttribute(r,`descr`,n,`description`),e.copyFromAttribute(r,`hidden`,n,`hidden`,e.BOOLEAN_COPY),e.copyFromAttribute(r,`id`,n)),n}},M=class extends j{visit(e,t,n){if(!t)return;if(e.getPath().includes(`Fallback`)&&n.content){let r=n.content.json;return n.content.type===`sp`&&r?.xml&&r.fallbackXml===void 0&&(r.fallbackXml=e.serializeElement(t)??void 0),n}n=super.visit(e,t,n);let r=e.evaluate(`nvSpPr/cNvSpPr`,t);if(r){let t=e.evaluate(`spLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`sp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`sp`,json:s},s}},N=`richTypes`,P=`richData`;function ee(e,t){let n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType===1)switch(r.localName){case`b`:t.bold=r.getAttribute(`val`)!==`0`&&r.getAttribute(`val`)!==`false`;break;case`i`:t.italic=r.getAttribute(`val`)!==`0`&&r.getAttribute(`val`)!==`false`;break;case`sz`:{let e=parseFloat(r.getAttribute(`val`)??``);isNaN(e)||(t.size=e);break}case`rFont`:{let e=r.getAttribute(`val`);e&&(t.font=e);break}case`color`:{let e=r.getAttribute(`rgb`);e&&(t.color=`#`+(e.length===8?e.substring(2):e));break}}}}var te=class{visit(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);i.nodeType===1&&i.localName===`Relationship`&&this.processRelationship(e,i,n)}return n}processRelationship(e,t,n){let r={};e.copyFromAttribute(t,`Target`,r,`target`),e.copyFromAttribute(t,`Type`,r,`type`),e.copyFromAttribute(t,`TargetMode`,r,`targetMode`),n[t.getAttribute(`Id`)]=r}},ne=class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processProperty(e,n);a&&r.push(a)}return r.length>0&&(n.properties=r),r}processProperty(e,t){if(t)return t.getAttribute(`xsi:type`),{key:t.localName,value:t.textContent||``}}},re=class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processProperty(e,n);a&&r.push(a)}return r.length>0&&(n.properties=r),r}processProperty(e,t){if(t)return{key:t.localName,value:t.textContent||``}}},F=class{visit(e,t,n){return m(e,t,n,`roundedCorners`,`roundedCorners`),h(e,t,n,`.//AlternateContent/Fallback/style`,`styleId`),e.getVisitorParamsState().set(`types`,[]),e.getVisitorParamsState().set(`axes`,new Map),n.range=null,n}afterVisit(e,t,n){let r={};n.types=r;let i={},a=0,o={},s=0,c=e.getVisitorParamsState().get(`axes`),l=e.getVisitorParamsState().get(`types`),u=l.length;for(let e=0;e<u;e++){let t=l[e];if(t.xAxisId){let r=t.xAxisId,o=c.get(r);i[e+``]=o,t.offsetXAxis=e,delete t.xAxisId,n.xAxes=i,i.length=++a}if(t.yAxisId){let r=t.yAxisId,i=c.get(r);o[e+``]=i,t.offsetYAxis=e,delete t.yAxisId,n.yAxes=o,o.length=++s}r[e+``]=t}r.length=l.length;let d=e.getVisitorParamsState().get(`series`);if(!d||d.length===0)return;let f={};n.series=f;let p=d.length;for(let e=0;e<p;e++)f[e+``]=d[e];f.length=p,e.getVisitorParamsState().delete(`types`),e.getVisitorParamsState().delete(`axes`),e.getVisitorParamsState().delete(`series`)}},I=class{visit(e,t,n){let r={};return n.plotArea=r,r}},L=w,R=class extends T{parseType(e,t,n){let r=e.getValAttrAsString(`barDir`,t);r&&(n.type=r===`col`?`column`:`bar`)}},z=T,B=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={},i=r,a=e.getValAttrAsString(`idx`,t);a!==null&&(i={},i[a]=r);let o=e.getValAttrAsBoolean(`delete`,t);this.parseNumFormat(e,t,r),!0===o?(r.showBubbleSize=!1,r.showCatName=!1,r.showLeaderLines=!1,r.showPercentage=!1,r.showSerName=!1,r.showVal=!1,r.showLegendKey=!1):(m(e,t,r,`showBubbleSize`,`showBubbleSize`),m(e,t,r,`showCatName`,`showCatName`),m(e,t,r,`showLeaderLines`,`showLeaderLines`),m(e,t,r,`showPercent`,`showPercentage`),m(e,t,r,`showSerName`,`showSerName`),m(e,t,r,`showVal`,`showVal`),m(e,t,r,`showLegendKey`,`showLegendKey`));let s=e.evaluate(`separator`,t);return s!==null&&(r.separator=s.textContent),p(e,t,r,`dLblPos`,`position`),n[this.jsonKey]=i,r}parseNumFormat(e,t,n){let r=e.evaluate(`numFmt`,t);r&&(n.formatCode=r.getAttribute(`formatCode`),r.hasAttribute(`sourceLinked`)&&(n.sourceLinked=r.getAttribute(`sourceLinked`)===`1`))}},V=class{visit(e,t,n){let r={};h(e,t,r,`explosion`,`explosion`);let i=e.evaluate(`cat/*/f`,t);i||=e.evaluate(`xVal/*/f`,t);let a=null;i!==null&&i.firstChild!==null&&(a=i.firstChild.nodeValue),i||(i=e.evaluate(`cat/strLit`,t),i||=e.evaluate(`cat/numLit`,t),i&&(a=this.parsePointsAsString(e,i))),a!==null&&(r.xRange=a);let o=e.evaluate(`val/*/f`,t);o||=e.evaluate(`yVal/*/f`,t);let s=null;o&&o.firstChild&&(s=o.firstChild.nodeValue),o||(o=e.evaluate(`val/numLit`,t),o!==null&&(s=this.parsePointsAsString(e,o))),s!==null&&(r.valRange=s),this.parseTitleRangeOrValue(e,t,r),h(e,t,r,`idx`,`idx`),m(e,t,r,`smooth`,`smooth`),r.offsetChart=e.getVisitorParamsState().get(`types`).length-1;let c=e.getVisitorParamsState().get(`series`);return c||(c=[],e.getVisitorParamsState().set(`series`,c)),c.push(r),r}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t);if(r!==null){let t=r.firstChild.nodeValue;e.setToPath(n,`title.range`,t)}else{let r=e.evaluate(`tx/v`,t);r!==null&&e.setToPath(n,`title.text.simpleRun`,r.firstChild.nodeValue)}}parsePointsAsString(e,t){let n=`{`,r=e.getValAttrAsInteger(`ptCount`,t),i=e.evaluate(`pt`,t),a=[];for(let n=0;i&&r&&n<r;n++){let r=null,i=e.evaluate(`pt[@idx='`+n+`']/v`,t);i&&(r=i.textContent),a[n]=r}for(let e=0;e<a.length;e++)e>0&&(n+=`,`),a[e]!==void 0&&(n+=a[e]);return n+=`}`,n}afterVisit(e,t,n){E(e,t,n);let r=e.getFromPath(n,`points`);if(r){let t=Object.keys(r);for(let i=0;i<t.length;i++){let a=t[i],o=e.getFromPath(r,a);if(!o)continue;let s=e.getFromPath(o,`markers`);s&&(e.setToPath(n,`markers.points.`+a,s),delete o.markers)}}}},H=class{DataPointVisitor(){}visit(e,t,n){let r=e.getFromPath(n,`points`),i=null;r?i=r:(i={},e.setToPath(n,`points`,i));let a={},o=e.getValAttrAsString(`idx`,t);return o!==null&&(i[o]=a),m(e,t,a,`bubble3D`,`bubble3D`),h(e,t,a,`explosion`,`explosion`),E(e,t,a),a}},U=class{visit(e,t,n){let r=t.parentNode.localName;if(r===`ser`||r===`dPt`){let r={},i=e.getValAttrAsString(`size`,t);i!==null&&(r.size=i);let a=e.getValAttrAsString(`symbol`,t);return a&&(r.type=a),n.markers=r,r}return null}},W=class{visit(e,t,n){let r={};this.parseScaling(e,t,r),g(e,t,r,`majorUnit`,`majorUnits`),g(e,t,r,`minorUnit`,`minorUnits`),m(e,t,r,`delete`,`shown`),this.parseOrientation(e,t,r),this.parseNumFormat(e,t,r),p(e,t,r,`majorTickMark`,`majorTickMarks`),p(e,t,r,`minorTickMark`,`minorTickMarks`),p(e,t,r,`crosses`,`crosses`),g(e,t,r,`crossesAt`,`crosses`),p(e,t,r,`crossBetween`,`crossBetween`),this.parseLabelAlign(e,t,r),h(e,t,r,`lblOffset`,`labelOffset`),p(e,t,r,`tickLblPos`,`labelPosition`);let i=e.getValAttrAsInteger(`noMultiLvlLbl`,t);r.labelMultiLevel=i!==null&&i===0,h(e,t,r,`tickMarkSkip`,`tickMarkSkip`),h(e,t,r,`tickLblSkip`,`labelInterval`),this.parseDisplayCustOrBuiltInUnit(t,e,r),this.parseTimeUnits(e,t,r,`majorUnitDates`,`majorTimeUnit`,`majorUnit`),this.parseTimeUnits(e,t,r,`minorUnitDates`,`minorTimeUnit`,`minorUnit`),p(e,t,r,`baseTimeUnit`,`baseUnitDates`),e.getVisitorParamsState().get(`axes`)||(e.warn(`An axis was read outside a chart; its axes were started fresh.`,{onceKey:`xlsx.chart.axesState`}),e.getVisitorParamsState().set(`axes`,new Map));let a=e.getValAttrAsString(`axId`,t);return e.getVisitorParamsState().get(`axes`).set(a,r),r}parseTimeUnits(e,t,n,r,i,a){let o={},s=e.getValAttrAsString(i,t);s!==null&&(o.dem=s,o.amt=e.getValAttrAsString(a,t)),Object.keys(o).length>0&&(n[r]=o)}parseDisplayCustOrBuiltInUnit(e,t,n){let r=t.getValAttrAsString(`dispUnits/builtInUnit`,e);r||=t.getValAttrAsString(`dispUnits/custUnit`,e),r&&(n.displayUnits=r)}parseLabelAlign(e,t,n){let r=e.getValAttrAsString(`lblAlgn`,t);r!==null&&(r===`ctr`?n.labelAlign=`center`:r===`l`?n.labelAlign=`left`:r===`r`&&(n.labelAlign=`right`))}parseOrientation(e,t,n){let r=e.getValAttrAsString(`AxPos`,t);r!==null&&(r===`b`?n.orientation=`bottom`:r===`l`?n.orientation=`left`:r===`r`?n.orientation=`right`:r===`t`&&(n.orientation=`top`))}parseNumFormat(e,t,n){let r={},i=e.evaluate(`numFmt`,t);i!==null&&(i.hasAttribute(`formatCode`)&&(r.formatCode=i.getAttribute(`formatCode`)),i.hasAttribute(`sourceLinked`)&&(r.sourceLinked=i.getAttribute(`sourceLinked`)===`1`)),Object.keys(r).length>0&&(n.labels=r)}parseScaling(e,t,n){let r=e.getValAttrAsString(`scaling/orientation`,t);r!==null&&(n.inverted=r!==`minMax`);let i=e.getValAttrAsFloat(`scaling/logBase`,t);i!==null&&(n.logBase=i,n.scaleType=`log`),g(e,t,n,`scaling/max`,`max`),g(e,t,n,`scaling/min`,`min`)}afterVisit(e,t,n){n.fill&&n.labels&&(n.labels.fill=n.fill,delete n.fill);let r=e.getValAttrAsBoolean(`delete`,t);r!==null&&(e.setToPath(n,`labels.shown`,!0!==r),e.setToPath(n,`shown`,!0!==r));let i=e.getFromPath(n,`dispUnits.displayUnitsLabel`);i&&(e.setToPath(n,`displayUnitsLabel`,i),delete n.dispUnits);let a=e.evaluate(`title`,t);e.setToPath(n,`title.shown`,a!==null);let o=e.evaluate(`minorGridlines`,t);e.setToPath(n,`gridLinesMinor.shown`,o!==null);let s=e.evaluate(`majorGridlines`,t);e.setToPath(n,`gridLinesMajor.shown`,s!==null)}},G=D,K=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`series`),i=e.getValAttrAsInteger(`idx`,t),a=i===null?void 0:r[i];if(a){let n=e.getFromPath(a,`title`);n||(n={},e.setToPath(a,`title`,n));let r=n,i=e.getValAttrAsBoolean(`delete`,t);return i!==null&&(r.shown=!i),r}return n}},q=class{visit(e,t,n){let r={};return m(e,t,r,`overlay`,`overlay`),p(e,t,r,`legendPos`,`position`),n.legend=r,r}},J=class extends w{visit(e,t,n){let r=this.getFill(e,t);Object.keys(r).length>0&&(n.fillNegative=r);let i=this.getStroke(e,t);return Object.keys(i).length>0&&(n.strokeNegative=i),n}},Y=class extends D{constructor(e=`title`){super(e)}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t)??null;if(r){let t=r.firstElementChild.nodeValue;e.setToPath(n,`range`,t)}}visit(e,t,n){let r={};m(e,t,r,`overlay`,`overlay`),n[this._jsonKey]=r;let i=e.getFromPath(r,this.getTextPath());i||={},this.parseTitleRangeOrValue(e,t,r);let a=e.evaluate(`txPr`,t);a&&this.parseTextElement(e,a,i,!1);let o=e.evaluate(`tx/rich`,t);return o&&this.parseTextElement(e,o,i,!0),Object.keys(i).length>0&&e.setToPath(r,`text`,i),r}afterVisit(e,t,n){if(n?.text){let e=n.text?.rotation??null;e!==null&&(n.rotation=parseInt(e),delete n.title.rotation)}}},X=class{visit(e,t,n){let r=e.evaluate(`manualLayout`,t);if(r){let t={};g(e,r,t,`x`,`x`),g(e,r,t,`y`,`y`),g(e,r,t,`w`,`w`),g(e,r,t,`h`,`h`),p(e,r,t,`xMode`,`xMode`),p(e,r,t,`yMode`,`yMode`),p(e,r,t,`wMode`,`wMode`),p(e,r,t,`hMode`,`hMode`),Object.keys(t).length>0&&(n.manualLayout=t)}return n}},ie=class{visit(e,t,n){return n.name=t.getAttribute(`name`),n}},ae=class extends x{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=t.childNodes,a=i.length;for(let n=0;n<a;n++){let a=i.item(n);if(a.nodeType===1){let n=a.localName,i=e.evaluate(n,t);r[n]=this.processAdjColor(e,i)}}return Object.keys(r).length>0&&(n.colors=r),r}},oe=class{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=e.evaluate(`majorFont`,t),a=this.processFontElement(e,i,{});a&&(r.majorFont=a.family,a.fallbacks&&(r.majorFallbacks=a.fallbacks));let o=e.evaluate(`minorFont`,t),s=this.processFontElement(e,o,{});return s&&(r.minorFont=s.family,s.fallbacks&&(r.minorFallbacks=s.fallbacks)),n.fonts=r,r}processFontElement(e,t,n){if(!t)return;let r=e.evaluate(`latin`,t);if(!r)return;let a=r.getAttribute(`typeface`);a&&(n.family=a);let o=r.getAttribute(`panose`);return o&&(n.fallbacks=[i.IFont.getPanoseFallback(o)]),n}},se=class extends x{visit(e,t,n){let r=this.parseFillList(e,t,`fillStyleLst`),i=this.parseLnList(e,t,`lnStyleLst`),a=this.parseEffectStyleList(e,t,`effectStyleLst`),o=this.parseFillList(e,t,`bgFillStyleLst`);if(r&&i&&a&&o)return n.fillStyleLst=r,n.lnStyleLst=i,n.effectStyleLst=a,void(n.bgFillStyleLst=o);let s=e.serializeElement(t);s&&(n.formatSchemeXml=s)}parseFillList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;let r=this.parseFillListItem(e,n);if(r===void 0)return;i.push(r)}return i}parseFillListItem(e,t){switch(t.localName){case`noFill`:return{type:i.IFill.Type.None};case`solidFill`:{let n=this.processAdjColor(e,t);return n?{type:i.IFill.Type.Solid,color:n}:void 0}case`gradFill`:return this.processGradFill(e,t);case`pattFill`:return this.processPatternFill(e,t);default:return}}parseLnList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1){if(e.evaluate(`headEnd`,n)||e.evaluate(`tailEnd`,n))return;i.push(this.parseLn(e,n))}}return i}parseEffectStyleList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;if(e.evaluate(`scene3d`,n)||e.evaluate(`sp3d`,n))return;let r=this.getEffects(e,n);if(r===void 0)return;i.push(r??[])}return i}},ce=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`r:id`);if(i){let t=e.getRef(i);typeof t==`string`&&(r.address=t)}return e.copyFromAttribute(t,`tooltip`,r,`screenTip`),e.copyFromAttribute(t,`history`,r,`history`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`tgtFrame`,r,`target`),n.hyperlink=r,r}},le=class{visit(e,t,n){if(!t)return;let r={},i=[];return this.processFilterColumns(e,t,i,n),i.length>0&&(r.conditions=i),Object.keys(r).length>0&&(n.filter=r),r}processColorFilter(e,t){let n={},r={operator:i.ICondition.BuiltInOperatorNames.Color,param:n};return e.copyFromAttribute(t,`cellColor`,n,`cellColor`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`dxfId`,n,`styleId`,e.INT_COPY),r}processCustomFilter(e,n){return t.g({operator:n.getAttribute(`operator`),val:n.getAttribute(`val`)})}processCustomFilters(e,t){let n=t.getAttribute(`and`),r=n===`and`||n===`1`;t.getAttribute(`val`);let a=[],o={operator:r?i.ICondition.BuiltInOperatorNames.And:i.ICondition.BuiltInOperatorNames.Or,param:a},s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType!==1)continue;let r=null;n.localName===`customFilter`&&(r=this.processCustomFilter(e,n)),r&&a.push(r)}return a.length===1?a[0]:o}processDynamicFilter(e,t){let n={},r={operator:i.ICondition.BuiltInOperatorNames.TimePeriod,param:n},a=t.getAttribute(`type`);return a===`aboveAverage`?a=i.ICondition.AverageType.Above:a===`belowAverage`&&(a=i.ICondition.AverageType.Below),Object.values(i.ICondition.AverageType).includes(a)?(r.operator=i.ICondition.BuiltInOperatorNames.Average,e.copyFromAttribute(t,`val`,n,`stdDevs`,e.INT_COPY)):e.copyFromAttribute(t,`val`,n,`anchorDate`,e.INT_COPY),e.copyFromAttribute(t,`type`,n,`operator`),e.copyFromAttribute(t,`maxVal`,n,`maxVal`,e.INT_COPY),r}processDateGroupItem(e,t){let n={};return e.copyFromAttribute(t,`dateTimeGrouping`,n,`group`),e.copyFromAttribute(t,`day`,n,`day`,e.INT_COPY),e.copyFromAttribute(t,`hour`,n,`hour`,e.INT_COPY),e.copyFromAttribute(t,`minute`,n,`minute`,e.INT_COPY),e.copyFromAttribute(t,`month`,n,`month`,e.INT_COPY),e.copyFromAttribute(t,`second`,n,`second`,e.INT_COPY),e.copyFromAttribute(t,`year`,n,`year`,e.INT_COPY),n}processFilterItem(e,t){if(t.hasAttribute(`val`))return t.getAttribute(`val`)}processFilters(e,t){let n={},r={operator:i.ICondition.BuiltInOperatorNames.InSet,param:n};e.copyFromAttribute(t,`blank`,r,`blank`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calendarType`,r,`calendarType`);let a=[],o=[],s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1){if(n.localName===`dateGroupItem`){let t=this.processDateGroupItem(e,n);t&&a.push(t)}else if(n.localName===`filter`){let t=this.processFilterItem(e,n);t!==void 0&&o.push(t)}}}return a.length>0&&(n.dateGroups=a),o.length>0&&(n.items=o),r}processIcon(e,t){let n={},r={operator:i.ICondition.BuiltInOperatorNames.Icon,param:n};return e.copyFromAttribute(t,`iconId`,n,`iconId`,e.INT_COPY),e.copyFromAttribute(t,`iconSet`,n),r}processTop10(e,t){let n={},r={operator:i.ICondition.BuiltInOperatorNames.TopN,param:n};return e.copyFromAttribute(t,`filterVal`,n,`filterVal`,e.FLOAT_COPY),e.copyFromAttribute(t,`percent`,n,`percent`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`top`,n,`top`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`val`,n,`val`,e.FLOAT_COPY),r}processFilterCriteria(e,t){if(!t)return;let n=t.childNodes,r,i=n.length;for(let t=0;t<i;t++){let i=n.item(t);i.nodeType===1&&(i.localName===`colorFilter`?r=this.processColorFilter(e,i):i.localName===`customFilters`?r=this.processCustomFilters(e,i):i.localName===`dynamicFilter`?r=this.processDynamicFilter(e,i):i.localName===`filters`?r=this.processFilters(e,i):i.localName===`iconFilter`?r=this.processIcon(e,i):i.localName===`top10`&&(r=this.processTop10(e,i)))}return r}processFilterColumn(e,t,r){if(!t)return null;if(!t.hasAttribute(`colId`))return;let i=parseInt(t.getAttribute(`colId`)),a=!1;if(t.hasAttribute(`hiddenButton`)&&(a=n.a(t.getAttribute(`hiddenButton`))),a&&r){let e=r.hiddenButtons;e||(e=[],r.hiddenButtons=e),e.push(i)}let o=!1;if(t.hasAttribute(`showButton`)&&(o=n.a(t.getAttribute(`showButton`))),o&&r){let e=r.showButtons;!0!==e&&(e||(e=[],r.showButtons=e),e[i]=!0)}let s=this.processFilterCriteria(e,t);return s?(s.index=i,s):null}processFilterColumns(e,t,n,r){if(!t)return;let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`filterColumn`){let t=this.processFilterColumn(e,a,r);t&&n.push(t)}}return n}},ue=class{visit(e,t,r){if(!t)return;let a=t.getAttribute(`ref`),o={};t.hasAttribute(`caseSensitive`)&&(o.collatorOptions=n.a(t.getAttribute(`caseSensitive`))?i.Sort.CaseSensitiveOptions:i.Sort.CaseInsensitiveOptions);let s=t.getAttribute(`sortMethod`);s!=null&&s!==`none`&&(s===`stroke`?o.collatorOptions={...o.collatorOptions,collation:`stroke`}:s===`pinYin`&&(o.collatorOptions={...o.collatorOptions,collation:`pinyin`}));let c={};t.hasAttribute(`columnSort`)&&n.a(t.getAttribute(`columnSort`))&&(c.axis=i.IRange.Axis.Column);let l=i.AddressUtils.fastStringToRange(a),u=[];return this.processSortConditions(e,t,u,l,o),u.length>0&&(c.sorts=u),Object.keys(u).length>0&&(r.sort=c),c}processSortCondition(e,t,r,a){if(!t)return null;let o={};if(!t.hasAttribute(`ref`))return void e.warn(`A sort condition has no ref; it was dropped.`,{onceKey:`xlsx.sheet.sort.noRef`});if(t.hasAttribute(`ref`)){let e=t.getAttribute(`ref`),n=i.AddressUtils.fastStringToRange(e);o.index=r?n.colStart-r.colStart:n.colStart}let s={...a};return o.criteria=s,s.reverse=!1,t.hasAttribute(`descending`)&&(s.reverse=n.a(t.getAttribute(`descending`))),e.copyFromAttribute(t,`sortBy`,s,`sortOn`),e.copyFromAttribute(t,`dxfId`,s),e.copyFromAttribute(t,`iconSet`,s),e.copyFromAttribute(t,`customList`,s),o}processSortConditions(e,t,n,r,i){if(!t)return;let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let o=a.item(t);if(o.nodeType===1&&o.localName===`sortCondition`){let t=this.processSortCondition(e,o,r,i);t&&n.push(t)}}}},Z=class extends O{visit(e,t,r){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let a={fills:{},fonts:{},borders:{}};this.processFonts(e,e.evaluate(`fonts`,t),a.fonts),this.processFills(e,e.evaluate(`fills`,t),a.fills),this.processBorders(e,e.evaluate(`borders`,t),a.borders,!0),a.fills[0]={type:i.IFill.Type.None},a.fills[1]={type:i.IFill.Type.Pattern,patternType:i.IFill.BuiltInSheetPattern.Gray125},a.borders[0]={bottom:{style:i.IBorders.StrokeStyle.None},left:{style:i.IBorders.StrokeStyle.None},right:{style:i.IBorders.StrokeStyle.None},top:{style:i.IBorders.StrokeStyle.None}};let o=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),o,a,null,!1);let s=new Map;if(o.length>0){let n=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),n,o,s),r.named=n}let c=[];this.processXFs(e,e.evaluate(`cellXfs`,t),c,a,s),Object.keys(c).length>0&&(r.direct=c);let l=this.collectHiddenXfs(e.evaluate(`cellXfs`,t));l.size>0&&e.getVisitorParamsState().set(n.t,l);let u=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),u),this.processTableStyles(e,e.evaluate(`tableStyles`,t),r,u),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),r),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),r),r}processIndexColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`rgbColor`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}n.indexedColors=r}processMruColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`color`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}r.length>0&&(n.mruColors=r)}processNumFmts(e,t,n){if(!t)return;let r=new Map;if(e.getVisitorParamsState().set(`numFmts`,r),!t)return;let i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType===1&&t.localName===`numFmt`){let e=t.getAttribute(`numFmtId`),n=t.getAttribute(`formatCode`);if(e&&n){let t=n;r.set(parseInt(e),t)}}}}processXFs(e,t,n,r,i=null,a=!0){if(!t)return;let o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let s=o.item(t);if(s.nodeType===1&&s.localName===`xf`){let t={};this.processXF(e,s,t,r,i,a),n.push(t)}}}processXF(e,t,r,a,o,s){if(!t)return;let c=t.getAttribute(`xfId`);if(c&&o){let e=o.get(parseInt(c));e&&e!==i.IStyle.BuiltInName.Normal&&(r.named=e)}let l=e=>!(!s&&t.hasAttribute(e))||n.a(t.getAttribute(e)),u=e=>!s||t.hasAttribute(e)&&n.a(t.getAttribute(e)),d=s?`0`:void 0;if(l(`applyFont`)){let e=t.getAttribute(`fontId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFont`))){let t=a.fonts[e];t!==void 0&&(r.font=t)}}if(l(`applyFill`)){let e=t.getAttribute(`fillId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFill`))){let t=a.fills[e];t!==void 0&&Object.keys(t).length>0&&(r.fill=t)}}if(l(`applyBorder`)){let e=t.getAttribute(`borderId`)??d;if(e!==void 0&&(e!==`0`||u(`applyBorder`))){let t=a.borders[e];t!==void 0&&(r.borders=t)}}if(l(`applyNumberFormat`)){let n=t.getAttribute(`numFmtId`)??d;if(n!==void 0&&(n!==`0`||u(`applyNumberFormat`))){let t=parseInt(n),i,a=e.getVisitorParamsState();if(a){let e=a.get(`numFmts`);e&&(i=e.get(t)),r.numberFormat=i??t}else e.warn(`Number formats were unavailable; a cell format was not read.`,{onceKey:`xlsx.style.numberFormat.state`})}}if(l(`applyAlignment`)){let n=e.evaluate(`alignment`,t);(n||u(`applyAlignment`))&&this.processAlignment(e,n,r)}if(l(`applyProtection`)){let n=e.evaluate(`protection`,t);(n||u(`applyProtection`))&&this.processProtection(e,n,r)}let f=n.a(t.getAttribute(`quotePrefix`)??``);f&&(r.quotePrefix=f)}processAlignment(e,t,r){let a={};if(t?.hasAttribute(`horizontal`)?a.horizontal=t.getAttribute(`horizontal`):a.horizontal=i.ITextFrame.HorizontalAlignment.General,t?.hasAttribute(`vertical`)?a.vertical=t.getAttribute(`vertical`):a.vertical=i.ITextFrame.VerticalAlignment.Bottom,t?.hasAttribute(`indent`)?a.indent=parseInt(t.getAttribute(`indent`)):a.indent=0,t?.hasAttribute(`relativeIndent`)?a.relativeIndent=parseInt(t.getAttribute(`relativeIndent`)):a.relativeIndent=0,n.a(t?.getAttribute(`wrapText`)??``)?a.overflow=i.ITextFrame.Overflow.Wrap:a.overflow=i.ITextFrame.Overflow.Visible,n.a(t?.getAttribute(`shrinkToFit`)??``)&&(a.overflow=i.ITextFrame.Overflow.Shrink),t?.hasAttribute(`textRotation`)){let e=parseFloat(t.getAttribute(`textRotation`));e>0&&e<=90?e=360-e:e>90&&e<=180?e-=90:e===255&&(e=0,a.stacked=!0),a.rotation=e}else a.rotation=0;t?.hasAttribute(`justifyLastLine`)&&(a.justifyLastLine=n.a(t.getAttribute(`justifyLastLine`)));let o=t?.getAttribute(`readingOrder`);return o&&(o===`0`?a.readingDirection=i.ITextFrame.ReadingDirection.Auto:o===`1`?a.readingDirection=i.ITextFrame.ReadingDirection.LeftToRight:o===`2`?a.readingDirection=i.ITextFrame.ReadingDirection.RightToLeft:e.warn(`Invalid readingOrder '${o}'; the direction was left automatic.`,{onceKey:`xlsx.style.readingOrder`})),Object.keys(a).length>0&&(r.alignment=a),r}collectHiddenXfs(e){let t=new Set;if(!e)return t;let r=e.childNodes,i=0;for(let e=0;e<r.length;e++){let a=r.item(e);if(a.nodeType!==1||a.localName!==`xf`)continue;let o=a.childNodes;for(let e=0;e<o.length;e++){let r=o.item(e);r.nodeType===1&&r.localName===`protection`&&n.a(r.getAttribute(`hidden`)??``)&&t.add(i)}i++}return t}processProtection(e,t,r){if(!t)return;let i=t.getAttribute(`locked`);return r.protection={alwaysUnlocked:!!i&&!n.a(i)},r}processDXF(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`font`){let t={};this.processFont(e,i,t),n.font=t}else if(i.nodeType===1&&i.localName===`fill`){let t=[];this.processFill(e,i,t,0),t.length>0&&t[0]&&(n.fill=t[0])}else if(i.nodeType===1&&i.localName===`border`){let t=[];this.processBorder(e,i,t,0,!1),t.length>0&&t[0]&&(n.borders=t[0])}else if(i.nodeType===1&&i.localName===`numFmt`){let e=i.getAttribute(`formatCode`);if(e)n.numberFormat=e;else{let e=i.getAttribute(`numFmtId`);e&&(n.numberFormat=Number(e))}}else i.nodeType===1&&i.localName===`alignment`&&this.processAlignment(e,i,n)}}processDXFs(e,t,n){if(!t)return;e.getVisitorParamsState().set(`processingDXFs`,!0);let r=new Map;e.getVisitorParamsState().set(`dxfs`,r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`dxf`){let t={};this.processDXF(e,a,t);let i=n.length;r.set(i,t),n.push(t)}}e.getVisitorParamsState().delete(`processingDXFs`)}processTableStyle(e,t,r,i,a=!1){let o=t.getAttribute(`name`),s={name:o};t.hasAttribute(`table`)&&(s.table=n.a(t.getAttribute(`table`))),t.hasAttribute(`pivot`)&&(s.pivot=n.a(t.getAttribute(`pivot`))),a&&!s.pivot&&i.unshift(null);let c=t.childNodes,l=c.length;for(let t=0;t<l;t++){let n=c.item(t);if(n.nodeType===1&&n.localName===`tableStyleElement`){let t=n.getAttribute(`type`),r=n.getAttribute(`dxfId`),a=r==null?void 0:i?.[r];a||=(e.warn(`A table style names a format that does not exist (dxfId '${r}').`,{onceKey:`xlsx.style.tableStyle.dxf`}),{}),s[t]=a;let o=null;n.hasAttribute(`size`)&&(o=parseInt(n.getAttribute(`size`))),o&&!isNaN(o)&&(a.size=o)}}delete s.name,r[o]=s}processTableStyles(e,t,n,r,i){if(!t)return;let a={},o=t.getAttribute(`defaultTableStyle`);o&&(a.defaultTableStyle=o);let s=t.getAttribute(`defaultPivotStyle`);s&&(a.defaultPivotStyle=s);let c=t.childNodes,l={},u=c.length;for(let t=0;t<u;t++){let n=c.item(t);n.nodeType===1&&n.localName===`tableStyle`&&this.processTableStyle(e,n,l,r,i)}return Object.keys(l).length>0&&(a.styles=l),Object.keys(a).length>0&&(n.tables=a),n}processCellStyles(e,t,r,a,o){if(!t)return;let s=t.childNodes,c=s.length;for(let e=0;e<c;e++){let t=s.item(e);if(t.nodeType===1&&t.localName===`cellStyle`){let e=parseInt(t.getAttribute(`xfId`)??``),s=t.getAttribute(`name`),c=t.getAttribute(`builtinId`),l=s;if(c!==null){let e=i.IStyle.builtInNameFromId(parseInt(c));e!==void 0&&(l=e)}if(o.set(e,l),!a[e])continue;let u={name:l,style:a[e]};t.getAttribute(`hidden`)&&(u.hidden=n.a(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(u.iLevel=parseInt(t.getAttribute(`iLevel`))),r.push(u)}}}afterVisit(e,t,n){}},de=class extends O{visit(e,t,n){return this.processSheetRefs(e,e.evaluate(`sheets`,t),n),this.processExternalReferences(e,e.evaluate(`externalReferences`,t),n),this.processBookViews(e,e.evaluate(`bookViews`,t),n),this.processDefinedNames(e,e.evaluate(`definedNames`,t),n),this.processCalcPr(e,e.evaluate(`calcPr`,t),n),this.processPivotCaches(e,e.evaluate(`pivotCaches`,t),n),this.processWorkbookProtection(e,e.evaluate(`workbookProtection`,t),n),this.processWorkbookPr(e,e.evaluate(`workbookPr`,t),n),n}processPassword(e,t,n,r=`workbook`,i=`password`){if(!t)return;let a={};e.copyFromAttribute(t,`${r}AlgorithmName`,a,`algorithm`),e.copyFromAttribute(t,`${r}HashValue`,a,`hash`),e.copyFromAttribute(t,`${r}SaltValue`,a,`salt`),e.copyFromAttribute(t,`${r}SpinCount`,a,`spinCount`,e.INT_COPY),Object.keys(a).length>0&&(n[i]=a)}processWorkbookProtection(e,n,r){if(!n)return;let i={};this.processPassword(e,n,i,`workbook`,`password`),this.processPassword(e,n,i,`revisions`,`revisionsPassword`);for(let e of t.b)i[e.key]=t.x(e,n.getAttribute(e.attribute));return r.protection=i,r}processCalcPr(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`calcMode`,r,`calcMode`,e=>A[e]??null),e.copyFromAttribute(t,`fullCalcOnLoad`,r,`fullCalcOnLoad`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calcOnSave`,r,`calcOnSave`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calcCompleted`,r,`calcCompleted`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`fullPrecision`,r,`fullPrecision`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`forceFullCalc`,r,`forceFullCalc`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`concurrentCalc`,r,`concurrentCalc`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`refMode`,r,`refMode`),e.copyFromAttribute(t,`iterate`,r,`iterate`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`iterateCount`,r,`maxIteration`,e.INT_COPY),e.copyFromAttribute(t,`iterateDelta`,r,`maxIterateChange`,e.FLOAT_COPY);let i=t.getAttribute(`calcId`);i!==null&&e.getVisitorParamsState().set(`calcId`,i),n.calc=r}processSheetRefs(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`sheet`&&this.processSheetRef(e,n,r)}n.sheets=r}processSheetRef(e,t,n){let r={};e.copyFromAttribute(t,`name`,r,`name`),e.copyFromAttribute(t,`state`,r,`visibility`),e.copyFromAttribute(t,`sheetId`,r,`sheetId`,e.INT_COPY);let i=t.getAttribute(`r:id`),a=e.getRef(i);a&&(r.sheet=a),n.push(r)}processExternalReferences(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`externalReference`){let t=n.getAttribute(`r:id`),i=t?e.getRef(t):null;r.push(i??null)}}r.length>0&&(n.externalBooks=r)}processPivotCaches(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1||n.localName!==`pivotCache`)continue;let a=parseInt(n.getAttribute(`cacheId`)??``,10),o=n.getAttribute(`r:id`);if(isNaN(a)||!o)continue;let s=e.readEmbeddedPart(o);s&&r.push({cacheId:a,part:s})}r.length>0&&(n.pivotCaches=r)}processBookViews(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;i<1&&t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`workbookView`&&(this.processWorkbookView(e,a,n),i++)}}processWorkbookView(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`activeTab`,r,`activeSheetId`,[e.INT_COPY,e=>e]),t.hasAttribute(`activeTab`)||(r.activeSheetId=0),e.copyFromAttribute(t,`showHorizontalScroll`,r,`showHorizontalScrollbar`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`showVerticalScroll`,r,`showVerticalScrollbar`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`showSheetTabs`,r,`showTabs`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`tabRatio`,r,`tabRatio`,[e.FLOAT_COPY,e=>e]),Object.keys(r).length>0&&(n.view=r)}processDefineName(e,t,n,r){if(!t)return;let i={},a=t.firstChild;if(a&&a.nodeType===3&&(i.ref=a.textContent),e.copyFromAttribute(t,`name`,i),e.copyFromAttribute(t,`comment`,i),e.copyFromAttribute(t,`hidden`,i,`hidden`,e.BOOLEAN_COPY),t.hasAttribute(`localSheetId`)){let n=t.getAttribute(`localSheetId`);if(!r[n]?.name)return void e.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${n}' which does not exist.`);i.scope=r[n].name}e.copyFromAttribute(t,`customMenu`,i),e.copyFromAttribute(t,`description`,i),e.copyFromAttribute(t,`statusBar`,i),e.copyFromAttribute(t,`help`,i),e.copyFromAttribute(t,`shortcutKey`,i),e.copyFromAttribute(t,`function`,i,`function`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`functionGroupId`,i,`functionGroupId`,e.INT_COPY),e.copyFromAttribute(t,`publishToServer`,i,`publishToServer`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`vbProcedure`,i,`vbProcedure`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`xlm`,i,`xlm`,e.BOOLEAN_COPY),Object.keys(i).length>0&&n.push(i)}processDefinedNames(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);a.nodeType===1&&a.localName===`definedName`&&this.processDefineName(e,a,r,n.sheets)}r.length>0&&(n.names=r)}processWorkbookPr(e,t,n){t&&(e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`codeName`,n,`codeName`),e.copyFromAttribute(t,`updateLinks`,n,`updateLinks`))}afterVisit(e,t,n){}},fe=class{visit(e,t,n){let r={};return e.copyFromAttribute(t,`ref`,n,`r`),e.getVisitorParamsState().set(`ref`,n.r),n.v=r,e.copyFromAttribute(t,`name`,r),e.copyFromAttribute(t,`displayName`,r),e.copyFromAttribute(t,`headerRowCount`,r,`headerRowCount`,e.INT_COPY),e.copyFromAttribute(t,`totalsRowCount`,r,`totalsRowCount`,e.INT_COPY),this.processTableColumns(e,t,r),this.processTableStyleInfo(e,t,r),e.copyFromAttribute(t,`id`,r),e.copyFromAttribute(t,`comment`,r,`description`),e.copyFromAttribute(t,`connectionId`,r,`connectionId`,e.INT_COPY),e.copyFromAttribute(t,`tableType`,r),e.copyFromAttribute(t,`published`,r,`published`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`insertRow`,r,`insertRow`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`insertRowShift`,r,`insertRowShift`,e.BOOLEAN_COPY),r.totalsRowShown=t.getAttribute(`totalsRowShown`)!==`0`,r}afterVisit(e,t,n){let r=n.v;if(e.evaluate(`autoFilter`,t)){if(Array.isArray(r.hiddenButtons)){let e=r.hiddenButtons.length;e===0?r.hiddenButtons=!1:e===r.columns?.length&&(r.hiddenButtons=!0)}}else r.hiddenButtons=!0,r.showButtons=!1;return r}processTableStyleInfo(e,t,n){if(!t)return;let r=t.childNodes,i={},a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableStyleInfo`&&(e.copyFromAttribute(n,`name`,i),e.copyFromAttribute(n,`showColumnStripes`,i,`showColumnStripes`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showFirstColumn`,i,`showFirstColumn`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showLastColumn`,i,`showLastColumn`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showRowStripes`,i,`showRowStripes`,e.BOOLEAN_COPY))}Object.keys(i).length>0&&(n.style=i)}processTableColumn(e,t,n){if(!t)return null;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`tableColumn`){let t={};e.copyFromAttribute(i,`name`,t),e.copyFromAttribute(i,`id`,t),e.copyFromAttribute(i,`uniqueName`,t),e.copyFromAttribute(i,`queryTableFieldId`,t),e.copyFromAttribute(i,`totalsRowLabel`,t);let r=i.getAttribute(`totalsRowFunction`);if(r!==null)if(r===`custom`){let n=e.evaluate(`totalsRowFormula`,i);n&&(t.totalsRowFormula=n.textContent)}else t.totalsRowFormula=r;e.copyFromAttribute(i,`totalsRowLabel`,t);let a=e.evaluate(`calculatedColumnFormula`,i);a?.textContent&&(t.calculatedColumnFormula=a.textContent),n.push(t)}}return n}processTableColumns(e,t,n){let r=t.childNodes,i=[],a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableColumns`&&this.processTableColumn(e,n,i)}i.length>0&&(n.columns=i)}},pe=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`ref`);if(r){let n=e.getVisitorParamsState().get(`descriptions`);n&&(n.add(r,t.getAttribute(`altText`)),n.add(r,t.getAttribute(`altTextSummary`)))}return e.copyFromAttribute(t,`altText`,n),e.copyFromAttribute(t,`altTextSummary`,n),n}},me=class{visit(e,t,n){let r=t.childNodes,i=r.length,a=null;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1){t.localName===`externalBook`&&(a=t);break}}if(!a)return n;t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0);let o=a.getAttribute(`r:id`);o&&(n.__bookRelId=o);let s=this._findAbsoluteUrlRelId(a);return s&&(n.__absoluteUrlRelId=s),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),n}processSheetNames(e,t,n){let r=this._findChild(t,`sheetNames`);if(!r)return;let i=r.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);t.nodeType===1&&t.localName===`sheetName`&&n.sheetNames.push(t.getAttribute(`val`)??``)}}processDefinedNames(e,t,n){let r=this._findChild(t,`definedNames`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`definedName`)continue;let n=t.getAttribute(`name`);if(!n)continue;let r={name:n,refersTo:t.getAttribute(`refersTo`)??``},o=t.getAttribute(`sheetId`);o!==null&&(r.sheetIndex=parseInt(o,10)),i.push(r)}i.length>0&&(n.definedNames=i)}processSheetDataSet(e,t,n){let r=this._findChild(t,`sheetDataSet`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1||n.localName!==`sheetData`)continue;let r=n.getAttribute(`sheetId`);if(r===null)continue;let o=this.processSheetData(e,n);o.sheetIndex=parseInt(r,10),n.getAttribute(`refreshError`)===`1`&&(o.refreshError=!0),i.push(o)}i.length>0&&(n.sheetDataSet=i)}processSheetData(e,t){let n=new i.Tuple.Builder,r=t.childNodes,a=r.length;for(let e=0;e<a;e++){let t=r.item(e);if(t.nodeType!==1||t.localName!==`row`)continue;let a=t.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`cell`)continue;let r=t.getAttribute(`r`);if(!r)continue;let o=i.AddressUtils.fastStringToCell(r);if(o?.rowIndex===void 0||o?.colIndex===void 0)continue;let s=this._readCellValue(t);s!==void 0&&n.pushAt(o.rowIndex,o.colIndex,s)}}return{sheetIndex:-1,data:n.build()?.tuples??[]}}_readCellValue(e){let t=this._findChild(e,`v`)?.textContent?.trim();if(t!==void 0&&t!==``)switch(e.getAttribute(`t`)){case null:case`n`:return parseFloat(t);case`b`:return t===`1`||t===`true`;case`str`:default:return t;case`e`:{let e=i.FormulaError.getBuiltInByLabel(t);return e?{t:`e`,v:e.getCode()}:t}}}_findChild(e,t){let n=e.childNodes,r=n.length;for(let e=0;e<r;e++){let r=n.item(e);if(r.nodeType===1&&r.localName===t)return r}return null}_findAbsoluteUrlRelId(e){let t=this._findChild(e,`alternateUrls`);return t?this._findChild(t,`absoluteUrl`)?.getAttribute(`r:id`)??null:null}},he=class{visit(e,t,n){e.copyFromAttribute(t,`name`,n),e.copyFromAttribute(t,`sourceName`,n);let r=e.evaluate(`*/tableSlicerCache`,t);return r?(e.copyFromAttribute(r,`tableId`,n),e.copyFromAttribute(r,`column`,n,`columnId`),e.copyFromAttribute(r,`crossFilter`,n),n):(e.warn(`A slicer names no table; it was not imported.`,{onceKey:`xlsx.slicer.cacheDefinition`}),n)}},ge=class{visit(e,t,n){let r=n.slicers;r||(r={},n.slicers=r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`slicer`&&this.processSlicer(e,n,r)}return r}processSlicer(e,t,n){if(!t)return;let r={};n[t.getAttribute(`name`)]=r;let i=t.getAttribute(`cache`),a=e.getVisitorParamsState().get(`slicerCaches`);if(i){let e=a.get(i);e&&(r.columnId=e.columnId,r.tableId=e.tableId)}e.copyFromAttribute(t,`caption`,r),e.copyFromAttribute(t,`startItem`,r,`startItem`,e.INT_COPY),e.copyFromAttribute(t,`columnCount`,r,`columnCount`,e.INT_COPY),e.copyFromAttribute(t,`showCaption`,r,`showCaption`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`level`,r,`level`,e.INT_COPY),e.copyFromAttribute(t,`style`,r),e.copyFromAttribute(t,`locked`,r,`locked`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`rowHeight`,r,`rowHeight`,e.INT_COPY)}},_e=class{visit(e,t,n){return n}},Q=class{visit(e,t,n){if(!t)return;let r={};return e.copyFromAttribute(t,`editAs`,r,`anchorType`),r.anchor={},t.localName===`absoluteAnchor`?(r.anchorType=`absolute`,this.processAbsoluteCoord(e,e.evaluate(`xdr:pos`,t),r.anchor,`from`,`x`,`y`),this.processAbsoluteCoord(e,e.evaluate(`xdr:ext`,t),r.anchor,`to`,`cx`,`cy`)):t.localName===`oneCellAnchor`?(this.processOffsetCoord(e,e.evaluate(`from`,t),r.anchor,`from`),this.processAbsoluteCoord(e,e.evaluate(`xdr:ext`,t),r.anchor,`to`,`cx`,`cy`)):(this.processOffsetCoord(e,e.evaluate(`from`,t),r.anchor,`from`),this.processOffsetCoord(e,e.evaluate(`to`,t),r.anchor,`to`)),n.movables||=[],n.movables.push(r),r}processAbsoluteCoord(e,t,r,i,a,o){if(!t)return;let s={x:0,y:0};return s.x=n.s(t.getAttribute(a)),s.y=n.s(t.getAttribute(o)),i===`from`?r.tl=s:r.br=s,r}processOffsetCoord(e,t,r,i){if(!t)return;let a={c:0,r:0,x:0,y:0};return e.evaluate(`col`,t)&&(a.c=parseInt(e.evaluate(`col`,t).textContent)),e.evaluate(`row`,t)&&(a.r=parseInt(e.evaluate(`row`,t).textContent)),e.evaluate(`colOff`,t)&&(a.x=n.s(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(a.y=n.s(e.evaluate(`rowOff`,t).textContent)),i===`from`?r.tl=a:r.br=a,r}},ve=class extends j{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(r){let t=e.evaluate(`graphicFrameLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i={type:`graphicFrame`,json:{}},a=e.evaluate(`graphic/graphicData`,t).childNodes,o=a.length;for(let n=0;n<o;n++){let r=a.item(n);if(r.nodeType===1)try{let n=r.localName;n===`chart`?n=`chart`:n===`slicer`&&(n=`slicer`),i.type=n;let a=r.getAttribute(`r:id`);if(n===`chart`&&a){let n=e.evaluate(`*/cNvPr`,t);n?.item&&(n=n.item(0));let r=n?.getAttribute?.(`id`),o=r?parseInt(r,10):void 0;i.json={xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o,part:e.readEmbeddedPart(a)??void 0}}else a&&(i.json=e.getRef(a))}catch(t){e.warn(`Unable to read a graphic frame: ${t?.message??t}`,{onceKey:`xlsx.drawing.graphicFrame`})}}return i&&(n.content=i),i}},ye=M,be=class extends j{visit(e,t,n){if(!t)return;let r=super.visit(e,t,n),i=e.evaluate(`nvPicPr/cNvPicPr`,t);if(i){e.copyFromAttribute(t,`preferRelativeResize`,r,`preferRelativeResize`,e.BOOLEAN_COPY);let n=e.evaluate(`picLocks`,i);if(n){n.hasAttribute(`noChangeAspect`)&&(r.lockAspect=n.getAttribute(`noChangeAspect`)===`1`);let t={};e.copyFromAttribute(n,`noChangeArrowheads`,r,`noChangeArrowheads`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noChangeShapeType`,r,`noChangeShapeType`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noEditPoints`,r,`noEditPoints`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noAdjustHandles`,r,`noAdjustHandles`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noCrop`,r,`noCrop`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noGrp`,r,`noGrp`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noMove`,r,`noMove`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noResize`,r,`noResize`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noRot`,r,`noRot`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noSelect`,r,`noSelect`,e.BOOLEAN_COPY),Object.keys(t).length>0&&(r.locks=t)}}let a=e.evaluate(`blipFill/blip`,t),o;if(a){let t;if(t=a.getAttribute(`r:embed`)??a.getAttribute(`embed`),t||=a.getAttribute(`r:link`)??a.getAttribute(`link`),!t)return void e.warn(`A picture names no image; it was not imported.`,{onceKey:`xlsx.drawing.picture.noRel`});o=e.getRef(t,!0)}return n.content={type:`picture`,json:{resId:o}},r}},xe=class extends M{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGrpSpPr/cNvGrpSpPr`,t);if(r){let t=e.evaluate(`grpSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`Unable to import '${n.name}', group shapes are not supported.`);let i={};return n.content={type:`grpSp`,json:i},i}},Se=class extends M{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvCxnSpPr/cNvCxnSpPr`,t);if(r){let t=e.evaluate(`cxnSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`cxnSp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`cxnSp`,json:s},s}},Ce=class{visit(e,t,n){let r=[],i=new Map,a={cells:[],values:[]},o=t.childNodes;for(let e=0;e<o.length;e++){let t=o.item(e);if(t.nodeType===1)switch(t.localName){case`metadataTypes`:this._parseMetadataTypes(t,r,i);break;case`futureMetadata`:this._attachFutureMetadata(t,i);break;case`cellMetadata`:this._resolveBlocks(t,r,a.cells);break;case`valueMetadata`:this._resolveBlocks(t,r,a.values)}}return n.metadata=a,a}_parseMetadataTypes(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1&&i.localName===`metadataType`){let e=this._parseMetadataType(i);t.push(e),n.set(e.name,e)}}}_parseMetadataType(e){let t={name:e.getAttribute(`name`)??``,_blocks:[]},n=e.getAttribute(`minSupportedVersion`);n!=null&&(t.minSupportedVersion=Number(n));for(let n of[`copy`,`pasteAll`,`pasteValues`,`merge`,`splitFirst`,`splitAll`,`rowColShift`,`clearFormats`,`clearComments`,`assign`,`coerce`,`cellMeta`,`adjust`,`trans`,`delete`,`edit`])e.getAttribute(n)===`1`&&(t[n]=!0);return t}_attachFutureMetadata(e,t){let n=e.getAttribute(`name`)??``,r=t.get(n);if(!r)return;let i=e.childNodes;for(let e=0;e<i.length;e++){let t=i.item(e);t.nodeType===1&&t.localName===`bk`&&r._blocks.push(this._parseFutureBlock(t))}}_parseFutureBlock(e){let t={},n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1||r.localName!==`extLst`)continue;let i=r.childNodes;for(let e=0;e<i.length;e++){let n=i.item(e);if(n.nodeType!==1||n.localName!==`ext`)continue;let r=n.childNodes;for(let e=0;e<r.length;e++){let n=r.item(e);n.nodeType===1&&(n.localName===`dynamicArrayProperties`?(t.fDynamic=n.getAttribute(`fDynamic`)===`1`,t.fCollapsed=n.getAttribute(`fCollapsed`)===`1`):n.localName===`rvb`&&(t.richValueIndex=Number(n.getAttribute(`i`)??`0`)))}}}return t}_resolveBlocks(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);i.nodeType===1&&i.localName===`bk`&&n.push(this._resolveBlock(i,t))}}_resolveBlock(e,t){let n=new Map,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType!==1||i.localName!==`rc`)continue;let a=Number(i.getAttribute(`t`)),o=Number(i.getAttribute(`v`)),s=t[a-1];if(!s)continue;let{_blocks:c,...l}=s,u={...l};for(let e of Object.keys(u))u[e]===void 0&&delete u[e];let d=c[o];d&&(d.fDynamic!==void 0&&(u.fDynamic=d.fDynamic,u.fCollapsed=d.fCollapsed??!1),d.richValueIndex!==void 0&&(u.richValueIndex=d.richValueIndex)),n.set(s.name,u)}return n}},$=class{visit(e,t,n){let r=e.getVisitorParamsState().get(N);r||(r=[],e.getVisitorParamsState().set(N,r));let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`s`){let t={type:n.getAttribute(`t`)??`n`,keys:[]};this.processKeys(e,n,t),r.push(t)}}return n.richTypes=r,r}processKeys(e,t,n){let r=t.childNodes,i=r.length,a=n.keys;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`k`){let e=t.getAttribute(`n`),n=t.getAttribute(`t`);a.push([e,n])}}}},we=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`richTypes`);if(!r)return void e.warn(`RichValueFound but not type.`);let i=e.getVisitorParamsState().get(P);i||(i=[],e.getVisitorParamsState().set(P,i));let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1&&n.localName===`rv`){let t=r[n.getAttribute(`s`)],a={type:t.type};this.processValues(e,n,a,t);let o=this.mapType(e,a);i.push(o)}}return n.richData=i,i}mapType(e,t){if(t.type===`_error`){let e=t.errorType;if(e)try{t=i.FormulaError.getBuiltInByCode(e+1)??i.FormulaError.BuiltIn.Unknown}catch{}}return t}processValues(e,t,n,r){let i=t.childNodes,a=i.length;r.type;let o=r.keys;for(let t=0;t<a;t++){let r=i.item(t);if(r.nodeType===1&&r.localName===`v`){let i=o[t];if(!i)return void e.warn(`Invalid richData`);let a=i[0],s=i[1],c=r.textContent;s===`i`&&(c=Number(c)),n[a]=c}}}},Te=class{visit(e,t,n){if(!t)return;let r=[];this.processAuthors(e,e.evaluate(`authors`,t),r),r.length>0&&(n.authors=r);let i=[];return n.comments=i,i}processAuthors(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`author`){let e=t.firstChild;e&&e.nodeType===3&&n.push(e.textContent)}}}},Ee=class{visit(e,t,n){if(!t)return;let r=t.getAttribute(`ref`);if(!r)return;let i={content:``};if(t.hasAttribute(`authorId`)){let e=parseInt(t.getAttribute(`authorId`),10);isNaN(e)||(i.authorId=e)}return i.content=function(e){if(!e)return``;let t=[],n=!0,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1){if(i.localName===`t`)t.push({text:i.textContent??``});else if(i.localName===`r`){let e={text:``},r=i.childNodes;for(let t=0;t<r.length;t++){let n=r.item(t);n.nodeType===1&&(n.localName===`t`?e.text+=n.textContent??``:n.localName===`rPr`&&ee(n,e))}Object.keys(e).length>1&&(n=!1),t.push(e)}}}return t.length===0?e.textContent??``:n?t.map(e=>e.text).join(``):{runs:t}}(e.evaluate(`text`,t)),n.push({r,v:i}),i}},De=class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},Oe=class{visit(e,t,r){if(!t)return;let i={};e.copyFromAttribute(t,`id`,i,`id`,n.m);let a=t.getAttribute(`ref`);return e.copyFromAttribute(t,`personId`,i,`personId`,n.m),e.copyFromAttribute(t,`parentId`,i,`parentId`,n.m),e.copyFromAttribute(t,`dT`,i,`dt`),t.hasAttribute(`done`)&&(i.done=n.a(t.getAttribute(`done`))),r.push({r:a,v:i}),i}},ke=class{visit(e,t,r){let i=[],a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let r=a.item(t);if(r.nodeType===1&&r.localName===`person`){let t={};e.copyFromAttribute(r,`id`,t,`id`,n.m),e.copyFromAttribute(r,`displayName`,t),e.copyFromAttribute(r,`userId`,t,`userId`,n.m),e.copyFromAttribute(r,`providerId`,t),i.push(t)}}return i.length>0&&(r.persons=i),i}},Ae=class{constructor(e,t){this.path=e,this.visitor=t}};exports.DOMTransformer=class{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor(`Relationships`,new te),this.registerVisitor(`cp:coreProperties`,new ne),this.registerVisitor(`Properties`,new re),this.registerVisitor(`spPr`,new L),this.registerVisitor(`txBody`,new G),this.registerVisitor(`txPr`,new G),this.registerVisitor(`c:chartSpace`,new F),this.registerVisitor(`c:plotArea`,new I),this.registerVisitor(`c:barChart`,new R),this.registerVisitor(`c:doughnutChart`,new z),this.registerVisitor(`c:lineChart`,new z),this.registerVisitor(`c:ofPieType`,new z),this.registerVisitor(`c:pieChart`,new z),this.registerVisitor(`c:scatterChart`,new z),this.registerVisitor(`c:barChart`,new B(`dataLabels`),`dLbls`),this.registerVisitor(`c:doughnutChart`,new B(`dataLabels`),`dLbls`),this.registerVisitor(`c:lineChart`,new B(`dataLabels`),`dLbls`),this.registerVisitor(`c:ofPieType`,new B(`dataLabels`),`dLbls`),this.registerVisitor(`c:pieChart`,new B(`dataLabels`),`dLbls`),this.registerVisitor(`c:scatterChart`,new B(`dataLabels`),`dLbls`),this.registerVisitor(`c:ser`,new V),this.registerVisitor(`c:dPt`,new H),this.registerVisitor(`c:marker`,new U),this.registerVisitor(`c:catAx`,new W),this.registerVisitor(`c:valAx`,new W),this.registerVisitor(`c:dateAx`,new W),this.registerVisitor(`c:majorGridlines`,new b(`gridLinesMajor`)),this.registerVisitor(`c:minorGridlines`,new b(`gridLinesMinor`)),this.registerVisitor(`c:chartSpace`,null,`txPr`),this.registerVisitor(`c:catAx`,new G(`labels.text`),`txPr`),this.registerVisitor(`c:valAx`,new G(`labels.text`),`txPr`),this.registerVisitor(`c:dateAx`,new G(`labels.text`),`txPr`),this.registerVisitor(`c:legend`,new q),this.registerVisitor(`c:legend`,new G(`labels.text`),`txPr`),this.registerVisitor(`c:legendEntry`,new K),this.registerVisitor(`c:ser`,new J,`extLst/ext/invertSolidFillFmt/spPr`),this.registerVisitor(`c:ser`,new B(`labels`),`dLbls`),this.registerVisitor(`c:dLbl`,new B(`points`)),this.registerVisitor(`c:title`,new Y),this.registerVisitor(`c:title`,null,`tx/rich`),this.registerVisitor(`c:title`,null,`txPr`),this.registerVisitor(`c:layout`,new X),this.registerVisitor(`c:dispUnits`,new b(`dispUnits`)),this.registerVisitor(`c:dispUnitsLbl`,new Y(`displayUnitsLabel`)),this.registerVisitor(`c:dispUnitsLbl`,new G,`tx/rich`),this.registerVisitor(`a:theme`,new ie),this.registerVisitor(`a:theme`,new ae,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new oe,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new se,`themeElements/fmtScheme`),this.registerVisitor(`autoFilter`,new le),this.registerVisitor(`sortState`,new ue),this.registerVisitor(`s:workbook`,new de),this.registerVisitor(`styleSheet`,new Z),this.registerVisitor(`x14:table`,new pe),this.registerVisitor(`table`,new fe),this.registerVisitor(`externalLink`,new me),this.registerVisitor(`hlinkClick`,new ce),this.registerVisitor(`wsDr`,new _e),this.registerVisitor(`twoCellAnchor`,new Q),this.registerVisitor(`oneCellAnchor`,new Q),this.registerVisitor(`absoluteAnchor`,new Q),this.registerVisitor(`graphicFrame`,new ve),this.registerVisitor(`sp`,new ye),this.registerVisitor(`grpSp`,new xe),this.registerVisitor(`cxnSp`,new Se),this.registerVisitor(`pic`,new be),this.registerVisitor(`metadata`,new Ce),this.registerVisitor(`rvStructures`,new $),this.registerVisitor(`rvData`,new we),this.registerVisitor(`comments`,new Te),this.registerVisitor(`comment`,new Ee),this.registerVisitor(`ThreadedComments`,new De),this.registerVisitor(`threadedComment`,new Oe),this.registerVisitor(`threadedComment`,new G(`content`),`text`),this.registerVisitor(`personList`,new ke),this.registerVisitor(`slicerCacheDefinition`,new he),this.registerVisitor(`slicers`,new ge)}registerVisitor(e,t,n=null){e.indexOf(`:`)===-1&&(e=`*:`+e);let r=e.split(`:`),i=r.length>1?r[1]:r[0];if(!n)return this.visitorsByXmlTagName.set(i,t),void this.visitorsByXmlTagName.set(e,t);let a=this.scopedVisitorsByXmlTagName.get(i);a||(a=[],this.scopedVisitorsByXmlTagName.set(i,a),this.scopedVisitorsByXmlTagName.set(e,a)),a.push(new Ae(n,t))}parseDxf(e,t=``,n=r.CommonUtils.EmptyObject){this.visitorParamsState||=new Map;let i=this.visitorParamsState,a=i.get(`processingDXFs`);i.set(`processingDXFs`,!0);try{let r=new u(null,this,`/dxf`,e,{},t,n),i={};return new Z().processDXF(r,e,i),i}finally{a===void 0?i.delete(`processingDXFs`):i.set(`processingDXFs`,a)}}getVisitorParamsState(){return this.visitorParamsState}transform(e,t,n=r.CommonUtils.EmptyObject){let i=e.documentElement;this.visitorParamsState&&!n?.paramMap||(this.visitorParamsState=n?.paramMap??new Map);let a={},o=this.visitorsByXmlTagName.get(i.nodeName);if(o||=this.visitorsByXmlTagName.get(i.localName),!o)throw Error(`A visitor for the root element: '${i.nodeName}' or '${i.localName}' must be registered.`);let s=`/`+i.localName,c=new u(null,this,s,i,a,t,n),l=[];this._doWalk(o,c,l,i,a,t,n);let d=l.length;for(let e=0;e<d;e++){let t=l[e];try{t.visitor?.afterVisit?.(t.context,t.elemParent,t.jsonParent)}catch(e){t.context.warn(`Unable to finish reading '${t.context.getPath()}': ${e?.message??e}`,{onceKey:`xlsx.transform.afterVisit`})}}return a}_walkScoped(e,t,n,r,i,a,o){let s=this.scopedVisitorsByXmlTagName.get(e),c=s?s.length:0;for(let l=0;l<c;l++){let c=s[l],d=null;try{d=t.evaluate(c.path,r)}catch{t.warn(`Invalid path '${c.path}' for '${e}'.`,{onceKey:`xlsx.transform.invalidPath`})}if(!d)continue;let f=e=>{let s=e.localName,l=e.parentNode;for(;l&&l!==r;)s=l.localName+`/`+s,l=l.parentNode;let d=t.getPath()+`/`+s;if(c.visitor){let r=new u(t,this,d,t.getElemRoot(),t.getJsonRoot(),a,o);this._doWalk(c.visitor,r,n,e,i,a,o)}};if(d.length>0){let e=d,t=e.length;for(let n=0;n<t;n++)f(e.item(n))}else f(d)}}_doWalk(e,t,n,r,i,a,o){let s=null;e&&(n.push({visitor:e,context:t,elemParent:r,jsonParent:i}),s=e.visit(t,r,i)),s||=i;let c=r.localName;this._walkScoped(c,t,n,r,s,a,o);let l=this.visitorsByXmlTagName,d=t.getElemRoot(),f=t.getJsonRoot(),p=r.childNodes,m=p.length;for(let e=0;e<m;e++){let r=p.item(e);if(r.nodeType!==1)continue;let c=r,m=c.nodeName,h=l.get(m);h||=(m=c.localName,l.get(m));let g=t.getPath()+`/`+m,_=new u(t,this,g,d,f,a,o);this._doWalk(h,_,n,c,s??i,a,o)}return s}},exports.ExecutionContext=u,Object.defineProperty(exports,"NumberUtils",{enumerable:!0,get:function(){return n.r}}),Object.defineProperty(exports,"VisitorUtils",{enumerable:!0,get:function(){return d}});