@sheetxl/io-xlsx 0.7.28-beta.4 → 0.8.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/browser/cjs/{DK9GutW2zPbyNlfU.cjs → BAtEL-5TLyoaPFDP.cjs} +1 -1
  2. package/browser/cjs/{BmG0GOcbuYvt3-R2.cjs → Bg0e53JZa8vhmm5a.cjs} +1 -1
  3. package/browser/cjs/CK5FFUvet6FnIYO_.cjs +5 -0
  4. package/browser/cjs/{D3YH3tTndeltJsh5.cjs → DV6LeTEiiFUrZoxj.cjs} +1 -1
  5. package/browser/cjs/{Bhq8KfEhCnRykWeS.cjs → Db8YjGM6TG34c8aT.cjs} +1 -1
  6. package/browser/cjs/index.cjs +1 -1
  7. package/browser/esm/{DlBlJGlFQJrKovwJ.mjs → 4BWLu134ABlCQEtM.mjs} +8 -4
  8. package/browser/esm/{BknJ4AeVeFJploh9.mjs → BkNXyG6NC-w5Xo92.mjs} +2 -2
  9. package/browser/esm/{C7R1lFA0iv-1bZ9i.mjs → BzQ_lPzc8C4OTIGZ.mjs} +2 -2
  10. package/browser/esm/{BcnofzmeeuCVzr_M.mjs → CJknI8BYGSZr-4zS.mjs} +5 -5
  11. package/browser/esm/{BhohPLTubb_9rfrh.mjs → CLWzJJyoSrykkVLX.mjs} +2 -2
  12. package/browser/esm/{CV_L3E5OoPstI9lx.mjs → Cok_fBIUCHDSrKw0.mjs} +4 -4
  13. package/browser/esm/{BXCOn1XvLvYSfpzi.mjs → Ctqql4O-3xj2K8vv.mjs} +2 -2
  14. package/browser/esm/{DLEtaZiz_1cZH0dA.mjs → D-m_kQLaewdwuXaF.mjs} +7 -7
  15. package/browser/esm/{D8qZcXzj_fdusd0Y.mjs → Dj7D2nVdAZ3TiUks.mjs} +2 -7
  16. package/browser/esm/{C3sYFBc7Tym8l12A.mjs → Dz1Dp8DDJvhd09RR.mjs} +1 -1
  17. package/browser/esm/{saBnxecsRUpY6fGv.mjs → ijQzHH-bvDfUHIi1.mjs} +1 -1
  18. package/browser/esm/index.mjs +2 -2
  19. package/node/esm/{CfIzBnObj09fDuUX.mjs → CEAmv36xpTNgFwl_.mjs} +2 -2
  20. package/node/esm/{B9CUp-rqol5K1r1c.mjs → CEV7nKotMpeRRnQC.mjs} +1 -1
  21. package/node/esm/{DsZ19z4oXoL-d0Lk.mjs → CF1R5ovFsRNu--Rw.mjs} +7 -3
  22. package/node/esm/{BYCpXFieBgL_cwTO.mjs → Ctcl4jN52INWpKWC.mjs} +3 -3
  23. package/node/esm/{D0frS50CfyeuXcuz.mjs → CvnRSooxEQdlJgMn.mjs} +5 -5
  24. package/node/esm/{Bqi4c7-14v0oNgFN.mjs → DQd0vxzTaPt2qSL-.mjs} +1 -1
  25. package/node/esm/{B6lQXVQjFT_OE3IA.mjs → fOnuUjpPCAzmuIXN.mjs} +2 -2
  26. package/node/esm/index.mjs +5 -5
  27. package/node/esm/{BSrW-J3BEH4Tza_S.mjs → ssSlRCbCqxvZ9IX8.mjs} +80 -85
  28. package/package.json +3 -3
  29. package/types/src/writer/builder/EmitterRegistry.d.ts +7 -0
  30. package/browser/cjs/Dmi-Tsz618B6vKpZ.cjs +0 -5
@@ -1 +1 @@
1
- const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./DK9GutW2zPbyNlfU.cjs"),n=require("./DWkuoJSgvcXJTdN1.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):(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)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??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){this._onWarning?this._onWarning(e):this._parent?this._parent?.warn?.(e):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.n(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.o(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.i(i.getAttribute(`d`)??``)),e.push(n.i(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.o(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.n(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(r.blur=n.o(t.getAttribute(`blurRad`))),t.hasAttribute(`algn`)&&(r.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=n.r(t.getAttribute(`rotWithShape`))),t.hasAttribute(`sx`)&&(r.scaleX=n.i(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(r.scaleY=n.i(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(r.skewX=n.n(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(r.skewY=n.n(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.o(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.n(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(r.blur=n.o(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.o(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.n(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.o(t.getAttribute(`rad`))),r}case`softEdge`:{let e={type:i.IEffect.Type.SoftEdge};return t.hasAttribute(`rad`)&&(e.radius=n.o(t.getAttribute(`rad`))),e}case`reflection`:{let e={type:i.IEffect.Type.Reflection};return t.hasAttribute(`blurRad`)&&(e.blur=n.o(t.getAttribute(`blurRad`))),t.hasAttribute(`dist`)&&(e.distance=n.o(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(e.angle=n.n(t.getAttribute(`dir`))),t.hasAttribute(`fadeDir`)&&(e.fadeAngle=n.n(t.getAttribute(`fadeDir`))),t.hasAttribute(`stA`)&&(e.startAlpha=n.i(t.getAttribute(`stA`))),t.hasAttribute(`stPos`)&&(e.startPosition=n.i(t.getAttribute(`stPos`))),t.hasAttribute(`endA`)&&(e.endAlpha=n.i(t.getAttribute(`endA`))),t.hasAttribute(`endPos`)&&(e.endPosition=n.i(t.getAttribute(`endPos`))),t.hasAttribute(`sx`)&&(e.scaleX=n.i(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(e.scaleY=n.i(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(e.skewX=n.n(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(e.skewY=n.n(t.getAttribute(`ky`))),t.hasAttribute(`algn`)&&(e.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(e.isRotatedWithShape=n.r(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.n(a.getAttribute(`ang`))),a.hasAttribute(`scaled`)&&(r.scaled=n.r(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.i(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.i(e.getAttribute(`t`))),e.hasAttribute(`l`)&&(t.l=n.i(e.getAttribute(`l`))),e.hasAttribute(`b`)&&(t.b=n.i(e.getAttribute(`b`))),e.hasAttribute(`r`)&&(t.r=n.i(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.r(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.i(t.getAttribute(`r`)??``)+`,`+n.i(t.getAttribute(`g`)??``)+`,`+n.i(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.n(t.getAttribute(`hue`)??``)+`,`+n.i(t.getAttribute(`sat`)??``)+`,`+n.i(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.a(a.getAttribute(`x`))??0,t.y=n.a(a.getAttribute(`y`))??0);let o=e.evaluate(`ext`,i);a&&(t.width=n.a(o.getAttribute(`cx`))??0,t.height=n.a(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)&&console.warn(`customGeom not supported yet`);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(e){console.warn(e)}}},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||(console.warn(`Uninitialized types array in ChartTypeVisitor`),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);i&&(this.parseTextProperties(e,i,n),new w().visit(e,i,n));let a=n.runs??[],o=e.evaluate(`p/r`,t)??e.evaluate(`r`,t),s=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&&a.push(n)};if(o?.length!==void 0)for(let e=0;o&&e<o.length;e++)s(o.item(e));else s(o||t);a.length>0&&(n.runs=a);let c=e.evaluate(`bodyPr`,t);c&&f(c,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.d(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`),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.IBorder.Edge.Left),this.processBorderStroke(e,t,o,i.IBorder.Edge.Right),a?(o.right||o.left)&&(o.right?o.vertical={...o.right}:o.vertical={...o.left}):this.processBorderStroke(e,t,o,i.IBorder.Edge.Vertical),this.processBorderStroke(e,t,o,i.IBorder.Edge.Top),this.processBorderStroke(e,t,o,i.IBorder.Edge.Bottom),a?(o.bottom||o.top)&&(o.bottom?o.horizontal={...o.bottom}:o.horizontal={...o.top}):this.processBorderStroke(e,t,o,i.IBorder.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.IBorder.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)return 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)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);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`,ee=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}},te=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||``}}},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{key:t.localName,value:t.textContent||``}}},re=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`)}},F=class{visit(e,t,n){let r={};return n.plotArea=r,r}},I=w,L=class extends T{parseType(e,t,n){let r=e.getValAttrAsString(`barDir`,t);r&&(n.type=r===`col`?`column`:`bar`)}},R=T,z=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`))}},B=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)}}}},V=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}},H=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}},U=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`)||(console.warn(`Uninitialized axes map in AxisVisitor`),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)}},W=D,G=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}},K=class{visit(e,t,n){let r={};return m(e,t,r,`overlay`,`overlay`),p(e,t,r,`legendPos`,`position`),n.legend=r,r}},q=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}},J=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)}}},Y=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}},X=class{visit(e,t,n){return n.name=t.getAttribute(`name`),n}},ie=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}},ae=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}},oe=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}},se=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}},ce=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.o({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.r(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.r(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}},le=class{visit(e,t,r){if(!t)return;let a=t.getAttribute(`ref`),o={};t.hasAttribute(`caseSensitive`)&&(o.collatorOptions=n.r(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.r(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 console.warn(`no ref for sort conditional`,e.getPath());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.r(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,n){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let r={fills:{},fonts:{},borders:{}};this.processFonts(e,e.evaluate(`fonts`,t),r.fonts),this.processFills(e,e.evaluate(`fills`,t),r.fills),this.processBorders(e,e.evaluate(`borders`,t),r.borders,!0),r.fills[0]={type:i.IFill.Type.None},r.fills[1]={type:i.IFill.Type.Pattern,patternType:i.IFill.BuiltInSheetPattern.Gray125},r.borders[0]={bottom:{style:i.IBorder.StrokeStyle.None},left:{style:i.IBorder.StrokeStyle.None},right:{style:i.IBorder.StrokeStyle.None},top:{style:i.IBorder.StrokeStyle.None}};let a=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),a,r,null,!1);let o=new Map;if(a.length>0){let r=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),r,a,o),n.named=r}let s=[];this.processXFs(e,e.evaluate(`cellXfs`,t),s,r,o),Object.keys(s).length>0&&(n.direct=s);let c=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),c),this.processTableStyles(e,e.evaluate(`tableStyles`,t),n,c),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),n),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),n),n}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.r(t.getAttribute(e)),u=e=>!s||t.hasAttribute(e)&&n.r(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.border=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 console.warn(`no visitor params 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.r(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.r(t?.getAttribute(`wrapText`)??``)?a.overflow=i.ITextFrame.Overflow.Wrap:a.overflow=i.ITextFrame.Overflow.Visible,n.r(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.r(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:console.warn(`invalid readingOrder: ${o}`)),Object.keys(a).length>0&&(r.alignment=a),r}processProtection(e,t,r){if(!t)return;let i={},a=t.getAttribute(`locked`);a&&!n.r(a)&&(i.edit=!0);let o=t.getAttribute(`hidden`);return o&&n.r(o)&&(i.formulaHidden=!0),Object.keys(i).length>0&&(r.protection=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.border=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.r(t.getAttribute(`table`))),t.hasAttribute(`pivot`)&&(s.pivot=n.r(t.getAttribute(`pivot`))),a&&!s.pivot&&i.unshift(null);let c=t.childNodes,l=c.length;for(let e=0;e<l;e++){let t=c.item(e);if(t.nodeType===1&&t.localName===`tableStyleElement`){let e=t.getAttribute(`type`),n=t.getAttribute(`dxfId`),r=n==null?void 0:i?.[n];r||=(console.warn(`invalid dfx id`,n),{}),s[e]=r;let a=null;t.hasAttribute(`size`)&&(a=parseInt(t.getAttribute(`size`))),a&&!isNaN(a)&&(r.size=a)}}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.r(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(u.iLevel=parseInt(t.getAttribute(`iLevel`))),r.push(u)}}}afterVisit(e,t,n){}},ue=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.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,t,n){if(!t)return;let r={};return this.processPassword(e,t,r,`workbook`,`password`),this.processPassword(e,t,r,`revisions`,`revisionsPassword`),e.copyFromAttribute(t,`lockStructure`,r,`structure`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockWindows`,r,`windows`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockRevision`,r,`revision`,e.BOOLEAN_COPY),n.protection=r,n}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,`maxIterations`,e.INT_COPY),e.copyFromAttribute(t,`iterateDelta`,r,`maxIterateChange`,e.FLOAT_COPY),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`);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)}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 e=t.getAttribute(`localSheetId`);if(!r[e]?.name)return void console.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${e}' which does not exist.`);i.scope=r[e].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)}afterVisit(e,t,n){}},de=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),e.copyFromAttribute(t,`totalsRowShown`,r,`totalsRowShown`,e.BOOLEAN_COPY),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),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)}},fe=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}},pe=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}}return a?(t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),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}},me=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):(console.warn(`SlicerCacheDefinitionVisitor: missing tableSlicerCache element`),n)}},he=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)}},ge=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.a(t.getAttribute(a)),s.y=n.a(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.a(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(a.y=n.a(e.evaluate(`rowOff`,t).textContent)),i===`from`?r.tl=a:r.br=a,r}},_e=class extends j{visit(e,t,r){if(!t)return;r=super.visit(e,t,r);let i=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(i){let t=e.evaluate(`graphicFrameLocks`,i);if(t){t.hasAttribute(`noChangeAspect`)&&(r.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(r.locks=e)}}let a={type:`graphicFrame`,json:{}},o=e.evaluate(`graphic/graphicData`,t).childNodes,s=o.length;for(let r=0;r<s;r++){let i=o.item(r);if(i.nodeType===1)try{let r=i.localName;r===`chart`?r=`chart`:r===`slicer`&&(r=`slicer`),a.type=r;let o=i.getAttribute(`r:id`);if(r===`chart`&&o){let r=e.evaluate(`*/cNvPr`,t);r?.item&&(r=r.item(0));let i=r?.getAttribute?.(`id`),s=i?parseInt(i,10):void 0,c=e.getRelationships().get(o),l;if(c?.target){let t=e.getFileLocation(),r=t.slice(0,t.lastIndexOf(`/`)+1);l=n.p(c.target.startsWith(`/`)?c.target:r+c.target)}a.json={xml:e.serializeElement(t)??void 0,sourceId:s===void 0||isNaN(s)?void 0:s,chartRelId:o,chartTargetPath:l}}else o&&(a.json=e.getRef(o))}catch(e){console.warn(`Unable to parse graphicFrame`,e)}}return a&&(r.content=a),a}},ve=M,ye=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 console.warn(`no rId found for blip`,a);o=e.getRef(t,!0)}return n.content={type:`picture`,json:{resId:o}},r}},be=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}},$=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)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);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}},xe=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}},Se=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])}}}},Ce=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}}}},we=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)}}}},Te=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`ref`);e.copyFromAttribute(t,`authorId`,r,`personId`,e.INT_COPY),r.asNote=!0;let a={r:i,v:r};return n.push(a),r}},Ee=class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},De=class{visit(e,t,r){if(!t)return;let i={};e.copyFromAttribute(t,`id`,i,`id`,n.f);let a=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,i,`personId`,n.f),e.copyFromAttribute(t,`parentId`,i,`parentId`,n.f),e.copyFromAttribute(t,`dT`,i),t.hasAttribute(`done`)&&(i.done=n.r(t.getAttribute(`done`)));let o={r:a,v:i};return r.push(o),i}},Oe=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.f),e.copyFromAttribute(r,`displayName`,t),e.copyFromAttribute(r,`userId`,t,`userId`,n.f),e.copyFromAttribute(r,`providerId`,t),i.push(t)}}return i.length>0&&(r.persons=i),i}},ke=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 ee),this.registerVisitor(`cp:coreProperties`,new te),this.registerVisitor(`Properties`,new ne),this.registerVisitor(`spPr`,new I),this.registerVisitor(`txBody`,new W),this.registerVisitor(`txPr`,new W),this.registerVisitor(`c:chartSpace`,new re),this.registerVisitor(`c:plotArea`,new F),this.registerVisitor(`c:barChart`,new L),this.registerVisitor(`c:doughnutChart`,new R),this.registerVisitor(`c:lineChart`,new R),this.registerVisitor(`c:ofPieType`,new R),this.registerVisitor(`c:pieChart`,new R),this.registerVisitor(`c:scatterChart`,new R),this.registerVisitor(`c:barChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:doughnutChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:lineChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:ofPieType`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:pieChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:scatterChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:ser`,new B),this.registerVisitor(`c:dPt`,new V),this.registerVisitor(`c:marker`,new H),this.registerVisitor(`c:catAx`,new U),this.registerVisitor(`c:valAx`,new U),this.registerVisitor(`c:dateAx`,new U),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 W(`labels.text`),`txPr`),this.registerVisitor(`c:valAx`,new W(`labels.text`),`txPr`),this.registerVisitor(`c:dateAx`,new W(`labels.text`),`txPr`),this.registerVisitor(`c:legend`,new K),this.registerVisitor(`c:legend`,new W(`labels.text`),`txPr`),this.registerVisitor(`c:legendEntry`,new G),this.registerVisitor(`c:ser`,new q,`extLst/ext/invertSolidFillFmt/spPr`),this.registerVisitor(`c:ser`,new z(`labels`),`dLbls`),this.registerVisitor(`c:dLbl`,new z(`points`)),this.registerVisitor(`c:title`,new J),this.registerVisitor(`c:title`,null,`tx/rich`),this.registerVisitor(`c:title`,null,`txPr`),this.registerVisitor(`c:layout`,new Y),this.registerVisitor(`c:dispUnits`,new b(`dispUnits`)),this.registerVisitor(`c:dispUnitsLbl`,new J(`displayUnitsLabel`)),this.registerVisitor(`c:dispUnitsLbl`,new W,`tx/rich`),this.registerVisitor(`a:theme`,new X),this.registerVisitor(`a:theme`,new ie,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new ae,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new oe,`themeElements/fmtScheme`),this.registerVisitor(`autoFilter`,new ce),this.registerVisitor(`sortState`,new le),this.registerVisitor(`s:workbook`,new ue),this.registerVisitor(`styleSheet`,new Z),this.registerVisitor(`x14:table`,new fe),this.registerVisitor(`table`,new de),this.registerVisitor(`externalLink`,new pe),this.registerVisitor(`hlinkClick`,new se),this.registerVisitor(`wsDr`,new ge),this.registerVisitor(`twoCellAnchor`,new Q),this.registerVisitor(`oneCellAnchor`,new Q),this.registerVisitor(`absoluteAnchor`,new Q),this.registerVisitor(`graphicFrame`,new _e),this.registerVisitor(`sp`,new ve),this.registerVisitor(`grpSp`,new be),this.registerVisitor(`cxnSp`,new $),this.registerVisitor(`pic`,new ye),this.registerVisitor(`metadata`,new xe),this.registerVisitor(`rvStructures`,new Se),this.registerVisitor(`rvData`,new Ce),this.registerVisitor(`comments`,new we),this.registerVisitor(`comment`,new Te),this.registerVisitor(`comment`,new W(`content`),`text`),this.registerVisitor(`ThreadedComments`,new Ee),this.registerVisitor(`threadedComment`,new De),this.registerVisitor(`threadedComment`,new W(`content`),`text`),this.registerVisitor(`personList`,new Oe),this.registerVisitor(`slicerCacheDefinition`,new me),this.registerVisitor(`slicers`,new he)}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 ke(n,t))}parseDxf(e,t=``){this.visitorParamsState||=new Map;let n=this.visitorParamsState,r=n.get(`processingDXFs`);n.set(`processingDXFs`,!0);try{let n=new u(null,this,`/dxf`,e,{},t),r={};return new Z().processDXF(n,e,r),r}finally{r===void 0?n.delete(`processingDXFs`):n.set(`processingDXFs`,r)}}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){console.warn(`Error in afterVisit: ${t.context.getPath()}`,e)}}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{console.warn(`"Invalid path '${c.path}' for '${e}'.`)}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.t}}),Object.defineProperty(exports,"VisitorUtils",{enumerable:!0,get:function(){return d}});
1
+ const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./BAtEL-5TLyoaPFDP.cjs"),n=require("./DWkuoJSgvcXJTdN1.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):(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)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??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){this._onWarning?this._onWarning(e):this._parent?this._parent?.warn?.(e):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.n(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.o(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.i(i.getAttribute(`d`)??``)),e.push(n.i(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.o(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.n(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(r.blur=n.o(t.getAttribute(`blurRad`))),t.hasAttribute(`algn`)&&(r.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=n.r(t.getAttribute(`rotWithShape`))),t.hasAttribute(`sx`)&&(r.scaleX=n.i(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(r.scaleY=n.i(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(r.skewX=n.n(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(r.skewY=n.n(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.o(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.n(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(r.blur=n.o(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.o(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(r.angle=n.n(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.o(t.getAttribute(`rad`))),r}case`softEdge`:{let e={type:i.IEffect.Type.SoftEdge};return t.hasAttribute(`rad`)&&(e.radius=n.o(t.getAttribute(`rad`))),e}case`reflection`:{let e={type:i.IEffect.Type.Reflection};return t.hasAttribute(`blurRad`)&&(e.blur=n.o(t.getAttribute(`blurRad`))),t.hasAttribute(`dist`)&&(e.distance=n.o(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(e.angle=n.n(t.getAttribute(`dir`))),t.hasAttribute(`fadeDir`)&&(e.fadeAngle=n.n(t.getAttribute(`fadeDir`))),t.hasAttribute(`stA`)&&(e.startAlpha=n.i(t.getAttribute(`stA`))),t.hasAttribute(`stPos`)&&(e.startPosition=n.i(t.getAttribute(`stPos`))),t.hasAttribute(`endA`)&&(e.endAlpha=n.i(t.getAttribute(`endA`))),t.hasAttribute(`endPos`)&&(e.endPosition=n.i(t.getAttribute(`endPos`))),t.hasAttribute(`sx`)&&(e.scaleX=n.i(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(e.scaleY=n.i(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(e.skewX=n.n(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(e.skewY=n.n(t.getAttribute(`ky`))),t.hasAttribute(`algn`)&&(e.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(e.isRotatedWithShape=n.r(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.n(a.getAttribute(`ang`))),a.hasAttribute(`scaled`)&&(r.scaled=n.r(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.i(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.i(e.getAttribute(`t`))),e.hasAttribute(`l`)&&(t.l=n.i(e.getAttribute(`l`))),e.hasAttribute(`b`)&&(t.b=n.i(e.getAttribute(`b`))),e.hasAttribute(`r`)&&(t.r=n.i(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.r(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.i(t.getAttribute(`r`)??``)+`,`+n.i(t.getAttribute(`g`)??``)+`,`+n.i(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.n(t.getAttribute(`hue`)??``)+`,`+n.i(t.getAttribute(`sat`)??``)+`,`+n.i(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.a(a.getAttribute(`x`))??0,t.y=n.a(a.getAttribute(`y`))??0);let o=e.evaluate(`ext`,i);a&&(t.width=n.a(o.getAttribute(`cx`))??0,t.height=n.a(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)&&console.warn(`customGeom not supported yet`);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(e){console.warn(e)}}},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||(console.warn(`Uninitialized types array in ChartTypeVisitor`),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);i&&(this.parseTextProperties(e,i,n),new w().visit(e,i,n));let a=n.runs??[],o=e.evaluate(`p/r`,t)??e.evaluate(`r`,t),s=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&&a.push(n)};if(o?.length!==void 0)for(let e=0;o&&e<o.length;e++)s(o.item(e));else s(o||t);a.length>0&&(n.runs=a);let c=e.evaluate(`bodyPr`,t);c&&f(c,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.d(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`),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.IBorder.Edge.Left),this.processBorderStroke(e,t,o,i.IBorder.Edge.Right),a?(o.right||o.left)&&(o.right?o.vertical={...o.right}:o.vertical={...o.left}):this.processBorderStroke(e,t,o,i.IBorder.Edge.Vertical),this.processBorderStroke(e,t,o,i.IBorder.Edge.Top),this.processBorderStroke(e,t,o,i.IBorder.Edge.Bottom),a?(o.bottom||o.top)&&(o.bottom?o.horizontal={...o.bottom}:o.horizontal={...o.top}):this.processBorderStroke(e,t,o,i.IBorder.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.IBorder.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)return 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)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);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`,ee=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}},te=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||``}}},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{key:t.localName,value:t.textContent||``}}},re=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`)}},F=class{visit(e,t,n){let r={};return n.plotArea=r,r}},I=w,L=class extends T{parseType(e,t,n){let r=e.getValAttrAsString(`barDir`,t);r&&(n.type=r===`col`?`column`:`bar`)}},R=T,z=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`))}},B=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)}}}},V=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}},H=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}},U=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`)||(console.warn(`Uninitialized axes map in AxisVisitor`),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)}},W=D,G=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}},K=class{visit(e,t,n){let r={};return m(e,t,r,`overlay`,`overlay`),p(e,t,r,`legendPos`,`position`),n.legend=r,r}},q=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}},J=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)}}},Y=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}},X=class{visit(e,t,n){return n.name=t.getAttribute(`name`),n}},ie=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}},ae=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}},oe=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}},se=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}},ce=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.o({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.r(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.r(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}},le=class{visit(e,t,r){if(!t)return;let a=t.getAttribute(`ref`),o={};t.hasAttribute(`caseSensitive`)&&(o.collatorOptions=n.r(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.r(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 console.warn(`no ref for sort conditional`,e.getPath());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.r(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,n){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let r={fills:{},fonts:{},borders:{}};this.processFonts(e,e.evaluate(`fonts`,t),r.fonts),this.processFills(e,e.evaluate(`fills`,t),r.fills),this.processBorders(e,e.evaluate(`borders`,t),r.borders,!0),r.fills[0]={type:i.IFill.Type.None},r.fills[1]={type:i.IFill.Type.Pattern,patternType:i.IFill.BuiltInSheetPattern.Gray125},r.borders[0]={bottom:{style:i.IBorder.StrokeStyle.None},left:{style:i.IBorder.StrokeStyle.None},right:{style:i.IBorder.StrokeStyle.None},top:{style:i.IBorder.StrokeStyle.None}};let a=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),a,r,null,!1);let o=new Map;if(a.length>0){let r=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),r,a,o),n.named=r}let s=[];this.processXFs(e,e.evaluate(`cellXfs`,t),s,r,o),Object.keys(s).length>0&&(n.direct=s);let c=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),c),this.processTableStyles(e,e.evaluate(`tableStyles`,t),n,c),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),n),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),n),n}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.r(t.getAttribute(e)),u=e=>!s||t.hasAttribute(e)&&n.r(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.border=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 console.warn(`no visitor params 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.r(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.r(t?.getAttribute(`wrapText`)??``)?a.overflow=i.ITextFrame.Overflow.Wrap:a.overflow=i.ITextFrame.Overflow.Visible,n.r(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.r(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:console.warn(`invalid readingOrder: ${o}`)),Object.keys(a).length>0&&(r.alignment=a),r}processProtection(e,t,r){if(!t)return;let i={},a=t.getAttribute(`locked`);a&&!n.r(a)&&(i.edit=!0);let o=t.getAttribute(`hidden`);return o&&n.r(o)&&(i.formulaHidden=!0),Object.keys(i).length>0&&(r.protection=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.border=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.r(t.getAttribute(`table`))),t.hasAttribute(`pivot`)&&(s.pivot=n.r(t.getAttribute(`pivot`))),a&&!s.pivot&&i.unshift(null);let c=t.childNodes,l=c.length;for(let e=0;e<l;e++){let t=c.item(e);if(t.nodeType===1&&t.localName===`tableStyleElement`){let e=t.getAttribute(`type`),n=t.getAttribute(`dxfId`),r=n==null?void 0:i?.[n];r||=(console.warn(`invalid dfx id`,n),{}),s[e]=r;let a=null;t.hasAttribute(`size`)&&(a=parseInt(t.getAttribute(`size`))),a&&!isNaN(a)&&(r.size=a)}}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.r(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(u.iLevel=parseInt(t.getAttribute(`iLevel`))),r.push(u)}}}afterVisit(e,t,n){}},ue=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.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,t,n){if(!t)return;let r={};return this.processPassword(e,t,r,`workbook`,`password`),this.processPassword(e,t,r,`revisions`,`revisionsPassword`),e.copyFromAttribute(t,`lockStructure`,r,`structure`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockWindows`,r,`windows`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockRevision`,r,`revision`,e.BOOLEAN_COPY),n.protection=r,n}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,`maxIterations`,e.INT_COPY),e.copyFromAttribute(t,`iterateDelta`,r,`maxIterateChange`,e.FLOAT_COPY),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`);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)}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 e=t.getAttribute(`localSheetId`);if(!r[e]?.name)return void console.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${e}' which does not exist.`);i.scope=r[e].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)}afterVisit(e,t,n){}},de=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),e.copyFromAttribute(t,`totalsRowShown`,r,`totalsRowShown`,e.BOOLEAN_COPY),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),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)}},fe=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}},pe=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}}return a?(t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),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}},me=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):(console.warn(`SlicerCacheDefinitionVisitor: missing tableSlicerCache element`),n)}},he=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)}},ge=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.a(t.getAttribute(a)),s.y=n.a(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.a(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(a.y=n.a(e.evaluate(`rowOff`,t).textContent)),i===`from`?r.tl=a:r.br=a,r}},_e=class extends j{visit(e,t,r){if(!t)return;r=super.visit(e,t,r);let i=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(i){let t=e.evaluate(`graphicFrameLocks`,i);if(t){t.hasAttribute(`noChangeAspect`)&&(r.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(r.locks=e)}}let a={type:`graphicFrame`,json:{}},o=e.evaluate(`graphic/graphicData`,t).childNodes,s=o.length;for(let r=0;r<s;r++){let i=o.item(r);if(i.nodeType===1)try{let r=i.localName;r===`chart`?r=`chart`:r===`slicer`&&(r=`slicer`),a.type=r;let o=i.getAttribute(`r:id`);if(r===`chart`&&o){let r=e.evaluate(`*/cNvPr`,t);r?.item&&(r=r.item(0));let i=r?.getAttribute?.(`id`),s=i?parseInt(i,10):void 0,c=e.getRelationships().get(o),l;if(c?.target){let t=e.getFileLocation(),r=t.slice(0,t.lastIndexOf(`/`)+1);l=n.p(c.target.startsWith(`/`)?c.target:r+c.target)}a.json={xml:e.serializeElement(t)??void 0,sourceId:s===void 0||isNaN(s)?void 0:s,chartRelId:o,chartTargetPath:l}}else o&&(a.json=e.getRef(o))}catch(e){console.warn(`Unable to parse graphicFrame`,e)}}return a&&(r.content=a),a}},ve=M,ye=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 console.warn(`no rId found for blip`,a);o=e.getRef(t,!0)}return n.content={type:`picture`,json:{resId:o}},r}},be=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}},$=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)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);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}},xe=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}},Se=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])}}}},Ce=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}}}},we=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)}}}},Te=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`ref`);e.copyFromAttribute(t,`authorId`,r,`personId`,e.INT_COPY),r.asNote=!0;let a={r:i,v:r};return n.push(a),r}},Ee=class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},De=class{visit(e,t,r){if(!t)return;let i={};e.copyFromAttribute(t,`id`,i,`id`,n.f);let a=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,i,`personId`,n.f),e.copyFromAttribute(t,`parentId`,i,`parentId`,n.f),e.copyFromAttribute(t,`dT`,i),t.hasAttribute(`done`)&&(i.done=n.r(t.getAttribute(`done`)));let o={r:a,v:i};return r.push(o),i}},Oe=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.f),e.copyFromAttribute(r,`displayName`,t),e.copyFromAttribute(r,`userId`,t,`userId`,n.f),e.copyFromAttribute(r,`providerId`,t),i.push(t)}}return i.length>0&&(r.persons=i),i}},ke=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 ee),this.registerVisitor(`cp:coreProperties`,new te),this.registerVisitor(`Properties`,new ne),this.registerVisitor(`spPr`,new I),this.registerVisitor(`txBody`,new W),this.registerVisitor(`txPr`,new W),this.registerVisitor(`c:chartSpace`,new re),this.registerVisitor(`c:plotArea`,new F),this.registerVisitor(`c:barChart`,new L),this.registerVisitor(`c:doughnutChart`,new R),this.registerVisitor(`c:lineChart`,new R),this.registerVisitor(`c:ofPieType`,new R),this.registerVisitor(`c:pieChart`,new R),this.registerVisitor(`c:scatterChart`,new R),this.registerVisitor(`c:barChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:doughnutChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:lineChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:ofPieType`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:pieChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:scatterChart`,new z(`dataLabels`),`dLbls`),this.registerVisitor(`c:ser`,new B),this.registerVisitor(`c:dPt`,new V),this.registerVisitor(`c:marker`,new H),this.registerVisitor(`c:catAx`,new U),this.registerVisitor(`c:valAx`,new U),this.registerVisitor(`c:dateAx`,new U),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 W(`labels.text`),`txPr`),this.registerVisitor(`c:valAx`,new W(`labels.text`),`txPr`),this.registerVisitor(`c:dateAx`,new W(`labels.text`),`txPr`),this.registerVisitor(`c:legend`,new K),this.registerVisitor(`c:legend`,new W(`labels.text`),`txPr`),this.registerVisitor(`c:legendEntry`,new G),this.registerVisitor(`c:ser`,new q,`extLst/ext/invertSolidFillFmt/spPr`),this.registerVisitor(`c:ser`,new z(`labels`),`dLbls`),this.registerVisitor(`c:dLbl`,new z(`points`)),this.registerVisitor(`c:title`,new J),this.registerVisitor(`c:title`,null,`tx/rich`),this.registerVisitor(`c:title`,null,`txPr`),this.registerVisitor(`c:layout`,new Y),this.registerVisitor(`c:dispUnits`,new b(`dispUnits`)),this.registerVisitor(`c:dispUnitsLbl`,new J(`displayUnitsLabel`)),this.registerVisitor(`c:dispUnitsLbl`,new W,`tx/rich`),this.registerVisitor(`a:theme`,new X),this.registerVisitor(`a:theme`,new ie,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new ae,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new oe,`themeElements/fmtScheme`),this.registerVisitor(`autoFilter`,new ce),this.registerVisitor(`sortState`,new le),this.registerVisitor(`s:workbook`,new ue),this.registerVisitor(`styleSheet`,new Z),this.registerVisitor(`x14:table`,new fe),this.registerVisitor(`table`,new de),this.registerVisitor(`externalLink`,new pe),this.registerVisitor(`hlinkClick`,new se),this.registerVisitor(`wsDr`,new ge),this.registerVisitor(`twoCellAnchor`,new Q),this.registerVisitor(`oneCellAnchor`,new Q),this.registerVisitor(`absoluteAnchor`,new Q),this.registerVisitor(`graphicFrame`,new _e),this.registerVisitor(`sp`,new ve),this.registerVisitor(`grpSp`,new be),this.registerVisitor(`cxnSp`,new $),this.registerVisitor(`pic`,new ye),this.registerVisitor(`metadata`,new xe),this.registerVisitor(`rvStructures`,new Se),this.registerVisitor(`rvData`,new Ce),this.registerVisitor(`comments`,new we),this.registerVisitor(`comment`,new Te),this.registerVisitor(`comment`,new W(`content`),`text`),this.registerVisitor(`ThreadedComments`,new Ee),this.registerVisitor(`threadedComment`,new De),this.registerVisitor(`threadedComment`,new W(`content`),`text`),this.registerVisitor(`personList`,new Oe),this.registerVisitor(`slicerCacheDefinition`,new me),this.registerVisitor(`slicers`,new he)}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 ke(n,t))}parseDxf(e,t=``){this.visitorParamsState||=new Map;let n=this.visitorParamsState,r=n.get(`processingDXFs`);n.set(`processingDXFs`,!0);try{let n=new u(null,this,`/dxf`,e,{},t),r={};return new Z().processDXF(n,e,r),r}finally{r===void 0?n.delete(`processingDXFs`):n.set(`processingDXFs`,r)}}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){console.warn(`Error in afterVisit: ${t.context.getPath()}`,e)}}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{console.warn(`"Invalid path '${c.path}' for '${e}'.`)}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.t}}),Object.defineProperty(exports,"VisitorUtils",{enumerable:!0,get:function(){return d}});
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./D3YH3tTndeltJsh5.cjs");exports.IOPlugin=e.t,exports.XLSX_FORMAT_KEY=e.n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./DV6LeTEiiFUrZoxj.cjs");exports.IOPlugin=e.t,exports.XLSX_FORMAT_KEY=e.n;
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import "./BcnofzmeeuCVzr_M.mjs";
8
- import { D as e, E as t, F as n, H as r, I as i, K as a, L as o, M as s, N as c, O as l, P as u, U as d, _ as f, a as p, b as m, f as h, g, h as _, i as v, k as y, l as b, n as x, s as S, u as ee, w as C, z as w } from "./D8qZcXzj_fdusd0Y.mjs";
7
+ import "./CJknI8BYGSZr-4zS.mjs";
8
+ import { D as e, E as t, F as n, H as r, I as i, K as a, L as o, M as s, N as c, O as l, P as u, U as d, _ as f, a as p, b as m, f as h, g, h as _, i as v, k as y, l as b, n as x, s as S, u as ee, w as C, z as w } from "./Dj7D2nVdAZ3TiUks.mjs";
9
9
  import { AddressUtils as T, BufferUtils as E, Color as te, CommonUtils as D, CoordUtils as O, FormulaError as ne, IColor as k, ICondition as A, IConditionalFormat as j, IEffect as M, IFill as N, ISheet as P, IStroke as F, IStyle as I, ITextFrame as L, LicenseManager as re, NumberFormat as R, ScalarType as z } from "@sheetxl/sdk";
10
10
  var B = class {
11
11
  constructor(e) {
@@ -463,7 +463,7 @@ var je = class {
463
463
  continue;
464
464
  }
465
465
  let t = ue((a ? a + "/" : "") + o.target);
466
- n.has(t) || this._explicitRelTargets.has(`${e}::${t}`) || (r.has(t) ? i.add(o.type, o.target) : console.warn(`Dropping preserved relationship to missing part '${t}'`, e || "(root)"));
466
+ n.has(t) || this._explicitRelTargets.has(`${e}::${t}`) || (r.has(t) ? i.add(o.type, o.target) : this._registry.ownsRelType(o.type) || console.warn(`Dropping preserved relationship to missing part '${t}'`, e || "(root)"));
467
467
  }
468
468
  }
469
469
  addPart(e, t, n) {
@@ -620,6 +620,10 @@ var je = class {
620
620
  has(e) {
621
621
  return this.map.has(e);
622
622
  }
623
+ ownsRelType(e) {
624
+ for (let t of this.map.values()) if (t.relTypeUri === e) return !0;
625
+ return !1;
626
+ }
623
627
  };
624
628
  function Pe(e, t, n) {
625
629
  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));
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { t as e } from "./C3sYFBc7Tym8l12A.mjs";
7
+ import { t as e } from "./Dz1Dp8DDJvhd09RR.mjs";
8
8
  var t, n;
9
9
  function r(e, t) {
10
10
  if (t < 0 || t + 1 >= e.length) throw RangeError(`toUInt16LE: Offset ${t} is out of bounds for buffer length ${e.length}. Needed 2 bytes.`);
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { n as e } from "./saBnxecsRUpY6fGv.mjs";
7
+ import { n as e } from "./ijQzHH-bvDfUHIi1.mjs";
8
8
  import { CommonUtils as t } from "@sheetxl/utils";
9
9
  import { IColor as n } from "@sheetxl/sdk";
10
10
  var r = (e, t, n, r = null) => {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -13,7 +13,7 @@ var e = [
13
13
  177,
14
14
  26,
15
15
  225
16
- ], t = async () => (await import("./BhohPLTubb_9rfrh.mjs")).OffCryptoEncryption, n = {
16
+ ], t = async () => (await import("./CLWzJJyoSrykkVLX.mjs")).OffCryptoEncryption, n = {
17
17
  key: "offcrypto",
18
18
  description: "Office Document Encryption",
19
19
  detect: async (n) => !!((t) => {
@@ -33,16 +33,16 @@ var e = [
33
33
  "xls",
34
34
  "xlsm"
35
35
  ],
36
- handler: async (e, t) => (await import("./DLEtaZiz_1cZH0dA.mjs")).readXLSX(e, t)
36
+ handler: async (e, t) => (await import("./D-m_kQLaewdwuXaF.mjs")).readXLSX(e, t)
37
37
  }, a = {
38
38
  key: r,
39
39
  mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
40
40
  description: "Excel Workbook",
41
41
  exts: ["xlsx"],
42
- handler: async (e, t) => (await import("./DlBlJGlFQJrKovwJ.mjs")).writeXLSX(e, t)
42
+ handler: async (e, t) => (await import("./4BWLu134ABlCQEtM.mjs")).writeXLSX(e, t)
43
43
  }, o = {
44
44
  name: "@sheetxl/io-xlsx",
45
- version: "0.7.28-beta.4",
45
+ version: "0.8.0-beta.1",
46
46
  description: "XLSX I/O formats for SheetXL",
47
47
  author: "SheetXL",
48
48
  async register(e) {
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { t as e } from "./C3sYFBc7Tym8l12A.mjs";
7
+ import { t as e } from "./Dz1Dp8DDJvhd09RR.mjs";
8
8
  import { InvalidPasswordError as t } from "@sheetxl/utils";
9
9
  var n, r, i = class e {
10
10
  static {
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { n as e } from "./saBnxecsRUpY6fGv.mjs";
8
- import { o as t } from "./D8qZcXzj_fdusd0Y.mjs";
9
- import { a as n, d as r, f as i, i as a, n as o, o as s, p as c, r as l, t as u } from "./C7R1lFA0iv-1bZ9i.mjs";
7
+ import { n as e } from "./ijQzHH-bvDfUHIi1.mjs";
8
+ import { o as t } from "./Dj7D2nVdAZ3TiUks.mjs";
9
+ import { a as n, d as r, f as i, i as a, n as o, o as s, p as c, r as l, t as u } from "./BzQ_lPzc8C4OTIGZ.mjs";
10
10
  import { CommonUtils as d } from "@sheetxl/utils";
11
11
  import { AddressUtils as f, FormulaError as p, IBorder as m, ICondition as h, IEffect as g, IFill as _, IFont as v, IRange as y, IStyle as b, ITextFrame as x, Sort as S, Tuple as ee } from "@sheetxl/sdk";
12
12
  var te = class {
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { t as e } from "./saBnxecsRUpY6fGv.mjs";
7
+ import { t as e } from "./ijQzHH-bvDfUHIi1.mjs";
8
8
  var t = e((e) => {
9
9
  function t(e, t) {
10
10
  return t === void 0 && (t = Object), t && typeof t.getOwnPropertyDescriptors == "function" && (e = t.create(null, t.getOwnPropertyDescriptors(e))), t && typeof t.freeze == "function" ? t.freeze(e) : e;
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { r as e } from "./saBnxecsRUpY6fGv.mjs";
8
- import { A as t, B as n, C as r, F as i, G as a, H as o, I as s, L as c, P as l, R as u, S as d, T as f, U as p, V as m, W as h, c as g, d as _, j as v, m as y, o as ee, p as b, q as te, r as ne, t as re, v as ie, x as ae, y as oe, z as se } from "./D8qZcXzj_fdusd0Y.mjs";
9
- import { c as ce, d as x, f as S, l as C, p as le, r as ue, s as de, u as w } from "./C7R1lFA0iv-1bZ9i.mjs";
7
+ import { r as e } from "./ijQzHH-bvDfUHIi1.mjs";
8
+ import { A as t, B as n, C as r, F as i, G as a, H as o, I as s, L as c, P as l, R as u, S as d, T as f, U as p, V as m, W as h, c as g, d as _, j as v, m as y, o as ee, p as b, q as te, r as ne, t as re, v as ie, x as ae, y as oe, z as se } from "./Dj7D2nVdAZ3TiUks.mjs";
9
+ import { c as ce, d as x, f as S, l as C, p as le, r as ue, s as de, u as w } from "./BzQ_lPzc8C4OTIGZ.mjs";
10
10
  import { BufferUtils as T, CommonUtils as E, ExpectedError as D } from "@sheetxl/utils";
11
11
  import { AddressUtils as O, CommonUtils as fe, CoordUtils as k, FormulaError as A, ICondition as j, IConditionalFormat as M, IRange as pe, OutOfBoundsError as N, ResourceCollection as me, Theme as he, Tuple as ge, Workbook as _e } from "@sheetxl/sdk";
12
12
  var ve = /* @__PURE__ */ new Uint8Array(), ye = class e {
@@ -1441,7 +1441,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1441
1441
  P += e;
1442
1442
  let t = Math.min(xe, Math.round(P / Se * xe));
1443
1443
  ve(t, xe);
1444
- } : void 0, I = import("./CV_L3E5OoPstI9lx.mjs"), Ce = null;
1444
+ } : void 0, I = import("./Cok_fBIUCHDSrKw0.mjs"), Ce = null;
1445
1445
  try {
1446
1446
  Ce = new DOMParser();
1447
1447
  } catch {}
@@ -1450,7 +1450,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1450
1450
  we = new XMLSerializer();
1451
1451
  } catch {}
1452
1452
  let L, R, Te, Ee = null;
1453
- Ce || (Ee = import("./BXCOn1XvLvYSfpzi.mjs").then((t) => e(t.default, 1)));
1453
+ Ce || (Ee = import("./Ctqql4O-3xj2K8vv.mjs").then((t) => e(t.default, 1)));
1454
1454
  try {
1455
1455
  let [e, t] = await Promise.all([Ee, I]);
1456
1456
  L = new t.DOMTransformer(), R = Ce ?? new e.DOMParser(), Te = we ?? new e.XMLSerializer();
@@ -2559,7 +2559,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2559
2559
  if (Me.length > 0 && (Ue.strings = Me), V && V.length > 0 && (Ue.people = V), l) {
2560
2560
  let e = z.getEntry("xl/vbaProject.bin");
2561
2561
  if (e) try {
2562
- let { VBAProject: t } = await import("./BknJ4AeVeFJploh9.mjs"), n = t.extract(e);
2562
+ let { VBAProject: t } = await import("./BkNXyG6NC-w5Xo92.mjs"), n = t.extract(e);
2563
2563
  n ? (l?.(n), Ue.vba = n) : A.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
2564
2564
  } catch (e) {
2565
2565
  A.push([`Error extracting VBA: ${e?.message ?? e}`, "xl/vbaProject.bin"]);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -3044,7 +3044,6 @@ var Y = "_xlfn.", ra = "_xlfn._xlws.", ia = /* @__PURE__ */ new Map([
3044
3044
  }],
3045
3045
  ["MATCH", {
3046
3046
  slotNever: [2],
3047
- slotAlways: [0],
3048
3047
  scopeClears: [1]
3049
3048
  }],
3050
3049
  ["NETWORKDAYS.INTL", {
@@ -3079,10 +3078,7 @@ var Y = "_xlfn.", ra = "_xlfn._xlws.", ia = /* @__PURE__ */ new Map([
3079
3078
  slotNever: [0, 1],
3080
3079
  arrayScope: "consumer"
3081
3080
  }],
3082
- ["XMATCH", {
3083
- prefix: Y,
3084
- slotAlways: [0]
3085
- }],
3081
+ ["XMATCH", { prefix: Y }],
3086
3082
  ["CELL", {
3087
3083
  arrayReturn: !0,
3088
3084
  arrayScope: "consumer",
@@ -3124,7 +3120,6 @@ var Y = "_xlfn.", ra = "_xlfn._xlws.", ia = /* @__PURE__ */ new Map([
3124
3120
  ["XLOOKUP", {
3125
3121
  prefix: Y,
3126
3122
  slotNever: [3],
3127
- slotAlways: [0],
3128
3123
  arrayScope: "opens",
3129
3124
  scopeClears: [0]
3130
3125
  }],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.