zen-gitsync 2.16.43 → 2.16.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ui/public/assets/AgentView-BsN9y4Kg.css +1 -0
- package/src/ui/public/assets/AgentView-Cv9VaSKN.js +4 -0
- package/src/ui/public/assets/AppVersionBadge-BdqGOtBK.js +2 -0
- package/src/ui/public/assets/AppVersionBadge-Dj6H729N.css +1 -0
- package/src/ui/public/assets/BranchSelector-BXJDzZ3f.js +1 -0
- package/src/ui/public/assets/BranchSelector-T_rJm-JY.css +1 -0
- package/src/ui/public/assets/CommitForm-CUvl0VcF.css +1 -0
- package/src/ui/public/assets/CommitForm-DSddCPcu.js +6 -0
- package/src/ui/public/assets/EditorView-BgA-_8WV.css +1 -0
- package/src/ui/public/assets/EditorView-et7aqhjC.js +1 -0
- package/src/ui/public/assets/FlowExecutionViewer-AWaR_biA.js +1 -0
- package/src/ui/public/assets/FlowExecutionViewer-B5kh7VxS.css +1 -0
- package/src/ui/public/assets/FlowOrchestrationWorkspace-BAQDU9Jd.css +1 -0
- package/src/ui/public/assets/FlowOrchestrationWorkspace-RC5DaY3c.js +21 -0
- package/src/ui/public/assets/LogList-puKBzBb8.js +7 -0
- package/src/ui/public/assets/LogList-r8sgFBhZ.css +1 -0
- package/src/ui/public/assets/MindmapView-BcLn10w2.js +1 -0
- package/src/ui/public/assets/MindmapView-CS2t30Ko.css +1 -0
- package/src/ui/public/assets/MonitorView-ChZk7T1l.js +1 -0
- package/src/ui/public/assets/MonitorView-DxFogQIt.css +1 -0
- package/src/ui/public/assets/ProjectStartupButton-B7zvqRj_.css +1 -0
- package/src/ui/public/assets/ProjectStartupButton-BFXo6CRz.js +1 -0
- package/src/ui/public/assets/RemoteRepoCard-DyCD9GBp.js +1 -0
- package/src/ui/public/assets/RemoteRepoCard-d0klonVb.css +1 -0
- package/src/ui/public/assets/SourceMapView-DEgfJ4jb.js +3 -0
- package/src/ui/public/assets/SourceMapView-DG_a_076.css +1 -0
- package/src/ui/public/assets/UserInputNode-D5yO5I4U.js +1 -0
- package/src/ui/public/assets/UserInputNode-DDtvv9Iq.css +1 -0
- package/src/ui/public/assets/WorkbenchView-B1yeYHWg.js +12 -0
- package/src/ui/public/assets/{WorkbenchView-Bp2YaSGS.css → WorkbenchView-CcYljxjT.css} +1 -1
- package/src/ui/public/assets/element-plus-CXfbWXaJ.css +1 -0
- package/src/ui/public/assets/element-plus-utMlO-GC.js +27 -0
- package/src/ui/public/assets/{flow-mindmap-Bi227PSm.js → flow-mindmap-CatiJi_w.js} +12 -12
- package/src/ui/public/assets/index-B15iIgdD.css +1 -0
- package/src/ui/public/assets/index-C2HMPXsP.js +62 -0
- package/src/ui/public/assets/{monaco-43aputPh.js → monaco-DPQ3OaiL.js} +2 -2
- package/src/ui/public/assets/office-docx-CUC3NjrQ.js +31 -0
- package/src/ui/public/assets/{office-excel-DxreApmb.js → office-excel-BGq5miA9.js} +2 -2
- package/src/ui/public/assets/office-pptx-CNefnIUm.js +60 -0
- package/src/ui/public/assets/socket-io-ObqgZMoP.js +1 -0
- package/src/ui/public/assets/{ts.worker-Dth06zuC.js → ts.worker-METxwbDZ.js} +1 -16
- package/src/ui/public/assets/{vendor-I3yQCqJK.js → vendor-C_cx2RSh.js} +39 -46
- package/src/ui/public/assets/vue-flow-CBbapQM_.js +39 -0
- package/src/ui/public/index.html +9 -16
- package/src/ui/server/index.js +1 -0
- package/src/ui/server/routes/fs.js +4 -0
- package/src/ui/server/routes/gitOps.js +20 -23
- package/src/ui/server/routes/gitRepoFlagSync.test.js +129 -0
- package/src/ui/server/routes/workbench/agentSessionStore.js +173 -173
- package/src/ui/server/utils/instanceRegistry.js +45 -7
- package/src/ui/server/utils/instanceRegistry.test.js +58 -0
- package/src/utils/index.js +14 -47
- package/src/ui/public/assets/AgentView-8-xsOmE6.css +0 -1
- package/src/ui/public/assets/AgentView-CVfH_WTL.js +0 -4
- package/src/ui/public/assets/AppVersionBadge-BKQZrA46.js +0 -2
- package/src/ui/public/assets/AppVersionBadge-CS7Trvp-.css +0 -1
- package/src/ui/public/assets/BranchSelector-B0eLkAdv.css +0 -1
- package/src/ui/public/assets/BranchSelector-BrmzYPb2.js +0 -1
- package/src/ui/public/assets/CommitForm-CSAwdqxy.js +0 -6
- package/src/ui/public/assets/CommitForm-DdK8dymc.css +0 -1
- package/src/ui/public/assets/CommonDialog-ChSKsEz2.css +0 -1
- package/src/ui/public/assets/CommonDialog-Clc3mo5h.js +0 -1
- package/src/ui/public/assets/EditorView-B05M4l8X.js +0 -1
- package/src/ui/public/assets/EditorView-DZMLvQds.css +0 -1
- package/src/ui/public/assets/FlowExecutionViewer-Du0JPzV8.js +0 -1
- package/src/ui/public/assets/FlowExecutionViewer-jNHI5zdm.css +0 -1
- package/src/ui/public/assets/FlowOrchestrationWorkspace-CYGp-PqS.css +0 -1
- package/src/ui/public/assets/FlowOrchestrationWorkspace-Kg7HaggD.js +0 -21
- package/src/ui/public/assets/LogList-BlJplIi1.css +0 -1
- package/src/ui/public/assets/LogList-DSl8gjqq.js +0 -7
- package/src/ui/public/assets/MindmapView-BQTqx842.css +0 -1
- package/src/ui/public/assets/MindmapView-KeS9uPEF.js +0 -2
- package/src/ui/public/assets/MonitorView-BYqPPmpL.js +0 -1
- package/src/ui/public/assets/MonitorView-TaS4kL0Y.css +0 -1
- package/src/ui/public/assets/ProjectStartupButton-COEXIVyh.js +0 -1
- package/src/ui/public/assets/ProjectStartupButton-QLPltCK5.css +0 -1
- package/src/ui/public/assets/RemoteRepoCard-BRGNlbeO.css +0 -1
- package/src/ui/public/assets/RemoteRepoCard-Cqyksiy4.js +0 -5
- package/src/ui/public/assets/SourceMapView-BNRjvgzH.css +0 -1
- package/src/ui/public/assets/SourceMapView-DhqMQTQD.js +0 -3
- package/src/ui/public/assets/SvgIcon-CDNsk4-Q.css +0 -1
- package/src/ui/public/assets/SvgIcon-DLr4V32f.js +0 -1
- package/src/ui/public/assets/UserInputNode-BVgQkB2l.css +0 -1
- package/src/ui/public/assets/UserInputNode-Do__vhj9.js +0 -1
- package/src/ui/public/assets/WorkbenchView-Dk5OlqZz.js +0 -28
- package/src/ui/public/assets/_plugin-vue_export-helper-CMAHJXhc.js +0 -17
- package/src/ui/public/assets/configStore-D666qKi0.js +0 -1
- package/src/ui/public/assets/element-plus-D3Dn7nX0.css +0 -1
- package/src/ui/public/assets/element-plus-DXuL5yWp.js +0 -39
- package/src/ui/public/assets/index-BT90zGWp.js +0 -89
- package/src/ui/public/assets/index-RKGE_YSG.css +0 -1
- package/src/ui/public/assets/office-docx-ZOPof2Jf.js +0 -32
- package/src/ui/public/assets/office-pptx-CR0bf9zY.js +0 -74
- package/src/ui/public/assets/socket-io-BZIzo1US.js +0 -1
- package/src/ui/public/assets/toolsStore-DsvD8S_8.js +0 -1
- package/src/ui/public/assets/vue-flow-DV5FYL9P.js +0 -39
- /package/src/ui/public/assets/{dagre-97WoLjFt.js → dagre-BCXBo6I9.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-BM3Ffeng.js";import{n as t,r as n}from"./office-docx-
|
|
1
|
+
import{t as e}from"./rolldown-runtime-BM3Ffeng.js";import{n as t,r as n}from"./office-docx-CUC3NjrQ.js";var r=e(((e,r)=>{(function(i,a){typeof e==`object`&&r!==void 0?r.exports=a(t(),n()):typeof define==`function`&&define.amd?define([`vue-demi`,`vue`],a):(i=typeof globalThis<`u`?globalThis:i||self)[`vue-office-excel`]=a(i.VueDemi,i.Vue)})(e,(function(e,t){function n(e){return(n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e})(e)}function r(e){var t=function(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}(e,`string`);return n(t)==`symbol`?t:t+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){if(Array.isArray(e))return e}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function c(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(e,t){return a(e)||function(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||s(e,t)||c()}function u(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,`value`in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function p(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function m(e){return a(e)||p(e)||s(e)||c()}var h=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;u(this,e),typeof t==`string`?(this.el=document.createElement(t),this.el.className=n):this.el=t,this.data={}}return f(e,[{key:`data`,value:function(e,t){return t===void 0?this.data[e]:(this.data[e]=t,this)}},{key:`on`,value:function(e,t){var n=m(e.split(`.`)),r=n[0],i=n.slice(1),a=r;return a===`mousewheel`&&/Firefox/i.test(window.navigator.userAgent)&&(a=`DOMMouseScroll`),this.el.addEventListener(a,(function(e){t(e);for(var n=0;n<i.length;n+=1){var r=i[n];if(r===`left`&&e.button!==0||r===`right`&&e.button!==2)return;r===`stop`&&e.stopPropagation()}})),this}},{key:`offset`,value:function(e){var t=this;if(e!==void 0)return Object.keys(e).forEach((function(n){t.css(n,`${e[n]}px`)})),this;var n=this.el;return{top:n.offsetTop,left:n.offsetLeft,height:n.offsetHeight,width:n.offsetWidth}}},{key:`scroll`,value:function(e){var t=this.el;return e!==void 0&&(e.left!==void 0&&(t.scrollLeft=e.left),e.top!==void 0&&(t.scrollTop=e.top)),{left:t.scrollLeft,top:t.scrollTop}}},{key:`box`,value:function(){return this.el.getBoundingClientRect()}},{key:`parent`,value:function(){return new e(this.el.parentNode)}},{key:`children`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return arguments.length===0?this.el.childNodes:(n.forEach((function(t){return e.child(t)})),this)}},{key:`removeChild`,value:function(e){this.el.removeChild(e)}},{key:`child`,value:function(t){var n=t;return typeof t==`string`?n=document.createTextNode(t):t instanceof e&&(n=t.el),this.el.appendChild(n),this}},{key:`contains`,value:function(e){return this.el.contains(e)}},{key:`className`,value:function(e){return e===void 0?this.el.className:(this.el.className=e,this)}},{key:`addClass`,value:function(e){return this.el.classList.add(e),this}},{key:`hasClass`,value:function(e){return this.el.classList.contains(e)}},{key:`removeClass`,value:function(e){return this.el.classList.remove(e),this}},{key:`toggle`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`active`;return this.toggleClass(e)}},{key:`toggleClass`,value:function(e){return this.el.classList.toggle(e)}},{key:`active`,value:function(){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`active`;return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass(e):this.removeClass(e),this}},{key:`checked`,value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.active(e,`checked`),this}},{key:`disabled`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass(`disabled`):this.removeClass(`disabled`),this}},{key:`attr`,value:function(e,t){var n=this;if(t!==void 0)this.el.setAttribute(e,t);else{if(typeof e==`string`)return this.el.getAttribute(e);Object.keys(e).forEach((function(t){n.el.setAttribute(t,e[t])}))}return this}},{key:`removeAttr`,value:function(e){return this.el.removeAttribute(e),this}},{key:`html`,value:function(e){return e===void 0?this.el.innerHTML:(this.el.innerHTML=e,this)}},{key:`val`,value:function(e){return e===void 0?this.el.value:(this.el.value=e,this)}},{key:`focus`,value:function(){this.el.focus()}},{key:`cssRemoveKeys`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){return e.el.style.removeProperty(t)})),this}},{key:`css`,value:function(e,t){var n=this;return t===void 0&&typeof e!=`string`?(Object.keys(e).forEach((function(t){n.el.style[t]=e[t]})),this):t===void 0?this.el.style[e]:(this.el.style[e]=t,this)}},{key:`computedStyle`,value:function(){return window.getComputedStyle(this.el,null)}},{key:`show`,value:function(){return this.css(`display`,`block`),this}},{key:`hide`,value:function(){return this.css(`display`,`none`),this}}])}(),g=function(e){return new h(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:``)};function _(e){return function(e){if(Array.isArray(e))return o(e)}(e)||p(e)||s(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var v=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``);function y(e){for(var t=``,n=e;n>=v.length;)n/=v.length,--n,t+=v[parseInt(n,10)%v.length];return t+=v[e%v.length]}function b(e){for(var t=0,n=0;n!==e.length;++n)t=26*t+e.charCodeAt(n)-64;return t-1}function x(e){for(var t=``,n=``,r=0;r<e.length;r+=1)e.charAt(r)>=`0`&&e.charAt(r)<=`9`?n+=e.charAt(r):t+=e.charAt(r);return[b(t),parseInt(n,10)-1]}function S(e,t){return`${y(e)}${t+1}`}function C(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(t===0&&n===0)return e;var i=l(x(e),2),a=i[0],o=i[1];return r(a,o)?S(a+t,o+n):e}var w=function(){function e(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;u(this,e),this.sri=t,this.sci=n,this.eri=r,this.eci=i,this.w=a,this.h=o}return f(e,[{key:`set`,value:function(e,t,n,r){this.sri=e,this.sci=t,this.eri=n,this.eci=r}},{key:`multiple`,value:function(){return this.eri-this.sri>0||this.eci-this.sci>0}},{key:`includes`,value:function(){for(var e=0,t=0,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];if(r.length===1){var a=l(x(r[0]),2);t=a[0],e=a[1]}else r.length===2&&(e=r[0],t=r[1]);var o=this.sri,s=this.sci,c=this.eri,u=this.eci;return o<=e&&e<=c&&s<=t&&t<=u}},{key:`each`,value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},n=this.sri,r=this.sci,i=this.eri,a=this.eci,o=n;o<=i;o+=1)if(t(o))for(var s=r;s<=a;s+=1)e(o,s)}},{key:`contains`,value:function(e){return this.sri<=e.sri&&this.sci<=e.sci&&this.eri>=e.eri&&this.eci>=e.eci}},{key:`within`,value:function(e){return this.sri>=e.sri&&this.sci>=e.sci&&this.eri<=e.eri&&this.eci<=e.eci}},{key:`disjoint`,value:function(e){return this.sri>e.eri||this.sci>e.eci||e.sri>this.eri||e.sci>this.eci}},{key:`intersects`,value:function(e){return this.sri<=e.eri&&this.sci<=e.eci&&e.sri<=this.eri&&e.sci<=this.eci}},{key:`union`,value:function(t){var n=this.sri,r=this.sci,i=this.eri,a=this.eci;return new e(t.sri<n?t.sri:n,t.sci<r?t.sci:r,t.eri>i?t.eri:i,t.eci>a?t.eci:a)}},{key:`difference`,value:function(t){var n=[],r=function(t,r,i,a){n.push(new e(t,r,i,a))},i=this.sri,a=this.sci,o=this.eri,s=this.eci,c=t.sri-i,l=t.sci-a,u=o-t.eri,d=s-t.eci;return c>0?(r(i,a,t.sri-1,s),u>0?(r(t.eri+1,a,o,s),l>0&&r(t.sri,a,t.eri,t.sci-1),d>0&&r(t.sri,t.eci+1,t.eri,s)):(l>0&&r(t.sri,a,o,t.sci-1),d>0&&r(t.sri,t.eci+1,o,s))):u>0&&(r(t.eri+1,a,o,s),l>0&&r(i,a,t.eri,t.sci-1),d>0&&r(i,t.eci+1,t.eri,s)),l>0?(r(i,a,o,t.sci-1),d>0?(r(i,t.eri+1,o,s),c>0&&r(i,t.sci,t.sri-1,t.eci),u>0&&r(t.sri+1,t.sci,o,t.eci)):(c>0&&r(i,t.sci,t.sri-1,s),u>0&&r(t.sri+1,t.sci,o,s))):d>0&&(r(o,t.eci+1,o,s),c>0&&r(i,a,t.sri-1,t.eci),u>0&&r(t.eri+1,a,o,t.eci)),n}},{key:`size`,value:function(){return[this.eri-this.sri+1,this.eci-this.sci+1]}},{key:`toString`,value:function(){var e=this.sri,t=this.sci,n=this.eri,r=this.eci,i=S(t,e);return this.multiple()&&(i=`${i}:${S(r,n)}`),i}},{key:`clone`,value:function(){return new e(this.sri,this.sci,this.eri,this.eci,this.w,this.h)}},{key:`equals`,value:function(e){return this.eri===e.eri&&this.eci===e.eci&&this.sri===e.sri&&this.sci===e.sci}}],[{key:`valueOf`,value:function(t){var n=t.split(`:`),r=l(x(n[0]),2),i=r[0],a=r[1],o=a,s=i;if(n.length>1){var c=l(x(n[1]),2);s=c[0],o=c[1]}return new e(a,i,o,s)}}])}(),T=function(){return f((function e(){u(this,e),this.range=new w(0,0,0,0),this.ri=0,this.ci=0}),[{key:`multiple`,value:function(){return this.range.multiple()}},{key:`setIndexes`,value:function(e,t){this.ri=e,this.ci=t}},{key:`size`,value:function(){return this.range.size()}}])}(),E=f((function e(){u(this,e),this.x=0,this.y=0,this.ri=0,this.ci=0})),D=function(){return f((function e(){u(this,e),this.undoItems=[],this.redoItems=[]}),[{key:`add`,value:function(e){this.undoItems.push(JSON.stringify(e)),this.redoItems=[]}},{key:`canUndo`,value:function(){return this.undoItems.length>0}},{key:`canRedo`,value:function(){return this.redoItems.length>0}},{key:`undo`,value:function(e,t){var n=this.undoItems,r=this.redoItems;this.canUndo()&&(r.push(JSON.stringify(e)),t(JSON.parse(n.pop())))}},{key:`redo`,value:function(e,t){var n=this.undoItems,r=this.redoItems;this.canRedo()&&(n.push(JSON.stringify(e)),t(JSON.parse(r.pop())))}}])}(),O=function(){return f((function e(){u(this,e),this.range=null,this.state=`clear`}),[{key:`copy`,value:function(e){return this.range=e,this.state=`copy`,this}},{key:`cut`,value:function(e){return this.range=e,this.state=`cut`,this}},{key:`isCopy`,value:function(){return this.state===`copy`}},{key:`isCut`,value:function(){return this.state===`cut`}},{key:`isClear`,value:function(){return this.state===`clear`}},{key:`clear`,value:function(){this.range=null,this.state=`clear`}}])}(),k=function(){return f((function e(t,n,r){u(this,e),this.ci=t,this.operator=n,this.value=r}),[{key:`set`,value:function(e,t){this.operator=e,this.value=t}},{key:`includes`,value:function(e){var t=this.operator,n=this.value;return t===`all`||t===`in`&&n.includes(e)}},{key:`vlength`,value:function(){var e=this.operator,t=this.value;return e===`in`?t.length:0}},{key:`getData`,value:function(){return{ci:this.ci,operator:this.operator,value:this.value}}}])}(),A=function(){return f((function e(t,n){u(this,e),this.ci=t,this.order=n}),[{key:`asc`,value:function(){return this.order===`asc`}},{key:`desc`,value:function(){return this.order===`desc`}}])}(),j=function(){return f((function e(){u(this,e),this.ref=null,this.filters=[],this.sort=null}),[{key:`setData`,value:function(e){var t=e.ref,n=e.filters,r=e.sort;t!=null&&(this.ref=t,this.filters=n.map((function(e){return new k(e.ci,e.operator,e.value)})),r&&(this.sort=new A(r.ci,r.order)))}},{key:`getData`,value:function(){if(this.active()){var e=this.ref,t=this.filters,n=this.sort;return{ref:e,filters:t.map((function(e){return e.getData()})),sort:n}}return{}}},{key:`addFilter`,value:function(e,t,n){var r=this.getFilter(e);r==null?this.filters.push(new k(e,t,n)):r.set(t,n)}},{key:`setSort`,value:function(e,t){this.sort=t?new A(e,t):null}},{key:`includes`,value:function(e,t){return!!this.active()&&this.hrange().includes(e,t)}},{key:`getSort`,value:function(e){var t=this.sort;return t&&t.ci===e?t:null}},{key:`getFilter`,value:function(e){for(var t=this.filters,n=0;n<t.length;n+=1)if(t[n].ci===e)return t[n];return null}},{key:`filteredRows`,value:function(e){var t=new Set,n=new Set;if(this.active())for(var r=this.range(),i=r.sri,a=r.eri,o=this.filters,s=i+1;s<=a;s+=1)for(var c=0;c<o.length;c+=1){var l=o[c],u=e(s,l.ci),d=u?u.text:``;if(!l.includes(d)){t.add(s);break}n.add(s)}return{rset:t,fset:n}}},{key:`items`,value:function(e,t){var n={};if(this.active())for(var r=this.range(),i=r.sri,a=r.eri,o=i+1;o<=a;o+=1){var s=t(o,e);if(s===null||/^\s*$/.test(s.text))n[``]=(n[``]||0)+1;else{var c=s.text;n[c]=(n[c]||0)+1}}return n}},{key:`range`,value:function(){return w.valueOf(this.ref)}},{key:`hrange`,value:function(){var e=this.range();return e.eri=e.sri,e}},{key:`clear`,value:function(){this.ref=null,this.filters=[],this.sort=null}},{key:`active`,value:function(){return this.ref!==null}}])}(),M=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u(this,e),this._=t}return f(e,[{key:`forEach`,value:function(e){this._.forEach(e)}},{key:`deleteWithin`,value:function(e){this._=this._.filter((function(t){return!t.within(e)}))}},{key:`getFirstIncludes`,value:function(e,t){for(var n=0;n<this._.length;n+=1){var r=this._[n];if(r.includes(e,t))return r}return null}},{key:`filterIntersects`,value:function(t){return new e(this._.filter((function(e){return e.intersects(t)})))}},{key:`intersects`,value:function(e){for(var t=0;t<this._.length;t+=1)if(this._[t].intersects(e))return!0;return!1}},{key:`union`,value:function(e){var t=e;return this._.forEach((function(e){e.intersects(t)&&(t=e.union(t))})),t}},{key:`add`,value:function(e){this.deleteWithin(e),this._.push(e)}},{key:`shift`,value:function(e,t,n,r){this._.forEach((function(i){var a=i.sri,o=i.sci,s=i.eri,c=i.eci,l=i;e===`row`?a>=t?(l.sri+=n,l.eri+=n):a<t&&t<=s&&(l.eri+=n,r(a,o,n,0)):e===`column`&&(o>=t?(l.sci+=n,l.eci+=n):o<t&&t<=c&&(l.eci+=n,r(a,o,0,n)))}))}},{key:`move`,value:function(e,t,n){this._.forEach((function(r){var i=r;i.within(e)&&(i.eri+=t,i.sri+=t,i.sci+=n,i.eci+=n)}))}},{key:`setData`,value:function(e){return this._=e.map((function(e){return w.valueOf(e)})),this}},{key:`getData`,value:function(){return this._.map((function(e){return e.toString()}))}}])}(),N=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach((function(t){Object.keys(t).forEach((function(n){var r=t[n];typeof r==`string`||typeof r==`number`||typeof r==`boolean`?e[n]=r:typeof r!=`function`&&!Array.isArray(r)&&r instanceof Object?(e[n]=e[n]||{},N(e[n],r)):e[n]=r}))})),e};function P(e){for(var t=`${e}`,n=0,r=!1,i=0;i<t.length;i+=1)!0===r&&(n+=1),t.charAt(i)===`.`&&(r=!0);return n}function F(e,t,n){if(Number.isNaN(t)||Number.isNaN(n))return t+e+n;var r=P(t),i=P(n),a=Number(t),o=Number(n),s=0;if(e===`-`)s=a-o;else if(e===`+`)s=a+o;else if(e===`*`)s=a*o;else if(e===`/`)return P(s=a/o)>5?s.toFixed(2):s;return s.toFixed(Math.max(r,i))}let I={cloneDeep:function(e){return JSON.parse(JSON.stringify(e))},merge:function(){var e=[...arguments];return N.apply(void 0,[{}].concat(e))},equals:function e(t,n){var r=Object.keys(t);if(r.length!==Object.keys(n).length)return!1;for(var i=0;i<r.length;i+=1){var a=r[i],o=t[a],s=n[a];if(s===void 0)return!1;if(typeof o==`string`||typeof o==`number`||typeof o==`boolean`){if(o!==s)return!1}else if(Array.isArray(o)){if(o.length!==s.length)return!1;for(var c=0;c<o.length;c+=1)if(!e(o[c],s[c]))return!1}else if(typeof o!=`function`&&!Array.isArray(o)&&o instanceof Object&&!e(o,s))return!1}return!0},arrayEquals:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0},sum:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(e){return e},n=0,r=0;return Object.keys(e).forEach((function(i){n+=t(e[i],i),r+=1})),[n,r]},rangeEach:function(e,t,n){for(var r=e;r<t;r+=1)n(r)},rangeSum:function(e,t,n){for(var r=0,i=e;i<t;i+=1)r+=n(i);return r},rangeReduceIf:function(e,t,n,r,i,a){for(var o=n,s=r,c=e;c<t&&!(o>i);c+=1)o+=s=a(c);return[c,o-s,s]},deleteProperty:function(e,t){var n=e[`${t}`];return delete e[`${t}`],n},numberCalc:F};var L=function(){return f((function e(t){var n=t.len,r=t.height;u(this,e),this._={},this.len=n,this.height=r}),[{key:`getHeight`,value:function(e){if(this.isHide(e))return 0;var t=this.get(e);return t&&t.height?t.height:this.height}},{key:`setHeight`,value:function(e,t){this.getOrNew(e).height=t}},{key:`unhide`,value:function(e){for(var t=e;t>0&&(--t,this.isHide(t));)this.setHide(t,!1)}},{key:`isHide`,value:function(e){var t=this.get(e);return t&&t.hide}},{key:`setHide`,value:function(e,t){var n=this.getOrNew(e);!0===t?n.hide=!0:delete n.hide}},{key:`setStyle`,value:function(e,t){this.getOrNew(e).style=t}},{key:`sumHeight`,value:function(e,t,n){var r=this;return I.rangeSum(e,t,(function(e){return n&&n.has(e)?0:r.getHeight(e)}))}},{key:`totalHeight`,value:function(){return this.sumHeight(0,this.len)}},{key:`get`,value:function(e){return this._[e]}},{key:`getOrNew`,value:function(e){return this._[e]=this._[e]||{cells:{}},this._[e]}},{key:`getCell`,value:function(e,t){var n=this.get(e);return n!==void 0&&n.cells!==void 0&&n.cells[t]!==void 0?n.cells[t]:null}},{key:`getCellMerge`,value:function(e,t){var n=this.getCell(e,t);return n&&n.merge?n.merge:[0,0]}},{key:`getCellOrNew`,value:function(e,t){var n=this.getOrNew(e);return n.cells[t]=n.cells[t]||{},n.cells[t]}},{key:`setCell`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`all`,i=this.getOrNew(e);r===`all`?i.cells[t]=n:r===`text`?(i.cells[t]=i.cells[t]||{},i.cells[t].text=n.text):r===`format`&&(i.cells[t]=i.cells[t]||{},i.cells[t].style=n.style,n.merge&&(i.cells[t].merge=n.merge))}},{key:`setCellText`,value:function(e,t,n){var r=this.getCellOrNew(e,t);!1!==r.editable&&(r.text=n)}},{key:`copyPaste`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},o=e.sri,s=e.sci,c=e.eri,u=e.eci,d=t.sri,f=t.sci,p=t.eri,m=t.eci,h=l(e.size(),2),g=h[0],_=h[1],v=l(t.size(),2),y=v[0],b=v[1],x=!0,S=0;(p<o||m<s)&&(x=!1,S=p<o?y:b);for(var w=o;w<=c;w+=1)if(this._[w]){for(var T=s;T<=u;T+=1)if(this._[w].cells&&this._[w].cells[T])for(var E=d;E<=p;E+=g)for(var D=function(){var e=E+(w-o),t=O+(T-s),l=I.cloneDeep(r._[w].cells[T]);if(i&&l&&l.text&&l.text.length>0){var h=l.text,v=O-f+(E-d)+2;if(x||(v-=S+1),h[0]===`=`)l.text=h.replace(/[a-zA-Z]{1,3}\d+/g,(function(e){var t=0,n=0;return o===d?t=v-1:n=v-1,/^\d+$/.test(e)?e:C(e,t,n)}));else if(g<=1&&_>1&&(d>c||p<o)||_<=1&&g>1&&(f>u||m<s)||g<=1&&_<=1){var y=/[\\.\d]+$/.exec(h);if(y!==null){var b=Number(y[0])+v-1;l.text=h.substring(0,y.index)+b}}}r.setCell(e,t,l,n),a(e,t,l)},O=f;O<=m;O+=_)D()}}},{key:`cutPaste`,value:function(e,t){var n=this,r={};this.each((function(i){n.eachCells(i,(function(a){var o=parseInt(i,10),s=parseInt(a,10);e.includes(i,a)&&(o=t.sri+(o-e.sri),s=t.sci+(s-e.sci)),r[o]=r[o]||{cells:{}},r[o].cells[s]=n._[i].cells[a]}))})),this._=r}},{key:`paste`,value:function(e,t){var n=this;if(!(e.length<=0)){var r=t.sri,i=t.sci;e.forEach((function(e,t){var a=r+t;e.forEach((function(e,t){var r=i+t;n.setCellText(a,r,e)}))}))}}},{key:`insert`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r={};this.each((function(i,a){var o=parseInt(i,10);o>=e&&(o+=n,t.eachCells(i,(function(t,r){r.text&&r.text[0]===`=`&&(r.text=r.text.replace(/[a-zA-Z]{1,3}\d+/g,(function(t){return C(t,0,n,(function(t,n){return n>=e}))})))}))),r[o]=a})),this._=r,this.len+=n}},{key:`delete`,value:function(e,t){var n=this,r=t-e+1,i={};this.each((function(a,o){var s=parseInt(a,10);s<e?i[s]=o:a>t&&(i[s-r]=o,n.eachCells(a,(function(e,n){n.text&&n.text[0]===`=`&&(n.text=n.text.replace(/[a-zA-Z]{1,3}\d+/g,(function(e){return C(e,0,-r,(function(e,n){return n>t}))})))})))})),this._=i,this.len-=r}},{key:`insertColumn`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.each((function(r,i){var a={};t.eachCells(r,(function(t,r){var i=parseInt(t,10);i>=e&&(i+=n,r.text&&r.text[0]===`=`&&(r.text=r.text.replace(/[a-zA-Z]{1,3}\d+/g,(function(t){return C(t,n,0,(function(t){return t>=e}))})))),a[i]=r})),i.cells=a}))}},{key:`deleteColumn`,value:function(e,t){var n=this,r=t-e+1;this.each((function(i,a){var o={};n.eachCells(i,(function(n,i){var a=parseInt(n,10);a<e?o[a]=i:a>t&&(o[a-r]=i,i.text&&i.text[0]===`=`&&(i.text=i.text.replace(/[a-zA-Z]{1,3}\d+/g,(function(e){return C(e,-r,0,(function(e){return e>t}))}))))})),a.cells=o}))}},{key:`deleteCells`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`all`;e.each((function(e,r){t.deleteCell(e,r,n)}))}},{key:`deleteCell`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`all`,r=this.get(e);if(r!==null){var i=this.getCell(e,t);i!==null&&!1!==i.editable&&(n===`all`?delete r.cells[t]:n===`text`?(i.text&&delete i.text,i.value&&delete i.value):n===`format`?(i.style!==void 0&&delete i.style,i.merge&&delete i.merge):n===`merge`&&i.merge&&delete i.merge)}}},{key:`maxCell`,value:function(){var e=Object.keys(this._),t=e[e.length-1],n=this._[t];if(n){var r=n.cells,i=Object.keys(r),a=i[i.length-1];return[parseInt(t,10),parseInt(a,10)]}return[0,0]}},{key:`each`,value:function(e){Object.entries(this._).forEach((function(t){var n=l(t,2),r=n[0],i=n[1];e(r,i)}))}},{key:`eachCells`,value:function(e,t){this._[e]&&this._[e].cells&&Object.entries(this._[e].cells).forEach((function(e){var n=l(e,2),r=n[0],i=n[1];t(r,i)}))}},{key:`setData`,value:function(e){e.len&&(this.len=e.len,delete e.len),this._=e}},{key:`getData`,value:function(){var e=this.len;return Object.assign({len:e},this._)}}])}(),R=function(){return f((function e(t){var n=t.len,r=t.width,i=t.indexWidth,a=t.minWidth;u(this,e),this._={},this.len=n,this.width=r,this.indexWidth=i,this.minWidth=a}),[{key:`setData`,value:function(e){e.len&&(this.len=e.len,delete e.len),this._=e}},{key:`getData`,value:function(){var e=this.len;return Object.assign({len:e},this._)}},{key:`getWidth`,value:function(e){if(this.isHide(e))return 0;var t=this._[e];return t&&t.width?t.width:this.width}},{key:`getOrNew`,value:function(e){return this._[e]=this._[e]||{},this._[e]}},{key:`setWidth`,value:function(e,t){this.getOrNew(e).width=t}},{key:`unhide`,value:function(e){for(var t=e;t>0&&(--t,this.isHide(t));)this.setHide(t,!1)}},{key:`isHide`,value:function(e){var t=this._[e];return t&&t.hide}},{key:`setHide`,value:function(e,t){var n=this.getOrNew(e);!0===t?n.hide=!0:delete n.hide}},{key:`setStyle`,value:function(e,t){this.getOrNew(e).style=t}},{key:`sumWidth`,value:function(e,t){var n=this;return I.rangeSum(e,t,(function(e){return n.getWidth(e)}))}},{key:`totalWidth`,value:function(){return this.sumWidth(0,this.len)}}])}();function z(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return B(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function B(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var V=[`en`],H={en:{toolbar:{undo:`Undo`,redo:`Redo`,print:`Print`,paintformat:`Paint format`,clearformat:`Clear format`,format:`Format`,fontName:`Font`,fontSize:`Font size`,fontBold:`Font bold`,fontItalic:`Font italic`,underline:`Underline`,strike:`Strike`,color:`Text color`,bgcolor:`Fill color`,border:`Borders`,merge:`Merge cells`,align:`Horizontal align`,valign:`Vertical align`,textwrap:`Text wrapping`,freeze:`Freeze cell`,autofilter:`Filter`,formula:`Functions`,more:`More`},contextmenu:{copy:`Copy`,cut:`Cut`,paste:`Paste`,pasteValue:`Paste values only`,pasteFormat:`Paste format only`,hide:`Hide`,insertRow:`Insert row`,insertColumn:`Insert column`,deleteSheet:`Delete`,deleteRow:`Delete row`,deleteColumn:`Delete column`,deleteCell:`Delete cell`,deleteCellText:`Delete cell text`,validation:`Data validations`,cellprintable:`Enable export`,cellnonprintable:`Disable export`,celleditable:`Enable editing`,cellnoneditable:`Disable editing`},print:{size:`Paper size`,orientation:`Page orientation`,orientations:[`Landscape`,`Portrait`]},format:{normal:`Normal`,text:`Plain Text`,number:`Number`,percent:`Percent`,rmb:`RMB`,usd:`USD`,eur:`EUR`,date:`Date`,time:`Time`,datetime:`Date time`,duration:`Duration`},formula:{sum:`Sum`,average:`Average`,max:`Max`,min:`Min`,_if:`IF`,and:`AND`,or:`OR`,concat:`Concat`},validation:{required:`it must be required`,notMatch:`it not match its validation rule`,between:`it is between {} and {}`,notBetween:`it is not between {} and {}`,notIn:`it is not in list`,equal:`it equal to {}`,notEqual:`it not equal to {}`,lessThan:`it less than {}`,lessThanEqual:`it less than or equal to {}`,greaterThan:`it greater than {}`,greaterThanEqual:`it greater than or equal to {}`},error:{pasteForMergedCell:`Unable to do this for merged cells`},calendar:{weeks:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},button:{next:`Next`,cancel:`Cancel`,remove:`Remove`,save:`Save`,ok:`OK`},sort:{desc:`Sort Z -> A`,asc:`Sort A -> Z`},filter:{empty:`empty`},dataValidation:{mode:`Mode`,range:`Cell Range`,criteria:`Criteria`,modeType:{cell:`Cell`,column:`Colun`,row:`Row`},type:{list:`List`,number:`Number`,date:`Date`,phone:`Phone`,email:`Email`},operator:{be:`between`,nbe:`not betwwen`,lt:`less than`,lte:`less than or equal to`,gt:`greater than`,gte:`greater than or equal to`,eq:`equal to`,neq:`not equal to`}}}};function ee(e,t){if(t){var n,r=z(V);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t[i])break;for(var a=t[i],o=e.match(/(?:\\.|[^.])+/g),s=0;s<o.length;s+=1){var c=a[o[s]];if(!c)break;if(s===o.length-1)return c;a=c}}}catch(e){r.e(e)}finally{r.f()}}}function U(e){var t=ee(e,H);return!t&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(t=ee(e,window.x_spreadsheet.$messages)),t||``}function W(e){return function(){return U(e)}}function te(e,t){arguments.length>2&&arguments[2]!==void 0&&arguments[2]?V=[e]:V.unshift(e),t&&(H[e]=t)}var G={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function ne(e,t){var n=``;if(!e){var r=[...arguments].slice(2);n=U.apply(void 0,[`validation.${t}`].concat(r))}return[e,n]}var re=function(){return f((function e(t,n,r,i){u(this,e),this.required=n,this.value=r,this.type=t,this.operator=i,this.message=``}),[{key:`parseValue`,value:function(e){var t=this.type;return t===`date`?new Date(e):t===`number`?Number(e):e}},{key:`equals`,value:function(e){var t=this.type===e.type&&this.required===e.required&&this.operator===e.operator;return t&&=Array.isArray(this.value)?I.arrayEquals(this.value,e.value):this.value===e.value,t}},{key:`values`,value:function(){return this.value.split(`,`)}},{key:`validate`,value:function(e){var t=this.required,n=this.operator,r=this.value,i=this.type;if(t&&/^\s*$/.test(e))return ne(!1,`required`);if(/^\s*$/.test(e))return[!0];if(G[i]&&!G[i].test(e))return ne(!1,`notMatch`);if(i===`list`)return ne(this.values().includes(e),`notIn`);if(n){var a=this.parseValue(e);if(n===`be`){var o=l(r,2),s=o[0],c=o[1];return ne(a>=this.parseValue(s)&&a<=this.parseValue(c),`between`,s,c)}if(n===`nbe`){var u=l(r,2),d=u[0],f=u[1];return ne(a<this.parseValue(d)||a>this.parseValue(f),`notBetween`,d,f)}if(n===`eq`)return ne(a===this.parseValue(r),`equal`,r);if(n===`neq`)return ne(a!==this.parseValue(r),`notEqual`,r);if(n===`lt`)return ne(a<this.parseValue(r),`lessThan`,r);if(n===`lte`)return ne(a<=this.parseValue(r),`lessThanEqual`,r);if(n===`gt`)return ne(a>this.parseValue(r),`greaterThan`,r);if(n===`gte`)return ne(a>=this.parseValue(r),`greaterThanEqual`,r)}return[!0]}}])}(),ie=function(){function e(t,n,r){u(this,e),this.refs=n,this.mode=t,this.validator=r}return f(e,[{key:`includes`,value:function(e,t){for(var n=this.refs,r=0;r<n.length;r+=1)if(w.valueOf(n[r]).includes(e,t))return!0;return!1}},{key:`addRef`,value:function(e){this.remove(w.valueOf(e)),this.refs.push(e)}},{key:`remove`,value:function(e){var t=[];this.refs.forEach((function(n){var r=w.valueOf(n);r.intersects(e)?r.difference(e).forEach((function(e){return t.push(e.toString())})):t.push(n)})),this.refs=t}},{key:`getData`,value:function(){var e=this.refs,t=this.mode,n=this.validator;return{refs:e,mode:t,type:n.type,required:n.required,operator:n.operator,value:n.value}}}],[{key:`valueOf`,value:function(t){var n=t.refs,r=t.mode,i=t.type,a=t.required,o=t.operator,s=t.value;return new e(r,n,new re(i,a,s,o))}}])}(),ae=function(){return f((function e(){u(this,e),this._=[],this.errors=new Map}),[{key:`getError`,value:function(e,t){return this.errors.get(`${e}_${t}`)}},{key:`validate`,value:function(e,t,n){var r=this.get(e,t),i=`${e}_${t}`,a=this.errors;if(r!==null){var o=l(r.validator.validate(n),2),s=o[0],c=o[1];s?a.delete(i):a.set(i,c)}else a.delete(i);return!0}},{key:`add`,value:function(e,t,n){var r=n.type,i=n.required,a=n.value,o=n.operator,s=new re(r,i,a,o),c=this.getByValidator(s);c===null?this._.push(new ie(e,[t],s)):c.addRef(t)}},{key:`getByValidator`,value:function(e){for(var t=0;t<this._.length;t+=1){var n=this._[t];if(n.validator.equals(e))return n}return null}},{key:`get`,value:function(e,t){for(var n=0;n<this._.length;n+=1){var r=this._[n];if(r.includes(e,t))return r}return null}},{key:`remove`,value:function(e){this.each((function(t){t.remove(e)}))}},{key:`each`,value:function(e){this._.forEach((function(t){return e(t)}))}},{key:`getData`,value:function(){return this._.filter((function(e){return e.refs.length>0})).map((function(e){return e.getData()}))}},{key:`setData`,value:function(e){this._=e.map((function(e){return ie.valueOf(e)}))}}])}(),oe={mode:`edit`,view:{height:function(){return document.documentElement.clientHeight},width:function(){return document.documentElement.clientWidth}},showGrid:!0,showToolbar:!0,showContextmenu:!0,showBottomBar:!0,row:{len:100,height:25},col:{len:26,width:100,indexWidth:60,minWidth:60},style:{bgcolor:`#ffffff`,align:`left`,valign:`middle`,textwrap:!1,strike:!1,underline:!1,color:`#0a0a0a`,font:{name:`Arial`,size:10,bold:!1,italic:!1},format:`normal`}};function se(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},r=this.merges,i=t.clone(),a=l(e.size(),2),o=a[0],s=a[1],c=l(t.size(),2),u=c[0],d=c[1];return o>u&&(i.eri=t.sri+o-1),s>d&&(i.eci=t.sci+s-1),!r.intersects(i)||(n(U(`error.pasteForMergedCell`)),!1)}function ce(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3],i=this.rows,a=this.merges;n!==`all`&&n!==`format`||(i.deleteCells(t,n),a.deleteWithin(t)),i.copyPaste(e,t,n,r,(function(e,t,n){if(n&&n.merge){var r=l(n.merge,2),i=r[0],o=r[1];if(i<=0&&o<=0)return;a.add(new w(e,t,e+i,t+o))}}))}function le(e,t){var n=this.clipboard,r=this.rows,i=this.merges;r.cutPaste(e,t),i.move(e,t.sri-e.sri,t.sci-e.sci),n.clear()}function ue(e,t,n){var r=this.styles,i=this.rows.getCellOrNew(e,t),a={};i.style!==void 0&&(a=I.cloneDeep(r[i.style])),a=I.merge(a,{border:n}),i.style=this.addStyle(a)}function de(e){var t=this,n=e.mode,r=e.style,i=e.color,a=this.styles,o=this.selector,s=this.rows,c=o.range,u=c.sri,d=c.sci,f=c.eri,p=c.eci,m=!this.isSingleSelected();if(m||n!==`inside`&&n!==`horizontal`&&n!==`vertical`)if(n!==`outside`||m){if(n===`none`)o.range.each((function(e,n){var r=s.getCell(e,n);if(r&&r.style!==void 0){var i=I.cloneDeep(a[r.style]);delete i.border,r.style=t.addStyle(i)}}));else if(n===`all`||n===`inside`||n===`outside`||n===`horizontal`||n===`vertical`)for(var h=[],g=u;g<=f;g+=1)for(var _=d;_<=p;_+=1){for(var v=[],y=0;y<h.length;y+=1){var b=l(h[y],4),x=b[0],S=b[1],C=b[2],w=b[3];if(g===x+C+1&&v.push(y),x<=g&&g<=x+C&&_===S){_+=w+1;break}}if(v.forEach((function(e){return h.splice(e,1)})),_>p)break;var T=s.getCell(g,_),E=0,D=0;if(T&&T.merge){var O=l(T.merge,2);E=O[0],D=O[1],h.push([g,_,E,D])}var k=E>0&&g+E===f,A=D>0&&_+D===p,j={};n===`all`?j={bottom:[r,i],top:[r,i],left:[r,i],right:[r,i]}:n===`inside`?(!A&&_<p&&(j.right=[r,i]),!k&&g<f&&(j.bottom=[r,i])):n===`horizontal`?!k&&g<f&&(j.bottom=[r,i]):n===`vertical`?!A&&_<p&&(j.right=[r,i]):n===`outside`&&m&&(u===g&&(j.top=[r,i]),(k||f===g)&&(j.bottom=[r,i]),d===_&&(j.left=[r,i]),(A||p===_)&&(j.right=[r,i])),Object.keys(j).length>0&&ue.call(this,g,_,j),_+=D}else if(n===`top`||n===`bottom`)for(var M=d;M<=p;M+=1)n===`top`&&(ue.call(this,u,M,{top:[r,i]}),M+=s.getCellMerge(u,M)[1]),n===`bottom`&&(ue.call(this,f,M,{bottom:[r,i]}),M+=s.getCellMerge(f,M)[1]);else if(n===`left`||n===`right`)for(var N=u;N<=f;N+=1)n===`left`&&(ue.call(this,N,d,{left:[r,i]}),N+=s.getCellMerge(N,d)[0]),n===`right`&&(ue.call(this,N,p,{right:[r,i]}),N+=s.getCellMerge(N,p)[0])}else ue.call(this,u,d,{top:[r,i],bottom:[r,i],left:[r,i],right:[r,i]})}function fe(e,t){var n=this.rows,r=this.freezeTotalHeight(),i=n.height;r+n.height<e&&(i-=t);for(var a=this.exceptRowSet,o=0,s=i,c=n.height;o<n.len&&!(s>e);o+=1)a.has(o)||(s+=c=n.getHeight(o));return(s-=c)<=0?{ri:-1,top:0,height:c}:{ri:o-1,top:s,height:c}}function pe(e,t){var n=this.cols,r=this.freezeTotalWidth(),i=n.indexWidth;r+n.indexWidth<e&&(i-=t);var a=l(I.rangeReduceIf(0,n.len,i,n.indexWidth,e,(function(e){return n.getWidth(e)})),3),o=a[0],s=a[1],c=a[2];return s<=0?{ci:-1,left:0,width:n.indexWidth}:{ci:o-1,left:s,width:c}}var me=function(){return f((function e(t,n){u(this,e),this.settings=I.merge(oe,n||{}),this.name=t||`sheet`,this.freeze=[0,0],this.styles=[],this.merges=new M,this.rows=new L(this.settings.row),this.cols=new R(this.settings.col),this.validations=new ae,this.hyperlinks={},this.comments={},this.selector=new T,this.scroll=new E,this.history=new D,this.clipboard=new O,this.autoFilter=new j,this.change=function(){},this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map}),[{key:`addValidation`,value:function(e,t,n){var r=this;this.changeData((function(){r.validations.add(e,t,n)}))}},{key:`removeValidation`,value:function(){var e=this,t=this.selector.range;this.changeData((function(){e.validations.remove(t)}))}},{key:`getSelectedValidator`,value:function(){var e=this.selector,t=e.ri,n=e.ci,r=this.validations.get(t,n);return r?r.validator:null}},{key:`getSelectedValidation`,value:function(){var e=this.selector,t=e.ri,n=e.ci,r=e.range,i=this.validations.get(t,n),a={ref:r.toString()};return i!==null&&(a.mode=i.mode,a.validator=i.validator),a}},{key:`canUndo`,value:function(){return this.history.canUndo()}},{key:`canRedo`,value:function(){return this.history.canRedo()}},{key:`undo`,value:function(){var e=this;this.history.undo(this.getData(),(function(t){e.setData(t)}))}},{key:`redo`,value:function(){var e=this;this.history.redo(this.getData(),(function(t){e.setData(t)}))}},{key:`copy`,value:function(){this.clipboard.copy(this.selector.range)}},{key:`copyToSystemClipboard`,value:function(e){for(var t=[],n=this.selector.range,r=n.sri,i=n.eri,a=n.sci,o=n.eci,s=r;s<=i;s+=1){for(var c=[],l=a;l<=o;l+=1){var u=this.getCell(s,l);c.push(u&&u.text||``)}t.push(c)}t=t.map((function(e){return e.join(` `)})).join(`
|
|
@@ -20,7 +20,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
20
20
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Zi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qi(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e){var t,n,r,i=2;for(typeof Symbol<`u`&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&(t=e[n])!=null)return t.call(e);if(r&&(t=e[r])!=null)return new ta(t.call(e));n=`@@asyncIterator`,r=`@@iterator`}throw TypeError(`Object is not async iterable`)}function ta(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+` is not an object.`));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(ta=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):t(n.apply(this.s,arguments))}},new ta(e)}qi.exports=function(){function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(!s&&Ki)return Ki(o);if(a)return a(o,!0);var c=Error(`Cannot find module '`+o+`'`);throw c.code=`MODULE_NOT_FOUND`,c}var l=n[o]={exports:{}};t[o][0].call(l.exports,(function(e){return i(t[o][1][e]||e)}),l,l.exports,e,t,n,r)}return n[o].exports}for(var a=Ki,o=0;o<r.length;o++)i(r[o]);return i}return e}()({1:[function(e,t,n){var r=e(`fs`),i=e(`fast-csv`),a=e(`dayjs/plugin/customParseFormat`),o=e(`dayjs/plugin/utc`),s=e(`dayjs`).extend(a).extend(o),c=e(`../utils/stream-buf`),l=e(`../utils/utils`).fs.exists,d={true:!0,false:!1,"#N/A":{error:`#N/A`},"#REF!":{error:`#REF!`},"#NAME?":{error:`#NAME?`},"#DIV/0!":{error:`#DIV/0!`},"#NULL!":{error:`#NULL!`},"#VALUE!":{error:`#VALUE!`},"#NUM!":{error:`#NUM!`}};t.exports=function(){function e(t){u(this,e),this.workbook=t,this.worksheet=null}return f(e,[{key:`readFile`,value:function(){var e=Pi(Gi.mark((function e(t,n){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n||={},e.next=3,l(t);case 3:if(e.sent){e.next=5;break}throw Error(`File not found: ${t}`);case 5:return i=r.createReadStream(t),e.next=8,this.read(i,n);case 8:return a=e.sent,i.close(),e.abrupt(`return`,a);case 11:case`end`:return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`read`,value:function(e,t){var n=this;return t||={},new Promise((function(r,a){var o=n.workbook.addWorksheet(t.sheetName),c=t.dateFormats||[`YYYY-MM-DD[T]HH:mm:ssZ`,`YYYY-MM-DD[T]HH:mm:ss`,`MM-DD-YYYY`,`YYYY-MM-DD`],l=t.map||function(e){if(e===``)return null;var t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;var n=c.reduce((function(t,n){if(t)return t;var r=s(e,n,!0);return r.isValid()?r:null}),null);if(n)return new Date(n.valueOf());var r=d[e];return r===void 0?e:r},u=i.parse(t.parserOptions).on(`data`,(function(e){o.addRow(e.map(l))})).on(`end`,(function(){u.emit(`worksheet`,o)}));u.on(`worksheet`,r).on(`error`,a),e.pipe(u)}))}},{key:`createInputStream`,value:function(){throw Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:`write`,value:function(e,t){var n=this;return new Promise((function(r,a){t||={};var o=n.workbook.getWorksheet(t.sheetName||t.sheetId),c=i.format(t.formatterOptions);e.on(`finish`,(function(){r()})),c.on(`error`,a),c.pipe(e);var l=t,u=l.dateFormat,d=l.dateUTC,f=t.map||function(e){if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||``;if(e.formula||e.result)return e.result||``;if(e instanceof Date)return u?d?s.utc(e).format(u):s(e).format(u):d?s.utc(e).format():s(e).format();if(e.error)return e.error;if(typeof e==`object`)return JSON.stringify(e)}return e},p=t.includeEmptyRows===void 0||t.includeEmptyRows,m=1;o&&o.eachRow((function(e,t){if(p)for(;m++<t-1;)c.write([]);var n=e.values;n.shift(),c.write(n.map(f)),m=t})),c.end()}))}},{key:`writeFile`,value:function(e,t){var n={encoding:(t||={}).encoding||`utf8`},i=r.createWriteStream(e,n);return this.write(i,t)}},{key:`writeBuffer`,value:function(){var e=Pi(Gi.mark((function e(t){var n;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new c,e.next=3,this.write(n,t);case 3:return e.abrupt(`return`,n.read());case 4:case`end`:return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}])}()},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,n){var r=e(`../utils/col-cache`);t.exports=function(){function e(t,n){u(this,e);var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=t,n)if(typeof n==`string`){var a=r.decodeAddress(n);this.nativeCol=a.col+i,this.nativeColOff=0,this.nativeRow=a.row+i,this.nativeRowOff=0}else n.nativeCol===void 0?n.col===void 0?(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0):(this.col=n.col+i,this.row=n.row+i):(this.nativeCol=n.nativeCol||0,this.nativeColOff=n.nativeColOff||0,this.nativeRow=n.nativeRow||0,this.nativeRowOff=n.nativeRowOff||0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}return f(e,[{key:`col`,get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}},{key:`row`,get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}},{key:`colWidth`,get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:`rowHeight`,get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:`model`,get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}],[{key:`asInstance`,value:function(t){return t instanceof e||t==null?t:new e(t)}}])}()},{"../utils/col-cache":19}],3:[function(e,t,n){var r=e(`../utils/col-cache`),i=e(`../utils/under-dash`),a=e(`./enums`),o=e(`../utils/shared-formula`).slideFormula,s=e(`./note`),c=function(){function e(t,n,i){if(u(this,e),!t||!n)throw Error(`A Cell needs a Row`);this._row=t,this._column=n,r.validateAddress(i),this._address=i,this._value=C.create(e.Types.Null,this),this.style=this._mergeStyle(t.style,n.style,{}),this._mergeCount=0}return f(e,[{key:`worksheet`,get:function(){return this._row.worksheet}},{key:`workbook`,get:function(){return this._row.worksheet.workbook}},{key:`destroy`,value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:`numFmt`,get:function(){return this.style.numFmt},set:function(e){this.style.numFmt=e}},{key:`font`,get:function(){return this.style.font},set:function(e){this.style.font=e}},{key:`alignment`,get:function(){return this.style.alignment},set:function(e){this.style.alignment=e}},{key:`border`,get:function(){return this.style.border},set:function(e){this.style.border=e}},{key:`fill`,get:function(){return this.style.fill},set:function(e){this.style.fill=e}},{key:`protection`,get:function(){return this.style.protection},set:function(e){this.style.protection=e}},{key:`_mergeStyle`,value:function(e,t,n){var r=e&&e.numFmt||t&&t.numFmt;r&&(n.numFmt=r);var i=e&&e.font||t&&t.font;i&&(n.font=i);var a=e&&e.alignment||t&&t.alignment;a&&(n.alignment=a);var o=e&&e.border||t&&t.border;o&&(n.border=o);var s=e&&e.fill||t&&t.fill;s&&(n.fill=s);var c=e&&e.protection||t&&t.protection;return c&&(n.protection=c),n}},{key:`address`,get:function(){return this._address}},{key:`row`,get:function(){return this._row.number}},{key:`col`,get:function(){return this._column.number}},{key:`$col$row`,get:function(){return`\$${this._column.letter}\$${this.row}`}},{key:`type`,get:function(){return this._value.type}},{key:`effectiveType`,get:function(){return this._value.effectiveType}},{key:`toCsvString`,value:function(){return this._value.toCsvString()}},{key:`addMergeRef`,value:function(){this._mergeCount++}},{key:`releaseMergeRef`,value:function(){this._mergeCount--}},{key:`isMerged`,get:function(){return this._mergeCount>0||this.type===e.Types.Merge}},{key:`merge`,value:function(t,n){this._value.release(),this._value=C.create(e.Types.Merge,this,t),n||(this.style=t.style)}},{key:`unmerge`,value:function(){this.type===e.Types.Merge&&(this._value.release(),this._value=C.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:`isMergedTo`,value:function(t){return this._value.type===e.Types.Merge&&this._value.isMergedTo(t)}},{key:`master`,get:function(){return this.type===e.Types.Merge?this._value.master:this}},{key:`isHyperlink`,get:function(){return this._value.type===e.Types.Hyperlink}},{key:`hyperlink`,get:function(){return this._value.hyperlink}},{key:`value`,get:function(){return this._value.value},set:function(t){this.type===e.Types.Merge?this._value.master.value=t:(this._value.release(),this._value=C.create(C.getType(t),this,t))}},{key:`note`,get:function(){return this._comment&&this._comment.note},set:function(e){this._comment=new s(e)}},{key:`text`,get:function(){return this._value.toString()}},{key:`html`,get:function(){return i.escapeHtml(this.text)}},{key:`toString`,value:function(){return this.text}},{key:`_upgradeToHyperlink`,value:function(t){this.type===e.Types.String&&(this._value=C.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:t}))}},{key:`formula`,get:function(){return this._value.formula}},{key:`result`,get:function(){return this._value.result}},{key:`formulaType`,get:function(){return this._value.formulaType}},{key:`fullAddress`,get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:`name`,get:function(){return this.names[0]},set:function(e){this.names=[e]}},{key:`names`,get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(e){var t=this,n=this.workbook.definedNames;n.removeAllNames(this.fullAddress),e.forEach((function(e){n.addEx(t.fullAddress,e)}))}},{key:`addName`,value:function(e){this.workbook.definedNames.addEx(this.fullAddress,e)}},{key:`removeName`,value:function(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}},{key:`removeAllNames`,value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:`_dataValidations`,get:function(){return this.worksheet.dataValidations}},{key:`dataValidation`,get:function(){return this._dataValidations.find(this.address)},set:function(e){this._dataValidations.add(this.address,e)}},{key:`model`,get:function(){var e=this._value.model;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e},set:function(e){this._value.release(),this._value=C.create(e.type,this),this._value.model=e,e.comment&&e.comment.type===`note`&&(this._comment=s.fromModel(e.comment)),e.style?this.style=e.style:this.style={}}}])}();c.Types=a.ValueType;var l=function(){function e(t){u(this,e),this.model={address:t.address,type:c.Types.Null}}return f(e,[{key:`value`,get:function(){return null},set:function(e){}},{key:`type`,get:function(){return c.Types.Null}},{key:`effectiveType`,get:function(){return c.Types.Null}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return``}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return``}}])}(),d=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.Number,value:n}}return f(e,[{key:`value`,get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:`type`,get:function(){return c.Types.Number}},{key:`effectiveType`,get:function(){return c.Types.Number}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return this.model.value.toString()}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.value.toString()}}])}(),p=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.String,value:n}}return f(e,[{key:`value`,get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:`type`,get:function(){return c.Types.String}},{key:`effectiveType`,get:function(){return c.Types.String}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return`"${this.model.value.replace(/"/g,`""`)}"`}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.value}}])}(),m=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.String,value:n}}return f(e,[{key:`value`,get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:`toString`,value:function(){return this.model.value.richText.map((function(e){return e.text})).join(``)}},{key:`type`,get:function(){return c.Types.RichText}},{key:`effectiveType`,get:function(){return c.Types.RichText}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return`"${this.text.replace(/"/g,`""`)}"`}},{key:`release`,value:function(){}}])}(),h=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.Date,value:n}}return f(e,[{key:`value`,get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:`type`,get:function(){return c.Types.Date}},{key:`effectiveType`,get:function(){return c.Types.Date}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return this.model.value.toISOString()}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.value.toString()}}])}(),g=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.Hyperlink,text:n?n.text:void 0,hyperlink:n?n.hyperlink:void 0},n&&n.tooltip&&(this.model.tooltip=n.tooltip)}return f(e,[{key:`value`,get:function(){var e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e},set:function(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}},{key:`text`,get:function(){return this.model.text},set:function(e){this.model.text=e}},{key:`hyperlink`,get:function(){return this.model.hyperlink},set:function(e){this.model.hyperlink=e}},{key:`type`,get:function(){return c.Types.Hyperlink}},{key:`effectiveType`,get:function(){return c.Types.Hyperlink}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return this.model.hyperlink}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.text}}])}(),_=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.Merge,master:n?n.address:void 0},this._master=n,n&&n.addMergeRef()}return f(e,[{key:`value`,get:function(){return this._master.value},set:function(e){e instanceof c?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}},{key:`isMergedTo`,value:function(e){return e===this._master}},{key:`master`,get:function(){return this._master}},{key:`type`,get:function(){return c.Types.Merge}},{key:`effectiveType`,get:function(){return this._master.effectiveType}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return``}},{key:`release`,value:function(){this._master.releaseMergeRef()}},{key:`toString`,value:function(){return this.value.toString()}}])}(),v=function(){function e(t,n){u(this,e),this.cell=t,this.model={address:t.address,type:c.Types.Formula,shareType:n?n.shareType:void 0,ref:n?n.ref:void 0,formula:n?n.formula:void 0,sharedFormula:n?n.sharedFormula:void 0,result:n?n.result:void 0}}return f(e,[{key:`_copyModel`,value:function(e){var t={},n=function(n){var r=e[n];r&&(t[n]=r)};return n(`formula`),n(`result`),n(`ref`),n(`shareType`),n(`sharedFormula`),t}},{key:`value`,get:function(){return this._copyModel(this.model)},set:function(e){this.model=this._copyModel(e)}},{key:`validate`,value:function(e){switch(C.getType(e)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw Error(`Cannot process that type of result value`)}}},{key:`dependencies`,get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,``).match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:`formula`,get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(e){this.model.formula=e}},{key:`formulaType`,get:function(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}},{key:`result`,get:function(){return this.model.result},set:function(e){this.model.result=e}},{key:`type`,get:function(){return c.Types.Formula}},{key:`effectiveType`,get:function(){var e=this.model.result;return e==null?a.ValueType.Null:e instanceof String||typeof e==`string`?a.ValueType.String:typeof e==`number`?a.ValueType.Number:e instanceof Date?a.ValueType.Date:e.text&&e.hyperlink?a.ValueType.Hyperlink:e.formula?a.ValueType.Formula:a.ValueType.Null}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`_getTranslatedFormula`,value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var e=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=e&&o(e.formula,e.address,this.model.address)}return this._translatedFormula}},{key:`toCsvString`,value:function(){return`${this.model.result||``}`}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.result?this.model.result.toString():``}}])}(),y=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.SharedString,value:n}}return f(e,[{key:`value`,get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:`type`,get:function(){return c.Types.SharedString}},{key:`effectiveType`,get:function(){return c.Types.SharedString}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return this.model.value.toString()}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.value.toString()}}])}(),b=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.Boolean,value:n}}return f(e,[{key:`value`,get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:`type`,get:function(){return c.Types.Boolean}},{key:`effectiveType`,get:function(){return c.Types.Boolean}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return+!!this.model.value}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.value.toString()}}])}(),x=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.Error,value:n}}return f(e,[{key:`value`,get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:`type`,get:function(){return c.Types.Error}},{key:`effectiveType`,get:function(){return c.Types.Error}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return this.toString()}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.value.error.toString()}}])}(),S=function(){function e(t,n){u(this,e),this.model={address:t.address,type:c.Types.String,value:JSON.stringify(n),rawValue:n}}return f(e,[{key:`value`,get:function(){return this.model.rawValue},set:function(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}},{key:`type`,get:function(){return c.Types.String}},{key:`effectiveType`,get:function(){return c.Types.String}},{key:`address`,get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:`toCsvString`,value:function(){return this.model.value}},{key:`release`,value:function(){}},{key:`toString`,value:function(){return this.model.value}}])}(),C={getType:function(e){return e==null?c.Types.Null:e instanceof String||typeof e==`string`?c.Types.String:typeof e==`number`?c.Types.Number:typeof e==`boolean`?c.Types.Boolean:e instanceof Date?c.Types.Date:e.text&&e.hyperlink?c.Types.Hyperlink:e.formula||e.sharedFormula?c.Types.Formula:e.richText?c.Types.RichText:e.sharedString?c.Types.SharedString:e.error?c.Types.Error:c.Types.JSON},types:[{t:c.Types.Null,f:l},{t:c.Types.Number,f:d},{t:c.Types.String,f:p},{t:c.Types.Date,f:h},{t:c.Types.Hyperlink,f:g},{t:c.Types.Formula,f:v},{t:c.Types.Merge,f:_},{t:c.Types.JSON,f:S},{t:c.Types.SharedString,f:y},{t:c.Types.RichText,f:m},{t:c.Types.Boolean,f:b},{t:c.Types.Error,f:x}].reduce((function(e,t){return e[t.t]=t.f,e}),[]),create:function(e,t,n){var r=this.types[e];if(!r)throw Error(`Could not create Value of type ${e}`);return new r(t,n)}};t.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,n){var r=e(`../utils/under-dash`),i=e(`./enums`),a=e(`../utils/col-cache`),o=9;t.exports=function(){function e(t,n,r){u(this,e),this._worksheet=t,this._number=n,!1!==r&&(this.defn=r)}return f(e,[{key:`number`,get:function(){return this._number}},{key:`worksheet`,get:function(){return this._worksheet}},{key:`letter`,get:function(){return a.n2l(this._number)}},{key:`isCustomWidth`,get:function(){return this.width!==void 0&&this.width!==o}},{key:`defn`,get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(e){e?(this.key=e.key,this.width=e.width===void 0?o:e.width,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:`headers`,get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:`header`,get:function(){return this._header},set:function(e){var t=this;e===void 0?this._header=void 0:(this._header=e,this.headers.forEach((function(e,n){t._worksheet.getCell(n+1,t.number).value=e})))}},{key:`key`,get:function(){return this._key},set:function(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}},{key:`hidden`,get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:`outlineLevel`,get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:`collapsed`,get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:`toString`,value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:`equivalentTo`,value:function(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&r.isEqual(this.style,e.style)}},{key:`isDefault`,get:function(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;var e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}},{key:`headerCount`,get:function(){return this.headers.length}},{key:`eachCell`,value:function(e,t){var n=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(function(e,r){t(e.getCell(n),r)}))}},{key:`values`,get:function(){var e=[];return this.eachCell((function(t,n){t&&t.type!==i.ValueType.Null&&(e[n]=t.value)})),e},set:function(e){var t=this;if(e){var n=this.number,r=0;e.hasOwnProperty(`0`)&&(r=1),e.forEach((function(e,i){t._worksheet.getCell(i+r,n).value=e}))}}},{key:`_applyStyle`,value:function(e,t){return this.style[e]=t,this.eachCell((function(n){n[e]=t})),t}},{key:`numFmt`,get:function(){return this.style.numFmt},set:function(e){this._applyStyle(`numFmt`,e)}},{key:`font`,get:function(){return this.style.font},set:function(e){this._applyStyle(`font`,e)}},{key:`alignment`,get:function(){return this.style.alignment},set:function(e){this._applyStyle(`alignment`,e)}},{key:`protection`,get:function(){return this.style.protection},set:function(e){this._applyStyle(`protection`,e)}},{key:`border`,get:function(){return this.style.border},set:function(e){this._applyStyle(`border`,e)}},{key:`fill`,get:function(){return this.style.fill},set:function(e){this._applyStyle(`fill`,e)}}],[{key:`toModel`,value:function(e){var t=[],n=null;return e&&e.forEach((function(e,r){e.isDefault?n&&=null:n&&e.equivalentTo(n)?n.max=r+1:(n={min:r+1,max:r+1,width:e.width===void 0?o:e.width,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(n))})),t.length?t:void 0}},{key:`fromModel`,value:function(t,n){var r=[],i=1,a=0;for(n=(n||=[]).sort((function(e,t){return e.min-t.min}));a<n.length;){for(var o=n[a++];i<o.min;)r.push(new e(t,i++));for(;i<=o.max;)r.push(new e(t,i++,o))}return r.length?r:null}}])}()},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,n){t.exports=function(){function e(t){u(this,e),this.model=t||{}}return f(e,[{key:`add`,value:function(e,t){return this.model[e]=t}},{key:`find`,value:function(e){return this.model[e]}},{key:`remove`,value:function(e){this.model[e]=void 0}}])}()},{}],6:[function(e,t,n){var r=e(`../utils/under-dash`),i=e(`../utils/col-cache`),a=e(`../utils/cell-matrix`),o=e(`./range`),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=function(){function e(){u(this,e),this.matrixMap={}}return f(e,[{key:`getMatrix`,value:function(e){return this.matrixMap[e]||(this.matrixMap[e]=new a)}},{key:`add`,value:function(e,t){var n=i.decodeEx(e);this.addEx(n,t)}},{key:`addEx`,value:function(e,t){var n=this.getMatrix(t);if(e.top)for(var r=e.left;r<=e.right;r++)for(var a=e.top;a<=e.bottom;a++){var o={sheetName:e.sheetName,address:i.n2l(r)+a,row:a,col:r};n.addCellEx(o)}else n.addCellEx(e)}},{key:`remove`,value:function(e,t){var n=i.decodeEx(e);this.removeEx(n,t)}},{key:`removeEx`,value:function(e,t){this.getMatrix(t).removeCellEx(e)}},{key:`removeAllNames`,value:function(e){r.each(this.matrixMap,(function(t){t.removeCellEx(e)}))}},{key:`forEach`,value:function(e){r.each(this.matrixMap,(function(t,n){t.forEach((function(t){e(n,t)}))}))}},{key:`getNames`,value:function(e){return this.getNamesEx(i.decodeEx(e))}},{key:`getNamesEx`,value:function(e){return r.map(this.matrixMap,(function(t,n){return t.findCellEx(e)&&n})).filter(Boolean)}},{key:`_explore`,value:function(e,t){t.mark=!1;var n,r,i=t.sheetName,a=new o(t.row,t.col,t.row,t.col,i);function s(n,r){var o=e.findCellAt(i,n,t.col);return!(!o||!o.mark||(a[r]=n,o.mark=!1,0))}for(r=t.row-1;s(r,`top`);r--);for(r=t.row+1;s(r,`bottom`);r++);function c(t,n){var o=[];for(r=a.top;r<=a.bottom;r++){var s=e.findCellAt(i,r,t);if(!s||!s.mark)return!1;o.push(s)}a[n]=t;for(var c=0;c<o.length;c++)o[c].mark=!1;return!0}for(n=t.col-1;c(n,`left`);n--);for(n=t.col+1;c(n,`right`);n++);return a}},{key:`getRanges`,value:function(e,t){var n=this;return(t||=this.matrixMap[e])?(t.forEach((function(e){e.mark=!0})),{name:e,ranges:t.map((function(e){return e.mark&&n._explore(t,e)})).filter(Boolean).map((function(e){return e.$shortRange}))}):{name:e,ranges:[]}}},{key:`normaliseMatrix`,value:function(e,t){e.forEachInSheet(t,(function(e,t,n){e&&(e.row===t&&e.col===n||(e.row=t,e.col=n,e.address=i.n2l(n)+t))}))}},{key:`spliceRows`,value:function(e,t,n,i){var a=this;r.each(this.matrixMap,(function(r){r.spliceRows(e,t,n,i),a.normaliseMatrix(r,e)}))}},{key:`spliceColumns`,value:function(e,t,n,i){var a=this;r.each(this.matrixMap,(function(r){r.spliceColumns(e,t,n,i),a.normaliseMatrix(r,e)}))}},{key:`model`,get:function(){var e=this;return r.map(this.matrixMap,(function(t,n){return e.getRanges(n,t)})).filter((function(e){return e.ranges.length}))},set:function(e){var t=this.matrixMap={};e.forEach((function(e){var n=t[e.name]=new a;e.ranges.forEach((function(e){s.test(e.split(`!`).pop()||``)&&n.addCell(e)}))}))}}])}()},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,n){t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:`#N/A`,Ref:`#REF!`,Name:`#NAME?`,DivZero:`#DIV/0!`,Null:`#NULL!`,Value:`#VALUE!`,Num:`#NUM!`}}},{}],8:[function(e,t,n){var r=e(`../utils/col-cache`),i=e(`./anchor`);t.exports=function(){function e(t,n){u(this,e),this.worksheet=t,this.model=n}return f(e,[{key:`model`,get:function(){switch(this.type){case`background`:return{type:this.type,imageId:this.imageId};case`image`:return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw Error(`Invalid Image Type`)}},set:function(e){var t=e.type,n=e.imageId,a=e.range,o=e.hyperlinks;if(this.type=t,this.imageId=n,t===`image`)if(typeof a==`string`){var s=r.decode(a);this.range={tl:new i(this.worksheet,{col:s.left,row:s.top},-1),br:new i(this.worksheet,{col:s.right,row:s.bottom},0),editAs:`oneCell`}}else this.range={tl:new i(this.worksheet,a.tl,0),br:a.br&&new i(this.worksheet,a.br,0),ext:a.ext,editAs:a.editAs,hyperlinks:o||a.hyperlinks}}}])}()},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,n){var r=e(`../utils/under-dash`),i=function(){function e(t){u(this,e),this.note=t}return f(e,[{key:`model`,get:function(){var t=null;return t=typeof this.note==`string`?{type:`note`,note:{texts:[{text:this.note}]}}:{type:`note`,note:this.note},r.deepMerge({},e.DEFAULT_CONFIGS,t)},set:function(e){var t=e.note,n=t.texts;n.length===1&&Object.keys(n[0]).length===1?this.note=n[0].text:this.note=t}}],[{key:`fromModel`,value:function(t){var n=new e;return n.model=t,n}}])}();i.DEFAULT_CONFIGS={note:{margins:{insetmode:`auto`,inset:[.13,.13,.25,.25]},protection:{locked:`True`,lockText:`True`},editAs:`absolute`}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,n){var r=e(`../utils/col-cache`);t.exports=function(){function e(){u(this,e),this.decode(arguments)}return f(e,[{key:`setTLBR`,value:function(e,t,n,i,a){if(arguments.length<4){var o=r.decodeAddress(e),s=r.decodeAddress(t);this.model={top:Math.min(o.row,s.row),left:Math.min(o.col,s.col),bottom:Math.max(o.row,s.row),right:Math.max(o.col,s.col),sheetName:n},this.setTLBR(o.row,o.col,s.row,s.col,a)}else this.model={top:Math.min(e,n),left:Math.min(t,i),bottom:Math.max(e,n),right:Math.max(t,i),sheetName:a}}},{key:`decode`,value:function(t){switch(t.length){case 5:this.setTLBR(t[0],t[1],t[2],t[3],t[4]);break;case 4:this.setTLBR(t[0],t[1],t[2],t[3]);break;case 3:this.setTLBR(t[0],t[1],t[2]);break;case 2:this.setTLBR(t[0],t[1]);break;case 1:var n=t[0];if(n instanceof e)this.model={top:n.model.top,left:n.model.left,bottom:n.model.bottom,right:n.model.right,sheetName:n.sheetName};else if(n instanceof Array)this.decode(n);else if(n.top&&n.left&&n.bottom&&n.right)this.model={top:n.top,left:n.left,bottom:n.bottom,right:n.right,sheetName:n.sheetName};else{var i=r.decodeEx(n);i.top?this.model={top:i.top,left:i.left,bottom:i.bottom,right:i.right,sheetName:i.sheetName}:this.model={top:i.row,left:i.col,bottom:i.row,right:i.col,sheetName:i.sheetName}}break;case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw Error(`Invalid number of arguments to _getDimensions() - ${t.length}`)}}},{key:`top`,get:function(){return this.model.top||1},set:function(e){this.model.top=e}},{key:`left`,get:function(){return this.model.left||1},set:function(e){this.model.left=e}},{key:`bottom`,get:function(){return this.model.bottom||1},set:function(e){this.model.bottom=e}},{key:`right`,get:function(){return this.model.right||1},set:function(e){this.model.right=e}},{key:`sheetName`,get:function(){return this.model.sheetName},set:function(e){this.model.sheetName=e}},{key:`_serialisedSheetName`,get:function(){var e=this.model.sheetName;return e?/^[a-zA-Z0-9]*$/.test(e)?`${e}!`:`'${e}'!`:``}},{key:`expand`,value:function(e,t,n,r){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||r>this.right)&&(this.right=r)}},{key:`expandRow`,value:function(e){if(e){var t=e.dimensions,n=e.number;t&&this.expand(n,t.min,n,t.max)}}},{key:`expandToAddress`,value:function(e){var t=r.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}},{key:`tl`,get:function(){return r.n2l(this.left)+this.top}},{key:`$t$l`,get:function(){return`\$${r.n2l(this.left)}\$${this.top}`}},{key:`br`,get:function(){return r.n2l(this.right)+this.bottom}},{key:`$b$r`,get:function(){return`\$${r.n2l(this.right)}\$${this.bottom}`}},{key:`range`,get:function(){return`${this._serialisedSheetName+this.tl}:${this.br}`}},{key:`$range`,get:function(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}},{key:`shortRange`,get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:`$shortRange`,get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:`count`,get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}},{key:`toString`,value:function(){return this.range}},{key:`intersects`,value:function(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottom<this.top||e.top>this.bottom||e.right<this.left||e.left>this.right)}},{key:`contains`,value:function(e){var t=r.decodeEx(e);return this.containsEx(t)}},{key:`containsEx`,value:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}},{key:`forEachAddress`,value:function(e){for(var t=this.left;t<=this.right;t++)for(var n=this.top;n<=this.bottom;n++)e(r.encodeAddress(n,t),n,t)}}])}()},{"../utils/col-cache":19}],11:[function(e,t,n){var r=e(`../utils/under-dash`),i=e(`./enums`),a=e(`../utils/col-cache`),o=e(`./cell`);t.exports=function(){function e(t,n){u(this,e),this._worksheet=t,this._number=n,this._cells=[],this.style={},this.outlineLevel=0}return f(e,[{key:`number`,get:function(){return this._number}},{key:`worksheet`,get:function(){return this._worksheet}},{key:`commit`,value:function(){this._worksheet._commitRow(this)}},{key:`destroy`,value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:`findCell`,value:function(e){return this._cells[e-1]}},{key:`getCellEx`,value:function(e){var t=this._cells[e.col-1];if(!t){var n=this._worksheet.getColumn(e.col);t=new o(this,n,e.address),this._cells[e.col-1]=t}return t}},{key:`getCell`,value:function(e){if(typeof e==`string`){var t=this._worksheet.getColumnKey(e);e=t?t.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}},{key:`splice`,value:function(e,t){for(var n=e+t,r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var o,s,c,l=i.length-t,u=this._cells.length;if(l<0)for(o=e+i.length;o<=u;o++)c=this._cells[o-1],(s=this._cells[o-l-1])?((c=this.getCell(o)).value=s.value,c.style=s.style,c._comment=s._comment):c&&(c.value=null,c.style={},c._comment=void 0);else if(l>0)for(o=u;o>=n;o--)(s=this._cells[o-1])?((c=this.getCell(o+l)).value=s.value,c.style=s.style,c._comment=s._comment):this._cells[o+l-1]=void 0;for(o=0;o<i.length;o++)(c=this.getCell(e+o)).value=i[o],c.style={},c._comment=void 0}},{key:`eachCell`,value:function(e,t){if(t||(t=e,e=null),e&&e.includeEmpty)for(var n=this._cells.length,r=1;r<=n;r++)t(this.getCell(r),r);else this._cells.forEach((function(e,n){e&&e.type!==i.ValueType.Null&&t(e,n+1)}))}},{key:`addPageBreak`,value:function(e,t){var n=this._worksheet,r=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,a={id:this._number,max:i,man:1};r&&(a.min=r),n.rowBreaks.push(a)}},{key:`values`,get:function(){var e=[];return this._cells.forEach((function(t){t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)})),e},set:function(e){var t=this;if(this._cells=[],e)if(e instanceof Array){var n=0;e.hasOwnProperty(`0`)&&(n=1),e.forEach((function(e,r){e!==void 0&&(t.getCellEx({address:a.encodeAddress(t._number,r+n),row:t._number,col:r+n}).value=e)}))}else this._worksheet.eachColumnKey((function(n,r){e[r]!==void 0&&(t.getCellEx({address:a.encodeAddress(t._number,n.number),row:t._number,col:n.number}).value=e[r])}))}},{key:`hasValues`,get:function(){return r.some(this._cells,(function(e){return e&&e.type!==i.ValueType.Null}))}},{key:`cellCount`,get:function(){return this._cells.length}},{key:`actualCellCount`,get:function(){var e=0;return this.eachCell((function(){e++})),e}},{key:`dimensions`,get:function(){var e=0,t=0;return this._cells.forEach((function(n){n&&n.type!==i.ValueType.Null&&((!e||e>n.col)&&(e=n.col),t<n.col&&(t=n.col))})),e>0?{min:e,max:t}:null}},{key:`_applyStyle`,value:function(e,t){return this.style[e]=t,this._cells.forEach((function(n){n&&(n[e]=t)})),t}},{key:`numFmt`,get:function(){return this.style.numFmt},set:function(e){this._applyStyle(`numFmt`,e)}},{key:`font`,get:function(){return this.style.font},set:function(e){this._applyStyle(`font`,e)}},{key:`alignment`,get:function(){return this.style.alignment},set:function(e){this._applyStyle(`alignment`,e)}},{key:`protection`,get:function(){return this.style.protection},set:function(e){this._applyStyle(`protection`,e)}},{key:`border`,get:function(){return this.style.border},set:function(e){this._applyStyle(`border`,e)}},{key:`fill`,get:function(){return this.style.fill},set:function(e){this._applyStyle(`fill`,e)}},{key:`hidden`,get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:`outlineLevel`,get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:`collapsed`,get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:`model`,get:function(){var e=[],t=0,n=0;return this._cells.forEach((function(r){if(r){var i=r.model;i&&((!t||t>r.col)&&(t=r.col),n<r.col&&(n=r.col),e.push(i))}})),this.height||e.length?{cells:e,number:this.number,min:t,max:n,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null},set:function(e){var t,n=this;if(e.number!==this._number)throw Error(`Invalid row number in model`);this._cells=[],e.cells.forEach((function(e){if(e.type!==o.Types.Merge){var r;if(e.address)r=a.decodeAddress(e.address);else if(t){var i=t.row,s=t.col+1;r={row:i,col:s,address:a.encodeAddress(i,s),$col$row:`\$${a.n2l(s)}\$${i}`}}t=r,n.getCellEx(r).model=e}})),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}])}()},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,n){var r=e(`../utils/col-cache`),i=function(){function e(t,n,r){u(this,e),this.table=t,this.column=n,this.index=r}return f(e,[{key:`_set`,value:function(e,t){this.table.cacheState(),this.column[e]=t}},{key:`name`,get:function(){return this.column.name},set:function(e){this._set(`name`,e)}},{key:`filterButton`,get:function(){return this.column.filterButton},set:function(e){this.column.filterButton=e}},{key:`style`,get:function(){return this.column.style},set:function(e){this.column.style=e}},{key:`totalsRowLabel`,get:function(){return this.column.totalsRowLabel},set:function(e){this._set(`totalsRowLabel`,e)}},{key:`totalsRowFunction`,get:function(){return this.column.totalsRowFunction},set:function(e){this._set(`totalsRowFunction`,e)}},{key:`totalsRowResult`,get:function(){return this.column.totalsRowResult},set:function(e){this._set(`totalsRowResult`,e)}},{key:`totalsRowFormula`,get:function(){return this.column.totalsRowFormula},set:function(e){this._set(`totalsRowFormula`,e)}}])}();t.exports=function(){function e(t,n){u(this,e),this.worksheet=t,n&&(this.table=n,this.validate(),this.store())}return f(e,[{key:`getFormula`,value:function(e){switch(e.totalsRowFunction){case`none`:return null;case`average`:return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case`countNums`:return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case`count`:return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case`max`:return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case`min`:return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case`stdDev`:return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case`var`:return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case`sum`:return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case`custom`:return e.totalsRowFormula;default:throw Error(`Invalid Totals Row Function: ${e.totalsRowFunction}`)}}},{key:`width`,get:function(){return this.table.columns.length}},{key:`height`,get:function(){return this.table.rows.length}},{key:`filterHeight`,get:function(){return this.height+ +!!this.table.headerRow}},{key:`tableHeight`,get:function(){return this.filterHeight+ +!!this.table.totalsRow}},{key:`validate`,value:function(){var e=this,t=this.table,n=function(e,t,n){e[t]===void 0&&(e[t]=n)};n(t,`headerRow`,!0),n(t,`totalsRow`,!1),n(t,`style`,{}),n(t.style,`theme`,`TableStyleMedium2`),n(t.style,`showFirstColumn`,!1),n(t.style,`showLastColumn`,!1),n(t.style,`showRowStripes`,!1),n(t.style,`showColumnStripes`,!1);var i=function(e,t){if(!e)throw Error(t)};i(t.ref,`Table must have ref`),i(t.columns,`Table must have column definitions`),i(t.rows,`Table must have row definitions`),t.tl=r.decodeAddress(t.ref);var a=t.tl,o=a.row,s=a.col;i(o>0,`Table must be on valid row`),i(s>0,`Table must be on valid col`);var c=this.width,l=this.filterHeight,u=this.tableHeight;t.autoFilterRef=r.encode(o,s,o+l-1,s+c-1),t.tableRef=r.encode(o,s,o+u-1,s+c-1),t.columns.forEach((function(t,r){i(t.name,`Column ${r} must have a name`),r===0?n(t,`totalsRowLabel`,`Total`):(n(t,`totalsRowFunction`,`none`),t.totalsRowFormula=e.getFormula(t))}))}},{key:`store`,value:function(){var e=this,t=function(e,t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))},n=this.worksheet,r=this.table,i=r.tl,a=i.row,o=i.col,s=0;if(r.headerRow){var c=n.getRow(a+ s++);r.columns.forEach((function(e,n){var r=e.style,i=e.name,a=c.getCell(o+n);a.value=i,t(a,r)}))}if(r.rows.forEach((function(e){var i=n.getRow(a+ s++);e.forEach((function(e,n){var a=i.getCell(o+n);a.value=e,t(a,r.columns[n].style)}))})),r.totalsRow){var l=n.getRow(a+ s++);r.columns.forEach((function(n,r){var i=l.getCell(o+r);r===0?i.value=n.totalsRowLabel:i.value=e.getFormula(n)?{formula:n.totalsRowFormula,result:n.totalsRowResult}:null,t(i,n.style)}))}}},{key:`load`,value:function(e){var t=this,n=this.table,r=n.tl,i=r.row,a=r.col,o=0;if(n.headerRow){var s=e.getRow(i+ o++);n.columns.forEach((function(e,t){s.getCell(a+t).value=e.name}))}if(n.rows.forEach((function(t){var n=e.getRow(i+ o++);t.forEach((function(e,t){n.getCell(a+t).value=e}))})),n.totalsRow){var c=e.getRow(i+ o++);n.columns.forEach((function(e,n){var r=c.getCell(a+n);n===0?r.value=e.totalsRowLabel:t.getFormula(e)&&(r.value={formula:e.totalsRowFormula,result:e.totalsRowResult})}))}}},{key:`model`,get:function(){return this.table},set:function(e){this.table=e}},{key:`cacheState`,value:function(){this._cache||={ref:this.ref,width:this.width,tableHeight:this.tableHeight}}},{key:`commit`,value:function(){if(this._cache){this.validate();var e=r.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var t=0;t<this._cache.tableHeight;t++)for(var n=this.worksheet.getRow(e.row+t),i=0;i<this._cache.width;i++)n.getCell(e.col+i).value=null;else{for(var a=this.tableHeight;a<this._cache.tableHeight;a++)for(var o=this.worksheet.getRow(e.row+a),s=0;s<this._cache.width;s++)o.getCell(e.col+s).value=null;for(var c=0;c<this.tableHeight;c++)for(var l=this.worksheet.getRow(e.row+c),u=this.width;u<this._cache.width;u++)l.getCell(e.col+u).value=null}this.store()}}},{key:`addRow`,value:function(e,t){this.cacheState(),t===void 0?this.table.rows.push(e):this.table.rows.splice(t,0,e)}},{key:`removeRows`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}},{key:`getColumn`,value:function(e){var t=this.table.columns[e];return new i(this,t,e)}},{key:`addColumn`,value:function(e,t,n){this.cacheState(),n===void 0?(this.table.columns.push(e),this.table.rows.forEach((function(e,n){e.push(t[n])}))):(this.table.columns.splice(n,0,e),this.table.rows.forEach((function(e,r){e.splice(n,0,t[r])})))}},{key:`removeColumns`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach((function(n){n.splice(e,t)}))}},{key:`_assign`,value:function(e,t,n){this.cacheState(),e[t]=n}},{key:`ref`,get:function(){return this.table.ref},set:function(e){this._assign(this.table,`ref`,e)}},{key:`name`,get:function(){return this.table.name},set:function(e){this.table.name=e}},{key:`displayName`,get:function(){return this.table.displyName||this.table.name}},{key:`displayNamename`,set:function(e){this.table.displayName=e}},{key:`headerRow`,get:function(){return this.table.headerRow},set:function(e){this._assign(this.table,`headerRow`,e)}},{key:`totalsRow`,get:function(){return this.table.totalsRow},set:function(e){this._assign(this.table,`totalsRow`,e)}},{key:`theme`,get:function(){return this.table.style.name},set:function(e){this.table.style.name=e}},{key:`showFirstColumn`,get:function(){return this.table.style.showFirstColumn},set:function(e){this.table.style.showFirstColumn=e}},{key:`showLastColumn`,get:function(){return this.table.style.showLastColumn},set:function(e){this.table.style.showLastColumn=e}},{key:`showRowStripes`,get:function(){return this.table.style.showRowStripes},set:function(e){this.table.style.showRowStripes=e}},{key:`showColumnStripes`,get:function(){return this.table.style.showColumnStripes},set:function(e){this.table.style.showColumnStripes=e}}])}()},{"../utils/col-cache":19}],13:[function(e,t,n){var r=e(`./worksheet`),i=e(`./defined-names`),a=e(`../xlsx/xlsx`),o=e(`../csv/csv`);t.exports=function(){function e(){u(this,e),this.category=``,this.company=``,this.created=new Date,this.description=``,this.keywords=``,this.manager=``,this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject=``,this.title=``,this.views=[],this.media=[],this._definedNames=new i}return f(e,[{key:`xlsx`,get:function(){return this._xlsx||=new a(this),this._xlsx}},{key:`csv`,get:function(){return this._csv||=new o(this),this._csv}},{key:`nextId`,get:function(){for(var e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}},{key:`addWorksheet`,value:function(e,t){var n=this.nextId;t&&(typeof t==`string`?(console.trace(`tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }`),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace(`tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }`),t={properties:{tabColor:t}}));var i=this._worksheets.reduce((function(e,t){return(t&&t.orderNo)>e?t.orderNo:e}),0),a=new r(Object.assign({},t,{id:n,name:e,orderNo:i+1,workbook:this}));return this._worksheets[n]=a,a}},{key:`removeWorksheetEx`,value:function(e){delete this._worksheets[e.id]}},{key:`removeWorksheet`,value:function(e){var t=this.getWorksheet(e);t&&t.destroy()}},{key:`getWorksheet`,value:function(e){return e===void 0?this._worksheets.find(Boolean):typeof e==`number`?this._worksheets[e]:typeof e==`string`?this._worksheets.find((function(t){return t&&t.name===e})):void 0}},{key:`worksheets`,get:function(){return this._worksheets.slice(1).sort((function(e,t){return e.orderNo-t.orderNo})).filter(Boolean)}},{key:`eachSheet`,value:function(e){this.worksheets.forEach((function(t){e(t,t.id)}))}},{key:`definedNames`,get:function(){return this._definedNames}},{key:`clearThemes`,value:function(){this._themes=void 0}},{key:`addImage`,value:function(e){var t=this.media.length;return this.media.push(Object.assign({},e,{type:`image`})),t}},{key:`getImage`,value:function(e){return this.media[e]}},{key:`model`,get:function(){return{creator:this.creator||`Unknown`,lastModifiedBy:this.lastModifiedBy||`Unknown`,lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((function(e){return e.model})),sheets:this.worksheets.map((function(e){return e.model})).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}},set:function(e){var t=this;this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach((function(n){var i=n.id,a=n.name,o=n.state,s=e.sheets&&e.sheets.findIndex((function(e){return e.id===i}));(t._worksheets[i]=new r({id:i,name:a,orderNo:s,state:o,workbook:t})).model=n})),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}])}()},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,n){var r=e(`../utils/under-dash`),i=e(`../utils/col-cache`),a=e(`./range`),o=e(`./row`),s=e(`./column`),c=e(`./enums`),l=e(`./image`),d=e(`./table`),p=e(`./data-validations`),m=e(`../utils/encryptor`),h=e(`../utils/copy-style`).copyStyle;t.exports=function(){function e(t){u(this,e),t||={},this._workbook=t.workbook,this.id=t.id,this.orderNo=t.orderNo,this.name=t.name,this.state=t.state||`visible`,this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},t.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:`portrait`,horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!t.pageSetup||!t.pageSetup.fitToWidth&&!t.pageSetup.fitToHeight||t.pageSetup.scale),pageOrder:`downThenOver`,blackAndWhite:!1,draft:!1,cellComments:`None`,errors:`displayed`,scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},t.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},t.headerFooter),this.dataValidations=new p,this.views=t.views||[],this.autoFilter=t.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}return f(e,[{key:`name`,get:function(){return this._name},set:function(e){if(e===void 0&&(e=`sheet${this.id}`),this._name!==e){if(typeof e!=`string`)throw Error(`The name has to be a string.`);if(e===``)throw Error(`The name can't be empty.`);if(e===`History`)throw Error(`The name "History" is protected. Please use a different name.`);if(/[*?:/\\[\]]/.test(e))throw Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw Error(`The first or last character of worksheet name cannot be a single quotation mark: ${e}`);if(e&&e.length>31&&(console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`),e=e.substring(0,31)),this._workbook._worksheets.find((function(t){return t&&t.name.toLowerCase()===e.toLowerCase()})))throw Error(`Worksheet name already exists: ${e}`);this._name=e}}},{key:`workbook`,get:function(){return this._workbook}},{key:`destroy`,value:function(){this._workbook.removeWorksheetEx(this)}},{key:`dimensions`,get:function(){var e=new a;return this._rows.forEach((function(t){if(t){var n=t.dimensions;n&&e.expand(t.number,n.min,t.number,n.max)}})),e}},{key:`columns`,get:function(){return this._columns},set:function(e){var t=this;this._headerRowCount=e.reduce((function(e,t){var n=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,n)}),0);var n=1,r=this._columns=[];e.forEach((function(e){var i=new s(t,n++,!1);r.push(i),i.defn=e}))}},{key:`getColumnKey`,value:function(e){return this._keys[e]}},{key:`setColumnKey`,value:function(e,t){this._keys[e]=t}},{key:`deleteColumnKey`,value:function(e){delete this._keys[e]}},{key:`eachColumnKey`,value:function(e){r.each(this._keys,e)}},{key:`getColumn`,value:function(e){if(typeof e==`string`){var t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||=[],e>this._columns.length)for(var n=this._columns.length+1;n<=e;)this._columns.push(new s(this,n++));return this._columns[e-1]}},{key:`spliceColumns`,value:function(e,t){for(var n=this,r=this._rows.length,i=arguments.length,a=Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];if(a.length>0)for(var s=function(r){var i=[e,t];a.forEach((function(e){i.push(e[r]||null)}));var o=n.getRow(r+1);o.splice.apply(o,i)},c=0;c<r;c++)s(c);else this._rows.forEach((function(n){n&&n.splice(e,t)}));var l=a.length-t,u=e+t,d=this._columns.length;if(l<0)for(var f=e+a.length;f<=d;f++)this.getColumn(f).defn=this.getColumn(f-l).defn;else if(l>0)for(var p=d;p>=u;p--)this.getColumn(p+l).defn=this.getColumn(p).defn;for(var m=e;m<e+a.length;m++)this.getColumn(m).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,a.length)}},{key:`lastColumn`,get:function(){return this.getColumn(this.columnCount)}},{key:`columnCount`,get:function(){var e=0;return this.eachRow((function(t){e=Math.max(e,t.cellCount)})),e}},{key:`actualColumnCount`,get:function(){var e=[],t=0;return this.eachRow((function(n){n.eachCell((function(n){var r=n.col;e[r]||(e[r]=!0,t++)}))})),t}},{key:`_commitRow`,value:function(){}},{key:`_lastRowNumber`,get:function(){for(var e=this._rows,t=e.length;t>0&&e[t-1]===void 0;)t--;return t}},{key:`_nextRow`,get:function(){return this._lastRowNumber+1}},{key:`lastRow`,get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:`findRow`,value:function(e){return this._rows[e-1]}},{key:`findRows`,value:function(e,t){return this._rows.slice(e-1,e-1+t)}},{key:`rowCount`,get:function(){return this._lastRowNumber}},{key:`actualRowCount`,get:function(){var e=0;return this.eachRow((function(){e++})),e}},{key:`getRow`,value:function(e){var t=this._rows[e-1];return t||=this._rows[e-1]=new o(this,e),t}},{key:`getRows`,value:function(e,t){if(!(t<1)){for(var n=[],r=e;r<e+t;r++)n.push(this.getRow(r));return n}}},{key:`addRow`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`n`,n=this._nextRow,r=this.getRow(n);return r.values=e,this._setStyleOption(n,t[0]===`i`?t:`n`),r}},{key:`addRows`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`n`,r=[];return e.forEach((function(e){r.push(t.addRow(e,n))})),r}},{key:`insertRow`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`n`;return this.spliceRows(e,0,t),this._setStyleOption(e,n),this.getRow(e)}},{key:`insertRows`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`n`;if(this.spliceRows.apply(this,[e,0].concat(_(t))),n!==`n`)for(var r=0;r<t.length;r++)n[0]===`o`&&this.findRow(t.length+e+r)!==void 0?this._copyStyle(t.length+e+r,e+r,n[1]===`+`):n[0]===`i`&&this.findRow(e-1)!==void 0&&this._copyStyle(e-1,e+r,n[1]===`+`);return this.getRows(e,t.length)}},{key:`_setStyleOption`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`n`;t[0]===`o`&&this.findRow(e+1)!==void 0?this._copyStyle(e+1,e,t[1]===`+`):t[0]===`i`&&this.findRow(e-1)!==void 0&&this._copyStyle(e-1,e,t[1]===`+`)}},{key:`_copyStyle`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=this.getRow(e),i=this.getRow(t);i.style=h(r.style),r.eachCell({includeEmpty:n},(function(e,t){i.getCell(t).style=h(e.style)})),i.height=r.height}},{key:`duplicateRow`,value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=this._rows[e-1],a=Array(t).fill(i.values);this.spliceRows.apply(this,[e+1,r?0:t].concat(_(a)));for(var o=function(){var t=n._rows[e+s];t.style=i.style,t.height=i.height,i.eachCell({includeEmpty:!0},(function(e,n){t.getCell(n).style=e.style}))},s=0;s<t;s++)o()}},{key:`spliceRows`,value:function(e,t){for(var n=this,r=e+t,i=arguments.length,a=Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];var s,c,l=a.length,u=l-t,d=this._rows.length;if(u<0){e===d&&(this._rows[d-1]=void 0);var f=function(){if(c=n._rows[s-1]){var e=n.getRow(s+u);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},(function(t,n){e.getCell(n).style=t.style})),n._rows[s-1]=void 0}else n._rows[s+u-1]=void 0};for(s=r;s<=d;s++)f()}else if(u>0){var p=function(){if(c=n._rows[s-1]){var e=n.getRow(s+u);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},(function(t,r){if(e.getCell(r).style=t.style,t._value.constructor.name===`MergeValue`){var i=n.getRow(t._row._number+l).getCell(r),a=t._value._master,o=n.getRow(a._row._number+l).getCell(a._column._number);i.merge(o)}}))}else n._rows[s+u-1]=void 0};for(s=d;s>=r;s--)p()}for(s=0;s<l;s++){var m=this.getRow(e+s);m.style={},m.values=a[s]}this.workbook.definedNames.spliceRows(this.name,e,t,l)}},{key:`eachRow`,value:function(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty)for(var n=this._rows.length,r=1;r<=n;r++)t(this.getRow(r),r);else this._rows.forEach((function(e){e&&e.hasValues&&t(e,e.number)}))}},{key:`getSheetValues`,value:function(){var e=[];return this._rows.forEach((function(t){t&&(e[t.number]=t.values)})),e}},{key:`findCell`,value:function(e,t){var n=i.getAddress(e,t),r=this._rows[n.row-1];return r?r.findCell(n.col):void 0}},{key:`getCell`,value:function(e,t){var n=i.getAddress(e,t);return this.getRow(n.row).getCellEx(n)}},{key:`mergeCells`,value:function(){var e=new a([...arguments]);this._mergeCellsInternal(e)}},{key:`mergeCellsWithoutStyle`,value:function(){var e=new a([...arguments]);this._mergeCellsInternal(e,!0)}},{key:`_mergeCellsInternal`,value:function(e,t){r.each(this._merges,(function(t){if(t.intersects(e))throw Error(`Cannot merge already merged cells`)}));for(var n=this.getCell(e.top,e.left),i=e.top;i<=e.bottom;i++)for(var a=e.left;a<=e.right;a++)(i>e.top||a>e.left)&&this.getCell(i,a).merge(n,t);this._merges[n.address]=e}},{key:`_unMergeMaster`,value:function(e){var t=this._merges[e.address];if(t){for(var n=t.top;n<=t.bottom;n++)for(var r=t.left;r<=t.right;r++)this.getCell(n,r).unmerge();delete this._merges[e.address]}}},{key:`hasMerges`,get:function(){return r.some(this._merges,Boolean)}},{key:`unMergeCells`,value:function(){for(var e=new a([...arguments]),t=e.top;t<=e.bottom;t++)for(var n=e.left;n<=e.right;n++){var r=this.findCell(t,n);r&&(r.type===c.ValueType.Merge?this._unMergeMaster(r.master):this._merges[r.address]&&this._unMergeMaster(r))}}},{key:`fillFormula`,value:function(e,t,n){var r,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`shared`,o=i.decode(e),s=o.top,c=o.left,l=o.bottom,u=o.right,d=u-c+1,f=i.encodeAddress(s,c),p=a===`shared`;r=typeof n==`function`?n:Array.isArray(n)?Array.isArray(n[0])?function(e,t){return n[e-s][t-c]}:function(e,t){return n[(e-s)*d+(t-c)]}:function(){};for(var m=!0,h=s;h<=l;h++)for(var g=c;g<=u;g++)m?(this.getCell(h,g).value={shareType:a,formula:t,ref:e,result:r(h,g)},m=!1):this.getCell(h,g).value=p?{sharedFormula:f,result:r(h,g)}:r(h,g)}},{key:`addImage`,value:function(e,t){var n={type:`image`,imageId:e,range:t};this._media.push(new l(this,n))}},{key:`getImages`,value:function(){return this._media.filter((function(e){return e.type===`image`}))}},{key:`addBackgroundImage`,value:function(e){var t={type:`background`,imageId:e};this._media.push(new l(this,t))}},{key:`getBackgroundImageId`,value:function(){var e=this._media.find((function(e){return e.type===`background`}));return e&&e.imageId}},{key:`protect`,value:function(e,t){var n=this;return new Promise((function(r){n.sheetProtection={sheet:!0},t&&`spinCount`in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(n.sheetProtection.algorithmName=`SHA-512`,n.sheetProtection.saltValue=m.randomBytes(16).toString(`base64`),n.sheetProtection.spinCount=t&&`spinCount`in t?t.spinCount:1e5,n.sheetProtection.hashValue=m.convertPasswordToHash(e,`SHA512`,n.sheetProtection.saltValue,n.sheetProtection.spinCount)),t&&(n.sheetProtection=Object.assign(n.sheetProtection,t),!e&&`spinCount`in t&&delete n.sheetProtection.spinCount),r()}))}},{key:`unprotect`,value:function(){this.sheetProtection=null}},{key:`addTable`,value:function(e){var t=new d(this,e);return this.tables[e.name]=t,t}},{key:`getTable`,value:function(e){return this.tables[e]}},{key:`removeTable`,value:function(e){delete this.tables[e]}},{key:`getTables`,value:function(){return Object.values(this.tables)}},{key:`addConditionalFormatting`,value:function(e){this.conditionalFormattings.push(e)}},{key:`removeConditionalFormatting`,value:function(e){typeof e==`number`?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}},{key:`tabColor`,get:function(){return console.trace(`worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor`),this.properties.tabColor},set:function(e){console.trace(`worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor`),this.properties.tabColor=e}},{key:`model`,get:function(){var e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((function(e){return e.model})),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((function(e){return e.model})),conditionalFormattings:this.conditionalFormattings};e.cols=s.toModel(this.columns);var t=e.rows=[],n=e.dimensions=new a;return this._rows.forEach((function(e){var r=e&&e.model;r&&(n.expand(r.number,r.min,r.number,r.max),t.push(r))})),e.merges=[],r.each(this._merges,(function(t){e.merges.push(t.range)})),e},set:function(e){var t=this;this.name=e.name,this._columns=s.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new p(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map((function(e){return new l(t,e)})),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((function(e,t){var n=new d;return n.model=t,e[t.name]=n,e}),{}),this.conditionalFormattings=e.conditionalFormattings}},{key:`_parseRows`,value:function(e){var t=this;this._rows=[],e.rows.forEach((function(e){var n=new o(t,e.number);t._rows[n.number-1]=n,n.model=e}))}},{key:`_parseMergeCells`,value:function(e){var t=this;r.each(e.mergeCells,(function(e){t.mergeCellsWithoutStyle(e)}))}}])}()},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,n){e(`core-js/modules/es.promise`),e(`core-js/modules/es.promise.finally`),e(`core-js/modules/es.object.assign`),e(`core-js/modules/es.object.keys`),e(`core-js/modules/es.object.values`),e(`core-js/modules/es.symbol`),e(`core-js/modules/es.symbol.async-iterator`),e(`core-js/modules/es.array.iterator`),e(`core-js/modules/es.array.includes`),e(`core-js/modules/es.array.find-index`),e(`core-js/modules/es.array.find`),e(`core-js/modules/es.string.from-code-point`),e(`core-js/modules/es.string.includes`),e(`core-js/modules/es.number.is-nan`),e(`regenerator-runtime/runtime`);var r={Workbook:e(`./doc/workbook`)},i=e(`./doc/enums`);Object.keys(i).forEach((function(e){r[e]=i[e]})),t.exports=r},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,n){var r=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`);function i(e){return typeof e==`string`?e:r?r.decode(e):e.toString()}n.bufferToString=i},{}],17:[function(e,t,n){var r=typeof TextEncoder>`u`?null:new TextEncoder(`utf-8`),i=e(`buffer`).Buffer;function a(e){return typeof e==`string`?r?i.from(r.encode(e).buffer):i.from(e):e}n.stringToBuffer=a},{buffer:220}],18:[function(e,t,n){var r=e(`./under-dash`),i=e(`./col-cache`);t.exports=function(){function e(t){u(this,e),this.template=t,this.sheets={}}return f(e,[{key:`addCell`,value:function(e){this.addCellEx(i.decodeEx(e))}},{key:`getCell`,value:function(e){return this.findCellEx(i.decodeEx(e),!0)}},{key:`findCell`,value:function(e){return this.findCellEx(i.decodeEx(e),!1)}},{key:`findCellAt`,value:function(e,t,n){var r=this.sheets[e],i=r&&r[t];return i&&i[n]}},{key:`addCellEx`,value:function(e){if(e.top)for(var t=e.top;t<=e.bottom;t++)for(var n=e.left;n<=e.right;n++)this.getCellAt(e.sheetName,t,n);else this.findCellEx(e,!0)}},{key:`getCellEx`,value:function(e){return this.findCellEx(e,!0)}},{key:`findCellEx`,value:function(e,t){var n=this.findSheet(e,t),r=this.findSheetRow(n,e,t);return this.findRowCell(r,e,t)}},{key:`getCellAt`,value:function(e,t,n){var r=this.sheets[e]||(this.sheets[e]=[]),a=r[t]||(r[t]=[]);return a[n]||(a[n]={sheetName:e,address:i.n2l(n)+t,row:t,col:n})}},{key:`removeCellEx`,value:function(e){var t=this.findSheet(e);if(t){var n=this.findSheetRow(t,e);n&&delete n[e.col]}}},{key:`forEachInSheet`,value:function(e,t){var n=this.sheets[e];n&&n.forEach((function(e,n){e&&e.forEach((function(e,r){e&&t(e,n,r)}))}))}},{key:`forEach`,value:function(e){var t=this;r.each(this.sheets,(function(n,r){t.forEachInSheet(r,e)}))}},{key:`map`,value:function(e){var t=[];return this.forEach((function(n){t.push(e(n))})),t}},{key:`findSheet`,value:function(e,t){var n=e.sheetName;return this.sheets[n]?this.sheets[n]:t?this.sheets[n]=[]:void 0}},{key:`findSheetRow`,value:function(e,t,n){var r=t.row;return e&&e[r]?e[r]:n?e[r]=[]:void 0}},{key:`findRowCell`,value:function(e,t,n){var r=t.col;return e&&e[r]?e[r]:n?e[r]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}},{key:`spliceRows`,value:function(e,t,n,r){var i=this.sheets[e];if(i){for(var a=[],o=0;o<r;o++)a.push([]);i.splice.apply(i,[t,n].concat(a))}}},{key:`spliceColumns`,value:function(e,t,n,i){var a=this.sheets[e];if(a){for(var o=[],s=0;s<i;s++)o.push(null);r.each(a,(function(e){e.splice.apply(e,[t,n].concat(o))}))}}}])}()},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,n){var r=/^[A-Z]+\d+$/,i={_dictionary:`ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),_l2nFill:0,_l2n:{},_n2l:[],_level:function(e){return e<=26?1:e<=676?2:3},_fill:function(e){var t,n,r,i,a,o=1;if(e>=4)throw Error(`Out of bounds. Excel supports columns from 1 to 16384`);if(this._l2nFill<1&&e>=1){for(;o<=26;)t=this._dictionary[o-1],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(o=27;o<=702;)r=(n=o-27)%26,i=Math.floor(n/26),t=this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(o=703;o<=16384;)r=(n=o-703)%26,i=Math.floor(n/26)%26,a=Math.floor(n/676),t=this._dictionary[a]+this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=3}},l2n:function(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw Error(`Out of bounds. Invalid column letter: ${e}`);return this._l2n[e]},n2l:function(e){if(e<1||e>16384)throw Error(`${e} is out of bounds. Excel supports columns from 1 to 16384`);return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress:function(e){if(!r.test(e))throw Error(`Invalid Address: ${e}`);return!0},decodeAddress:function(e){var t=e.length<5&&this._hash[e];if(t)return t;for(var n,r=!1,i=``,a=0,o=!1,s=``,c=0,l=0;l<e.length;l++)if(n=e.charCodeAt(l),!o&&n>=65&&n<=90)r=!0,i+=e[l],a=26*a+n-64;else if(n>=48&&n<=57)o=!0,s+=e[l],c=10*c+n-48;else if(o&&r&&n!==36)break;if(r){if(a>16384)throw Error(`Out of bounds. Invalid column letter: ${i}`)}else a=void 0;o||(c=void 0);var u={address:e=i+s,col:a,row:c,$col$row:`\$${i}\$${s}`};return a<=100&&c<=100&&(this._hash[e]=u,this._hash[u.$col$row]=u),u},getAddress:function(e,t){if(t){var n=this.n2l(t)+e;return this.decodeAddress(n)}return this.decodeAddress(e)},decode:function(e){var t=e.split(`:`);if(t.length===2){var n=this.decodeAddress(t[0]),r=this.decodeAddress(t[1]),i={top:Math.min(n.row,r.row),left:Math.min(n.col,r.col),bottom:Math.max(n.row,r.row),right:Math.max(n.col,r.col)};return i.tl=this.n2l(i.left)+i.top,i.br=this.n2l(i.right)+i.bottom,i.dimensions=`${i.tl}:${i.br}`,i}return this.decodeAddress(e)},decodeEx:function(e){var t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),n=t[1]||t[2],r=t[3],i=r.split(`:`);if(i.length>1){var a=this.decodeAddress(i[0]),o=this.decodeAddress(i[1]),s=Math.min(a.row,o.row),c=Math.min(a.col,o.col),l=Math.max(a.row,o.row),u=Math.max(a.col,o.col);return a=this.n2l(c)+s,o=this.n2l(u)+l,{top:s,left:c,bottom:l,right:u,sheetName:n,tl:{address:a,col:c,row:s,$col$row:`\$${this.n2l(c)}\$${s}`,sheetName:n},br:{address:o,col:u,row:l,$col$row:`\$${this.n2l(u)}\$${l}`,sheetName:n},dimensions:`${a}:${o}`}}if(r.startsWith(`#`))return n?{sheetName:n,error:r}:{error:r};var d=this.decodeAddress(r);return n?$i({sheetName:n},d):d},encodeAddress:function(e,t){return i.n2l(t)+e},encode:function(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw Error(`Can only encode with 2 or 4 arguments`)}},inRange:function(e,t){var n=l(e,5),r=n[0],i=n[1],a=n[3],o=n[4],s=l(t,2),c=s[0],u=s[1];return c>=r&&c<=a&&u>=i&&u<=o}};t.exports=i},{}],20:[function(e,t,n){var r=function(e,t){return $i($i({},e),t.reduce((function(t,n){return e[n]&&(t[n]=$i({},e[n])),t}),{}))},i=function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];e[n]&&(t[n]=r(e[n],i))},a=function(e){return Object.keys(e).length===0};n.copyStyle=function(e){if(!e)return e;if(a(e))return{};var t=$i({},e);return i(e,t,`font`,[`color`]),i(e,t,`alignment`),i(e,t,`protection`),e.border&&(i(e,t,`border`),i(e.border,t.border,`top`,[`color`]),i(e.border,t.border,`left`,[`color`]),i(e.border,t.border,`bottom`,[`color`]),i(e.border,t.border,`right`,[`color`]),i(e.border,t.border,`diagonal`,[`color`])),e.fill&&(i(e,t,`fill`,[`fgColor`,`bgColor`,`center`]),e.fill.stops&&(t.fill.stops=e.fill.stops.map((function(e){return r(e,[`color`])})))),t}},{}],21:[function(e,t,n){(function(n){(function(){var r=e(`crypto`);t.exports={hash:function(e){for(var t=r.createHash(e),i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.update(n.concat(a)),t.digest()},convertPasswordToHash:function(e,t,i,a){if(t=t.toLowerCase(),r.getHashes().indexOf(t)<0)throw Error(`Hash algorithm '${t}' not supported!`);for(var o=n.from(e,`utf16le`),s=this.hash(t,n.from(i,`base64`),o),c=0;c<a;c++){var l=n.alloc(4);l.writeUInt32LE(c,0),s=this.hash(t,s,l)}return s.toString(`base64`)},randomBytes:function(e){return r.randomBytes(e)}}}).call(this)}).call(this,e(`buffer`).Buffer)},{buffer:220,crypto:390}],22:[function(e,t,n){var r=e(`saxes`).SaxesParser,i=e(`readable-stream`).PassThrough,a=e(`./browser-buffer-decode`).bufferToString;t.exports=function(){var e,t=(e=Gi.mark((function e(t){var n,o,s,c,l,u,d,f,p;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.pipe&&!t[Symbol.asyncIterator]&&(t=t.pipe(new i)),(n=new r).on(`error`,(function(e){o=e})),s=[],n.on(`opentag`,(function(e){return s.push({eventType:`opentag`,value:e})})),n.on(`text`,(function(e){return s.push({eventType:`text`,value:e})})),n.on(`closetag`,(function(e){return s.push({eventType:`closetag`,value:e})})),c=!1,l=!1,e.prev=9,d=ea(t);case 11:return e.next=13,Ii(d.next());case 13:if(!(c=!(f=e.sent).done)){e.next=24;break}if(p=f.value,n.write(a(p)),!o){e.next=18;break}throw o;case 18:return e.next=20,s;case 20:s=[];case 21:c=!1,e.next=11;break;case 24:e.next=30;break;case 26:e.prev=26,e.t0=e.catch(9),l=!0,u=e.t0;case 30:if(e.prev=30,e.prev=31,!c||d.return==null){e.next=35;break}return e.next=35,Ii(d.return());case 35:if(e.prev=35,!l){e.next=38;break}throw u;case 38:return e.finish(35);case 39:return e.finish(30);case 40:case`end`:return e.stop()}}),e,null,[[9,26,30,40],[31,,35,39]])})),function(){return new Li(e.apply(this,arguments))});return function(e){return t.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,n){var r=e(`./col-cache`),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function o(e,t,n){var o=r.decode(t),s=r.decode(n);return e.replace(i,(function(e,t,n,i,c){if(c)return e;var l=a.exec(i);if(l){var u=l[1],d=l[2].toUpperCase(),f=l[3],p=l[4];if(d.length>3||d.length===3&&d>`XFD`)return e;var m=r.l2n(d),h=parseInt(p,10);return u||(m+=s.col-o.col),f||(h+=s.row-o.row),(t||``)+(u||``)+r.n2l(m)+(f||``)+h}return e}))}t.exports={slideFormula:o}},{"./col-cache":19}],24:[function(e,t,n){(function(n,r){(function(){var i=e(`readable-stream`),a=e(`./utils`),o=e(`./string-buf`),s=function(){function e(t,n){u(this,e),this._data=t,this._encoding=n}return f(e,[{key:`length`,get:function(){return this.toBuffer().length}},{key:`copy`,value:function(e,t,n,r){return this.toBuffer().copy(e,t,n,r)}},{key:`toBuffer`,value:function(){return this._buffer||=r.from(this._data,this._encoding),this._buffer}}])}(),c=function(){function e(t){u(this,e),this._data=t}return f(e,[{key:`length`,get:function(){return this._data.length}},{key:`copy`,value:function(e,t,n,r){return this._data._buf.copy(e,t,n,r)}},{key:`toBuffer`,value:function(){return this._data.toBuffer()}}])}(),l=function(){function e(t){u(this,e),this._data=t}return f(e,[{key:`length`,get:function(){return this._data.length}},{key:`copy`,value:function(e,t,n,r){this._data.copy(e,t,n,r)}},{key:`toBuffer`,value:function(){return this._data}}])}(),d=function(){function e(t){u(this,e),this.size=t,this.buffer=r.alloc(t),this.iRead=0,this.iWrite=0}return f(e,[{key:`toBuffer`,value:function(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;var e=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}},{key:`length`,get:function(){return this.iWrite-this.iRead}},{key:`eod`,get:function(){return this.iRead===this.iWrite}},{key:`full`,get:function(){return this.iWrite===this.size}},{key:`read`,value:function(e){var t;return e===0?null:e===void 0||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=r.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}},{key:`write`,value:function(e,t,n){var r=Math.min(n,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+r),this.iWrite+=r,r}}])}(),p=function(e){e||={},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};a.inherits(p,i.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map((function(e){return e.toBuffer()})))}},_getWritableBuffer:function(){if(this.buffers.length){var e=this.buffers[this.buffers.length-1];if(!e.full)return e}var t=new d(this.bufSize);return this.buffers.push(t),t},_pipe:function(e){var t=this;return Pi(Gi.mark((function n(){var r;return Gi.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=function(t){return new Promise((function(n){t.write(e.toBuffer(),(function(){n()}))}))},n.next=3,Promise.all(t.pipes.map(r));case 3:case`end`:return n.stop()}}),n)})))()},_writeToBuffers:function(e){for(var t=0,n=e.length;t<n;)t+=this._getWritableBuffer().write(e,t,n-t)},write:function(e,t,i){var u=this;return Pi(Gi.mark((function d(){var f;return Gi.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(t instanceof Function&&(i=t,t=`utf8`),i||=a.nop,!(e instanceof o)){d.next=6;break}f=new c(e),d.next=15;break;case 6:if(!(e instanceof r)){d.next=10;break}f=new l(e),d.next=15;break;case 10:if(!(typeof e==`string`||e instanceof String||e instanceof ArrayBuffer)){d.next=14;break}f=new s(e,t),d.next=15;break;case 14:throw Error(`Chunk must be one of type String, Buffer or StringBuf.`);case 15:if(!u.pipes.length){d.next=31;break}if(!u.batch){d.next=21;break}for(u._writeToBuffers(f);!u.corked&&u.buffers.length>1;)u._pipe(u.buffers.shift());d.next=29;break;case 21:if(u.corked){d.next=27;break}return d.next=24,u._pipe(f);case 24:i(),d.next=29;break;case 27:u._writeToBuffers(f),n.nextTick(i);case 29:d.next=34;break;case 31:u.paused||u.emit(`data`,f.toBuffer()),u._writeToBuffers(f),u.emit(`readable`);case 34:return d.abrupt(`return`,!0);case 35:case`end`:return d.stop()}}),d)})))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(e,t,n){var r=this,i=function(e){e?n(e):(r._flush(),r.pipes.forEach((function(e){e.end()})),r.emit(`finish`))};e?this.write(e,t,i):i()},read:function(e){var t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){var n=this.buffers[0],i=n.read(e);e-=i.length,t.push(i),n.eod&&n.full&&this.buffers.shift()}return r.concat(t)}return t=this.buffers.map((function(e){return e.toBuffer()})).filter(Boolean),this.buffers=[],r.concat(t)},setEncoding:function(e){this.encoding=e},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe:function(e){this.pipes=this.pipes.filter((function(t){return t!==e}))},unshift:function(){throw Error(`Not Implemented`)},wrap:function(){throw Error(`Not Implemented`)}}),t.exports=p}).call(this)}).call(this,e(`_process`),e(`buffer`).Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,n){(function(e){(function(){t.exports=function(){function t(n){u(this,t),this._buf=e.alloc(n&&n.size||16384),this._encoding=n&&n.encoding||`utf8`,this._inPos=0,this._buffer=void 0}return f(t,[{key:`length`,get:function(){return this._inPos}},{key:`capacity`,get:function(){return this._buf.length}},{key:`buffer`,get:function(){return this._buf}},{key:`toBuffer`,value:function(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:`reset`,value:function(e){e||=0,this._buffer=void 0,this._inPos=e}},{key:`_grow`,value:function(t){for(var n=2*this._buf.length;n<t;)n*=2;var r=e.alloc(n);this._buf.copy(r,0),this._buf=r}},{key:`addText`,value:function(e){this._buffer=void 0;for(var t=this._inPos+this._buf.write(e,this._inPos,this._encoding);t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}},{key:`addStringBuf`,value:function(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}])}()}).call(this)}).call(this,e(`buffer`).Buffer)},{buffer:220}],26:[function(e,t,n){var r=Object.prototype.toString,i=/["&<>]/,a={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach((function(n){t(e[n],n)})))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some((function(n){return t(e[n],n)})))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every((function(n){return t(e[n],n)})))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map((function(n){return t(e[n],n)})):[]},keyBy:function(e,t){return e.reduce((function(e,n){return e[n[t]]=n,e}),{})},isEqual:function(e,t){var n,r=typeof e,i=typeof t,o=Array.isArray(e),s=Array.isArray(t);if(r!==i)return!1;if(typeof e==`object`){if(o||s)return!(!o||!s)&&e.length===t.length&&e.every((function(e,n){var r=t[n];return a.isEqual(e,r)}));if(e===null||t===null)return e===t;if(n=Object.keys(e),Object.keys(t).length!==n.length)return!1;var c,l=Xi(n);try{for(l.s();!(c=l.n()).done;){var u=c.value;if(!t.hasOwnProperty(u))return!1}}catch(e){l.e(e)}finally{l.f()}return a.every(e,(function(e,n){var r=t[n];return a.isEqual(e,r)}))}return e===t},escapeHtml:function(e){var t=i.exec(e);if(!t)return e;for(var n=``,r=``,a=0,o=t.index;o<e.length;o++){switch(e.charAt(o)){case`"`:r=`"`;break;case`&`:r=`&`;break;case`'`:r=`'`;break;case`<`:r=`<`;break;case`>`:r=`>`;break;default:continue}a!==o&&(n+=e.substring(a,o)),a=o+1,n+=r}return a===o?n:n+e.substring(a,o)},strcmp:function(e,t){return e<t?-1:+(e>t)},isUndefined:function(e){return r.call(e)===`[object Undefined]`},isObject:function(e){return r.call(e)===`[object Object]`},deepMerge:function(){var e,t,n,r=arguments[0]||{},i=arguments.length;function o(i,o){e=r[o],n=Array.isArray(i),a.isObject(i)||n?(n?(n=!1,t=e&&Array.isArray(e)?e:[]):t=e&&a.isObject(e)?e:{},r[o]=a.deepMerge(t,i)):a.isUndefined(i)||(r[o]=i)}for(var s=0;s<i;s++)a.each(arguments[s],o);return r}};t.exports=a},{}],27:[function(e,t,n){(function(n,r){(function(){var i=e(`fs`),a=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,o={nop:function(){},promiseImmediate:function(e){return new Promise((function(t){n.setImmediate?r((function(){t(e)})):setTimeout((function(){t(e)}),1)}))},inherits:function(e,t,n,r){e.super_=t,r||(r=n,n=null),n&&Object.keys(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));var i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};r&&Object.keys(r).forEach((function(e){i[e]=Object.getOwnPropertyDescriptor(r,e)})),e.prototype=Object.create(t.prototype,i)},dateToExcel:function(e,t){return 25569+e.getTime()/864e5-(t?1462:0)},excelToDate:function(e,t){var n=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(n)},parsePath:function(e){var t=e.lastIndexOf(`/`);return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath:function(e){var t=o.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode:function(e){var t=a.exec(e);if(!t)return e;for(var n=``,r=``,i=0,o=t.index;o<e.length;o++){var s=e.charCodeAt(o);switch(s){case 34:r=`"`;break;case 38:r=`&`;break;case 39:r=`'`;break;case 60:r=`<`;break;case 62:r=`>`;break;case 127:r=``;break;default:if(s<=31&&(s<=8||s>=11&&s!==13)){r=``;break}continue}i!==o&&(n+=e.substring(i,o)),i=o+1,r&&(n+=r)}return i===o?n:n+e.substring(i,o)},xmlDecode:function(e){return e.replace(/&([a-z]*);/g,(function(e){switch(e){case`<`:return`<`;case`>`:return`>`;case`&`:return`&`;case`'`:return`'`;case`"`:return`"`;default:return e}}))},validInt:function(e){var t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:function(e){return!!e&&(e=(e=e.replace(/\[[^\]]*]/g,``)).replace(/"[^"]*"/g,``)).match(/[ymdhMsb]+/)!==null},fs:{exists:function(e){return new Promise((function(t){i.access(e,i.constants.F_OK,(function(e){t(!e)}))}))}},toIsoDateString:function(e){return e.toIsoString().subsstr(0,10)},parseBoolean:function(e){return!0===e||e===`true`||e===1||e===`1`}};t.exports=o}).call(this)}).call(this,Ri===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:Ri,e(`timers`).setImmediate)},{fs:216,timers:523}],28:[function(e,t,n){var r=e(`./under-dash`),i=e(`./utils`),a=`<`,o=`>`,s=`</`,c=`/>`;function l(e,t,n){e.push(` ${t}="${i.xmlEncode(n.toString())}"`)}function d(e,t){if(t){var n=[];r.each(t,(function(e,t){e!==void 0&&l(n,t,e)})),e.push(n.join(``))}}var p=function(){function e(){u(this,e),this._xml=[],this._stack=[],this._rollbacks=[]}return f(e,[{key:`tos`,get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:`cursor`,get:function(){return this._xml.length}},{key:`openXml`,value:function(e){var t=this._xml;t.push(`<?xml`),d(t,e),t.push(`?>
|
|
21
21
|
`)}},{key:`openNode`,value:function(e,t){var n=this.tos,r=this._xml;n&&this.open&&r.push(o),this._stack.push(e),r.push(a),r.push(e),d(r,t),this.leaf=!0,this.open=!0}},{key:`addAttribute`,value:function(e,t){if(!this.open)throw Error(`Cannot write attributes to node if it is not open`);t!==void 0&&l(this._xml,e,t)}},{key:`addAttributes`,value:function(e){if(!this.open)throw Error(`Cannot write attributes to node if it is not open`);d(this._xml,e)}},{key:`writeText`,value:function(e){var t=this._xml;this.open&&=(t.push(o),!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}},{key:`writeXml`,value:function(e){this.open&&=(this._xml.push(o),!1),this.leaf=!1,this._xml.push(e)}},{key:`closeNode`,value:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push(c):(t.push(s),t.push(e),t.push(o)),this.open=!1,this.leaf=!1}},{key:`leafNode`,value:function(e,t,n){this.openNode(e,t),n!==void 0&&this.writeText(n),this.closeNode()}},{key:`closeAll`,value:function(){for(;this._stack.length;)this.closeNode()}},{key:`addRollback`,value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:`commit`,value:function(){this._rollbacks.pop()}},{key:`rollback`,value:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}},{key:`xml`,get:function(){return this.closeAll(),this._xml.join(``)}}])}();p.StdDocAttributes={version:`1.0`,encoding:`UTF-8`,standalone:`yes`},t.exports=p},{"./under-dash":26,"./utils":27}],29:[function(e,t,n){(function(n){(function(){var r=e(`events`),i=e(`jszip`),a=e(`./stream-buf`),o=e(`./browser-buffer-encode`).stringToBuffer;t.exports={ZipWriter:function(e){function t(e){var n;return u(this,t),(n=X(this,t)).options=Object.assign({type:`nodebuffer`,compression:`DEFLATE`},e),n.zip=new i,n.stream=new a,n}return J(t,e),f(t,[{key:`append`,value:function(e,t){t.hasOwnProperty(`base64`)&&t.base64?this.zip.file(t.name,e,{base64:!0}):(n.browser&&typeof e==`string`&&(e=o(e)),this.zip.file(t.name,e))}},{key:`finalize`,value:function(){var e=Pi(Gi.mark((function e(){var t;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.zip.generateAsync(this.options);case 2:t=e.sent,this.stream.end(t),this.emit(`finish`);case 5:case`end`:return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:`read`,value:function(e){return this.stream.read(e)}},{key:`setEncoding`,value:function(e){return this.stream.setEncoding(e)}},{key:`pause`,value:function(){return this.stream.pause()}},{key:`resume`,value:function(){return this.stream.resume()}},{key:`isPaused`,value:function(){return this.stream.isPaused()}},{key:`pipe`,value:function(e,t){return this.stream.pipe(e,t)}},{key:`unpipe`,value:function(e){return this.stream.unpipe(e)}},{key:`unshift`,value:function(e){return this.stream.unshift(e)}},{key:`wrap`,value:function(e){return this.stream.wrap(e)}}])}(r.EventEmitter)}}).call(this)}).call(this,e(`_process`))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,n){t.exports={0:{f:`General`},1:{f:`0`},2:{f:`0.00`},3:{f:`#,##0`},4:{f:`#,##0.00`},9:{f:`0%`},10:{f:`0.00%`},11:{f:`0.00E+00`},12:{f:`# ?/?`},13:{f:`# ??/??`},14:{f:`mm-dd-yy`},15:{f:`d-mmm-yy`},16:{f:`d-mmm`},17:{f:`mmm-yy`},18:{f:`h:mm AM/PM`},19:{f:`h:mm:ss AM/PM`},20:{f:`h:mm`},21:{f:`h:mm:ss`},22:{f:`m/d/yy "h":mm`},27:{"zh-tw":`[$-404]e/m/d`,"zh-cn":`yyyy"年"m"月"`,"ja-jp":`[$-411]ge.m.d`,"ko-kr":`yyyy"年" mm"月" dd"日"`},28:{"zh-tw":`[$-404]e"年"m"月"d"日"`,"zh-cn":`m"月"d"日"`,"ja-jp":`[$-411]ggge"年"m"月"d"日"`,"ko-kr":`mm-dd`},29:{"zh-tw":`[$-404]e"年"m"月"d"日"`,"zh-cn":`m"月"d"日"`,"ja-jp":`[$-411]ggge"年"m"月"d"日"`,"ko-kr":`mm-dd`},30:{"zh-tw":`m/d/yy `,"zh-cn":`m-d-yy`,"ja-jp":`m/d/yy`,"ko-kr":`mm-dd-yy`},31:{"zh-tw":`yyyy"年"m"月"d"日"`,"zh-cn":`yyyy"年"m"月"d"日"`,"ja-jp":`yyyy"年"m"月"d"日"`,"ko-kr":`yyyy"년" mm"월" dd"일"`},32:{"zh-tw":`hh"時"mm"分"`,"zh-cn":`h"时"mm"分"`,"ja-jp":`h"時"mm"分"`,"ko-kr":`h"시" mm"분"`},33:{"zh-tw":`hh"時"mm"分"ss"秒"`,"zh-cn":`h"时"mm"分"ss"秒"`,"ja-jp":`h"時"mm"分"ss"秒"`,"ko-kr":`h"시" mm"분" ss"초"`},34:{"zh-tw":`上午/下午 hh"時"mm"分"`,"zh-cn":`上午/下午 h"时"mm"分"`,"ja-jp":`yyyy"年"m"月"`,"ko-kr":`yyyy-mm-dd`},35:{"zh-tw":`上午/下午 hh"時"mm"分"ss"秒"`,"zh-cn":`上午/下午 h"时"mm"分"ss"秒"`,"ja-jp":`m"月"d"日"`,"ko-kr":`yyyy-mm-dd`},36:{"zh-tw":`[$-404]e/m/d`,"zh-cn":`yyyy"年"m"月"`,"ja-jp":`[$-411]ge.m.d`,"ko-kr":`yyyy"年" mm"月" dd"日"`},37:{f:`#,##0 ;(#,##0)`},38:{f:`#,##0 ;[Red](#,##0)`},39:{f:`#,##0.00 ;(#,##0.00)`},40:{f:`#,##0.00 ;[Red](#,##0.00)`},45:{f:`mm:ss`},46:{f:`[h]:mm:ss`},47:{f:`mmss.0`},48:{f:`##0.0E+0`},49:{f:`@`},50:{"zh-tw":`[$-404]e/m/d`,"zh-cn":`yyyy"年"m"月"`,"ja-jp":`[$-411]ge.m.d`,"ko-kr":`yyyy"年" mm"月" dd"日"`},51:{"zh-tw":`[$-404]e"年"m"月"d"日"`,"zh-cn":`m"月"d"日"`,"ja-jp":`[$-411]ggge"年"m"月"d"日"`,"ko-kr":`mm-dd`},52:{"zh-tw":`上午/下午 hh"時"mm"分"`,"zh-cn":`yyyy"年"m"月"`,"ja-jp":`yyyy"年"m"月"`,"ko-kr":`yyyy-mm-dd`},53:{"zh-tw":`上午/下午 hh"時"mm"分"ss"秒"`,"zh-cn":`m"月"d"日"`,"ja-jp":`m"月"d"日"`,"ko-kr":`yyyy-mm-dd`},54:{"zh-tw":`[$-404]e"年"m"月"d"日"`,"zh-cn":`m"月"d"日"`,"ja-jp":`[$-411]ggge"年"m"月"d"日"`,"ko-kr":`mm-dd`},55:{"zh-tw":`上午/下午 hh"時"mm"分"`,"zh-cn":`上午/下午 h"时"mm"分"`,"ja-jp":`yyyy"年"m"月"`,"ko-kr":`yyyy-mm-dd`},56:{"zh-tw":`上午/下午 hh"時"mm"分"ss"秒"`,"zh-cn":`上午/下午 h"时"mm"分"ss"秒"`,"ja-jp":`m"月"d"日"`,"ko-kr":`yyyy-mm-dd`},57:{"zh-tw":`[$-404]e/m/d`,"zh-cn":`yyyy"年"m"月"`,"ja-jp":`[$-411]ge.m.d`,"ko-kr":`yyyy"年" mm"月" dd"日"`},58:{"zh-tw":`[$-404]e"年"m"月"d"日"`,"zh-cn":`m"月"d"日"`,"ja-jp":`[$-411]ggge"年"m"月"d"日"`,"ko-kr":`mm-dd`},59:{"th-th":`t0`},60:{"th-th":`t0.00`},61:{"th-th":`t#,##0`},62:{"th-th":`t#,##0.00`},67:{"th-th":`t0%`},68:{"th-th":`t0.00%`},69:{"th-th":`t# ?/?`},70:{"th-th":`t# ??/??`},81:{"th-th":`d/m/bb`}}},{}],31:[function(e,t,n){t.exports={OfficeDocument:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`,Worksheet:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`,CalcChain:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain`,SharedStrings:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings`,Styles:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles`,Theme:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme`,Hyperlink:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`,Image:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,CoreProperties:`http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties`,ExtenderProperties:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties`,Comments:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`,VmlDrawing:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing`,Table:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/table`}},{}],32:[function(e,t,n){var r=e(`../../utils/parse-sax`),i=e(`../../utils/xml-stream`);t.exports=function(){function e(){u(this,e)}return f(e,[{key:`prepare`,value:function(){}},{key:`render`,value:function(){}},{key:`parseOpen`,value:function(e){}},{key:`parseText`,value:function(e){}},{key:`parseClose`,value:function(e){}},{key:`reconcile`,value:function(e,t){}},{key:`reset`,value:function(){this.model=null,this.map&&Object.values(this.map).forEach((function(t){t instanceof e?t.reset():t.xform&&t.xform.reset()}))}},{key:`mergeModel`,value:function(e){this.model=Object.assign(this.model||{},e)}},{key:`parse`,value:function(){var e=Pi(Gi.mark((function e(t){var n,r,i,a,o,s,c,l,u,d,f;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!1,r=!1,e.prev=2,a=ea(t);case 4:return e.next=6,a.next();case 6:if(!(n=!(o=e.sent).done)){e.next=37;break}s=o.value,c=Xi(s),e.prev=9,c.s();case 11:if((l=c.n()).done){e.next=26;break}if(u=l.value,d=u.eventType,f=u.value,d!==`opentag`){e.next=17;break}this.parseOpen(f),e.next=24;break;case 17:if(d!==`text`){e.next=21;break}this.parseText(f),e.next=24;break;case 21:if(d!==`closetag`){e.next=24;break}if(this.parseClose(f.name)){e.next=24;break}return e.abrupt(`return`,this.model);case 24:e.next=11;break;case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(9),c.e(e.t0);case 31:return e.prev=31,c.f(),e.finish(31);case 34:n=!1,e.next=4;break;case 37:e.next=43;break;case 39:e.prev=39,e.t1=e.catch(2),r=!0,i=e.t1;case 43:if(e.prev=43,e.prev=44,!n||a.return==null){e.next=48;break}return e.next=48,a.return();case 48:if(e.prev=48,!r){e.next=51;break}throw i;case 51:return e.finish(48);case 52:return e.finish(43);case 53:return e.abrupt(`return`,this.model);case 54:case`end`:return e.stop()}}),e,this,[[2,39,43,53],[9,28,31,34],[44,,48,52]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:`parseStream`,value:function(){var e=Pi(Gi.mark((function e(t){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt(`return`,this.parse(r(t)));case 1:case`end`:return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:`xml`,get:function(){return this.toXml(this.model)}},{key:`toXml`,value:function(e){var t=new i;return this.render(t,e),t.xml}}],[{key:`toAttribute`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(n)return t}else if(n||e!==t)return e.toString()}},{key:`toStringAttribute`,value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return e.toAttribute(t,n,r)}},{key:`toStringValue`,value:function(e,t){return e===void 0?t:e}},{key:`toBoolAttribute`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(n)return t}else if(n||e!==t)return e?`1`:`0`}},{key:`toBoolValue`,value:function(e,t){return e===void 0?t:e===`1`}},{key:`toIntAttribute`,value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return e.toAttribute(t,n,r)}},{key:`toIntValue`,value:function(e,t){return e===void 0?t:parseInt(e,10)}},{key:`toFloatAttribute`,value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return e.toAttribute(t,n,r)}},{key:`toFloatValue`,value:function(e,t){return e===void 0?t:parseFloat(e)}}])}()},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,n){var r=e(`../base-xform`),i=e(`../../../utils/col-cache`),a=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.openNode(`definedName`,{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(`,`)),e.closeNode()}},{key:`parseOpen`,value:function(e){return e.name===`definedName`&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}},{key:`parseText`,value:function(e){this._parsedText.push(e)}},{key:`parseClose`,value:function(){return this.model={name:this._parsedName,ranges:s(this._parsedText.join(``))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}])}(r);function o(e){try{return i.decodeEx(e),!0}catch{return!1}}function s(e){var t=[],n=!1,r=``;return e.split(`,`).forEach((function(e){if(e){var i=(e.match(/'/g)||[]).length;if(i){var a=i%2==0;!n&&a&&o(e)?t.push(e):n&&!a?(n=!1,o(r+e)&&t.push(r+e),r=``):(n=!0,r+=`${e},`)}else n?r+=`${e},`:o(e)&&t.push(e)}})),t}t.exports=a},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,n){var r=e(`../../../utils/utils`);t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.leafNode(`sheet`,{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}},{key:`parseOpen`,value:function(e){return e.name===`sheet`&&(this.model={name:r.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes[`r:id`]},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.leafNode(`calcPr`,{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}},{key:`parseOpen`,value:function(e){return e.name===`calcPr`&&(this.model={},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],36:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.leafNode(`workbookPr`,{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:`parseOpen`,value:function(e){return e.name===`workbookPr`&&(this.model={date1904:e.attributes.date1904===`1`},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],37:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,t){var n={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&t.visibility!==`visible`&&(n.visibility=t.visibility),e.leafNode(`workbookView`,n)}},{key:`parseOpen`,value:function(e){if(e.name===`workbookView`){var t=this.model={},n=function(e,n,r){var i=n===void 0?r:t[e]=n;i!==void 0&&(t[e]=i)},r=function(e,n,r){var i=n===void 0?r:t[e]=parseInt(n,10);i!==void 0&&(t[e]=i)};return r(`x`,e.attributes.xWindow,0),r(`y`,e.attributes.yWindow,0),r(`width`,e.attributes.windowWidth,25e3),r(`height`,e.attributes.windowHeight,1e4),n(`visibility`,e.attributes.visibility,`visible`),r(`activeTab`,e.attributes.activeTab,void 0),r(`firstSheet`,e.attributes.firstSheet,void 0),!0}return!1}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],38:[function(e,t,n){var r=e(`../../../utils/under-dash`),i=e(`../../../utils/col-cache`),a=e(`../../../utils/xml-stream`),o=e(`../base-xform`),s=e(`../static-xform`),c=e(`../list-xform`),l=e(`./defined-name-xform`),d=e(`./sheet-xform`),p=e(`./workbook-view-xform`),m=e(`./workbook-properties-xform`),h=e(`./workbook-calc-properties-xform`),g=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={fileVersion:t.STATIC_XFORMS.fileVersion,workbookPr:new m,bookViews:new c({tag:`bookViews`,count:!1,childXform:new p}),sheets:new c({tag:`sheets`,count:!1,childXform:new d}),definedNames:new c({tag:`definedNames`,count:!1,childXform:new l}),calcPr:new h},e}return J(t,e),f(t,[{key:`prepare`,value:function(e){e.sheets=e.worksheets;var t=[],n=0;e.sheets.forEach((function(e){if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split(`&&`).forEach((function(r){var i=r.split(`:`),a={name:`_xlnm.Print_Area`,ranges:[`'${e.name}'!\$${i[0]}:\$${i[1]}`],localSheetId:n};t.push(a)})),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){var r=[];if(e.pageSetup.printTitlesColumn){var i=e.pageSetup.printTitlesColumn.split(`:`);r.push(`'${e.name}'!\$${i[0]}:\$${i[1]}`)}if(e.pageSetup.printTitlesRow){var a=e.pageSetup.printTitlesRow.split(`:`);r.push(`'${e.name}'!\$${a[0]}:\$${a[1]}`)}var o={name:`_xlnm.Print_Titles`,ranges:r,localSheetId:n};t.push(o)}n++})),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach((function(e,t){e.name=e.type+(t+1)}))}},{key:`render`,value:function(e,n){e.openXml(a.StdDocAttributes),e.openNode(`workbook`,t.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,n.properties),this.map.bookViews.render(e,n.views),this.map.sheets.render(e,n.sheets),this.map.definedNames.render(e,n.definedNames),this.map.calcPr.render(e,n.calcProperties),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===`workbook`||(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==`workbook`||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}},{key:`reconcile`,value:function(e){var t,n=(e.workbookRels||[]).reduce((function(e,t){return e[t.Id]=t,e}),{}),a=[],o=0;(e.sheets||[]).forEach((function(r){var i=n[r.rId];i&&(t=e.worksheetHash[`xl/${i.Target.replace(/^(\s|\/xl\/)+/,``)}`])&&(t.name=r.name,t.id=r.id,t.state=r.state,a[o++]=t)}));var s=[];r.each(e.definedNames,(function(e){if(e.name===`_xlnm.Print_Area`){if(t=a[e.localSheetId]){t.pageSetup||={};var n=i.decodeEx(e.ranges[0]);t.pageSetup.printArea=t.pageSetup.printArea?`${t.pageSetup.printArea}&&${n.dimensions}`:n.dimensions}}else if(e.name===`_xlnm.Print_Titles`){if(t=a[e.localSheetId]){t.pageSetup||={};var r=e.ranges.join(`,`),o=/\$/g,c=r.match(/\$\d+:\$\d+/);if(c&&c.length){var l=c[0];t.pageSetup.printTitlesRow=l.replace(o,``)}var u=r.match(/\$[A-Z]+:\$[A-Z]+/);if(u&&u.length){var d=u[0];t.pageSetup.printTitlesColumn=d.replace(o,``)}}}else s.push(e)})),e.definedNames=s,e.media.forEach((function(e,t){e.index=t}))}}])}(o);g.WORKBOOK_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`x15`,"xmlns:x15":`http://schemas.microsoft.com/office/spreadsheetml/2010/11/main`},g.STATIC_XFORMS={fileVersion:new s({tag:`fileVersion`,$:{appName:`xl`,lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=g},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,n){var r=e(`../strings/rich-text-xform`),i=e(`../../../utils/utils`),a=e(`../base-xform`),o=t.exports=function(e){this.model=e};i.inherits(o,a,{get tag(){return`r`},get richTextXform(){return this._richTextXform||=new r,this._richTextXform},render:function(e,t){var n=this;t||=this.model,e.openNode(`comment`,{ref:t.ref,authorId:0}),e.openNode(`text`),t&&t.note&&t.note.texts&&t.note.texts.forEach((function(t){n.richTextXform.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`comment`:return this.model=$i({type:`note`,note:{texts:[]}},e.attributes),!0;case`r`:return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case`comment`:return!1;case`r`:return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,n){var r=e(`../../../utils/xml-stream`),i=e(`../../../utils/utils`),a=e(`../base-xform`),o=e(`./comment-xform`),s=t.exports=function(){this.map={comment:new o}};i.inherits(s,a,{COMMENTS_ATTRIBUTES:{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`}},{render:function(e,t){var n=this;t||=this.model,e.openXml(r.StdDocAttributes),e.openNode(`comments`,s.COMMENTS_ATTRIBUTES),e.openNode(`authors`),e.leafNode(`author`,null,`Author`),e.closeNode(),e.openNode(`commentList`),t.comments.forEach((function(t){n.map.comment.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`commentList`:return this.model={comments:[]},!0;case`comment`:return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case`commentList`:return!1;case`comment`:return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,n){t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t))._model=e,n}return J(t,e),f(t,[{key:`tag`,get:function(){return this._model&&this._model.tag}},{key:`render`,value:function(e,t,n){(t===n[2]||this.tag===`x:SizeWithCells`&&t===n[1])&&e.leafNode(this.tag)}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../../base-xform`))},{"../../base-xform":32}],42:[function(e,t,n){t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t))._model=e,n}return J(t,e),f(t,[{key:`tag`,get:function(){return this._model&&this._model.tag}},{key:`render`,value:function(e,t){e.leafNode(this.tag,null,t)}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.text=``,!0)}},{key:`parseText`,value:function(e){this.text=e}},{key:`parseClose`,value:function(){return!1}}])}(e(`../../base-xform`))},{"../../base-xform":32}],43:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`x:Anchor`}},{key:`getAnchorRect`,value:function(e){var t=Math.floor(e.left),n=Math.floor(68*(e.left-t)),r=Math.floor(e.top),i=Math.floor(18*(e.top-r)),a=Math.floor(e.right),o=Math.floor(68*(e.right-a)),s=Math.floor(e.bottom);return[t,n,r,i,a,o,s,Math.floor(18*(e.bottom-s))]}},{key:`getDefaultRect`,value:function(e){var t=e.col,n=6,r=Math.max(e.row-2,0);return[t,n,r,14,t+2,2,r+4,16]}},{key:`render`,value:function(e,t){var n=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode(`x:Anchor`,null,n.join(`, `))}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.text=``,!0)}},{key:`parseText`,value:function(e){this.text=e}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],44:[function(e,t,n){var r=e(`../base-xform`),i=e(`./vml-anchor-xform`),a=e(`./style/vml-protection-xform`),o=e(`./style/vml-position-xform`),s=[`twoCells`,`oneCells`,`absolute`];t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"x:Anchor":new i,"x:Locked":new a({tag:`x:Locked`}),"x:LockText":new a({tag:`x:LockText`}),"x:SizeWithCells":new o({tag:`x:SizeWithCells`}),"x:MoveWithCells":new o({tag:`x:MoveWithCells`})},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`x:ClientData`}},{key:`render`,value:function(e,t){var n=t.note,r=n.protection,i=n.editAs;e.openNode(this.tag,{ObjectType:`Note`}),this.map[`x:MoveWithCells`].render(e,i,s),this.map[`x:SizeWithCells`].render(e,i,s),this.map[`x:Anchor`].render(e,t),this.map[`x:Locked`].render(e,r.locked),e.leafNode(`x:AutoFill`,null,`False`),this.map[`x:LockText`].render(e,r.lockText),e.leafNode(`x:Row`,null,t.refAddress.row-1),e.leafNode(`x:Column`,null,t.refAddress.col-1),e.closeNode()}},{key:`parseOpen`,value:function(e){return e.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:``}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}},{key:`normalizeModel`,value:function(){var e=Object.assign({},this.map[`x:MoveWithCells`].model,this.map[`x:SizeWithCells`].model),t=Object.keys(e).length;this.model.editAs=s[t],this.model.anchor=this.map[`x:Anchor`].text,this.model.protection.locked=this.map[`x:Locked`].text,this.model.protection.lockText=this.map[`x:LockText`].text}}])}(r)},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,n){var r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`./vml-shape-xform`),o=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"v:shape":new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`xml`}},{key:`render`,value:function(e,n){var i=this;e.openXml(r.StdDocAttributes),e.openNode(this.tag,t.DRAWING_ATTRIBUTES),e.openNode(`o:shapelayout`,{"v:ext":`edit`}),e.leafNode(`o:idmap`,{"v:ext":`edit`,data:1}),e.closeNode(),e.openNode(`v:shapetype`,{id:`_x0000_t202`,coordsize:`21600,21600`,"o:spt":202,path:`m,l,21600r21600,l21600,xe`}),e.leafNode(`v:stroke`,{joinstyle:`miter`}),e.leafNode(`v:path`,{gradientshapeok:`t`,"o:connecttype":`rect`}),e.closeNode(),n.comments.forEach((function(t,n){i.map[`v:shape`].render(e,t,n)})),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}},{key:`reconcile`,value:function(e,t){var n=this;e.anchors.forEach((function(e){e.br?n.map[`xdr:twoCellAnchor`].reconcile(e,t):n.map[`xdr:oneCellAnchor`].reconcile(e,t)}))}}])}(i);o.DRAWING_ATTRIBUTES={"xmlns:v":`urn:schemas-microsoft-com:vml`,"xmlns:o":`urn:schemas-microsoft-com:office:office`,"xmlns:x":`urn:schemas-microsoft-com:office:excel`},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,n){var r=e(`../base-xform`),i=e(`./vml-textbox-xform`),a=e(`./vml-client-data-xform`),o=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"v:textbox":new i,"x:ClientData":new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`v:shape`}},{key:`render`,value:function(e,n,r){e.openNode(`v:shape`,t.V_SHAPE_ATTRIBUTES(n,r)),e.leafNode(`v:fill`,{color2:`infoBackground [80]`}),e.leafNode(`v:shadow`,{color:`none [81]`,obscured:`t`}),e.leafNode(`v:path`,{"o:connecttype":`none`}),this.map[`v:textbox`].render(e,n),this.map[`x:ClientData`].render(e,n),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={margins:{insetmode:e.attributes[`o:insetmode`]},anchor:``,editAs:``,protection:{}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.margins.inset=this.map[`v:textbox`].model&&this.map[`v:textbox`].model.inset,this.model.protection=this.map[`x:ClientData`].model&&this.map[`x:ClientData`].model.protection,this.model.anchor=this.map[`x:ClientData`].model&&this.map[`x:ClientData`].model.anchor,this.model.editAs=this.map[`x:ClientData`].model&&this.map[`x:ClientData`].model.editAs,!1)}}])}(r);o.V_SHAPE_ATTRIBUTES=function(e,t){return{id:`_x0000_s${1025+t}`,type:`#_x0000_t202`,style:`position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden`,fillcolor:`infoBackground [80]`,strokecolor:`none [81]`,"o:insetmode":e.note.margins&&e.note.margins.insetmode}},t.exports=o},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`v:textbox`}},{key:`conversionUnit`,value:function(e,t,n){return`${parseFloat(e)*t.toFixed(2)}${n}`}},{key:`reverseConversionUnit`,value:function(e){var t=this;return(e||``).split(`,`).map((function(e){return Number(parseFloat(t.conversionUnit(parseFloat(e),.1,``)).toFixed(2))}))}},{key:`render`,value:function(e,t){var n=this,r={style:`mso-direction-alt:auto`};if(t&&t.note){var i=(t.note&&t.note.margins).inset;Array.isArray(i)&&(i=i.map((function(e){return n.conversionUnit(e,10,`mm`)})).join(`,`)),i&&(r.inset=i)}e.openNode(`v:textbox`,r),e.leafNode(`div`,{style:`text-align:left`}),e.closeNode()}},{key:`parseOpen`,value:function(e){return e.name!==this.tag||(this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(e(`../base-xform`))},{"../base-xform":32}],48:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`createNewModel`,value:function(e){return{}}},{key:`parseOpen`,value:function(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`onParserClose`,value:function(e,t){this.model[e]=t.model}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}])}(e(`./base-xform`))},{"./base-xform":32}],49:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.openNode(`HeadingPairs`),e.openNode(`vt:vector`,{size:2,baseType:`variant`}),e.openNode(`vt:variant`),e.leafNode(`vt:lpstr`,void 0,`Worksheets`),e.closeNode(),e.openNode(`vt:variant`),e.leafNode(`vt:i4`,void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}},{key:`parseOpen`,value:function(e){return e.name===`HeadingPairs`}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return e!==`HeadingPairs`}}])}(e(`../base-xform`))},{"../base-xform":32}],50:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.openNode(`TitlesOfParts`),e.openNode(`vt:vector`,{size:t.length,baseType:`lpstr`}),t.forEach((function(t){e.leafNode(`vt:lpstr`,void 0,t.name)})),e.closeNode(),e.closeNode()}},{key:`parseOpen`,value:function(e){return e.name===`TitlesOfParts`}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return e!==`TitlesOfParts`}}])}(e(`../base-xform`))},{"../base-xform":32}],51:[function(e,t,n){var r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`../simple/string-xform`),o=e(`./app-heading-pairs-xform`),s=e(`./app-titles-of-parts-xform`),c=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={Company:new a({tag:`Company`}),Manager:new a({tag:`Manager`}),HeadingPairs:new o,TitleOfParts:new s},e}return J(t,e),f(t,[{key:`render`,value:function(e,n){e.openXml(r.StdDocAttributes),e.openNode(`Properties`,t.PROPERTY_ATTRIBUTES),e.leafNode(`Application`,void 0,`Microsoft Excel`),e.leafNode(`DocSecurity`,void 0,`0`),e.leafNode(`ScaleCrop`,void 0,`false`),this.map.HeadingPairs.render(e,n.worksheets),this.map.TitleOfParts.render(e,n.worksheets),this.map.Company.render(e,n.company||``),this.map.Manager.render(e,n.manager),e.leafNode(`LinksUpToDate`,void 0,`false`),e.leafNode(`SharedDoc`,void 0,`false`),e.leafNode(`HyperlinksChanged`,void 0,`false`),e.leafNode(`AppVersion`,void 0,`16.0300`),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===`Properties`||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==`Properties`||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}])}(i);c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,``)},c.DateAttrs={"xsi:type":`dcterms:W3CDTF`},c.PROPERTY_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/officeDocument/2006/extended-properties`,"xmlns:vt":`http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes`},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,n){var r=e(`../../../utils/xml-stream`),i=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,n){e.openXml(r.StdDocAttributes),e.openNode(`Types`,t.PROPERTY_ATTRIBUTES);var i={};(n.media||[]).forEach((function(t){if(t.type===`image`){var n=t.extension;i[n]||(i[n]=!0,e.leafNode(`Default`,{Extension:n,ContentType:`image/${n}`}))}})),e.leafNode(`Default`,{Extension:`rels`,ContentType:`application/vnd.openxmlformats-package.relationships+xml`}),e.leafNode(`Default`,{Extension:`xml`,ContentType:`application/xml`}),e.leafNode(`Override`,{PartName:`/xl/workbook.xml`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml`}),n.worksheets.forEach((function(t){var n=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode(`Override`,{PartName:n,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml`})})),e.leafNode(`Override`,{PartName:`/xl/theme/theme1.xml`,ContentType:`application/vnd.openxmlformats-officedocument.theme+xml`}),e.leafNode(`Override`,{PartName:`/xl/styles.xml`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml`}),n.sharedStrings&&n.sharedStrings.count&&e.leafNode(`Override`,{PartName:`/xl/sharedStrings.xml`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml`}),n.tables&&n.tables.forEach((function(t){e.leafNode(`Override`,{PartName:`/xl/tables/${t.target}`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml`})})),n.drawings&&n.drawings.forEach((function(t){e.leafNode(`Override`,{PartName:`/xl/drawings/${t.name}.xml`,ContentType:`application/vnd.openxmlformats-officedocument.drawing+xml`})})),n.commentRefs&&(e.leafNode(`Default`,{Extension:`vml`,ContentType:`application/vnd.openxmlformats-officedocument.vmlDrawing`}),n.commentRefs.forEach((function(t){var n=t.commentName;e.leafNode(`Override`,{PartName:`/xl/${n}.xml`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml`})}))),e.leafNode(`Override`,{PartName:`/docProps/core.xml`,ContentType:`application/vnd.openxmlformats-package.core-properties+xml`}),e.leafNode(`Override`,{PartName:`/docProps/app.xml`,ContentType:`application/vnd.openxmlformats-officedocument.extended-properties+xml`}),e.closeNode()}},{key:`parseOpen`,value:function(){return!1}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`));i.PROPERTY_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/package/2006/content-types`},t.exports=i},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,n){var r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`../simple/date-xform`),o=e(`../simple/string-xform`),s=e(`../simple/integer-xform`),c=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"dc:creator":new o({tag:`dc:creator`}),"dc:title":new o({tag:`dc:title`}),"dc:subject":new o({tag:`dc:subject`}),"dc:description":new o({tag:`dc:description`}),"dc:identifier":new o({tag:`dc:identifier`}),"dc:language":new o({tag:`dc:language`}),"cp:keywords":new o({tag:`cp:keywords`}),"cp:category":new o({tag:`cp:category`}),"cp:lastModifiedBy":new o({tag:`cp:lastModifiedBy`}),"cp:lastPrinted":new a({tag:`cp:lastPrinted`,format:t.DateFormat}),"cp:revision":new s({tag:`cp:revision`}),"cp:version":new o({tag:`cp:version`}),"cp:contentStatus":new o({tag:`cp:contentStatus`}),"cp:contentType":new o({tag:`cp:contentType`}),"dcterms:created":new a({tag:`dcterms:created`,attrs:t.DateAttrs,format:t.DateFormat}),"dcterms:modified":new a({tag:`dcterms:modified`,attrs:t.DateAttrs,format:t.DateFormat})},e}return J(t,e),f(t,[{key:`render`,value:function(e,n){e.openXml(r.StdDocAttributes),e.openNode(`cp:coreProperties`,t.CORE_PROPERTY_ATTRIBUTES),this.map[`dc:creator`].render(e,n.creator),this.map[`dc:title`].render(e,n.title),this.map[`dc:subject`].render(e,n.subject),this.map[`dc:description`].render(e,n.description),this.map[`dc:identifier`].render(e,n.identifier),this.map[`dc:language`].render(e,n.language),this.map[`cp:keywords`].render(e,n.keywords),this.map[`cp:category`].render(e,n.category),this.map[`cp:lastModifiedBy`].render(e,n.lastModifiedBy),this.map[`cp:lastPrinted`].render(e,n.lastPrinted),this.map[`cp:revision`].render(e,n.revision),this.map[`cp:version`].render(e,n.version),this.map[`cp:contentStatus`].render(e,n.contentStatus),this.map[`cp:contentType`].render(e,n.contentType),this.map[`dcterms:created`].render(e,n.created),this.map[`dcterms:modified`].render(e,n.modified),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`cp:coreProperties`:case`coreProperties`:return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case`cp:coreProperties`:case`coreProperties`:return this.model={creator:this.map[`dc:creator`].model,title:this.map[`dc:title`].model,subject:this.map[`dc:subject`].model,description:this.map[`dc:description`].model,identifier:this.map[`dc:identifier`].model,language:this.map[`dc:language`].model,keywords:this.map[`cp:keywords`].model,category:this.map[`cp:category`].model,lastModifiedBy:this.map[`cp:lastModifiedBy`].model,lastPrinted:this.map[`cp:lastPrinted`].model,revision:this.map[`cp:revision`].model,contentStatus:this.map[`cp:contentStatus`].model,contentType:this.map[`cp:contentType`].model,created:this.map[`dcterms:created`].model,modified:this.map[`dcterms:modified`].model},!1;default:throw Error(`Unexpected xml node in parseClose: ${e}`)}}}])}(i);c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,``)},c.DateAttrs={"xsi:type":`dcterms:W3CDTF`},c.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":`http://schemas.openxmlformats.org/package/2006/metadata/core-properties`,"xmlns:dc":`http://purl.org/dc/elements/1.1/`,"xmlns:dcterms":`http://purl.org/dc/terms/`,"xmlns:dcmitype":`http://purl.org/dc/dcmitype/`,"xmlns:xsi":`http://www.w3.org/2001/XMLSchema-instance`},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.leafNode(`Relationship`,t)}},{key:`parseOpen`,value:function(e){return e.name===`Relationship`&&(this.model=e.attributes,!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],55:[function(e,t,n){var r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`./relationship-xform`),o=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={Relationship:new a},e}return J(t,e),f(t,[{key:`render`,value:function(e,n){var i=this;n||=this._values,e.openXml(r.StdDocAttributes),e.openNode(`Relationships`,t.RELATIONSHIPS_ATTRIBUTES),n.forEach((function(t){i.map.Relationship.render(e,t)})),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===`Relationships`)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(e===`Relationships`)return!1;throw Error(`Unexpected xml node in parseClose: ${e}`)}}])}(i);o.RELATIONSHIPS_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/package/2006/relationships`},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={range:{editAs:e.attributes.editAs||`oneCell`}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`reconcilePicture`,value:function(e,t){if(e&&e.rId){var n=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){var r=n[1],i=t.mediaIndex[r];return t.media[i]}}}}])}(e(`../base-xform`))},{"../base-xform":32}],57:[function(e,t,n){var r=e(`../base-xform`),i=e(`./blip-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"a:blip":new i},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`xdr:blipFill`}},{key:`render`,value:function(e,t){e.openNode(this.tag),this.map[`a:blip`].render(e,t),e.openNode(`a:stretch`),e.leafNode(`a:fillRect`),e.closeNode(),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map[`a:blip`].model,!1)}}])}(r)},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`a:blip`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,{"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"r:embed":t.rId,cstate:`print`})}},{key:`parseOpen`,value:function(e){return e.name!==this.tag||(this.model={rId:e.attributes[`r:embed`]},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(e(`../base-xform`))},{"../base-xform":32}],59:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`xdr:cNvPicPr`}},{key:`render`,value:function(e){e.openNode(this.tag),e.leafNode(`a:picLocks`,{noChangeAspect:`1`}),e.closeNode()}},{key:`parseOpen`,value:function(e){return e.name,this.tag,!0}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(e(`../base-xform`))},{"../base-xform":32}],60:[function(e,t,n){var r=e(`../base-xform`),i=e(`./hlink-click-xform`),a=e(`./ext-lst-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"a:hlinkClick":new i,"a:extLst":new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`xdr:cNvPr`}},{key:`render`,value:function(e,t){e.openNode(this.tag,{id:t.index,name:`Picture ${t.index}`}),this.map[`a:hlinkClick`].render(e,t),this.map[`a:extLst`].render(e,t),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map[`a:hlinkClick`].model,!1)}}])}(r)},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,n){var r=e(`../base-xform`),i=e(`../simple/integer-xform`);t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).tag=e.tag,n.map={"xdr:col":new i({tag:`xdr:col`,zero:!0}),"xdr:colOff":new i({tag:`xdr:colOff`,zero:!0}),"xdr:row":new i({tag:`xdr:row`,zero:!0}),"xdr:rowOff":new i({tag:`xdr:rowOff`,zero:!0})},n}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.openNode(this.tag),this.map[`xdr:col`].render(e,t.nativeCol),this.map[`xdr:colOff`].render(e,t.nativeColOff),this.map[`xdr:row`].render(e,t.nativeRow),this.map[`xdr:rowOff`].render(e,t.nativeRowOff),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={nativeCol:this.map[`xdr:col`].model,nativeColOff:this.map[`xdr:colOff`].model,nativeRow:this.map[`xdr:row`].model,nativeRowOff:this.map[`xdr:rowOff`].model},!1)}}])}(r)},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,n){var r=e(`../../../utils/col-cache`),i=e(`../../../utils/xml-stream`),a=e(`../base-xform`),o=e(`./two-cell-anchor-xform`),s=e(`./one-cell-anchor-xform`);function c(e){return(typeof e.range==`string`?r.decode(e.range):e.range).br?`xdr:twoCellAnchor`:`xdr:oneCellAnchor`}var l=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new s},e}return J(t,e),f(t,[{key:`prepare`,value:function(e){var t=this;e.anchors.forEach((function(e,n){e.anchorType=c(e),t.map[e.anchorType].prepare(e,{index:n})}))}},{key:`tag`,get:function(){return`xdr:wsDr`}},{key:`render`,value:function(e,n){var r=this;e.openXml(i.StdDocAttributes),e.openNode(this.tag,t.DRAWING_ATTRIBUTES),n.anchors.forEach((function(t){r.map[t.anchorType].render(e,t)})),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}},{key:`reconcile`,value:function(e,t){var n=this;e.anchors.forEach((function(e){e.br?n.map[`xdr:twoCellAnchor`].reconcile(e,t):n.map[`xdr:oneCellAnchor`].reconcile(e,t)}))}}])}(a);l.DRAWING_ATTRIBUTES={"xmlns:xdr":`http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing`,"xmlns:a":`http://schemas.openxmlformats.org/drawingml/2006/main`},t.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`a:extLst`}},{key:`render`,value:function(e){e.openNode(this.tag),e.openNode(`a:ext`,{uri:`{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}`}),e.leafNode(`a16:creationId`,{"xmlns:a16":`http://schemas.microsoft.com/office/drawing/2014/main`,id:`{00000000-0008-0000-0000-000002000000}`}),e.closeNode(),e.closeNode()}},{key:`parseOpen`,value:function(e){return e.name,this.tag,!0}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(e(`../base-xform`))},{"../base-xform":32}],64:[function(e,t,n){var r=e(`../base-xform`),i=9525;t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).tag=e.tag,n.map={},n}return J(t,e),f(t,[{key:`render`,value:function(e,t){e.openNode(this.tag);var n=Math.floor(t.width*i),r=Math.floor(t.height*i);e.addAttribute(`cx`,n),e.addAttribute(`cy`,r),e.closeNode()}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||`0`,10)/i,height:parseInt(e.attributes.cy||`0`,10)/i},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(r)},{"../base-xform":32}],65:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`a:hlinkClick`}},{key:`render`,value:function(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}},{key:`parseOpen`,value:function(e){return e.name!==this.tag||(this.model={hyperlinks:{rId:e.attributes[`r:id`],tooltip:e.attributes.tooltip}},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],66:[function(e,t,n){var r=e(`../base-xform`),i=e(`./c-nv-pr-xform`),a=e(`./c-nv-pic-pr-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`xdr:nvPicPr`}},{key:`render`,value:function(e,t){e.openNode(this.tag),this.map[`xdr:cNvPr`].render(e,t),this.map[`xdr:cNvPicPr`].render(e,t),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map[`xdr:cNvPr`].model,!1)}}])}(r)},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,n){var r=e(`./base-cell-anchor-xform`),i=e(`../static-xform`),a=e(`./cell-position-xform`),o=e(`./ext-xform`),s=e(`./pic-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"xdr:from":new a({tag:`xdr:from`}),"xdr:ext":new o({tag:`xdr:ext`}),"xdr:pic":new s,"xdr:clientData":new i({tag:`xdr:clientData`})},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`xdr:oneCellAnchor`}},{key:`prepare`,value:function(e,t){this.map[`xdr:pic`].prepare(e.picture,t)}},{key:`render`,value:function(e,t){e.openNode(this.tag,{editAs:t.range.editAs||`oneCell`}),this.map[`xdr:from`].render(e,t.range.tl),this.map[`xdr:ext`].render(e,t.range.ext),this.map[`xdr:pic`].render(e,t.picture),this.map[`xdr:clientData`].render(e,{}),e.closeNode()}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map[`xdr:from`].model,this.model.range.ext=this.map[`xdr:ext`].model,this.model.picture=this.map[`xdr:pic`].model,!1)}},{key:`reconcile`,value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}}])}(r)},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,n){var r=e(`../base-xform`),i=e(`../static-xform`),a=e(`./blip-fill-xform`),o=e(`./nv-pic-pr-xform`),s=e(`./sp-pr`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"xdr:nvPicPr":new o,"xdr:blipFill":new a,"xdr:spPr":new i(s)},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`xdr:pic`}},{key:`prepare`,value:function(e,t){e.index=t.index+1}},{key:`render`,value:function(e,t){e.openNode(this.tag),this.map[`xdr:nvPicPr`].render(e,t),this.map[`xdr:blipFill`].render(e,t),this.map[`xdr:spPr`].render(e,t),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}])}(r)},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,n){t.exports={tag:`xdr:spPr`,c:[{tag:`a:xfrm`,c:[{tag:`a:off`,$:{x:`0`,y:`0`}},{tag:`a:ext`,$:{cx:`0`,cy:`0`}}]},{tag:`a:prstGeom`,$:{prst:`rect`},c:[{tag:`a:avLst`}]}]}},{}],70:[function(e,t,n){var r=e(`./base-cell-anchor-xform`),i=e(`../static-xform`),a=e(`./cell-position-xform`),o=e(`./pic-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"xdr:from":new a({tag:`xdr:from`}),"xdr:to":new a({tag:`xdr:to`}),"xdr:pic":new o,"xdr:clientData":new i({tag:`xdr:clientData`})},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`xdr:twoCellAnchor`}},{key:`prepare`,value:function(e,t){this.map[`xdr:pic`].prepare(e.picture,t)}},{key:`render`,value:function(e,t){e.openNode(this.tag,{editAs:t.range.editAs||`oneCell`}),this.map[`xdr:from`].render(e,t.range.tl),this.map[`xdr:to`].render(e,t.range.br),this.map[`xdr:pic`].render(e,t.picture),this.map[`xdr:clientData`].render(e,{}),e.closeNode()}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map[`xdr:from`].model,this.model.range.br=this.map[`xdr:to`].model,this.model.picture=this.map[`xdr:pic`].model,!1)}},{key:`reconcile`,value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}}])}(r)},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,n){t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).tag=e.tag,n.always=!!e.always,n.count=e.count,n.empty=e.empty,n.$count=e.$count||`count`,n.$=e.$,n.childXform=e.childXform,n.maxItems=e.maxItems,n}return J(t,e),f(t,[{key:`prepare`,value:function(e,t){var n=this.childXform;e&&e.forEach((function(e,r){t.index=r,n.prepare(e,t)}))}},{key:`render`,value:function(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);var n=this.childXform;(t||[]).forEach((function(t,r){n.render(e,t,r)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}},{key:`reconcile`,value:function(e,t){if(e){var n=this.childXform;e.forEach((function(e){n.reconcile(e,t)}))}}}])}(e(`./base-xform`))},{"./base-xform":32}],72:[function(e,t,n){var r=e(`../../../utils/col-cache`);t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`autoFilter`}},{key:`render`,value:function(e,t){if(t)if(typeof t==`string`)e.leafNode(`autoFilter`,{ref:t});else{var n=function(e){return typeof e==`string`?e:r.getAddress(e.row,e.column).address},i=n(t.from),a=n(t.to);i&&a&&e.leafNode(`autoFilter`,{ref:`${i}:${a}`})}}},{key:`parseOpen`,value:function(e){e.name===`autoFilter`&&(this.model=e.attributes.ref)}}])}(e(`../base-xform`))},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,n){var r=e(`../../../utils/utils`),i=e(`../base-xform`),a=e(`../../../doc/range`),o=e(`../../../doc/enums`),s=e(`../strings/rich-text-xform`);function c(e){if(e==null)return o.ValueType.Null;if(e instanceof String||typeof e==`string`)return o.ValueType.String;if(typeof e==`number`)return o.ValueType.Number;if(typeof e==`boolean`)return o.ValueType.Boolean;if(e instanceof Date)return o.ValueType.Date;if(e.text&&e.hyperlink)return o.ValueType.Hyperlink;if(e.formula)return o.ValueType.Formula;if(e.error)return o.ValueType.Error;throw Error(`I could not understand type of value`)}function l(e){return e.type===o.ValueType.Formula?c(e.result):e.type}t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).richTextXForm=new s,e}return J(t,e),f(t,[{key:`tag`,get:function(){return`c`}},{key:`prepare`,value:function(e,t){var n=t.styles.addStyleModel(e.style||{},l(e));switch(n&&(e.styleId=n),e.comment&&t.comments.push($i($i({},e.comment),{},{ref:e.address})),e.type){case o.ValueType.String:case o.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case o.ValueType.Date:t.date1904&&(e.date1904=!0);break;case o.ValueType.Hyperlink:t.sharedStrings&&e.text!==void 0&&e.text!==null&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904&&(e.date1904=!0),e.shareType===`shared`&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){var r=t.formulae[e.sharedFormula];if(!r)throw Error(`Shared Formula master must exist above and or left of clone for cell ${e.address}`);r.si===void 0?(r.shareType=`shared`,r.si=t.siFormulae++,r.range=new a(r.address,e.address)):r.range&&r.range.expandToAddress(e.address),e.si=r.si}}}},{key:`renderFormula`,value:function(e,t){var n=null;switch(t.shareType){case`shared`:n={t:`shared`,ref:t.ref||t.range.range,si:t.si};break;case`array`:n={t:`array`,ref:t.ref};break;default:t.si!==void 0&&(n={t:`shared`,si:t.si})}switch(c(t.result)){case o.ValueType.Null:e.leafNode(`f`,n,t.formula);break;case o.ValueType.String:e.addAttribute(`t`,`str`),e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,t.result);break;case o.ValueType.Number:e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,t.result);break;case o.ValueType.Boolean:e.addAttribute(`t`,`b`),e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,+!!t.result);break;case o.ValueType.Error:e.addAttribute(`t`,`e`),e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,t.result.error);break;case o.ValueType.Date:e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,r.dateToExcel(t.result,t.date1904));break;default:throw Error(`I could not understand type of value`)}}},{key:`render`,value:function(e,t){var n=this;if(t.type!==o.ValueType.Null||t.styleId){switch(e.openNode(`c`),e.addAttribute(`r`,t.address),t.styleId&&e.addAttribute(`s`,t.styleId),t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode(`v`,null,t.value);break;case o.ValueType.Boolean:e.addAttribute(`t`,`b`),e.leafNode(`v`,null,t.value?`1`:`0`);break;case o.ValueType.Error:e.addAttribute(`t`,`e`),e.leafNode(`v`,null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:t.ssId===void 0?t.value&&t.value.richText?(e.addAttribute(`t`,`inlineStr`),e.openNode(`is`),t.value.richText.forEach((function(t){n.richTextXForm.render(e,t)})),e.closeNode(`is`)):(e.addAttribute(`t`,`str`),e.leafNode(`v`,null,t.value)):(e.addAttribute(`t`,`s`),e.leafNode(`v`,null,t.ssId));break;case o.ValueType.Date:e.leafNode(`v`,null,r.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:t.ssId===void 0?(e.addAttribute(`t`,`str`),e.leafNode(`v`,null,t.text)):(e.addAttribute(`t`,`s`),e.leafNode(`v`,null,t.ssId));break;case o.ValueType.Formula:this.renderFormula(e,t);case o.ValueType.Merge:}e.closeNode()}}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`c`:return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case`f`:return this.currentNode=`f`,this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case`v`:return this.currentNode=`v`,!0;case`t`:return this.currentNode=`t`,!0;case`r`:return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}},{key:`parseText`,value:function(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case`f`:this.model.formula=this.model.formula?this.model.formula+e:e;break;case`v`:case`t`:this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}},{key:`parseClose`,value:function(e){switch(e){case`c`:var t=this.model;if(t.formula||t.shareType)t.type=o.ValueType.Formula,t.value&&=(this.t===`str`?t.result=r.xmlDecode(t.value):this.t===`b`?t.result=parseInt(t.value,10)!==0:this.t===`e`?t.result={error:t.value}:t.result=parseFloat(t.value),void 0);else if(t.value!==void 0)switch(this.t){case`s`:t.type=o.ValueType.String,t.value=parseInt(t.value,10);break;case`str`:t.type=o.ValueType.String,t.value=r.xmlDecode(t.value);break;case`inlineStr`:t.type=o.ValueType.String;break;case`b`:t.type=o.ValueType.Boolean,t.value=parseInt(t.value,10)!==0;break;case`e`:t.type=o.ValueType.Error,t.value={error:t.value};break;default:t.type=o.ValueType.Number,t.value=parseFloat(t.value)}else t.styleId?t.type=o.ValueType.Null:t.type=o.ValueType.Merge;return!1;case`f`:case`v`:case`is`:return this.currentNode=void 0,!0;case`t`:return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case`r`:return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}},{key:`reconcile`,value:function(e,t){var n=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(n&&(e.style=n),e.styleId!==void 0&&(e.styleId=void 0),e.type){case o.ValueType.String:typeof e.value==`number`&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=o.ValueType.RichText);break;case o.ValueType.Number:n&&r.isDateFmt(n.numFmt)&&(e.type=o.ValueType.Date,e.value=r.excelToDate(e.value,t.date1904));break;case o.ValueType.Formula:e.result!==void 0&&n&&r.isDateFmt(n.numFmt)&&(e.result=r.excelToDate(e.result,t.date1904)),e.shareType===`shared`&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}var i=t.hyperlinkMap[e.address];i&&(e.type===o.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=o.ValueType.Hyperlink,e.hyperlink=i);var a=t.commentsMap&&t.commentsMap[e.address];a&&(e.comment=a)}}])}(i)},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,n){var r=e(`../../base-xform`);t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`x14:cfIcon`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}},{key:`parseOpen`,value:function(e){var t=e.attributes;this.model={iconSet:t.iconSet,iconId:r.toIntValue(t.iconId)}}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(r)},{"../../base-xform":32}],75:[function(e,t,n){var r=e(`uuid`).v4,i=e(`../../base-xform`),a=e(`../../composite-xform`),o=e(`./databar-ext-xform`),s=e(`./icon-set-ext-xform`),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"x14:dataBar":e.databarXform=new o,"x14:iconSet":e.iconSetXform=new s},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`x14:cfRule`}},{key:`prepare`,value:function(e){t.isExt(e)&&(e.x14Id=`{${r()}}`.toUpperCase())}},{key:`render`,value:function(e,n){if(t.isExt(n))switch(n.type){case`dataBar`:this.renderDataBar(e,n);break;case`iconSet`:this.renderIconSet(e,n)}}},{key:`renderDataBar`,value:function(e,t){e.openNode(this.tag,{type:`dataBar`,id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}},{key:`renderIconSet`,value:function(e,t){e.openNode(this.tag,{type:`iconSet`,priority:t.priority,id:t.x14Id||`{${r()}}`}),this.iconSetXform.render(e,t),e.closeNode()}},{key:`createNewModel`,value:function(e){var t=e.attributes;return{type:t.type,x14Id:t.id,priority:i.toIntValue(t.priority)}}},{key:`onParserClose`,value:function(e,t){Object.assign(this.model,t.model)}}],[{key:`isExt`,value:function(e){return e.type===`dataBar`?o.isExt(e):!(e.type!==`iconSet`||!e.custom&&!c[e.iconSet])}}])}(a)},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,n){var r=e(`../../composite-xform`),i=e(`./f-ext-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"xm:f":e.fExtXform=new i},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`x14:cfvo`}},{key:`render`,value:function(e,t){e.openNode(this.tag,{type:t.type}),t.value!==void 0&&this.fExtXform.render(e,t.value),e.closeNode()}},{key:`createNewModel`,value:function(e){return{type:e.attributes.type}}},{key:`onParserClose`,value:function(e,t){e===`xm:f`&&(this.model.value=t.model?parseFloat(t.model):0)}}])}(r)},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,n){var r=e(`../../composite-xform`),i=e(`./sqref-ext-xform`),a=e(`./cf-rule-ext-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"xm:sqref":e.sqRef=new i,"x14:cfRule":e.cfRule=new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`x14:conditionalFormatting`}},{key:`prepare`,value:function(e,t){var n=this;e.rules.forEach((function(e){n.cfRule.prepare(e,t)}))}},{key:`render`,value:function(e,t){var n=this;t.rules.some(a.isExt)&&(e.openNode(this.tag,{"xmlns:xm":`http://schemas.microsoft.com/office/excel/2006/main`}),t.rules.filter(a.isExt).forEach((function(t){return n.cfRule.render(e,t)})),this.sqRef.render(e,t.ref),e.closeNode())}},{key:`createNewModel`,value:function(){return{rules:[]}}},{key:`onParserClose`,value:function(e,t){switch(e){case`xm:sqref`:this.model.ref=t.model;break;case`x14:cfRule`:this.model.rules.push(t.model)}}}])}(r)},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,n){var r=e(`../../composite-xform`),i=e(`./cf-rule-ext-xform`),a=e(`./conditional-formatting-ext-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"x14:conditionalFormatting":e.cfXform=new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`x14:conditionalFormattings`}},{key:`hasContent`,value:function(e){return e.hasExtContent===void 0&&(e.hasExtContent=e.some((function(e){return e.rules.some(i.isExt)}))),e.hasExtContent}},{key:`prepare`,value:function(e,t){var n=this;e.forEach((function(e){n.cfXform.prepare(e,t)}))}},{key:`render`,value:function(e,t){var n=this;this.hasContent(t)&&(e.openNode(this.tag),t.forEach((function(t){return n.cfXform.render(e,t)})),e.closeNode())}},{key:`createNewModel`,value:function(){return[]}},{key:`onParserClose`,value:function(e,t){this.model.push(t.model)}}])}(r)},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,n){var r=e(`../../base-xform`),i=e(`../../composite-xform`),a=e(`../../style/color-xform`),o=e(`./cfvo-ext-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"x14:cfvo":e.cfvoXform=new o,"x14:borderColor":e.borderColorXform=new a(`x14:borderColor`),"x14:negativeBorderColor":e.negativeBorderColorXform=new a(`x14:negativeBorderColor`),"x14:negativeFillColor":e.negativeFillColorXform=new a(`x14:negativeFillColor`),"x14:axisColor":e.axisColorXform=new a(`x14:axisColor`)},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`x14:dataBar`}},{key:`render`,value:function(e,t){var n=this;e.openNode(this.tag,{minLength:r.toIntAttribute(t.minLength,0,!0),maxLength:r.toIntAttribute(t.maxLength,100,!0),border:r.toBoolAttribute(t.border,!1),gradient:r.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toAttribute(t.axisPosition,`auto`),direction:r.toAttribute(t.direction,`leftToRight`)}),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}},{key:`createNewModel`,value:function(e){var t=e.attributes;return{cfvo:[],minLength:r.toIntValue(t.minLength,0),maxLength:r.toIntValue(t.maxLength,100),border:r.toBoolValue(t.border,!1),gradient:r.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toStringValue(t.axisPosition,`auto`),direction:r.toStringValue(t.direction,`leftToRight`)}}},{key:`onParserClose`,value:function(e,t){var n=l(e.split(`:`),2)[1];n===`cfvo`?this.model.cfvo.push(t.model):this.model[n]=t.model}}],[{key:`isExt`,value:function(e){return!e.gradient}}])}(i)},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`xm:f`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,null,t)}},{key:`parseOpen`,value:function(){this.model=``}},{key:`parseText`,value:function(e){this.model+=e}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(e(`../../base-xform`))},{"../../base-xform":32}],81:[function(e,t,n){var r=e(`../../base-xform`),i=e(`../../composite-xform`),a=e(`./cfvo-ext-xform`),o=e(`./cf-icon-ext-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"x14:cfvo":e.cfvoXform=new a,"x14:cfIcon":e.cfIconXform=new o},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`x14:iconSet`}},{key:`render`,value:function(e,t){var n=this;e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0),custom:r.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),t.icons&&t.icons.forEach((function(t,r){t.iconId=r,n.cfIconXform.render(e,t)})),e.closeNode()}},{key:`createNewModel`,value:function(e){var t=e.attributes;return{cfvo:[],iconSet:r.toStringValue(t.iconSet,`3TrafficLights`),reverse:r.toBoolValue(t.reverse,!1),showValue:r.toBoolValue(t.showValue,!0)}}},{key:`onParserClose`,value:function(e,t){var n=l(e.split(`:`),2)[1];switch(n){case`cfvo`:this.model.cfvo.push(t.model);break;case`cfIcon`:this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[n]=t.model}}}])}(i)},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`xm:sqref`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,null,t)}},{key:`parseOpen`,value:function(){this.model=``}},{key:`parseText`,value:function(e){this.model+=e}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(e(`../../base-xform`))},{"../../base-xform":32}],83:[function(e,t,n){var r=e(`../../base-xform`),i=e(`../../composite-xform`),a=e(`../../../../doc/range`),o=e(`./databar-xform`),s=e(`./ext-lst-ref-xform`),c=e(`./formula-xform`),l=e(`./color-scale-xform`),d=e(`./icon-set-xform`),p={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},m=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new a(e.ref).tl;switch(e.operator){case`containsText`:return`NOT(ISERROR(SEARCH("${e.text}",${t})))`;case`containsBlanks`:return`LEN(TRIM(${t}))=0`;case`notContainsBlanks`:return`LEN(TRIM(${t}))>0`;case`containsErrors`:return`ISERROR(${t})`;case`notContainsErrors`:return`NOT(ISERROR(${t}))`;default:return}},h=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new a(e.ref).tl;switch(e.timePeriod){case`thisWeek`:return`AND(TODAY()-ROUNDDOWN(${t},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${t},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case`lastWeek`:return`AND(TODAY()-ROUNDDOWN(${t},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${t},0)<(WEEKDAY(TODAY())+7))`;case`nextWeek`:return`AND(ROUNDDOWN(${t},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${t},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case`yesterday`:return`FLOOR(${t},1)=TODAY()-1`;case`today`:return`FLOOR(${t},1)=TODAY()`;case`tomorrow`:return`FLOOR(${t},1)=TODAY()+1`;case`last7Days`:return`AND(TODAY()-FLOOR(${t},1)<=6,FLOOR(${t},1)<=TODAY())`;case`lastMonth`:return`AND(MONTH(${t})=MONTH(EDATE(TODAY(),0-1)),YEAR(${t})=YEAR(EDATE(TODAY(),0-1)))`;case`thisMonth`:return`AND(MONTH(${t})=MONTH(TODAY()),YEAR(${t})=YEAR(TODAY()))`;case`nextMonth`:return`AND(MONTH(${t})=MONTH(EDATE(TODAY(),0+1)),YEAR(${t})=YEAR(EDATE(TODAY(),0+1)))`;default:return}},g=function(e){var t=e.type,n=e.operator;switch(t){case`containsText`:case`containsBlanks`:case`notContainsBlanks`:case`containsErrors`:case`notContainsErrors`:return{type:`containsText`,operator:t};default:return{type:t,operator:n}}};t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={dataBar:e.databarXform=new o,extLst:e.extLstRefXform=new s,formula:e.formulaXform=new c,colorScale:e.colorScaleXform=new l,iconSet:e.iconSetXform=new d},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`cfRule`}},{key:`render`,value:function(e,t){switch(t.type){case`expression`:this.renderExpression(e,t);break;case`cellIs`:this.renderCellIs(e,t);break;case`top10`:this.renderTop10(e,t);break;case`aboveAverage`:this.renderAboveAverage(e,t);break;case`dataBar`:this.renderDataBar(e,t);break;case`colorScale`:this.renderColorScale(e,t);break;case`iconSet`:this.renderIconSet(e,t);break;case`containsText`:this.renderText(e,t);break;case`timePeriod`:this.renderTimePeriod(e,t)}}},{key:`renderExpression`,value:function(e,t){e.openNode(this.tag,{type:`expression`,dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}},{key:`renderCellIs`,value:function(e,t){var n=this;e.openNode(this.tag,{type:`cellIs`,dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach((function(t){n.formulaXform.render(e,t)})),e.closeNode()}},{key:`renderTop10`,value:function(e,t){e.leafNode(this.tag,{type:`top10`,dxfId:t.dxfId,priority:t.priority,percent:r.toBoolAttribute(t.percent,!1),bottom:r.toBoolAttribute(t.bottom,!1),rank:r.toIntValue(t.rank,10,!0)})}},{key:`renderAboveAverage`,value:function(e,t){e.leafNode(this.tag,{type:`aboveAverage`,dxfId:t.dxfId,priority:t.priority,aboveAverage:r.toBoolAttribute(t.aboveAverage,!0)})}},{key:`renderDataBar`,value:function(e,t){e.openNode(this.tag,{type:`dataBar`,priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}},{key:`renderColorScale`,value:function(e,t){e.openNode(this.tag,{type:`colorScale`,priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}},{key:`renderIconSet`,value:function(e,n){t.isPrimitive(n)&&(e.openNode(this.tag,{type:`iconSet`,priority:n.priority}),this.iconSetXform.render(e,n),e.closeNode())}},{key:`renderText`,value:function(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:r.toStringAttribute(t.operator,`containsText`)});var n=m(t);n&&this.formulaXform.render(e,n),e.closeNode()}},{key:`renderTimePeriod`,value:function(e,t){e.openNode(this.tag,{type:`timePeriod`,dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});var n=h(t);n&&this.formulaXform.render(e,n),e.closeNode()}},{key:`createNewModel`,value:function(e){var t=e.attributes;return $i($i({},g(t)),{},{dxfId:r.toIntValue(t.dxfId),priority:r.toIntValue(t.priority),timePeriod:t.timePeriod,percent:r.toBoolValue(t.percent),bottom:r.toBoolValue(t.bottom),rank:r.toIntValue(t.rank),aboveAverage:r.toBoolValue(t.aboveAverage)})}},{key:`onParserClose`,value:function(e,t){switch(e){case`dataBar`:case`extLst`:case`colorScale`:case`iconSet`:Object.assign(this.model,t.model);break;case`formula`:this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}],[{key:`isPrimitive`,value:function(e){return e.type!==`iconSet`||!e.custom&&!p[e.iconSet]}}])}(i)},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,n){var r=e(`../../base-xform`);t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`cfvo`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}},{key:`parseOpen`,value:function(e){this.model={type:e.attributes.type,value:r.toFloatValue(e.attributes.val)}}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(r)},{"../../base-xform":32}],85:[function(e,t,n){var r=e(`../../composite-xform`),i=e(`../../style/color-xform`),a=e(`./cfvo-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={cfvo:e.cfvoXform=new a,color:e.colorXform=new i},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`colorScale`}},{key:`render`,value:function(e,t){var n=this;e.openNode(this.tag),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),t.color.forEach((function(t){n.colorXform.render(e,t)})),e.closeNode()}},{key:`createNewModel`,value:function(e){return{cfvo:[],color:[]}}},{key:`onParserClose`,value:function(e,t){this.model[e].push(t.model)}}])}(r)},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,n){var r=e(`../../composite-xform`),i=e(`./cf-rule-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={cfRule:new i},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`conditionalFormatting`}},{key:`render`,value:function(e,t){var n=this;t.rules.some(i.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach((function(r){i.isPrimitive(r)&&(r.ref=t.ref,n.map.cfRule.render(e,r))})),e.closeNode())}},{key:`createNewModel`,value:function(e){return{ref:e.attributes.sqref,rules:[]}}},{key:`onParserClose`,value:function(e,t){this.model.rules.push(t.model)}}])}(r)},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,n){var r=e(`../../base-xform`),i=e(`./conditional-formatting-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).cfXform=new i,e}return J(t,e),f(t,[{key:`tag`,get:function(){return`conditionalFormatting`}},{key:`reset`,value:function(){this.model=[]}},{key:`prepare`,value:function(e,t){var n=e.reduce((function(e,t){return Math.max.apply(Math,[e].concat(_(t.rules.map((function(e){return e.priority||0})))))}),1);e.forEach((function(e){e.rules.forEach((function(e){e.priority||=n++,e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))}))}))}},{key:`render`,value:function(e,t){var n=this;t.forEach((function(t){n.cfXform.render(e,t)}))}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===`conditionalFormatting`&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return!(!this.parser||!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:`reconcile`,value:function(e,t){e.forEach((function(e){e.rules.forEach((function(e){e.dxfId!==void 0&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)}))}))}}])}(r)},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,n){var r=e(`../../composite-xform`),i=e(`../../style/color-xform`),a=e(`./cfvo-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={cfvo:e.cfvoXform=new a,color:e.colorXform=new i},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`dataBar`}},{key:`render`,value:function(e,t){var n=this;e.openNode(this.tag),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),this.colorXform.render(e,t.color),e.closeNode()}},{key:`createNewModel`,value:function(){return{cfvo:[]}}},{key:`onParserClose`,value:function(e,t){switch(e){case`cfvo`:this.model.cfvo.push(t.model);break;case`color`:this.model.color=t.model}}}])}(r)},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,n){var r=e(`../../base-xform`),i=e(`../../composite-xform`),a=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`x14:id`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,null,t)}},{key:`parseOpen`,value:function(){this.model=``}},{key:`parseText`,value:function(e){this.model+=e}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(r),o=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"x14:id":e.idXform=new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`ext`}},{key:`render`,value:function(e,t){e.openNode(this.tag,{uri:`{B025F937-C7B1-47D3-B67F-A62EFF666E3E}`,"xmlns:x14":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/main`}),this.idXform.render(e,t.x14Id),e.closeNode()}},{key:`createNewModel`,value:function(){return{}}},{key:`onParserClose`,value:function(e,t){this.model.x14Id=t.model}}])}(i);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={ext:new o},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`extLst`}},{key:`render`,value:function(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}},{key:`createNewModel`,value:function(){return{}}},{key:`onParserClose`,value:function(e,t){Object.assign(this.model,t.model)}}])}(i)},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`formula`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,null,t)}},{key:`parseOpen`,value:function(){this.model=``}},{key:`parseText`,value:function(e){this.model+=e}},{key:`parseClose`,value:function(e){return e!==this.tag}}])}(e(`../../base-xform`))},{"../../base-xform":32}],91:[function(e,t,n){var r=e(`../../base-xform`),i=e(`../../composite-xform`),a=e(`./cfvo-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={cfvo:e.cfvoXform=new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`iconSet`}},{key:`render`,value:function(e,t){var n=this;e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet,`3TrafficLights`),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),e.closeNode()}},{key:`createNewModel`,value:function(e){var t=e.attributes;return{iconSet:r.toStringValue(t.iconSet,`3TrafficLights`),reverse:r.toBoolValue(t.reverse),showValue:r.toBoolValue(t.showValue),cfvo:[]}}},{key:`onParserClose`,value:function(e,t){this.model[e].push(t.model)}}])}(i)},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,n){var r=e(`../../../utils/utils`);t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`col`}},{key:`prepare`,value:function(e,t){var n=t.styles.addStyleModel(e.style||{});n&&(e.styleId=n)}},{key:`render`,value:function(e,t){e.openNode(`col`),e.addAttribute(`min`,t.min),e.addAttribute(`max`,t.max),t.width&&e.addAttribute(`width`,t.width),t.styleId&&e.addAttribute(`style`,t.styleId),t.hidden&&e.addAttribute(`hidden`,`1`),t.bestFit&&e.addAttribute(`bestFit`,`1`),t.outlineLevel&&e.addAttribute(`outlineLevel`,t.outlineLevel),t.collapsed&&e.addAttribute(`collapsed`,`1`),e.addAttribute(`customWidth`,`1`),e.closeNode()}},{key:`parseOpen`,value:function(e){if(e.name===`col`){var t=this.model={min:parseInt(e.attributes.min||`0`,10),max:parseInt(e.attributes.max||`0`,10),width:e.attributes.width===void 0?void 0:parseFloat(e.attributes.width||`0`)};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),r.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),r.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),r.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}},{key:`reconcile`,value:function(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}])}(e(`../base-xform`))},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,n){var r=e(`../../../utils/under-dash`),i=e(`../../../utils/utils`),a=e(`../../../utils/col-cache`),o=e(`../base-xform`),s=e(`../../../doc/range`);function c(e,t,n,r){var i=t[n];i===void 0?r!==void 0&&(e[n]=r):e[n]=i}function l(e,t,n,r){var a=t[n];a===void 0?r!==void 0&&(e[n]=r):e[n]=i.parseBoolean(a)}function d(e){var t=r.map(e,(function(e,t){return{address:t,dataValidation:e,marked:!1}})).sort((function(e,t){return r.strcmp(e.address,t.address)})),n=r.keyBy(t,`address`),i=function(t,n,i){for(var o=0;o<n;o++){var s=a.encodeAddress(t.row+o,i);if(!e[s]||!r.isEqual(e[t.address],e[s]))return!1}return!0};return t.map((function(t){if(!t.marked){var o=a.decodeEx(t.address);if(o.dimensions)return n[o.dimensions].marked=!0,$i($i({},t.dataValidation),{},{sqref:t.address});for(var s=1,c=a.encodeAddress(o.row+s,o.col);e[c]&&r.isEqual(t.dataValidation,e[c]);)s++,c=a.encodeAddress(o.row+s,o.col);for(var l=1;i(o,s,o.col+l);)l++;for(var u=0;u<s;u++)for(var d=0;d<l;d++)c=a.encodeAddress(o.row+u,o.col+d),n[c].marked=!0;if(s>1||l>1){var f=o.row+(s-1),p=o.col+(l-1);return $i($i({},t.dataValidation),{},{sqref:`${t.address}:${a.encodeAddress(f,p)}`})}return $i($i({},t.dataValidation),{},{sqref:t.address})}return null})).filter(Boolean)}t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`dataValidations`}},{key:`render`,value:function(e,t){var n=d(t);n.length&&(e.openNode(`dataValidations`,{count:n.length}),n.forEach((function(t){e.openNode(`dataValidation`),t.type!==`any`&&(e.addAttribute(`type`,t.type),t.operator&&t.type!==`list`&&t.operator!==`between`&&e.addAttribute(`operator`,t.operator),t.allowBlank&&e.addAttribute(`allowBlank`,`1`)),t.showInputMessage&&e.addAttribute(`showInputMessage`,`1`),t.promptTitle&&e.addAttribute(`promptTitle`,t.promptTitle),t.prompt&&e.addAttribute(`prompt`,t.prompt),t.showErrorMessage&&e.addAttribute(`showErrorMessage`,`1`),t.errorStyle&&e.addAttribute(`errorStyle`,t.errorStyle),t.errorTitle&&e.addAttribute(`errorTitle`,t.errorTitle),t.error&&e.addAttribute(`error`,t.error),e.addAttribute(`sqref`,t.sqref),(t.formulae||[]).forEach((function(n,r){e.openNode(`formula${r+1}`),t.type===`date`?e.writeText(i.dateToExcel(new Date(n))):e.writeText(n),e.closeNode()})),e.closeNode()})),e.closeNode())}},{key:`parseOpen`,value:function(e){switch(e.name){case`dataValidations`:return this.model={},!0;case`dataValidation`:this._address=e.attributes.sqref;var t={type:e.attributes.type||`any`,formulae:[]};switch(e.attributes.type&&l(t,e.attributes,`allowBlank`),l(t,e.attributes,`showInputMessage`),l(t,e.attributes,`showErrorMessage`),t.type){case`any`:case`list`:case`custom`:break;default:c(t,e.attributes,`operator`,`between`)}return c(t,e.attributes,`promptTitle`),c(t,e.attributes,`prompt`),c(t,e.attributes,`errorStyle`),c(t,e.attributes,`errorTitle`),c(t,e.attributes,`error`),this._dataValidation=t,!0;case`formula1`:case`formula2`:return this._formula=[],!0;default:return!1}}},{key:`parseText`,value:function(e){this._formula&&this._formula.push(e)}},{key:`parseClose`,value:function(e){var t=this;switch(e){case`dataValidations`:return!1;case`dataValidation`:return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach((function(e){e.includes(`:`)?new s(e).forEachAddress((function(e){t.model[e]=t._dataValidation})):t.model[e]=t._dataValidation})),!0;case`formula1`:case`formula2`:var n=this._formula.join(``);switch(this._dataValidation.type){case`whole`:case`textLength`:n=parseInt(n,10);break;case`decimal`:n=parseFloat(n);break;case`date`:n=i.excelToDate(parseFloat(n))}return this._dataValidation.formulae.push(n),this._formula=void 0,!0;default:return!0}}}])}(o)},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`dimension`}},{key:`render`,value:function(e,t){t&&e.leafNode(`dimension`,{ref:t})}},{key:`parseOpen`,value:function(e){return e.name===`dimension`&&(this.model=e.attributes.ref,!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],95:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`drawing`}},{key:`render`,value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes[`r:id`]},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],96:[function(e,t,n){var r=e(`../composite-xform`),i=e(`./cf-ext/conditional-formattings-ext-xform`),a=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={"x14:conditionalFormattings":e.conditionalFormattings=new i},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`ext`}},{key:`hasContent`,value:function(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}},{key:`prepare`,value:function(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}},{key:`render`,value:function(e,t){e.openNode(`ext`,{uri:`{78C0D931-6437-407d-A8EE-F0AAD7539E65}`,"xmlns:x14":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/main`}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}},{key:`createNewModel`,value:function(){return{}}},{key:`onParserClose`,value:function(e,t){this.model[e]=t.model}}])}(r);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={ext:e.ext=new a},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`extLst`}},{key:`prepare`,value:function(e,t){this.ext.prepare(e,t)}},{key:`hasContent`,value:function(e){return this.ext.hasContent(e)}},{key:`render`,value:function(e,t){this.hasContent(t)&&(e.openNode(`extLst`),this.ext.render(e,t),e.closeNode())}},{key:`createNewModel`,value:function(){return{}}},{key:`onParserClose`,value:function(e,t){Object.assign(this.model,t.model)}}])}(r)},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`headerFooter`}},{key:`render`,value:function(e,t){if(t){e.addRollback();var n=!1;e.openNode(`headerFooter`),t.differentFirst&&(e.addAttribute(`differentFirst`,`1`),n=!0),t.differentOddEven&&(e.addAttribute(`differentOddEven`,`1`),n=!0),t.oddHeader&&typeof t.oddHeader==`string`&&(e.leafNode(`oddHeader`,null,t.oddHeader),n=!0),t.oddFooter&&typeof t.oddFooter==`string`&&(e.leafNode(`oddFooter`,null,t.oddFooter),n=!0),t.evenHeader&&typeof t.evenHeader==`string`&&(e.leafNode(`evenHeader`,null,t.evenHeader),n=!0),t.evenFooter&&typeof t.evenFooter==`string`&&(e.leafNode(`evenFooter`,null,t.evenFooter),n=!0),t.firstHeader&&typeof t.firstHeader==`string`&&(e.leafNode(`firstHeader`,null,t.firstHeader),n=!0),t.firstFooter&&typeof t.firstFooter==`string`&&(e.leafNode(`firstFooter`,null,t.firstFooter),n=!0),n?(e.closeNode(),e.commit()):e.rollback()}}},{key:`parseOpen`,value:function(e){switch(e.name){case`headerFooter`:return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=parseInt(e.attributes.differentFirst,0)===1),e.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(e.attributes.differentOddEven,0)===1),!0;case`oddHeader`:return this.currentNode=`oddHeader`,!0;case`oddFooter`:return this.currentNode=`oddFooter`,!0;case`evenHeader`:return this.currentNode=`evenHeader`,!0;case`evenFooter`:return this.currentNode=`evenFooter`,!0;case`firstHeader`:return this.currentNode=`firstHeader`,!0;case`firstFooter`:return this.currentNode=`firstFooter`,!0;default:return!1}}},{key:`parseText`,value:function(e){switch(this.currentNode){case`oddHeader`:this.model.oddHeader=e;break;case`oddFooter`:this.model.oddFooter=e;break;case`evenHeader`:this.model.evenHeader=e;break;case`evenFooter`:this.model.evenFooter=e;break;case`firstHeader`:this.model.firstHeader=e;break;case`firstFooter`:this.model.firstFooter=e}}},{key:`parseClose`,value:function(){switch(this.currentNode){case`oddHeader`:case`oddFooter`:case`evenHeader`:case`evenFooter`:case`firstHeader`:case`firstFooter`:return this.currentNode=void 0,!0;default:return!1}}}])}(e(`../base-xform`))},{"../base-xform":32}],98:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`hyperlink`}},{key:`render`,value:function(e,t){this.isInternalLink(t)?e.leafNode(`hyperlink`,{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode(`hyperlink`,{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}},{key:`parseOpen`,value:function(e){return e.name===`hyperlink`&&(this.model={address:e.attributes.ref,rId:e.attributes[`r:id`],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}},{key:`isInternalLink`,value:function(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}])}(e(`../base-xform`))},{"../base-xform":32}],99:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`mergeCell`}},{key:`render`,value:function(e,t){e.leafNode(`mergeCell`,{ref:t})}},{key:`parseOpen`,value:function(e){return e.name===`mergeCell`&&(this.model=e.attributes.ref,!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],100:[function(e,t,n){var r=e(`../../../utils/under-dash`),i=e(`../../../doc/range`),a=e(`../../../utils/col-cache`),o=e(`../../../doc/enums`);t.exports=function(){function e(){u(this,e),this.merges={}}return f(e,[{key:`add`,value:function(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{var t=`${e.master}:${e.address}`;this.merges[e.master]=new i(t)}}},{key:`mergeCells`,get:function(){return r.map(this.merges,(function(e){return e.range}))}},{key:`reconcile`,value:function(e,t){r.each(e,(function(e){for(var n=a.decode(e),r=n.top;r<=n.bottom;r++)for(var i=t[r-1],s=n.left;s<=n.right;s++){var c=i.cells[s-1];c?c.type===o.ValueType.Merge&&(c.master=n.tl):i.cells[s]={type:o.ValueType.Null,address:a.encodeAddress(r,s)}}}))}},{key:`getMasterAddress`,value:function(e){var t=this.hash[e];return t&&t.tl}}])}()},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,n){var r=e(`../base-xform`),i=function(e){return e!==void 0};t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`outlinePr`}},{key:`render`,value:function(e,t){return!(!t||!i(t.summaryBelow)&&!i(t.summaryRight)||(e.leafNode(this.tag,{summaryBelow:i(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:i(t.summaryRight)?Number(t.summaryRight):void 0}),0))}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={summaryBelow:i(e.attributes.summaryBelow)?!!Number(e.attributes.summaryBelow):void 0,summaryRight:i(e.attributes.summaryRight)?!!Number(e.attributes.summaryRight):void 0},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(r)},{"../base-xform":32}],102:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`brk`}},{key:`render`,value:function(e,t){e.leafNode(`brk`,t)}},{key:`parseOpen`,value:function(e){return e.name===`brk`&&(this.model=e.attributes.ref,!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],103:[function(e,t,n){var r=e(`../../../utils/under-dash`);t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`pageMargins`}},{key:`render`,value:function(e,t){if(t){var n={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};r.some(n,(function(e){return e!==void 0}))&&e.leafNode(this.tag,n)}}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`pageSetUpPr`}},{key:`render`,value:function(e,t){return!(!t||!t.fitToPage||(e.leafNode(this.tag,{fitToPage:t.fitToPage?`1`:void 0}),0))}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={fitToPage:e.attributes.fitToPage===`1`},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],105:[function(e,t,n){var r=e(`../../../utils/under-dash`);function i(e){return e?`1`:void 0}function a(e){if(e===`overThenDown`)return e}function o(e){switch(e){case`atEnd`:case`asDisplyed`:return e;default:return}}function s(e){switch(e){case`dash`:case`blank`:case`NA`:return e;default:return}}function c(e){return e===void 0?void 0:parseInt(e,10)}t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`pageSetup`}},{key:`render`,value:function(e,t){if(t){var n={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:a(t.pageOrder),blackAndWhite:i(t.blackAndWhite),draft:i(t.draft),cellComments:o(t.cellComments),errors:s(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:i(t.firstPageNumber),usePrinterDefaults:i(t.usePrinterDefaults),copies:t.copies};r.some(n,(function(e){return e!==void 0}))&&e.leafNode(this.tag,n)}}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={paperSize:c(e.attributes.paperSize),orientation:e.attributes.orientation||`portrait`,horizontalDpi:parseInt(e.attributes.horizontalDpi||`4294967295`,10),verticalDpi:parseInt(e.attributes.verticalDpi||`4294967295`,10),pageOrder:e.attributes.pageOrder||`downThenOver`,blackAndWhite:e.attributes.blackAndWhite===`1`,draft:e.attributes.draft===`1`,cellComments:e.attributes.cellComments||`None`,errors:e.attributes.errors||`displayed`,scale:parseInt(e.attributes.scale||`100`,10),fitToWidth:parseInt(e.attributes.fitToWidth||`1`,10),fitToHeight:parseInt(e.attributes.fitToHeight||`1`,10),firstPageNumber:parseInt(e.attributes.firstPageNumber||`1`,10),useFirstPageNumber:e.attributes.useFirstPageNumber===`1`,usePrinterDefaults:e.attributes.usePrinterDefaults===`1`,copies:parseInt(e.attributes.copies||`1`,10)},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`picture`}},{key:`render`,value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes[`r:id`]},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],107:[function(e,t,n){var r=e(`../../../utils/under-dash`);function i(e){return e?`1`:void 0}t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`printOptions`}},{key:`render`,value:function(e,t){if(t){var n={headings:i(t.showRowColHeaders),gridLines:i(t.showGridLines),horizontalCentered:i(t.horizontalCentered),verticalCentered:i(t.verticalCentered)};r.some(n,(function(e){return e!==void 0}))&&e.leafNode(this.tag,n)}}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={showRowColHeaders:e.attributes.headings===`1`,showGridLines:e.attributes.gridLines===`1`,horizontalCentered:e.attributes.horizontalCentered===`1`,verticalCentered:e.attributes.verticalCentered===`1`},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,n){var r=e(`./page-breaks-xform`);t.exports=function(e){function t(){return u(this,t),X(this,t,[{tag:`rowBreaks`,count:!0,childXform:new r}])}return J(t,e),f(t,[{key:`render`,value:function(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute(`manualBreakCount`,t.length));var n=this.childXform;t.forEach((function(t){n.render(e,t)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}])}(e(`../list-xform`))},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,n){var r=e(`../base-xform`),i=e(`../../../utils/utils`),a=e(`./cell-xform`);t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).maxItems=e&&e.maxItems,n.map={c:new a},n}return J(t,e),f(t,[{key:`tag`,get:function(){return`row`}},{key:`prepare`,value:function(e,t){var n=t.styles.addStyleModel(e.style);n&&(e.styleId=n);var r=this.map.c;e.cells.forEach((function(e){r.prepare(e,t)}))}},{key:`render`,value:function(e,t,n){e.openNode(`row`),e.addAttribute(`r`,t.number),t.height&&(e.addAttribute(`ht`,t.height),e.addAttribute(`customHeight`,`1`)),t.hidden&&e.addAttribute(`hidden`,`1`),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute(`spans`,`${t.min}:${t.max}`),t.styleId&&(e.addAttribute(`s`,t.styleId),e.addAttribute(`customFormat`,`1`)),e.addAttribute(`x14ac:dyDescent`,`0.25`),t.outlineLevel&&e.addAttribute(`outlineLevel`,t.outlineLevel),t.collapsed&&e.addAttribute(`collapsed`,`1`);var r=this.map.c;t.cells.forEach((function(t){r.render(e,t,n)})),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===`row`){this.numRowsSeen+=1;var t=e.attributes.spans?e.attributes.spans.split(`:`).map((function(e){return parseInt(e,10)})):[void 0,void 0],n=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(n.styleId=parseInt(e.attributes.s,10)),i.parseBoolean(e.attributes.hidden)&&(n.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(n.bestFit=!0),e.attributes.ht&&(n.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(n.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(n.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}},{key:`reconcile`,value:function(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},e.styleId!==void 0&&(e.styleId=void 0);var n=this.map.c;e.cells.forEach((function(e){n.reconcile(e,t)}))}}])}(r)},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,n){var r=e(`../../../utils/under-dash`);t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`sheetFormatPr`}},{key:`render`,value:function(e,t){if(t){var n={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(n.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&t.defaultRowHeight===15||(n.customHeight=`1`),r.some(n,(function(e){return e!==void 0}))&&e.leafNode(`sheetFormatPr`,n)}}},{key:`parseOpen`,value:function(e){return e.name===`sheetFormatPr`&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||`0`),dyDescent:parseFloat(e.attributes[`x14ac:dyDescent`]||`0`),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||`0`,10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||`0`,10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,n){var r=e(`../base-xform`),i=e(`../style/color-xform`),a=e(`./page-setup-properties-xform`),o=e(`./outline-properties-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={tabColor:new i(`tabColor`),pageSetUpPr:new a,outlinePr:new o},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`sheetPr`}},{key:`render`,value:function(e,t){if(t){e.addRollback(),e.openNode(`sheetPr`);var n=!1;n=this.map.tabColor.render(e,t.tabColor)||n,n=this.map.pageSetUpPr.render(e,t.pageSetup)||n,(n=this.map.outlinePr.render(e,t.outlineProperties)||n)?(e.closeNode(),e.commit()):e.rollback()}}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}},{key:`parseText`,value:function(e){return!!this.parser&&(this.parser.parseText(e),!0)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}])}(r)},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,n){var r=e(`../../../utils/under-dash`);function i(e,t){return e?t:void 0}function a(e,t){return e===t||void 0}t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`sheetProtection`}},{key:`render`,value:function(e,t){if(t){var n={sheet:i(t.sheet,`1`),selectLockedCells:!1===t.selectLockedCells?`1`:void 0,selectUnlockedCells:!1===t.selectUnlockedCells?`1`:void 0,formatCells:i(t.formatCells,`0`),formatColumns:i(t.formatColumns,`0`),formatRows:i(t.formatRows,`0`),insertColumns:i(t.insertColumns,`0`),insertRows:i(t.insertRows,`0`),insertHyperlinks:i(t.insertHyperlinks,`0`),deleteColumns:i(t.deleteColumns,`0`),deleteRows:i(t.deleteRows,`0`),sort:i(t.sort,`0`),autoFilter:i(t.autoFilter,`0`),pivotTables:i(t.pivotTables,`0`)};t.sheet&&(n.algorithmName=t.algorithmName,n.hashValue=t.hashValue,n.saltValue=t.saltValue,n.spinCount=t.spinCount,n.objects=i(!1===t.objects,`1`),n.scenarios=i(!1===t.scenarios,`1`)),r.some(n,(function(e){return e!==void 0}))&&e.leafNode(this.tag,n)}}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={sheet:a(e.attributes.sheet,`1`),objects:e.attributes.objects!==`1`&&void 0,scenarios:e.attributes.scenarios!==`1`&&void 0,selectLockedCells:e.attributes.selectLockedCells!==`1`&&void 0,selectUnlockedCells:e.attributes.selectUnlockedCells!==`1`&&void 0,formatCells:a(e.attributes.formatCells,`0`),formatColumns:a(e.attributes.formatColumns,`0`),formatRows:a(e.attributes.formatRows,`0`),insertColumns:a(e.attributes.insertColumns,`0`),insertRows:a(e.attributes.insertRows,`0`),insertHyperlinks:a(e.attributes.insertHyperlinks,`0`),deleteColumns:a(e.attributes.deleteColumns,`0`),deleteRows:a(e.attributes.deleteRows,`0`),sort:a(e.attributes.sort,`0`),autoFilter:a(e.attributes.autoFilter,`0`),pivotTables:a(e.attributes.pivotTables,`0`)},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,n){var r=e(`../../../utils/col-cache`),i=e(`../base-xform`),a={frozen:`frozen`,frozenSplit:`frozen`,split:`split`};t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`sheetView`}},{key:`prepare`,value:function(e){switch(e.state){case`frozen`:case`split`:break;default:e.state=`normal`}}},{key:`render`,value:function(e,t){e.openNode(`sheetView`,{workbookViewId:t.workbookViewId||0});var n,i,a,o,s=function(t,n,r){r&&e.addAttribute(t,n)};switch(s(`rightToLeft`,`1`,!0===t.rightToLeft),s(`tabSelected`,`1`,t.tabSelected),s(`showRuler`,`0`,!1===t.showRuler),s(`showRowColHeaders`,`0`,!1===t.showRowColHeaders),s(`showGridLines`,`0`,!1===t.showGridLines),s(`zoomScale`,t.zoomScale,t.zoomScale),s(`zoomScaleNormal`,t.zoomScaleNormal,t.zoomScaleNormal),s(`view`,t.style,t.style),t.state){case`frozen`:i=t.xSplit||0,a=t.ySplit||0,n=t.topLeftCell||r.getAddress(a+1,i+1).address,o=(t.xSplit&&t.ySplit?`bottomRight`:t.xSplit&&`topRight`)||`bottomLeft`,e.leafNode(`pane`,{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:n,activePane:o,state:`frozen`}),e.leafNode(`selection`,{pane:o,activeCell:t.activeCell,sqref:t.activeCell});break;case`split`:t.activePane===`topLeft`&&(t.activePane=void 0),e.leafNode(`pane`,{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode(`selection`,{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case`normal`:t.activeCell&&e.leafNode(`selection`,{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}},{key:`parseOpen`,value:function(e){switch(e.name){case`sheetView`:return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:e.attributes.rightToLeft===`1`,tabSelected:e.attributes.tabSelected===`1`,showRuler:e.attributes.showRuler!==`0`,showRowColHeaders:e.attributes.showRowColHeaders!==`0`,showGridLines:e.attributes.showGridLines!==`0`,zoomScale:parseInt(e.attributes.zoomScale||`100`,10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||`100`,10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case`pane`:return this.pane={xSplit:parseInt(e.attributes.xSplit||`0`,10),ySplit:parseInt(e.attributes.ySplit||`0`,10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||`topLeft`,state:e.attributes.state},!0;case`selection`:var t=e.attributes.pane||`topLeft`;return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0;default:return!1}}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){var t,n;return e!==`sheetView`||(this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||`split`,xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state===`split`&&(t.activePane=this.pane.activePane),(n=this.selections[this.pane.activePane])&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:`normal`,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},(n=this.selections.topLeft)&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1)}},{key:`reconcile`,value:function(){}}])}(i)},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`tablePart`}},{key:`render`,value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes[`r:id`]},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],115:[function(e,t,n){var r=e(`../../../utils/under-dash`),i=e(`../../../utils/col-cache`),a=e(`../../../utils/xml-stream`),o=e(`../../rel-type`),s=e(`./merges`),c=e(`../base-xform`),l=e(`../list-xform`),d=e(`./row-xform`),p=e(`./col-xform`),m=e(`./dimension-xform`),h=e(`./hyperlink-xform`),g=e(`./merge-cell-xform`),_=e(`./data-validations-xform`),v=e(`./sheet-properties-xform`),y=e(`./sheet-format-properties-xform`),b=e(`./sheet-view-xform`),x=e(`./sheet-protection-xform`),S=e(`./page-margins-xform`),C=e(`./page-setup-xform`),w=e(`./print-options-xform`),T=e(`./auto-filter-xform`),E=e(`./picture-xform`),D=e(`./drawing-xform`),O=e(`./table-part-xform`),k=e(`./row-breaks-xform`),A=e(`./header-footer-xform`),j=e(`./cf/conditional-formattings-xform`),M=e(`./ext-lst-xform`),N=function(e,t){Object.keys(t).forEach((function(n){var r=e[n],i=t[n];r===void 0&&i!==void 0&&(e[n]=i)}))},P=function(e,t){if(!t||!t.length)return e;if(!e||!e.length)return t;var n={},r={};return e.forEach((function(e){n[e.ref]=e,e.rules.forEach((function(e){var t=e.x14Id;t&&(r[t]=e)}))})),t.forEach((function(t){t.rules.forEach((function(i){var a=r[i.x14Id];a?N(a,i):n[t.ref]?n[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})}))})),e},F=function(e){function t(e){var n;u(this,t),n=X(this,t);var r=e||{},i=r.maxRows,a=r.maxCols,o=r.ignoreNodes;return n.ignoreNodes=o||[],n.map={sheetPr:new v,dimension:new m,sheetViews:new l({tag:`sheetViews`,count:!1,childXform:new b}),sheetFormatPr:new y,cols:new l({tag:`cols`,count:!1,childXform:new p}),sheetData:new l({tag:`sheetData`,count:!1,empty:!0,childXform:new d({maxItems:a}),maxItems:i}),autoFilter:new T,mergeCells:new l({tag:`mergeCells`,count:!0,childXform:new g}),rowBreaks:new k,hyperlinks:new l({tag:`hyperlinks`,count:!1,childXform:new h}),pageMargins:new S,dataValidations:new _,pageSetup:new C,headerFooter:new A,printOptions:new w,picture:new E,drawing:new D,sheetProtection:new x,tableParts:new l({tag:`tableParts`,count:!0,childXform:new O}),conditionalFormatting:new j,extLst:new M},n}return J(t,e),f(t,[{key:`prepare`,value:function(e,t){var n=this;t.merges=new s,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;var r=e.rels=[];function a(e){return`rId${e.length+1}`}if(e.hyperlinks.forEach((function(e){var t=a(r);e.rId=t,r.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:`External`})})),e.comments.length>0){var c={Id:a(r),Type:o.Comments,Target:`../comments${e.id}.xml`};r.push(c);var l={Id:a(r),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};r.push(l),e.comments.forEach((function(e){e.refAddress=i.decodeAddress(e.ref)})),t.commentRefs.push({commentName:`comments${e.id}`,vmlDrawing:`vmlDrawing${e.id}`})}var u,d=[];e.media.forEach((function(i){if(i.type===`background`){var s=a(r);u=t.media[i.imageId],r.push({Id:s,Type:o.Image,Target:`../media/${u.name}.${u.extension}`}),e.background={rId:s},e.image=t.media[i.imageId]}else if(i.type===`image`){var c=e.drawing;u=t.media[i.imageId],c||(c=e.drawing={rId:a(r),name:`drawing${++t.drawingsCount}`,anchors:[],rels:[]},t.drawings.push(c),r.push({Id:c.rId,Type:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing`,Target:`../drawings/${c.name}.xml`}));var l=n.preImageId===i.imageId?d[i.imageId]:d[c.rels.length];l||(l=a(c.rels),d[c.rels.length]=l,c.rels.push({Id:l,Type:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,Target:`../media/${u.name}.${u.extension}`}));var f={picture:{rId:l},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){var p=a(c.rels);d[c.rels.length]=p,f.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:p},c.rels.push({Id:p,Type:o.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:`External`})}n.preImageId=i.imageId,c.anchors.push(f)}})),e.tables.forEach((function(e){var n=a(r);e.rId=n,r.push({Id:n,Type:o.Table,Target:`../tables/${e.target}`}),e.columns.forEach((function(e){var n=e.style;n&&(e.dxfId=t.styles.addDxfStyle(n))}))})),this.map.extLst.prepare(e,t)}},{key:`render`,value:function(e,n){e.openXml(a.StdDocAttributes),e.openNode(`worksheet`,t.WORKSHEET_ATTRIBUTES);var r=n.properties?{defaultRowHeight:n.properties.defaultRowHeight,dyDescent:n.properties.dyDescent,outlineLevelCol:n.properties.outlineLevelCol,outlineLevelRow:n.properties.outlineLevelRow}:void 0;n.properties&&n.properties.defaultColWidth&&(r.defaultColWidth=n.properties.defaultColWidth);var i={outlineProperties:n.properties&&n.properties.outlineProperties,tabColor:n.properties&&n.properties.tabColor,pageSetup:n.pageSetup&&n.pageSetup.fitToPage?{fitToPage:n.pageSetup.fitToPage}:void 0},s=n.pageSetup&&n.pageSetup.margins,c={showRowColHeaders:n.pageSetup&&n.pageSetup.showRowColHeaders,showGridLines:n.pageSetup&&n.pageSetup.showGridLines,horizontalCentered:n.pageSetup&&n.pageSetup.horizontalCentered,verticalCentered:n.pageSetup&&n.pageSetup.verticalCentered},l=n.sheetProtection;this.map.sheetPr.render(e,i),this.map.dimension.render(e,n.dimensions),this.map.sheetViews.render(e,n.views),this.map.sheetFormatPr.render(e,r),this.map.cols.render(e,n.cols),this.map.sheetData.render(e,n.rows),this.map.sheetProtection.render(e,l),this.map.autoFilter.render(e,n.autoFilter),this.map.mergeCells.render(e,n.mergeCells),this.map.conditionalFormatting.render(e,n.conditionalFormattings),this.map.dataValidations.render(e,n.dataValidations),this.map.hyperlinks.render(e,n.hyperlinks),this.map.printOptions.render(e,c),this.map.pageMargins.render(e,s),this.map.pageSetup.render(e,n.pageSetup),this.map.headerFooter.render(e,n.headerFooter),this.map.rowBreaks.render(e,n.rowBreaks),this.map.drawing.render(e,n.drawing),this.map.picture.render(e,n.background),this.map.tableParts.render(e,n.tables),this.map.extLst.render(e,n),n.rels&&n.rels.forEach((function(t){t.Type===o.VmlDrawing&&e.leafNode(`legacyDrawing`,{"r:id":t.Id})})),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===`worksheet`?(r.each(this.map,(function(e){e.reset()})),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e===`worksheet`){var t=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(t.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(t.outlineProperties=this.map.sheetPr.model.outlineProperties);var n={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},r=Object.assign(n,this.map.pageSetup.model,this.map.printOptions.model),i=P(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model[`x14:conditionalFormattings`]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:t,views:this.map.sheetViews.model,pageSetup:r,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:i},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}},{key:`reconcile`,value:function(e,t){var n=(e.relationships||[]).reduce((function(n,r){if(n[r.Id]=r,r.Type===o.Comments&&(e.comments=t.comments[r.Target].comments),r.Type===o.VmlDrawing&&e.comments&&e.comments.length){var i=t.vmlDrawings[r.Target].comments;e.comments.forEach((function(e,t){e.note=Object.assign({},e.note,i[t])}))}return n}),{});if(t.commentsMap=(e.comments||[]).reduce((function(e,t){return t.ref&&(e[t.ref]=t),e}),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((function(e,t){return t.rId&&(e[t.address]=n[t.rId].Target),e}),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach((function(e){e.cells=e.cells&&e.cells.filter(Boolean)||[]})),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){var r=n[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(r){var i=r[1];t.drawings[i].anchors.forEach((function(t){if(t.medium){var n={type:`image`,imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(n)}}))}}var a=e.background&&n[e.background.rId];if(a){var s=a.Target.split(`/media/`)[1],c=t.mediaIndex&&t.mediaIndex[s];c!==void 0&&e.media.push({type:`background`,imageId:c})}e.tables=(e.tables||[]).map((function(e){var r=n[e.rId];return t.tables[r.Target]})),delete e.relationships,delete e.hyperlinks,delete e.comments}}])}(c);F.WORKSHEET_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`x14ac`,"xmlns:x14ac":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac`},t.exports=F},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,n){t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).tag=e.tag,n.attr=e.attr,n}return J(t,e),f(t,[{key:`render`,value:function(e,t){t&&(e.openNode(this.tag),e.closeNode())}},{key:`parseOpen`,value:function(e){e.name===this.tag&&(this.model=!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],117:[function(e,t,n){t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).tag=e.tag,n.attr=e.attr,n.attrs=e.attrs,n._format=e.format||function(e){try{return Number.isNaN(e.getTime())?``:e.toISOString()}catch{return``}},n._parse=e.parse||function(e){return new Date(e)},n}return J(t,e),f(t,[{key:`render`,value:function(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}},{key:`parseOpen`,value:function(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}},{key:`parseText`,value:function(e){this.attr||this.text.push(e)}},{key:`parseClose`,value:function(){return this.attr||(this.model=this._parse(this.text.join(``))),!1}}])}(e(`../base-xform`))},{"../base-xform":32}],118:[function(e,t,n){t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).tag=e.tag,n.attr=e.attr,n.attrs=e.attrs,n.zero=e.zero,n}return J(t,e),f(t,[{key:`render`,value:function(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}},{key:`parseText`,value:function(e){this.attr||this.text.push(e)}},{key:`parseClose`,value:function(){return this.attr||(this.model=parseInt(this.text.join(``)||0,10)),!1}}])}(e(`../base-xform`))},{"../base-xform":32}],119:[function(e,t,n){t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).tag=e.tag,n.attr=e.attr,n.attrs=e.attrs,n}return J(t,e),f(t,[{key:`render`,value:function(e,t){t!==void 0&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:`parseOpen`,value:function(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}},{key:`parseText`,value:function(e){this.attr||this.text.push(e)}},{key:`parseClose`,value:function(){return this.attr||(this.model=this.text.join(``)),!1}}])}(e(`../base-xform`))},{"../base-xform":32}],120:[function(e,t,n){var r=e(`./base-xform`),i=e(`../../utils/xml-stream`);function a(e,t){e.openNode(t.tag,t.$),t.c&&t.c.forEach((function(t){a(e,t)})),t.t&&e.writeText(t.t),e.closeNode()}t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t))._model=e,n}return J(t,e),f(t,[{key:`render`,value:function(e){if(!this._xml){var t=new i;a(t,this._model),this._xml=t.xml}e.writeXml(this._xml)}},{key:`parseOpen`,value:function(){return!0}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return e!==this._model.tag}}])}(r)},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,n){var r=e(`./text-xform`),i=e(`./rich-text-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={r:new i,t:new r},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`rPh`}},{key:`render`,value:function(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty(`richText`)&&t.richText){var n=this.map.r;t.richText.forEach((function(t){n.render(e,t)}))}else t&&this.map.t.render(e,t.text);e.closeNode()}},{key:`parseOpen`,value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case`r`:var t=this.model.richText;t||=this.model.richText=[],t.push(this.parser.model);break;case`t`:this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}])}(e(`../base-xform`))},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,n){var r=e(`./text-xform`),i=e(`../style/font-xform`),a=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).model=e,n}return J(t,e),f(t,[{key:`tag`,get:function(){return`r`}},{key:`textXform`,get:function(){return this._textXform||=new r}},{key:`fontXform`,get:function(){return this._fontXform||=new i(t.FONT_OPTIONS)}},{key:`render`,value:function(e,t){t||=this.model,e.openNode(`r`),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`r`:return this.model={},!0;case`t`:return this.parser=this.textXform,this.parser.parseOpen(e),!0;case`rPr`:return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){switch(e){case`r`:return!1;case`t`:return this.model.text=this.parser.model,this.parser=void 0,!0;case`rPr`:return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}])}(e(`../base-xform`));a.FONT_OPTIONS={tagName:`rPr`,fontNameTag:`rFont`},t.exports=a},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,n){var r=e(`./text-xform`),i=e(`./rich-text-xform`),a=e(`./phonetic-text-xform`);t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).model=e,n.map={r:new i,t:new r,rPh:new a},n}return J(t,e),f(t,[{key:`tag`,get:function(){return`si`}},{key:`render`,value:function(e,t){var n=this;e.openNode(this.tag),t&&t.hasOwnProperty(`richText`)&&t.richText?t.richText.length?t.richText.forEach((function(t){n.map.r.render(e,t)})):this.map.t.render(e,``):t!=null&&this.map.t.render(e,t),e.closeNode()}},{key:`parseOpen`,value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case`r`:var t=this.model.richText;t||=this.model.richText=[],t.push(this.parser.model);break;case`t`:this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}])}(e(`../base-xform`))},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,n){var r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`./shared-string-xform`);t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).model=e||{values:[],count:0},n.hash=Object.create(null),n.rich=Object.create(null),n}return J(t,e),f(t,[{key:`sharedStringXform`,get:function(){return this._sharedStringXform||=new a}},{key:`values`,get:function(){return this.model.values}},{key:`uniqueCount`,get:function(){return this.model.values.length}},{key:`count`,get:function(){return this.model.count}},{key:`getString`,value:function(e){return this.model.values[e]}},{key:`add`,value:function(e){return e.richText?this.addRichText(e):this.addText(e)}},{key:`addText`,value:function(e){var t=this.hash[e];return t===void 0&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}},{key:`addRichText`,value:function(e){var t=this.sharedStringXform.toXml(e),n=this.rich[t];return n===void 0&&(n=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,n}},{key:`render`,value:function(e,t){t||=this._values,e.openXml(r.StdDocAttributes),e.openNode(`sst`,{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,count:t.count,uniqueCount:t.values.length});var n=this.sharedStringXform;t.values.forEach((function(t){n.render(e,t)})),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`sst`:return!0;case`si`:return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(e===`sst`)return!1;throw Error(`Unexpected xml node in parseClose: ${e}`)}}])}(i)},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`t`}},{key:`render`,value:function(e,t){e.openNode(`t`),/^\s|\n|\s$/.test(t)&&e.addAttribute(`xml:space`,`preserve`),e.writeText(t),e.closeNode()}},{key:`model`,get:function(){return this._text.join(``).replace(/_x([0-9A-F]{4})_/g,(function(e,t){return String.fromCharCode(parseInt(t,16))}))}},{key:`parseOpen`,value:function(e){return e.name===`t`&&(this._text=[],!0)}},{key:`parseText`,value:function(e){this._text.push(e)}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],126:[function(e,t,n){var r=e(`../../../doc/enums`),i=e(`../../../utils/utils`),a=e(`../base-xform`),o={horizontalValues:[`left`,`center`,`right`,`fill`,`centerContinuous`,`distributed`,`justify`].reduce((function(e,t){return e[t]=!0,e}),{}),horizontal:function(e){return this.horizontalValues[e]?e:void 0},verticalValues:[`top`,`middle`,`bottom`,`distributed`,`justify`].reduce((function(e,t){return e[t]=!0,e}),{}),vertical:function(e){return e===`middle`?`center`:this.verticalValues[e]?e:void 0},wrapText:function(e){return!!e||void 0},shrinkToFit:function(e){return!!e||void 0},textRotation:function(e){return e===`vertical`||(e=i.validInt(e))>=-90&&e<=90?e:void 0},indent:function(e){return e=i.validInt(e),Math.max(0,e)},readingOrder:function(e){switch(e){case`ltr`:return r.ReadingOrder.LeftToRight;case`rtl`:return r.ReadingOrder.RightToLeft;default:return}}},s={toXml:function(e){if(e=o.textRotation(e)){if(e===`vertical`)return 255;var t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel:function(e){var t=i.validInt(e);if(t!==void 0){if(t===255)return`vertical`;if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}};t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`alignment`}},{key:`render`,value:function(e,t){e.addRollback(),e.openNode(`alignment`);var n=!1;function r(t,r){r&&(e.addAttribute(t,r),n=!0)}r(`horizontal`,o.horizontal(t.horizontal)),r(`vertical`,o.vertical(t.vertical)),r(`wrapText`,!!o.wrapText(t.wrapText)&&`1`),r(`shrinkToFit`,!!o.shrinkToFit(t.shrinkToFit)&&`1`),r(`indent`,o.indent(t.indent)),r(`textRotation`,s.toXml(t.textRotation)),r(`readingOrder`,o.readingOrder(t.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}},{key:`parseOpen`,value:function(e){var t={},n=!1;function r(e,r,i){e&&(t[r]=i,n=!0)}r(e.attributes.horizontal,`horizontal`,e.attributes.horizontal),r(e.attributes.vertical,`vertical`,e.attributes.vertical===`center`?`middle`:e.attributes.vertical),r(e.attributes.wrapText,`wrapText`,i.parseBoolean(e.attributes.wrapText)),r(e.attributes.shrinkToFit,`shrinkToFit`,i.parseBoolean(e.attributes.shrinkToFit)),r(e.attributes.indent,`indent`,parseInt(e.attributes.indent,10)),r(e.attributes.textRotation,`textRotation`,s.toModel(e.attributes.textRotation)),r(e.attributes.readingOrder,`readingOrder`,e.attributes.readingOrder===`2`?`rtl`:`ltr`),this.model=n?t:null}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(a)},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,n){var r=e(`../base-xform`),i=e(`../../../utils/utils`),a=e(`./color-xform`),o=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).name=e,n.map={color:new a},n}return J(t,e),f(t,[{key:`tag`,get:function(){return this.name}},{key:`render`,value:function(e,t,n){var r=t&&t.color||n||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute(`style`,t.style),r&&this.map.color.render(e,r)),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:var t=e.attributes.style;return this.model=t?{style:t}:void 0,!0;case`color`:return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||={},this.model.color=this.map.color.model),!1)}},{key:`validStyle`,value:function(e){return t.validStyleValues[e]}}])}(r);o.validStyleValues=[`thin`,`dashed`,`dotted`,`dashDot`,`hair`,`dashDotDot`,`slantDashDot`,`mediumDashed`,`mediumDashDotDot`,`mediumDashDot`,`medium`,`double`,`thick`].reduce((function(e,t){return e[t]=!0,e}),{}),t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={top:new o(`top`),left:new o(`left`),bottom:new o(`bottom`),right:new o(`right`),diagonal:new o(`diagonal`)},e}return J(t,e),f(t,[{key:`render`,value:function(e,t){var n=t.color;function r(r,i){r&&!r.color&&t.color&&(r=$i($i({},r),{},{color:t.color})),i.render(e,r,n)}e.openNode(`border`),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute(`diagonalUp`,`1`),t.diagonal.down&&e.addAttribute(`diagonalDown`,`1`)),r(t.left,this.map.left),r(t.right,this.map.right),r(t.top,this.map.top),r(t.bottom,this.map.bottom),r(t.diagonal,this.map.diagonal),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===`border`?(this.reset(),this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e===`border`){var t=this.model={},n=function(e,n,r){n&&(r&&Object.assign(n,r),t[e]=n)};n(`left`,this.map.left.model),n(`right`,this.map.right.model),n(`top`,this.map.top.model),n(`bottom`,this.map.bottom.model),n(`diagonal`,this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}])}(r)},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,n){t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).name=e||`color`,n}return J(t,e),f(t,[{key:`tag`,get:function(){return this.name}},{key:`render`,value:function(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute(`rgb`,t.argb):t.theme===void 0?t.indexed===void 0?e.addAttribute(`auto`,`1`):e.addAttribute(`indexed`,t.indexed):(e.addAttribute(`theme`,t.theme),t.tint!==void 0&&e.addAttribute(`tint`,t.tint)),e.closeNode(),!0)}},{key:`parseOpen`,value:function(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],129:[function(e,t,n){var r=e(`../base-xform`),i=e(`./alignment-xform`),a=e(`./border-xform`),o=e(`./fill-xform`),s=e(`./font-xform`),c=e(`./numfmt-xform`),l=e(`./protection-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={alignment:new i,border:new a,fill:new o,font:new s,numFmt:new c,protection:new l},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`dxf`}},{key:`render`,value:function(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){var n={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,n)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}])}(r)},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,n){var r=e(`../base-xform`),i=e(`./color-xform`),a=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={color:new i},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`stop`}},{key:`render`,value:function(e,t){e.openNode(`stop`),e.addAttribute(`position`,t.position),this.map.color.render(e,t.color),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`stop`:return this.model={position:parseFloat(e.attributes.position)},!0;case`color`:return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}])}(r),o=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={fgColor:new i(`fgColor`),bgColor:new i(`bgColor`)},e}return J(t,e),f(t,[{key:`name`,get:function(){return`pattern`}},{key:`tag`,get:function(){return`patternFill`}},{key:`render`,value:function(e,t){e.openNode(`patternFill`),e.addAttribute(`patternType`,t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===`patternFill`?(this.model={type:`pattern`,pattern:e.attributes.patternType},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}])}(r),s=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={stop:new a},e}return J(t,e),f(t,[{key:`name`,get:function(){return`gradient`}},{key:`tag`,get:function(){return`gradientFill`}},{key:`render`,value:function(e,t){switch(e.openNode(`gradientFill`),t.gradient){case`angle`:e.addAttribute(`degree`,t.degree);break;case`path`:e.addAttribute(`type`,`path`),t.center.left&&(e.addAttribute(`left`,t.center.left),t.center.right===void 0&&e.addAttribute(`right`,t.center.left)),t.center.right&&e.addAttribute(`right`,t.center.right),t.center.top&&(e.addAttribute(`top`,t.center.top),t.center.bottom===void 0&&e.addAttribute(`bottom`,t.center.top)),t.center.bottom&&e.addAttribute(`bottom`,t.center.bottom)}var n=this.map.stop;t.stops.forEach((function(t){n.render(e,t)})),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`gradientFill`:var t=this.model={stops:[]};return e.attributes.degree?(t.gradient=`angle`,t.degree=parseInt(e.attributes.degree,10)):e.attributes.type===`path`&&(t.gradient=`path`,t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0;case`stop`:return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}])}(r),c=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={patternFill:new o,gradientFill:new s},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`fill`}},{key:`render`,value:function(e,t){switch(e.addRollback(),e.openNode(`fill`),t.type){case`pattern`:this.map.patternFill.render(e,t);break;case`gradient`:this.map.gradientFill.render(e,t);break;default:e.rollback();return}e.closeNode(),e.commit()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===`fill`?(this.model={},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}},{key:`validStyle`,value:function(e){return t.validPatternValues[e]}}])}(r);c.validPatternValues=[`none`,`solid`,`darkVertical`,`darkGray`,`mediumGray`,`lightGray`,`gray125`,`gray0625`,`darkHorizontal`,`darkVertical`,`darkDown`,`darkUp`,`darkGrid`,`darkTrellis`,`lightHorizontal`,`lightVertical`,`lightDown`,`lightUp`,`lightGrid`,`lightTrellis`,`lightGrid`].reduce((function(e,t){return e[t]=!0,e}),{}),c.StopXform=a,c.PatternFillXform=o,c.GradientFillXform=s,t.exports=c},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,n){var r=e(`./color-xform`),i=e(`../simple/boolean-xform`),a=e(`../simple/integer-xform`),o=e(`../simple/string-xform`),s=e(`./underline-xform`),c=e(`../../../utils/under-dash`),l=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).options=e||t.OPTIONS,n.map={b:{prop:`bold`,xform:new i({tag:`b`,attr:`val`})},i:{prop:`italic`,xform:new i({tag:`i`,attr:`val`})},u:{prop:`underline`,xform:new s},charset:{prop:`charset`,xform:new a({tag:`charset`,attr:`val`})},color:{prop:`color`,xform:new r},condense:{prop:`condense`,xform:new i({tag:`condense`,attr:`val`})},extend:{prop:`extend`,xform:new i({tag:`extend`,attr:`val`})},family:{prop:`family`,xform:new a({tag:`family`,attr:`val`})},outline:{prop:`outline`,xform:new i({tag:`outline`,attr:`val`})},vertAlign:{prop:`vertAlign`,xform:new o({tag:`vertAlign`,attr:`val`})},scheme:{prop:`scheme`,xform:new o({tag:`scheme`,attr:`val`})},shadow:{prop:`shadow`,xform:new i({tag:`shadow`,attr:`val`})},strike:{prop:`strike`,xform:new i({tag:`strike`,attr:`val`})},sz:{prop:`size`,xform:new a({tag:`sz`,attr:`val`})}},n.map[n.options.fontNameTag]={prop:`name`,xform:new o({tag:n.options.fontNameTag,attr:`val`})},n}return J(t,e),f(t,[{key:`tag`,get:function(){return this.options.tagName}},{key:`render`,value:function(e,t){var n=this.map;e.openNode(this.options.tagName),c.each(this.map,(function(r,i){n[i].xform.render(e,t[r.prop])})),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser&&!this.parser.parseClose(e)){var t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}return e!==this.options.tagName}}])}(e(`../base-xform`));l.OPTIONS={tagName:`font`,fontNameTag:`name`},t.exports=l},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,n){var r=e(`../../../utils/under-dash`),i=e(`../../defaultnumformats`),a=e(`../base-xform`);function o(){var e={};return r.each(i,(function(t,n){t.f&&(e[t.f]=parseInt(n,10))})),e}var s=o(),c=function(e){function t(e,n){var r;return u(this,t),(r=X(this,t)).id=e,r.formatCode=n,r}return J(t,e),f(t,[{key:`tag`,get:function(){return`numFmt`}},{key:`render`,value:function(e,t){e.leafNode(`numFmt`,{numFmtId:t.id,formatCode:t.formatCode})}},{key:`parseOpen`,value:function(e){return e.name===`numFmt`&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,`$1`)},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(a);c.getDefaultFmtId=function(e){return s[e]},c.getDefaultFmtCode=function(e){return i[e]&&i[e].f},t.exports=c},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,n){var r=e(`../base-xform`),i={boolean:function(e,t){return e===void 0?t:e}};t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`protection`}},{key:`render`,value:function(e,t){e.addRollback(),e.openNode(`protection`);var n=!1;function r(t,r){r!==void 0&&(e.addAttribute(t,r),n=!0)}r(`locked`,i.boolean(t.locked,!0)?void 0:`0`),r(`hidden`,i.boolean(t.hidden,!1)?`1`:void 0),e.closeNode(),n?e.commit():e.rollback()}},{key:`parseOpen`,value:function(e){var t={locked:e.attributes.locked!==`0`,hidden:e.attributes.hidden===`1`},n=!t.locked||t.hidden;this.model=n?t:null}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(r)},{"../base-xform":32}],134:[function(e,t,n){var r=e(`../base-xform`),i=e(`./alignment-xform`),a=e(`./protection-xform`);t.exports=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).xfId=!(!e||!e.xfId),n.map={alignment:new i,protection:new a},n}return J(t,e),f(t,[{key:`tag`,get:function(){return`xf`}},{key:`render`,value:function(e,t){e.openNode(`xf`,{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute(`xfId`,t.xfId||0),t.numFmtId&&e.addAttribute(`applyNumberFormat`,`1`),t.fontId&&e.addAttribute(`applyFont`,`1`),t.fillId&&e.addAttribute(`applyFill`,`1`),t.borderId&&e.addAttribute(`applyBorder`,`1`),t.alignment&&e.addAttribute(`applyAlignment`,`1`),t.protection&&e.addAttribute(`applyProtection`,`1`),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`xf`:return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case`alignment`:return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case`protection`:return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):e!==`xf`}}])}(r)},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,n){var r=e(`../../../doc/enums`),i=e(`../../../utils/xml-stream`),a=e(`../base-xform`),o=e(`../static-xform`),s=e(`../list-xform`),c=e(`./font-xform`),l=e(`./fill-xform`),d=e(`./border-xform`),p=e(`./numfmt-xform`),m=e(`./style-xform`),h=e(`./dxf-xform`),g=164,_=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).map={numFmts:new s({tag:`numFmts`,count:!0,childXform:new p}),fonts:new s({tag:`fonts`,count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new s({tag:`fills`,count:!0,childXform:new l}),borders:new s({tag:`borders`,count:!0,childXform:new d}),cellStyleXfs:new s({tag:`cellStyleXfs`,count:!0,childXform:new m}),cellXfs:new s({tag:`cellXfs`,count:!0,childXform:new m({xfId:!0})}),dxfs:new s({tag:`dxfs`,always:!0,count:!0,childXform:new h}),numFmt:new p,font:new c,fill:new l,border:new d,style:new m({xfId:!0}),cellStyles:t.STATIC_XFORMS.cellStyles,tableStyles:t.STATIC_XFORMS.tableStyles,extLst:t.STATIC_XFORMS.extLst},e&&n.init(),n}return J(t,e),f(t,[{key:`initIndex`,value:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}},{key:`init`,value:function(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:`pattern`,pattern:`none`}),this._addFill({type:`pattern`,pattern:`gray125`}),this.weakMap=new WeakMap}},{key:`render`,value:function(e,n){n||=this.model,e.openXml(i.StdDocAttributes),e.openNode(`styleSheet`,t.STYLESHEET_ATTRIBUTES),this.index?(n.numFmts&&n.numFmts.length&&(e.openNode(`numFmts`,{count:n.numFmts.length}),n.numFmts.forEach((function(t){e.writeXml(t)})),e.closeNode()),n.fonts.length||this._addFont({size:11,color:{theme:1},name:`Calibri`,family:2,scheme:`minor`}),e.openNode(`fonts`,{count:n.fonts.length,"x14ac:knownFonts":1}),n.fonts.forEach((function(t){e.writeXml(t)})),e.closeNode(),e.openNode(`fills`,{count:n.fills.length}),n.fills.forEach((function(t){e.writeXml(t)})),e.closeNode(),e.openNode(`borders`,{count:n.borders.length}),n.borders.forEach((function(t){e.writeXml(t)})),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode(`cellXfs`,{count:n.styles.length}),n.styles.forEach((function(t){e.writeXml(t)})),e.closeNode()):(this.map.numFmts.render(e,n.numFmts),this.map.fonts.render(e,n.fonts),this.map.fills.render(e,n.fills),this.map.borders.render(e,n.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,n.styles)),t.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,n.dxfs),t.STATIC_XFORMS.tableStyles.render(e),t.STATIC_XFORMS.extLst.render(e),e.closeNode()}},{key:`parseOpen`,value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===`styleSheet`?(this.initIndex(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){var t=this;if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e===`styleSheet`){this.model={};var n=function(e,n){n.model&&n.model.length&&(t.model[e]=n.model)};if(n(`numFmts`,this.map.numFmts),n(`fonts`,this.map.fonts),n(`fills`,this.map.fills),n(`borders`,this.map.borders),n(`styles`,this.map.cellXfs),n(`dxfs`,this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var r=this.index.numFmt;this.model.numFmts.forEach((function(e){r[e.id]=e.formatCode}))}return!1}return!0}},{key:`addStyleModel`,value:function(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:`Calibri`,family:2,scheme:`minor`}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);var n={};if(t||=r.ValueType.Number,e.numFmt)n.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case r.ValueType.Number:n.numFmtId=this._addNumFmtStr(`General`);break;case r.ValueType.Date:n.numFmtId=this._addNumFmtStr(`mm-dd-yy`)}e.font&&(n.fontId=this._addFont(e.font)),e.border&&(n.borderId=this._addBorder(e.border)),e.fill&&(n.fillId=this._addFill(e.fill)),e.alignment&&(n.alignment=e.alignment),e.protection&&(n.protection=e.protection);var i=this._addStyle(n);return this.weakMap&&this.weakMap.set(e,i),i}},{key:`getStyleModel`,value:function(e){var t=this.model.styles[e];if(!t)return null;var n=this.index.model[e];if(n)return n;if(n=this.index.model[e]={},t.numFmtId){var r=this.index.numFmt[t.numFmtId]||p.getDefaultFmtCode(t.numFmtId);r&&(n.numFmt=r)}function i(e,t,r){if(r||r===0){var i=t[r];i&&(n[e]=i)}}return i(`font`,this.model.fonts,t.fontId),i(`border`,this.model.borders,t.borderId),i(`fill`,this.model.fills,t.fillId),t.alignment&&(n.alignment=t.alignment),t.protection&&(n.protection=t.protection),n}},{key:`addDxfStyle`,value:function(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}},{key:`getDxfStyle`,value:function(e){return this.model.dxfs[e]}},{key:`_addStyle`,value:function(e){var t=this.map.style.toXml(e),n=this.index.style[t];return n===void 0&&(n=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),n}},{key:`_addNumFmtStr`,value:function(e){var t=p.getDefaultFmtId(e);if(t!==void 0||(t=this.index.numFmt[e])!==void 0)return t;t=this.index.numFmt[e]=g+this.model.numFmts.length;var n=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(n),t}},{key:`_addFont`,value:function(e){var t=this.map.font.toXml(e),n=this.index.font[t];return n===void 0&&(n=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),n}},{key:`_addBorder`,value:function(e){var t=this.map.border.toXml(e),n=this.index.border[t];return n===void 0&&(n=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),n}},{key:`_addFill`,value:function(e){var t=this.map.fill.toXml(e),n=this.index.fill[t];return n===void 0&&(n=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),n}}])}(a);_.STYLESHEET_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`x14ac x16r2`,"xmlns:x14ac":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac`,"xmlns:x16r2":`http://schemas.microsoft.com/office/spreadsheetml/2015/02/main`},_.STATIC_XFORMS={cellStyles:new o({tag:`cellStyles`,$:{count:1},c:[{tag:`cellStyle`,$:{name:`Normal`,xfId:0,builtinId:0}}]}),dxfs:new o({tag:`dxfs`,$:{count:0}}),tableStyles:new o({tag:`tableStyles`,$:{count:0,defaultTableStyle:`TableStyleMedium2`,defaultPivotStyle:`PivotStyleLight16`}}),extLst:new o({tag:`extLst`,c:[{tag:`ext`,$:{uri:`{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}`,"xmlns:x14":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/main`},c:[{tag:`x14:slicerStyles`,$:{defaultSlicerStyle:`SlicerStyleLight1`}}]},{tag:`ext`,$:{uri:`{9260A510-F301-46a8-8635-F512D64BE5F5}`,"xmlns:x15":`http://schemas.microsoft.com/office/spreadsheetml/2010/11/main`},c:[{tag:`x15:timelineStyles`,$:{defaultTimelineStyle:`TimeSlicerStyleLight1`}}]}]})},_.Mock=function(e){function t(){var e;return u(this,t),(e=X(this,t)).model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:`Calibri`,family:2,scheme:`minor`}],borders:[{}],fills:[{type:`pattern`,pattern:`none`},{type:`pattern`,pattern:`gray125`}]},e}return J(t,e),f(t,[{key:`parseStream`,value:function(e){return e.autodrain(),Promise.resolve()}},{key:`addStyleModel`,value:function(e,t){return t===r.ValueType.Date?this.dateStyleId:0}},{key:`dateStyleId`,get:function(){if(!this._dateStyleId){var e={numFmtId:p.getDefaultFmtId(`mm-dd-yy`)};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}},{key:`getStyleModel`,value:function(){return{}}}])}(_),t.exports=_},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,n){var r=function(e){function t(e){var n;return u(this,t),(n=X(this,t)).model=e,n}return J(t,e),f(t,[{key:`tag`,get:function(){return`u`}},{key:`render`,value:function(e,n){if(!0===(n||=this.model))e.leafNode(`u`);else{var r=t.Attributes[n];r&&e.leafNode(`u`,r)}}},{key:`parseOpen`,value:function(e){e.name===`u`&&(this.model=e.attributes.val||!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`));r.Attributes={single:{},double:{val:`double`},singleAccounting:{val:`singleAccounting`},doubleAccounting:{val:`doubleAccounting`}},t.exports=r},{"../base-xform":32}],137:[function(e,t,n){var r=e(`../base-xform`),i=e(`./filter-column-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={filterColumn:new i},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`autoFilter`}},{key:`prepare`,value:function(e){var t=this;e.columns.forEach((function(e,n){t.map.filterColumn.prepare(e,{index:n})}))}},{key:`render`,value:function(e,t){var n=this;return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach((function(t){n.map.filterColumn.render(e,t)})),e.closeNode(),!0}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e===this.tag)return!1;throw Error(`Unexpected xml node in parseClose: ${e}`)}}])}(r)},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`customFilter`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],139:[function(e,t,n){var r=e(`../base-xform`),i=e(`../list-xform`),a=e(`./custom-filter-xform`),o=e(`./filter-xform`);t.exports=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={customFilters:new i({tag:`customFilters`,count:!1,empty:!0,childXform:new a}),filters:new i({tag:`filters`,count:!1,empty:!0,childXform:new o})},e}return J(t,e),f(t,[{key:`tag`,get:function(){return`filterColumn`}},{key:`prepare`,value:function(e,t){e.colId=t.index.toString()}},{key:`render`,value:function(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?`0`:`1`}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?`0`:`1`}),!0)}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e.attributes;if(e.name===this.tag)return this.model={filterButton:t.hiddenButton===`0`},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}])}(r)},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`filter`}},{key:`render`,value:function(e,t){e.leafNode(this.tag,{val:t.val})}},{key:`parseOpen`,value:function(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],141:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`tableColumn`}},{key:`prepare`,value:function(e,t){e.id=t.index+1}},{key:`render`,value:function(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}},{key:`parseOpen`,value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],142:[function(e,t,n){t.exports=function(e){function t(){return u(this,t),X(this,t,arguments)}return J(t,e),f(t,[{key:`tag`,get:function(){return`tableStyleInfo`}},{key:`render`,value:function(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?`1`:`0`,showLastColumn:t.showLastColumn?`1`:`0`,showRowStripes:t.showRowStripes?`1`:`0`,showColumnStripes:t.showColumnStripes?`1`:`0`}),!0}},{key:`parseOpen`,value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={theme:t.name?t.name:null,showFirstColumn:t.showFirstColumn===`1`,showLastColumn:t.showLastColumn===`1`,showRowStripes:t.showRowStripes===`1`,showColumnStripes:t.showColumnStripes===`1`},!0}return!1}},{key:`parseText`,value:function(){}},{key:`parseClose`,value:function(){return!1}}])}(e(`../base-xform`))},{"../base-xform":32}],143:[function(e,t,n){var r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`../list-xform`),o=e(`./auto-filter-xform`),s=e(`./table-column-xform`),c=e(`./table-style-info-xform`),l=function(e){function t(){var e;return u(this,t),(e=X(this,t)).map={autoFilter:new o,tableColumns:new a({tag:`tableColumns`,count:!0,empty:!0,childXform:new s}),tableStyleInfo:new c},e}return J(t,e),f(t,[{key:`prepare`,value:function(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}},{key:`tag`,get:function(){return`table`}},{key:`render`,value:function(e,n){e.openXml(r.StdDocAttributes),e.openNode(this.tag,$i($i({},t.TABLE_ATTRIBUTES),{},{id:n.id,name:n.name,displayName:n.displayName||n.name,ref:n.tableRef,totalsRowCount:n.totalsRow?`1`:void 0,totalsRowShown:n.totalsRow?void 0:`1`,headerRowCount:n.headerRow?`1`:`0`})),this.map.autoFilter.render(e,n),this.map.tableColumns.render(e,n.columns),this.map.tableStyleInfo.render(e,n.style),e.closeNode()}},{key:`parseOpen`,value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e.name,n=e.attributes;return t===this.tag?(this.reset(),this.model={name:n.name,displayName:n.displayName||n.name,tableRef:n.ref,totalsRow:n.totalsRowCount===`1`,headerRow:n.headerRowCount===`1`}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}},{key:`parseText`,value:function(e){this.parser&&this.parser.parseText(e)}},{key:`parseClose`,value:function(e){var t=this;return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((function(e,n){t.model.columns[n].filterButton=e.filterButton}))),this.model.style=this.map.tableStyleInfo.model,!1)}},{key:`reconcile`,value:function(e,t){e.columns.forEach((function(e){e.dxfId!==void 0&&(e.style=t.styles.getDxfStyle(e.dxfId))}))}}])}(i);l.TABLE_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`xr xr3`,"xmlns:xr":`http://schemas.microsoft.com/office/spreadsheetml/2014/revision`,"xmlns:xr3":`http://schemas.microsoft.com/office/spreadsheetml/2016/revision3`},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,n){(function(n,r){(function(){var i=e(`fs`),a=e(`jszip`),o=e(`readable-stream`).PassThrough,s=e(`../utils/zip-stream`),c=e(`../utils/stream-buf`),l=e(`../utils/utils`),d=e(`../utils/xml-stream`),p=e(`../utils/browser-buffer-decode`).bufferToString,m=e(`./xform/style/styles-xform`),h=e(`./xform/core/core-xform`),g=e(`./xform/strings/shared-strings-xform`),_=e(`./xform/core/relationships-xform`),v=e(`./xform/core/content-types-xform`),y=e(`./xform/core/app-xform`),b=e(`./xform/book/workbook-xform`),x=e(`./xform/sheet/worksheet-xform`),S=e(`./xform/drawing/drawing-xform`),C=e(`./xform/table/table-xform`),w=e(`./xform/comment/comments-xform`),T=e(`./xform/comment/vml-notes-xform`),E=e(`./xml/theme1`);function D(e,t){return new Promise((function(n,r){i.readFile(e,t,(function(e,t){e?r(e):n(t)}))}))}var O=function(){function e(t){u(this,e),this.workbook=t}return f(e,[{key:`readFile`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.fs.exists(t);case 2:if(e.sent){e.next=4;break}throw Error(`File not found: ${t}`);case 4:return r=i.createReadStream(t),e.prev=5,e.next=8,this.read(r,n);case 8:return a=e.sent,r.close(),e.abrupt(`return`,a);case 13:throw e.prev=13,e.t0=e.catch(5),r.close(),e.t0;case 17:case`end`:return e.stop()}}),e,this,[[5,13]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`parseRels`,value:function(e){return new _().parseStream(e)}},{key:`parseWorkbook`,value:function(e){return new b().parseStream(e)}},{key:`parseSharedStrings`,value:function(e){return new g().parseStream(e)}},{key:`reconcile`,value:function(e,t){var n=new b,r=new x(t),i=new S,a=new C;n.reconcile(e);var o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((function(t){var n=e.drawings[t],r=e.drawingRels[t];r&&(o.rels=r.reduce((function(e,t){return e[t.Id]=t,e}),{}),(n.anchors||[]).forEach((function(e){var t=e.picture&&e.picture.hyperlinks;t&&o.rels[t.rId]&&(t.hyperlink=o.rels[t.rId].Target,delete t.rId)})),i.reconcile(n,o))}));var s={styles:e.styles};Object.values(e.tables).forEach((function(e){a.reconcile(e,s)}));var c={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((function(t){t.relationships=e.worksheetRels[t.sheetNo],r.reconcile(t,c)})),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}},{key:`_processWorksheetEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r,i,a){var o,s;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new x(i),e.next=3,o.parseStream(t);case 3:(s=e.sent).sheetNo=r,n.worksheetHash[a]=s,n.worksheets.push(s);case 7:case`end`:return e.stop()}}),e)})));function t(t,n,r,i,a){return e.apply(this,arguments)}return t}()},{key:`_processCommentEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new w,e.next=3,i.parseStream(t);case 3:a=e.sent,n.comments[`../${r}.xml`]=a;case 5:case`end`:return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`_processTableEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new C,e.next=3,i.parseStream(t);case 3:a=e.sent,n.tables[`../tables/${r}.xml`]=a;case 5:case`end`:return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`_processWorksheetRelsEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new _,e.next=3,i.parseStream(t);case 3:a=e.sent,n.worksheetRels[r]=a;case 5:case`end`:return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`_processMediaEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r){var i,a,o;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((i=r.lastIndexOf(`.`))>=1)){e.next=6;break}return a=r.substr(i+1),o=r.substr(0,i),e.next=6,new Promise((function(e,i){var s=new c;s.on(`finish`,(function(){n.mediaIndex[r]=n.media.length,n.mediaIndex[o]=n.media.length;var t={type:`image`,name:o,extension:a,buffer:s.toBuffer()};n.media.push(t),e()})),t.on(`error`,(function(e){i(e)})),t.pipe(s)}));case 6:case`end`:return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`_processDrawingEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new S,e.next=3,i.parseStream(t);case 3:a=e.sent,n.drawings[r]=a;case 5:case`end`:return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`_processDrawingRelsEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new _,e.next=3,i.parseStream(t);case 3:a=e.sent,n.drawingRels[r]=a;case 5:case`end`:return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`_processVmlDrawingEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new T,e.next=3,i.parseStream(t);case 3:a=e.sent,n.vmlDrawings[`../drawings/${r}.vml`]=a;case 5:case`end`:return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`_processThemeEntry`,value:function(){var e=Pi(Gi.mark((function e(t,n,r){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,i){var a=new c;t.on(`error`,i),a.on(`error`,i),a.on(`finish`,(function(){n.themes[r]=a.read().toString(),e()})),t.pipe(a)}));case 2:case`end`:return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`createInputStream`,value:function(){throw Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:`read`,value:function(){var e=Pi(Gi.mark((function e(t,n){var i,a,s,c,l,u,d;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!t[Symbol.asyncIterator]&&t.pipe&&(t=t.pipe(new o)),i=[],a=!1,s=!1,e.prev=4,l=ea(t);case 6:return e.next=8,l.next();case 8:if(!(a=!(u=e.sent).done)){e.next=14;break}d=u.value,i.push(d);case 11:a=!1,e.next=6;break;case 14:e.next=20;break;case 16:e.prev=16,e.t0=e.catch(4),s=!0,c=e.t0;case 20:if(e.prev=20,e.prev=21,!a||l.return==null){e.next=25;break}return e.next=25,l.return();case 25:if(e.prev=25,!s){e.next=28;break}throw c;case 28:return e.finish(25);case 29:return e.finish(20);case 30:return e.abrupt(`return`,this.load(r.concat(i),n));case 31:case`end`:return e.stop()}}),e,this,[[4,16,20,30],[21,,25,29]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`load`,value:function(){var e=Pi(Gi.mark((function e(t,i){var s,c,l,u,d,f,_,v,b,x,S,C,w,T,E,D,O;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=i&&i.base64?r.from(t.toString(),`base64`):t,c={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},e.next=4,a.loadAsync(s);case 4:l=e.sent,u=0,d=Object.values(l.files);case 6:if(!(u<d.length)){e.next=126;break}if((f=d[u]).dir){e.next=123;break}if((_=f.name)[0]===`/`&&(_=_.substr(1)),v=void 0,!_.match(/xl\/media\//)&&!_.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){e.next=21;break}return v=new o,e.t0=v,e.next=17,f.async(`nodebuffer`);case 17:e.t1=e.sent,e.t0.write.call(e.t0,e.t1),e.next=36;break;case 21:if(v=new o({writableObjectMode:!0,readableObjectMode:!0}),b=void 0,!n.browser){e.next=31;break}return e.t2=p,e.next=27,f.async(`nodebuffer`);case 27:e.t3=e.sent,b=(0,e.t2)(e.t3),e.next=34;break;case 31:return e.next=33,f.async(`string`);case 33:b=e.sent;case 34:for(x=16384,S=0;S<b.length;S+=x)v.write(b.substring(S,S+x));case 36:v.end(),e.t4=_,e.next=e.t4===`_rels/.rels`?40:e.t4===`xl/workbook.xml`?44:e.t4===`xl/_rels/workbook.xml.rels`?53:e.t4===`xl/sharedStrings.xml`?57:e.t4===`xl/styles.xml`?61:e.t4===`docProps/app.xml`?65:e.t4===`docProps/core.xml`?72:78;break;case 40:return e.next=42,this.parseRels(v);case 42:return c.globalRels=e.sent,e.abrupt(`break`,123);case 44:return e.next=46,this.parseWorkbook(v);case 46:return C=e.sent,c.sheets=C.sheets,c.definedNames=C.definedNames,c.views=C.views,c.properties=C.properties,c.calcProperties=C.calcProperties,e.abrupt(`break`,123);case 53:return e.next=55,this.parseRels(v);case 55:return c.workbookRels=e.sent,e.abrupt(`break`,123);case 57:return c.sharedStrings=new g,e.next=60,c.sharedStrings.parseStream(v);case 60:return e.abrupt(`break`,123);case 61:return c.styles=new m,e.next=64,c.styles.parseStream(v);case 64:return e.abrupt(`break`,123);case 65:return w=new y,e.next=68,w.parseStream(v);case 68:return T=e.sent,c.company=T.company,c.manager=T.manager,e.abrupt(`break`,123);case 72:return E=new h,e.next=75,E.parseStream(v);case 75:return D=e.sent,Object.assign(c,D),e.abrupt(`break`,123);case 78:if(!(O=_.match(/xl\/worksheets\/sheet(\d+)[.]xml/))){e.next=83;break}return e.next=82,this._processWorksheetEntry(v,c,O[1],i,_);case 82:return e.abrupt(`break`,123);case 83:if(!(O=_.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))){e.next=88;break}return e.next=87,this._processWorksheetRelsEntry(v,c,O[1]);case 87:return e.abrupt(`break`,123);case 88:if(!(O=_.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))){e.next=93;break}return e.next=92,this._processThemeEntry(v,c,O[1]);case 92:return e.abrupt(`break`,123);case 93:if(!(O=_.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))){e.next=98;break}return e.next=97,this._processMediaEntry(v,c,O[1]);case 97:return e.abrupt(`break`,123);case 98:if(!(O=_.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))){e.next=103;break}return e.next=102,this._processDrawingEntry(v,c,O[1]);case 102:return e.abrupt(`break`,123);case 103:if(!(O=_.match(/xl\/(comments\d+)[.]xml/))){e.next=108;break}return e.next=107,this._processCommentEntry(v,c,O[1]);case 107:return e.abrupt(`break`,123);case 108:if(!(O=_.match(/xl\/tables\/(table\d+)[.]xml/))){e.next=113;break}return e.next=112,this._processTableEntry(v,c,O[1]);case 112:return e.abrupt(`break`,123);case 113:if(!(O=_.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))){e.next=118;break}return e.next=117,this._processDrawingRelsEntry(v,c,O[1]);case 117:return e.abrupt(`break`,123);case 118:if(!(O=_.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))){e.next=123;break}return e.next=122,this._processVmlDrawingEntry(v,c,O[1]);case 122:return e.abrupt(`break`,123);case 123:u++,e.next=6;break;case 126:return this.reconcile(c,i),this.workbook.model=c,e.abrupt(`return`,this.workbook);case 129:case`end`:return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addMedia`,value:function(){var e=Pi(Gi.mark((function e(t,n){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(n.media.map(function(){var e=Pi(Gi.mark((function e(n){var r,i,a,o;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.type!==`image`){e.next=13;break}if(r=`xl/media/${n.name}.${n.extension}`,!n.filename){e.next=7;break}return e.next=5,D(n.filename);case 5:return i=e.sent,e.abrupt(`return`,t.append(i,{name:r}));case 7:if(!n.buffer){e.next=9;break}return e.abrupt(`return`,t.append(n.buffer,{name:r}));case 9:if(!n.base64){e.next=13;break}return a=n.base64,o=a.substring(a.indexOf(`,`)+1),e.abrupt(`return`,t.append(o,{name:r,base64:!0}));case 13:throw Error(`Unsupported media`);case 14:case`end`:return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addDrawings`,value:function(e,t){var n=new S,r=new _;t.worksheets.forEach((function(t){var i=t.drawing;if(i){n.prepare(i,{});var a=n.toXml(i);e.append(a,{name:`xl/drawings/${i.name}.xml`}),a=r.toXml(i.rels),e.append(a,{name:`xl/drawings/_rels/${i.name}.xml.rels`})}}))}},{key:`addTables`,value:function(e,t){var n=new C;t.worksheets.forEach((function(t){t.tables.forEach((function(t){n.prepare(t,{});var r=n.toXml(t);e.append(r,{name:`xl/tables/${t.target}`})}))}))}},{key:`addContentTypes`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r,i;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new v,i=r.toXml(n),t.append(i,{name:`[Content_Types].xml`});case 3:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addApp`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r,i;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new y,i=r.toXml(n),t.append(i,{name:`docProps/app.xml`});case 3:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addCore`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new h,t.append(r.toXml(n),{name:`docProps/core.xml`});case 2:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addThemes`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.themes||{theme1:E},Object.keys(r).forEach((function(e){var n=r[e],i=`xl/theme/${e}.xml`;t.append(n,{name:i})}));case 2:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addOfficeRels`,value:function(){var t=Pi(Gi.mark((function t(n){var r,i;return Gi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=new _,i=r.toXml([{Id:`rId1`,Type:e.RelType.OfficeDocument,Target:`xl/workbook.xml`},{Id:`rId2`,Type:e.RelType.CoreProperties,Target:`docProps/core.xml`},{Id:`rId3`,Type:e.RelType.ExtenderProperties,Target:`docProps/app.xml`}]),n.append(i,{name:`_rels/.rels`});case 3:case`end`:return t.stop()}}),t)})));function n(e){return t.apply(this,arguments)}return n}()},{key:`addWorkbookRels`,value:function(){var t=Pi(Gi.mark((function t(n,r){var i,a,o,s;return Gi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=1,a=[{Id:`rId${i++}`,Type:e.RelType.Styles,Target:`styles.xml`},{Id:`rId${i++}`,Type:e.RelType.Theme,Target:`theme/theme1.xml`}],r.sharedStrings.count&&a.push({Id:`rId${i++}`,Type:e.RelType.SharedStrings,Target:`sharedStrings.xml`}),r.worksheets.forEach((function(t){t.rId=`rId${i++}`,a.push({Id:t.rId,Type:e.RelType.Worksheet,Target:`worksheets/sheet${t.id}.xml`})})),o=new _,s=o.toXml(a),n.append(s,{name:`xl/_rels/workbook.xml.rels`});case 7:case`end`:return t.stop()}}),t)})));function n(e,n){return t.apply(this,arguments)}return n}()},{key:`addSharedStrings`,value:function(){var e=Pi(Gi.mark((function e(t,n){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.sharedStrings&&n.sharedStrings.count&&t.append(n.sharedStrings.xml,{name:`xl/sharedStrings.xml`});case 1:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addStyles`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=n.styles.xml)&&t.append(r,{name:`xl/styles.xml`});case 2:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addWorkbook`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new b,t.append(r.toXml(n),{name:`xl/workbook.xml`});case 2:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`addWorksheets`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r,i,a,o;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new x,i=new _,a=new w,o=new T,n.worksheets.forEach((function(e){var n=new d;r.render(n,e),t.append(n.xml,{name:`xl/worksheets/sheet${e.id}.xml`}),e.rels&&e.rels.length&&(n=new d,i.render(n,e.rels),t.append(n.xml,{name:`xl/worksheets/_rels/sheet${e.id}.xml.rels`})),e.comments.length>0&&(n=new d,a.render(n,e),t.append(n.xml,{name:`xl/comments${e.id}.xml`}),n=new d,o.render(n,e),t.append(n.xml,{name:`xl/drawings/vmlDrawing${e.id}.vml`}))}));case 5:case`end`:return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`_finalize`,value:function(e){var t=this;return new Promise((function(n,r){e.on(`finish`,(function(){n(t)})),e.on(`error`,r),e.finalize()}))}},{key:`prepareModel`,value:function(e,t){e.creator=e.creator||`ExcelJS`,e.lastModifiedBy=e.lastModifiedBy||`ExcelJS`,e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=t.useSharedStrings===void 0||t.useSharedStrings,e.useStyles=t.useStyles===void 0||t.useStyles,e.sharedStrings=new g,e.styles=e.useStyles?new m(!0):new m.Mock;var n=new b,r=new x;n.prepare(e);var i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];var a=0;e.tables=[],e.worksheets.forEach((function(t){t.tables.forEach((function(t){a++,t.target=`table${a}.xml`,t.id=a,e.tables.push(t)})),r.prepare(t,i)}))}},{key:`write`,value:function(){var e=Pi(Gi.mark((function e(t,n){var r,i;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n||={},r=this.workbook.model,(i=new s.ZipWriter(n.zip)).pipe(t),this.prepareModel(r,n),e.next=7,this.addContentTypes(i,r);case 7:return e.next=9,this.addOfficeRels(i,r);case 9:return e.next=11,this.addWorkbookRels(i,r);case 11:return e.next=13,this.addWorksheets(i,r);case 13:return e.next=15,this.addSharedStrings(i,r);case 15:return e.next=17,this.addDrawings(i,r);case 17:return e.next=19,this.addTables(i,r);case 19:return e.next=21,Promise.all([this.addThemes(i,r),this.addStyles(i,r)]);case 21:return e.next=23,this.addMedia(i,r);case 23:return e.next=25,Promise.all([this.addApp(i,r),this.addCore(i,r)]);case 25:return e.next=27,this.addWorkbook(i,r);case 27:return e.abrupt(`return`,this._finalize(i));case 28:case`end`:return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:`writeFile`,value:function(e,t){var n=this,r=i.createWriteStream(e);return new Promise((function(e,i){r.on(`finish`,(function(){e()})),r.on(`error`,(function(e){i(e)})),n.write(r,t).then((function(){r.end()})).catch((function(e){i(e)}))}))}},{key:`writeBuffer`,value:function(){var e=Pi(Gi.mark((function e(t){var n;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new c,e.next=3,this.write(n,t);case 3:return e.abrupt(`return`,n.read());case 4:case`end`:return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}])}();O.RelType=e(`./rel-type`),t.exports=O}).call(this)}).call(this,e(`_process`),e(`buffer`).Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,n){t.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
22
22
|
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,`__esModule`,{value:!0}),n.CsvFormatterStream=void 0;var r=e(`stream`),i=e(`./formatter`);n.CsvFormatterStream=function(e){function n(e){var t;return u(this,n),(t=X(this,n,[{writableObjectMode:e.objectMode}])).hasWrittenBOM=!1,t.formatterOptions=e,t.rowFormatter=new i.RowFormatter(e),t.hasWrittenBOM=!e.writeBOM,t}return J(n,e),f(n,[{key:`transform`,value:function(e){return this.rowFormatter.rowTransform=e,this}},{key:`_transform`,value:function(e,n,r){var i=this,a=!1;try{this.hasWrittenBOM||=(this.push(this.formatterOptions.BOM),!0),this.rowFormatter.format(e,(function(e,n){return e?(a=!0,r(e)):(n&&n.forEach((function(e){i.push(t.from(e,`utf8`))})),a=!0,r())}))}catch(e){if(a)throw e;r(e)}}},{key:`_flush`,value:function(e){var n=this;this.rowFormatter.finish((function(r,i){return r?e(r):(i&&i.forEach((function(e){n.push(t.from(e,`utf8`))})),e())}))}}])}(r.Transform)}).call(this)}).call(this,e(`buffer`).Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.FormatterOptions=void 0,n.FormatterOptions=f((function e(){u(this,e);var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.objectMode=!0,this.delimiter=`,`,this.rowDelimiter=`
|
|
23
|
-
`,this.quote=`"`,this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM=``,this.alwaysWriteHeaders=!1,Object.assign(this,n||{}),n?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),!0===n?.quote?this.quote=`"`:!1===n?.quote&&(this.quote=``),typeof n?.escape!=`string`&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((t=n.writeHeaders)==null||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}))},{}],148:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.FieldFormatter=void 0;var i=r(e(`lodash.isboolean`)),a=r(e(`lodash.isnil`)),o=r(e(`lodash.escaperegexp`));n.FieldFormatter=function(){function e(t){u(this,e),this._headers=null,this.formatterOptions=t,t.headers!==null&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,`g`);var n=`[${t.delimiter}${o.default(t.rowDelimiter)}
|
|
23
|
+
`,this.quote=`"`,this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM=``,this.alwaysWriteHeaders=!1,Object.assign(this,n||{}),n?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),!0===n?.quote?this.quote=`"`:!1===n?.quote&&(this.quote=``),typeof n?.escape!=`string`&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((t=n.writeHeaders)==null||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}))},{}],148:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.FieldFormatter=void 0;var i=r(e(`lodash.isboolean`)),a=r(e(`lodash.isnil`)),o=r(e(`lodash.escaperegexp`));n.FieldFormatter=function(){function e(t){u(this,e),this._headers=null,this.formatterOptions=t,t.headers!==null&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,`g`);var n=`[${t.delimiter}${o.default(t.rowDelimiter)}|
|
|
24
24
|
]`;this.ESCAPE_REGEXP=new RegExp(n)}return f(e,[{key:`headers`,set:function(e){this._headers=e}},{key:`shouldQuote`,value:function(e,t){var n=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(n)?n:Array.isArray(n)?n[e]:this._headers!==null&&n[this._headers[e]]}},{key:`format`,value:function(e,t,n){var r=`${a.default(e)?``:e}`.replace(/\0/g,``),i=this.formatterOptions;return i.quote!==``&&r.indexOf(i.quote)!==-1?this.quoteField(r.replace(this.REPLACE_REGEXP,i.escapedQuote)):r.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(t,n)?this.quoteField(r):r}},{key:`quoteField`,value:function(e){var t=this.formatterOptions.quote;return`${t}${e}${t}`}}])}()},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.RowFormatter=void 0;var i=r(e(`lodash.isfunction`)),a=r(e(`lodash.isequal`)),o=e(`./FieldFormatter`),s=e(`../types`);n.RowFormatter=function(){function e(t){u(this,e),this.rowCount=0,this.formatterOptions=t,this.fieldFormatter=new o.FieldFormatter(t),this.headers=t.headers,this.shouldWriteHeaders=t.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),t.transform&&(this.rowTransform=t.transform)}return f(e,[{key:`rowTransform`,set:function(t){if(!i.default(t))throw TypeError(`The transform should be a function`);this._rowTransform=e.createTransform(t)}},{key:`format`,value:function(e,t){var n=this;this.callTransformer(e,(function(r,i){if(r)return t(r);if(!e)return t(null);var a=[];if(i){var o=n.checkHeaders(i),s=o.shouldFormatColumns,c=o.headers;if(n.shouldWriteHeaders&&c&&!n.hasWrittenHeaders&&(a.push(n.formatColumns(c,!0)),n.hasWrittenHeaders=!0),s){var l=n.gatherColumns(i);a.push(n.formatColumns(l,!1))}}return t(null,a)}))}},{key:`finish`,value:function(e){var t=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return e(Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}},{key:`checkHeaders`,value:function(t){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var n=e.gatherHeaders(t);return this.headers=n,this.fieldFormatter.headers=n,this.shouldWriteHeaders?{shouldFormatColumns:!a.default(n,t),headers:n}:{shouldFormatColumns:!0,headers:null}}},{key:`gatherColumns`,value:function(t){if(this.headers===null)throw Error(`Headers is currently null`);return Array.isArray(t)?e.isRowHashArray(t)?this.headers.map((function(e,n){var r=t[n];return r?r[1]:``})):e.isRowArray(t)&&!this.shouldWriteHeaders?t:this.headers.map((function(e,n){return t[n]})):this.headers.map((function(e){return t[e]}))}},{key:`callTransformer`,value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:`formatColumns`,value:function(e,t){var n=this,r=e.map((function(e,r){return n.fieldFormatter.format(e,r,t)})).join(this.formatterOptions.delimiter),i=this.rowCount;return this.rowCount+=1,i?[this.formatterOptions.rowDelimiter,r].join(``):r}}],[{key:`isRowHashArray`,value:function(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&e[0].length===2}},{key:`isRowArray`,value:function(e){return Array.isArray(e)&&!this.isRowHashArray(e)}},{key:`gatherHeaders`,value:function(t){return e.isRowHashArray(t)?t.map((function(e){return e[0]})):Array.isArray(t)?t:Object.keys(t)}},{key:`createTransform`,value:function(e){return s.isSyncTransform(e)?function(t,n){var r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:function(t,n){e(t,n)}}}])}()},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.FieldFormatter=n.RowFormatter=void 0;var r=e(`./RowFormatter`);Object.defineProperty(n,`RowFormatter`,{enumerable:!0,get:function(){return r.RowFormatter}});var i=e(`./FieldFormatter`);Object.defineProperty(n,`FieldFormatter`,{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,n){(function(t){(function(){var r=Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!==`default`&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)n===`default`||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,`__esModule`,{value:!0}),n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=n.FormatterOptions=n.CsvFormatterStream=void 0;var s=e(`util`),c=e(`stream`),l=a(e(`fs`)),u=e(`./FormatterOptions`),d=e(`./CsvFormatterStream`);o(e(`./types`),n);var f=e(`./CsvFormatterStream`);Object.defineProperty(n,`CsvFormatterStream`,{enumerable:!0,get:function(){return f.CsvFormatterStream}});var p=e(`./FormatterOptions`);Object.defineProperty(n,`FormatterOptions`,{enumerable:!0,get:function(){return p.FormatterOptions}}),n.format=function(e){return new d.CsvFormatterStream(new u.FormatterOptions(e))},n.write=function(e,t){var r=n.format(t),i=s.promisify((function(e,t){r.write(e,void 0,t)}));return e.reduce((function(e,t){return e.then((function(){return i(t)}))}),Promise.resolve()).then((function(){return r.end()})).catch((function(e){r.emit(`error`,e)})),r},n.writeToStream=function(e,t,r){return n.write(t,r).pipe(e)},n.writeToBuffer=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[],a=new c.Writable({write:function(e,t,n){i.push(e),n()}});return new Promise((function(o,s){a.on(`error`,s).on(`finish`,(function(){return o(t.concat(i))})),n.write(e,r).pipe(a)}))},n.writeToString=function(e,t){return n.writeToBuffer(e,t).then((function(e){return e.toString()}))},n.writeToPath=function(e,t,r){var i=l.createWriteStream(e,{encoding:`utf8`});return n.write(t,r).pipe(i)}}).call(this)}).call(this,e(`buffer`).Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.isSyncTransform=void 0,n.isSyncTransform=function(e){return e.length===1}},{}],153:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,`__esModule`,{value:!0}),n.CsvParserStream=void 0;var r=e(`string_decoder`),i=e(`stream`),a=e(`./transforms`),o=e(`./parser`);n.CsvParserStream=function(e){function n(e){var t;return u(this,n),(t=X(this,n,[{objectMode:e.objectMode}])).lines=``,t.rowCount=0,t.parsedRowCount=0,t.parsedLineCount=0,t.endEmitted=!1,t.headersEmitted=!1,t.parserOptions=e,t.parser=new o.Parser(e),t.headerTransformer=new a.HeaderTransformer(e),t.decoder=new r.StringDecoder(e.encoding),t.rowTransformerValidator=new a.RowTransformerValidator,t}return J(n,e),f(n,[{key:`hasHitRowLimit`,get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:`shouldEmitRows`,get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:`shouldSkipLine`,get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}},{key:`transform`,value:function(e){return this.rowTransformerValidator.rowTransform=e,this}},{key:`validate`,value:function(e){return this.rowTransformerValidator.rowValidator=e,this}},{key:`emit`,value:function(e){if(e===`end`)return this.endEmitted||(this.endEmitted=!0,Ji(n,`emit`,this,3)([`end`,this.rowCount])),!1;var t=[...arguments].slice(1);return Ji(n,`emit`,this,3)([e].concat(t))}},{key:`_transform`,value:function(e,t,r){if(this.hasHitRowLimit)return r();var i=n.wrapDoneCallback(r);try{var a=this.lines+this.decoder.write(e),o=this.parse(a,!0);return this.processRows(o,i)}catch(e){return i(e)}}},{key:`_flush`,value:function(e){var t=n.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{var r=this.lines+this.decoder.end(),i=this.parse(r,!1);return this.processRows(i,t)}catch(e){return t(e)}}},{key:`parse`,value:function(e,t){if(!e)return[];var n=this.parser.parse(e,t),r=n.line,i=n.rows;return this.lines=r,i}},{key:`processRows`,value:function(e,n){var r=this,i=e.length,a=function(o){var s=function(e){return e?n(e):o%100==0?void t((function(){return a(o+1)})):a(o+1)};if(r.checkAndEmitHeaders(),o>=i||r.hasHitRowLimit)return n();if(r.parsedLineCount+=1,r.shouldSkipLine)return s();var c=e[o];r.rowCount+=1,r.parsedRowCount+=1;var l=r.rowCount;return r.transformRow(c,(function(e,t){if(e)return--r.rowCount,s(e);if(!t)return s(Error(`expected transform result`));if(t.isValid){if(t.row)return r.pushRow(t.row,s)}else r.emit(`data-invalid`,t.row,l,t.reason);return s()}))};a(0)}},{key:`transformRow`,value:function(e,t){var n=this;try{this.headerTransformer.transform(e,(function(r,i){return r?t(r):i?i.isValid?i.row?n.shouldEmitRows?n.rowTransformerValidator.transformAndValidate(i.row,t):n.skipRow(t):(--n.rowCount,--n.parsedRowCount,t(null,{row:null,isValid:!0})):n.shouldEmitRows?t(null,{isValid:!1,row:e}):n.skipRow(t):t(Error(`Expected result from header transform`))}))}catch(e){t(e)}}},{key:`checkAndEmitHeaders`,value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit(`headers`,this.headerTransformer.headers))}},{key:`skipRow`,value:function(e){return--this.rowCount,e(null,{row:null,isValid:!0})}},{key:`pushRow`,value:function(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}}],[{key:`wrapDoneCallback`,value:function(e){var t=!1;return function(n){if(n){if(t)throw n;t=!0,e(n);return}var r=[...arguments].slice(1);e.apply(void 0,r)}}}])}(i.Transform)}).call(this)}).call(this,e(`timers`).setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.ParserOptions=void 0;var i=r(e(`lodash.escaperegexp`)),a=r(e(`lodash.isnil`));n.ParserOptions=f((function e(t){if(u(this,e),this.objectMode=!0,this.delimiter=`,`,this.ignoreEmpty=!1,this.quote=`"`,this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn=`\r`,this.encoding=`utf8`,this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,t||{}),this.delimiter.length>1)throw Error(`delimiter option must be one character long`);this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=this.escape??this.quote,this.supportsComments=!a.default(this.comment),this.NEXT_TOKEN_REGEXP=RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}))},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,n){var r=Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!==`default`&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)n===`default`||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,`__esModule`,{value:!0}),n.parseString=n.parseFile=n.parseStream=n.parse=n.ParserOptions=n.CsvParserStream=void 0;var s=a(e(`fs`)),c=e(`stream`),l=e(`./ParserOptions`),u=e(`./CsvParserStream`);o(e(`./types`),n);var d=e(`./CsvParserStream`);Object.defineProperty(n,`CsvParserStream`,{enumerable:!0,get:function(){return d.CsvParserStream}});var f=e(`./ParserOptions`);Object.defineProperty(n,`ParserOptions`,{enumerable:!0,get:function(){return f.ParserOptions}}),n.parse=function(e){return new u.CsvParserStream(new l.ParserOptions(e))},n.parseStream=function(e,t){return e.pipe(new u.CsvParserStream(new l.ParserOptions(t)))},n.parseFile=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.createReadStream(e).pipe(new u.CsvParserStream(new l.ParserOptions(t)))},n.parseString=function(e,t){var n=new c.Readable;return n.push(e),n.push(null),n.pipe(new u.CsvParserStream(new l.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.Parser=void 0;var r=e(`./Scanner`),i=e(`./RowParser`),a=e(`./Token`);n.Parser=function(){function e(t){u(this,e),this.parserOptions=t,this.rowParser=new i.RowParser(this.parserOptions)}return f(e,[{key:`parse`,value:function(t,n){var i=new r.Scanner({line:e.removeBOM(t),parserOptions:this.parserOptions,hasMoreData:n});return this.parserOptions.supportsComments?this.parseWithComments(i):this.parseWithoutComments(i)}},{key:`parseWithoutComments`,value:function(e){for(var t=[],n=!0;n;)n=this.parseRow(e,t);return{line:e.line,rows:t}}},{key:`parseWithComments`,value:function(e){for(var t=this.parserOptions,n=[],r=e.nextCharacterToken;r!==null;r=e.nextCharacterToken)if(a.Token.isTokenComment(r,t)){if(e.advancePastLine()===null||!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}},{key:`parseRow`,value:function(e,t){if(!e.nextNonSpaceToken)return!1;var n=this.rowParser.parse(e);return n!==null&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(n)||t.push(n),!0)}}],[{key:`removeBOM`,value:function(e){return e&&e.charCodeAt(0)===65279?e.slice(1):e}}])}()},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.RowParser=void 0;var r=e(`./column`),i=e(`./Token`),a=``;n.RowParser=function(){function e(t){u(this,e),this.parserOptions=t,this.columnParser=new r.ColumnParser(t)}return f(e,[{key:`parse`,value:function(e){for(var t=this.parserOptions,n=e.hasMoreData,r=e,a=[],o=this.getStartToken(r,a);o;){if(i.Token.isTokenRowDelimiter(o))return r.advancePastToken(o),!r.hasMoreCharacters&&i.Token.isTokenCarriageReturn(o,t)&&n?null:(r.truncateToCursor(),a);if(!this.shouldSkipColumnParse(r,o,a)){var s=this.columnParser.parse(r);if(s===null)return null;a.push(s)}o=r.nextNonSpaceToken}return n?null:(r.truncateToCursor(),a)}},{key:`getStartToken`,value:function(e,t){var n=e.nextNonSpaceToken;return n!==null&&i.Token.isTokenDelimiter(n,this.parserOptions)?(t.push(``),e.nextNonSpaceToken):n}},{key:`shouldSkipColumnParse`,value:function(e,t,n){var r=this.parserOptions;if(i.Token.isTokenDelimiter(t,r)){e.advancePastToken(t);var a=e.nextCharacterToken;if(!e.hasMoreCharacters||a!==null&&i.Token.isTokenRowDelimiter(a)||a!==null&&i.Token.isTokenDelimiter(a,r))return n.push(``),!0}return!1}}],[{key:`isEmptyRow`,value:function(e){return e.join(a).replace(/\s+/g,a)===a}}])}()},{"./Token":159,"./column":164}],158:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.Scanner=void 0;var r=e(`./Token`),i=/((?:\r\n)|\n|\r)/;n.Scanner=function(){function e(t){u(this,e),this.cursor=0,this.line=t.line,this.lineLength=this.line.length,this.parserOptions=t.parserOptions,this.hasMoreData=t.hasMoreData,this.cursor=t.cursor||0}return f(e,[{key:`hasMoreCharacters`,get:function(){return this.lineLength>this.cursor}},{key:`nextNonSpaceToken`,get:function(){var e=this.lineFromCursor,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(e.search(t)===-1)return null;var n=t.exec(e);if(n==null)return null;var i=n[1],a=this.cursor+(n.index||0);return new r.Token({token:i,startCursor:a,endCursor:a+i.length-1})}},{key:`nextCharacterToken`,get:function(){var e=this.cursor;return this.lineLength<=e?null:new r.Token({token:this.line[e],startCursor:e,endCursor:e})}},{key:`lineFromCursor`,get:function(){return this.line.substr(this.cursor)}},{key:`advancePastLine`,value:function(){var e=i.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:`advanceTo`,value:function(e){return this.cursor=e,this}},{key:`advanceToToken`,value:function(e){return this.cursor=e.startCursor,this}},{key:`advancePastToken`,value:function(e){return this.cursor=e.endCursor+1,this}},{key:`truncateToCursor`,value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}])}()},{"./Token":159}],159:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.Token=void 0,n.Token=function(){function e(t){u(this,e),this.token=t.token,this.startCursor=t.startCursor,this.endCursor=t.endCursor}return f(e,null,[{key:`isTokenRowDelimiter`,value:function(e){var t=e.token;return t===`\r`||t===`
|
|
25
25
|
`||t===`\r
|
|
26
26
|
`}},{key:`isTokenCarriageReturn`,value:function(e,t){return e.token===t.carriageReturn}},{key:`isTokenComment`,value:function(e,t){return t.supportsComments&&!!e&&e.token===t.comment}},{key:`isTokenEscapeCharacter`,value:function(e,t){return e.token===t.escapeChar}},{key:`isTokenQuote`,value:function(e,t){return e.token===t.quote}},{key:`isTokenDelimiter`,value:function(e,t){return e.token===t.delimiter}}])}()},{}],160:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.ColumnFormatter=void 0,n.ColumnFormatter=f((function e(t){u(this,e),t.trim?this.format=function(e){return e.trim()}:t.ltrim?this.format=function(e){return e.trimLeft()}:t.rtrim?this.format=function(e){return e.trimRight()}:this.format=function(e){return e}}))},{}],161:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.ColumnParser=void 0;var r=e(`./NonQuotedColumnParser`),i=e(`./QuotedColumnParser`),a=e(`../Token`);n.ColumnParser=function(){function e(t){u(this,e),this.parserOptions=t,this.quotedColumnParser=new i.QuotedColumnParser(t),this.nonQuotedColumnParser=new r.NonQuotedColumnParser(t)}return f(e,[{key:`parse`,value:function(e){var t=e.nextNonSpaceToken;return t!==null&&a.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}])}()},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.NonQuotedColumnParser=void 0;var r=e(`./ColumnFormatter`),i=e(`../Token`);n.NonQuotedColumnParser=function(){function e(t){u(this,e),this.parserOptions=t,this.columnFormatter=new r.ColumnFormatter(t)}return f(e,[{key:`parse`,value:function(e){if(!e.hasMoreCharacters)return null;for(var t=this.parserOptions,n=[],r=e.nextCharacterToken;r&&!i.Token.isTokenDelimiter(r,t)&&!i.Token.isTokenRowDelimiter(r);r=e.nextCharacterToken)n.push(r.token),e.advancePastToken(r);return this.columnFormatter.format(n.join(``))}}])}()},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.QuotedColumnParser=void 0;var r=e(`./ColumnFormatter`),i=e(`../Token`);n.QuotedColumnParser=function(){function e(t){u(this,e),this.parserOptions=t,this.columnFormatter=new r.ColumnFormatter(t)}return f(e,[{key:`parse`,value:function(e){if(!e.hasMoreCharacters)return null;var t=e.cursor,n=this.gatherDataBetweenQuotes(e),r=n.foundClosingQuote,i=n.col;if(!r){if(e.advanceTo(t),!e.hasMoreData)throw Error(`Parse Error: missing closing: '${this.parserOptions.quote||``}' in line: at '${e.lineFromCursor.replace(/[\r\n]/g,`\\n'`)}'`);return null}return this.checkForMalformedColumn(e),i}},{key:`gatherDataBetweenQuotes`,value:function(e){for(var t=this.parserOptions,n=!1,r=!1,a=[],o=e.nextCharacterToken;!r&&o!==null;o=e.nextCharacterToken){var s=i.Token.isTokenQuote(o,t);if(!n&&s)n=!0;else if(n)if(i.Token.isTokenEscapeCharacter(o,t)){e.advancePastToken(o);var c=e.nextCharacterToken;c!==null&&(i.Token.isTokenQuote(c,t)||i.Token.isTokenEscapeCharacter(c,t))?(a.push(c.token),o=c):s?r=!0:a.push(o.token)}else s?r=!0:a.push(o.token);e.advancePastToken(o)}return{col:this.columnFormatter.format(a.join(``)),foundClosingQuote:r}}},{key:`checkForMalformedColumn`,value:function(e){var t=this.parserOptions,n=e.nextNonSpaceToken;if(n){var r=i.Token.isTokenDelimiter(n,t),a=i.Token.isTokenRowDelimiter(n);if(!r&&!a){var o=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,`\\n'`);throw Error(`Parse Error: expected: '${t.escapedDelimiter}' OR new line got: '${n.token}'. at '${o}`)}e.advanceToToken(n)}else e.hasMoreData||e.advancePastLine()}}])}()},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.ColumnFormatter=n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=void 0;var r=e(`./ColumnParser`);Object.defineProperty(n,`ColumnParser`,{enumerable:!0,get:function(){return r.ColumnParser}});var i=e(`./NonQuotedColumnParser`);Object.defineProperty(n,`NonQuotedColumnParser`,{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var a=e(`./QuotedColumnParser`);Object.defineProperty(n,`QuotedColumnParser`,{enumerable:!0,get:function(){return a.QuotedColumnParser}});var o=e(`./ColumnFormatter`);Object.defineProperty(n,`ColumnFormatter`,{enumerable:!0,get:function(){return o.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=n.Token=n.Scanner=n.RowParser=n.Parser=void 0;var r=e(`./Parser`);Object.defineProperty(n,`Parser`,{enumerable:!0,get:function(){return r.Parser}});var i=e(`./RowParser`);Object.defineProperty(n,`RowParser`,{enumerable:!0,get:function(){return i.RowParser}});var a=e(`./Scanner`);Object.defineProperty(n,`Scanner`,{enumerable:!0,get:function(){return a.Scanner}});var o=e(`./Token`);Object.defineProperty(n,`Token`,{enumerable:!0,get:function(){return o.Token}});var s=e(`./column`);Object.defineProperty(n,`ColumnParser`,{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(n,`NonQuotedColumnParser`,{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(n,`QuotedColumnParser`,{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.HeaderTransformer=void 0;var i=r(e(`lodash.isundefined`)),a=r(e(`lodash.isfunction`)),o=r(e(`lodash.uniq`)),s=r(e(`lodash.groupby`));n.HeaderTransformer=function(){function e(t){u(this,e),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=t,!0===t.headers?this.shouldUseFirstRow=!0:Array.isArray(t.headers)?this.setHeaders(t.headers):a.default(t.headers)&&(this.headersTransform=t.headers)}return f(e,[{key:`transform`,value:function(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}},{key:`shouldMapRow`,value:function(e){var t=this.parserOptions;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw Error(`Error renaming headers: new headers must be provided in an array`);return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}},{key:`processRow`,value:function(e){if(!this.headers)return{row:e,isValid:!0};var t=this.parserOptions;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}:{row:this.mapHeaders(e),isValid:!0}}},{key:`mapHeaders`,value:function(e){for(var t={},n=this.headers,r=this.headersLength,a=0;a<r;a+=1){var o=n[a];if(!i.default(o)){var s=e[a];i.default(s)?t[o]=``:t[o]=s}}return t}},{key:`setHeaders`,value:function(e){var t=e.filter((function(e){return!!e}));if(o.default(t).length!==t.length){var n=s.default(t),r=Object.keys(n).filter((function(e){return n[e].length>1}));throw Error(`Duplicate headers found ${JSON.stringify(r)}`)}this.headers=e,this.receivedHeaders=!0,this.headersLength=this.headers?.length||0}}])}()},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.RowTransformerValidator=void 0;var i=r(e(`lodash.isfunction`)),a=e(`../types`);n.RowTransformerValidator=function(){function e(){u(this,e),this._rowTransform=null,this._rowValidator=null}return f(e,[{key:`rowTransform`,set:function(t){if(!i.default(t))throw TypeError(`The transform should be a function`);this._rowTransform=e.createTransform(t)}},{key:`rowValidator`,set:function(t){if(!i.default(t))throw TypeError(`The validate should be a function`);this._rowValidator=e.createValidator(t)}},{key:`transformAndValidate`,value:function(e,t){var n=this;return this.callTransformer(e,(function(e,r){return e?t(e):r?n.callValidator(r,(function(e,n){return e?t(e):n&&!n.isValid?t(null,{row:r,isValid:!1,reason:n.reason}):t(null,{row:r,isValid:!0})})):t(null,{row:null,isValid:!0})}))}},{key:`callTransformer`,value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:`callValidator`,value:function(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}],[{key:`createTransform`,value:function(e){return a.isSyncTransform(e)?function(t,n){var r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:e}},{key:`createValidator`,value:function(e){return a.isSyncValidate(e)?function(t,n){n(null,{row:t,isValid:e(t)})}:function(t,n){e(t,(function(e,r,i){return e?n(e):n(null,r?{row:t,isValid:r,reason:i}:{row:t,isValid:!1,reason:i})}))}}}])}()},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.HeaderTransformer=n.RowTransformerValidator=void 0;var r=e(`./RowTransformerValidator`);Object.defineProperty(n,`RowTransformerValidator`,{enumerable:!0,get:function(){return r.RowTransformerValidator}});var i=e(`./HeaderTransformer`);Object.defineProperty(n,`HeaderTransformer`,{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.isSyncValidate=n.isSyncTransform=void 0,n.isSyncTransform=function(e){return e.length===1},n.isSyncValidate=function(e){return e.length===1}},{}],170:[function(e,t,n){var r=n;r.bignum=e(`bn.js`),r.define=e(`./asn1/api`).define,r.base=e(`./asn1/base`),r.constants=e(`./asn1/constants`),r.decoders=e(`./asn1/decoders`),r.encoders=e(`./asn1/encoders`)},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,t,n){var r=e(`./encoders`),i=e(`./decoders`),a=e(`inherits`);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}n.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t=this.name;function n(e){this._initNamed(e,t)}return a(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},o.prototype._getDecoder=function(e){return e||=`der`,this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e||=`der`,this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,n){var r=e(`inherits`),i=e(`../base/reporter`).Reporter,a=e(`safer-buffer`).Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error(`Input not Buffer`)}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if(typeof e==`number`){if(!(0<=e&&e<=255))return t.error(`non-byte EncoderBuffer value`);this.value=e,this.length=1}else if(typeof e==`string`)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error(`Unsupported type: `+typeof e);this.value=e,this.length=e.length}}r(o,i),n.DecoderBuffer=o,o.isDecoderBuffer=function(e){return e instanceof o||typeof e==`object`&&a.isBuffer(e.base)&&e.constructor.name===`DecoderBuffer`&&typeof e.offset==`number`&&typeof e.length==`number`&&typeof e.save==`function`&&typeof e.restore==`function`&&typeof e.isEmpty==`function`&&typeof e.readUInt8==`function`&&typeof e.skip==`function`&&typeof e.raw==`function`},o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||`DecoderBuffer overrun`)},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||`DecoderBuffer overrun`);var n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},n.EncoderBuffer=s,s.isEncoderBuffer=function(e){return e instanceof s||typeof e==`object`&&e.constructor.name===`EncoderBuffer`&&typeof e.length==`number`&&typeof e.join==`function`},s.prototype.join=function(e,t){return e||=a.alloc(this.length),t||=0,this.length===0||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):(typeof this.value==`number`?e[t]=this.value:typeof this.value==`string`?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,n){var r=n;r.Reporter=e(`./reporter`).Reporter,r.DecoderBuffer=e(`./buffer`).DecoderBuffer,r.EncoderBuffer=e(`./buffer`).EncoderBuffer,r.Node=e(`./node`)},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,n){var r=e(`../base/reporter`).Reporter,i=e(`../base/buffer`).EncoderBuffer,a=e(`../base/buffer`).DecoderBuffer,o=e(`minimalistic-assert`),s=`seq.seqof.set.setof.objid.bool.gentime.utctime.null_.enum.int.objDesc.bitstr.bmpstr.charstr.genstr.graphstr.ia5str.iso646str.numstr.octstr.printstr.t61str.unistr.utf8str.videostr`.split(`.`),c=[`key`,`obj`,`use`,`optional`,`explicit`,`implicit`,`def`,`choice`,`any`,`contains`].concat(s),l=[`_peekTag`,`_decodeTag`,`_use`,`_decodeStr`,`_decodeObjid`,`_decodeTime`,`_decodeNull`,`_decodeInt`,`_decodeBool`,`_decodeList`,`_encodeComposite`,`_encodeStr`,`_encodeObjid`,`_encodeTime`,`_encodeNull`,`_encodeInt`,`_encodeBool`];function u(e,t,n){var r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;var d=[`enc`,`parent`,`children`,`tag`,`args`,`reverseArgs`,`choice`,`optional`,`any`,`obj`,`use`,`alteredUse`,`key`,`default`,`explicit`,`implicit`,`contains`];u.prototype.clone=function(){var e=this._baseState,t={};d.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;o(t.parent===null),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,`Root node can have only one child`)},u.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),n.length!==0&&(o(t.children===null),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),e.length!==0&&(o(t.args===null),t.args=e,t.reverseArgs=e.map((function(e){if(typeof e!=`object`||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},l.forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw Error(e+` not implemented for encoding: `+t.enc)}})),s.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return o(t.tag===null),t.tag=e,this._useArgs(n),this}})),u.prototype.use=function(e){o(e);var t=this._baseState;return o(t.use===null),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return o(t.default===null),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return o(t.explicit===null&&t.implicit===null),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return o(t.explicit===null&&t.implicit===null),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return o(t.key===null),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return o(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return o(t.use===null),t.contains=e,this},u.prototype._decode=function(e,t){var n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,o=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){var c=null;if(n.explicit===null?n.implicit===null?n.tag!==null&&(c=n.tag):c=n.implicit:c=n.explicit,c!==null||n.any){if(o=this._peekTag(e,c,n.any),e.isError(o))return o}else{var l=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch{o=!1}e.restore(l)}}if(n.obj&&o&&(r=e.enterObject()),o){if(n.explicit!==null){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(n.use===null&&n.choice===null){var f;n.any&&(f=e.save());var p=this._decodeTag(e,n.implicit===null?n.tag:n.implicit,n.any);if(e.isError(p))return p;n.any?i=e.raw(f):e=p}if(t&&t.track&&n.tag!==null&&t.track(e.path(),d,e.length,`tagged`),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,`content`),n.any||(i=n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||n.choice!==null||n.children===null||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&(n.tag===`octstr`||n.tag===`bitstr`)){var m=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(m,t)}}return n.obj&&o&&(i=e.leaveObject(r)),n.key===null||i===null&&!0!==o?s!==null&&e.exitKey(s):e.leaveKey(s,n.key,i),i},u.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return e===`seq`||e===`set`?null:e===`seqof`||e===`setof`?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e===`objid`&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):e===`objid`?this._decodeObjid(t,null,null,n):e===`gentime`||e===`utctime`?this._decodeTime(t,e,n):e===`null_`?this._decodeNull(t,n):e===`bool`?this._decodeBool(t,n):e===`objDesc`?this._decodeStr(t,e,n):e===`int`||e===`enum`?this._decodeInt(t,r.args&&r.args[0],n):r.use===null?t.error(`unknown tag: `+e):this._getUse(r.use,t._reporterState.obj)._decode(t,n)},u.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),o(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){var o=e.save(),s=n.choice[a];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:a,value:c},i=!0}catch{return e.restore(o),!1}return!0}),this),i?r:e.error(`Choice not matched`)},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,n){var r=this._baseState;if(r.default===null||r.default!==e){var i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i}},u.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,t||new r);var a=null;if(this.reporter=t,i.optional&&e===void 0){if(i.default===null)return;e=i.default}var o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)o=i.children.map((function(n){if(n._baseState.tag===`null_`)return n._encode(null,t,e);if(n._baseState.key===null)return t.error(`Child should have a key`);var r=t.enterKey(n._baseState.key);if(typeof e!=`object`)return t.error(`Child expected, but input is not object`);var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if(i.tag===`seqof`||i.tag===`setof`){if(!i.args||i.args.length!==1)return t.error(`Too many args for : `+i.tag);if(!Array.isArray(e))return t.error(`seqof/setof, but data is not Array`);var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else i.use===null?(o=this._encodePrimitive(i.tag,e),s=!0):a=this._getUse(i.use,n)._encode(e,t);if(!i.any&&i.choice===null){var l=i.implicit===null?i.tag:i.implicit,u=i.implicit===null?`universal`:`context`;l===null?i.use===null&&t.error(`Tag could be omitted only for .use()`):i.use===null&&(a=this._encodeComposite(l,s,u,o))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,`context`,a)),a},u.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+` not found in `+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e===`objid`&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e===`objid`)return this._encodeObjid(t,null,null);if(e===`gentime`||e===`utctime`)return this._encodeTime(t,e);if(e===`null_`)return this._encodeNull();if(e===`int`||e===`enum`)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e===`bool`)return this._encodeBool(t);if(e===`objDesc`)return this._encodeStr(t,e);throw Error(`Unsupported tag: `+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,n){var r=e(`inherits`);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}n.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),r.obj!==null&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join(`/`)},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return`[`+JSON.stringify(e)+`]`})).join(``),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+` at: `+(this.path||`(shallow)`),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(e,t,n){function r(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t}n.tagClass={0:`universal`,1:`application`,2:`context`,3:`private`},n.tagClassByName=r(n.tagClass),n.tag={0:`end`,1:`bool`,2:`int`,3:`bitstr`,4:`octstr`,5:`null_`,6:`objid`,7:`objDesc`,8:`external`,9:`real`,10:`enum`,11:`embed`,12:`utf8str`,13:`relativeOid`,16:`seq`,17:`set`,18:`numstr`,19:`printstr`,20:`t61str`,21:`videostr`,22:`ia5str`,23:`utctime`,24:`gentime`,25:`graphstr`,26:`iso646str`,27:`genstr`,28:`unistr`,29:`charstr`,30:`bmpstr`},n.tagByName=r(n.tag)},{}],177:[function(e,t,n){var r=n;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=e(`./der`)},{"./der":176}],178:[function(e,t,n){var r=e(`inherits`),i=e(`bn.js`),a=e(`../base/buffer`).DecoderBuffer,o=e(`../base/node`),s=e(`../constants/der`);function c(e){this.enc=`der`,this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.call(this,`der`,e)}function u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=!(32&n);if(31&~n)n&=31;else{var a=n;for(n=0;!(128&~a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function d(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&r===128)return null;if(!(128&r))return r;var i=127&r;if(i>4)return e.error(`length octect is too long`);r=0;for(var a=0;a<i;a++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}t.exports=c,c.prototype.decode=function(e,t){return a.isDecoderBuffer(e)||(e=new a(e,t)),this.tree._decode(e,t)},r(l,o),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=u(e,`Failed to peek tag: "`+t+`"`);return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+`of`===t||n)},l.prototype._decodeTag=function(e,t,n){var r=u(e,`Failed to decode tag of "`+t+`"`);if(e.isError(r))return r;var i=d(e,r.primitive,`Failed to get length of "`+t+`"`);if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+`of`!==t)return e.error(`Failed to match tag: "`+t+`"`);if(r.primitive||i!==null)return e.skip(i,`Failed to match body of: "`+t+`"`);var a=e.save(),o=this._skipUntilEnd(e,`Failed to skip indefinite length body: "`+this.tag+`"`);return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,`Failed to match body of: "`+t+`"`))},l.prototype._skipUntilEnd=function(e,t){for(;;){var n=u(e,t);if(e.isError(n))return n;var r=d(e,n.primitive,t);if(e.isError(r))return r;var i=void 0;if(i=n.primitive||r!==null?e.skip(r):this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr===`end`)break}},l.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,`end`);if(e.isError(a))return a;var o=n.decode(e,`der`,r);if(e.isError(o)&&a)break;i.push(o)}return i},l.prototype._decodeStr=function(e,t){if(t===`bitstr`){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if(t===`bmpstr`){var r=e.raw();if(r.length%2==1)return e.error(`Decoding of string type: bmpstr length mismatch`);for(var i=``,a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(2*a));return i}if(t===`numstr`){var o=e.raw().toString(`ascii`);return this._isNumstr(o)?o:e.error(`Decoding of string type: numstr unsupported characters`)}if(t===`octstr`||t===`objDesc`)return e.raw();if(t===`printstr`){var s=e.raw().toString(`ascii`);return this._isPrintstr(s)?s:e.error(`Decoding of string type: printstr unsupported characters`)}return/str$/.test(t)?e.raw().toString():e.error(`Decoding of string type: `+t+` unsupported`)},l.prototype._decodeObjid=function(e,t,n){for(var r,i=[],a=0,o=0;!e.isEmpty();)a<<=7,a|=127&(o=e.readUInt8()),128&o||(i.push(a),a=0);128&o&&i.push(a);var s=i[0]/40|0,c=i[0]%40;if(r=n?i:[s,c].concat(i.slice(1)),t){var l=t[r.join(` `)];l===void 0&&(l=t[r.join(`.`)]),l!==void 0&&(r=l)}return r},l.prototype._decodeTime=function(e,t){var n,r,i,a,o,s,c=e.raw().toString();if(t===`gentime`)n=0|c.slice(0,4),r=0|c.slice(4,6),i=0|c.slice(6,8),a=0|c.slice(8,10),o=0|c.slice(10,12),s=0|c.slice(12,14);else{if(t!==`utctime`)return e.error(`Decoding `+t+` time is not supported yet`);n=0|c.slice(0,2),r=0|c.slice(2,4),i=0|c.slice(4,6),a=0|c.slice(6,8),o=0|c.slice(8,10),s=0|c.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,i,a,o,s,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:t!==0},l.prototype._decodeInt=function(e,t){var n=new i(e.raw());return t&&(n=t[n.toString(10)]||n),n},l.prototype._use=function(e,t){return typeof e==`function`&&(e=e(t)),e._getDecoder(`der`).tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,n){var r=n;r.der=e(`./der`),r.pem=e(`./pem`)},{"./der":178,"./pem":180}],180:[function(e,t,n){var r=e(`inherits`),i=e(`safer-buffer`).Buffer,a=e(`./der`);function o(e){a.call(this,e),this.enc=`pem`}r(o,a),t.exports=o,o.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,l=0;l<n.length;l++){var u=n[l].match(o);if(u!==null&&u[2]===r){if(s!==-1){if(u[1]!==`END`)break;c=l;break}if(u[1]!==`BEGIN`)break;s=l}}if(s===-1||c===-1)throw Error(`PEM section not found for: `+r);var d=n.slice(s+1,c).join(``);d.replace(/[^a-z0-9+/=]+/gi,``);var f=i.from(d,`base64`);return a.prototype.decode.call(this,f,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,n){var r=e(`inherits`),i=e(`safer-buffer`).Buffer,a=e(`../base/node`),o=e(`../constants/der`);function s(e){this.enc=`der`,this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,`der`,e)}function l(e){return e<10?`0`+e:e}function u(e,t,n,r){var i;if(e===`seqof`?e=`seq`:e===`setof`&&(e=`set`),o.tagByName.hasOwnProperty(e))i=o.tagByName[e];else{if(typeof e!=`number`||(0|e)!==e)return r.error(`Unknown tag: `+e);i=e}return i>=31?r.error(`Multi-octet tag encoding unsupported`):(t||(i|=32),i|=o.tagClassByName[n||`universal`]<<6)}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,a),c.prototype._encodeComposite=function(e,t,n,r){var a=u(e,t,n,this.reporter);if(r.length<128){var o=i.alloc(2);return o[0]=a,o[1]=r.length,this._createEncoderBuffer([o,r])}for(var s=1,c=r.length;c>=256;c>>=8)s++;var l=i.alloc(2+s);l[0]=a,l[1]=128|s;for(var d=1+s,f=r.length;f>0;d--,f>>=8)l[d]=255&f;return this._createEncoderBuffer([l,r])},c.prototype._encodeStr=function(e,t){if(t===`bitstr`)return this._createEncoderBuffer([0|e.unused,e.data]);if(t===`bmpstr`){for(var n=i.alloc(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return t===`numstr`?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: numstr supports only digits and space`):t===`printstr`?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark`):/str$/.test(t)||t===`objDesc`?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: `+t+` unsupported`)},c.prototype._encodeObjid=function(e,t,n){if(typeof e==`string`){if(!t)return this.reporter.error(`string objid given, but no values map found`);if(!t.hasOwnProperty(e))return this.reporter.error(`objid not found in values map`);e=t[e].split(/[\s.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(var a=0;a<e.length;a++)e[a]|=0}if(!Array.isArray(e))return this.reporter.error(`objid() should be either array or string, got: `+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error(`Second objid identifier OOB`);e.splice(0,2,40*e[0]+e[1])}for(var o=0,s=0;s<e.length;s++){var c=e[s];for(o++;c>=128;c>>=7)o++}for(var l=i.alloc(o),u=l.length-1,d=e.length-1;d>=0;d--){var f=e[d];for(l[u--]=127&f;(f>>=7)>0;)l[u--]=128|127&f}return this._createEncoderBuffer(l)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return t===`gentime`?n=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),`Z`].join(``):t===`utctime`?n=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),`Z`].join(``):this.reporter.error(`Encoding `+t+` time is not supported yet`),this._encodeStr(n,`octstr`)},c.prototype._encodeNull=function(){return this._createEncoderBuffer(``)},c.prototype._encodeInt=function(e,t){if(typeof e==`string`){if(!t)return this.reporter.error(`String int or enum given, but no values map`);if(!t.hasOwnProperty(e))return this.reporter.error(`Values map doesn't contain: `+JSON.stringify(e));e=t[e]}if(typeof e!=`number`&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=i.from(n)}if(i.isBuffer(e)){var r=e.length;e.length===0&&r++;var a=i.alloc(r);return e.copy(a),e.length===0&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var o=1,s=e;s>=256;s>>=8)o++;for(var c=Array(o),l=c.length-1;l>=0;l--)c[l]=255&e,e>>=8;return 128&c[0]&&c.unshift(0),this._createEncoderBuffer(i.from(c))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return typeof e==`function`&&(e=e(t)),e._getEncoder(`der`).tree},c.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(i.default===null)return!1;var a=e.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==i.defaultBuffer[r])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,n){var r=n;r.der=e(`./der`),r.pem=e(`./pem`)},{"./der":181,"./pem":183}],183:[function(e,t,n){var r=e(`inherits`),i=e(`./der`);function a(e){i.call(this,e),this.enc=`pem`}r(a,i),t.exports=a,a.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString(`base64`),r=[`-----BEGIN `+t.label+`-----`],a=0;a<n.length;a+=64)r.push(n.slice(a,a+64));return r.push(`-----END `+t.label+`-----`),r.join(`
|